@platforma-sdk/ui-vue 1.8.18 → 1.8.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/lib.js +14595 -10236
- package/dist/lib.umd.cjs +76 -36
- package/dist/src/aggrid.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts +1 -1
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/src/aggrid.ts +4 -0
- package/src/components/PlAgDataTable/PlAgDataTable.vue +41 -2
- package/src/components/PlAgDataTable/sources/table-source.ts +6 -3
package/dist/lib.umd.cjs
CHANGED
|
@@ -1,63 +1,103 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(V,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@ag-grid-enterprise/core"),require("@ag-grid-community/core"),require("@ag-grid-community/client-side-row-model"),require("@ag-grid-community/infinite-row-model"),require("@ag-grid-enterprise/server-side-row-model"),require("@ag-grid-community/csv-export"),require("@ag-grid-enterprise/clipboard"),require("@ag-grid-enterprise/range-selection"),require("@ag-grid-enterprise/rich-select"),require("@ag-grid-enterprise/menu"),require("@ag-grid-enterprise/excel-export"),require("@ag-grid-community/vue3")):typeof define=="function"&&define.amd?define(["exports","vue","@ag-grid-enterprise/core","@ag-grid-community/core","@ag-grid-community/client-side-row-model","@ag-grid-community/infinite-row-model","@ag-grid-enterprise/server-side-row-model","@ag-grid-community/csv-export","@ag-grid-enterprise/clipboard","@ag-grid-enterprise/range-selection","@ag-grid-enterprise/rich-select","@ag-grid-enterprise/menu","@ag-grid-enterprise/excel-export","@ag-grid-community/vue3"],n):(V=typeof globalThis<"u"?globalThis:V||self,n(V.SdkVueLib={},V.Vue,V.core$1,V.core,V.clientSideRowModel,V.infiniteRowModel,V.serverSideRowModel,V.csvExport,V.clipboard,V.rangeSelection,V.richSelect,V.menu,V.excelExport,V.vue3))})(this,function(V,n,Le,C,Ja,cf,cd,df,dd,ud,uf,pf,gf,hf){"use strict";var E2=Object.defineProperty;var af=V=>{throw TypeError(V)};var N2=(V,n,Le)=>n in V?E2(V,n,{enumerable:!0,configurable:!0,writable:!0,value:Le}):V[n]=Le;var ze=(V,n,Le)=>N2(V,typeof n!="symbol"?n+"":n,Le),rd=(V,n,Le)=>n.has(V)||af("Cannot "+Le);var x=(V,n,Le)=>(rd(V,n,"read from private field"),Le?Le.call(V):n.get(V)),Re=(V,n,Le)=>n.has(V)?af("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(V):n.set(V,Le),ge=(V,n,Le,C)=>(rd(V,n,"write to private field"),C?C.call(V,Le):n.set(V,Le),Le),le=(V,n,Le)=>(rd(V,n,"access private method"),Le);var xl=(V,n,Le,C)=>({set _(Ja){ge(V,n,Ja,Le)},get _(){return x(V,n,C)}});var Sp,uo,Tp,Ep,sr,It,cr,dr,po,go,at,ur,nt,$e,xe,Ct,Ft,vt,ct,pr,dt,gr,hr,Rt,fr,hn,_t,ee,ad,In,Fr,ka,Ot,sf,Fn,ho,Sa,kn,Sn,id,Cl,_l,He,ld,Ya,Tn,sd;function ff(t,e){if(t==null)throw Error(e??"Empty (null | undefined) value");return t}function mf(t){return t!==null&&typeof t=="object"}function Br(t){if(Array.isArray(t)){const e=[];for(let r=0;r<t.length;r++)e[r]=Br(t[r]);return e}else if(mf(t)){const e={};return Object.keys(t).forEach(r=>{e[r]=Br(t[r])}),e}else return t}function kl(t,e,r=!0){let o=0,i;return function(...s){i=()=>{t.apply(this,s),o=new Date().getTime()+e,i=null,r&&setTimeout(()=>{i&&i()},e)},new Date().getTime()>o&&i()}}function vf(t){let e=0n,r;return async function(...o){const i=++e;try{await r}catch{}if(e!==i)return{ok:!1};const s=t(...o);return r=s,{ok:!0,value:await s}}}var Bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bf=function t(e){if(typeof e=="number"&&isNaN(e))throw new Error("NaN is not allowed");if(typeof e=="number"&&!isFinite(e))throw new Error("Infinity is not allowed");return e===null||typeof e!="object"?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce((i,s,d)=>`${i}${d===0?"":","}${t(s===void 0||typeof s=="symbol"?null:s)}`,"")}]`:`{${Object.keys(e).sort().reduce((o,i)=>{if(e[i]===void 0||typeof e[i]=="symbol")return o;const s=o.length===0?"":",";return`${o}${s}${t(i)}:${t(e[i])}`},"")}}`};const Po=yf(bf);class Sl extends Error{}class Tl extends Error{constructor(e){super(e.join(`
|
|
2
2
|
`)),this.errors=e}toString(){return this.errors.join(`
|
|
3
|
-
`)}}function Lf(a){return{ok:!0,value:a}}function Kc(a){if(!a)throw new bl;if(!a.ok)throw Error(a.errors.join(";"));return a.value}function Jc(a){return{value:a,errors:void 0}}function If(a){if(a.errors)throw new vl(a.errors);if(!a.value)throw new bl;return a.value}function Df(a){return a!==void 0}function wl(a,e){return Ea(a)===Ea(e)}const xl=a=>a,_l=a=>a instanceof Error?a:Error(String(a)),kl=a=>a.name==="ZodError",Cl=a=>{const{formErrors:e,fieldErrors:r}=a.flatten(),i=Object.entries(r).map(([l,s])=>l+":"+(s==null?void 0:s.join(",")));return e.concat(i).join("; ")};function Sl(a){const e=a.validate??xl,{autoSave:r}=a,i=t.ref(),l=t.ref(),s=O=>{l.value={model:Vr(O)}};t.watch(()=>a.get(),O=>s(O),{immediate:!0});const d=()=>{var O;a.onSave(e(Vr((O=l.value)==null?void 0:O.model)))},u=()=>{s(a.get()),i.value=void 0},p=O=>{const S=_l(O);kl(S)?i.value=Error(Cl(S)):i.value=S},f=O=>{i.value=void 0;try{e(O),r&&d()}catch(S){p(S)}},m=t.computed({get:()=>{var O;return(O=l.value)==null?void 0:O.model},set(O){s(O),f(O)}});t.watch(l,(O,S)=>{O&&O===S&&f(O.model)},{deep:!0});const _=t.computed(()=>!i.value),C=t.computed(()=>!wl(a.get(),t.unref(l))),T=t.computed(()=>i.value?i.value.message:"");return t.reactive({model:m,valid:_,isChanged:C,error:i,errorString:T,save:d,revert:u,setError:p})}function Rf(a,e){const r=a.validate??xl,{autoSave:i}=a,l=t.ref(),s=t.ref(),d=S=>{s.value={model:Object.assign(Vr(S),e??{}),stage:Symbol()}};t.watch(()=>a.get(),S=>d(S),{immediate:!0});const u=()=>{var S;a.onSave(r(Vr((S=s.value)==null?void 0:S.model)))},p=()=>{d(a.get()),l.value=void 0},f=S=>{const M=_l(S);kl(M)?l.value=Error(Cl(M)):l.value=M},m=S=>{l.value=void 0;try{r(S),i&&u()}catch(M){f(M)}},_=t.computed({get:()=>{var S;return(S=s.value)==null?void 0:S.model},set(){throw Error("Cannot replace base model")}});t.watch([()=>({args:_.value.args,ui:_.value.ui}),()=>{var S;return(S=s.value)==null?void 0:S.stage}],([S,M],[v,A])=>{M===A&&m(S)},{deep:!0});const C=t.computed(()=>!l.value),T=t.computed(()=>{var v;const{args:S,ui:M}=((v=t.unref(s))==null?void 0:v.model)??{};return!wl(a.get(),{args:S,ui:M})}),O=t.computed(()=>l.value?l.value.message:"");return t.reactive({model:_,valid:C,isChanged:T,error:l,errorString:O,save:u,revert:p,setError:f})}const Pf=a=>Object.fromEntries(new URL(a,"http://dummy").searchParams);function jf(a,e){const i=yl(e.setBlockArgs,100),l=yl(e.setBlockUiState,100),s=yl(e.setBlockArgsAndUiState,100),d=t.reactive({args:Object.freeze(a.args),outputs:Object.freeze(a.outputs),ui:Object.freeze(a.ui),navigationState:Object.freeze(a.navigationState)});e.onStateUpdates(async S=>{S.forEach(M=>{M.key==="args"&&(d.args=Object.freeze(M.value)),M.key==="ui"&&(d.ui=Object.freeze(M.value)),M.key==="outputs"&&(d.outputs=Object.freeze(M.value)),M.key==="navigationState"&&(d.navigationState=Object.freeze(M.value))}),await t.nextTick()});const u=()=>Vr(d.args),p=()=>Vr(d.ui),f=()=>Vr(d.navigationState),m={createArgsModel(S={}){return Sl({get(){return S.transform?S.transform(d.args):d.args},validate:S.validate,autoSave:!0,onSave(M){i(M)}})},createUiModel(S={},M){return Sl({get(){return S.transform?S.transform(d.ui):d.ui??M()},validate:S.validate,autoSave:!0,onSave(v){l(v)}})},useOutputs(...S){const M=t.reactive({errors:void 0,value:void 0});return t.watch(()=>d.outputs,()=>{try{Object.assign(M,{value:this.unwrapOutputs(...S),errors:void 0})}catch(v){Object.assign(M,{value:void 0,errors:[String(v)]})}},{immediate:!0,deep:!0}),M},unwrapOutputs(...S){const M=d.outputs,v=S.map(A=>[A,Kc(M[A])]);return Object.fromEntries(v)},getOutputField(S){return d.outputs[S]},getOutputFieldOkOptional(S){console.warn("use reactive app.outputValues.fieldName instead instead of getOutputFieldOkOptional(fieldName)");const M=this.getOutputField(S);if(M&&M.ok)return M.value},getOutputFieldErrorsOptional(S){console.warn("use reactive app.outputErrors.fieldName instead instead of getOutputFieldErrorsOptional(fieldName)");const M=this.getOutputField(S);if(M&&!M.ok)return M.errors},updateArgs(S){const M=u();return S(M),e.setBlockArgs(M)},updateUiState(S){const M=p();return e.setBlockUiState(S(M))},updateNavigationState(S){const M=f();return S(M),e.setNavigationState(M)},navigateTo(S){const M=f();return M.href=S,e.setNavigationState(M)}},_=t.computed(()=>{const S=Object.entries(d.outputs).map(([M,v])=>[M,v.ok&&v.value!==void 0?v.value:void 0]);return Object.fromEntries(S)}),C=t.computed(()=>{const S=Object.entries(d.outputs).map(([M,v])=>[M,v&&!v.ok?new vl(v.errors):void 0]);return Object.fromEntries(S)}),T={snapshot:d,queryParams:t.computed(()=>Pf(d.navigationState.href)),href:t.computed(()=>d.navigationState.href),hasErrors:t.computed(()=>Object.values(d.outputs).some(S=>!(S!=null&&S.ok))),outputValues:t.computed(()=>(console.warn("Change app.outputValues to app.model.outputs"),_.value)),outputErrors:t.computed(()=>(console.warn("Change app.outputErrors to app.model.outputErrors"),C.value)),args:t.computed(()=>(console.warn("Change app.args to app.snapshot.args"),d.args)),outputs:t.computed(()=>(console.warn("Change app.outputs to app.snapshot.outputs"),d.outputs)),ui:t.computed(()=>(console.warn("Change app.ui to app.snapshot.ui"),d.ui)),navigationState:t.computed(()=>(console.warn("Change app.navigationState to app.snapshot.navigationState"),d.navigationState))},O=Rf({get(){return{args:d.args,ui:d.ui}},autoSave:!0,onSave(S){s(S.args,S.ui)}},{outputs:_,outputErrors:C});return t.reactive(Object.assign(O,m,T))}var Oe;(function(a){a.assertEqual=l=>l;function e(l){}a.assertIs=e;function r(l){throw new Error}a.assertNever=r,a.arrayToEnum=l=>{const s={};for(const d of l)s[d]=d;return s},a.getValidEnumValues=l=>{const s=a.objectKeys(l).filter(u=>typeof l[l[u]]!="number"),d={};for(const u of s)d[u]=l[u];return a.objectValues(d)},a.objectValues=l=>a.objectKeys(l).map(function(s){return l[s]}),a.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const s=[];for(const d in l)Object.prototype.hasOwnProperty.call(l,d)&&s.push(d);return s},a.find=(l,s)=>{for(const d of l)if(s(d))return d},a.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function i(l,s=" | "){return l.map(d=>typeof d=="string"?`'${d}'`:d).join(s)}a.joinValues=i,a.jsonStringifyReplacer=(l,s)=>typeof s=="bigint"?s.toString():s})(Oe||(Oe={}));var Tl;(function(a){a.mergeShapes=(e,r)=>({...e,...r})})(Tl||(Tl={}));const ne=Oe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qr=a=>{switch(typeof a){case"undefined":return ne.undefined;case"string":return ne.string;case"number":return isNaN(a)?ne.nan:ne.number;case"boolean":return ne.boolean;case"function":return ne.function;case"bigint":return ne.bigint;case"symbol":return ne.symbol;case"object":return Array.isArray(a)?ne.array:a===null?ne.null:a.then&&typeof a.then=="function"&&a.catch&&typeof a.catch=="function"?ne.promise:typeof Map<"u"&&a instanceof Map?ne.map:typeof Set<"u"&&a instanceof Set?ne.set:typeof Date<"u"&&a instanceof Date?ne.date:ne.object;default:return ne.unknown}},G=Oe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ff=a=>JSON.stringify(a,null,2).replace(/"([^"]+)":/g,"$1:");class Mt extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const r=e||function(s){return s.message},i={_errors:[]},l=s=>{for(const d of s.issues)if(d.code==="invalid_union")d.unionErrors.map(l);else if(d.code==="invalid_return_type")l(d.returnTypeError);else if(d.code==="invalid_arguments")l(d.argumentsError);else if(d.path.length===0)i._errors.push(r(d));else{let u=i,p=0;for(;p<d.path.length;){const f=d.path[p];p===d.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(r(d))):u[f]=u[f]||{_errors:[]},u=u[f],p++}}};return l(this),i}static assert(e){if(!(e instanceof Mt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Oe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},i=[];for(const l of this.issues)l.path.length>0?(r[l.path[0]]=r[l.path[0]]||[],r[l.path[0]].push(e(l))):i.push(e(l));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}Mt.create=a=>new Mt(a);const Wn=(a,e)=>{let r;switch(a.code){case G.invalid_type:a.received===ne.undefined?r="Required":r=`Expected ${a.expected}, received ${a.received}`;break;case G.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(a.expected,Oe.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:r=`Unrecognized key(s) in object: ${Oe.joinValues(a.keys,", ")}`;break;case G.invalid_union:r="Invalid input";break;case G.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Oe.joinValues(a.options)}`;break;case G.invalid_enum_value:r=`Invalid enum value. Expected ${Oe.joinValues(a.options)}, received '${a.received}'`;break;case G.invalid_arguments:r="Invalid function arguments";break;case G.invalid_return_type:r="Invalid function return type";break;case G.invalid_date:r="Invalid date";break;case G.invalid_string:typeof a.validation=="object"?"includes"in a.validation?(r=`Invalid input: must include "${a.validation.includes}"`,typeof a.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${a.validation.position}`)):"startsWith"in a.validation?r=`Invalid input: must start with "${a.validation.startsWith}"`:"endsWith"in a.validation?r=`Invalid input: must end with "${a.validation.endsWith}"`:Oe.assertNever(a.validation):a.validation!=="regex"?r=`Invalid ${a.validation}`:r="Invalid";break;case G.too_small:a.type==="array"?r=`Array must contain ${a.exact?"exactly":a.inclusive?"at least":"more than"} ${a.minimum} element(s)`:a.type==="string"?r=`String must contain ${a.exact?"exactly":a.inclusive?"at least":"over"} ${a.minimum} character(s)`:a.type==="number"?r=`Number must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${a.minimum}`:a.type==="date"?r=`Date must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(a.minimum))}`:r="Invalid input";break;case G.too_big:a.type==="array"?r=`Array must contain ${a.exact?"exactly":a.inclusive?"at most":"less than"} ${a.maximum} element(s)`:a.type==="string"?r=`String must contain ${a.exact?"exactly":a.inclusive?"at most":"under"} ${a.maximum} character(s)`:a.type==="number"?r=`Number must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="bigint"?r=`BigInt must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="date"?r=`Date must be ${a.exact?"exactly":a.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(a.maximum))}`:r="Invalid input";break;case G.custom:r="Invalid input";break;case G.invalid_intersection_types:r="Intersection results could not be merged";break;case G.not_multiple_of:r=`Number must be a multiple of ${a.multipleOf}`;break;case G.not_finite:r="Number must be finite";break;default:r=e.defaultError,Oe.assertNever(a)}return{message:r}};let Qc=Wn;function $f(a){Qc=a}function Wo(){return Qc}const qo=a=>{const{data:e,path:r,errorMaps:i,issueData:l}=a,s=[...r,...l.path||[]],d={...l,path:s};if(l.message!==void 0)return{...l,path:s,message:l.message};let u="";const p=i.filter(f=>!!f).slice().reverse();for(const f of p)u=f(d,{data:e,defaultError:u}).message;return{...l,path:s,message:u}},Zf=[];function te(a,e){const r=Wo(),i=qo({issueData:e,data:a.data,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,r,r===Wn?void 0:Wn].filter(l=>!!l)});a.common.issues.push(i)}class gt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const i=[];for(const l of r){if(l.status==="aborted")return be;l.status==="dirty"&&e.dirty(),i.push(l.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,r){const i=[];for(const l of r){const s=await l.key,d=await l.value;i.push({key:s,value:d})}return gt.mergeObjectSync(e,i)}static mergeObjectSync(e,r){const i={};for(const l of r){const{key:s,value:d}=l;if(s.status==="aborted"||d.status==="aborted")return be;s.status==="dirty"&&e.dirty(),d.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof d.value<"u"||l.alwaysSet)&&(i[s.value]=d.value)}return{status:e.value,value:i}}}const be=Object.freeze({status:"aborted"}),qn=a=>({status:"dirty",value:a}),bt=a=>({status:"valid",value:a}),El=a=>a.status==="aborted",Nl=a=>a.status==="dirty",Na=a=>a.status==="valid",Ba=a=>typeof Promise<"u"&&a instanceof Promise;function Yo(a,e,r,i){if(typeof e=="function"?a!==e||!i:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(a)}function Xc(a,e,r,i,l){if(typeof e=="function"?a!==e||!l:!e.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(a,r),r}typeof SuppressedError=="function"&&SuppressedError;var se;(function(a){a.errToObj=e=>typeof e=="string"?{message:e}:e||{},a.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(se||(se={}));var Va,Ma;class xr{constructor(e,r,i,l){this._cachedPath=[],this.parent=e,this.data=r,this._path=i,this._key=l}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ed=(a,e)=>{if(Na(e))return{success:!0,data:e.value};if(!a.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Mt(a.common.issues);return this._error=r,this._error}}};function Ce(a){if(!a)return{};const{errorMap:e,invalid_type_error:r,required_error:i,description:l}=a;if(e&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:l}:{errorMap:(d,u)=>{var p,f;const{message:m}=a;return d.code==="invalid_enum_value"?{message:m??u.defaultError}:typeof u.data>"u"?{message:(p=m??i)!==null&&p!==void 0?p:u.defaultError}:d.code!=="invalid_type"?{message:u.defaultError}:{message:(f=m??r)!==null&&f!==void 0?f:u.defaultError}},description:l}}class Ee{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return qr(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:qr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new gt,ctx:{common:e.parent.common,data:e.data,parsedType:qr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(Ba(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const i=this.safeParse(e,r);if(i.success)return i.data;throw i.error}safeParse(e,r){var i;const l={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qr(e)},s=this._parseSync({data:e,path:l.path,parent:l});return ed(l,s)}async parseAsync(e,r){const i=await this.safeParseAsync(e,r);if(i.success)return i.data;throw i.error}async safeParseAsync(e,r){const i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qr(e)},l=this._parse({data:e,path:i.path,parent:i}),s=await(Ba(l)?l:Promise.resolve(l));return ed(i,s)}refine(e,r){const i=l=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(l):r;return this._refinement((l,s)=>{const d=e(l),u=()=>s.addIssue({code:G.custom,...i(l)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(u(),!1)):d?!0:(u(),!1)})}refinement(e,r){return this._refinement((i,l)=>e(i)?!0:(l.addIssue(typeof r=="function"?r(i,l):r),!1))}_refinement(e){return new nr({schema:this,typeName:he.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return kr.create(this,this._def)}nullable(){return Jr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rr.create(this,this._def)}promise(){return Jn.create(this,this._def)}or(e){return La.create([this,e],this._def)}and(e){return Ia.create(this,e,this._def)}transform(e){return new nr({...Ce(this._def),schema:this,typeName:he.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Fa({...Ce(this._def),innerType:this,defaultValue:r,typeName:he.ZodDefault})}brand(){return new Ml({typeName:he.ZodBranded,type:this,...Ce(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new $a({...Ce(this._def),innerType:this,catchValue:r,typeName:he.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Za.create(this,e)}readonly(){return Ua.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Uf=/^c[^\s-]{8,}$/i,Hf=/^[0-9a-z]+$/,Wf=/^[0-9A-HJKMNP-TV-Z]{26}$/,qf=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Yf=/^[a-z0-9_-]{21}$/i,Gf=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Kf=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Jf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bl;const Qf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xf=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,eh=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,td="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",th=new RegExp(`^${td}$`);function rd(a){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return a.precision?e=`${e}\\.\\d{${a.precision}}`:a.precision==null&&(e=`${e}(\\.\\d+)?`),e}function rh(a){return new RegExp(`^${rd(a)}$`)}function nd(a){let e=`${td}T${rd(a)}`;const r=[];return r.push(a.local?"Z?":"Z"),a.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function nh(a,e){return!!((e==="v4"||!e)&&Qf.test(a)||(e==="v6"||!e)&&Xf.test(a))}class tr extends Ee{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ne.string){const s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_type,expected:ne.string,received:s.parsedType}),be}const i=new gt;let l;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(l=this._getOrReturnCtx(e,l),te(l,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(l=this._getOrReturnCtx(e,l),te(l,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){const d=e.data.length>s.value,u=e.data.length<s.value;(d||u)&&(l=this._getOrReturnCtx(e,l),d?te(l,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&te(l,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")Kf.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"email",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Bl||(Bl=new RegExp(Jf,"u")),Bl.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"emoji",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")qf.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"uuid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")Yf.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"nanoid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")Uf.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"cuid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")Hf.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"cuid2",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")Wf.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"ulid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{l=this._getOrReturnCtx(e,l),te(l,{validation:"url",code:G.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"regex",code:G.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(l=this._getOrReturnCtx(e,l),te(l,{code:G.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(l=this._getOrReturnCtx(e,l),te(l,{code:G.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(l=this._getOrReturnCtx(e,l),te(l,{code:G.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?nd(s).test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{code:G.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?th.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{code:G.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?rh(s).test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{code:G.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?Gf.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"duration",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?nh(e.data,s.version)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"ip",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?eh.test(e.data)||(l=this._getOrReturnCtx(e,l),te(l,{validation:"base64",code:G.invalid_string,message:s.message}),i.dirty()):Oe.assertNever(s);return{status:i.value,value:e.data}}_regex(e,r,i){return this.refinement(l=>e.test(l),{validation:r,code:G.invalid_string,...se.errToObj(i)})}_addCheck(e){return new tr({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...se.errToObj(e)})}url(e){return this._addCheck({kind:"url",...se.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...se.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...se.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...se.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...se.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...se.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...se.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...se.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...se.errToObj(e)})}datetime(e){var r,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,local:(i=e==null?void 0:e.local)!==null&&i!==void 0?i:!1,...se.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...se.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...se.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...se.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...se.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...se.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...se.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...se.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...se.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...se.errToObj(r)})}nonempty(e){return this.min(1,se.errToObj(e))}trim(){return new tr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new tr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new tr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}tr.create=a=>{var e;return new tr({checks:[],typeName:he.ZodString,coerce:(e=a==null?void 0:a.coerce)!==null&&e!==void 0?e:!1,...Ce(a)})};function ah(a,e){const r=(a.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,l=r>i?r:i,s=parseInt(a.toFixed(l).replace(".","")),d=parseInt(e.toFixed(l).replace(".",""));return s%d/Math.pow(10,l)}class Yr extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ne.number){const s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_type,expected:ne.number,received:s.parsedType}),be}let i;const l=new gt;for(const s of this._def.checks)s.kind==="int"?Oe.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),te(i,{code:G.invalid_type,expected:"integer",received:"float",message:s.message}),l.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),l.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),l.dirty()):s.kind==="multipleOf"?ah(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),te(i,{code:G.not_finite,message:s.message}),l.dirty()):Oe.assertNever(s);return{status:l.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,se.toString(r))}gt(e,r){return this.setLimit("min",e,!1,se.toString(r))}lte(e,r){return this.setLimit("max",e,!0,se.toString(r))}lt(e,r){return this.setLimit("max",e,!1,se.toString(r))}setLimit(e,r,i,l){return new Yr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:se.toString(l)}]})}_addCheck(e){return new Yr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:se.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:se.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:se.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:se.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:se.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:se.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:se.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:se.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:se.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Oe.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(r)&&Number.isFinite(e)}}Yr.create=a=>new Yr({checks:[],typeName:he.ZodNumber,coerce:(a==null?void 0:a.coerce)||!1,...Ce(a)});class Gr extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ne.bigint){const s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_type,expected:ne.bigint,received:s.parsedType}),be}let i;const l=new gt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),l.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),l.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),te(i,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):Oe.assertNever(s);return{status:l.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,se.toString(r))}gt(e,r){return this.setLimit("min",e,!1,se.toString(r))}lte(e,r){return this.setLimit("max",e,!0,se.toString(r))}lt(e,r){return this.setLimit("max",e,!1,se.toString(r))}setLimit(e,r,i,l){return new Gr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:se.toString(l)}]})}_addCheck(e){return new Gr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:se.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:se.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:se.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:se.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:se.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Gr.create=a=>{var e;return new Gr({checks:[],typeName:he.ZodBigInt,coerce:(e=a==null?void 0:a.coerce)!==null&&e!==void 0?e:!1,...Ce(a)})};class za extends Ee{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ne.boolean){const i=this._getOrReturnCtx(e);return te(i,{code:G.invalid_type,expected:ne.boolean,received:i.parsedType}),be}return bt(e.data)}}za.create=a=>new za({typeName:he.ZodBoolean,coerce:(a==null?void 0:a.coerce)||!1,...Ce(a)});class Cn extends Ee{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ne.date){const s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_type,expected:ne.date,received:s.parsedType}),be}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return te(s,{code:G.invalid_date}),be}const i=new gt;let l;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(l=this._getOrReturnCtx(e,l),te(l,{code:G.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(l=this._getOrReturnCtx(e,l),te(l,{code:G.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Oe.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Cn({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:se.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:se.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}Cn.create=a=>new Cn({checks:[],coerce:(a==null?void 0:a.coerce)||!1,typeName:he.ZodDate,...Ce(a)});class Go extends Ee{_parse(e){if(this._getType(e)!==ne.symbol){const i=this._getOrReturnCtx(e);return te(i,{code:G.invalid_type,expected:ne.symbol,received:i.parsedType}),be}return bt(e.data)}}Go.create=a=>new Go({typeName:he.ZodSymbol,...Ce(a)});class Aa extends Ee{_parse(e){if(this._getType(e)!==ne.undefined){const i=this._getOrReturnCtx(e);return te(i,{code:G.invalid_type,expected:ne.undefined,received:i.parsedType}),be}return bt(e.data)}}Aa.create=a=>new Aa({typeName:he.ZodUndefined,...Ce(a)});class Oa extends Ee{_parse(e){if(this._getType(e)!==ne.null){const i=this._getOrReturnCtx(e);return te(i,{code:G.invalid_type,expected:ne.null,received:i.parsedType}),be}return bt(e.data)}}Oa.create=a=>new Oa({typeName:he.ZodNull,...Ce(a)});class Yn extends Ee{constructor(){super(...arguments),this._any=!0}_parse(e){return bt(e.data)}}Yn.create=a=>new Yn({typeName:he.ZodAny,...Ce(a)});class Sn extends Ee{constructor(){super(...arguments),this._unknown=!0}_parse(e){return bt(e.data)}}Sn.create=a=>new Sn({typeName:he.ZodUnknown,...Ce(a)});class Mr extends Ee{_parse(e){const r=this._getOrReturnCtx(e);return te(r,{code:G.invalid_type,expected:ne.never,received:r.parsedType}),be}}Mr.create=a=>new Mr({typeName:he.ZodNever,...Ce(a)});class Ko extends Ee{_parse(e){if(this._getType(e)!==ne.undefined){const i=this._getOrReturnCtx(e);return te(i,{code:G.invalid_type,expected:ne.void,received:i.parsedType}),be}return bt(e.data)}}Ko.create=a=>new Ko({typeName:he.ZodVoid,...Ce(a)});class rr extends Ee{_parse(e){const{ctx:r,status:i}=this._processInputParams(e),l=this._def;if(r.parsedType!==ne.array)return te(r,{code:G.invalid_type,expected:ne.array,received:r.parsedType}),be;if(l.exactLength!==null){const d=r.data.length>l.exactLength.value,u=r.data.length<l.exactLength.value;(d||u)&&(te(r,{code:d?G.too_big:G.too_small,minimum:u?l.exactLength.value:void 0,maximum:d?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),i.dirty())}if(l.minLength!==null&&r.data.length<l.minLength.value&&(te(r,{code:G.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),i.dirty()),l.maxLength!==null&&r.data.length>l.maxLength.value&&(te(r,{code:G.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((d,u)=>l.type._parseAsync(new xr(r,d,r.path,u)))).then(d=>gt.mergeArray(i,d));const s=[...r.data].map((d,u)=>l.type._parseSync(new xr(r,d,r.path,u)));return gt.mergeArray(i,s)}get element(){return this._def.type}min(e,r){return new rr({...this._def,minLength:{value:e,message:se.toString(r)}})}max(e,r){return new rr({...this._def,maxLength:{value:e,message:se.toString(r)}})}length(e,r){return new rr({...this._def,exactLength:{value:e,message:se.toString(r)}})}nonempty(e){return this.min(1,e)}}rr.create=(a,e)=>new rr({type:a,minLength:null,maxLength:null,exactLength:null,typeName:he.ZodArray,...Ce(e)});function Gn(a){if(a instanceof qe){const e={};for(const r in a.shape){const i=a.shape[r];e[r]=kr.create(Gn(i))}return new qe({...a._def,shape:()=>e})}else return a instanceof rr?new rr({...a._def,type:Gn(a.element)}):a instanceof kr?kr.create(Gn(a.unwrap())):a instanceof Jr?Jr.create(Gn(a.unwrap())):a instanceof _r?_r.create(a.items.map(e=>Gn(e))):a}class qe extends Ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=Oe.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ne.object){const f=this._getOrReturnCtx(e);return te(f,{code:G.invalid_type,expected:ne.object,received:f.parsedType}),be}const{status:i,ctx:l}=this._processInputParams(e),{shape:s,keys:d}=this._getCached(),u=[];if(!(this._def.catchall instanceof Mr&&this._def.unknownKeys==="strip"))for(const f in l.data)d.includes(f)||u.push(f);const p=[];for(const f of d){const m=s[f],_=l.data[f];p.push({key:{status:"valid",value:f},value:m._parse(new xr(l,_,l.path,f)),alwaysSet:f in l.data})}if(this._def.catchall instanceof Mr){const f=this._def.unknownKeys;if(f==="passthrough")for(const m of u)p.push({key:{status:"valid",value:m},value:{status:"valid",value:l.data[m]}});else if(f==="strict")u.length>0&&(te(l,{code:G.unrecognized_keys,keys:u}),i.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const m of u){const _=l.data[m];p.push({key:{status:"valid",value:m},value:f._parse(new xr(l,_,l.path,m)),alwaysSet:m in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const f=[];for(const m of p){const _=await m.key,C=await m.value;f.push({key:_,value:C,alwaysSet:m.alwaysSet})}return f}).then(f=>gt.mergeObjectSync(i,f)):gt.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return se.errToObj,new qe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,i)=>{var l,s,d,u;const p=(d=(s=(l=this._def).errorMap)===null||s===void 0?void 0:s.call(l,r,i).message)!==null&&d!==void 0?d:i.defaultError;return r.code==="unrecognized_keys"?{message:(u=se.errToObj(e).message)!==null&&u!==void 0?u:p}:{message:p}}}:{}})}strip(){return new qe({...this._def,unknownKeys:"strip"})}passthrough(){return new qe({...this._def,unknownKeys:"passthrough"})}extend(e){return new qe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new qe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:he.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new qe({...this._def,catchall:e})}pick(e){const r={};return Oe.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new qe({...this._def,shape:()=>r})}omit(e){const r={};return Oe.objectKeys(this.shape).forEach(i=>{e[i]||(r[i]=this.shape[i])}),new qe({...this._def,shape:()=>r})}deepPartial(){return Gn(this)}partial(e){const r={};return Oe.objectKeys(this.shape).forEach(i=>{const l=this.shape[i];e&&!e[i]?r[i]=l:r[i]=l.optional()}),new qe({...this._def,shape:()=>r})}required(e){const r={};return Oe.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])r[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof kr;)s=s._def.innerType;r[i]=s}}),new qe({...this._def,shape:()=>r})}keyof(){return ad(Oe.objectKeys(this.shape))}}qe.create=(a,e)=>new qe({shape:()=>a,unknownKeys:"strip",catchall:Mr.create(),typeName:he.ZodObject,...Ce(e)}),qe.strictCreate=(a,e)=>new qe({shape:()=>a,unknownKeys:"strict",catchall:Mr.create(),typeName:he.ZodObject,...Ce(e)}),qe.lazycreate=(a,e)=>new qe({shape:a,unknownKeys:"strip",catchall:Mr.create(),typeName:he.ZodObject,...Ce(e)});class La extends Ee{_parse(e){const{ctx:r}=this._processInputParams(e),i=this._def.options;function l(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return r.common.issues.push(...u.ctx.common.issues),u.result;const d=s.map(u=>new Mt(u.ctx.common.issues));return te(r,{code:G.invalid_union,unionErrors:d}),be}if(r.common.async)return Promise.all(i.map(async s=>{const d={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:d}),ctx:d}})).then(l);{let s;const d=[];for(const p of i){const f={...r,common:{...r.common,issues:[]},parent:null},m=p._parseSync({data:r.data,path:r.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!s&&(s={result:m,ctx:f}),f.common.issues.length&&d.push(f.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const u=d.map(p=>new Mt(p));return te(r,{code:G.invalid_union,unionErrors:u}),be}}get options(){return this._def.options}}La.create=(a,e)=>new La({options:a,typeName:he.ZodUnion,...Ce(e)});const zr=a=>a instanceof Ra?zr(a.schema):a instanceof nr?zr(a.innerType()):a instanceof Pa?[a.value]:a instanceof Kr?a.options:a instanceof ja?Oe.objectValues(a.enum):a instanceof Fa?zr(a._def.innerType):a instanceof Aa?[void 0]:a instanceof Oa?[null]:a instanceof kr?[void 0,...zr(a.unwrap())]:a instanceof Jr?[null,...zr(a.unwrap())]:a instanceof Ml||a instanceof Ua?zr(a.unwrap()):a instanceof $a?zr(a._def.innerType):[];class Jo extends Ee{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.object)return te(r,{code:G.invalid_type,expected:ne.object,received:r.parsedType}),be;const i=this.discriminator,l=r.data[i],s=this.optionsMap.get(l);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(te(r,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,i){const l=new Map;for(const s of r){const d=zr(s.shape[e]);if(!d.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const u of d){if(l.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);l.set(u,s)}}return new Jo({typeName:he.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:l,...Ce(i)})}}function Vl(a,e){const r=qr(a),i=qr(e);if(a===e)return{valid:!0,data:a};if(r===ne.object&&i===ne.object){const l=Oe.objectKeys(e),s=Oe.objectKeys(a).filter(u=>l.indexOf(u)!==-1),d={...a,...e};for(const u of s){const p=Vl(a[u],e[u]);if(!p.valid)return{valid:!1};d[u]=p.data}return{valid:!0,data:d}}else if(r===ne.array&&i===ne.array){if(a.length!==e.length)return{valid:!1};const l=[];for(let s=0;s<a.length;s++){const d=a[s],u=e[s],p=Vl(d,u);if(!p.valid)return{valid:!1};l.push(p.data)}return{valid:!0,data:l}}else return r===ne.date&&i===ne.date&&+a==+e?{valid:!0,data:a}:{valid:!1}}class Ia extends Ee{_parse(e){const{status:r,ctx:i}=this._processInputParams(e),l=(s,d)=>{if(El(s)||El(d))return be;const u=Vl(s.value,d.value);return u.valid?((Nl(s)||Nl(d))&&r.dirty(),{status:r.value,value:u.data}):(te(i,{code:G.invalid_intersection_types}),be)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,d])=>l(s,d)):l(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Ia.create=(a,e,r)=>new Ia({left:a,right:e,typeName:he.ZodIntersection,...Ce(r)});class _r extends Ee{_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ne.array)return te(i,{code:G.invalid_type,expected:ne.array,received:i.parsedType}),be;if(i.data.length<this._def.items.length)return te(i,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),be;!this._def.rest&&i.data.length>this._def.items.length&&(te(i,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...i.data].map((d,u)=>{const p=this._def.items[u]||this._def.rest;return p?p._parse(new xr(i,d,i.path,u)):null}).filter(d=>!!d);return i.common.async?Promise.all(s).then(d=>gt.mergeArray(r,d)):gt.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new _r({...this._def,rest:e})}}_r.create=(a,e)=>{if(!Array.isArray(a))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _r({items:a,typeName:he.ZodTuple,rest:null,...Ce(e)})};class Da extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ne.object)return te(i,{code:G.invalid_type,expected:ne.object,received:i.parsedType}),be;const l=[],s=this._def.keyType,d=this._def.valueType;for(const u in i.data)l.push({key:s._parse(new xr(i,u,i.path,u)),value:d._parse(new xr(i,i.data[u],i.path,u)),alwaysSet:u in i.data});return i.common.async?gt.mergeObjectAsync(r,l):gt.mergeObjectSync(r,l)}get element(){return this._def.valueType}static create(e,r,i){return r instanceof Ee?new Da({keyType:e,valueType:r,typeName:he.ZodRecord,...Ce(i)}):new Da({keyType:tr.create(),valueType:e,typeName:he.ZodRecord,...Ce(r)})}}class Qo extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ne.map)return te(i,{code:G.invalid_type,expected:ne.map,received:i.parsedType}),be;const l=this._def.keyType,s=this._def.valueType,d=[...i.data.entries()].map(([u,p],f)=>({key:l._parse(new xr(i,u,i.path,[f,"key"])),value:s._parse(new xr(i,p,i.path,[f,"value"]))}));if(i.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const p of d){const f=await p.key,m=await p.value;if(f.status==="aborted"||m.status==="aborted")return be;(f.status==="dirty"||m.status==="dirty")&&r.dirty(),u.set(f.value,m.value)}return{status:r.value,value:u}})}else{const u=new Map;for(const p of d){const f=p.key,m=p.value;if(f.status==="aborted"||m.status==="aborted")return be;(f.status==="dirty"||m.status==="dirty")&&r.dirty(),u.set(f.value,m.value)}return{status:r.value,value:u}}}}Qo.create=(a,e,r)=>new Qo({valueType:e,keyType:a,typeName:he.ZodMap,...Ce(r)});class Tn extends Ee{_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ne.set)return te(i,{code:G.invalid_type,expected:ne.set,received:i.parsedType}),be;const l=this._def;l.minSize!==null&&i.data.size<l.minSize.value&&(te(i,{code:G.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),r.dirty()),l.maxSize!==null&&i.data.size>l.maxSize.value&&(te(i,{code:G.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),r.dirty());const s=this._def.valueType;function d(p){const f=new Set;for(const m of p){if(m.status==="aborted")return be;m.status==="dirty"&&r.dirty(),f.add(m.value)}return{status:r.value,value:f}}const u=[...i.data.values()].map((p,f)=>s._parse(new xr(i,p,i.path,f)));return i.common.async?Promise.all(u).then(p=>d(p)):d(u)}min(e,r){return new Tn({...this._def,minSize:{value:e,message:se.toString(r)}})}max(e,r){return new Tn({...this._def,maxSize:{value:e,message:se.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Tn.create=(a,e)=>new Tn({valueType:a,minSize:null,maxSize:null,typeName:he.ZodSet,...Ce(e)});class Kn extends Ee{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.function)return te(r,{code:G.invalid_type,expected:ne.function,received:r.parsedType}),be;function i(u,p){return qo({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Wo(),Wn].filter(f=>!!f),issueData:{code:G.invalid_arguments,argumentsError:p}})}function l(u,p){return qo({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Wo(),Wn].filter(f=>!!f),issueData:{code:G.invalid_return_type,returnTypeError:p}})}const s={errorMap:r.common.contextualErrorMap},d=r.data;if(this._def.returns instanceof Jn){const u=this;return bt(async function(...p){const f=new Mt([]),m=await u._def.args.parseAsync(p,s).catch(T=>{throw f.addIssue(i(p,T)),f}),_=await Reflect.apply(d,this,m);return await u._def.returns._def.type.parseAsync(_,s).catch(T=>{throw f.addIssue(l(_,T)),f})})}else{const u=this;return bt(function(...p){const f=u._def.args.safeParse(p,s);if(!f.success)throw new Mt([i(p,f.error)]);const m=Reflect.apply(d,this,f.data),_=u._def.returns.safeParse(m,s);if(!_.success)throw new Mt([l(m,_.error)]);return _.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Kn({...this._def,args:_r.create(e).rest(Sn.create())})}returns(e){return new Kn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,i){return new Kn({args:e||_r.create([]).rest(Sn.create()),returns:r||Sn.create(),typeName:he.ZodFunction,...Ce(i)})}}class Ra extends Ee{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Ra.create=(a,e)=>new Ra({getter:a,typeName:he.ZodLazy,...Ce(e)});class Pa extends Ee{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return te(r,{received:r.data,code:G.invalid_literal,expected:this._def.value}),be}return{status:"valid",value:e.data}}get value(){return this._def.value}}Pa.create=(a,e)=>new Pa({value:a,typeName:he.ZodLiteral,...Ce(e)});function ad(a,e){return new Kr({values:a,typeName:he.ZodEnum,...Ce(e)})}class Kr extends Ee{constructor(){super(...arguments),Va.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),i=this._def.values;return te(r,{expected:Oe.joinValues(i),received:r.parsedType,code:G.invalid_type}),be}if(Yo(this,Va)||Xc(this,Va,new Set(this._def.values)),!Yo(this,Va).has(e.data)){const r=this._getOrReturnCtx(e),i=this._def.values;return te(r,{received:r.data,code:G.invalid_enum_value,options:i}),be}return bt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Kr.create(e,{...this._def,...r})}exclude(e,r=this._def){return Kr.create(this.options.filter(i=>!e.includes(i)),{...this._def,...r})}}Va=new WeakMap,Kr.create=ad;class ja extends Ee{constructor(){super(...arguments),Ma.set(this,void 0)}_parse(e){const r=Oe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==ne.string&&i.parsedType!==ne.number){const l=Oe.objectValues(r);return te(i,{expected:Oe.joinValues(l),received:i.parsedType,code:G.invalid_type}),be}if(Yo(this,Ma)||Xc(this,Ma,new Set(Oe.getValidEnumValues(this._def.values))),!Yo(this,Ma).has(e.data)){const l=Oe.objectValues(r);return te(i,{received:i.data,code:G.invalid_enum_value,options:l}),be}return bt(e.data)}get enum(){return this._def.values}}Ma=new WeakMap,ja.create=(a,e)=>new ja({values:a,typeName:he.ZodNativeEnum,...Ce(e)});class Jn extends Ee{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.promise&&r.common.async===!1)return te(r,{code:G.invalid_type,expected:ne.promise,received:r.parsedType}),be;const i=r.parsedType===ne.promise?r.data:Promise.resolve(r.data);return bt(i.then(l=>this._def.type.parseAsync(l,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Jn.create=(a,e)=>new Jn({type:a,typeName:he.ZodPromise,...Ce(e)});class nr extends Ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===he.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:i}=this._processInputParams(e),l=this._def.effect||null,s={addIssue:d=>{te(i,d),d.fatal?r.abort():r.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),l.type==="preprocess"){const d=l.transform(i.data,s);if(i.common.async)return Promise.resolve(d).then(async u=>{if(r.value==="aborted")return be;const p=await this._def.schema._parseAsync({data:u,path:i.path,parent:i});return p.status==="aborted"?be:p.status==="dirty"||r.value==="dirty"?qn(p.value):p});{if(r.value==="aborted")return be;const u=this._def.schema._parseSync({data:d,path:i.path,parent:i});return u.status==="aborted"?be:u.status==="dirty"||r.value==="dirty"?qn(u.value):u}}if(l.type==="refinement"){const d=u=>{const p=l.refinement(u,s);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return u.status==="aborted"?be:(u.status==="dirty"&&r.dirty(),d(u.value),{status:r.value,value:u.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>u.status==="aborted"?be:(u.status==="dirty"&&r.dirty(),d(u.value).then(()=>({status:r.value,value:u.value}))))}if(l.type==="transform")if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Na(d))return d;const u=l.transform(d.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:u}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>Na(d)?Promise.resolve(l.transform(d.value,s)).then(u=>({status:r.value,value:u})):d);Oe.assertNever(l)}}nr.create=(a,e,r)=>new nr({schema:a,typeName:he.ZodEffects,effect:e,...Ce(r)}),nr.createWithPreprocess=(a,e,r)=>new nr({schema:e,effect:{type:"preprocess",transform:a},typeName:he.ZodEffects,...Ce(r)});class kr extends Ee{_parse(e){return this._getType(e)===ne.undefined?bt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}kr.create=(a,e)=>new kr({innerType:a,typeName:he.ZodOptional,...Ce(e)});class Jr extends Ee{_parse(e){return this._getType(e)===ne.null?bt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jr.create=(a,e)=>new Jr({innerType:a,typeName:he.ZodNullable,...Ce(e)});class Fa extends Ee{_parse(e){const{ctx:r}=this._processInputParams(e);let i=r.data;return r.parsedType===ne.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Fa.create=(a,e)=>new Fa({innerType:a,typeName:he.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ce(e)});class $a extends Ee{_parse(e){const{ctx:r}=this._processInputParams(e),i={...r,common:{...r.common,issues:[]}},l=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ba(l)?l.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mt(i.common.issues)},input:i.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Mt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}$a.create=(a,e)=>new $a({innerType:a,typeName:he.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ce(e)});class Xo extends Ee{_parse(e){if(this._getType(e)!==ne.nan){const i=this._getOrReturnCtx(e);return te(i,{code:G.invalid_type,expected:ne.nan,received:i.parsedType}),be}return{status:"valid",value:e.data}}}Xo.create=a=>new Xo({typeName:he.ZodNaN,...Ce(a)});const oh=Symbol("zod_brand");class Ml extends Ee{_parse(e){const{ctx:r}=this._processInputParams(e),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class Za extends Ee{_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?be:s.status==="dirty"?(r.dirty(),qn(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{const l=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?be:l.status==="dirty"?(r.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:i.path,parent:i})}}static create(e,r){return new Za({in:e,out:r,typeName:he.ZodPipeline})}}class Ua extends Ee{_parse(e){const r=this._def.innerType._parse(e),i=l=>(Na(l)&&(l.value=Object.freeze(l.value)),l);return Ba(r)?r.then(l=>i(l)):i(r)}unwrap(){return this._def.innerType}}Ua.create=(a,e)=>new Ua({innerType:a,typeName:he.ZodReadonly,...Ce(e)});function od(a,e={},r){return a?Yn.create().superRefine((i,l)=>{var s,d;if(!a(i)){const u=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(d=(s=u.fatal)!==null&&s!==void 0?s:r)!==null&&d!==void 0?d:!0,f=typeof u=="string"?{message:u}:u;l.addIssue({code:"custom",...f,fatal:p})}}):Yn.create()}const ih={object:qe.lazycreate};var he;(function(a){a.ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly"})(he||(he={}));const lh=(a,e={message:`Input not instance of ${a.name}`})=>od(r=>r instanceof a,e),id=tr.create,ld=Yr.create,sh=Xo.create,ch=Gr.create,sd=za.create,dh=Cn.create,uh=Go.create,gh=Aa.create,ph=Oa.create,fh=Yn.create,hh=Sn.create,mh=Mr.create,yh=Ko.create,bh=rr.create,vh=qe.create,wh=qe.strictCreate,xh=La.create,_h=Jo.create,kh=Ia.create,Ch=_r.create,Sh=Da.create,Th=Qo.create,Eh=Tn.create,Nh=Kn.create,Bh=Ra.create,Vh=Pa.create,Mh=Kr.create,zh=ja.create,Ah=Jn.create,cd=nr.create,Oh=kr.create,Lh=Jr.create,Ih=nr.createWithPreprocess,Dh=Za.create;var ei=Object.freeze({__proto__:null,defaultErrorMap:Wn,setErrorMap:$f,getErrorMap:Wo,makeIssue:qo,EMPTY_PATH:Zf,addIssueToContext:te,ParseStatus:gt,INVALID:be,DIRTY:qn,OK:bt,isAborted:El,isDirty:Nl,isValid:Na,isAsync:Ba,get util(){return Oe},get objectUtil(){return Tl},ZodParsedType:ne,getParsedType:qr,ZodType:Ee,datetimeRegex:nd,ZodString:tr,ZodNumber:Yr,ZodBigInt:Gr,ZodBoolean:za,ZodDate:Cn,ZodSymbol:Go,ZodUndefined:Aa,ZodNull:Oa,ZodAny:Yn,ZodUnknown:Sn,ZodNever:Mr,ZodVoid:Ko,ZodArray:rr,ZodObject:qe,ZodUnion:La,ZodDiscriminatedUnion:Jo,ZodIntersection:Ia,ZodTuple:_r,ZodRecord:Da,ZodMap:Qo,ZodSet:Tn,ZodFunction:Kn,ZodLazy:Ra,ZodLiteral:Pa,ZodEnum:Kr,ZodNativeEnum:ja,ZodPromise:Jn,ZodEffects:nr,ZodTransformer:nr,ZodOptional:kr,ZodNullable:Jr,ZodDefault:Fa,ZodCatch:$a,ZodNaN:Xo,BRAND:oh,ZodBranded:Ml,ZodPipeline:Za,ZodReadonly:Ua,custom:od,Schema:Ee,ZodSchema:Ee,late:ih,get ZodFirstPartyTypeKind(){return he},coerce:{string:a=>tr.create({...a,coerce:!0}),number:a=>Yr.create({...a,coerce:!0}),boolean:a=>za.create({...a,coerce:!0}),bigint:a=>Gr.create({...a,coerce:!0}),date:a=>Cn.create({...a,coerce:!0})},any:fh,array:bh,bigint:ch,boolean:sd,date:dh,discriminatedUnion:_h,effect:cd,enum:Mh,function:Nh,instanceof:lh,intersection:kh,lazy:Bh,literal:Vh,map:Th,nan:sh,nativeEnum:zh,never:mh,null:ph,nullable:Lh,number:ld,object:vh,oboolean:()=>sd().optional(),onumber:()=>ld().optional(),optional:Oh,ostring:()=>id().optional(),pipeline:Dh,preprocess:Ih,promise:Ah,record:Sh,set:Eh,strictObject:wh,string:id,symbol:uh,transformer:cd,tuple:Ch,undefined:gh,union:xh,unknown:hh,void:yh,NEVER:be,ZodIssueCode:G,quotelessJson:Ff,ZodError:Mt});function Rh(a){throw new Error("Unexpected object: "+a)}const Ph=-2147483648,dd=-9007199254740991n,jh=NaN,Fh=NaN,$h=null,Zh=null;function ud(a,e){switch(e){case"Int":return a===Ph;case"Long":return a===Number(dd)||a===dd;case"Float":return a===jh;case"Double":return a===Fh;case"String":return a===$h;case"Bytes":return a===Zh;default:throw Error(`unsupported data type: ${e}`)}}function Uh(a,e){const r=Math.floor(e/8),i=1<<7-e%8;return(a[r]&i)>0}function gd(a){const{type:e,name:r,domain:i}=a;return{type:e,name:r,...i&&{domain:i}}}function zl(a){return a.map(gd)}function ti(a,e){switch(a.type){case"column":return{type:"column",column:e(a.column)};case"inner":case"full":return{type:a.type,entries:a.entries.map(r=>ti(r,e))};case"outer":return{type:"outer",primary:ti(a.primary,e),secondary:a.secondary.map(r=>ti(r,e))};default:Rh(a)}}ei.object({__isRef:ei.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:ei.string().describe("Upstream block id"),name:ei.string().describe("Name of the output provided to the upstream block's output context")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").strict().readonly();function Hh(a){if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}function Wh(){return Hh()}function qh(a){if(typeof globalThis.getEnvironmentValue=="function")return globalThis.getEnvironmentValue(a)}var pd=(a,e)=>new fd(a.feature,e,a.defaults,a.css),Yh=0,Ha=(a,e=`customPart${++Yh}`)=>new fd(a,e),fd=class Fc{constructor(e,r,i={},l=[]){this.feature=e,this.variant=r,this.defaults=i,this.css=l}get id(){return this.feature?`${this.feature}/${this.variant}`:this.variant}withParams(e){const r={...this.defaults};for(const[i,l]of Object.entries(e))l!=null&&(r[i]=l);return new Fc(this.feature,this.variant,r,this.css)}withAdditionalParams(e){return this.withParams(e)}withCSS(e){return new Fc(this.feature,this.variant,this.defaults,this.css.concat(e))}},hd=`:where([class^=ag-]){box-sizing:border-box;outline:none;&:after,&:before,&:focus,&:focus-within{box-sizing:border-box;outline:none}&:where(button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0}&:where(button){font-weight:inherit}&::-ms-clear{display:none}}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-virtual-list-viewport .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;right:25px;transition:opacity 1s ease-out 3s;&:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5QjlCOUIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOUI5QjlCIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==);background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}.ag-ltr .ag-watermark-text{padding-left:.7rem}.ag-rtl .ag-watermark-text{padding-right:.7rem}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&.ag-layout-normal{overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}.ag-ltr .ag-floating-bottom-full-width-container,.ag-ltr .ag-floating-top-full-width-container,.ag-ltr .ag-full-width-container,.ag-ltr .ag-sticky-bottom-full-width-container,.ag-ltr .ag-sticky-top-full-width-container{left:0}.ag-rtl .ag-floating-bottom-full-width-container,.ag-rtl .ag-floating-top-full-width-container,.ag-rtl .ag-full-width-container,.ag-rtl .ag-sticky-bottom-full-width-container,.ag-rtl .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&.ag-scrollbar-invisible{bottom:0;position:absolute;&.ag-apple-scrollbar{opacity:0;transition:opacity .4s;visibility:hidden;&.ag-scrollbar-active,&.ag-scrollbar-scrolling{opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&.ag-scrollbar-invisible{left:0;right:0}}.ag-body-vertical-scroll{height:100%;&.ag-scrollbar-invisible{top:0;z-index:10}}.ag-ltr .ag-body-vertical-scroll{&.ag-scrollbar-invisible{right:0}}.ag-rtl .ag-body-vertical-scroll{&.ag-scrollbar-invisible{left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&.ag-scroller-corner{overflow-x:hidden}}.ag-ltr .ag-column-moving{.ag-cell,.ag-header-cell{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}.ag-rtl .ag-column-moving{.ag-cell,.ag-header-cell{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}.ag-row-animation .ag-row{transition:transform .4s,top .4s,opacity .2s}.ag-row-animation .ag-row.ag-after-created{transition:transform .4s,top .4s,height .4s,opacity .2s}.ag-row-no-animation .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}.ag-sparkline-wrapper{height:100%;left:0;position:absolute;top:0;width:100%}.ag-full-width-row .ag-cell-wrapper.ag-row-group{align-items:center;height:100%}.ag-cell .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{border-bottom:var(--ag-pinned-row-border);display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-pinned-left-floating-top,.ag-pinned-right-floating-top{display:inline-block;min-width:0;overflow:hidden;position:relative}.ag-floating-bottom{border-top:var(--ag-pinned-row-border);display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-pinned-left-floating-bottom,.ag-pinned-right-floating-bottom{display:inline-block;min-width:0;overflow:hidden;position:relative}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-value-slide-out{opacity:1}.ag-ltr .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}.ag-rtl .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:is(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}.ag-ltr .ag-value-slide-out-end{margin-right:10px}.ag-rtl .ag-value-slide-out-end{margin-left:10px}.ag-opacity-zero{opacity:0!important}.ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}.ag-right-aligned-header{.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}.ag-pill-select{display:flex;flex-direction:column;.ag-column-drop-list{padding:0}.ag-select{padding-top:var(--ag-spacing)}.ag-picker-field-wrapper{background-color:transparent;border:0}.ag-picker-field-display{cursor:pointer}}.ag-ltr{direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}.ag-rtl{direction:rtl;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}.ag-rtl{.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}.ag-rtl{.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{overflow:hidden;visibility:hidden;width:0;& div{position:absolute}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-group-title-bar .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-direction:row;flex-wrap:wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}.ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}.ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-group-item-alignment-stretch .ag-group-item{align-items:stretch}.ag-group-item-alignment-start .ag-group-item{align-items:flex-start}.ag-group-item-alignment-end .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}.ag-rtl{text-align:right}.ag-ltr .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-rtl .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);color:var(--ag-cell-text-color);font-size:var(--ag-data-font-size);height:var(--ag-row-height);white-space:nowrap;width:100%;--ag-internal-content-line-height:min(calc(var(--ag-row-height) - 1px),var(--ag-line-height,1000px))}:where(.ag-body-vertical-content-no-gap) .ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important;display:none}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height)}.ag-ltr .ag-cell{border-right:var(--ag-column-border)}.ag-rtl .ag-cell{border-left:var(--ag-column-border)}.ag-ltr :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}.ag-rtl :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;&.ag-row-group{align-items:flex-start}>:not(.ag-cell-value):not(.ag-group-value){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}}.ag-ltr .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}.ag-rtl .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-ltr .ag-group-contracted,.ag-ltr .ag-group-expanded,.ag-ltr .ag-row-drag,.ag-ltr .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-group-contracted,.ag-rtl .ag-group-expanded,.ag-rtl .ag-row-drag,.ag-rtl .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-ltr .ag-group-child-count{margin-left:3px}.ag-rtl .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}.ag-ltr .ag-row-highlight-above:after,.ag-ltr .ag-row-highlight-below:after{left:1px}.ag-rtl .ag-row-highlight-above:after,.ag-rtl .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:-1px}.ag-row-highlight-above.ag-row-first:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}.ag-ltr .ag-right-aligned-cell{text-align:right}.ag-rtl .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}.ag-cell:not(.ag-cell-inline-editing),.ag-full-width-row .ag-cell-wrapper.ag-row-group{-webkit-font-smoothing:subpixel-antialiased}.ag-ltr .ag-cell:not(.ag-cell-inline-editing),.ag-ltr .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-rtl .ag-cell:not(.ag-cell-inline-editing),.ag-rtl .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.5)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}.ag-ltr .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-details-row{padding:calc(var(--ag-spacing)*3.75)}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header,.ag-pinned-right-header{height:100%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing),.ag-cell-range-selected:not(.ag-cell-focus){background-color:var(--ag-range-selection-background-color);&.ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important;&.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}}}.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-3:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-4:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell){&.ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}&.ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}&.ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}&.ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}}.ag-ltr,.ag-rtl{.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-right,.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-right,.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-left,.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-left,.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{background-color:var(--ag-range-selection-border-color);bottom:-1px;height:6px;position:absolute;width:6px}.ag-ltr .ag-fill-handle,.ag-ltr .ag-range-handle{right:-1px}.ag-rtl .ag-fill-handle,.ag-rtl .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}.ag-ltr .ag-range-handle{cursor:nwse-resize}.ag-rtl .ag-range-handle{cursor:nesw-resize}.ag-cell-inline-editing{border:var(--ag-input-focus-border)!important}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input{flex:1 1 auto}.ag-floating-filter-input .ag-input-field-input[type=date]{width:1px}.ag-input-field-input{min-width:0;width:100%}.ag-column-select-header-filter-wrapper,.ag-filter-filter,.ag-filter-toolpanel-search,.ag-mini-filter{.ag-input-wrapper:before{background-color:currentColor;content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:50%;position:absolute;width:12px}}.ag-ltr .ag-column-select-header-filter-wrapper,.ag-ltr .ag-filter-filter,.ag-ltr .ag-filter-toolpanel-search,.ag-ltr .ag-mini-filter{.ag-input-wrapper:before{margin-left:var(--ag-spacing)}& input.ag-number-field-input,& input.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}.ag-rtl .ag-column-select-header-filter-wrapper,.ag-rtl .ag-filter-filter,.ag-rtl .ag-filter-toolpanel-search,.ag-rtl .ag-mini-filter{.ag-input-wrapper:before{margin-right:var(--ag-spacing)}& input.ag-number-field-input,& input.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}.ag-advanced-filter-header{align-items:center;background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);display:flex;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);position:relative}.ag-advanced-filter{align-items:center;display:flex;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}.ag-ltr .ag-advanced-filter-apply-button,.ag-ltr .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-advanced-filter-apply-button,.ag-rtl .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-button{align-items:center;background-color:unset;border:0;display:flex;font-size:var(--ag-font-size);font-weight:600;padding:var(--ag-spacing);&:hover:not(:disabled){background-color:var(--ag-row-hover-color)}&:not(:disabled){cursor:pointer}}.ag-ltr .ag-advanced-filter-builder-button-label{margin-left:var(--ag-spacing)}.ag-rtl .ag-advanced-filter-builder-button-label{margin-right:var(--ag-spacing)}.ag-advanced-filter-builder{display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-button-panel{border-top:var(--ag-advanced-filter-builder-button-bar-border);display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-ltr .ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel{.ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-spacing)*2)}}.ag-rtl .ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel{.ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder-cancel-button{margin-right:calc(var(--ag-spacing)*2)}}.ag-advanced-filter-builder-item-wrapper{align-items:center;display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}.ag-ltr .ag-advanced-filter-builder-item-wrapper{padding-left:calc(var(--ag-icon-size)/2);padding-right:var(--ag-icon-size)}.ag-rtl .ag-advanced-filter-builder-item-wrapper{padding-left:var(--ag-icon-size);padding-right:calc(var(--ag-icon-size)/2)}.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size);&:before{height:50%;top:50%}}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-bottom,.ag-advanced-filter-builder-item-tree-line-vertical-top{align-items:center;display:flex;height:100%;position:relative;&:after,&:before{content:"";height:100%;position:absolute}}.ag-advanced-filter-builder-item-tree-line-horizontal:after{border-bottom:1px solid var(--ag-border-color);height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size))}.ag-ltr .ag-advanced-filter-builder-item-tree-line-horizontal:after{left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-horizontal:after{right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical:before{top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}.ag-ltr .ag-advanced-filter-builder-item-tree-line-vertical:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-vertical:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}.ag-ltr .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc(50% - var(--ag-icon-size)*1.5/2);top:calc(50% + var(--ag-icon-size)*1.5/2);width:calc(var(--ag-icon-size)/2)}.ag-ltr .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-condition{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-item-tree-lines,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-pill-wrapper{align-items:center;display:flex;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0 var(--ag-spacing)}.ag-advanced-filter-builder-pill{border-radius:var(--ag-border-radius);min-height:calc(100% - var(--ag-spacing)*3);min-width:calc(var(--ag-spacing)*2);padding:var(--ag-spacing) calc(var(--ag-spacing)*2);position:relative;.ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-value-empty{color:var(--ag-subtle-text-color)}}.ag-ltr .ag-advanced-filter-builder-pill{.ag-picker-field-display{margin-right:var(--ag-spacing)}}.ag-rtl .ag-advanced-filter-builder-pill{.ag-picker-field-display{margin-left:var(--ag-spacing)}}.ag-advanced-filter-builder-item-button,.ag-advanced-filter-builder-pill{&:focus-visible{shadow:var(--ag-focus-shadow)}}.ag-advanced-filter-builder-pill-display{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-advanced-filter-builder-join-pill{background-color:var(--ag-advanced-filter-builder-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{background-color:var(--ag-advanced-filter-builder-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{background-color:var(--ag-advanced-filter-builder-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{background-color:var(--ag-advanced-filter-builder-value-pill-color);cursor:text;max-width:140px;.ag-advanced-filter-builder-pill-display{display:block}}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-spacing)*.5)}.ag-advanced-filter-builder-item-button{color:var(--ag-subtle-text-color);cursor:pointer;position:relative}.ag-advanced-filter-builder-item-button-disabled{cursor:default;opacity:.5}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-spacing)}.ag-advanced-filter-builder-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:hover{background-color:var(--ag-row-hover-color);.ag-advanced-filter-builder-item-button{opacity:100%}}}.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid,.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible{opacity:100%}.ag-advanced-filter-builder-invalid{color:var(--ag-invalid-color);cursor:default;margin:0 var(--ag-spacing)}.ag-cell-inline-editing{border-radius:var(--ag-border-radius);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-editor .ag-wrapper,.ag-cell-editor input,.ag-cell-wrapper{height:100%;line-height:normal;width:100%}}.ag-autocomplete-list-popup,.ag-popup-editor .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-large-text-input textarea{resize:none}.ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{display:flex;flex-direction:column;position:absolute;top:16px}.ag-ltr .ag-chart-menu{right:20px}.ag-rtl .ag-chart-menu{left:20px}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}.ag-chart-menu-hidden~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:10px;height:8px;position:relative;width:10px;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{cursor:pointer}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section,.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-chart .ag-chart-menu{display:none}.ag-chart-menu-hidden:hover .ag-chart-menu{display:block}.ag-chart{.ag-chart-menu-wrapper{.ag-chart-menu{display:flex;flex-direction:row;gap:20px;top:8px;width:auto}}}.ag-ltr .ag-chart{.ag-chart-menu-wrapper{.ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}}}.ag-rtl .ag-chart{.ag-chart-menu-wrapper{.ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}}}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{position:relative}.ag-charts-data-group-item:not(:last-child){margin-bottom:var(--ag-spacing)}.ag-chart-menu{background:var(--ag-background-color);border-radius:var(--ag-border-radius)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.5;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{position:relative}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-advanced-settings-top-level-group-title-bar:focus-visible,.ag-charts-data-group-title-bar:focus-visible,.ag-charts-format-top-level-group-title-bar:focus-visible,.ag-charts-settings-group-title-bar:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding);.ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select){height:var(--ag-list-item-height)}.ag-charts-data-group-item.ag-picker-field{margin-top:var(--ag-spacing)}}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;.ag-chart-mini-thumbnail:nth-child(3n+1){grid-column:1}.ag-chart-mini-thumbnail:nth-child(3n+2){grid-column:3}.ag-chart-mini-thumbnail:nth-child(3n+3){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0}.ag-chart-menu-panel{background-color:var(--ag-chrome-background-color)}.ag-ltr .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}.ag-rtl .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-chart-tabbed-menu-body{position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-chart-settings-nav-bar{border-top:1px solid var(--ag-border-color)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500}.ag-chart-data-section,.ag-chart-format-section{.ag-label:not(.ag-group-title-bar){color:var(--ag-chart-menu-label-color)}.ag-label-align-top .ag-label{margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}.ag-slider.ag-label-align-top .ag-label{margin-bottom:0}& label{display:inline-block}}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-sub-level-group-title-bar,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{margin:0;padding:0}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group .ag-charts-data-group-container,.ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-charts-settings-group .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-title-bar{padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-format-sub-level-group-container{padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-vertical-spacing)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-chart-advanced-settings-section,.ag-chart-settings-mini-wrapper,.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-chart-advanced-settings-section{padding-top:var(--ag-widget-container-vertical-padding)}.ag-charts-advanced-settings-top-level-group{.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-container{margin:0}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-menu{--ag-icon-size:20px;background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);padding:4px 2px}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-column-drop{align-items:center;display:inline-flex;overflow:auto;position:relative;width:100%}.ag-column-drop-cell,.ag-column-drop-list{align-items:center;display:flex}.ag-column-drop-cell{gap:var(--ag-spacing);position:relative}.ag-column-drop-cell-text{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{align-items:stretch;display:flex;flex-direction:column;overflow:hidden}.ag-column-drop-vertical-title-bar{align-items:center;display:flex;flex:none}.ag-column-drop-vertical-list{align-items:stretch;flex-direction:column;flex-grow:1;overflow-x:auto;position:relative;>*{flex:none}}.ag-column-drop-empty .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{display:block}.ag-column-drop.ag-column-drop-horizontal{overflow:hidden;white-space:nowrap}.ag-column-drop-cell-button{cursor:pointer}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{width:50%!important}.ag-column-drop-cell{background:var(--ag-column-drop-cell-background-color);border:var(--ag-column-drop-cell-border);border-radius:500px;padding:calc(var(--ag-spacing)*.5);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-ltr .ag-column-drop-cell{padding-left:calc(var(--ag-spacing)*.75)}.ag-rtl .ag-column-drop-cell{padding-right:calc(var(--ag-spacing)*.75)}.ag-column-drop-cell-button{min-width:calc(var(--ag-spacing)*4)}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height)}.ag-ltr .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-column-drop-horizontal-list{gap:var(--ag-cell-widget-spacing)}.ag-column-drop-vertical-list{padding-bottom:var(--ag-spacing);padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-column-drop-vertical-cell{margin-top:var(--ag-spacing)}.ag-ltr .ag-column-drop-vertical-icon{margin-right:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-column-drop-vertical-icon{margin-left:var(--ag-widget-horizontal-spacing)}.ag-column-drop-vertical-empty-message{bottom:0;left:0;margin-top:var(--ag-spacing);overflow:hidden;position:absolute;right:0;top:0}.ag-select-agg-func-popup{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);height:calc(var(--ag-spacing)*5*3.5);padding:0;position:absolute}.ag-select-agg-func-virtual-list-item{cursor:default;&:hover{background-color:var(--ag-selected-row-background-color)}&:focus-visible{shadow:var(--ag-focus-shadow)}}.ag-ltr .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-spacing)*2)}.ag-sort-indicator-container{display:contents}.ag-ltr .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}.ag-rtl .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border)}.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child){border-right:var(--ag-column-border)}.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child){border-left:var(--ag-column-border)}.ag-column-drop-cell-button{min-width:0;opacity:.75;&:hover{opacity:1}}.ag-column-drop-vertical{min-height:75px}.ag-column-drop-vertical-title-bar{padding:var(--ag-widget-container-vertical-padding) calc(var(--ag-spacing)*2) 0}.ag-column-drop-vertical-empty-message{align-items:center;border:1px dashed;border-color:var(--ag-border-color);display:flex;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);padding:calc(var(--ag-spacing)*2)}.ag-column-select{display:flex;flex:3 1 0px;flex-direction:column;overflow:hidden;position:relative}.ag-column-select-header{flex:none;height:var(--ag-header-height);padding-left:var(--ag-widget-container-horizontal-padding);padding-right:var(--ag-widget-container-horizontal-padding)}.ag-column-select-column,.ag-column-select-column-group,.ag-column-select-header{align-items:center;display:flex;gap:var(--ag-widget-horizontal-spacing);position:relative}.ag-column-select-column,.ag-column-select-column-group{height:100%}.ag-column-select-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-column-select-header-icon{border-radius:var(--ag-border-radius);cursor:pointer;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}.ag-ltr .ag-column-select-column,.ag-ltr .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-column,.ag-rtl .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-rtl .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-column-select-column,.ag-column-select-column-group{&:not(:last-child){margin-bottom:var(--ag-widget-vertical-spacing)}}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly{opacity:.5;pointer-events:none}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding)*.5) 0}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}.ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}.ag-filter-body-wrapper{display:flex;flex-direction:column}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-full-body>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-input input[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1}.ag-column-panel{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.ag-pivot-mode-panel{display:flex;height:var(--ag-header-height)}.ag-pivot-mode-select{align-items:center;display:flex}.ag-ltr .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-panel-column-select{border-bottom:var(--ag-tool-panel-separator-border);border-top:var(--ag-tool-panel-separator-border)}:where(.ag-column-panel) .ag-column-drop-vertical{flex:1 1 0px;min-height:50px;&:where(:not(.ag-last-column-drop)){border-bottom:var(--ag-tool-panel-separator-border)}}.ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);max-width:200px;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2))}.ag-dnd-ghost,.ag-header{display:flex;overflow:hidden;white-space:nowrap}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-header-row:not(:first-child){.ag-header-cell:not(.ag-header-span-height.ag-header-span-total),.ag-header-group-cell.ag-header-group-cell-with-group{border-top:var(--ag-header-row-border)}}.ag-header-row:not(.ag-header-row-column-group){overflow:hidden}.ag-header.ag-header-allow-overflow .ag-header-row{overflow:visible}.ag-header-cell,.ag-header-group-cell{align-items:center;display:inline-flex;gap:var(--ag-cell-widget-spacing);height:100%;overflow:hidden;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:not(.ag-floating-filter),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:hover:before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&.ag-header-cell-moving:before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-filter-button,.ag-header-cell.ag-header-active .ag-header-cell-menu-button{opacity:1}.ag-header-cell-menu-button:not(.ag-header-menu-always-show){opacity:0;transition:opacity .2s}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;gap:var(--ag-spacing);padding:5px 0}.ag-header-cell-label{overflow:hidden;text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;position:sticky}.ag-ltr .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-group-cell .ag-header-cell-comp-wrapper{display:flex}.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-comp-wrapper{width:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-right-aligned-header .ag-header-cell-label{flex-direction:row-reverse}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-cell-sortable .ag-header-cell-label,.ag-header-expand-icon,.ag-panel-title-bar-button{cursor:pointer}.ag-advanced-filter-header-cell,.ag-header-cell,.ag-header-group-cell{&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}.ag-ltr :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-rtl :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}.ag-ltr :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}.ag-rtl :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}.ag-ltr .ag-header-cell:after,.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):after{border-right:var(--ag-header-column-border);right:0}.ag-rtl .ag-header-cell:after,.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}.ag-ltr .ag-header-highlight-before:after{left:0}.ag-ltr .ag-header-highlight-after:after,.ag-rtl .ag-header-highlight-before:after{right:0}.ag-rtl .ag-header-highlight-after:after{left:0}.ag-ltr .ag-pinned-left-header .ag-header-highlight-after:after{right:1px}.ag-rtl .ag-pinned-left-header .ag-header-highlight-after:after{left:1px}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}.ag-ltr .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}.ag-rtl .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}.ag-header-cell.ag-header-span-height .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize{display:none}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;min-width:180px;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-menu-list{cursor:default;display:table;padding:var(--ag-spacing) 0;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{display:flex;flex-wrap:nowrap;width:100%}.ag-compact-menu-option-text{flex:1 1 auto;white-space:nowrap}.ag-menu-separator{height:calc(var(--ag-spacing)*2 + 1px)}.ag-menu-separator-part:after{border-top:1px solid var(--ag-menu-separator-color);content:"";display:block}.ag-compact-menu-option-active,.ag-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-compact-menu-option-part,.ag-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-spacing) + 2px) 0}.ag-compact-menu-option-disabled,.ag-menu-option-disabled{cursor:not-allowed;opacity:.5}.ag-compact-menu-option-icon,.ag-menu-option-icon{width:var(--ag-icon-size)}.ag-ltr .ag-compact-menu-option-icon,.ag-ltr .ag-menu-option-icon{padding-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-compact-menu-option-icon,.ag-rtl .ag-menu-option-icon{padding-right:calc(var(--ag-spacing)*2)}.ag-compact-menu-option-text,.ag-menu-option-text{padding-left:calc(var(--ag-spacing)*2);padding-right:calc(var(--ag-spacing)*2)}.ag-ltr .ag-compact-menu-option-shortcut,.ag-ltr .ag-menu-option-shortcut{padding-right:var(--ag-spacing)}.ag-rtl .ag-compact-menu-option-shortcut,.ag-rtl .ag-menu-option-shortcut{padding-left:var(--ag-spacing)}.ag-ltr .ag-compact-menu-option-popup-pointer,.ag-ltr .ag-menu-option-popup-pointer{padding-right:var(--ag-spacing)}.ag-rtl .ag-compact-menu-option-popup-pointer,.ag-rtl .ag-menu-option-popup-pointer{padding-left:var(--ag-spacing)}.ag-menu-column-select-wrapper{height:265px;overflow:auto;.ag-column-select{height:100%}}.ag-menu.ag-tabs{min-width:290px}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}.ag-filter-select .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}.ag-ltr .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-ltr .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-rtl .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-ltr .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-menu .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}.ag-ltr .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-resizer-wrapper{margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-menu-option{cursor:pointer;font-weight:500}.ag-ltr .ag-menu-option-popup-pointer .ag-icon{text-align:right}.ag-rtl .ag-menu-option-popup-pointer .ag-icon{text-align:left}.ag-panel{background-color:var(--ag-panel-background-color);display:flex;flex-direction:column;overflow:hidden;position:relative}.ag-dialog{border:var(--ag-dialog-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dialog-shadow);position:absolute}.ag-panel-title-bar{align-items:center;background-color:var(--ag-panel-title-bar-background-color);border-bottom:var(--ag-panel-title-bar-border);color:var(--ag-header-text-color);cursor:default;display:flex;flex:none;height:var(--ag-header-height);padding:var(--ag-spacing) var(--ag-cell-horizontal-padding)}.ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-spacing)*2);margin-right:var(--ag-spacing)}.ag-rtl .ag-panel-title-bar-button{margin-left:var(--ag-spacing);margin-right:calc(var(--ag-spacing)*2)}.ag-panel-title-bar-title{color:var(--ag-header-text-color);flex:1 1 auto;font-weight:500}.ag-panel-title-bar-buttons{display:flex}.ag-panel-title-bar-button{cursor:pointer}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;overflow:hidden;position:relative}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1;&.ag-resizer-topLeft{height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-ltr .ag-resizer{&.ag-resizer-topLeft{cursor:nwse-resize}&.ag-resizer-topRight{cursor:nesw-resize}&.ag-resizer-bottomRight{cursor:nwse-resize}&.ag-resizer-bottomLeft{cursor:nesw-resize}}.ag-rtl .ag-resizer{&.ag-resizer-topLeft{cursor:nesw-resize}&.ag-resizer-topRight{cursor:nwse-resize}&.ag-resizer-bottomRight{cursor:nesw-resize}&.ag-resizer-bottomLeft{cursor:nwse-resize}}.ag-dragging-fill-handle .ag-dialog,.ag-dragging-range-handle .ag-dialog{opacity:.7;pointer-events:none}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}.ag-select{align-items:center;display:flex;flex-direction:row;.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}&.ag-disabled{opacity:.5}}.ag-ltr .ag-select{.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}.ag-rtl .ag-select{.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-rich-select{cursor:default;height:100%}.ag-rich-select-value{align-items:center;background-color:var(--ag-input-background-color);display:flex;height:100%;padding:var(--ag-spacing);.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;&.ag-display-as-placeholder{opacity:.5}}}.ag-rich-select-list{background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);box-shadow:var(--ag-dropdown-shadow);height:auto;position:relative;width:100%;.ag-loading-text{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}}.ag-rich-select-row{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;padding:0 var(--ag-spacing);white-space:nowrap}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-highlighted,.ag-rich-select-row:hover{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:700}.ag-rich-select-field-input{flex:1 1 auto;.ag-input-field-input{border:none!important;box-shadow:none!important;padding:0!important;text-overflow:ellipsis;&::-moz-placeholder{opacity:.8}&::placeholder{opacity:.8}}}.ag-ltr .ag-rich-select-field-input{left:var(--ag-spacing)}.ag-rtl .ag-rich-select-field-input{right:var(--ag-spacing)}.ag-popup-editor .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-pill-container{display:flex;flex-wrap:nowrap;gap:.25rem}.ag-pill{align-items:center;background:var(--ag-select-cell-background-color);border:var(--ag-select-cell-border);border-radius:var(--ag-border-radius);display:flex;padding:0 .25rem;white-space:nowrap;&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-pill .ag-pill-button{border:none;padding:0;&:hover{color:var(--ag-accent-color);cursor:pointer}}.ag-ltr .ag-pill .ag-pill-button{margin-left:var(--ag-spacing)}.ag-rtl .ag-pill .ag-pill-button{margin-right:var(--ag-spacing)}ag-grid,ag-grid-angular{display:block}.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-tool-panel-wrapper{cursor:default;display:flex;overflow-x:hidden;overflow-y:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-side-bar-panel-width)}.ag-select-agg-func-item{align-items:center;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;height:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;>*{flex:none}}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize{right:-3px}.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize,.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize{left:-3px}.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize{right:-3px}.ag-side-bar{background-color:var(--ag-side-bar-background-color);display:flex;flex-direction:row-reverse;position:relative}.ag-side-bar-left{flex-direction:row;order:-1}.ag-side-buttons{position:relative;width:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-side-button{&.ag-selected{background-color:var(--ag-background-color);border-bottom:1px solid var(--ag-border-color);&:not(:first-of-type){border-top:1px solid var(--ag-border-color)}}}.ag-side-button-button{align-items:center;cursor:pointer;display:flex;flex-direction:column;gap:var(--ag-spacing);padding:calc(var(--ag-spacing)*3) 0;position:relative;white-space:nowrap;width:100%;&:focus{box-shadow:none}}.ag-side-button-button:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-side-button-label{writing-mode:vertical-lr}@media (max-resolution:1.5x){.ag-side-button-label{font-family:"Segoe UI",var(--ag-font-family)}.ag-ltr .ag-side-button-label{transform:rotate(.05deg)}.ag-rtl .ag-side-button-label{transform:rotate(-.05deg)}}.ag-ltr .ag-side-bar-left,.ag-rtl .ag-side-bar-right{border-right:var(--ag-side-panel-border);.ag-tool-panel-wrapper{border-left:var(--ag-side-panel-border)}}.ag-ltr .ag-side-bar-right,.ag-rtl .ag-side-bar-left{border-left:var(--ag-side-panel-border);.ag-tool-panel-wrapper{border-right:var(--ag-side-panel-border)}}.ag-ltr .ag-chart-menu-panel{border-left:var(--ag-side-panel-border)}.ag-rtl .ag-chart-menu-panel{border-right:var(--ag-side-panel-border)}.ag-button{border-radius:0}.ag-standard-button{-moz-appearance:none;appearance:none;-webkit-appearance:none;background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);cursor:pointer;font-family:inherit;padding:var(--ag-spacing) calc(var(--ag-spacing)*2);&:hover{background-color:var(--ag-row-hover-color)}&:active{border-color:var(--ag-accent-color)}&:disabled{background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}}:where(input[class^=ag-][type=button],button[class^=ag-]):focus-visible{box-shadow:var(--ag-focus-shadow)}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow-x:hidden;overflow-y:auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;& span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.ag-ltr .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}.ag-rtl .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}.ag-range-field{align-items:center;display:flex;.ag-input-wrapper{height:100%}}& input[class^=ag-][type=range]{-webkit-appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&::-moz-ag-range-thumb{-webkit-appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus{&::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}&:active{&::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}&::-moz-ag-range-track{background-color:var(--ag-accent-color)}}&:disabled{opacity:.5}}.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border:solid var(--ag-toggle-button-border-width) var(--ag-toggle-button-off-border-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;& input{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;opacity:0;width:100%}&:before{background-color:var(--ag-toggle-button-switch-background-color);border:var(--ag-toggle-button-border-width) solid var(--ag-toggle-button-switch-border-color);border-radius:100%;content:"";display:block;height:var(--ag-toggle-button-height);pointer-events:none;position:absolute;top:calc(0px - var(--ag-toggle-button-border-width));width:var(--ag-toggle-button-height)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);border-color:var(--ag-toggle-button-on-border-color);&:before{border-color:var(--ag-toggle-button-on-border-color)}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}.ag-ltr .ag-toggle-button-input-wrapper{&:before{left:calc(0px - var(--ag-toggle-button-border-width));transition:left .1s}&.ag-checked{&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width))}}}.ag-rtl .ag-toggle-button-input-wrapper{&:before{right:calc(0px - var(--ag-toggle-button-border-width));transition:right .1s}&.ag-checked{&:before{right:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width))}}}.ag-autocomplete{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-autocomplete-list-popup{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-autocomplete-list{height:calc(var(--ag-row-height)*6.5);min-width:200px;position:relative;width:100%}.ag-autocomplete-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:focus-visible:after{content:none}&:hover{background-color:var(--ag-row-hover-color)}}.ag-autocomplete-row{align-items:center;display:flex;flex:1 1 auto;overflow:hidden}.ag-autocomplete-row-label{margin:0 var(--ag-widget-container-horizontal-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);white-space:normal}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:not(.ag-tooltip-interactive),.ag-tooltip:not(.ag-tooltip-interactive){pointer-events:none}.ag-tooltip-custom.ag-tooltip-animate,.ag-tooltip.ag-tooltip-animate{transition:opacity 1s;&.ag-tooltip-hiding{opacity:0}}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{display:block;position:relative}.ag-angle-select-child-circle{position:absolute}.ag-slider-wrapper{display:flex;.ag-input-field{flex:1 1 auto}}.ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-color-panel{display:flex;flex-direction:column;text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{cursor:pointer}.ag-spectrum-dragger{cursor:pointer;pointer-events:none;position:absolute}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{cursor:pointer;position:relative}.ag-spectrum-slider{pointer-events:none;position:absolute}.ag-spectrum-alpha .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-top:10px}.ag-recent-color{cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}.ag-ltr .ag-angle-select-field,.ag-ltr .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}.ag-rtl .ag-angle-select-field,.ag-rtl .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;height:24px;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;top:4px;width:6px}.ag-picker-field-wrapper{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{border:var(--ag-input-focus-border);box-shadow:var(--ag-focus-shadow)}}.ag-picker-field-button{background-color:var(--ag-background-color)}.ag-dialog.ag-color-dialog{border-radius:5px}.ag-color-picker{.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}.ag-ltr .ag-color-picker-color,.ag-ltr .ag-color-picker-value{margin-right:var(--ag-spacing)}.ag-rtl .ag-color-picker-color,.ag-rtl .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-color-panel{padding:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-tool{height:12px}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:12px}.ag-spectrum-slider{border:3px solid #f8f8f8;border-radius:18px;height:18px;margin-top:-15px;width:18px}.ag-recent-colors{margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-recent-color{border:1px solid var(--ag-border-color)}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0))}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);height:18px;width:18px}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-spectrum-tool{border-radius:2px;height:11px;margin-bottom:10px}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;width:13px}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:focus-visible:not(:disabled):not([readonly]){box-shadow:var(--ag-focus-shadow)}}.ag-color-input{.ag-color-input-color{position:absolute}}.ag-ltr .ag-color-input{& input[class^=ag-][type=text].ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}.ag-rtl .ag-color-input{& input[class^=ag-][type=text].ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-pill-select{.ag-picker-field-display{font-weight:500}.ag-picker-field-display,.ag-picker-field-icon .ag-icon{color:var(--ag-chart-menu-label-color)}}.ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header{position:relative}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{align-items:center;display:flex;>*{align-items:center;display:flex}}.ag-filter-toolpanel-header{height:calc(var(--ag-spacing)*6);&:focus-visible{border-radius:var(--ag-border-radius);box-shadow:inset var(--ag-focus-shadow)}}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{padding:0 var(--ag-spacing)}.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-group-level-0-header{height:calc(var(--ag-spacing)*8)}.ag-filter-toolpanel-group-item{margin-bottom:calc(var(--ag-spacing)*.5);margin-top:calc(var(--ag-spacing)*.5)}.ag-filter-toolpanel-search{margin-bottom:var(--ag-spacing);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-spacing)*4)}.ag-ltr .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-spacing)}.ag-rtl .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-filter-toolpanel-expand{cursor:pointer}.ag-ltr .ag-filter-toolpanel-expand{margin-right:var(--ag-spacing)}.ag-rtl .ag-filter-toolpanel-expand{margin-left:var(--ag-spacing)}.ag-ltr .ag-filter-toolpanel-group-title-bar,.ag-ltr .ag-filter-toolpanel-instance-header{padding-left:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}.ag-rtl .ag-filter-toolpanel-group-title-bar,.ag-rtl .ag-filter-toolpanel-instance-header{padding-right:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}.ag-ltr .ag-filter-toolpanel-instance-body{margin-left:var(--ag-filter-tool-panel-group-indent)}.ag-rtl .ag-filter-toolpanel-instance-body{margin-right:var(--ag-filter-tool-panel-group-indent)}.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,.ag-ltr .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-spacing)}.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,.ag-rtl .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-spacing)}.ag-filter-toolpanel-instance-filter{background-color:var(--ag-chrome-background-color)}.ag-filter-toolpanel-group-level-0{border-top:none}.ag-filter-toolpanel-header{height:auto;padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-filter-toolpanel-group-item{margin:0}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{color:var(--ag-header-text-color);font-weight:500}.ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}.ag-paging-page-size .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&:focus-visible{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}.ag-status-bar{border-top:var(--ag-footer-row-border);display:flex;justify-content:space-between;line-height:1.5;overflow:hidden;padding-left:calc(var(--ag-spacing)*4);padding-right:calc(var(--ag-spacing)*4)}.ag-status-panel{display:inline-flex}.ag-status-name-value{white-space:nowrap}.ag-status-bar-center,.ag-status-bar-left,.ag-status-bar-right{display:inline-flex}.ag-status-bar-center{text-align:center}.ag-status-name-value{margin-left:var(--ag-spacing);margin-right:var(--ag-spacing);padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-status-name-value-value{font-weight:500}.ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}.ag-icon{display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-column-select-column-group-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}}.ag-column-select-column-readonly .ag-icon-grip,.ag-column-select-column-readonly.ag-icon-grip{opacity:.35}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-contracted .ag-icon,.ag-group-expanded .ag-icon,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons{&:hover{background-color:var(--ag-icon-button-hover-color);border-radius:1px;box-shadow:0 0 0 4px var(--ag-icon-button-hover-color)}}.ag-filter-active{--ag-icon-button-hover-color:color-mix(in srgb,transparent,var(--ag-accent-color) 28%);background-color:color-mix(in srgb,transparent,var(--ag-accent-color) 14%);border-radius:1px;box-shadow:0 0 0 4px color-mix(in srgb,transparent,var(--ag-accent-color) 14%);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}.ag-icon-filter{clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z")}}.ag-ltr .ag-filter-active{&:after{right:-1px}}.ag-rtl .ag-filter-active{&:after{left:-1px}}.ag-label-align-right{.ag-label{order:1}>*{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-label{white-space:nowrap}.ag-ltr .ag-label{margin-right:var(--ag-spacing)}.ag-rtl .ag-label{margin-left:var(--ag-spacing)}.ag-label-align-top .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}.ag-ltr .ag-label-align-right .ag-label{margin-left:var(--ag-spacing)}.ag-rtl .ag-label-align-right .ag-label{margin-right:var(--ag-spacing)}`,md={backgroundColor:"#FFF",foregroundColor:"#181d1f",textColor:{ref:"foregroundColor"},accentColor:"#2196f3",invalidColor:"#e02525",borderColor:{ref:"foregroundColor",mix:.15},wrapperBorder:!0,rowBorder:!0,browserColorScheme:"light",headerRowBorder:{ref:"rowBorder"},footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],chromeBackgroundColor:{ref:"foregroundColor",mix:.02,onto:"backgroundColor"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"backgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:{ref:"accentColor"},rangeSelectionBackgroundColor:{ref:"accentColor",mix:.2},rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:{ref:"accentColor",mix:.5},rowHoverColor:{ref:"accentColor",mix:.08},columnHoverColor:{ref:"accentColor",mix:.05},selectedRowBackgroundColor:{ref:"accentColor",mix:.12},modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:{ref:"backgroundColor"},borderRadius:4,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",spacing:8,fontSize:14,rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,popupShadow:{radius:16,color:"#00000026"},dropdownShadow:{radius:4,spread:1,offsetY:1,color:"#babfc766"},dragAndDropImageBackgroundColor:{ref:"backgroundColor"},dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:{ref:"foregroundColor",mix:.7},focusShadow:{spread:3,color:{ref:"accentColor",mix:.5}},sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},listItemHeight:{calc:"iconSize + widgetVerticalSpacing"},iconSize:16,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonBorderWidth:2,toggleButtonOnBorderColor:{ref:"accentColor"},toggleButtonOnBackgroundColor:{ref:"accentColor"},toggleButtonOffBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},toggleButtonOffBackgroundColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},toggleButtonSwitchBorderColor:{ref:"toggleButtonOffBorderColor"},toggleButtonSwitchBackgroundColor:{ref:"backgroundColor"},menuBorder:{color:{ref:"foregroundColor",mix:.2}},menuBackgroundColor:{ref:"foregroundColor",mix:.03,onto:"backgroundColor"},menuTextColor:{ref:"foregroundColor",mix:.95,onto:"backgroundColor"},menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:{ref:"foregroundColor",mix:.8},iconButtonHoverColor:{ref:"foregroundColor",mix:.1},dialogShadow:{ref:"popupShadow"},dialogBorder:{color:{ref:"foregroundColor",mix:.2}},panelBackgroundColor:{ref:"backgroundColor"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:{ref:"foregroundColor",mix:.07},columnDropCellBorder:{color:{ref:"foregroundColor",mix:.13}},selectCellBackgroundColor:{ref:"foregroundColor",mix:.07},selectCellBorder:{color:{ref:"foregroundColor",mix:.13}},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterToolPanelGroupIndent:{ref:"spacing"},iconButtonHoverBackgroundColor:{ref:"foregroundColor",mix:.1},rowLoadingSkeletonEffectColor:"rgba(66, 66, 66, 0.2)"},Gh=a=>a.replace(/[A-Z]/g,e=>`-${e}`).toLowerCase(),yd=a=>`--ag-${Gh(a)}`,Qr=a=>`var(${yd(a)})`,Kh=(a,e,r)=>Math.max(e,Math.min(r,a)),Jh=a=>{const e=new Map;return r=>{const i=r;return e.has(i)||e.set(i,a(r)),e.get(i)}},Qh=Jh(a=>{if(/Color$/.test(a))return"color";if(/Scale?$/.test(a))return"scale";if(a==="spacing"||/(Padding|Spacing|Size|Width|Height|Radius|Indent|Start|End|Top|Bottom|Horizontal|Vertical)$/.test(a))return"length";if(/Border$/.test(a))return"border";if(/BorderStyle$/.test(a))return"borderStyle";if(/Shadow$/.test(a))return"shadow";if(/Image$/.test(a))return"image";if(/Family$/.test(a))return"fontFamily";if(/Weight$/.test(a))return"fontWeight";if(/Duration$/.test(a))return"duration";if(/ColorScheme$/.test(a))return"colorScheme";throw new Error(`"${a}" is not a valid theme parameter.`)}),ri=a=>typeof a=="string"?a:typeof a=="number"?String(a):!1,Al=a=>{if(typeof a=="string")return a;if("ref"in a){const e=Qr(a.ref);return a.mix==null?e:`color-mix(in srgb, ${a.onto?"var(--ag-background-color)":"transparent"}, ${e} ${Kh(a.mix*100,0,100)}%)`}return!1},Xh=ri,Qn=a=>typeof a=="string"?a:typeof a=="number"?`${a}px`:"calc"in a?`calc(${a.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi,r=>r[0]==="-"?r:` ${Qr(r)} `)})`:"ref"in a?Qr(a.ref):!1,em=ri,tm=(a,e)=>typeof a=="string"?a:a===!0?"solid 1px var(--ag-border-color)":a===!1?e==="columnBorder"?"solid 1px transparent":"none":"ref"in a?Qr(a.ref):bd(a.style??"solid")+" "+Qn(a.width??1)+" "+Al(a.color??{ref:"borderColor"}),rm=a=>typeof a=="string"?a:a===!1?"none":"ref"in a?Qr(a.ref):[Qn(a.offsetX??0),Qn(a.offsetY??0),Qn(a.radius??0),Qn(a.spread??0),Al(a.color??{ref:"foregroundColor"})].join(" "),bd=ri,vd=a=>typeof a=="string"?a:"googleFont"in a?vd(a.googleFont):"ref"in a?Qr(a.ref):Array.isArray(a)?a.map(e=>(typeof e=="object"&&"googleFont"in e&&(e=e.googleFont),/^[\w-]+$/.test(e)?e:JSON.stringify(e))).join(", "):!1,nm=ri,wd=a=>typeof a=="string"?a:"url"in a?`url(${JSON.stringify(a.url)})`:"svg"in a?wd({url:`data:image/svg+xml,${encodeURIComponent(a.svg)}`}):"ref"in a?Qr(a.ref):!1,am=(a,e)=>typeof a=="string"?a:typeof a=="number"?(a>50&&er._errorOnce(`Numeric value ${a} passed to ${e} param will be interpreted as ${a} seconds. If this is intentional use "${a}s" to silence this warning.`),`${a}s`):"ref"in a?Qr(a.ref):!1,om={color:Al,colorScheme:Xh,length:Qn,scale:em,border:tm,borderStyle:bd,shadow:rm,image:wd,fontFamily:vd,fontWeight:nm,duration:am},im=(a,e)=>{const r=Qh(a);return om[r](e,a)},lm=0,sm=(a=`customTheme${++lm}`)=>new um(a,[],{}),cm=typeof window!="object"||!window||typeof document!="object"||window.document!==document,dm=0,xd=!1,um=class $c{constructor(e,r=[],i={}){this.id=e,this.dependencies=r,this.defaults=i,this.useCount=0}withPart(e){return typeof e=="function"&&(e=e()),new $c(this.id,this.dependencies.concat(e),this.defaults)}withParams(e){const r={...this.defaults};for(const[i,l]of Object.entries(e))l!=null&&(r[i]=l);return new $c(this.id,this.dependencies,r)}getCSS(){return[hd,...this._getCSSChunks().map(e=>e.css)].join(`
|
|
3
|
+
`)}}function wf(t){return{ok:!0,value:t}}function pd(t){if(!t)throw new Sl;if(!t.ok)throw Error(t.errors.join(";"));return t.value}function gd(t){return{value:t,errors:void 0}}function xf(t){if(t.errors)throw new Tl(t.errors);if(!t.value)throw new Sl;return t.value}function Cf(t){return t!==void 0}function El(t,e){return Po(t)===Po(e)}const Nl=t=>t,Al=t=>t instanceof Error?t:Error(String(t)),Ml=t=>t.name==="ZodError",Bl=t=>{const{formErrors:e,fieldErrors:r}=t.flatten(),o=Object.entries(r).map(([i,s])=>i+":"+(s==null?void 0:s.join(",")));return e.concat(o).join("; ")};function Pl(t){const e=t.validate??Nl,{autoSave:r}=t,o=n.ref(),i=n.ref(),s=D=>{i.value={model:Br(D)}};n.watch(()=>t.get(),D=>s(D),{immediate:!0});const d=()=>{var D;t.onSave(e(Br((D=i.value)==null?void 0:D.model)))},u=()=>{s(t.get()),o.value=void 0},p=D=>{const E=Al(D);Ml(E)?o.value=Error(Bl(E)):o.value=E},h=D=>{o.value=void 0;try{e(D),r&&d()}catch(E){p(E)}},f=n.computed({get:()=>{var D;return(D=i.value)==null?void 0:D.model},set(D){s(D),h(D)}});n.watch(i,(D,E)=>{D&&D===E&&h(D.model)},{deep:!0});const y=n.computed(()=>!o.value),S=n.computed(()=>!El(t.get(),n.unref(i))),k=n.computed(()=>o.value?o.value.message:"");return n.reactive({model:f,valid:y,isChanged:S,error:o,errorString:k,save:d,revert:u,setError:p})}function _f(t,e){const r=t.validate??Nl,{autoSave:o}=t,i=n.ref(),s=n.ref(),d=E=>{s.value={model:Object.assign(Br(E),e??{}),stage:Symbol()}};n.watch(()=>t.get(),E=>d(E),{immediate:!0});const u=()=>{var E;t.onSave(r(Br((E=s.value)==null?void 0:E.model)))},p=()=>{d(t.get()),i.value=void 0},h=E=>{const A=Al(E);Ml(A)?i.value=Error(Bl(A)):i.value=A},f=E=>{i.value=void 0;try{r(E),o&&u()}catch(A){h(A)}},y=n.computed({get:()=>{var E;return(E=s.value)==null?void 0:E.model},set(){throw Error("Cannot replace base model")}});n.watch([()=>({args:y.value.args,ui:y.value.ui}),()=>{var E;return(E=s.value)==null?void 0:E.stage}],([E,A],[w,L])=>{A===L&&f(E)},{deep:!0});const S=n.computed(()=>!i.value),k=n.computed(()=>{var w;const{args:E,ui:A}=((w=n.unref(s))==null?void 0:w.model)??{};return!El(t.get(),{args:E,ui:A})}),D=n.computed(()=>i.value?i.value.message:"");return n.reactive({model:y,valid:S,isChanged:k,error:i,errorString:D,save:u,revert:p,setError:h})}const kf=t=>Object.fromEntries(new URL(t,"http://dummy").searchParams);function Sf(t,e){const o=kl(e.setBlockArgs,100),i=kl(e.setBlockUiState,100),s=kl(e.setBlockArgsAndUiState,100),d=n.reactive({args:Object.freeze(t.args),outputs:Object.freeze(t.outputs),ui:Object.freeze(t.ui),navigationState:Object.freeze(t.navigationState)});e.onStateUpdates(async E=>{E.forEach(A=>{A.key==="args"&&(d.args=Object.freeze(A.value)),A.key==="ui"&&(d.ui=Object.freeze(A.value)),A.key==="outputs"&&(d.outputs=Object.freeze(A.value)),A.key==="navigationState"&&(d.navigationState=Object.freeze(A.value))}),await n.nextTick()});const u=()=>Br(d.args),p=()=>Br(d.ui),h=()=>Br(d.navigationState),f={createArgsModel(E={}){return Pl({get(){return E.transform?E.transform(d.args):d.args},validate:E.validate,autoSave:!0,onSave(A){o(A)}})},createUiModel(E={},A){return Pl({get(){return E.transform?E.transform(d.ui):d.ui??A()},validate:E.validate,autoSave:!0,onSave(w){i(w)}})},useOutputs(...E){const A=n.reactive({errors:void 0,value:void 0});return n.watch(()=>d.outputs,()=>{try{Object.assign(A,{value:this.unwrapOutputs(...E),errors:void 0})}catch(w){Object.assign(A,{value:void 0,errors:[String(w)]})}},{immediate:!0,deep:!0}),A},unwrapOutputs(...E){const A=d.outputs,w=E.map(L=>[L,pd(A[L])]);return Object.fromEntries(w)},getOutputField(E){return d.outputs[E]},getOutputFieldOkOptional(E){console.warn("use reactive app.outputValues.fieldName instead instead of getOutputFieldOkOptional(fieldName)");const A=this.getOutputField(E);if(A&&A.ok)return A.value},getOutputFieldErrorsOptional(E){console.warn("use reactive app.outputErrors.fieldName instead instead of getOutputFieldErrorsOptional(fieldName)");const A=this.getOutputField(E);if(A&&!A.ok)return A.errors},updateArgs(E){const A=u();return E(A),e.setBlockArgs(A)},updateUiState(E){const A=p();return e.setBlockUiState(E(A))},updateNavigationState(E){const A=h();return E(A),e.setNavigationState(A)},navigateTo(E){const A=h();return A.href=E,e.setNavigationState(A)}},y=n.computed(()=>{const E=Object.entries(d.outputs).map(([A,w])=>[A,w.ok&&w.value!==void 0?w.value:void 0]);return Object.fromEntries(E)}),S=n.computed(()=>{const E=Object.entries(d.outputs).map(([A,w])=>[A,w&&!w.ok?new Tl(w.errors):void 0]);return Object.fromEntries(E)}),k={snapshot:d,queryParams:n.computed(()=>kf(d.navigationState.href)),href:n.computed(()=>d.navigationState.href),hasErrors:n.computed(()=>Object.values(d.outputs).some(E=>!(E!=null&&E.ok))),outputValues:n.computed(()=>(console.warn("Change app.outputValues to app.model.outputs"),y.value)),outputErrors:n.computed(()=>(console.warn("Change app.outputErrors to app.model.outputErrors"),S.value)),args:n.computed(()=>(console.warn("Change app.args to app.snapshot.args"),d.args)),outputs:n.computed(()=>(console.warn("Change app.outputs to app.snapshot.outputs"),d.outputs)),ui:n.computed(()=>(console.warn("Change app.ui to app.snapshot.ui"),d.ui)),navigationState:n.computed(()=>(console.warn("Change app.navigationState to app.snapshot.navigationState"),d.navigationState))},D=_f({get(){return{args:d.args,ui:d.ui}},autoSave:!0,onSave(E){s(E.args,E.ui)}},{outputs:y,outputErrors:S});return n.reactive(Object.assign(D,f,k))}var Ie;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{const s={};for(const d of i)s[d]=d;return s},t.getValidEnumValues=i=>{const s=t.objectKeys(i).filter(u=>typeof i[i[u]]!="number"),d={};for(const u of s)d[u]=i[u];return t.objectValues(d)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&s.push(d);return s},t.find=(i,s)=>{for(const d of i)if(s(d))return d},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function o(i,s=" | "){return i.map(d=>typeof d=="string"?`'${d}'`:d).join(s)}t.joinValues=o,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Ie||(Ie={}));var Dl;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Dl||(Dl={}));const oe=Ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qr=t=>{switch(typeof t){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return isNaN(t)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(t)?oe.array:t===null?oe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?oe.promise:typeof Map<"u"&&t instanceof Map?oe.map:typeof Set<"u"&&t instanceof Set?oe.set:typeof Date<"u"&&t instanceof Date?oe.date:oe.object;default:return oe.unknown}},J=Ie.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Tf=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class Dt extends Error{constructor(e){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const r=e||function(s){return s.message},o={_errors:[]},i=s=>{for(const d of s.issues)if(d.code==="invalid_union")d.unionErrors.map(i);else if(d.code==="invalid_return_type")i(d.returnTypeError);else if(d.code==="invalid_arguments")i(d.argumentsError);else if(d.path.length===0)o._errors.push(r(d));else{let u=o,p=0;for(;p<d.path.length;){const h=d.path[p];p===d.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(r(d))):u[h]=u[h]||{_errors:[]},u=u[h],p++}}};return i(this),o}static assert(e){if(!(e instanceof Dt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ie.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},o=[];for(const i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):o.push(e(i));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}}Dt.create=t=>new Dt(t);const Kn=(t,e)=>{let r;switch(t.code){case J.invalid_type:t.received===oe.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case J.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Ie.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ie.joinValues(t.keys,", ")}`;break;case J.invalid_union:r="Invalid input";break;case J.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ie.joinValues(t.options)}`;break;case J.invalid_enum_value:r=`Invalid enum value. Expected ${Ie.joinValues(t.options)}, received '${t.received}'`;break;case J.invalid_arguments:r="Invalid function arguments";break;case J.invalid_return_type:r="Invalid function return type";break;case J.invalid_date:r="Invalid date";break;case J.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Ie.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case J.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case J.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case J.custom:r="Invalid input";break;case J.invalid_intersection_types:r="Intersection results could not be merged";break;case J.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case J.not_finite:r="Number must be finite";break;default:r=e.defaultError,Ie.assertNever(t)}return{message:r}};let hd=Kn;function Ef(t){hd=t}function Qa(){return hd}const Xa=t=>{const{data:e,path:r,errorMaps:o,issueData:i}=t,s=[...r,...i.path||[]],d={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let u="";const p=o.filter(h=>!!h).slice().reverse();for(const h of p)u=h(d,{data:e,defaultError:u}).message;return{...i,path:s,message:u}},Nf=[];function re(t,e){const r=Qa(),o=Xa({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Kn?void 0:Kn].filter(i=>!!i)});t.common.issues.push(o)}class ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const o=[];for(const i of r){if(i.status==="aborted")return be;i.status==="dirty"&&e.dirty(),o.push(i.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,r){const o=[];for(const i of r){const s=await i.key,d=await i.value;o.push({key:s,value:d})}return ht.mergeObjectSync(e,o)}static mergeObjectSync(e,r){const o={};for(const i of r){const{key:s,value:d}=i;if(s.status==="aborted"||d.status==="aborted")return be;s.status==="dirty"&&e.dirty(),d.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof d.value<"u"||i.alwaysSet)&&(o[s.value]=d.value)}return{status:e.value,value:o}}}const be=Object.freeze({status:"aborted"}),Yn=t=>({status:"dirty",value:t}),wt=t=>({status:"valid",value:t}),Vl=t=>t.status==="aborted",Ll=t=>t.status==="dirty",Do=t=>t.status==="valid",Vo=t=>typeof Promise<"u"&&t instanceof Promise;function ei(t,e,r,o){if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function fd(t,e,r,o,i){if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r}typeof SuppressedError=="function"&&SuppressedError;var ce;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ce||(ce={}));var Lo,Io;class Cr{constructor(e,r,o,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=o,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const md=(t,e)=>{if(Do(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Dt(t.common.issues);return this._error=r,this._error}}};function Se(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:o,description:i}=t;if(e&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(d,u)=>{var p,h;const{message:f}=t;return d.code==="invalid_enum_value"?{message:f??u.defaultError}:typeof u.data>"u"?{message:(p=f??o)!==null&&p!==void 0?p:u.defaultError}:d.code!=="invalid_type"?{message:u.defaultError}:{message:(h=f??r)!==null&&h!==void 0?h:u.defaultError}},description:i}}class Ne{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return qr(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:qr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ht,ctx:{common:e.parent.common,data:e.data,parsedType:qr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(Vo(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const o=this.safeParse(e,r);if(o.success)return o.data;throw o.error}safeParse(e,r){var o;const i={common:{issues:[],async:(o=r==null?void 0:r.async)!==null&&o!==void 0?o:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qr(e)},s=this._parseSync({data:e,path:i.path,parent:i});return md(i,s)}async parseAsync(e,r){const o=await this.safeParseAsync(e,r);if(o.success)return o.data;throw o.error}async safeParseAsync(e,r){const o={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qr(e)},i=this._parse({data:e,path:o.path,parent:o}),s=await(Vo(i)?i:Promise.resolve(i));return md(o,s)}refine(e,r){const o=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{const d=e(i),u=()=>s.addIssue({code:J.custom,...o(i)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(u(),!1)):d?!0:(u(),!1)})}refinement(e,r){return this._refinement((o,i)=>e(o)?!0:(i.addIssue(typeof r=="function"?r(o,i):r),!1))}_refinement(e){return new or({schema:this,typeName:me.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return kr.create(this,this._def)}nullable(){return Qr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return nr.create(this,this._def)}promise(){return eo.create(this,this._def)}or(e){return zo.create([this,e],this._def)}and(e){return Go.create(this,e,this._def)}transform(e){return new or({...Se(this._def),schema:this,typeName:me.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Wo({...Se(this._def),innerType:this,defaultValue:r,typeName:me.ZodDefault})}brand(){return new Rl({typeName:me.ZodBranded,type:this,...Se(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Ho({...Se(this._def),innerType:this,catchValue:r,typeName:me.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return qo.create(this,e)}readonly(){return Ko.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Af=/^c[^\s-]{8,}$/i,Mf=/^[0-9a-z]+$/,Bf=/^[0-9A-HJKMNP-TV-Z]{26}$/,Pf=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Df=/^[a-z0-9_-]{21}$/i,Vf=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Lf=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,If="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Il;const Ff=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Rf=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Of=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vd="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zf=new RegExp(`^${vd}$`);function yd(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Gf(t){return new RegExp(`^${yd(t)}$`)}function bd(t){let e=`${vd}T${yd(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function jf(t,e){return!!((e==="v4"||!e)&&Ff.test(t)||(e==="v6"||!e)&&Rf.test(t))}class rr extends Ne{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==oe.string){const s=this._getOrReturnCtx(e);return re(s,{code:J.invalid_type,expected:oe.string,received:s.parsedType}),be}const o=new ht;let i;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:J.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:J.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if(s.kind==="length"){const d=e.data.length>s.value,u=e.data.length<s.value;(d||u)&&(i=this._getOrReturnCtx(e,i),d?re(i,{code:J.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&re(i,{code:J.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),o.dirty())}else if(s.kind==="email")Lf.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"email",code:J.invalid_string,message:s.message}),o.dirty());else if(s.kind==="emoji")Il||(Il=new RegExp(If,"u")),Il.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"emoji",code:J.invalid_string,message:s.message}),o.dirty());else if(s.kind==="uuid")Pf.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"uuid",code:J.invalid_string,message:s.message}),o.dirty());else if(s.kind==="nanoid")Df.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"nanoid",code:J.invalid_string,message:s.message}),o.dirty());else if(s.kind==="cuid")Af.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"cuid",code:J.invalid_string,message:s.message}),o.dirty());else if(s.kind==="cuid2")Mf.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"cuid2",code:J.invalid_string,message:s.message}),o.dirty());else if(s.kind==="ulid")Bf.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"ulid",code:J.invalid_string,message:s.message}),o.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),re(i,{validation:"url",code:J.invalid_string,message:s.message}),o.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"regex",code:J.invalid_string,message:s.message}),o.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),re(i,{code:J.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),o.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),re(i,{code:J.invalid_string,validation:{startsWith:s.value},message:s.message}),o.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),re(i,{code:J.invalid_string,validation:{endsWith:s.value},message:s.message}),o.dirty()):s.kind==="datetime"?bd(s).test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{code:J.invalid_string,validation:"datetime",message:s.message}),o.dirty()):s.kind==="date"?zf.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{code:J.invalid_string,validation:"date",message:s.message}),o.dirty()):s.kind==="time"?Gf(s).test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{code:J.invalid_string,validation:"time",message:s.message}),o.dirty()):s.kind==="duration"?Vf.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"duration",code:J.invalid_string,message:s.message}),o.dirty()):s.kind==="ip"?jf(e.data,s.version)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"ip",code:J.invalid_string,message:s.message}),o.dirty()):s.kind==="base64"?Of.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"base64",code:J.invalid_string,message:s.message}),o.dirty()):Ie.assertNever(s);return{status:o.value,value:e.data}}_regex(e,r,o){return this.refinement(i=>e.test(i),{validation:r,code:J.invalid_string,...ce.errToObj(o)})}_addCheck(e){return new rr({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ce.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ce.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ce.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ce.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ce.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ce.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ce.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ce.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ce.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ce.errToObj(e)})}datetime(e){var r,o;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,local:(o=e==null?void 0:e.local)!==null&&o!==void 0?o:!1,...ce.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...ce.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ce.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ce.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ce.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ce.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ce.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ce.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ce.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ce.errToObj(r)})}nonempty(e){return this.min(1,ce.errToObj(e))}trim(){return new rr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new rr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new rr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}rr.create=t=>{var e;return new rr({checks:[],typeName:me.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Se(t)})};function Uf(t,e){const r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,i=r>o?r:o,s=parseInt(t.toFixed(i).replace(".","")),d=parseInt(e.toFixed(i).replace(".",""));return s%d/Math.pow(10,i)}class Kr extends Ne{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==oe.number){const s=this._getOrReturnCtx(e);return re(s,{code:J.invalid_type,expected:oe.number,received:s.parsedType}),be}let o;const i=new ht;for(const s of this._def.checks)s.kind==="int"?Ie.isInteger(e.data)||(o=this._getOrReturnCtx(e,o),re(o,{code:J.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(o=this._getOrReturnCtx(e,o),re(o,{code:J.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(o=this._getOrReturnCtx(e,o),re(o,{code:J.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Uf(e.data,s.value)!==0&&(o=this._getOrReturnCtx(e,o),re(o,{code:J.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(o=this._getOrReturnCtx(e,o),re(o,{code:J.not_finite,message:s.message}),i.dirty()):Ie.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,o,i){return new Kr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:ce.toString(i)}]})}_addCheck(e){return new Kr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ce.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ce.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ie.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(e===null||o.value<e)&&(e=o.value)}return Number.isFinite(r)&&Number.isFinite(e)}}Kr.create=t=>new Kr({checks:[],typeName:me.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Se(t)});class Yr extends Ne{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==oe.bigint){const s=this._getOrReturnCtx(e);return re(s,{code:J.invalid_type,expected:oe.bigint,received:s.parsedType}),be}let o;const i=new ht;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(o=this._getOrReturnCtx(e,o),re(o,{code:J.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(o=this._getOrReturnCtx(e,o),re(o,{code:J.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(o=this._getOrReturnCtx(e,o),re(o,{code:J.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Ie.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,o,i){return new Yr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:ce.toString(i)}]})}_addCheck(e){return new Yr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Yr.create=t=>{var e;return new Yr({checks:[],typeName:me.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Se(t)})};class Fo extends Ne{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==oe.boolean){const o=this._getOrReturnCtx(e);return re(o,{code:J.invalid_type,expected:oe.boolean,received:o.parsedType}),be}return wt(e.data)}}Fo.create=t=>new Fo({typeName:me.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Se(t)});class En extends Ne{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==oe.date){const s=this._getOrReturnCtx(e);return re(s,{code:J.invalid_type,expected:oe.date,received:s.parsedType}),be}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return re(s,{code:J.invalid_date}),be}const o=new ht;let i;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:J.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),o.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:J.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),o.dirty()):Ie.assertNever(s);return{status:o.value,value:new Date(e.data.getTime())}}_addCheck(e){return new En({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ce.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ce.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}En.create=t=>new En({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:me.ZodDate,...Se(t)});class ti extends Ne{_parse(e){if(this._getType(e)!==oe.symbol){const o=this._getOrReturnCtx(e);return re(o,{code:J.invalid_type,expected:oe.symbol,received:o.parsedType}),be}return wt(e.data)}}ti.create=t=>new ti({typeName:me.ZodSymbol,...Se(t)});class Ro extends Ne{_parse(e){if(this._getType(e)!==oe.undefined){const o=this._getOrReturnCtx(e);return re(o,{code:J.invalid_type,expected:oe.undefined,received:o.parsedType}),be}return wt(e.data)}}Ro.create=t=>new Ro({typeName:me.ZodUndefined,...Se(t)});class Oo extends Ne{_parse(e){if(this._getType(e)!==oe.null){const o=this._getOrReturnCtx(e);return re(o,{code:J.invalid_type,expected:oe.null,received:o.parsedType}),be}return wt(e.data)}}Oo.create=t=>new Oo({typeName:me.ZodNull,...Se(t)});class Jn extends Ne{constructor(){super(...arguments),this._any=!0}_parse(e){return wt(e.data)}}Jn.create=t=>new Jn({typeName:me.ZodAny,...Se(t)});class Nn extends Ne{constructor(){super(...arguments),this._unknown=!0}_parse(e){return wt(e.data)}}Nn.create=t=>new Nn({typeName:me.ZodUnknown,...Se(t)});class Pr extends Ne{_parse(e){const r=this._getOrReturnCtx(e);return re(r,{code:J.invalid_type,expected:oe.never,received:r.parsedType}),be}}Pr.create=t=>new Pr({typeName:me.ZodNever,...Se(t)});class ri extends Ne{_parse(e){if(this._getType(e)!==oe.undefined){const o=this._getOrReturnCtx(e);return re(o,{code:J.invalid_type,expected:oe.void,received:o.parsedType}),be}return wt(e.data)}}ri.create=t=>new ri({typeName:me.ZodVoid,...Se(t)});class nr extends Ne{_parse(e){const{ctx:r,status:o}=this._processInputParams(e),i=this._def;if(r.parsedType!==oe.array)return re(r,{code:J.invalid_type,expected:oe.array,received:r.parsedType}),be;if(i.exactLength!==null){const d=r.data.length>i.exactLength.value,u=r.data.length<i.exactLength.value;(d||u)&&(re(r,{code:d?J.too_big:J.too_small,minimum:u?i.exactLength.value:void 0,maximum:d?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),o.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(re(r,{code:J.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),o.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(re(r,{code:J.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((d,u)=>i.type._parseAsync(new Cr(r,d,r.path,u)))).then(d=>ht.mergeArray(o,d));const s=[...r.data].map((d,u)=>i.type._parseSync(new Cr(r,d,r.path,u)));return ht.mergeArray(o,s)}get element(){return this._def.type}min(e,r){return new nr({...this._def,minLength:{value:e,message:ce.toString(r)}})}max(e,r){return new nr({...this._def,maxLength:{value:e,message:ce.toString(r)}})}length(e,r){return new nr({...this._def,exactLength:{value:e,message:ce.toString(r)}})}nonempty(e){return this.min(1,e)}}nr.create=(t,e)=>new nr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:me.ZodArray,...Se(e)});function Qn(t){if(t instanceof Ke){const e={};for(const r in t.shape){const o=t.shape[r];e[r]=kr.create(Qn(o))}return new Ke({...t._def,shape:()=>e})}else return t instanceof nr?new nr({...t._def,type:Qn(t.element)}):t instanceof kr?kr.create(Qn(t.unwrap())):t instanceof Qr?Qr.create(Qn(t.unwrap())):t instanceof _r?_r.create(t.items.map(e=>Qn(e))):t}class Ke extends Ne{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=Ie.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==oe.object){const h=this._getOrReturnCtx(e);return re(h,{code:J.invalid_type,expected:oe.object,received:h.parsedType}),be}const{status:o,ctx:i}=this._processInputParams(e),{shape:s,keys:d}=this._getCached(),u=[];if(!(this._def.catchall instanceof Pr&&this._def.unknownKeys==="strip"))for(const h in i.data)d.includes(h)||u.push(h);const p=[];for(const h of d){const f=s[h],y=i.data[h];p.push({key:{status:"valid",value:h},value:f._parse(new Cr(i,y,i.path,h)),alwaysSet:h in i.data})}if(this._def.catchall instanceof Pr){const h=this._def.unknownKeys;if(h==="passthrough")for(const f of u)p.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(h==="strict")u.length>0&&(re(i,{code:J.unrecognized_keys,keys:u}),o.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const f of u){const y=i.data[f];p.push({key:{status:"valid",value:f},value:h._parse(new Cr(i,y,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const h=[];for(const f of p){const y=await f.key,S=await f.value;h.push({key:y,value:S,alwaysSet:f.alwaysSet})}return h}).then(h=>ht.mergeObjectSync(o,h)):ht.mergeObjectSync(o,p)}get shape(){return this._def.shape()}strict(e){return ce.errToObj,new Ke({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,o)=>{var i,s,d,u;const p=(d=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,o).message)!==null&&d!==void 0?d:o.defaultError;return r.code==="unrecognized_keys"?{message:(u=ce.errToObj(e).message)!==null&&u!==void 0?u:p}:{message:p}}}:{}})}strip(){return new Ke({...this._def,unknownKeys:"strip"})}passthrough(){return new Ke({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ke({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ke({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:me.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Ke({...this._def,catchall:e})}pick(e){const r={};return Ie.objectKeys(e).forEach(o=>{e[o]&&this.shape[o]&&(r[o]=this.shape[o])}),new Ke({...this._def,shape:()=>r})}omit(e){const r={};return Ie.objectKeys(this.shape).forEach(o=>{e[o]||(r[o]=this.shape[o])}),new Ke({...this._def,shape:()=>r})}deepPartial(){return Qn(this)}partial(e){const r={};return Ie.objectKeys(this.shape).forEach(o=>{const i=this.shape[o];e&&!e[o]?r[o]=i:r[o]=i.optional()}),new Ke({...this._def,shape:()=>r})}required(e){const r={};return Ie.objectKeys(this.shape).forEach(o=>{if(e&&!e[o])r[o]=this.shape[o];else{let s=this.shape[o];for(;s instanceof kr;)s=s._def.innerType;r[o]=s}}),new Ke({...this._def,shape:()=>r})}keyof(){return wd(Ie.objectKeys(this.shape))}}Ke.create=(t,e)=>new Ke({shape:()=>t,unknownKeys:"strip",catchall:Pr.create(),typeName:me.ZodObject,...Se(e)}),Ke.strictCreate=(t,e)=>new Ke({shape:()=>t,unknownKeys:"strict",catchall:Pr.create(),typeName:me.ZodObject,...Se(e)}),Ke.lazycreate=(t,e)=>new Ke({shape:t,unknownKeys:"strip",catchall:Pr.create(),typeName:me.ZodObject,...Se(e)});class zo extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e),o=this._def.options;function i(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return r.common.issues.push(...u.ctx.common.issues),u.result;const d=s.map(u=>new Dt(u.ctx.common.issues));return re(r,{code:J.invalid_union,unionErrors:d}),be}if(r.common.async)return Promise.all(o.map(async s=>{const d={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:d}),ctx:d}})).then(i);{let s;const d=[];for(const p of o){const h={...r,common:{...r.common,issues:[]},parent:null},f=p._parseSync({data:r.data,path:r.path,parent:h});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:h}),h.common.issues.length&&d.push(h.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const u=d.map(p=>new Dt(p));return re(r,{code:J.invalid_union,unionErrors:u}),be}}get options(){return this._def.options}}zo.create=(t,e)=>new zo({options:t,typeName:me.ZodUnion,...Se(e)});const Dr=t=>t instanceof Uo?Dr(t.schema):t instanceof or?Dr(t.innerType()):t instanceof Zo?[t.value]:t instanceof Jr?t.options:t instanceof $o?Ie.objectValues(t.enum):t instanceof Wo?Dr(t._def.innerType):t instanceof Ro?[void 0]:t instanceof Oo?[null]:t instanceof kr?[void 0,...Dr(t.unwrap())]:t instanceof Qr?[null,...Dr(t.unwrap())]:t instanceof Rl||t instanceof Ko?Dr(t.unwrap()):t instanceof Ho?Dr(t._def.innerType):[];class ni extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.object)return re(r,{code:J.invalid_type,expected:oe.object,received:r.parsedType}),be;const o=this.discriminator,i=r.data[o],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(re(r,{code:J.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,o){const i=new Map;for(const s of r){const d=Dr(s.shape[e]);if(!d.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const u of d){if(i.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);i.set(u,s)}}return new ni({typeName:me.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Se(o)})}}function Fl(t,e){const r=qr(t),o=qr(e);if(t===e)return{valid:!0,data:t};if(r===oe.object&&o===oe.object){const i=Ie.objectKeys(e),s=Ie.objectKeys(t).filter(u=>i.indexOf(u)!==-1),d={...t,...e};for(const u of s){const p=Fl(t[u],e[u]);if(!p.valid)return{valid:!1};d[u]=p.data}return{valid:!0,data:d}}else if(r===oe.array&&o===oe.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let s=0;s<t.length;s++){const d=t[s],u=e[s],p=Fl(d,u);if(!p.valid)return{valid:!1};i.push(p.data)}return{valid:!0,data:i}}else return r===oe.date&&o===oe.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Go extends Ne{_parse(e){const{status:r,ctx:o}=this._processInputParams(e),i=(s,d)=>{if(Vl(s)||Vl(d))return be;const u=Fl(s.value,d.value);return u.valid?((Ll(s)||Ll(d))&&r.dirty(),{status:r.value,value:u.data}):(re(o,{code:J.invalid_intersection_types}),be)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([s,d])=>i(s,d)):i(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}Go.create=(t,e,r)=>new Go({left:t,right:e,typeName:me.ZodIntersection,...Se(r)});class _r extends Ne{_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==oe.array)return re(o,{code:J.invalid_type,expected:oe.array,received:o.parsedType}),be;if(o.data.length<this._def.items.length)return re(o,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),be;!this._def.rest&&o.data.length>this._def.items.length&&(re(o,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...o.data].map((d,u)=>{const p=this._def.items[u]||this._def.rest;return p?p._parse(new Cr(o,d,o.path,u)):null}).filter(d=>!!d);return o.common.async?Promise.all(s).then(d=>ht.mergeArray(r,d)):ht.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new _r({...this._def,rest:e})}}_r.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _r({items:t,typeName:me.ZodTuple,rest:null,...Se(e)})};class jo extends Ne{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==oe.object)return re(o,{code:J.invalid_type,expected:oe.object,received:o.parsedType}),be;const i=[],s=this._def.keyType,d=this._def.valueType;for(const u in o.data)i.push({key:s._parse(new Cr(o,u,o.path,u)),value:d._parse(new Cr(o,o.data[u],o.path,u)),alwaysSet:u in o.data});return o.common.async?ht.mergeObjectAsync(r,i):ht.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,o){return r instanceof Ne?new jo({keyType:e,valueType:r,typeName:me.ZodRecord,...Se(o)}):new jo({keyType:rr.create(),valueType:e,typeName:me.ZodRecord,...Se(r)})}}class oi extends Ne{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==oe.map)return re(o,{code:J.invalid_type,expected:oe.map,received:o.parsedType}),be;const i=this._def.keyType,s=this._def.valueType,d=[...o.data.entries()].map(([u,p],h)=>({key:i._parse(new Cr(o,u,o.path,[h,"key"])),value:s._parse(new Cr(o,p,o.path,[h,"value"]))}));if(o.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const p of d){const h=await p.key,f=await p.value;if(h.status==="aborted"||f.status==="aborted")return be;(h.status==="dirty"||f.status==="dirty")&&r.dirty(),u.set(h.value,f.value)}return{status:r.value,value:u}})}else{const u=new Map;for(const p of d){const h=p.key,f=p.value;if(h.status==="aborted"||f.status==="aborted")return be;(h.status==="dirty"||f.status==="dirty")&&r.dirty(),u.set(h.value,f.value)}return{status:r.value,value:u}}}}oi.create=(t,e,r)=>new oi({valueType:e,keyType:t,typeName:me.ZodMap,...Se(r)});class An extends Ne{_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==oe.set)return re(o,{code:J.invalid_type,expected:oe.set,received:o.parsedType}),be;const i=this._def;i.minSize!==null&&o.data.size<i.minSize.value&&(re(o,{code:J.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&o.data.size>i.maxSize.value&&(re(o,{code:J.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const s=this._def.valueType;function d(p){const h=new Set;for(const f of p){if(f.status==="aborted")return be;f.status==="dirty"&&r.dirty(),h.add(f.value)}return{status:r.value,value:h}}const u=[...o.data.values()].map((p,h)=>s._parse(new Cr(o,p,o.path,h)));return o.common.async?Promise.all(u).then(p=>d(p)):d(u)}min(e,r){return new An({...this._def,minSize:{value:e,message:ce.toString(r)}})}max(e,r){return new An({...this._def,maxSize:{value:e,message:ce.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}An.create=(t,e)=>new An({valueType:t,minSize:null,maxSize:null,typeName:me.ZodSet,...Se(e)});class Xn extends Ne{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.function)return re(r,{code:J.invalid_type,expected:oe.function,received:r.parsedType}),be;function o(u,p){return Xa({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Qa(),Kn].filter(h=>!!h),issueData:{code:J.invalid_arguments,argumentsError:p}})}function i(u,p){return Xa({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Qa(),Kn].filter(h=>!!h),issueData:{code:J.invalid_return_type,returnTypeError:p}})}const s={errorMap:r.common.contextualErrorMap},d=r.data;if(this._def.returns instanceof eo){const u=this;return wt(async function(...p){const h=new Dt([]),f=await u._def.args.parseAsync(p,s).catch(k=>{throw h.addIssue(o(p,k)),h}),y=await Reflect.apply(d,this,f);return await u._def.returns._def.type.parseAsync(y,s).catch(k=>{throw h.addIssue(i(y,k)),h})})}else{const u=this;return wt(function(...p){const h=u._def.args.safeParse(p,s);if(!h.success)throw new Dt([o(p,h.error)]);const f=Reflect.apply(d,this,h.data),y=u._def.returns.safeParse(f,s);if(!y.success)throw new Dt([i(f,y.error)]);return y.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Xn({...this._def,args:_r.create(e).rest(Nn.create())})}returns(e){return new Xn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,o){return new Xn({args:e||_r.create([]).rest(Nn.create()),returns:r||Nn.create(),typeName:me.ZodFunction,...Se(o)})}}class Uo extends Ne{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Uo.create=(t,e)=>new Uo({getter:t,typeName:me.ZodLazy,...Se(e)});class Zo extends Ne{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return re(r,{received:r.data,code:J.invalid_literal,expected:this._def.value}),be}return{status:"valid",value:e.data}}get value(){return this._def.value}}Zo.create=(t,e)=>new Zo({value:t,typeName:me.ZodLiteral,...Se(e)});function wd(t,e){return new Jr({values:t,typeName:me.ZodEnum,...Se(e)})}class Jr extends Ne{constructor(){super(...arguments),Lo.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),o=this._def.values;return re(r,{expected:Ie.joinValues(o),received:r.parsedType,code:J.invalid_type}),be}if(ei(this,Lo)||fd(this,Lo,new Set(this._def.values)),!ei(this,Lo).has(e.data)){const r=this._getOrReturnCtx(e),o=this._def.values;return re(r,{received:r.data,code:J.invalid_enum_value,options:o}),be}return wt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Jr.create(e,{...this._def,...r})}exclude(e,r=this._def){return Jr.create(this.options.filter(o=>!e.includes(o)),{...this._def,...r})}}Lo=new WeakMap,Jr.create=wd;class $o extends Ne{constructor(){super(...arguments),Io.set(this,void 0)}_parse(e){const r=Ie.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==oe.string&&o.parsedType!==oe.number){const i=Ie.objectValues(r);return re(o,{expected:Ie.joinValues(i),received:o.parsedType,code:J.invalid_type}),be}if(ei(this,Io)||fd(this,Io,new Set(Ie.getValidEnumValues(this._def.values))),!ei(this,Io).has(e.data)){const i=Ie.objectValues(r);return re(o,{received:o.data,code:J.invalid_enum_value,options:i}),be}return wt(e.data)}get enum(){return this._def.values}}Io=new WeakMap,$o.create=(t,e)=>new $o({values:t,typeName:me.ZodNativeEnum,...Se(e)});class eo extends Ne{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.promise&&r.common.async===!1)return re(r,{code:J.invalid_type,expected:oe.promise,received:r.parsedType}),be;const o=r.parsedType===oe.promise?r.data:Promise.resolve(r.data);return wt(o.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}eo.create=(t,e)=>new eo({type:t,typeName:me.ZodPromise,...Se(e)});class or extends Ne{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:o}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:d=>{re(o,d),d.fatal?r.abort():r.dirty()},get path(){return o.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const d=i.transform(o.data,s);if(o.common.async)return Promise.resolve(d).then(async u=>{if(r.value==="aborted")return be;const p=await this._def.schema._parseAsync({data:u,path:o.path,parent:o});return p.status==="aborted"?be:p.status==="dirty"||r.value==="dirty"?Yn(p.value):p});{if(r.value==="aborted")return be;const u=this._def.schema._parseSync({data:d,path:o.path,parent:o});return u.status==="aborted"?be:u.status==="dirty"||r.value==="dirty"?Yn(u.value):u}}if(i.type==="refinement"){const d=u=>{const p=i.refinement(u,s);if(o.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(o.common.async===!1){const u=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return u.status==="aborted"?be:(u.status==="dirty"&&r.dirty(),d(u.value),{status:r.value,value:u.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(u=>u.status==="aborted"?be:(u.status==="dirty"&&r.dirty(),d(u.value).then(()=>({status:r.value,value:u.value}))))}if(i.type==="transform")if(o.common.async===!1){const d=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!Do(d))return d;const u=i.transform(d.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:u}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(d=>Do(d)?Promise.resolve(i.transform(d.value,s)).then(u=>({status:r.value,value:u})):d);Ie.assertNever(i)}}or.create=(t,e,r)=>new or({schema:t,typeName:me.ZodEffects,effect:e,...Se(r)}),or.createWithPreprocess=(t,e,r)=>new or({schema:e,effect:{type:"preprocess",transform:t},typeName:me.ZodEffects,...Se(r)});class kr extends Ne{_parse(e){return this._getType(e)===oe.undefined?wt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}kr.create=(t,e)=>new kr({innerType:t,typeName:me.ZodOptional,...Se(e)});class Qr extends Ne{_parse(e){return this._getType(e)===oe.null?wt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Qr.create=(t,e)=>new Qr({innerType:t,typeName:me.ZodNullable,...Se(e)});class Wo extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e);let o=r.data;return r.parsedType===oe.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Wo.create=(t,e)=>new Wo({innerType:t,typeName:me.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Se(e)});class Ho extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e),o={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return Vo(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Dt(o.common.issues)},input:o.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Dt(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}Ho.create=(t,e)=>new Ho({innerType:t,typeName:me.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Se(e)});class ai extends Ne{_parse(e){if(this._getType(e)!==oe.nan){const o=this._getOrReturnCtx(e);return re(o,{code:J.invalid_type,expected:oe.nan,received:o.parsedType}),be}return{status:"valid",value:e.data}}}ai.create=t=>new ai({typeName:me.ZodNaN,...Se(t)});const Zf=Symbol("zod_brand");class Rl extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}}class qo extends Ne{_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?be:s.status==="dirty"?(r.dirty(),Yn(s.value)):this._def.out._parseAsync({data:s.value,path:o.path,parent:o})})();{const i=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?be:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:o.path,parent:o})}}static create(e,r){return new qo({in:e,out:r,typeName:me.ZodPipeline})}}class Ko extends Ne{_parse(e){const r=this._def.innerType._parse(e),o=i=>(Do(i)&&(i.value=Object.freeze(i.value)),i);return Vo(r)?r.then(i=>o(i)):o(r)}unwrap(){return this._def.innerType}}Ko.create=(t,e)=>new Ko({innerType:t,typeName:me.ZodReadonly,...Se(e)});function xd(t,e={},r){return t?Jn.create().superRefine((o,i)=>{var s,d;if(!t(o)){const u=typeof e=="function"?e(o):typeof e=="string"?{message:e}:e,p=(d=(s=u.fatal)!==null&&s!==void 0?s:r)!==null&&d!==void 0?d:!0,h=typeof u=="string"?{message:u}:u;i.addIssue({code:"custom",...h,fatal:p})}}):Jn.create()}const $f={object:Ke.lazycreate};var me;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(me||(me={}));const Wf=(t,e={message:`Input not instance of ${t.name}`})=>xd(r=>r instanceof t,e),Cd=rr.create,_d=Kr.create,Hf=ai.create,qf=Yr.create,kd=Fo.create,Kf=En.create,Yf=ti.create,Jf=Ro.create,Qf=Oo.create,Xf=Jn.create,em=Nn.create,tm=Pr.create,rm=ri.create,nm=nr.create,om=Ke.create,am=Ke.strictCreate,im=zo.create,lm=ni.create,sm=Go.create,cm=_r.create,dm=jo.create,um=oi.create,pm=An.create,gm=Xn.create,hm=Uo.create,fm=Zo.create,mm=Jr.create,vm=$o.create,ym=eo.create,Sd=or.create,bm=kr.create,wm=Qr.create,xm=or.createWithPreprocess,Cm=qo.create;var ii=Object.freeze({__proto__:null,defaultErrorMap:Kn,setErrorMap:Ef,getErrorMap:Qa,makeIssue:Xa,EMPTY_PATH:Nf,addIssueToContext:re,ParseStatus:ht,INVALID:be,DIRTY:Yn,OK:wt,isAborted:Vl,isDirty:Ll,isValid:Do,isAsync:Vo,get util(){return Ie},get objectUtil(){return Dl},ZodParsedType:oe,getParsedType:qr,ZodType:Ne,datetimeRegex:bd,ZodString:rr,ZodNumber:Kr,ZodBigInt:Yr,ZodBoolean:Fo,ZodDate:En,ZodSymbol:ti,ZodUndefined:Ro,ZodNull:Oo,ZodAny:Jn,ZodUnknown:Nn,ZodNever:Pr,ZodVoid:ri,ZodArray:nr,ZodObject:Ke,ZodUnion:zo,ZodDiscriminatedUnion:ni,ZodIntersection:Go,ZodTuple:_r,ZodRecord:jo,ZodMap:oi,ZodSet:An,ZodFunction:Xn,ZodLazy:Uo,ZodLiteral:Zo,ZodEnum:Jr,ZodNativeEnum:$o,ZodPromise:eo,ZodEffects:or,ZodTransformer:or,ZodOptional:kr,ZodNullable:Qr,ZodDefault:Wo,ZodCatch:Ho,ZodNaN:ai,BRAND:Zf,ZodBranded:Rl,ZodPipeline:qo,ZodReadonly:Ko,custom:xd,Schema:Ne,ZodSchema:Ne,late:$f,get ZodFirstPartyTypeKind(){return me},coerce:{string:t=>rr.create({...t,coerce:!0}),number:t=>Kr.create({...t,coerce:!0}),boolean:t=>Fo.create({...t,coerce:!0}),bigint:t=>Yr.create({...t,coerce:!0}),date:t=>En.create({...t,coerce:!0})},any:Xf,array:nm,bigint:qf,boolean:kd,date:Kf,discriminatedUnion:lm,effect:Sd,enum:mm,function:gm,instanceof:Wf,intersection:sm,lazy:hm,literal:fm,map:um,nan:Hf,nativeEnum:vm,never:tm,null:Qf,nullable:wm,number:_d,object:om,oboolean:()=>kd().optional(),onumber:()=>_d().optional(),optional:bm,ostring:()=>Cd().optional(),pipeline:Cm,preprocess:xm,promise:ym,record:dm,set:pm,strictObject:am,string:Cd,symbol:Yf,transformer:Sd,tuple:cm,undefined:Jf,union:im,unknown:em,void:rm,NEVER:be,ZodIssueCode:J,quotelessJson:Tf,ZodError:Dt});function _m(t){throw new Error("Unexpected object: "+t)}const km=-2147483648,Td=-9007199254740991n,Sm=NaN,Tm=NaN,Em=null,Nm=null;function Ed(t,e){switch(e){case"Int":return t===km;case"Long":return t===Number(Td)||t===Td;case"Float":return t===Sm;case"Double":return t===Tm;case"String":return t===Em;case"Bytes":return t===Nm;default:throw Error(`unsupported data type: ${e}`)}}function Am(t,e){const r=Math.floor(e/8),o=1<<7-e%8;return(t[r]&o)>0}function Nd(t){const{type:e,name:r,domain:o}=t;return{type:e,name:r,...o&&{domain:o}}}function Ol(t){return t.map(Nd)}function li(t,e){switch(t.type){case"column":return{type:"column",column:e(t.column)};case"inner":case"full":return{type:t.type,entries:t.entries.map(r=>li(r,e))};case"outer":return{type:"outer",primary:li(t.primary,e),secondary:t.secondary.map(r=>li(r,e))};default:_m(t)}}ii.object({__isRef:ii.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:ii.string().describe("Upstream block id"),name:ii.string().describe("Name of the output provided to the upstream block's output context")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").strict().readonly();function Mm(t){if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}function Bm(){return Mm()}function Pm(t){if(typeof globalThis.getEnvironmentValue=="function")return globalThis.getEnvironmentValue(t)}function to(t){return!!t&&typeof t.children<"u"}function Xr(t){return to(t)?t.groupId:t.colId}function Ad(t,e,r){const o=(d,u)=>{const p=d.children.map(Xr),h=C._includes(p,Xr(u)),f=C._last(d.children),y=f&&Xr(f)!==Xr(u);return h&&y};if(!to(t))return!0;const i=t,s=r;if(o(i,s))return i.children.push(s),!0;if(i.groupId===e){const d=i.children.map(Xr);if(!C._includes(d,Xr(s)))return i.children.push(s),!0}for(let d=i.children.length-1;d>=0&&!Ad(i.children[d],e,r);d--);return!1}function Dm(t){const e=(i,s)=>to(i)&&to(s)&&Xr(i)===Xr(s),r=(i,s)=>{if(!to(s))return i;const d=i,u=s;return u.children&&u.groupId&&Ad(d,u.groupId,u.children[0])||u.children.forEach(p=>r(d,p)),d},o=[];for(let i=1;i<=t.length;i++){const s=t[i-1],d=t[i];e(s,d)?t[i]=r(s,d):o.push(s)}return o}var Vm=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="toolPanelColDefService"}wireBeans(t){this.columnModel=t.columnModel}createColumnTree(t){const e=[],r=(i,s)=>{if(to(i)){const d=i,u=typeof d.groupId<"u"?d.groupId:d.headerName,p=new C.AgProvidedColumnGroup(d,u,!1,s),h=[];return d.children.forEach(f=>{const y=r(f,s+1);y&&h.push(y)}),p.setChildren(h),p}else{const d=i,u=d.colId?d.colId:d.field,p=this.columnModel.getColDefCol(u);return p||e.push(d),p}},o=[];return t.forEach(i=>{const s=r(i,0);s&&o.push(s)}),e.length>0&&C._warnOnce("unable to find grid columns for the supplied colDef(s):",e),o}syncLayoutWithGrid(t){const e=this.getLeafPathTrees(),r=Dm(e);t(r)}getLeafPathTrees(){const t=(o,i)=>{let s;if(C.isProvidedColumnGroup(o))if(o.isPadding())s=i;else{const u=Object.assign({},o.getColGroupDef());u.groupId=o.getGroupId(),u.children=[i],s=u}else{const u=Object.assign({},o.getColDef());u.colId=o.getColId(),s=u}const d=o.getOriginalParent();return d?t(d,s):s};return this.columnModel.getCols().filter(o=>{const i=o.getColDef();return o.isPrimary()&&!i.showRowGroup}).map(o=>t(o,o.getColDef()))}};function Lm(t){var e;return((e=t.sideBarService)==null?void 0:e.getSideBarComp().isDisplayed())??!1}function Im(t,e){var r;(r=t.sideBarService)==null||r.getSideBarComp().setDisplayed(e)}function Fm(t,e){var r;(r=t.sideBarService)==null||r.getSideBarComp().setSideBarPosition(e)}function Rm(t,e){var r;(r=t.sideBarService)==null||r.getSideBarComp().openToolPanel(e,"api")}function Om(t){var e;(e=t.sideBarService)==null||e.getSideBarComp().close("api")}function zm(t){var e;return((e=t.sideBarService)==null?void 0:e.getSideBarComp().openedItem())??null}function Gm(t){var e;(e=t.sideBarService)==null||e.getSideBarComp().refresh()}function jm(t){var e;return((e=t.sideBarService)==null?void 0:e.getSideBarComp().isToolPanelShowing())??!1}function Um(t,e){var o;const r=(o=t.sideBarService)==null?void 0:o.getSideBarComp().getToolPanelInstance(e);return C._unwrapUserComp(r)}function Zm(t){var e;return(e=t.sideBarService)==null?void 0:e.getSideBarComp().getDef()}var $m=class extends C.Component{constructor(t){super(),this.eToggleButton=C.RefPlaceholder,this.eIconWrapper=C.RefPlaceholder,this.eLabel=C.RefPlaceholder,this.toolPanelDef=t}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){const t=this.createTemplate();this.setTemplate(t,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation">
|
|
4
|
+
<button type="button" data-ref="eToggleButton" tabindex="-1" role="tab" aria-expanded="false" class="ag-button ag-side-button-button">
|
|
5
|
+
<div data-ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>
|
|
6
|
+
<span data-ref="eLabel" class="ag-side-button-label"></span>
|
|
7
|
+
</button>
|
|
8
|
+
</div>`}setLabel(){const t=this.localeService.getLocaleTextFunc(),e=this.toolPanelDef,r=t(e.labelKey,e.labelDefault);this.eLabel.innerText=r}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",C._createIconNoSpan(this.toolPanelDef.iconKey,this.gos))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(t){this.addOrRemoveCssClass("ag-selected",t),C._setAriaExpanded(this.eToggleButton,t)}getButtonElement(){return this.eToggleButton}},Wm=class extends C.Component{constructor(){super('<div class="ag-side-buttons" role="tablist"></div>'),this.buttonComps=[]}wireBeans(t){this.focusService=t.focusService,this.visibleColsService=t.visibleColsService}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(t){if(!(t.key!==C.KeyCode.TAB||!t.shiftKey)){if(this.focusService.focusNextGridCoreContainer(!0)){t.preventDefault();return}C._stopPropagationForAgGrid(t)}}setActiveButton(t){this.buttonComps.forEach(e=>{e.setSelected(t===e.getToolPanelId())})}addButtonComp(t){const e=this.createBean(new $m(t));return this.buttonComps.push(e),this.appendChild(e),e.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:t.id})}),e}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),C._clearElement(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}},Hm={selector:"AG-SIDE-BAR-BUTTONS",component:Wm},Md={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},Bd={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},zl={columns:Md,filters:Bd};function Gl(t){if(!t)return;if(t===!0)return{toolPanels:[Md,Bd],defaultToolPanel:"columns"};if(typeof t=="string")return Gl([t]);if(Array.isArray(t)){const r=[];return t.forEach(o=>{const i=zl[o];if(!i){Pd(o);return}r.push(i)}),r.length===0?void 0:{toolPanels:r,defaultToolPanel:r[0].id}}return{toolPanels:qm(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}}function Pd(t){C._warnOnce(`the key ${t} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(zl).join(",")}`)}function qm(t){const e=[];return t&&t.forEach(r=>{let o=null;if(typeof r=="string"){const i=zl[r];if(!i){Pd(r);return}o=i}else o=r;e.push(o)}),e}var Km=class extends C.Component{constructor(){super('<div class="ag-tool-panel-horizontal-resize"></div>'),this.minWidth=100,this.maxWidth=null}wireBeans(t){this.horizontalResizeService=t.horizontalResizeService}setElementToResize(t){this.elementToResize=t}postConstruct(){const t=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(t),this.setInverted(this.gos.get("enableRtl"))}dispatchResizeEvent(t,e,r){this.eventService.dispatchEvent({type:"toolPanelSizeChanged",width:r,started:t,ended:e})}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(t){return this.onResizing(t,!0)}onResizing(t,e=!1){const r=this.inverted?-1:1;let o=Math.max(this.minWidth,Math.floor(this.startingWidth-t*r));this.maxWidth!=null&&(o=Math.min(this.maxWidth,o)),this.elementToResize.style.width=`${o}px`,this.dispatchResizeEvent(!1,e,o)}setInverted(t){this.inverted=t}setMaxWidth(t){this.maxWidth=t}setMinWidth(t){t!=null?this.minWidth=t:this.minWidth=100}},Ym=class extends C.Component{wireBeans(t){this.userComponentFactory=t.userComponentFactory}constructor(){super('<div class="ag-tool-panel-wrapper" role="tabpanel"/>')}postConstruct(){const t=this.getGui(),e=this.resizeBar=this.createManagedBean(new Km);t.setAttribute("id",`ag-${this.getCompId()}`),e.setElementToResize(t),this.appendChild(e)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(t,e){const{id:r,minWidth:o,maxWidth:i,width:s}=t;this.toolPanelId=r,this.width=s;const d=this.userComponentFactory.getToolPanelCompDetails(t,e),u=d.newAgStackInstance();if(this.params=d.params,u==null){C._warnOnce(`error processing tool panel component ${r}. You need to specify 'toolPanel'`);return}u.then(this.setToolPanelComponent.bind(this)),o!=null&&this.resizeBar.setMinWidth(o),i!=null&&this.resizeBar.setMaxWidth(i)}setToolPanelComponent(t){this.toolPanelCompInstance=t,this.appendChild(t.getGui()),this.addDestroyFunc(()=>{this.destroyBean(t)}),this.width&&(this.getGui().style.width=`${this.width}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(t){const e=this.gos.get("enableRtl"),r=t==="left",o=e?r:!r;this.resizeBar.setInverted(o)}refresh(){var t;(t=this.toolPanelCompInstance)==null||t.refresh(this.params)}},Jm=class extends C.Component{constructor(){super(`<div class="ag-side-bar ag-unselectable">
|
|
9
|
+
<ag-side-bar-buttons data-ref="sideBarButtons"></ag-side-bar-buttons>
|
|
10
|
+
</div>`,[Hm]),this.sideBarButtons=C.RefPlaceholder,this.toolPanelWrappers=[]}wireBeans(t){this.focusService=t.focusService,this.filterManager=t.filterManager,this.sideBarService=t.sideBarService}postConstruct(){this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));const{sideBar:t}=this.gos.get("initialState")??{};this.setSideBarDef({sideBarDef:Gl(this.gos.get("sideBar")),sideBarState:t}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),this.sideBarService.registerSideBarComp(this);const e=this.getFocusableElement();this.createManagedBean(new C.ManagedFocusFeature(e,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),C._addFocusableContainerListener(this,e,this.focusService)}onTabKeyDown(t){if(t.defaultPrevented)return;const{focusService:e,sideBarButtons:r}=this,o=this.getGui(),i=r.getGui(),s=C._getActiveDomElement(this.gos),d=o.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),u=t.target;if(!d)return e.focusNextGridCoreContainer(t.shiftKey,!0);if(i.contains(s)){e.focusInto(d,t.shiftKey)&&t.preventDefault();return}if(!t.shiftKey)return;let p=null;d.contains(s)?p=this.focusService.findNextFocusableElement(d,void 0,!0):e.isTargetUnderManagedComponent(d,u)&&t.shiftKey&&(p=this.focusService.findFocusableElementBeforeTabGuard(d,u)),p||(p=i.querySelector(".ag-selected button")),p&&p!==t.target&&(t.preventDefault(),p.focus())}handleKeyDown(t){const e=C._getActiveDomElement(this.gos);if(!this.sideBarButtons.getGui().contains(e))return;const r=this.sideBarButtons.getGui(),o=Array.prototype.slice.call(r.querySelectorAll(".ag-side-button")),i=o.findIndex(u=>u.contains(e));let s=null;switch(t.key){case C.KeyCode.LEFT:case C.KeyCode.UP:s=Math.max(0,i-1);break;case C.KeyCode.RIGHT:case C.KeyCode.DOWN:s=Math.min(i+1,o.length-1);break}if(s===null)return;const d=o[s].querySelector("button");d&&(d.focus(),t.preventDefault())}onToolPanelButtonClicked(t){const e=t.toolPanelId;this.openedItem()===e?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(e,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:t,sideBarState:e,existingToolPanelWrappers:r}){if(this.setDisplayed(!1),this.sideBar=t,this.sideBar&&this.sideBar.toolPanels){const o=this.sideBar.toolPanels;if(this.createToolPanelsAndSideButtons(o,e,r),!this.toolPanelWrappers.length)return;const i=e?e.visible:!this.sideBar.hiddenByDefault;if(this.setDisplayed(i),this.setSideBarPosition(e?e.position:this.sideBar.position),i)if(e){const{openToolPanel:s}=e;s&&this.openToolPanel(s,"sideBarInitializing")}else this.openToolPanel(this.sideBar.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(t){t||(t="right"),this.position=t;const e=t==="left",r=e?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",e),this.addOrRemoveCssClass("ag-side-bar-right",!e),this.toolPanelWrappers.forEach(o=>{o.setResizerSizerSide(r)}),this.dispatchSideBarUpdated(),this}setDisplayed(t,e){super.setDisplayed(t,e),this.dispatchSideBarUpdated()}getState(){const t={};return this.toolPanelWrappers.forEach(e=>{var r,o;t[e.getToolPanelId()]=(o=(r=e.getToolPanelInstance())==null?void 0:r.getState)==null?void 0:o.call(r)}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:t}}createToolPanelsAndSideButtons(t,e,r){var o;for(const i of t)this.createToolPanelAndSideButton(i,(o=e==null?void 0:e.toolPanels)==null?void 0:o[i.id],r==null?void 0:r[i.id])}validateDef(t){var e;if(t.id==null)return C._warnOnce("please review all your toolPanel components, it seems like at least one of them doesn't have an id"),!1;if(t.toolPanel==="agColumnsToolPanel"&&!this.gos.assertModuleRegistered(C.ModuleNames.ColumnsToolPanelModule,"Column Tool Panel"))return!1;if(t.toolPanel==="agFiltersToolPanel"){if(!this.gos.assertModuleRegistered(C.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel"))return!1;if((e=this.filterManager)!=null&&e.isAdvancedFilterEnabled())return C._warnOnce("Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled."),!1}return!0}createToolPanelAndSideButton(t,e,r){if(!this.validateDef(t))return;const o=this.sideBarButtons.addButtonComp(t);let i;r?i=r:(i=this.createBean(new Ym),i.setToolPanelDef(t,{initialState:e,onStateUpdated:()=>this.dispatchSideBarUpdated()})),i.setDisplayed(!1);const s=i.getGui();this.appendChild(s),this.toolPanelWrappers.push(i),C._setAriaControls(o.getButtonElement(),s)}refresh(){this.toolPanelWrappers.forEach(t=>t.refresh())}openToolPanel(t,e="api"){const r=this.openedItem();if(r===t)return;this.toolPanelWrappers.forEach(s=>{const d=t===s.getToolPanelId();s.setDisplayed(d)});const o=this.openedItem();r!==o&&(this.sideBarButtons.setActiveButton(t),this.raiseToolPanelVisibleEvent(t,r??void 0,e))}getToolPanelInstance(t){const e=this.toolPanelWrappers.filter(r=>r.getToolPanelId()===t)[0];if(!e){C._warnOnce(`unable to lookup Tool Panel as invalid key supplied: ${t}`);return}return e.getToolPanelInstance()}raiseToolPanelVisibleEvent(t,e,r){const o=!!t&&!!e;e&&this.eventService.dispatchEvent({type:"toolPanelVisibleChanged",source:r,key:e,visible:!1,switchingToolPanel:o}),t&&this.eventService.dispatchEvent({type:"toolPanelVisibleChanged",source:r,key:t,visible:!0,switchingToolPanel:o})}close(t="api"){this.openToolPanel(void 0,t)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let t=null;return this.toolPanelWrappers.forEach(e=>{e.isDisplayed()&&(t=e.getToolPanelId())}),t}onSideBarUpdated(){var r;const t=Gl(this.gos.get("sideBar")),e={};t&&this.sideBar&&((r=t.toolPanels)==null||r.forEach(o=>{var h,f;const{id:i}=o;if(!i)return;const s=(h=this.sideBar.toolPanels)==null?void 0:h.find(y=>y.id===i);if(!s||o.toolPanel!==s.toolPanel)return;const d=this.toolPanelWrappers.find(y=>y.getToolPanelId()===i);if(!d)return;const u=this.gos.addGridCommonParams({...o.toolPanelParams??{},onStateUpdated:()=>this.dispatchSideBarUpdated()});((f=d.getToolPanelInstance())==null?void 0:f.refresh(u))===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(y=>y!==d),C._removeFromParent(d.getGui()),e[i]=d)})),this.clearDownUi(),this.setSideBarDef({sideBarDef:t,existingToolPanelWrappers:e})}dispatchSideBarUpdated(){this.eventService.dispatchEvent({type:"sideBarUpdated"})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(t=>{C._removeFromParent(t.getGui()),this.destroyBean(t)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}},Qm={selector:"AG-SIDE-BAR",component:Jm},Xm=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="sideBarService"}registerSideBarComp(t){this.sideBarComp=t}getSideBarComp(){return this.sideBarComp}getSideBarSelector(){return Qm}},jl="32.3.2",Dd=C._defineModule({version:jl,moduleName:`${C.ModuleNames.SideBarModule}-core`,beans:[Vm,Xm],dependantModules:[Le.EnterpriseCoreModule]}),ev=C._defineModule({version:jl,moduleName:`${C.ModuleNames.SideBarModule}-api`,apiFunctions:{isSideBarVisible:Lm,setSideBarVisible:Im,setSideBarPosition:Fm,openToolPanel:Rm,closeToolPanel:Om,getOpenedToolPanel:zm,refreshToolPanel:Gm,isToolPanelShowing:jm,getToolPanelInstance:Um,getSideBar:Zm},dependantModules:[Dd]}),Ul=C._defineModule({version:jl,moduleName:C.ModuleNames.SideBarModule,dependantModules:[Dd,ev]}),tv={sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"},rv=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="aggFuncService",this.aggFuncsMap={},this.initialised=!1}postConstruct(){this.init()}init(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gos.get("aggFuncs")))}initialiseWithDefaultAggregations(){const t=this.aggFuncsMap;t.sum=nv,t.first=ov,t.last=av,t.min=iv,t.max=lv,t.count=sv,t.avg=cv,this.initialised=!0}isAggFuncPossible(t,e){const r=this.getFuncNames(t),o=C._includes(r,e),i=C._exists(this.aggFuncsMap[e]);return o&&i}getDefaultFuncLabel(t){return tv[t]??t}getDefaultAggFunc(t){const e=t.getColDef().defaultAggFunc;if(C._exists(e)&&this.isAggFuncPossible(t,e))return e;if(this.isAggFuncPossible(t,"sum"))return"sum";const r=this.getFuncNames(t);return C._existsAndNotEmpty(r)?r[0]:null}addAggFuncs(t){this.init(),C._iterateObject(t,(e,r)=>{this.aggFuncsMap[e]=r})}getAggFunc(t){return this.init(),this.aggFuncsMap[t]}getFuncNames(t){const e=t.getColDef().allowedAggFuncs;return e??Object.keys(this.aggFuncsMap).sort()}clear(){this.aggFuncsMap={}}};function nv(t){const{values:e}=t;let r=null;for(let o=0;o<e.length;o++){const i=e[o];typeof i=="number"?r===null?r=i:r+=typeof r=="number"?i:BigInt(i):typeof i=="bigint"&&(r===null?r=i:r=(typeof r=="bigint"?r:BigInt(r))+i)}return r}function ov(t){return t.values.length>0?t.values[0]:null}function av(t){return t.values.length>0?C._last(t.values):null}function iv(t){const{values:e}=t;let r=null;for(let o=0;o<e.length;o++){const i=e[o];(typeof i=="number"||typeof i=="bigint")&&(r===null||r>i)&&(r=i)}return r}function lv(t){const{values:e}=t;let r=null;for(let o=0;o<e.length;o++){const i=e[o];(typeof i=="number"||typeof i=="bigint")&&(r===null||r<i)&&(r=i)}return r}function sv(t){var i,s;const{values:e}=t;let r=0;for(let d=0;d<e.length;d++){const u=e[d];r+=u!=null&&typeof u.value=="number"?u.value:1}const o=(s=(i=t.rowNode)==null?void 0:i.aggData)==null?void 0:s[t.column.getColId()];return o&&o.value===r?o:{value:r,toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function cv(t){var d,u,p;const{values:e}=t;let r=0,o=0;for(let h=0;h<e.length;h++){const f=e[h];let y=null;typeof f=="number"||typeof f=="bigint"?(y=f,o++):f!=null&&(typeof f.value=="number"||typeof f.value=="bigint")&&typeof f.count=="number"&&(y=f.value*(typeof f.value=="number"?f.count:BigInt(f.count)),o+=f.count),typeof y=="number"?r+=typeof r=="number"?y:BigInt(y):typeof y=="bigint"&&(r=(typeof r=="bigint"?r:BigInt(r))+y)}let i=null;o>0&&(i=r/(typeof r=="number"?o:BigInt(o)));const s=(p=(d=t.rowNode)==null?void 0:d.aggData)==null?void 0:p[(u=t.column)==null?void 0:u.getColId()];return s&&s.count===o&&s.value===i?s:{count:o,value:i,toString:function(){return typeof this.value=="number"||typeof this.value=="bigint"?this.value.toString():""},toNumber:function(){return this.value}}}var dv=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="aggregationStage"}wireBeans(t){this.columnModel=t.columnModel,this.aggFuncService=t.aggFuncService,this.funcColsService=t.funcColsService,this.pivotResultColsService=t.pivotResultColsService,this.valueService=t.valueService}execute(t){const e=C._missingOrEmpty(this.funcColsService.getValueColumns()),r=!this.gos.getCallback("getGroupRowAgg"),o=t.changedPath&&t.changedPath.isActive();if(e&&r&&o)return;const i=this.createAggDetails(t);this.recursivelyCreateAggData(i)}createAggDetails(t){const e=this.columnModel.isPivotActive(),r=this.funcColsService.getValueColumns(),o=e?this.funcColsService.getPivotColumns():[];return{alwaysAggregateAtRootLevel:this.gos.get("alwaysAggregateAtRootLevel"),groupIncludeTotalFooter:!!C._getGrandTotalRow(this.gos),changedPath:t.changedPath,valueColumns:r,pivotColumns:o,filteredOnly:!this.isSuppressAggFilteredOnly(),userAggFunc:this.gos.getCallback("getGroupRowAgg")}}isSuppressAggFilteredOnly(){return C._getGroupAggFiltering(this.gos)!==void 0||this.gos.get("suppressAggFilteredOnly")}recursivelyCreateAggData(t){const e=r=>{if(!r.hasChildren()){r.aggData&&r.setAggData(null);return}if(r.level===-1&&!t.groupIncludeTotalFooter){const s=!this.columnModel.isPivotMode();if(!t.alwaysAggregateAtRootLevel&&s){r.setAggData(null);return}}this.aggregateRowNode(r,t)};t.changedPath.forEachChangedNodeDepthFirst(e,!0)}aggregateRowNode(t,e){const r=e.valueColumns.length===0,o=e.pivotColumns.length===0;let i;e.userAggFunc?i=e.userAggFunc({nodes:t.childrenAfterFilter}):r?i=null:o?i=this.aggregateRowNodeUsingValuesOnly(t,e):i=this.aggregateRowNodeUsingValuesAndPivot(t),t.setAggData(i),t.sibling&&t.sibling.setAggData(i)}aggregateRowNodeUsingValuesAndPivot(t){var i;const e={},r=((i=this.pivotResultColsService.getPivotResultCols())==null?void 0:i.list)??[];let o=!0;for(let s=0;s<r.length;s++){const d=r[s],u=d.getColDef();if(u.pivotTotalColumnIds!=null){o=!1;continue}const p=u.pivotKeys??[];let h;t.leafGroup?h=this.getValuesFromMappedSet(t.childrenMapped,p,u.pivotValueColumn):h=this.getValuesPivotNonLeaf(t,u.colId),e[u.colId]=this.aggregateValues(h,u.pivotValueColumn.getAggFunc(),u.pivotValueColumn,t,d)}if(!o)for(let s=0;s<r.length;s++){const d=r[s],u=d.getColDef();if(u.pivotTotalColumnIds==null||!u.pivotTotalColumnIds.length)continue;const p=u.pivotTotalColumnIds.map(h=>e[h]);e[u.colId]=this.aggregateValues(p,u.pivotValueColumn.getAggFunc(),u.pivotValueColumn,t,d)}return e}aggregateRowNodeUsingValuesOnly(t,e){const r={},o=e.changedPath.isActive()?e.changedPath.getValueColumnsForNode(t,e.valueColumns):e.valueColumns,i=e.changedPath.isActive()?e.changedPath.getNotValueColumnsForNode(t,e.valueColumns):null,s=this.getValuesNormal(t,o,e.filteredOnly),d=t.aggData;return o.forEach((u,p)=>{r[u.getId()]=this.aggregateValues(s[p],u.getAggFunc(),u,t)}),i&&d&&i.forEach(u=>{r[u.getId()]=d[u.getId()]}),r}getValuesPivotNonLeaf(t,e){return t.childrenAfterFilter.map(r=>r.aggData[e])}getValuesFromMappedSet(t,e,r){let o=t;for(let i=0;i<e.length;i++){const s=e[i];o=o?o[s]:null}return o?o.map(i=>this.valueService.getValue(r,i)):[]}getValuesNormal(t,e,r){const o=[];e.forEach(()=>o.push([]));const i=e.length,s=r?t.childrenAfterFilter:t.childrenAfterGroup,d=s.length;for(let u=0;u<d;u++){const p=s[u];for(let h=0;h<i;h++){const f=e[h],y=this.valueService.getValue(f,p);o[h].push(y)}}return o}aggregateValues(t,e,r,o,i){const s=typeof e=="string"?this.aggFuncService.getAggFunc(e):e;if(typeof s!="function")return C._errorOnce(`unrecognised aggregation function ${e}`),null;const d=s,u=this.gos.addGridCommonParams({values:t,column:r,colDef:r?r.getColDef():void 0,pivotResultColumn:i,rowNode:o,data:o?o.data:void 0});return d(u)}},uv=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="autoColService"}wireBeans(t){this.columnModel=t.columnModel,this.columnNameService=t.columnNameService,this.columnFactory=t.columnFactory}createAutoCols(t){const e=[],r=this.gos.get("treeData");let o=C._isGroupMultiAutoColumn(this.gos);return r&&o&&(C._warnOnce('you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),o=!1),o?t.forEach((i,s)=>{e.push(this.createOneAutoCol(i,s))}):e.push(this.createOneAutoCol()),e}updateAutoCols(t,e){t.forEach((r,o)=>this.updateOneAutoCol(r,o,e))}createOneAutoCol(t,e){let r;t?r=`${C.GROUP_AUTO_COLUMN_ID}-${t.getId()}`:r=C.GROUP_AUTO_COLUMN_ID;const o=this.createAutoColDef(r,t,e);o.colId=r;const i=new C.AgColumn(o,null,r,!0);return this.createBean(i),i}updateOneAutoCol(t,e,r){const o=t.getColDef(),i=typeof o.showRowGroup=="string"?o.showRowGroup:void 0,s=i!=null?this.columnModel.getColDefCol(i):void 0,d=this.createAutoColDef(t.getId(),s??void 0,e);t.setColDef(d,null,r),this.columnFactory.applyColumnState(t,d,r)}createAutoColDef(t,e,r){let o=this.createBaseColDef(e);const i=this.gos.get("autoGroupColumnDef");C._mergeDeep(o,i),o=this.columnFactory.addColumnDefaultAndTypes(o,t),this.gos.get("treeData")||C._missing(o.field)&&C._missing(o.valueGetter)&&C._missing(o.filterValueGetter)&&o.filter!=="agGroupColumnFilter"&&(o.filter=!1),r&&r>0&&(o.headerCheckboxSelection=!1);const s=C._isColumnsSortingCoupledToGroup(this.gos),d=o.valueGetter||o.field!=null;return s&&!d&&(o.sortIndex=void 0,o.initialSort=void 0),o}createBaseColDef(t){const e=this.gos.get("autoGroupColumnDef"),o={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(e&&(e.cellRenderer||e.cellRendererSelector)||(o.cellRenderer="agGroupCellRenderer"),t){const s=t.getColDef();Object.assign(o,{headerName:this.columnNameService.getDisplayNameForColumn(t,"header"),headerValueGetter:s.headerValueGetter}),s.cellRenderer&&Object.assign(o,{cellRendererParams:{innerRenderer:s.cellRenderer,innerRendererParams:s.cellRendererParams}}),o.showRowGroup=t.getColId()}else o.showRowGroup=!0;return o}},pv=class extends Le.PillDragComp{constructor(t,e,r,o,i){super(e,r,i,`
|
|
11
|
+
<span role="option">
|
|
12
|
+
<span data-ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>
|
|
13
|
+
<span data-ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>
|
|
14
|
+
<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>
|
|
15
|
+
<span data-ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>
|
|
16
|
+
</span>
|
|
17
|
+
`,[C.SortIndicatorSelector]),this.column=t,this.dropZonePurpose=o,this.eSortIndicator=C.RefPlaceholder,this.popupShowing=!1}wireBeans(t){super.wireBeans(t),this.popupService=t.popupService,this.sortController=t.sortController,this.columnModel=t.columnModel,this.columnNameService=t.columnNameService,this.funcColsService=t.funcColsService,this.aggFuncService=t.aggFuncService}postConstruct(){this.displayName=this.columnNameService.getDisplayNameForColumn(this.column,"columnDrop"),super.postConstruct(),this.setupSort(),this.addManagedEventListeners({sortChanged:()=>{this.setupAria()}}),this.isGroupingZone()&&this.addManagedPropertyListener("groupLockGroupColumns",()=>{this.refreshRemove(),this.refreshDraggable(),this.setupAria()})}getItem(){return this.column}getDisplayName(){return this.displayName}getTooltip(){return this.column.getColDef().headerTooltip}addAdditionalAriaInstructions(t,e){const r=this.gos.get("rowGroupPanelSuppressSort"),o=this.gos.get("functionsReadOnly");if(this.isAggregationZone()&&!o){const i=e("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");t.push(i)}if(this.isGroupingZone()&&this.column.isSortable()&&!r){const i=e("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");t.push(i)}super.addAdditionalAriaInstructions(t,e)}isDraggable(){return this.isReadOnly()}isRemovable(){return this.isReadOnly()}isReadOnly(){return!this.isGroupingAndLocked()&&!this.gos.get("functionsReadOnly")}getAriaDisplayName(){const t=this.localeService.getLocaleTextFunc(),{name:e,aggFuncName:r}=this.getColumnAndAggFuncName(),o=t("ariaDropZoneColumnComponentAggFuncSeparator"," of "),i={asc:t("ariaDropZoneColumnComponentSortAscending","ascending"),desc:t("ariaDropZoneColumnComponentSortDescending","descending")},s=this.column.getSort(),d=this.gos.get("rowGroupPanelSuppressSort");return[r&&`${r}${o}`,e,this.isGroupingZone()&&!d&&s&&`, ${i[s]}`].filter(u=>!!u).join("")}getColumnAndAggFuncName(){const t=this.displayName;let e="";if(this.isAggregationZone()){const r=this.column.getAggFunc(),o=typeof r=="string"?r:"agg";e=this.localeService.getLocaleTextFunc()(o,o)}return{name:t,aggFuncName:e}}setupSort(){const t=this.column.isSortable(),e=this.isGroupingZone();if(!(!t||!e)&&!this.gos.get("rowGroupPanelSuppressSort")){this.eSortIndicator.setupSort(this.column,!0);const r=o=>{o.preventDefault();const s=this.gos.get("multiSortKey")==="ctrl"?o.ctrlKey||o.metaKey:o.shiftKey;this.sortController.progressSort(this.column,s,"uiColumnSorted")};this.addGuiEventListener("click",r),this.addGuiEventListener("keydown",o=>{o.key===C.KeyCode.ENTER&&this.isGroupingZone()&&r(o)})}}getDefaultIconName(){return"hide"}createGetDragItem(){const{column:t}=this;return()=>{const e={};return e[t.getId()]=t.isVisible(),{columns:[t],visibleState:e}}}setupComponents(){super.setupComponents(),this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))}onKeyDown(t){super.onKeyDown(t),t.key===C.KeyCode.ENTER&&this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&(t.preventDefault(),this.onShowAggFuncSelection())}getDisplayValue(){const{name:t,aggFuncName:e}=this.getColumnAndAggFuncName();return this.isAggregationZone()?`${e}(${t})`:t}onShowAggFuncSelection(){if(this.popupShowing)return;this.popupShowing=!0;const t=new Le.VirtualList({cssIdentifier:"select-agg-func"}),e=this.aggFuncService.getFuncNames(this.column),r=this.getGui(),o=t.getGui();t.setModel({getRow:function(f){return e[f]},getRowCount:function(){return e.length}}),this.createBean(t);const i=C._loadTemplate('<div class="ag-select-agg-func-popup"></div>');i.style.top="0px",i.style.left="0px",i.appendChild(o),i.style.width=`${r.clientWidth}px`;const[s]=this.addManagedElementListeners(i,{focusout:f=>{!i.contains(f.relatedTarget)&&p&&p.hideFunc()}}),d=f=>{this.destroyBean(t),this.popupShowing=!1,(f==null?void 0:f.key)==="Escape"&&r.focus(),s&&s()},u=this.localeService.getLocaleTextFunc(),p=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:d,ariaLabel:u("ariaLabelAggregationFunction","Aggregation Function")});p&&t.setComponentCreator(this.createAggSelect.bind(this,p.hideFunc)),t.addGuiEventListener("keydown",f=>{if(f.key===C.KeyCode.ENTER||f.key===C.KeyCode.SPACE){const y=t.getLastFocusedRow();if(y==null)return;const S=t.getComponentAt(y);S&&S.selectItem()}}),this.popupService.positionPopupByComponent({type:"aggFuncSelect",eventSource:r,ePopup:i,keepWithinBounds:!0,column:this.column,position:"under"}),t.refresh();let h=e.findIndex(f=>f===this.column.getAggFunc());h===-1&&(h=0),t.focusRow(h)}createAggSelect(t,e){const r=()=>{t(),this.getGui().focus(),this.funcColsService.setColumnAggFunc(this.column,e,"toolPanelDragAndDrop")},o=this.localeService.getLocaleTextFunc(),i=e.toString(),s=o(i,i);return new gv(r,s)}isGroupingAndLocked(){return this.isGroupingZone()&&this.columnModel.isColGroupLocked(this.column)}isAggregationZone(){return this.dropZonePurpose==="aggregation"}isGroupingZone(){return this.dropZonePurpose==="rowGroup"}getDragSourceType(){return C.DragSourceType.ToolPanel}destroy(){super.destroy(),this.column=null}},gv=class extends C.Component{constructor(t,e){super('<div class="ag-select-agg-func-item"/>'),this.selectItem=t,this.getGui().innerText=e,this.addGuiEventListener("click",this.selectItem)}},Zl=class extends Le.PillDropZonePanel{constructor(t,e){super(t),this.dropZonePurpose=e}wireBeans(t){super.wireBeans(t),this.columnModel=t.columnModel,this.funcColsService=t.funcColsService}init(t){super.init(t),this.addManagedEventListeners({newColumnsLoaded:this.refreshGui.bind(this)}),this.addManagedPropertyListeners(["functionsReadOnly","rowGroupPanelSuppressSort","groupLockGroupColumns"],this.refreshGui.bind(this))}getItems(t){return t.columns??[]}isInterestedIn(t){return t===C.DragSourceType.HeaderCell||t===C.DragSourceType.ToolPanel}minimumAllowedNewInsertIndex(){const t=this.gos.get("groupLockGroupColumns"),e=this.funcColsService.getRowGroupColumns().length;return t===-1?e:Math.min(t,e)}showOrHideColumnOnExit(t){return this.isRowGroupPanel()&&!this.gos.get("suppressRowGroupHidesColumns")&&!t.fromNudge}handleDragEnterEnd(t){if(this.showOrHideColumnOnExit(t)){const o=t.dragSource.getDragItem().columns;this.setColumnsVisible(o,!1,"uiColumnDragged")}}handleDragLeaveEnd(t){if(this.showOrHideColumnOnExit(t)){const r=t.dragSource.getDragItem();this.setColumnsVisible(r.columns,!0,"uiColumnDragged")}}setColumnsVisible(t,e,r){if(t){const o=t.filter(i=>!i.getColDef().lockVisible);this.columnModel.setColsVisible(o,e,r)}}isRowGroupPanel(){return this.dropZonePurpose==="rowGroup"}createPillComponent(t,e,r,o){return new pv(t,e,r,this.dropZonePurpose,o)}},$l=class extends Zl{constructor(t){super(t,"pivot")}postConstruct(){const t=this.localeService.getLocaleTextFunc(),e=t("pivotColumnsEmptyMessage","Drag here to set column labels"),r=t("pivots","Column Labels");super.init({icon:C._createIconNoSpan("pivotPanel",this.gos,null),emptyMessage:e,title:r}),this.addManagedEventListeners({newColumnsLoaded:this.refresh.bind(this),columnPivotChanged:this.refresh.bind(this),columnPivotModeChanged:this.checkVisibility.bind(this)}),this.refresh()}getAriaLabel(){return this.localeService.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")}getTooltipParams(){const t=super.getTooltipParams();return t.location="pivotColumnsList",t}refresh(){this.checkVisibility(),this.refreshGui()}checkVisibility(){const t=this.columnModel.isPivotMode();if(this.isHorizontal())switch(this.gos.get("pivotPanelShow")){case"always":this.setDisplayed(t);break;case"onlyWhenPivoting":{const e=this.columnModel.isPivotActive();this.setDisplayed(t&&e);break}default:this.setDisplayed(!1);break}else this.setDisplayed(t)}isItemDroppable(t,e){return this.gos.get("functionsReadOnly")||!t.isPrimary()?!1:t.isAllowPivot()&&(!t.isPivotActive()||this.isSourceEventFromTarget(e))}updateItems(t){this.funcColsService.setPivotColumns(t,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"pivot":"notAllowed"}getExistingItems(){return this.funcColsService.getPivotColumns()}},Wl=class extends Zl{constructor(t){super(t,"rowGroup")}postConstruct(){const t=this.localeService.getLocaleTextFunc(),e=t("rowGroupColumnsEmptyMessage","Drag here to set row groups"),r=t("groups","Row Groups");super.init({icon:C._createIconNoSpan("rowGroupPanel",this.gos,null),emptyMessage:e,title:r}),this.addManagedEventListeners({columnRowGroupChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.localeService.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")}getTooltipParams(){const t=super.getTooltipParams();return t.location="rowGroupColumnsList",t}isItemDroppable(t,e){return this.gos.get("functionsReadOnly")||!t.isPrimary()?!1:t.isAllowRowGroup()&&(!t.isRowGroupActive()||this.isSourceEventFromTarget(e))}updateItems(t){this.funcColsService.setRowGroupColumns(t,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"group":"notAllowed"}getExistingItems(){return this.funcColsService.getRowGroupColumns()}},hv=class extends C.Component{wireBeans(t){this.columnModel=t.columnModel,this.funcColsService=t.funcColsService}constructor(){super()}postConstruct(){this.setGui(this.createNorthPanel());const t=this.onRowGroupChanged.bind(this);this.addManagedEventListeners({columnRowGroupChanged:t,newColumnsLoaded:t}),this.addManagedPropertyListener("rowGroupPanelShow",t),this.addManagedPropertyListener("pivotPanelShow",()=>this.onPivotPanelShow()),this.onRowGroupChanged()}createNorthPanel(){const t=document.createElement("div");t.classList.add("ag-column-drop-wrapper"),C._setAriaRole(t,"presentation"),this.rowGroupComp=new Wl(!0),this.createManagedBean(this.rowGroupComp),this.pivotComp=new $l(!0),this.createManagedBean(this.pivotComp),t.appendChild(this.rowGroupComp.getGui()),t.appendChild(this.pivotComp.getGui());const e=this.onDropPanelVisible.bind(this);return this.addManagedListeners(this.rowGroupComp,{displayChanged:e}),this.addManagedListeners(this.pivotComp,{displayChanged:e}),this.onDropPanelVisible(),t}onDropPanelVisible(){const t=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed(),e="ag-column-drop-horizontal-half-width";this.rowGroupComp.addOrRemoveCssClass(e,t),this.pivotComp.addOrRemoveCssClass(e,t)}onRowGroupChanged(){if(!this.rowGroupComp)return;const t=this.gos.get("rowGroupPanelShow");if(t==="always")this.rowGroupComp.setDisplayed(!0);else if(t==="onlyWhenGrouping"){const e=!this.funcColsService.isRowGroupEmpty();this.rowGroupComp.setDisplayed(e)}else this.rowGroupComp.setDisplayed(!1)}onPivotPanelShow(){if(!this.pivotComp)return;const t=this.gos.get("pivotPanelShow");if(t==="always")this.pivotComp.setDisplayed(!0);else if(t==="onlyWhenPivoting"){const e=this.columnModel.isPivotActive();this.pivotComp.setDisplayed(e)}else this.pivotComp.setDisplayed(!1)}},fv={selector:"AG-GRID-HEADER-DROP-ZONES",component:hv},mv=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="columnDropZonesService"}getDropZoneSelector(){return fv}},vv=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="filterAggregatesStage"}wireBeans(t){this.filterManager=t.filterManager,this.columnModel=t.columnModel}execute(t){var h,f;const e=this.columnModel.isPivotMode(),r=((h=this.filterManager)==null?void 0:h.isAggregateFilterPresent())||((f=this.filterManager)==null?void 0:f.isAggregateQuickFilterPresent()),o=y=>!y.node.group,i=y=>y.node.leafGroup,s=C._getGroupAggFiltering(this.gos)||(e?i:o),{changedPath:d}=t,u=(y,S=!1)=>{y.childrenAfterFilter&&(y.childrenAfterAggFilter=y.childrenAfterFilter,S&&y.childrenAfterAggFilter.forEach(k=>u(k,S)),this.setAllChildrenCount(y)),y.sibling&&(y.sibling.childrenAfterAggFilter=y.childrenAfterAggFilter)},p=y=>{var S;y.childrenAfterAggFilter=((S=y.childrenAfterFilter)==null?void 0:S.filter(k=>{var A;return s({node:k})&&this.filterManager.doesRowPassAggregateFilters({rowNode:k})?(u(k,!0),!0):(A=k.childrenAfterAggFilter)==null?void 0:A.length}))||null,this.setAllChildrenCount(y),y.sibling&&(y.sibling.childrenAfterAggFilter=y.childrenAfterAggFilter)};d.forEachChangedNodeDepthFirst(r?p:u,!0)}setAllChildrenCountTreeData(t){const e=t.childrenAfterAggFilter;let r=0;if(e){const o=e.length;r=o;for(let i=0;i<o;++i)r+=e[i].allChildrenCount??0}t.setAllChildrenCount(r===0&&t.level>=0?null:r)}setAllChildrenCountGridGrouping(t){let e=0;t.childrenAfterAggFilter.forEach(r=>{r.group?e+=r.allChildrenCount:e++}),t.setAllChildrenCount(e)}setAllChildrenCount(t){if(!t.hasChildren()){t.setAllChildrenCount(null);return}this.gos.get("treeData")?this.setAllChildrenCountTreeData(t):this.setAllChildrenCountGridGrouping(t)}},yv=class extends C.TabGuardComp{constructor(){super(`
|
|
18
|
+
<div class="ag-group-filter">
|
|
19
|
+
<div data-ref="eGroupField"></div>
|
|
20
|
+
<div data-ref="eUnderlyingFilter"></div>
|
|
21
|
+
</div>
|
|
22
|
+
`),this.eGroupField=C.RefPlaceholder,this.eUnderlyingFilter=C.RefPlaceholder}wireBeans(t){this.filterManager=t.filterManager,this.columnNameService=t.columnNameService,this.funcColsService=t.funcColsService}postConstruct(){this.initialiseTabGuard({})}init(t){return this.updateParams(t).then(()=>{this.addManagedEventListeners({columnRowGroupChanged:()=>this.onColumnRowGroupChanged(),filterDestroyed:e=>this.onFilterDestroyed(e)})})}refresh(t){return this.updateParams(t),!0}updateParams(t){return this.params=t,this.validateParams(),this.updateGroups()}validateParams(){const{colDef:t}=this.params;t.field&&C._warnOnce('Group Column Filter does not work with the colDef property "field". This property will be ignored.'),t.filterValueGetter&&C._warnOnce('Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.'),t.filterParams&&C._warnOnce('Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.')}updateGroups(){const t=this.updateGroupField();return this.getUnderlyingFilters(t)}getSourceColumns(){if(this.groupColumn=this.params.column,this.gos.get("treeData"))return C._warnOnce("Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter."),[];const t=this.funcColsService.getSourceColumnsForGroupColumn(this.groupColumn);return t||(C._warnOnce("Group Column Filter only works on group columns. Please use a different filter."),[])}updateGroupField(){C._clearElement(this.eGroupField),this.eGroupFieldSelect&&this.destroyBean(this.eGroupFieldSelect);const t=this.getSourceColumns(),e=t.filter(r=>r.isFilterAllowed());return e.length?(t.length===1?(this.selectedColumn=e[0],C._setDisplayed(this.eGroupField,!1)):((!this.selectedColumn||!e.some(r=>r.getId()===this.selectedColumn.getId()))&&(this.selectedColumn=e[0]),this.createGroupFieldSelectElement(e),this.eGroupField.appendChild(this.eGroupFieldSelect.getGui()),this.eGroupField.appendChild(C._loadTemplate('<div class="ag-filter-separator"></div>')),C._setDisplayed(this.eGroupField,!0)),e):(this.selectedColumn=void 0,C._setDisplayed(this.eGroupField,!1),null)}createGroupFieldSelectElement(t){this.eGroupFieldSelect=this.createManagedBean(new C.AgSelect);const e=this.localeService.getLocaleTextFunc();this.eGroupFieldSelect.setLabel(e("groupFilterSelect","Select field:")),this.eGroupFieldSelect.setLabelAlignment("top"),this.eGroupFieldSelect.addOptions(t.map(r=>({value:r.getId(),text:this.columnNameService.getDisplayNameForColumn(r,"groupFilter",!1)??void 0}))),this.eGroupFieldSelect.setValue(this.selectedColumn.getId()),this.eGroupFieldSelect.onValueChange(r=>this.updateSelectedColumn(r)),this.eGroupFieldSelect.addCssClass("ag-group-filter-field-select-wrapper"),t.length===1&&this.eGroupFieldSelect.setDisabled(!0)}getUnderlyingFilters(t){if(!t)return this.filterColumnPairs=void 0,this.selectedFilter=void 0,this.groupColumn.setFilterActive(!1,"columnRowGroupChanged"),C.AgPromise.resolve();const e=[],r=[];return t.forEach(o=>{const i=this.filterManager.getOrCreateFilterWrapper(o);i!=null&&i.filterPromise&&e.push(i.filterPromise.then(s=>(s&&r.push({filter:s,column:o}),o.getId()===this.selectedColumn.getId()&&(this.selectedFilter=s??void 0),s)))}),C.AgPromise.all(e).then(()=>{this.filterColumnPairs=r,this.groupColumn.setFilterActive(this.isFilterActive(),"columnRowGroupChanged")})}addUnderlyingFilterElement(){var e;if(C._clearElement(this.eUnderlyingFilter),!this.selectedColumn)return C.AgPromise.resolve();const t=this.createManagedBean(new C.FilterWrapperComp(this.selectedColumn,"COLUMN_MENU"));return this.filterWrapperComp=t,t.hasFilter()?(this.eUnderlyingFilter.appendChild(t.getGui()),((e=t.getFilter())==null?void 0:e.then(()=>{var r,o;(r=t.afterGuiAttached)==null||r.call(t,this.afterGuiAttachedParams),!((o=this.afterGuiAttachedParams)!=null&&o.suppressFocus)&&this.eGroupFieldSelect&&!this.eGroupFieldSelect.isDisabled()&&this.eGroupFieldSelect.getFocusableElement().focus()}))??C.AgPromise.resolve()):C.AgPromise.resolve()}updateSelectedColumn(t){var r;if(!t)return;(r=this.filterWrapperComp)==null||r.afterGuiDetached(),this.destroyBean(this.filterWrapperComp);const e=this.getFilterColumnPair(t);this.selectedColumn=e==null?void 0:e.column,this.selectedFilter=e==null?void 0:e.filter,this.dispatchLocalEvent({type:"selectedColumnChanged"}),this.addUnderlyingFilterElement()}isFilterActive(){var t;return!!((t=this.filterColumnPairs)!=null&&t.some(({filter:e})=>e.isFilterActive()))}doesFilterPass(){return!0}getModel(){return null}setModel(){return C.AgPromise.resolve()}afterGuiAttached(t){this.afterGuiAttachedParams=t,this.addUnderlyingFilterElement()}afterGuiDetached(){var t,e;C._clearElement(this.eUnderlyingFilter),(e=(t=this.selectedFilter)==null?void 0:t.afterGuiDetached)==null||e.call(t)}onColumnRowGroupChanged(){this.updateGroups().then(()=>{this.dispatchLocalEvent({type:"columnRowGroupChanged"})})}onFilterDestroyed({column:t,source:e}){var o;if(e==="gridDestroyed")return;const r=t.getColId();(o=this.filterColumnPairs)!=null&&o.some(({column:i})=>i.getColId()===r)&&setTimeout(()=>{this.isAlive()&&this.updateGroups()})}getFilterColumnPair(t){var e;if(t)return(e=this.filterColumnPairs)==null?void 0:e.find(({column:r})=>r.getId()===t)}getSelectedFilter(){return this.selectedFilter}getSelectedColumn(){return this.selectedColumn}isFilterAllowed(){return!!this.selectedColumn}destroy(){super.destroy()}},bv=class extends C.Component{constructor(){super(`
|
|
23
|
+
<div data-ref="eFloatingFilter" class="ag-group-floating-filter ag-floating-filter-input" role="presentation"></div>
|
|
24
|
+
`),this.eFloatingFilter=C.RefPlaceholder,this.haveAddedColumnListeners=!1}wireBeans(t){this.columnNameService=t.columnNameService,this.filterManager=t.filterManager}init(t){this.params=t;const e=this.gos.get("groupDisplayType")==="multipleColumns";return new C.AgPromise(r=>{this.params.parentFilterInstance(o=>{this.parentFilterInstance=o,e?this.setupUnderlyingFloatingFilterElement().then(()=>r()):(this.setupReadOnlyFloatingFilterElement(),r())})}).then(()=>{this.addManagedListeners(this.parentFilterInstance,{selectedColumnChanged:this.onSelectedColumnChanged.bind(this),columnRowGroupChanged:this.onColumnRowGroupChanged.bind(this)})})}onParamsUpdated(t){this.refresh(t)}refresh(t){this.params=t,this.setParams()}setParams(){var r;const t=this.columnNameService.getDisplayNameForColumn(this.params.column,"header",!0),e=this.localeService.getLocaleTextFunc();(r=this.eFloatingFilterText)==null||r.setInputAriaLabel(`${t} ${e("ariaFilterInput","Filter Input")}`)}setupReadOnlyFloatingFilterElement(){this.eFloatingFilterText||(this.eFloatingFilterText=this.createManagedBean(new C.AgInputTextField),this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams()),this.updateDisplayedValue(),this.eFloatingFilter.appendChild(this.eFloatingFilterText.getGui())}setupUnderlyingFloatingFilterElement(){this.showingUnderlyingFloatingFilter=!1,this.underlyingFloatingFilter=void 0,C._clearElement(this.eFloatingFilter);const t=this.parentFilterInstance.getSelectedColumn();if(t&&!t.isVisible()){const e=this.filterManager.getFloatingFilterCompDetails(t,this.params.showParentFilter);if(e)return this.haveAddedColumnListeners||(this.haveAddedColumnListeners=!0,this.addManagedListeners(t,{visibleChanged:this.onColumnVisibleChanged.bind(this),colDefChanged:this.onColDefChanged.bind(this)})),e.newAgStackInstance().then(r=>{var o,i;this.underlyingFloatingFilter=r,(i=this.underlyingFloatingFilter)==null||i.onParentModelChanged((o=this.parentFilterInstance.getSelectedFilter())==null?void 0:o.getModel()),this.appendChild(r.getGui()),this.showingUnderlyingFloatingFilter=!0})}return this.setupReadOnlyFloatingFilterElement(),C.AgPromise.resolve()}onColumnVisibleChanged(){this.setupUnderlyingFloatingFilterElement()}onColDefChanged(t){var r,o,i;if(!t.column)return;const e=this.filterManager.getFloatingFilterCompDetails(t.column,this.params.showParentFilter);e&&((r=this.underlyingFloatingFilter)!=null&&r.refresh?this.underlyingFloatingFilter.refresh(e.params):(i=(o=this.underlyingFloatingFilter)==null?void 0:o.onParamsUpdated)==null||i.call(o,e.params))}onParentModelChanged(t,e){var r,o;this.showingUnderlyingFloatingFilter?(o=this.underlyingFloatingFilter)==null||o.onParentModelChanged((r=this.parentFilterInstance.getSelectedFilter())==null?void 0:r.getModel(),e):this.updateDisplayedValue()}updateDisplayedValue(){if(!this.parentFilterInstance||!this.eFloatingFilterText)return;const t=this.parentFilterInstance.getSelectedFilter();if(!t){this.eFloatingFilterText.setValue(""),this.eFloatingFilterText.setDisplayed(!1);return}if(this.eFloatingFilterText.setDisplayed(!0),t.getModelAsString){const e=t.getModel();this.eFloatingFilterText.setValue(e==null?"":t.getModelAsString(e))}else this.eFloatingFilterText.setValue("")}onSelectedColumnChanged(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}onColumnRowGroupChanged(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}destroy(){super.destroy()}},Hl=class{constructor(){this.allSets={},this.allParents=[]}removeFromChildrenAfterGroup(t,e){const r=this.getSet(t);r.removeFromChildrenAfterGroup[e.id]=!0}isRemoveFromAllLeafChildren(t,e){return!!this.getSet(t).removeFromAllLeafChildren[e.id]}preventRemoveFromAllLeafChildren(t,e){const r=this.getSet(t);delete r.removeFromAllLeafChildren[e.id]}removeFromAllLeafChildren(t,e){const r=this.getSet(t);r.removeFromAllLeafChildren[e.id]=!0}getSet(t){return this.allSets[t.id]||(this.allSets[t.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(t)),this.allSets[t.id]}getAllParents(){return this.allParents}flush(){this.allParents.forEach(t=>{var o;const e=this.allSets[t.id];t.childrenAfterGroup=t.childrenAfterGroup.filter(i=>!e.removeFromChildrenAfterGroup[i.id]),t.allLeafChildren=((o=t.allLeafChildren)==null?void 0:o.filter(i=>!e.removeFromAllLeafChildren[i.id]))??null,t.updateHasChildren();const r=t.sibling;r&&(r.childrenAfterGroup=t.childrenAfterGroup,r.allLeafChildren=t.allLeafChildren)}),this.allSets={},this.allParents.length=0}};function wv(t){if(!t)return!1;const e=t.length;if(e<2)return!1;let r=!1;for(let o=1;o<e;o++)if(Vd(t[o-1],t[o])>0){r=!0;break}return r?(t.sort(Vd),!0):!1}function Vd(t,e){const r=t.sourceRowIndex,o=e.sourceRowIndex,i=r>=0,s=o>=0,d=i&&s,u=!i&&!s;return d?r-o:u?t.__objectId-e.__objectId:i?1:-1}var xv=class extends C.BeanStub{wireBeans(t){this.beans=t,this.columnModel=t.columnModel,this.funcColsService=t.funcColsService,this.valueService=t.valueService,this.selectionService=t.selectionService,this.showRowGroupColsService=t.showRowGroupColsService}execute(t){const e=this.createGroupingDetails(t);if(e.transactions)this.handleTransaction(e);else{const r=t.afterColumnsChanged===!0;this.shotgunResetEverything(e,r)}this.positionLeafsAndGroups(t.changedPath),this.orderGroups(e)}positionLeafsAndGroups(t){t.forEachChangedNodeDepthFirst(e=>{if(e.childrenAfterGroup){const r=[],o=[];let i;e.childrenAfterGroup.forEach(s=>{var d;(d=s.childrenAfterGroup)!=null&&d.length?s.key===""&&!i?i=s:o.push(s):r.push(s)}),i&&o.push(i),e.childrenAfterGroup=[...r,...o]}},!1)}createGroupingDetails(t){const{rowNode:e,changedPath:r,rowNodeTransactions:o,rowNodesOrderChanged:i}=t,s=this.funcColsService.getRowGroupColumns();return{expandByDefault:this.gos.get("groupDefaultExpanded"),groupedCols:s,rootNode:e,pivotMode:this.columnModel.isPivotMode(),groupedColCount:(s==null?void 0:s.length)??0,transactions:o,rowNodesOrderChanged:!!i,changedPath:r,groupAllowUnbalanced:this.gos.get("groupAllowUnbalanced"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:this.gos.getCallback("initialGroupOrderComparator"),suppressGroupMaintainValueType:this.gos.get("suppressGroupMaintainValueType"),keyCreators:(s==null?void 0:s.map(u=>u.getColDef().keyCreator))??[]}}handleTransaction(t){t.transactions.forEach(e=>{const r=new Hl;C._existsAndNotEmpty(e.remove)&&this.removeNodes(e.remove,t,r),C._existsAndNotEmpty(e.update)&&this.moveNodesInWrongPath(e.update,t,r),C._existsAndNotEmpty(e.add)&&this.insertNodes(e.add,t);const o=r.getAllParents().slice();r.flush(),this.removeEmptyGroups(o,t)}),t.rowNodesOrderChanged&&this.sortChildren(t)}sortChildren(t){t.changedPath.forEachChangedNodeDepthFirst(e=>{wv(e.childrenAfterGroup)&&t.changedPath.addParentNode(e)},!1,!0)}orderGroups(t){const e=t.initialGroupOrderComparator;C._exists(e)&&r(t.rootNode);function r(o){C._exists(o.childrenAfterGroup)&&!o.leafGroup&&(o.childrenAfterGroup.sort((s,d)=>e({nodeA:s,nodeB:d})),o.childrenAfterGroup.forEach(s=>r(s)))}}getExistingPathForNode(t,e){const r=[];let o=t.parent;for(;o&&o!==e.rootNode;)r.push({key:o.key,rowGroupColumn:o.rowGroupColumn,field:o.field}),o=o.parent;return r.reverse(),r}moveNodesInWrongPath(t,e,r){t.forEach(o=>{e.changedPath.isActive()&&e.changedPath.addParentNode(o.parent);const i=p=>p.key,s=this.getExistingPathForNode(o,e).map(i),d=this.getGroupInfo(o,e).map(i);C._areEqual(s,d)||this.moveNode(o,e,r)})}moveNode(t,e,r){if(this.removeNodesFromParents([t],e,r),this.insertOneNode(t,e,r),t.setData(t.data),e.changedPath.isActive()){const o=t.parent;e.changedPath.addParentNode(o)}}removeNodes(t,e,r){this.removeNodesFromParents(t,e,r),e.changedPath.isActive()&&t.forEach(o=>e.changedPath.addParentNode(o.parent))}forEachParentGroup(t,e,r){let o=e;for(;o&&o!==t.rootNode;)r(o),o=o.parent}removeNodesFromParents(t,e,r){const o=r==null,i=r||new Hl;t.forEach(s=>{this.removeFromParent(s,i),this.forEachParentGroup(e,s.parent,d=>{i.removeFromAllLeafChildren(d,s)})}),o&&i.flush()}removeEmptyGroups(t,e){let r=!0;const o=i=>{var p;const s=this.getChildrenMappedKey(i.key,i.rowGroupColumn),d=i.parent;return(d!=null&&d.childrenMapped?!d.childrenMapped[s]:!0)?!1:!!i.group&&(((p=i.childrenAfterGroup)==null?void 0:p.length)??0)===0};for(;r;){r=!1;const i=new Hl;t.forEach(s=>{this.forEachParentGroup(e,s,d=>{o(d)&&(r=!0,this.removeFromParent(d,i),d.setSelectedParams({newValue:!1,source:"rowGroupChanged"}))})}),i.flush()}}removeFromParent(t,e){var o;t.parent&&(e?e.removeFromChildrenAfterGroup(t.parent,t):(C._removeFromArray(t.parent.childrenAfterGroup,t),t.parent.updateHasChildren()));const r=this.getChildrenMappedKey(t.key,t.rowGroupColumn);(o=t.parent)!=null&&o.childrenMapped&&delete t.parent.childrenMapped[r],t.setRowTop(null),t.setRowIndex(null)}addToParent(t,e){const r=this.getChildrenMappedKey(t.key,t.rowGroupColumn);e!=null&&e.childrenMapped&&e.childrenMapped[r]!==t&&(e.childrenMapped[r]=t,e.childrenAfterGroup.push(t),e.setGroup(!0))}areGroupColsEqual(t,e){return t==null||e==null||t.pivotMode!==e.pivotMode?!1:C._areEqual(t.groupedCols,e.groupedCols)&&C._areEqual(t.keyCreators,e.keyCreators)}checkAllGroupDataAfterColsChanged(t){const e=r=>{r&&r.forEach(o=>{var d;if(!o.group)return;const s={field:o.field,key:o.key,rowGroupColumn:o.rowGroupColumn,leafNode:(d=o.allLeafChildren)==null?void 0:d[0]};this.setGroupData(o,s,t),e(o.childrenAfterGroup)})};e(t.rootNode.childrenAfterGroup)}shotgunResetEverything(t,e){if(this.noChangeInGroupingColumns(t,e))return;this.selectionService.filterFromSelection(s=>s&&!s.group);const{groupedCols:r}=t,o=t.rootNode;o.leafGroup=r.length===0,o.childrenAfterGroup=[],o.childrenMapped={},o.updateHasChildren();const i=o.sibling;i&&(i.childrenAfterGroup=o.childrenAfterGroup,i.childrenMapped=o.childrenMapped),this.insertNodes(o.allLeafChildren,t)}noChangeInGroupingColumns(t,e){let r=!1;const o=this.showRowGroupColsService.getShowRowGroupCols(),i=o?o.map(s=>s.getId()).join("-"):"";return e&&(r=this.areGroupColsEqual(t,this.oldGroupingDetails),this.oldGroupDisplayColIds!==i&&this.checkAllGroupDataAfterColsChanged(t)),this.oldGroupingDetails=t,this.oldGroupDisplayColIds=i,r}insertNodes(t,e){t.forEach(r=>{this.insertOneNode(r,e),e.changedPath.isActive()&&e.changedPath.addParentNode(r.parent)})}insertOneNode(t,e,r){const o=this.getGroupInfo(t,e),i=this.findParentForNode(t,o,e,r);i.group||C._warnOnce("duplicate group keys for row data, keys should be unique",[i.data,t.data]),t.parent=i,t.level=o.length,i.childrenAfterGroup.push(t),i.updateHasChildren()}findParentForNode(t,e,r,o){let i=r.rootNode;return e.forEach((s,d)=>{i=this.getOrCreateNextNode(i,s,d,r),o!=null&&o.isRemoveFromAllLeafChildren(i,t)?o==null||o.preventRemoveFromAllLeafChildren(i,t):i.allLeafChildren.push(t)}),i}getOrCreateNextNode(t,e,r,o){var d;const i=this.getChildrenMappedKey(e.key,e.rowGroupColumn);let s=(d=t==null?void 0:t.childrenMapped)==null?void 0:d[i];return s||(s=this.createGroup(e,t,r,o),this.addToParent(s,t)),s}createGroup(t,e,r,o){const i=new C.RowNode(this.beans);return i.group=!0,i.field=t.field,i.rowGroupColumn=t.rowGroupColumn,this.setGroupData(i,t,o),i.key=t.key,i.id=this.createGroupId(i,e,r),i.level=r,i.leafGroup=r===o.groupedColCount-1,i.allLeafChildren=[],i.setAllChildrenCount(0),i.rowGroupIndex=r,i.childrenAfterGroup=[],i.childrenMapped={},i.updateHasChildren(),i.parent=e,this.setExpandedInitialValue(o,i),i}createGroupId(t,e,r){const o=(i,s)=>{if(!i.rowGroupColumn)return null;const d=s?o(s,s.parent):null;return`${d==null?"":d+"-"}${i.rowGroupColumn.getColId()}-${i.key}`};return C.RowNode.ID_PREFIX_ROW_GROUP+o(t,e)}setGroupData(t,e,r){t.groupData={},this.showRowGroupColsService.getShowRowGroupCols().forEach(i=>{const s=t.rowGroupColumn;s!==null&&i.isRowGroupDisplayed(s.getId())&&(r.suppressGroupMaintainValueType?t.groupData[i.getColId()]=e.key:t.groupData[i.getColId()]=this.valueService.getValue(s,e.leafNode))})}getChildrenMappedKey(t,e){return e?e.getId()+"-"+t:t}setExpandedInitialValue(t,e){if(t.pivotMode&&e.leafGroup){e.expanded=!1;return}const r=t.isGroupOpenByDefault;if(r){const o={rowNode:e,field:e.field,key:e.key,level:e.level,rowGroupColumn:e.rowGroupColumn};e.expanded=r(o)==!0;return}if(t.expandByDefault===-1){e.expanded=!0;return}e.expanded=e.level<t.expandByDefault}getGroupInfo(t,e){const r=[];return e.groupedCols.forEach(o=>{let i=this.valueService.getKeyForNode(o,t),s=i!=null&&i!=="";if((e.pivotMode||!e.groupAllowUnbalanced)&&!s&&(i="",s=!0),s){const u={key:i,field:o.getColDef().field,rowGroupColumn:o,leafNode:t};r.push(u)}}),r}},Cv=(t,e)=>t.treeNode.oldSourceRowIndex-e.treeNode.oldSourceRowIndex,st=Object.freeze([]),_v=st.values(),si=(t,e)=>{t.parent=null,t.treeNode=null,e?t.childrenAfterGroup=[]:(t.level=0,t.childrenAfterGroup=null,t.allLeafChildren=null)},kv=class lf{constructor(e,r,o){this.parent=e,this.key=r,this.level=o,this.children=null,this.invalidatedHead=null,this.invalidatedNext=void 0,this.row=null,this.oldRow=null,this.duplicateRows=null,this.childrenAfterGroup=st,this.allLeafChildren=st,this.childrenChanged=!1,this.leafChildrenChanged=!1,this.oldSourceRowIndex=-1}isEmptyFillerNode(){var e,r;return!((e=this.row)!=null&&e.data)&&!((r=this.children)!=null&&r.size)}hasChildren(){var e;return!!((e=this.children)!=null&&e.size)}enumChildren(){var e;return((e=this.children)==null?void 0:e.values())??_v}upsertKey(e){var o,i;typeof e!="string"&&(e=String(e));let r=(o=this.children)==null?void 0:o.get(e);return r||(r=new lf(this,e,this.level+1),(i=this.children??(this.children=new Map))==null||i.set(r.key,r)),r}destroy(){var o;const{row:e,parent:r}=this;r!==null&&((o=r==null?void 0:r.children)==null||o.delete(this.key),e!==null&&si(e,!0),this.parent=null)}setRow(e){const{level:r,row:o,childrenAfterGroup:i}=this;if(r<0)o!==null&&o!==e&&si(o,!0);else{if(o===e)return!1;o!==null?(e.allLeafChildren=o.allLeafChildren??this.allLeafChildren??st,si(o,!1)):e.allLeafChildren=this.allLeafChildren??st}return e.level=r,e.childrenAfterGroup=i,e.treeNode=this,this.row=e,!0}removeRow(e){const{level:r,row:o,duplicateRows:i,childrenAfterGroup:s}=this;if(o===e){const d=this.popDuplicateRow();d?(this.row=d,d.childrenAfterGroup=s,r>=0&&(d.allLeafChildren=o.allLeafChildren??this.allLeafChildren??st)):this.row=null}else{if(!(i!=null&&i.delete(e)))return!1;i.size===0&&(this.duplicateRows=null)}return si(e,r<0),!0}addDuplicateRow(e){const{level:r}=this;let o=this.duplicateRows;if(o===null)o=new Set,this.duplicateRows=o;else if(o.has(e))return!1;return o.add(e),e.treeNode=this,e.level=r,r>=0&&(e.allLeafChildren=st),e.childrenAfterGroup=st,!0}sortFirstDuplicateRow(){const e=this.duplicateRows,r=this.row;if(!r||!e)return r;let o=r;for(const i of e)i.sourceRowIndex<o.sourceRowIndex&&(o=i);return o!==r&&(o.childrenAfterGroup=this.childrenAfterGroup,o.allLeafChildren=r.allLeafChildren??this.allLeafChildren??st,r.childrenAfterGroup=st,r.allLeafChildren=st,e.delete(o),e.add(r),this.row=o),o}popDuplicateRow(){let e=null;const r=this.duplicateRows;return r!==null&&(e=r.values().next().value,e!==null&&r.delete(e)&&r.size===0&&(this.duplicateRows=null)),e}dequeueInvalidated(){const e=this.invalidatedHead;return e!==null&&(this.invalidatedHead=e.invalidatedNext??null,e.invalidatedNext=void 0),e}invalidate(){let e=this,r=this.parent;for(;r!==null&&e.invalidatedNext===void 0;)e.invalidatedNext=r.invalidatedHead,r.invalidatedHead=e,e=r,r=e.parent}invalidateOrder(){var r,o;const e=this.parent;e!==null&&!e.childrenChanged&&((((r=this.children)==null?void 0:r.size)??0)>1||!((o=e.row)!=null&&o.data))&&(e.childrenChanged=!0,e.invalidate())}getRowPosition(){var r,o;const e=this.row;return e!=null&&e.data?e.sourceRowIndex:((o=(r=this.childrenAfterGroup[0])==null?void 0:r.treeNode)==null?void 0:o.oldSourceRowIndex)??this.oldSourceRowIndex}updateChildrenAfterGroup(){var u;this.childrenChanged=!1;const e=((u=this.children)==null?void 0:u.size)??0;if(e===0)return this.childrenAfterGroup.length===0?!1:(this.leafChildrenChanged=!0,this.childrenAfterGroup=st,this.row.childrenAfterGroup=st,!0);let r=!1,o=this.childrenAfterGroup;o===st?(o=new Array(e),this.childrenAfterGroup=o,this.row.childrenAfterGroup=o,r=!0):o.length!==e&&(o.length=e,r=!0);let i=0,s=-1,d=!1;for(const p of this.enumChildren()){const h=p.getRowPosition();h<s&&(d=!0),s=h,p.oldSourceRowIndex=h;const f=p.row;o[i]!==f&&(o[i]=f,r=!0),++i}return r&&(this.leafChildrenChanged=!0),d&&this.reorderChildrenList(o),r||d}reorderChildrenList(e){const r=e.length,o=this.children;e.sort(Cv),o.clear();for(let i=0;i<r;++i){const s=e[i].treeNode;o.set(s.key,s)}}updateAllLeafChildren(){var d,u;const{parent:e,row:r,childrenAfterGroup:o}=this;this.leafChildrenChanged=!1;let i=!1;const s=o.length;if(s===0)i=((d=r.allLeafChildren)==null?void 0:d.length)!==0,r.allLeafChildren=st,this.allLeafChildren=st;else if(s===1&&((u=o[0].allLeafChildren)!=null&&u.length))r.allLeafChildren=o[0].allLeafChildren,this.allLeafChildren=null,i=!0;else{let p=this.allLeafChildren;(p===st||p===null)&&(p=[],this.allLeafChildren=p);const h=p.length;let f=0;for(let y=0;y<s;++y){const S=o[y],k=S.allLeafChildren,D=k.length;if(D)for(let E=0;E<D;++E){const A=k[E];(f>=h||p[f]!==A)&&(p[f]=A,i=!0),++f}else(f>=h||p[f]!==S)&&S&&(p[f]=S,i=!0),++f}h!==f&&(p.length=f,i=!0),r.allLeafChildren!==p&&(r.allLeafChildren=p,i=!0)}i&&e&&(e.leafChildrenChanged=!0)}},Ld=t=>(t.treeNodeFlags&1)!==0,Id=t=>(t.treeNodeFlags&2)!==0,Fd=t=>(t.treeNodeFlags&4)!==0,Sv=t=>(t.treeNodeFlags&8)!==0,Rd=t=>(t.treeNodeFlags&16)!==0,Od=(t,e)=>{e?t.treeNodeFlags|=2:t.treeNodeFlags&=-3},Tv=t=>{const e=t.treeNodeFlags;e&1&&(t.treeNodeFlags=e|4)},Ev=t=>{const e=t.treeNodeFlags;e&1&&(t.treeNodeFlags=e|12)},en=t=>{t.treeNodeFlags|=16},zd=t=>{t.treeNodeFlags=1|t.treeNodeFlags&-29},Yo=t=>{t.treeNodeFlags=0},Nv=class extends C.BeanStub{constructor(){super(...arguments),this.rowsPendingDestruction=null,this.root=new kv(null,"",-1)}wireBeans(t){this.beans=t,this.showRowGroupColsService=t.showRowGroupColsService}destroy(){const t=this.root.row;t!==null&&(this.root.removeRow(t),Yo(t)),this.destroyTree(this.root),this.commitDestroyedRows(),super.destroy()}execute(t){const{rowNodeTransactions:e,rowNodesOrderChanged:r,changedPath:o}=t,i=t.rowNode,s=this.gos,d={changedPath:o,expandByDefault:s.get("groupDefaultExpanded"),suppressGroupMaintainValueType:s.get("suppressGroupMaintainValueType"),getDataPath:s.get("getDataPath"),isGroupOpenByDefault:s.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:s.getCallback("initialGroupOrderComparator")};this.root.setRow(i),i.leafGroup=!1;const p=i.sibling;p&&(p.childrenAfterGroup=i.childrenAfterGroup,p.childrenMapped=i.childrenMapped),e?this.handleTransaction(d,e,r):this.handleRowData(d,i,t.afterColumnsChanged===!0)}handleRowData(t,e,r){var i,s,d;const o=this.root;if(r||this.oldGroupDisplayColIds===void 0){const u=((s=(i=this.showRowGroupColsService)==null?void 0:i.getShowRowGroupCols())==null?void 0:s.map(p=>p.getId()).join("-"))??"";if(r){this.oldGroupDisplayColIds!==u&&this.checkAllGroupDataAfterColsChanged((d=o.row)==null?void 0:d.childrenAfterGroup);return}this.oldGroupDisplayColIds=u}this.clearTree(o),this.addOrUpdateRows(t,e.allLeafChildren,!1),this.commitTree(t)}handleTransaction(t,e,r){for(const{remove:o,update:i,add:s}of e)this.removeRows(o),this.addOrUpdateRows(t,i,!0),this.addOrUpdateRows(t,s,!1);r&&this.handleRowNodesOrderChanged(),this.commitTree(t)}handleRowNodesOrderChanged(){var e;const t=(e=this.root.row)==null?void 0:e.allLeafChildren;if(t)for(let r=0,o=t.length;r<o;++r){const i=t[r].treeNode;i&&i.oldSourceRowIndex!==r&&i.invalidateOrder()}}checkAllGroupDataAfterColsChanged(t){var e;for(let r=0,o=(t==null?void 0:t.length)??0;r<o;++r){const i=t[r];this.setGroupData(i,((e=i.treeNode)==null?void 0:e.key)??i.key),this.checkAllGroupDataAfterColsChanged(i.childrenAfterGroup)}}addOrUpdateRows(t,e,r){for(let o=0,i=(e==null?void 0:e.length)??0;o<i;++o){const s=e[o],d=this.upsertPath(this.getDataPath(t,s));d&&this.addOrUpdateRow(d,s,r)}}removeRows(t){for(let e=0,r=(t==null?void 0:t.length)??0;e<r;++e){const o=t[e],i=o.treeNode;i!==null&&this.removeRow(i,o)}}getDataPath({getDataPath:t},{data:e}){const r=(t==null?void 0:t(e))||st;return r.length||C._warnOnce("getDataPath() should not return an empty path",[e]),r}upsertPath(t){let e=this.root;const r=t.length-1;for(let o=0;o<=r;++o){const i=e.upsertKey(t[o]);if(o>=r)return i.invalidate(),i;e=i}return null}addOrUpdateRow(t,e,r){var d;const{level:o,row:i}=t;if(o<0)return;let s=!1;if(i!==e){const u=e.treeNode;u!==null&&u!==t&&(u.removeRow(e),u.invalidate()),i===null?(t.setRow(e),s=!0):i.data?t.addDuplicateRow(e)&&(s=!0):(t.setRow(e),this.destroyRow(i,!0),s=!0)}r&&!Fd(e)&&(Tv(e),s=!0),s&&t.invalidate(),(d=this.rowsPendingDestruction)==null||d.delete(e)}removeRow(t,e){const{parent:r,level:o}=t;if(o<0)return;let i=!1;t.removeRow(e)&&(i=!0,r&&(r.childrenChanged=!0),this.destroyRow(e,!e.data)),i&&t.invalidate()}commitTree(t){var o;const e=this.root;this.commitInvalidatedChildren(t,e);const r=e.row;e.childrenChanged&&e.updateChildrenAfterGroup()&&en(r),r.updateHasChildren(),Rd(r)&&(o=t.changedPath)!=null&&o.isActive()&&t.changedPath.addParentNode(r),zd(r),this.commitDestroyedRows()}commitInvalidatedChildren(t,e){for(;;){const r=e.dequeueInvalidated();if(r===null)break;r.parent===e&&this.commitChild(t,e,r)}}commitChild(t,e,r){if(r.isEmptyFillerNode()){this.clearTree(r);return}this.commitNodePreOrder(e,r),this.commitInvalidatedChildren(t,r),this.commitNodePostOrder(t,e,r)}commitNodePreOrder(t,e){let r=e.row;if(r===null?(r=this.createFillerRow(e),e.setRow(r)):(r=e.sortFirstDuplicateRow(),r.allChildrenCount===void 0&&(r.allChildrenCount=null)),r.parent=t.row,e.oldRow!==r)for(const i of e.enumChildren()){const s=i.row;s!==null&&(s.parent=r)}const o=e.key;r.key!==o?(r.key=o,Ev(r),this.setGroupData(r,o)):r.groupData||this.setGroupData(r,o)}commitNodePostOrder(t,e,r){var h,f,y;const o=r.row,i=r.oldRow;if(r.isEmptyFillerNode()){this.clearTree(r);return}r.childrenChanged&&r.updateChildrenAfterGroup()&&en(o),r.leafChildrenChanged&&r.updateAllLeafChildren();const s=r.getRowPosition();r.oldSourceRowIndex!==s&&(r.oldSourceRowIndex=s,e.childrenChanged=!0);const d=!!((h=o.childrenAfterGroup)!=null&&h.length),u=d||!o.data,p=o.group;p!==u?(en(o),o.setGroup(u),!u&&!o.expanded&&Od(o,!1)):o.hasChildren()!==d&&(en(o),o.updateHasChildren()),o.group&&!Id(o)&&(i!==o&&i!==null&&i.group&&Id(i)&&!t.isGroupOpenByDefault?o.expanded=i.expanded:o.expanded=this.getExpandedInitialValue(t,o),Od(o,!0)),Fd(o)&&(en(e.row),Sv(o)&&o.setData(o.data)),i!==o&&(r.oldRow=o,i!==null&&(p||r.hasChildren())&&en(o),e.childrenChanged=!0,en(e.row)),Rd(o)?(f=t.changedPath)!=null&&f.isActive()&&t.changedPath.addParentNode(o):Ld(o)||(o.childrenAfterFilter||(o.childrenAfterFilter=o.childrenAfterGroup.slice()),o.childrenAfterAggFilter||(o.childrenAfterAggFilter=o.childrenAfterFilter.slice()),o.childrenAfterSort||(o.childrenAfterSort=o.childrenAfterAggFilter.slice())),zd(o),(y=r.duplicateRows)!=null&&y.size&&!r.duplicateRowsWarned&&(r.duplicateRowsWarned=!0,C._warnOnce("duplicate group keys for row data, keys should be unique",[o.id,o.data,...Array.from(r.duplicateRows).map(S=>S.data)]))}createFillerRow(t){const e=new C.RowNode(this.beans);e.key=t.key,e.group=!0,e.field=null,e.leafGroup=!1,e.rowGroupIndex=null,e.allChildrenCount=null;let r=t.level+"-"+t.key,o=t.parent;for(;o!==null;){const i=o.parent;if(i===null)break;r=`${o.level}-${o.key}-${r}`,o=i}return e.id=C.RowNode.ID_PREFIX_ROW_GROUP+r,e}setGroupData(t,e){var i;const r={};t.groupData=r;const o=(i=this.showRowGroupColsService)==null?void 0:i.getShowRowGroupCols();if(o)for(const s of o)r[s.getColId()]=e}getExpandedInitialValue(t,e){const r=t.isGroupOpenByDefault;return r?r({rowNode:e,field:e.field,key:e.key,level:e.level,rowGroupColumn:e.rowGroupColumn})==!0:t.expandByDefault===-1||e.level<t.expandByDefault}clearTree(t){const{parent:e,oldRow:r,row:o,level:i}=t;if(e!==null&&r!==null&&(e.childrenChanged=!0,e.row!==null&&en(e.row)),o!==null&&i>=0){let s=t.row;for(;s!==null&&t.removeRow(s);)this.destroyRow(s,!s.data),s=t.row}for(const s of t.enumChildren())this.clearTree(s);t.destroy()}destroyTree(t){const{row:e,level:r,duplicateRows:o}=t;if(e&&(r>=0&&!e.data?this.destroyRow(e,!0):Yo(e)),o)for(const i of o)r>=0&&!i.data?this.destroyRow(i,!0):Yo(i);for(const i of t.enumChildren())this.destroyTree(i);t.destroy()}destroyRow(t,e){if(!Ld(t)){Yo(t);return}if(!e){(this.rowsPendingDestruction??(this.rowsPendingDestruction=new Set)).add(t);return}Yo(t),t.setRowIndex(null),t.setRowTop(null),!t.data&&t.isSelected()&&t.setSelectedParams({newValue:!1,source:"rowGroupChanged"})}commitDestroyedRows(){const{rowsPendingDestruction:t}=this;if(t!==null){this.rowsPendingDestruction=null;for(const e of t)this.destroyRow(e,!0)}}},Av=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="groupStage"}wireBeans(t){this.selectableService=t.selectableService}execute(t){const e=this.gos.get("treeData")?Nv:xv;let r=this.strategy;(r==null?void 0:r.constructor)!==e&&(this.destroyBean(r),r=this.createManagedBean(new e),this.strategy=r),r.execute(t),this.selectableService.updateSelectableAfterGrouping()}destroy(){this.destroyBean(this.strategy),this.strategy=void 0,super.destroy()}},Gd="PivotRowTotal_",Mv=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="pivotColDefService"}wireBeans(t){this.columnModel=t.columnModel,this.funcColsService=t.funcColsService,this.columnNameService=t.columnNameService}postConstruct(){const t=()=>this.gos.get("serverSidePivotResultFieldSeparator")??"_";this.fieldSeparator=t(),this.addManagedPropertyListener("serverSidePivotResultFieldSeparator",()=>{this.fieldSeparator=t()});const e=()=>this.gos.get("pivotDefaultExpanded");this.pivotDefaultExpanded=e(),this.addManagedPropertyListener("pivotDefaultExpanded",()=>{this.pivotDefaultExpanded=e()})}createPivotColumnDefs(t){const e=this.createPivotColumnsFromUniqueValues(t);function r(s,d=[]){return s.forEach(u=>{u.children!==void 0?r(u.children,d):d.push(u)}),d}const o=r(e);this.addRowGroupTotals(e,o),this.addExpandablePivotGroups(e,o),this.addPivotTotalsToGroups(e,o);const i=o.map(s=>C._cloneObject(s));return{pivotColumnGroupDefs:e,pivotColumnDefs:i}}createPivotColumnsFromUniqueValues(t){const e=this.funcColsService.getPivotColumns(),r=e.length;return this.recursivelyBuildGroup(0,t,[],r,e)}recursivelyBuildGroup(t,e,r,o,i){const s=this.funcColsService.getValueColumns();if(t>=o)return this.buildMeasureCols(r);const d=i[t].getColDef(),u=this.headerNameComparator.bind(this,d.pivotComparator);if(s.length===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&t===o-1){const h=[];return C._iterateObject(e,f=>{const y=[...r,f],S=this.createColDef(s[0],f,y);S.columnGroupShow="open",h.push(S)}),h.sort(u),h}const p=[];return C._iterateObject(e,(h,f)=>{const y=this.pivotDefaultExpanded===-1||t<this.pivotDefaultExpanded,S=[...r,h];p.push({children:this.recursivelyBuildGroup(t+1,f,S,o,i),headerName:h,pivotKeys:S,columnGroupShow:"open",openByDefault:y,groupId:this.generateColumnGroupId(S)})}),p.sort(u),p}buildMeasureCols(t){const e=this.funcColsService.getValueColumns();return e.length===0?[this.createColDef(null,"-",t)]:e.map(r=>{const o=this.columnNameService.getDisplayNameForColumn(r,"header");return{...this.createColDef(r,o,t),columnGroupShow:"open"}})}addExpandablePivotGroups(t,e){const r=this.gos.get("suppressExpandablePivotGroups");if(r||this.gos.get("pivotColumnGroupTotals"))return;const o=(i,s,d)=>{if("children"in i){const h=new Map;i.children.forEach(y=>{o(y,s,h)});const f=!i.children.some(y=>y.children);this.funcColsService.getValueColumns().forEach(y=>{const S=this.columnNameService.getDisplayNameForColumn(y,"header"),k=this.createColDef(y,S,i.pivotKeys);k.pivotTotalColumnIds=h.get(y.getColId()),k.columnGroupShow=r?"open":"closed",k.aggFunc=y.getAggFunc(),f||(i.children.push(k),s.push(k))}),this.merge(d,h);return}if(!i.pivotValueColumn)return;const u=i.pivotValueColumn.getColId();d.has(u)?d.get(u).push(i.colId):d.set(u,[i.colId])};t.forEach(i=>{o(i,e,new Map)})}addPivotTotalsToGroups(t,e){if(!this.gos.get("pivotColumnGroupTotals"))return;const r=this.gos.get("pivotColumnGroupTotals")==="after",o=this.funcColsService.getValueColumns(),i=o.map(d=>d.getAggFunc());if(!i||i.length<1||!this.sameAggFuncs(i))return;const s=o[0];t.forEach(d=>{this.recursivelyAddPivotTotal(d,e,s,r)})}recursivelyAddPivotTotal(t,e,r,o){const i=t;if(!i.children){const d=t;return d.colId?[d.colId]:null}let s=[];if(i.children.forEach(d=>{const u=this.recursivelyAddPivotTotal(d,e,r,o);u&&(s=s.concat(u))}),i.children.length>1){const u=this.localeService.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),p=this.createColDef(r,u,t.pivotKeys,!0);p.pivotTotalColumnIds=s,p.aggFunc=r.getAggFunc(),p.columnGroupShow=this.gos.get("suppressExpandablePivotGroups")?"open":void 0;const h=t.children;o?h.push(p):h.unshift(p),e.push(p)}return s}addRowGroupTotals(t,e){if(!this.gos.get("pivotRowTotals"))return;const r=this.gos.get("pivotRowTotals")==="after",i=this.funcColsService.getValueColumns().slice();r||i.reverse();const s=i.length>1||!this.gos.get("removePivotHeaderRowWhenSingleValueColumn");for(let d=0;d<i.length;d++){const u=i[d],p=this.columnNameService.getDisplayNameForColumn(u,"header"),h=this.createColDef(u,p,[]),f=[];for(let S=0;S<e.length;S++){const k=e[S];k.pivotValueColumn===u&&f.push(k.colId)}h.pivotTotalColumnIds=f,h.colId=Gd+h.colId;const y=s?{children:[h],pivotKeys:[],groupId:`${Gd}_pivotGroup_${u.getColId()}`}:h;e.push(h),r?t.push(y):t.unshift(y)}}createColDef(t,e,r,o=!1){const i={};if(t){const s=t.getColDef();Object.assign(i,s),i.hide=!1}return i.headerName=e,i.colId=this.generateColumnId(r||[],t&&!o?t.getColId():""),i.field=i.colId,i.valueGetter=s=>{var d;return(d=s.data)==null?void 0:d[s.colDef.field]},i.pivotKeys=r,i.pivotValueColumn=t,i.filter===!0&&(i.filter="agNumberColumnFilter"),i}sameAggFuncs(t){if(t.length==1)return!0;for(let e=1;e<t.length;e++)if(t[e]!==t[0])return!1;return!0}headerNameComparator(t,e,r){return t?t(e.headerName,r.headerName):e.headerName&&!r.headerName?1:!e.headerName&&r.headerName?-1:!e.headerName||!r.headerName?0:e.headerName<r.headerName?-1:e.headerName>r.headerName?1:0}merge(t,e){e.forEach((r,o)=>{const s=[...t.has(o)?t.get(o):[],...r];t.set(o,s)})}generateColumnGroupId(t){return`pivotGroup_${this.funcColsService.getPivotColumns().map(r=>r.getColId()).join("-")}_${t.join("-")}`}generateColumnId(t,e){return`pivot_${this.funcColsService.getPivotColumns().map(o=>o.getColId()).join("-")}_${t.join("-")}_${e}`}createColDefsFromFields(t){const e={};for(let i=0;i<t.length;i++){const d=t[i].split(this.fieldSeparator);let u=e;for(let p=0;p<d.length;p++){const h=d[p];u[h]==null&&(u[h]={}),u=u[h]}}const r=(i,s,d,u)=>{const p=[];for(const y in d){const S=d[y],k=r(`${i}${this.fieldSeparator}${y}`,y,S,u+1);p.push(k)}if(p.length===0){const y=this.columnModel.getColDefCol(s);if(y){const k=this.columnNameService.getDisplayNameForColumn(y,"header")??s,D=this.createColDef(y,k,void 0,!1);return D.colId=i,D.aggFunc=y.getAggFunc(),D.valueGetter=E=>{var A;return(A=E.data)==null?void 0:A[i]},D}return{colId:i,headerName:s,valueGetter:k=>{var D;return(D=k.data)==null?void 0:D[i]}}}return this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&p.length===1&&"colId"in p[0]?(p[0].headerName=s,p[0]):{openByDefault:this.pivotDefaultExpanded===-1||u<this.pivotDefaultExpanded,groupId:i,headerName:s,children:p}},o=[];for(const i in e){const s=e[i],d=r(i,i,s,0);o.push(d)}return o}},jd="Exceeded maximum allowed pivot column count.",Bv=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="pivotStage",this.uniqueValues={},this.lastTimeFailed=!1,this.maxUniqueValues=-1,this.currentUniqueCount=0}wireBeans(t){this.valueService=t.valueService,this.columnModel=t.columnModel,this.pivotResultColsService=t.pivotResultColsService,this.funcColsService=t.funcColsService,this.pivotColDefService=t.pivotColDefService}execute(t){const e=t.changedPath;this.columnModel.isPivotActive()?this.executePivotOn(e):this.executePivotOff(e)}executePivotOff(t){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.pivotResultColsService.isPivotResultColsPresent()&&(this.pivotResultColsService.setPivotResultCols(null,"rowModelUpdated"),t&&t.setInactive())}executePivotOn(t){const e=this.funcColsService.getValueColumns().length??1,r=this.gos.get("pivotMaxGeneratedColumns");this.maxUniqueValues=r===-1?-1:r/e;let o;try{o=this.bucketUpRowNodes(t)}catch(w){if(w.message===jd){this.pivotResultColsService.setPivotResultCols([],"rowModelUpdated"),this.eventService.dispatchEvent({type:"pivotMaxColumnsExceeded",message:w.message}),this.lastTimeFailed=!0;return}throw w}const i=this.setUniqueValues(o),s=this.funcColsService.getValueColumns(),d=s.map(w=>`${w.getId()}-${w.getColDef().headerName}`).join("#"),u=s.map(w=>w.getAggFunc().toString()).join("#"),p=this.aggregationColumnsHashLastTime!==d,h=this.aggregationFuncsHashLastTime!==u;this.aggregationColumnsHashLastTime=d,this.aggregationFuncsHashLastTime=u;const f=this.funcColsService.getRowGroupColumns().map(w=>w.getId()).join("#"),y=f!==this.groupColumnsHashLastTime;this.groupColumnsHashLastTime=f;const S=this.gos.get("pivotRowTotals"),k=this.gos.get("pivotColumnGroupTotals"),D=this.gos.get("suppressExpandablePivotGroups"),E=this.gos.get("removePivotHeaderRowWhenSingleValueColumn"),A=S!==this.pivotRowTotalsLastTime||k!==this.pivotColumnGroupTotalsLastTime||D!==this.suppressExpandablePivotGroupsLastTime||E!==this.removePivotHeaderRowWhenSingleValueColumnLastTime;if(this.pivotRowTotalsLastTime=S,this.pivotColumnGroupTotalsLastTime=k,this.suppressExpandablePivotGroupsLastTime=D,this.removePivotHeaderRowWhenSingleValueColumnLastTime=E,this.lastTimeFailed||i||p||y||h||A){const{pivotColumnGroupDefs:w,pivotColumnDefs:L}=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues);this.pivotColumnDefs=L,this.pivotResultColsService.setPivotResultCols(w,"rowModelUpdated"),t&&t.setInactive()}this.lastTimeFailed=!1}setUniqueValues(t){const e=JSON.stringify(t),r=JSON.stringify(this.uniqueValues);return e!==r?(this.uniqueValues=t,!0):!1}bucketUpRowNodes(t){this.currentUniqueCount=0;const e={};t.forEachChangedNodeDepthFirst(o=>{o.leafGroup&&(o.childrenMapped=null)});const r=o=>{var i;o.leafGroup?this.bucketRowNode(o,e):(i=o.childrenAfterFilter)==null||i.forEach(r)};return t.executeFromRootNode(r),e}bucketRowNode(t,e){const r=this.funcColsService.getPivotColumns();r.length===0?t.childrenMapped=null:t.childrenMapped=this.bucketChildren(t.childrenAfterFilter,r,0,e),t.sibling&&(t.sibling.childrenMapped=t.childrenMapped)}bucketChildren(t,e,r,o){const i={},s=e[r];if(t.forEach(d=>{let u=this.valueService.getKeyForNode(s,d);if(C._missing(u)&&(u=""),!o[u]){this.currentUniqueCount+=1,o[u]={};const p=this.maxUniqueValues!==-1,h=this.currentUniqueCount>this.maxUniqueValues;if(p&&h)throw Error(jd)}i[u]||(i[u]=[]),i[u].push(d)}),r===e.length-1)return i;{const d={};return C._iterateObject(i,(u,p)=>{d[u]=this.bucketChildren(p,e,r+1,o[u])}),d}}getPivotColumnDefs(){return this.pivotColumnDefs}};function Pv(t,e,r){t.aggFuncService&&t.aggFuncService.addAggFuncs({key:r})}function Dv(t,e){t.aggFuncService&&t.aggFuncService.addAggFuncs(e)}function Vv(t){t.aggFuncService&&t.aggFuncService.clear()}function Lv(t,e,r){t.funcColsService.setColumnAggFunc(e,r,"api")}function Iv(t){return t.columnModel.isPivotMode()}function Fv(t,e,r){return t.pivotResultColsService.lookupPivotResultCol(e,r)}function Rv(t,e){t.funcColsService.setValueColumns(e,"api")}function Ov(t){return t.funcColsService.getValueColumns()}function zv(t,e){t.funcColsService.removeValueColumns([e],"api")}function Gv(t,e){t.funcColsService.removeValueColumns(e,"api")}function jv(t,e){t.funcColsService.addValueColumns([e],"api")}function Uv(t,e){t.funcColsService.addValueColumns(e,"api")}function Zv(t,e){t.funcColsService.setRowGroupColumns(e,"api")}function $v(t,e){t.funcColsService.removeRowGroupColumns([e],"api")}function Wv(t,e){t.funcColsService.removeRowGroupColumns(e,"api")}function Hv(t,e){t.funcColsService.addRowGroupColumns([e],"api")}function qv(t,e){t.funcColsService.addRowGroupColumns(e,"api")}function Kv(t,e,r){t.funcColsService.moveRowGroupColumn(e,r,"api")}function Yv(t){return t.funcColsService.getRowGroupColumns()}function Jv(t,e){t.funcColsService.setPivotColumns(e,"api")}function Qv(t,e){t.funcColsService.removePivotColumns([e],"api")}function Xv(t,e){t.funcColsService.removePivotColumns(e,"api")}function ey(t,e){t.funcColsService.addPivotColumns([e],"api")}function ty(t,e){t.funcColsService.addPivotColumns(e,"api")}function ry(t){return t.funcColsService.getPivotColumns()}function ny(t,e){t.pivotResultColsService.setPivotResultCols(e,"api")}function oy(t){const e=t.pivotResultColsService.getPivotResultCols();return e?e.list:null}var ay=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="showRowGroupColsService"}wireBeans(t){this.columnModel=t.columnModel,this.funcColsService=t.funcColsService}refresh(){this.showRowGroupCols=[],this.showRowGroupColsMap={},this.columnModel.getCols().forEach(t=>{const r=t.getColDef().showRowGroup,o=typeof r=="string";!o&&!(r===!0)||(this.showRowGroupCols.push(t),o?this.showRowGroupColsMap[r]=t:this.funcColsService.getRowGroupColumns().forEach(d=>{this.showRowGroupColsMap[d.getId()]=t}))})}getShowRowGroupCols(){return this.showRowGroupCols}getShowRowGroupCol(t){return this.showRowGroupColsMap[t]}},Jo="32.3.2",ql=C._defineModule({version:Jo,moduleName:`${C.ModuleNames.RowGroupingModule}-core`,beans:[dv,vv,Av,Mv,Bv,rv,uv,ay,mv],userComponents:[{name:"agGroupRowRenderer",classImp:Le.GroupCellRenderer},{name:"agGroupCellRenderer",classImp:Le.GroupCellRenderer}],controllers:[{name:"groupCellRendererCtrl",classImp:Le.GroupCellRendererCtrl}],dependantModules:[Le.EnterpriseCoreModule]}),iy=C._defineModule({version:Jo,moduleName:`${C.ModuleNames.RowGroupingModule}-api`,apiFunctions:{addAggFunc:Pv,addAggFuncs:Dv,clearAggFuncs:Vv,setColumnAggFunc:Lv,isPivotMode:Iv,getPivotResultColumn:Fv,setValueColumns:Rv,getValueColumns:Ov,removeValueColumn:zv,removeValueColumns:Gv,addValueColumn:jv,addValueColumns:Uv,setRowGroupColumns:Zv,removeRowGroupColumn:$v,removeRowGroupColumns:Wv,addRowGroupColumn:Hv,addRowGroupColumns:qv,getRowGroupColumns:Yv,moveRowGroupColumn:Kv,setPivotColumns:Jv,removePivotColumn:Qv,removePivotColumns:Xv,addPivotColumn:ey,addPivotColumns:ty,getPivotColumns:ry,setPivotResultColumns:ny,getPivotResultColumns:oy},dependantModules:[ql]}),Ud=C._defineModule({version:Jo,moduleName:"@ag-grid-enterprise/group-filter",userComponents:[{name:"agGroupColumnFilter",classImp:yv}],dependantModules:[ql,C._ColumnFilterModule]}),ly=C._defineModule({version:Jo,moduleName:"@ag-grid-enterprise/group-floating-filter",userComponents:[{name:"agGroupColumnFloatingFilter",classImp:bv}],dependantModules:[Ud,C._FloatingFilterModule]}),sy=C._defineModule({version:Jo,moduleName:C.ModuleNames.RowGroupingModule,dependantModules:[ql,iy,Ud,ly]}),Zd=class extends Zl{constructor(t){super(t,"aggregation")}postConstruct(){const t=this.localeService.getLocaleTextFunc(),e=t("valueColumnsEmptyMessage","Drag here to aggregate"),r=t("values","Values");super.init({icon:C._createIconNoSpan("valuePanel",this.gos,null),emptyMessage:e,title:r}),this.addManagedEventListeners({columnValueChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.localeService.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")}getTooltipParams(){const t=super.getTooltipParams();return t.location="valueColumnsList",t}getIconName(){return this.isPotentialDndItems()?"aggregate":"notAllowed"}isItemDroppable(t,e){return this.gos.get("functionsReadOnly")||!t.isPrimary()?!1:t.isAllowValue()&&(!t.isValueActive()||this.isSourceEventFromTarget(e))}updateItems(t){this.funcColsService.setValueColumns(t,"toolPanelUi")}getExistingItems(){return this.funcColsService.getValueColumns()}},$d=300,cy=class extends C.Component{constructor(){super(`<div class="ag-column-select-header" role="presentation">
|
|
25
|
+
<div data-ref="eExpand" class="ag-column-select-header-icon"></div>
|
|
26
|
+
<ag-checkbox data-ref="eSelect" class="ag-column-select-header-checkbox"></ag-checkbox>
|
|
27
|
+
<ag-input-text-field class="ag-column-select-header-filter-wrapper" data-ref="eFilterTextField"></ag-input-text-field>
|
|
28
|
+
</div>`,[C.AgCheckboxSelector,C.AgInputTextFieldSelector]),this.eExpand=C.RefPlaceholder,this.eSelect=C.RefPlaceholder,this.eFilterTextField=C.RefPlaceholder}wireBeans(t){this.columnModel=t.columnModel}postConstruct(){this.createExpandIcons(),this.addManagedListeners(this.eExpand,{click:this.onExpandClicked.bind(this),keydown:e=>{e.key===C.KeyCode.SPACE&&(e.preventDefault(),this.onExpandClicked())}}),this.addManagedElementListeners(this.eSelect.getInputElement(),{click:this.onSelectClicked.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",()=>this.onFunctionsReadOnlyPropChanged()),this.eFilterTextField.setAutoComplete(!1).onValueChange(()=>this.onFilterTextChanged()),this.addManagedElementListeners(this.eFilterTextField.getInputElement(),{keydown:this.onMiniFilterKeyDown.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)});const t=this.localeService.getLocaleTextFunc();this.eSelect.setInputAriaLabel(t("ariaColumnSelectAll","Toggle All Columns Visibility")),this.eFilterTextField.setInputAriaLabel(t("ariaFilterColumnsInput","Filter Columns Input")),this.activateTabIndex([this.eExpand])}onFunctionsReadOnlyPropChanged(){const t=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(t),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",t)}init(t){this.params=t;const e=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(e),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",e),this.columnModel.isReady()&&this.showOrHideOptions()}createExpandIcons(){this.eExpand.appendChild(this.eExpandChecked=C._createIconNoSpan("columnSelectOpen",this.gos)),this.eExpand.appendChild(this.eExpandUnchecked=C._createIconNoSpan("columnSelectClosed",this.gos)),this.eExpand.appendChild(this.eExpandIndeterminate=C._createIconNoSpan("columnSelectIndeterminate",this.gos)),this.setExpandState(0)}showOrHideOptions(){const t=!this.params.suppressColumnFilter,e=!this.params.suppressColumnSelectAll,r=!this.params.suppressColumnExpandAll,o=this.columnModel.isProvidedColGroupsPresent(),i=this.localeService.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(i("searchOoo","Search...")),C._setDisplayed(this.eFilterTextField.getGui(),t),C._setDisplayed(this.eSelect.getGui(),e),C._setDisplayed(this.eExpand,r&&o)}onFilterTextChanged(){this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=C._debounce(()=>{const t=this.eFilterTextField.getValue();this.dispatchLocalEvent({type:"filterChanged",filterText:t})},$d)),this.onFilterTextChangedDebounced()}onMiniFilterKeyDown(t){t.key===C.KeyCode.ENTER&&setTimeout(()=>this.onSelectClicked(),$d)}onSelectClicked(){this.dispatchLocalEvent({type:this.selectState?"unselectAll":"selectAll"})}onExpandClicked(){this.dispatchLocalEvent({type:this.expandState===0?"collapseAll":"expandAll"})}setExpandState(t){this.expandState=t,C._setDisplayed(this.eExpandChecked,this.expandState===0),C._setDisplayed(this.eExpandUnchecked,this.expandState===1),C._setDisplayed(this.eExpandIndeterminate,this.expandState===2)}setSelectionState(t){this.selectState=t,this.eSelect.setValue(this.selectState)}},dy={selector:"AG-PRIMARY-COLS-HEADER",component:cy},Wd=class{constructor(t,e,r,o=!1,i){this.localEventService=new C.LocalEventService,this.displayName=t,this.dept=r,this.group=o,o?(this.columnGroup=e,this.expanded=i,this.children=[]):this.column=e}isGroup(){return this.group}getDisplayName(){return this.displayName}getColumnGroup(){return this.columnGroup}getColumn(){return this.column}getDept(){return this.dept}isExpanded(){return!!this.expanded}getChildren(){return this.children}isPassesFilter(){return this.passesFilter}setExpanded(t){t!==this.expanded&&(this.expanded=t,this.localEventService.dispatchEvent({type:"expandedChanged"}))}setPassesFilter(t){this.passesFilter=t}addEventListener(t,e){this.localEventService.addEventListener(t,e)}removeEventListener(t,e){this.localEventService.removeEventListener(t,e)}},Hd=class extends C.Component{constructor(t,e,r){super('<div class="ag-menu"></div>'),this.column=t,this.mouseEvent=e,this.parentEl=r,this.displayName=null}wireBeans(t){this.columnModel=t.columnModel,this.columnNameService=t.columnNameService,this.funcColsService=t.funcColsService,this.popupService=t.popupService,this.focusService=t.focusService}postConstruct(){if(this.initializeProperties(this.column),this.buildMenuItemMap(),C.isColumn(this.column)?this.displayName=this.columnNameService.getDisplayNameForColumn(this.column,"columnToolPanel"):this.displayName=this.columnNameService.getDisplayNameForProvidedColumnGroup(null,this.column,"columnToolPanel"),this.isActive()){this.mouseEvent.preventDefault();const t=this.getMappedMenuItems();if(t.length===0)return;this.displayContextMenu(t)}}initializeProperties(t){C.isProvidedColumnGroup(t)?this.columns=t.getLeafColumns():this.columns=[t],this.allowGrouping=this.columns.some(e=>e.isPrimary()&&e.isAllowRowGroup()),this.allowValues=this.columns.some(e=>e.isPrimary()&&e.isAllowValue()),this.allowPivoting=this.columnModel.isPivotMode()&&this.columns.some(e=>e.isPrimary()&&e.isAllowPivot())}buildMenuItemMap(){const t=this.localeService.getLocaleTextFunc();this.menuItemMap=new Map,this.menuItemMap.set("rowGroup",{allowedFunction:e=>e.isPrimary()&&e.isAllowRowGroup()&&!this.columnModel.isColGroupLocked(e),activeFunction:e=>e.isRowGroupActive(),activateLabel:()=>`${t("groupBy","Group by")} ${this.displayName}`,deactivateLabel:()=>`${t("ungroupBy","Un-Group by")} ${this.displayName}`,activateFunction:()=>{const e=this.funcColsService.getRowGroupColumns();this.funcColsService.setRowGroupColumns(this.addColumnsToList(e),"toolPanelUi")},deActivateFunction:()=>{const e=this.funcColsService.getRowGroupColumns();this.funcColsService.setRowGroupColumns(this.removeColumnsFromList(e),"toolPanelUi")},addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),this.menuItemMap.set("value",{allowedFunction:e=>e.isPrimary()&&e.isAllowValue(),activeFunction:e=>e.isValueActive(),activateLabel:()=>t("addToValues",`Add ${this.displayName} to values`,[this.displayName]),deactivateLabel:()=>t("removeFromValues",`Remove ${this.displayName} from values`,[this.displayName]),activateFunction:()=>{const e=this.funcColsService.getValueColumns();this.funcColsService.setValueColumns(this.addColumnsToList(e),"toolPanelUi")},deActivateFunction:()=>{const e=this.funcColsService.getValueColumns();this.funcColsService.setValueColumns(this.removeColumnsFromList(e),"toolPanelUi")},addIcon:"valuePanel",removeIcon:"valuePanel"}),this.menuItemMap.set("pivot",{allowedFunction:e=>this.columnModel.isPivotMode()&&e.isPrimary()&&e.isAllowPivot(),activeFunction:e=>e.isPivotActive(),activateLabel:()=>t("addToLabels",`Add ${this.displayName} to labels`,[this.displayName]),deactivateLabel:()=>t("removeFromLabels",`Remove ${this.displayName} from labels`,[this.displayName]),activateFunction:()=>{const e=this.funcColsService.getPivotColumns();this.funcColsService.setPivotColumns(this.addColumnsToList(e),"toolPanelUi")},deActivateFunction:()=>{const e=this.funcColsService.getPivotColumns();this.funcColsService.setPivotColumns(this.removeColumnsFromList(e),"toolPanelUi")},addIcon:"pivotPanel",removeIcon:"pivotPanel"})}addColumnsToList(t){return[...t].concat(this.columns.filter(e=>t.indexOf(e)===-1))}removeColumnsFromList(t){return t.filter(e=>this.columns.indexOf(e)===-1)}displayContextMenu(t){const e=this.getGui(),r=this.createBean(new Le.AgMenuList),o=this.localeService.getLocaleTextFunc();let i=()=>{};e.appendChild(r.getGui()),r.addMenuItems(t),r.addManagedListeners(r,{closeMenu:()=>{this.parentEl.focus(),i()}});const s=this.popupService.addPopup({modal:!0,eChild:e,closeOnEsc:!0,afterGuiAttached:()=>this.focusService.focusInto(r.getGui()),ariaLabel:o("ariaLabelContextMenu","Context Menu"),closedCallback:d=>{d instanceof KeyboardEvent&&this.parentEl.focus(),this.destroyBean(r)}});s&&(i=s.hideFunc),this.popupService.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:e})}isActive(){return this.allowGrouping||this.allowValues||this.allowPivoting}getMappedMenuItems(){const t=[];for(const e of this.menuItemMap.values()){const r=this.columns.some(i=>e.allowedFunction(i)&&!e.activeFunction(i)),o=this.columns.some(i=>e.allowedFunction(i)&&e.activeFunction(i));r&&t.push({name:e.activateLabel(this.displayName),icon:C._createIconNoSpan(e.addIcon,this.gos,null),action:()=>e.activateFunction()}),o&&t.push({name:e.deactivateLabel(this.displayName),icon:C._createIconNoSpan(e.removeIcon,this.gos,null),action:()=>e.deActivateFunction()})}return t}},qd=class extends C.Component{constructor(t,e,r,o){super(),this.modelItem=t,this.allowDragging=e,this.eventType=r,this.focusWrapper=o,this.cbSelect=C.RefPlaceholder,this.eLabel=C.RefPlaceholder,this.eGroupOpenedIcon=C.RefPlaceholder,this.eGroupClosedIcon=C.RefPlaceholder,this.eColumnGroupIcons=C.RefPlaceholder,this.processingColumnStateChange=!1,this.modelItem=t,this.columnGroup=t.getColumnGroup(),this.columnDept=t.getDept(),this.displayName=t.getDisplayName(),this.allowDragging=e}wireBeans(t){this.columnModel=t.columnModel,this.dragAndDropService=t.dragAndDropService,this.modelItemUtils=t.modelItemUtils}postConstruct(){this.setTemplate(`<div class="ag-column-select-column-group">
|
|
29
|
+
<span class="ag-column-group-icons" data-ref="eColumnGroupIcons" >
|
|
30
|
+
<span class="ag-column-group-closed-icon" data-ref="eGroupClosedIcon"></span>
|
|
31
|
+
<span class="ag-column-group-opened-icon" data-ref="eGroupOpenedIcon"></span>
|
|
32
|
+
</span>
|
|
33
|
+
<ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
|
|
34
|
+
<span class="ag-column-select-column-label" data-ref="eLabel"></span>
|
|
35
|
+
</div>`,[C.AgCheckboxSelector]),this.eDragHandle=C._createIconNoSpan("columnDrag",this.gos),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");const t=this.cbSelect.getGui(),e=this.cbSelect.getInputElement();t.insertAdjacentElement("afterend",this.eDragHandle),e.setAttribute("tabindex","-1"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+this.columnDept),this.getGui().style.setProperty("--ag-indentation-level",String(this.columnDept)),this.addManagedEventListeners({columnPivotModeChanged:this.onColumnStateChanged.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.onLabelClicked.bind(this)}),this.addManagedListeners(this.cbSelect,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedListeners(this.modelItem,{expandedChanged:this.onExpandChanged.bind(this)}),this.addManagedListeners(this.focusWrapper,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),C._getToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.gos,null,this.columnGroup).forEach(o=>this.addOrRemoveCssClass(o,!0))}getColumns(){return this.columnGroup.getLeafColumns()}setupTooltip(){const t=this.columnGroup.getColGroupDef();if(!t)return;const e=this.gos.get("tooltipShowMode")==="whenTruncated";let r;e&&(r=()=>this.eLabel.scrollWidth>this.eLabel.clientWidth);const o=()=>{const i=t.headerTooltip;this.setTooltip({newTooltipText:i,location:"columnToolPanelColumnGroup",shouldDisplayTooltip:r})};o(),this.addManagedEventListeners({newColumnsLoaded:o})}getTooltipParams(){const t=super.getTooltipParams();return t.location="columnToolPanelColumnGroup",t}handleKeyDown(t){switch(t.key){case C.KeyCode.LEFT:t.preventDefault(),this.modelItem.setExpanded(!1);break;case C.KeyCode.RIGHT:t.preventDefault(),this.modelItem.setExpanded(!0);break;case C.KeyCode.SPACE:t.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected());break}}onContextMenu(t){const{columnGroup:e,gos:r}=this;if(r.get("functionsReadOnly"))return;const o=this.createBean(new Hd(e,t,this.focusWrapper));this.addDestroyFunc(()=>{o.isAlive()&&this.destroyBean(o)})}addVisibilityListenersToAllChildren(){const t=this.onColumnStateChanged.bind(this);this.columnGroup.getLeafColumns().forEach(e=>{this.addManagedListeners(e,{visibleChanged:t,columnValueChanged:t,columnPivotChanged:t,columnRowGroupChanged:t})})}setupDragging(){if(!this.allowDragging){C._setDisplayed(this.eDragHandle,!1);return}let t=!this.gos.get("suppressDragLeaveHidesColumns");const e={type:C.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>t?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{t=!this.gos.get("suppressDragLeaveHidesColumns"),this.eventService.dispatchEvent({type:"columnPanelItemDragStart",column:this.columnGroup})},onDragStopped:()=>{this.eventService.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:r=>{t&&this.modelItemUtils.updateColumns({columns:this.columnGroup.getLeafColumns(),visibleState:r==null?void 0:r.visibleState,pivotState:r==null?void 0:r.pivotState,eventType:this.eventType})},onGridExit:()=>{t&&this.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(e,!0),this.addDestroyFunc(()=>this.dragAndDropService.removeDragSource(e))}createDragItem(){const t=this.columnGroup.getLeafColumns(),e={},r={};return t.forEach(o=>{const i=o.getId();e[i]=o.isVisible(),r[i]=this.modelItemUtils.createPivotState(o)}),{columns:t,visibleState:e,pivotState:r}}setupExpandContract(){this.eGroupClosedIcon.appendChild(C._createIcon("columnSelectClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(C._createIcon("columnSelectOpen",this.gos,null));const t=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(this.eGroupClosedIcon,{click:t}),this.addManagedElementListeners(this.eGroupOpenedIcon,{click:t});const e=new C.TouchListener(this.eColumnGroupIcons,!0);this.addManagedListeners(e,{tap:t}),this.addDestroyFunc(e.destroy.bind(e))}onLabelClicked(){const t=!this.cbSelect.getValue();this.onChangeCommon(t)}onCheckboxChanged(t){this.onChangeCommon(t.selected)}getVisibleLeafColumns(){const t=[],e=r=>{r.forEach(o=>{o.isPassesFilter()&&(o.isGroup()?e(o.getChildren()):t.push(o.getColumn()))})};return e(this.modelItem.getChildren()),t}onChangeCommon(t){this.refreshAriaLabel(),!this.processingColumnStateChange&&this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(),t,this.eventType)}refreshAriaLabel(){const t=this.localeService.getLocaleTextFunc(),e=t("ariaColumnGroup","Column Group"),r=this.cbSelect.getValue(),o=r===void 0?t("ariaIndeterminate","indeterminate"):r?t("ariaVisible","visible"):t("ariaHidden","hidden"),i=t("ariaToggleVisibility","Press SPACE to toggle visibility");C._setAriaLabel(this.focusWrapper,`${this.displayName} ${e}`),this.cbSelect.setInputAriaLabel(`${i} (${o})`),C._setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)}onColumnStateChanged(){const t=this.workOutSelectedValue(),e=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(t),this.cbSelect.setReadOnly(e),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",e),this.processingColumnStateChange=!1}workOutSelectedValue(){const t=this.columnModel.isPivotMode(),e=this.getVisibleLeafColumns();let r=0,o=0;if(e.forEach(i=>{!t&&i.getColDef().lockVisible||(this.isColumnChecked(i,t)?r++:o++)}),!(r>0&&o>0))return r>0}workOutReadOnlyValue(){const t=this.columnModel.isPivotMode();let e=0;return this.columnGroup.getLeafColumns().forEach(r=>{t?r.isAnyFunctionAllowed()&&e++:r.getColDef().lockVisible||e++}),e===0}isColumnChecked(t,e){if(e){const r=t.isPivotActive(),o=t.isRowGroupActive(),i=t.isValueActive();return r||o||i}return t.isVisible()}onExpandOrContractClicked(){const t=this.modelItem.isExpanded();this.modelItem.setExpanded(!t)}onExpandChanged(){this.setOpenClosedIcons(),this.refreshAriaExpanded()}setOpenClosedIcons(){const t=this.modelItem.isExpanded();C._setDisplayed(this.eGroupClosedIcon,!t),C._setDisplayed(this.eGroupOpenedIcon,t)}refreshAriaExpanded(){C._setAriaExpanded(this.focusWrapper,this.modelItem.isExpanded())}getDisplayName(){return this.displayName}onSelectAllChanged(t){const e=this.cbSelect.getValue();!this.cbSelect.isReadOnly()&&(t&&!e||!t&&e)&&this.cbSelect.toggle()}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}setSelected(t){this.cbSelect.setValue(t,!0)}},uy=class extends C.BeanStub{constructor(t,e){super(),this.comp=t,this.virtualList=e}wireBeans(t){this.columnMoveService=t.columnMoveService,this.columnModel=t.columnModel}postConstruct(){this.createManagedBean(new Le.VirtualListDragFeature(this.comp,this.virtualList,{dragSourceType:C.DragSourceType.ToolPanel,listItemDragStartEvent:"columnPanelItemDragStart",listItemDragEndEvent:"columnPanelItemDragEnd",eventSource:this.eventService,getCurrentDragValue:t=>this.getCurrentDragValue(t),isMoveBlocked:t=>this.isMoveBlocked(t),getNumRows:t=>t.getDisplayedColsList().length,moveItem:(t,e)=>this.moveItem(this.getCurrentColumnsBeingMoved(t),e)}))}getCurrentDragValue(t){return t.column}getCurrentColumnsBeingMoved(t){return C.isProvidedColumnGroup(t)?t.getLeafColumns():t?[t]:[]}isMoveBlocked(t){return this.gos.get("suppressMovableColumns")?!0:!!this.getCurrentColumnsBeingMoved(t).find(i=>{const s=i.getColDef();return!!s.suppressMovable||!!s.lockPosition})}moveItem(t,e){if(!e)return;const{component:r}=e;let o=null,i=e.position==="top";if(r instanceof qd?(o=r.getColumns()[0],i=!0):r&&(o=r.getColumn()),!o)return;const s=this.getMoveTargetIndex({currentColumns:t,lastHoveredColumn:o,isBefore:i});s!=null&&this.columnMoveService.moveColumns(t,s,"toolPanelUi")}getMoveTargetIndex(t){const{currentColumns:e,lastHoveredColumn:r,isBefore:o}=t;if(!r||!e)return null;const i=this.columnModel.getCols().indexOf(r),s=o?i:i+1,d=this.getMoveDiff(e,s);return s-d}getMoveDiff(t,e){const r=this.columnModel.getCols();if(!t)return 0;const o=t[0],i=t.length;return r.indexOf(o)<e?i:0}},py=class extends C.Component{constructor(t,e,r,o){super(),this.allowDragging=e,this.groupsExist=r,this.focusWrapper=o,this.eLabel=C.RefPlaceholder,this.cbSelect=C.RefPlaceholder,this.processingColumnStateChange=!1,this.column=t.getColumn(),this.columnDept=t.getDept(),this.displayName=t.getDisplayName()}wireBeans(t){this.columnModel=t.columnModel,this.dragAndDropService=t.dragAndDropService,this.modelItemUtils=t.modelItemUtils}postConstruct(){this.setTemplate(`<div class="ag-column-select-column">
|
|
36
|
+
<ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
|
|
37
|
+
<span class="ag-column-select-column-label" data-ref="eLabel"></span>
|
|
38
|
+
</div>`,[C.AgCheckboxSelector]),this.eDragHandle=C._createIconNoSpan("columnDrag",this.gos),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");const t=this.cbSelect.getGui(),e=this.cbSelect.getInputElement();t.insertAdjacentElement("afterend",this.eDragHandle),e.setAttribute("tabindex","-1");const r=C._escapeString(this.displayName);this.eLabel.innerHTML=r;const o=this.columnDept;this.groupsExist&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass(`ag-column-select-indent-${o}`),this.getGui().style.setProperty("--ag-indentation-level",String(o)),this.setupDragging();const i=this.onColumnStateChanged.bind(this);this.addManagedEventListeners({columnPivotModeChanged:i}),this.addManagedListeners(this.column,{columnValueChanged:i,columnPivotChanged:i,columnRowGroupChanged:i,visibleChanged:i}),this.addManagedListeners(this.focusWrapper,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListeners(this.cbSelect,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.onLabelClicked.bind(this)}),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),C._getToolPanelClassesFromColDef(this.column.getColDef(),this.gos,this.column,null).forEach(d=>this.addOrRemoveCssClass(d,!0))}getColumn(){return this.column}setupTooltip(){const t=this.gos.get("tooltipShowMode")==="whenTruncated";let e;t&&(e=()=>this.eLabel.scrollWidth>this.eLabel.clientWidth);const r=()=>{const o=this.column.getColDef().headerTooltip;this.setTooltip({newTooltipText:o,location:"columnToolPanelColumn",shouldDisplayTooltip:e})};r(),this.addManagedEventListeners({newColumnsLoaded:r})}getTooltipParams(){const t=super.getTooltipParams();return t.location="columnToolPanelColumn",t.colDef=this.column.getColDef(),t}onContextMenu(t){const{column:e,gos:r}=this;if(r.get("functionsReadOnly"))return;const o=this.createBean(new Hd(e,t,this.focusWrapper));this.addDestroyFunc(()=>{o.isAlive()&&this.destroyBean(o)})}handleKeyDown(t){t.key===C.KeyCode.SPACE&&(t.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))}onLabelClicked(){if(this.gos.get("functionsReadOnly"))return;const t=!this.cbSelect.getValue();this.onChangeCommon(t)}onCheckboxChanged(t){this.onChangeCommon(t.selected)}onChangeCommon(t){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),!this.processingColumnStateChange&&this.modelItemUtils.setColumn(this.column,t,"toolPanelUi"))}refreshAriaLabel(){const t=this.localeService.getLocaleTextFunc(),e=t("ariaColumn","Column"),r=this.cbSelect.getValue()?t("ariaVisible","visible"):t("ariaHidden","hidden"),o=t("ariaToggleVisibility","Press SPACE to toggle visibility");C._setAriaLabel(this.focusWrapper,`${this.displayName} ${e}`),this.cbSelect.setInputAriaLabel(`${o} (${r})`),C._setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)}setupDragging(){if(!this.allowDragging){C._setDisplayed(this.eDragHandle,!1);return}let t=!this.gos.get("suppressDragLeaveHidesColumns");const e={type:C.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>t?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{t=!this.gos.get("suppressDragLeaveHidesColumns"),this.eventService.dispatchEvent({type:"columnPanelItemDragStart",column:this.column})},onDragStopped:()=>{this.eventService.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:r=>{t&&this.modelItemUtils.updateColumns({columns:[this.column],visibleState:r==null?void 0:r.visibleState,pivotState:r==null?void 0:r.pivotState,eventType:"toolPanelUi"})},onGridExit:()=>{t&&this.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(e,!0),this.addDestroyFunc(()=>this.dragAndDropService.removeDragSource(e))}createDragItem(){const t=this.column.getColId(),e={[t]:this.column.isVisible()},r={[t]:this.modelItemUtils.createPivotState(this.column)};return{columns:[this.column],visibleState:e,pivotState:r}}onColumnStateChanged(){this.processingColumnStateChange=!0;const t=this.columnModel.isPivotMode();if(t){const o=this.column.isAnyFunctionActive();this.cbSelect.setValue(o)}else this.cbSelect.setValue(this.column.isVisible());let e=!0,r=!0;if(t){const o=this.gos.get("functionsReadOnly"),i=!this.column.isAnyFunctionAllowed();e=!o&&!i,r=e}else{const{enableRowGroup:o,enableValue:i,lockPosition:s,suppressMovable:d,lockVisible:u}=this.column.getColDef(),p=!!o||!!i,h=!!s||!!d;e=!u,r=p||!h}this.cbSelect.setReadOnly(!e),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!r),this.addOrRemoveCssClass("ag-column-select-column-readonly",!r&&!e),this.cbSelect.setPassive(!1),this.processingColumnStateChange=!1}getDisplayName(){return this.displayName}onSelectAllChanged(t){t!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}isExpandable(){return!1}setExpanded(t){C._warnOnce("can not expand a column item that does not represent a column group header")}},gy=class{constructor(t){this.items=t}getRowCount(){return this.items.length}getRow(t){return this.items[t]}},hy="ag-column-select-list",fy=class extends C.Component{constructor(){super(`<div class="${hy}" role="presentation"></div>`),this.destroyColumnItemFuncs=[],this.hasLoadedInitialState=!1,this.isInitialState=!1}wireBeans(t){this.columnModel=t.columnModel,this.columnNameService=t.columnNameService,this.colDefService=t.toolPanelColDefService,this.modelItemUtils=t.modelItemUtils}destroy(){this.destroyColumnTree(),super.destroy()}destroyColumnTree(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(t=>t()),this.destroyColumnItemFuncs=[]}init(t,e,r){this.params=t,this.allowDragging=e,this.eventType=r,this.params.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:this.onColumnsChanged.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.onColumnsChanged.bind(this)});const o=this.fireSelectionChangedEvent.bind(this);this.addManagedEventListeners({columnPivotChanged:o,columnPivotModeChanged:o,columnRowGroupChanged:o,columnValueChanged:o,columnVisible:o,newColumnsLoaded:o}),this.expandGroupsByDefault=!this.params.contractColumnSelection,this.virtualList=this.createManagedBean(new Le.VirtualList({cssIdentifier:"column-select",ariaRole:"tree"})),this.appendChild(this.virtualList.getGui()),this.virtualList.setComponentCreator((i,s)=>(C._setAriaLevel(s,i.getDept()+1),this.createComponentFromItem(i,s))),this.columnModel.isReady()&&this.onColumnsChanged(),!this.params.suppressColumnMove&&this.createManagedBean(new uy(this,this.virtualList))}createComponentFromItem(t,e){if(t.isGroup()){const o=new qd(t,this.allowDragging,this.eventType,e);return this.createBean(o),o}const r=new py(t,this.allowDragging,this.groupsExist,e);return this.createBean(r),r}onColumnsChanged(){this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!this.params.initialState);const t=this.getExpandedStates(),e=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.buildTreeFromWhatGridIsDisplaying():this.buildTreeFromProvidedColumnDefs(),this.setExpandedStates(t),this.markFilteredColumns(),this.flattenAndFilterModel(),this.isInitialState=!1}getDisplayedColsList(){return this.displayedColsList}getExpandedStates(){const t={};if(this.isInitialState){const{expandedGroupIds:e}=this.params.initialState;return e.forEach(r=>{t[r]=!0}),t}return this.allColsTree?(this.forEachItem(e=>{if(!e.isGroup())return;const r=e.getColumnGroup();r&&(t[r.getId()]=e.isExpanded())}),t):{}}setExpandedStates(t){if(!this.allColsTree)return;const{isInitialState:e}=this;this.forEachItem(r=>{if(!r.isGroup())return;const o=r.getColumnGroup();if(o){const i=t[o.getId()];(i!=null||e)&&r.setExpanded(!!i)}})}buildTreeFromWhatGridIsDisplaying(){this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this))}setColumnLayout(t){const e=this.colDefService.createColumnTree(t);this.buildListModel(e),this.groupsExist=t.some(r=>r&&typeof r.children<"u"),this.markFilteredColumns(),this.flattenAndFilterModel()}buildTreeFromProvidedColumnDefs(){this.buildListModel(this.columnModel.getColDefColTree()),this.groupsExist=this.columnModel.isProvidedColGroupsPresent()}buildListModel(t){const e=this.onColumnExpanded.bind(this),r=d=>{d.addEventListener("expandedChanged",e);const u=d.removeEventListener.bind(d,"expandedChanged",e);this.destroyColumnItemFuncs.push(u)},o=(d,u,p)=>{d.forEach(h=>{C.isProvidedColumnGroup(h)?i(h,u,p):s(h,u,p)})},i=(d,u,p)=>{const h=d.getColGroupDef();if(h&&h.suppressColumnsToolPanel)return;if(d.isPadding()){o(d.getChildren(),u,p);return}const y=this.columnNameService.getDisplayNameForProvidedColumnGroup(null,d,"columnToolPanel"),S=new Wd(y,d,u,!0,this.expandGroupsByDefault);p.push(S),r(S),o(d.getChildren(),u+1,S.getChildren())},s=(d,u,p)=>{if(d.getColDef()&&d.getColDef().suppressColumnsToolPanel)return;const f=this.columnNameService.getDisplayNameForColumn(d,"columnToolPanel");p.push(new Wd(f,d,u))};this.destroyColumnTree(),o(t,0,this.allColsTree)}onColumnExpanded(){this.flattenAndFilterModel()}flattenAndFilterModel(){this.displayedColsList=[];const t=r=>{r.isPassesFilter()&&(this.displayedColsList.push(r),r.isGroup()&&r.isExpanded()&&r.getChildren().forEach(t))};this.allColsTree.forEach(t),this.virtualList.setModel(new gy(this.displayedColsList));const e=this.virtualList.getLastFocusedRow();this.virtualList.refresh(),e!=null&&this.focusRowIfAlive(e),this.notifyListeners(),this.refreshAriaLabel()}refreshAriaLabel(){const t=this.localeService.getLocaleTextFunc(),e=t("ariaColumnPanelList","Column List"),r=t("columns","Columns"),o=this.displayedColsList.length;C._setAriaLabel(this.virtualList.getAriaElement(),`${e} ${o} ${r}`)}focusRowIfAlive(t){window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(t)},0)}forEachItem(t){const e=r=>{r.forEach(o=>{t(o),o.isGroup()&&e(o.getChildren())})};this.allColsTree&&e(this.allColsTree)}doSetExpandedAll(t){this.forEachItem(e=>{e.isGroup()&&e.setExpanded(t)})}setGroupsExpanded(t,e){if(!e){this.doSetExpandedAll(t);return}const r=[];this.forEachItem(i=>{if(!i.isGroup())return;const s=i.getColumnGroup().getId();e.indexOf(s)>=0&&(i.setExpanded(t),r.push(s))});const o=e.filter(i=>!C._includes(r,i));o.length>0&&C._warnOnce("unable to find group(s) for supplied groupIds:",o)}getExpandState(){let t=0,e=0;return this.forEachItem(r=>{r.isGroup()&&(r.isExpanded()?t++:e++)}),t>0&&e>0?2:e>0?1:0}doSetSelectedAll(t){this.modelItemUtils.selectAllChildren(this.allColsTree,t,this.eventType)}getSelectionState(){let t=0,e=0;const r=this.columnModel.isPivotMode();if(this.forEachItem(o=>{if(o.isGroup()||!o.isPassesFilter())return;const i=o.getColumn(),s=i.getColDef();let d;if(r){if(!i.isAllowPivot()&&!i.isAllowRowGroup()&&!i.isAllowValue())return;d=i.isValueActive()||i.isPivotActive()||i.isRowGroupActive()}else{if(s.lockVisible)return;d=i.isVisible()}d?t++:e++}),!(t>0&&e>0))return!(t===0||e>0)}setFilterText(t){this.filterText=C._exists(t)?t.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()}markFilteredColumns(){const t=r=>{if(!C._exists(this.filterText))return!0;const o=r.getDisplayName();return o==null||o.toLowerCase().indexOf(this.filterText)!==-1},e=(r,o)=>{let i=!1;if(r.isGroup()){const d=t(r);r.getChildren().forEach(u=>{const p=e(u,d||o);p&&(i=p)})}const s=o||i?!0:t(r);return r.setPassesFilter(s),s};this.allColsTree.forEach(r=>e(r,!1))}notifyListeners(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()}fireGroupExpandedEvent(){const t=this.getExpandState();this.dispatchLocalEvent({type:"groupExpanded",state:t})}fireSelectionChangedEvent(){if(!this.allColsTree)return;const t=this.getSelectionState();this.dispatchLocalEvent({type:"selectionChanged",state:t})}getExpandedGroups(){const t=[];return this.allColsTree&&this.forEachItem(e=>{e.isGroup()&&e.isExpanded()&&t.push(e.getColumnGroup().getId())}),t}},my={selector:"AG-PRIMARY-COLS-LIST",component:fy},vy=class extends C.Component{constructor(){super(`<div class="ag-column-select">
|
|
39
|
+
<ag-primary-cols-header data-ref="primaryColsHeaderPanel"></ag-primary-cols-header>
|
|
40
|
+
<ag-primary-cols-list data-ref="primaryColsListPanel"></ag-primary-cols-list>
|
|
41
|
+
</div>`,[dy,my]),this.primaryColsHeaderPanel=C.RefPlaceholder,this.primaryColsListPanel=C.RefPlaceholder}init(t,e,r){this.allowDragging=t,this.params=e,this.eventType=r,this.primaryColsHeaderPanel.init(this.params);const o=this.params.suppressColumnFilter,i=this.params.suppressColumnSelectAll;this.params.suppressColumnExpandAll&&o&&i&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addManagedListeners(this.primaryColsListPanel,{groupExpanded:this.onGroupExpanded.bind(this),selectionChanged:this.onSelectionChange.bind(this)}),this.primaryColsListPanel.init(this.params,this.allowDragging,this.eventType),this.addManagedListeners(this.primaryColsHeaderPanel,{expandAll:this.onExpandAll.bind(this),collapseAll:this.onCollapseAll.bind(this),selectAll:this.onSelectAll.bind(this),unselectAll:this.onUnselectAll.bind(this),filterChanged:this.onFilterChanged.bind(this)}),this.positionableFeature=new C.PositionableFeature(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature)}toggleResizable(t){this.positionableFeature.setResizable(t?{bottom:!0}:!1)}onExpandAll(){this.primaryColsListPanel.doSetExpandedAll(!0)}onCollapseAll(){this.primaryColsListPanel.doSetExpandedAll(!1)}expandGroups(t){this.primaryColsListPanel.setGroupsExpanded(!0,t)}collapseGroups(t){this.primaryColsListPanel.setGroupsExpanded(!1,t)}setColumnLayout(t){this.primaryColsListPanel.setColumnLayout(t)}onFilterChanged(t){this.primaryColsListPanel.setFilterText(t.filterText)}syncLayoutWithGrid(){this.primaryColsListPanel.onColumnsChanged()}onSelectAll(){this.primaryColsListPanel.doSetSelectedAll(!0)}onUnselectAll(){this.primaryColsListPanel.doSetSelectedAll(!1)}onGroupExpanded(t){this.primaryColsHeaderPanel.setExpandState(t.state),this.params.onStateUpdated()}onSelectionChange(t){this.primaryColsHeaderPanel.setSelectionState(t.state)}getExpandedGroups(){return this.primaryColsListPanel.getExpandedGroups()}},Kd=class extends C.Component{constructor(){super(...arguments),this.cbPivotMode=C.RefPlaceholder}wireBeans(t){this.columnModel=t.columnModel,this.ctrlsService=t.ctrlsService}createTemplate(){return`<div class="ag-pivot-mode-panel">
|
|
42
|
+
<ag-toggle-button data-ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>
|
|
43
|
+
</div>`}postConstruct(){this.setTemplate(this.createTemplate(),[C.AgToggleButtonSelector]),this.cbPivotMode.setValue(this.columnModel.isPivotMode());const t=this.localeService.getLocaleTextFunc();this.cbPivotMode.setLabel(t("pivotMode","Pivot Mode")),this.addManagedListeners(this.cbPivotMode,{fieldValueChanged:this.onBtPivotMode.bind(this)});const e=this.onPivotModeChanged.bind(this);this.addManagedEventListeners({newColumnsLoaded:e,columnPivotModeChanged:e})}onBtPivotMode(){const t=!!this.cbPivotMode.getValue();t!==this.columnModel.isPivotMode()&&(this.gos.updateGridOptions({options:{pivotMode:t},source:"toolPanelUi"}),this.ctrlsService.getHeaderRowContainerCtrls().forEach(e=>e.refresh()))}onPivotModeChanged(){const t=this.columnModel.isPivotMode();this.cbPivotMode.setValue(t)}},yy=class extends C.Component{constructor(){super('<div class="ag-column-panel"></div>'),this.initialised=!1,this.childDestroyFuncs=[]}setVisible(t){super.setDisplayed(t),t&&!this.initialised&&this.init(this.params)}init(t){const e=this.gos.addGridCommonParams({suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1});if(this.params={...e,...t},this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=this.createBean(new Kd),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotModePanel)),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new vy),this.childDestroyFuncs.push(()=>this.destroyBean(this.primaryColsPanel)),this.primaryColsPanel.init(!0,this.params,"toolPanelUi"),this.primaryColsPanel.addCssClass("ag-column-panel-column-select"),this.appendChild(this.primaryColsPanel),this.isRowGroupingModuleLoaded()){this.params.suppressRowGroups||(this.rowGroupDropZonePanel=this.createBean(new Wl(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.rowGroupDropZonePanel)),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new Zd(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.valuesDropZonePanel)),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new $l(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotDropZonePanel)),this.appendChild(this.pivotDropZonePanel)),this.setLastVisible();const[r]=this.addManagedEventListeners({columnPivotModeChanged:()=>{this.resetChildrenHeight(),this.setLastVisible()}});this.childDestroyFuncs.push(()=>r())}this.initialised=!0}setPivotModeSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(t):t&&(this.pivotModePanel=this.createBean(new Kd),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotModePanel))),this.setLastVisible())}setRowGroupsSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(t):t&&(this.rowGroupDropZonePanel=this.createManagedBean(new Wl(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())}setValuesSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(t):t&&(this.valuesDropZonePanel=this.createManagedBean(new Zd(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())}setPivotSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(t):t&&(this.pivotDropZonePanel=this.createManagedBean(new $l(!1)),this.appendChild(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(t)),this.setLastVisible())}setResizers(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(t=>{if(!t)return;const e=t.getGui();t.toggleResizable(!e.classList.contains("ag-last-column-drop")&&!e.classList.contains("ag-hidden"))})}setLastVisible(){const t=this.getGui();Array.prototype.slice.call(t.querySelectorAll(".ag-column-drop")).forEach(i=>i.classList.remove("ag-last-column-drop"));const r=t.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),o=C._last(r);o&&o.classList.add("ag-last-column-drop"),this.setResizers()}resetChildrenHeight(){const e=this.getGui().children;for(let r=0;r<e.length;r++){const o=e[r];o.style.removeProperty("height"),o.style.removeProperty("flex")}}isRowGroupingModuleLoaded(){return this.gos.assertModuleRegistered(C.ModuleNames.RowGroupingModule,"Row Grouping")}expandColumnGroups(t){this.primaryColsPanel.expandGroups(t)}collapseColumnGroups(t){this.primaryColsPanel.collapseGroups(t)}setColumnLayout(t){this.primaryColsPanel.setColumnLayout(t)}syncLayoutWithGrid(){this.primaryColsPanel.syncLayoutWithGrid()}destroyChildren(){this.childDestroyFuncs.forEach(t=>t()),this.childDestroyFuncs.length=0,C._clearElement(this.getGui())}refresh(t){return this.destroyChildren(),this.init(t),!0}getState(){return{expandedGroupIds:this.primaryColsPanel.getExpandedGroups()}}destroy(){this.destroyChildren(),super.destroy()}},by=class extends C.BeanStub{constructor(){super(...arguments),this.beanName="modelItemUtils"}wireBeans(t){this.aggFuncService=t.aggFuncService,this.columnModel=t.columnModel,this.columnApplyStateService=t.columnApplyStateService}selectAllChildren(t,e,r){const o=this.extractAllLeafColumns(t);this.setAllColumns(o,e,r)}setColumn(t,e,r){this.setAllColumns([t],e,r)}setAllColumns(t,e,r){this.columnModel.isPivotMode()?this.setAllPivot(t,e,r):this.setAllVisible(t,e,r)}extractAllLeafColumns(t){const e=[],r=o=>{o.forEach(i=>{i.isPassesFilter()&&(i.isGroup()?r(i.getChildren()):e.push(i.getColumn()))})};return r(t),e}setAllVisible(t,e,r){const o=[];t.forEach(i=>{i.getColDef().lockVisible||i.isVisible()!=e&&o.push({colId:i.getId(),hide:!e})}),o.length>0&&this.columnApplyStateService.applyColumnState({state:o},r)}setAllPivot(t,e,r){this.setAllPivotActive(t,e,r)}setAllPivotActive(t,e,r){const o=[],d=e?u=>{var p;if(!u.isAnyFunctionActive())if(u.isAllowValue()){const h=typeof u.getAggFunc()=="string"?u.getAggFunc():(p=this.aggFuncService)==null?void 0:p.getDefaultAggFunc(u);o.push({colId:u.getId(),aggFunc:h})}else u.isAllowRowGroup()?o.push({colId:u.getId(),rowGroup:!0}):u.isAllowPivot()&&o.push({colId:u.getId(),pivot:!0})}:u=>{(u.isPivotActive()||u.isRowGroupActive()||u.isValueActive())&&o.push({colId:u.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};t.forEach(d),o.length>0&&this.columnApplyStateService.applyColumnState({state:o},r)}updateColumns(t){const{columns:e,visibleState:r,pivotState:o,eventType:i}=t,s=e.map(d=>{const u=d.getColId();if(this.columnModel.isPivotMode()){const p=o==null?void 0:o[u];return{colId:u,pivot:p==null?void 0:p.pivot,rowGroup:p==null?void 0:p.rowGroup,aggFunc:p==null?void 0:p.aggFunc}}else return{colId:u,hide:!(r!=null&&r[u])}});this.columnApplyStateService.applyColumnState({state:s},i)}createPivotState(t){return{pivot:t.isPivotActive(),rowGroup:t.isRowGroupActive(),aggFunc:t.isValueActive()?t.getAggFunc():void 0}}},wy="32.3.2",Yd=C._defineModule({version:wy,moduleName:C.ModuleNames.ColumnsToolPanelModule,beans:[by],userComponents:[{name:"agColumnsToolPanel",classImp:yy},{name:"agMenuItem",classImp:Le.AgMenuItemRenderer}],dependantModules:[Le.EnterpriseCoreModule,sy,Ul]}),Jd=(t,e)=>new Qd(t.feature,e,t.defaults,t.css),xy=0,Qo=(t,e=`customPart${++xy}`)=>new Qd(t,e),Qd=class nd{constructor(e,r,o={},i=[]){this.feature=e,this.variant=r,this.defaults=o,this.css=i}get id(){return this.feature?`${this.feature}/${this.variant}`:this.variant}withParams(e){const r={...this.defaults};for(const[o,i]of Object.entries(e))i!=null&&(r[o]=i);return new nd(this.feature,this.variant,r,this.css)}withAdditionalParams(e){return this.withParams(e)}withCSS(e){return new nd(this.feature,this.variant,this.defaults,this.css.concat(e))}},Xd=`:where([class^=ag-]){box-sizing:border-box;outline:none;&:after,&:before,&:focus,&:focus-within{box-sizing:border-box;outline:none}&:where(button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0}&:where(button){font-weight:inherit}&::-ms-clear{display:none}}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-virtual-list-viewport .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;right:25px;transition:opacity 1s ease-out 3s;&:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5QjlCOUIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOUI5QjlCIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==);background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}.ag-ltr .ag-watermark-text{padding-left:.7rem}.ag-rtl .ag-watermark-text{padding-right:.7rem}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&.ag-layout-normal{overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}.ag-ltr .ag-floating-bottom-full-width-container,.ag-ltr .ag-floating-top-full-width-container,.ag-ltr .ag-full-width-container,.ag-ltr .ag-sticky-bottom-full-width-container,.ag-ltr .ag-sticky-top-full-width-container{left:0}.ag-rtl .ag-floating-bottom-full-width-container,.ag-rtl .ag-floating-top-full-width-container,.ag-rtl .ag-full-width-container,.ag-rtl .ag-sticky-bottom-full-width-container,.ag-rtl .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&.ag-scrollbar-invisible{bottom:0;position:absolute;&.ag-apple-scrollbar{opacity:0;transition:opacity .4s;visibility:hidden;&.ag-scrollbar-active,&.ag-scrollbar-scrolling{opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&.ag-scrollbar-invisible{left:0;right:0}}.ag-body-vertical-scroll{height:100%;&.ag-scrollbar-invisible{top:0;z-index:10}}.ag-ltr .ag-body-vertical-scroll{&.ag-scrollbar-invisible{right:0}}.ag-rtl .ag-body-vertical-scroll{&.ag-scrollbar-invisible{left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&.ag-scroller-corner{overflow-x:hidden}}.ag-ltr .ag-column-moving{.ag-cell,.ag-header-cell{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}.ag-rtl .ag-column-moving{.ag-cell,.ag-header-cell{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}.ag-row-animation .ag-row{transition:transform .4s,top .4s,opacity .2s}.ag-row-animation .ag-row.ag-after-created{transition:transform .4s,top .4s,height .4s,opacity .2s}.ag-row-no-animation .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}.ag-sparkline-wrapper{height:100%;left:0;position:absolute;top:0;width:100%}.ag-full-width-row .ag-cell-wrapper.ag-row-group{align-items:center;height:100%}.ag-cell .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{border-bottom:var(--ag-pinned-row-border);display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-pinned-left-floating-top,.ag-pinned-right-floating-top{display:inline-block;min-width:0;overflow:hidden;position:relative}.ag-floating-bottom{border-top:var(--ag-pinned-row-border);display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-pinned-left-floating-bottom,.ag-pinned-right-floating-bottom{display:inline-block;min-width:0;overflow:hidden;position:relative}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-value-slide-out{opacity:1}.ag-ltr .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}.ag-rtl .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:is(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}.ag-ltr .ag-value-slide-out-end{margin-right:10px}.ag-rtl .ag-value-slide-out-end{margin-left:10px}.ag-opacity-zero{opacity:0!important}.ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}.ag-right-aligned-header{.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}.ag-pill-select{display:flex;flex-direction:column;.ag-column-drop-list{padding:0}.ag-select{padding-top:var(--ag-spacing)}.ag-picker-field-wrapper{background-color:transparent;border:0}.ag-picker-field-display{cursor:pointer}}.ag-ltr{direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}.ag-rtl{direction:rtl;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}.ag-rtl{.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}.ag-rtl{.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{overflow:hidden;visibility:hidden;width:0;& div{position:absolute}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-group-title-bar .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-direction:row;flex-wrap:wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}.ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}.ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-group-item-alignment-stretch .ag-group-item{align-items:stretch}.ag-group-item-alignment-start .ag-group-item{align-items:flex-start}.ag-group-item-alignment-end .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}.ag-rtl{text-align:right}.ag-ltr .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-rtl .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);color:var(--ag-cell-text-color);font-size:var(--ag-data-font-size);height:var(--ag-row-height);white-space:nowrap;width:100%;--ag-internal-content-line-height:min(calc(var(--ag-row-height) - 1px),var(--ag-line-height,1000px))}:where(.ag-body-vertical-content-no-gap) .ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important;display:none}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height)}.ag-ltr .ag-cell{border-right:var(--ag-column-border)}.ag-rtl .ag-cell{border-left:var(--ag-column-border)}.ag-ltr :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}.ag-rtl :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;&.ag-row-group{align-items:flex-start}>:not(.ag-cell-value):not(.ag-group-value){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}}.ag-ltr .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}.ag-rtl .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-ltr .ag-group-contracted,.ag-ltr .ag-group-expanded,.ag-ltr .ag-row-drag,.ag-ltr .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-group-contracted,.ag-rtl .ag-group-expanded,.ag-rtl .ag-row-drag,.ag-rtl .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-ltr .ag-group-child-count{margin-left:3px}.ag-rtl .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}.ag-ltr .ag-row-highlight-above:after,.ag-ltr .ag-row-highlight-below:after{left:1px}.ag-rtl .ag-row-highlight-above:after,.ag-rtl .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:-1px}.ag-row-highlight-above.ag-row-first:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}.ag-ltr .ag-right-aligned-cell{text-align:right}.ag-rtl .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}.ag-cell:not(.ag-cell-inline-editing),.ag-full-width-row .ag-cell-wrapper.ag-row-group{-webkit-font-smoothing:subpixel-antialiased}.ag-ltr .ag-cell:not(.ag-cell-inline-editing),.ag-ltr .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-rtl .ag-cell:not(.ag-cell-inline-editing),.ag-rtl .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.5)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}.ag-ltr .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-details-row{padding:calc(var(--ag-spacing)*3.75)}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header,.ag-pinned-right-header{height:100%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing),.ag-cell-range-selected:not(.ag-cell-focus){background-color:var(--ag-range-selection-background-color);&.ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important;&.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}}}.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-3:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-4:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell){&.ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}&.ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}&.ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}&.ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}}.ag-ltr,.ag-rtl{.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-right,.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-right,.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-left,.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-left,.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{background-color:var(--ag-range-selection-border-color);bottom:-1px;height:6px;position:absolute;width:6px}.ag-ltr .ag-fill-handle,.ag-ltr .ag-range-handle{right:-1px}.ag-rtl .ag-fill-handle,.ag-rtl .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}.ag-ltr .ag-range-handle{cursor:nwse-resize}.ag-rtl .ag-range-handle{cursor:nesw-resize}.ag-cell-inline-editing{border:var(--ag-input-focus-border)!important}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input{flex:1 1 auto}.ag-floating-filter-input .ag-input-field-input[type=date]{width:1px}.ag-input-field-input{min-width:0;width:100%}.ag-column-select-header-filter-wrapper,.ag-filter-filter,.ag-filter-toolpanel-search,.ag-mini-filter{.ag-input-wrapper:before{background-color:currentColor;content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:50%;position:absolute;width:12px}}.ag-ltr .ag-column-select-header-filter-wrapper,.ag-ltr .ag-filter-filter,.ag-ltr .ag-filter-toolpanel-search,.ag-ltr .ag-mini-filter{.ag-input-wrapper:before{margin-left:var(--ag-spacing)}& input.ag-number-field-input,& input.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}.ag-rtl .ag-column-select-header-filter-wrapper,.ag-rtl .ag-filter-filter,.ag-rtl .ag-filter-toolpanel-search,.ag-rtl .ag-mini-filter{.ag-input-wrapper:before{margin-right:var(--ag-spacing)}& input.ag-number-field-input,& input.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}.ag-advanced-filter-header{align-items:center;background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);display:flex;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);position:relative}.ag-advanced-filter{align-items:center;display:flex;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}.ag-ltr .ag-advanced-filter-apply-button,.ag-ltr .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-advanced-filter-apply-button,.ag-rtl .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-button{align-items:center;background-color:unset;border:0;display:flex;font-size:var(--ag-font-size);font-weight:600;padding:var(--ag-spacing);&:hover:not(:disabled){background-color:var(--ag-row-hover-color)}&:not(:disabled){cursor:pointer}}.ag-ltr .ag-advanced-filter-builder-button-label{margin-left:var(--ag-spacing)}.ag-rtl .ag-advanced-filter-builder-button-label{margin-right:var(--ag-spacing)}.ag-advanced-filter-builder{display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-button-panel{border-top:var(--ag-advanced-filter-builder-button-bar-border);display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-ltr .ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel{.ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-spacing)*2)}}.ag-rtl .ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel{.ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder-cancel-button{margin-right:calc(var(--ag-spacing)*2)}}.ag-advanced-filter-builder-item-wrapper{align-items:center;display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}.ag-ltr .ag-advanced-filter-builder-item-wrapper{padding-left:calc(var(--ag-icon-size)/2);padding-right:var(--ag-icon-size)}.ag-rtl .ag-advanced-filter-builder-item-wrapper{padding-left:var(--ag-icon-size);padding-right:calc(var(--ag-icon-size)/2)}.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size);&:before{height:50%;top:50%}}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-bottom,.ag-advanced-filter-builder-item-tree-line-vertical-top{align-items:center;display:flex;height:100%;position:relative;&:after,&:before{content:"";height:100%;position:absolute}}.ag-advanced-filter-builder-item-tree-line-horizontal:after{border-bottom:1px solid var(--ag-border-color);height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size))}.ag-ltr .ag-advanced-filter-builder-item-tree-line-horizontal:after{left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-horizontal:after{right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical:before{top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}.ag-ltr .ag-advanced-filter-builder-item-tree-line-vertical:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-vertical:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}.ag-ltr .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc(50% - var(--ag-icon-size)*1.5/2);top:calc(50% + var(--ag-icon-size)*1.5/2);width:calc(var(--ag-icon-size)/2)}.ag-ltr .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}.ag-rtl .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-condition{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-item-tree-lines,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-pill-wrapper{align-items:center;display:flex;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0 var(--ag-spacing)}.ag-advanced-filter-builder-pill{border-radius:var(--ag-border-radius);min-height:calc(100% - var(--ag-spacing)*3);min-width:calc(var(--ag-spacing)*2);padding:var(--ag-spacing) calc(var(--ag-spacing)*2);position:relative;.ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-value-empty{color:var(--ag-subtle-text-color)}}.ag-ltr .ag-advanced-filter-builder-pill{.ag-picker-field-display{margin-right:var(--ag-spacing)}}.ag-rtl .ag-advanced-filter-builder-pill{.ag-picker-field-display{margin-left:var(--ag-spacing)}}.ag-advanced-filter-builder-item-button,.ag-advanced-filter-builder-pill{&:focus-visible{shadow:var(--ag-focus-shadow)}}.ag-advanced-filter-builder-pill-display{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-advanced-filter-builder-join-pill{background-color:var(--ag-advanced-filter-builder-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{background-color:var(--ag-advanced-filter-builder-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{background-color:var(--ag-advanced-filter-builder-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{background-color:var(--ag-advanced-filter-builder-value-pill-color);cursor:text;max-width:140px;.ag-advanced-filter-builder-pill-display{display:block}}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-spacing)*.5)}.ag-advanced-filter-builder-item-button{color:var(--ag-subtle-text-color);cursor:pointer;position:relative}.ag-advanced-filter-builder-item-button-disabled{cursor:default;opacity:.5}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-spacing)}.ag-advanced-filter-builder-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:hover{background-color:var(--ag-row-hover-color);.ag-advanced-filter-builder-item-button{opacity:100%}}}.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid,.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible{opacity:100%}.ag-advanced-filter-builder-invalid{color:var(--ag-invalid-color);cursor:default;margin:0 var(--ag-spacing)}.ag-cell-inline-editing{border-radius:var(--ag-border-radius);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-editor .ag-wrapper,.ag-cell-editor input,.ag-cell-wrapper{height:100%;line-height:normal;width:100%}}.ag-autocomplete-list-popup,.ag-popup-editor .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-large-text-input textarea{resize:none}.ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{display:flex;flex-direction:column;position:absolute;top:16px}.ag-ltr .ag-chart-menu{right:20px}.ag-rtl .ag-chart-menu{left:20px}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}.ag-chart-menu-hidden~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:10px;height:8px;position:relative;width:10px;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{cursor:pointer}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section,.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-chart .ag-chart-menu{display:none}.ag-chart-menu-hidden:hover .ag-chart-menu{display:block}.ag-chart{.ag-chart-menu-wrapper{.ag-chart-menu{display:flex;flex-direction:row;gap:20px;top:8px;width:auto}}}.ag-ltr .ag-chart{.ag-chart-menu-wrapper{.ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}}}.ag-rtl .ag-chart{.ag-chart-menu-wrapper{.ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}}}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{position:relative}.ag-charts-data-group-item:not(:last-child){margin-bottom:var(--ag-spacing)}.ag-chart-menu{background:var(--ag-background-color);border-radius:var(--ag-border-radius)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.5;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{position:relative}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-advanced-settings-top-level-group-title-bar:focus-visible,.ag-charts-data-group-title-bar:focus-visible,.ag-charts-format-top-level-group-title-bar:focus-visible,.ag-charts-settings-group-title-bar:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding);.ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select){height:var(--ag-list-item-height)}.ag-charts-data-group-item.ag-picker-field{margin-top:var(--ag-spacing)}}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;.ag-chart-mini-thumbnail:nth-child(3n+1){grid-column:1}.ag-chart-mini-thumbnail:nth-child(3n+2){grid-column:3}.ag-chart-mini-thumbnail:nth-child(3n+3){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0}.ag-chart-menu-panel{background-color:var(--ag-chrome-background-color)}.ag-ltr .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}.ag-rtl .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-chart-tabbed-menu-body{position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-chart-settings-nav-bar{border-top:1px solid var(--ag-border-color)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500}.ag-chart-data-section,.ag-chart-format-section{.ag-label:not(.ag-group-title-bar){color:var(--ag-chart-menu-label-color)}.ag-label-align-top .ag-label{margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}.ag-slider.ag-label-align-top .ag-label{margin-bottom:0}& label{display:inline-block}}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-sub-level-group-title-bar,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{margin:0;padding:0}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group .ag-charts-data-group-container,.ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-charts-settings-group .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-title-bar{padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-format-sub-level-group-container{padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-vertical-spacing)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-chart-advanced-settings-section,.ag-chart-settings-mini-wrapper,.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-chart-advanced-settings-section{padding-top:var(--ag-widget-container-vertical-padding)}.ag-charts-advanced-settings-top-level-group{.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-container{margin:0}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-menu{--ag-icon-size:20px;background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);padding:4px 2px}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-column-drop{align-items:center;display:inline-flex;overflow:auto;position:relative;width:100%}.ag-column-drop-cell,.ag-column-drop-list{align-items:center;display:flex}.ag-column-drop-cell{gap:var(--ag-spacing);position:relative}.ag-column-drop-cell-text{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{align-items:stretch;display:flex;flex-direction:column;overflow:hidden}.ag-column-drop-vertical-title-bar{align-items:center;display:flex;flex:none}.ag-column-drop-vertical-list{align-items:stretch;flex-direction:column;flex-grow:1;overflow-x:auto;position:relative;>*{flex:none}}.ag-column-drop-empty .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{display:block}.ag-column-drop.ag-column-drop-horizontal{overflow:hidden;white-space:nowrap}.ag-column-drop-cell-button{cursor:pointer}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{width:50%!important}.ag-column-drop-cell{background:var(--ag-column-drop-cell-background-color);border:var(--ag-column-drop-cell-border);border-radius:500px;padding:calc(var(--ag-spacing)*.5);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-ltr .ag-column-drop-cell{padding-left:calc(var(--ag-spacing)*.75)}.ag-rtl .ag-column-drop-cell{padding-right:calc(var(--ag-spacing)*.75)}.ag-column-drop-cell-button{min-width:calc(var(--ag-spacing)*4)}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height)}.ag-ltr .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-column-drop-horizontal-list{gap:var(--ag-cell-widget-spacing)}.ag-column-drop-vertical-list{padding-bottom:var(--ag-spacing);padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-column-drop-vertical-cell{margin-top:var(--ag-spacing)}.ag-ltr .ag-column-drop-vertical-icon{margin-right:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-column-drop-vertical-icon{margin-left:var(--ag-widget-horizontal-spacing)}.ag-column-drop-vertical-empty-message{bottom:0;left:0;margin-top:var(--ag-spacing);overflow:hidden;position:absolute;right:0;top:0}.ag-select-agg-func-popup{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);height:calc(var(--ag-spacing)*5*3.5);padding:0;position:absolute}.ag-select-agg-func-virtual-list-item{cursor:default;&:hover{background-color:var(--ag-selected-row-background-color)}&:focus-visible{shadow:var(--ag-focus-shadow)}}.ag-ltr .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-spacing)*2)}.ag-sort-indicator-container{display:contents}.ag-ltr .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}.ag-rtl .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border)}.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child){border-right:var(--ag-column-border)}.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child){border-left:var(--ag-column-border)}.ag-column-drop-cell-button{min-width:0;opacity:.75;&:hover{opacity:1}}.ag-column-drop-vertical{min-height:75px}.ag-column-drop-vertical-title-bar{padding:var(--ag-widget-container-vertical-padding) calc(var(--ag-spacing)*2) 0}.ag-column-drop-vertical-empty-message{align-items:center;border:1px dashed;border-color:var(--ag-border-color);display:flex;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);padding:calc(var(--ag-spacing)*2)}.ag-column-select{display:flex;flex:3 1 0px;flex-direction:column;overflow:hidden;position:relative}.ag-column-select-header{flex:none;height:var(--ag-header-height);padding-left:var(--ag-widget-container-horizontal-padding);padding-right:var(--ag-widget-container-horizontal-padding)}.ag-column-select-column,.ag-column-select-column-group,.ag-column-select-header{align-items:center;display:flex;gap:var(--ag-widget-horizontal-spacing);position:relative}.ag-column-select-column,.ag-column-select-column-group{height:100%}.ag-column-select-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-column-select-header-icon{border-radius:var(--ag-border-radius);cursor:pointer;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}.ag-ltr .ag-column-select-column,.ag-ltr .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-column,.ag-rtl .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-rtl .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-column-select-column,.ag-column-select-column-group{&:not(:last-child){margin-bottom:var(--ag-widget-vertical-spacing)}}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly{opacity:.5;pointer-events:none}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding)*.5) 0}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}.ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}.ag-filter-body-wrapper{display:flex;flex-direction:column}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-full-body>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-input input[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1}.ag-column-panel{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.ag-pivot-mode-panel{display:flex;height:var(--ag-header-height)}.ag-pivot-mode-select{align-items:center;display:flex}.ag-ltr .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-panel-column-select{border-bottom:var(--ag-tool-panel-separator-border);border-top:var(--ag-tool-panel-separator-border)}:where(.ag-column-panel) .ag-column-drop-vertical{flex:1 1 0px;min-height:50px;&:where(:not(.ag-last-column-drop)){border-bottom:var(--ag-tool-panel-separator-border)}}.ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);max-width:200px;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2))}.ag-dnd-ghost,.ag-header{display:flex;overflow:hidden;white-space:nowrap}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-header-row:not(:first-child){.ag-header-cell:not(.ag-header-span-height.ag-header-span-total),.ag-header-group-cell.ag-header-group-cell-with-group{border-top:var(--ag-header-row-border)}}.ag-header-row:not(.ag-header-row-column-group){overflow:hidden}.ag-header.ag-header-allow-overflow .ag-header-row{overflow:visible}.ag-header-cell,.ag-header-group-cell{align-items:center;display:inline-flex;gap:var(--ag-cell-widget-spacing);height:100%;overflow:hidden;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:not(.ag-floating-filter),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:hover:before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&.ag-header-cell-moving:before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-filter-button,.ag-header-cell.ag-header-active .ag-header-cell-menu-button{opacity:1}.ag-header-cell-menu-button:not(.ag-header-menu-always-show){opacity:0;transition:opacity .2s}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;gap:var(--ag-spacing);padding:5px 0}.ag-header-cell-label{overflow:hidden;text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;position:sticky}.ag-ltr .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-group-cell .ag-header-cell-comp-wrapper{display:flex}.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-comp-wrapper{width:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-right-aligned-header .ag-header-cell-label{flex-direction:row-reverse}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-cell-sortable .ag-header-cell-label,.ag-header-expand-icon,.ag-panel-title-bar-button{cursor:pointer}.ag-advanced-filter-header-cell,.ag-header-cell,.ag-header-group-cell{&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}.ag-ltr :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-rtl :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}.ag-ltr :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}.ag-rtl :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}.ag-ltr .ag-header-cell:after,.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):after{border-right:var(--ag-header-column-border);right:0}.ag-rtl .ag-header-cell:after,.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}.ag-ltr .ag-header-highlight-before:after{left:0}.ag-ltr .ag-header-highlight-after:after,.ag-rtl .ag-header-highlight-before:after{right:0}.ag-rtl .ag-header-highlight-after:after{left:0}.ag-ltr .ag-pinned-left-header .ag-header-highlight-after:after{right:1px}.ag-rtl .ag-pinned-left-header .ag-header-highlight-after:after{left:1px}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}.ag-ltr .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}.ag-rtl .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}.ag-header-cell.ag-header-span-height .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize{display:none}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;min-width:180px;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-menu-list{cursor:default;display:table;padding:var(--ag-spacing) 0;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{display:flex;flex-wrap:nowrap;width:100%}.ag-compact-menu-option-text{flex:1 1 auto;white-space:nowrap}.ag-menu-separator{height:calc(var(--ag-spacing)*2 + 1px)}.ag-menu-separator-part:after{border-top:1px solid var(--ag-menu-separator-color);content:"";display:block}.ag-compact-menu-option-active,.ag-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-compact-menu-option-part,.ag-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-spacing) + 2px) 0}.ag-compact-menu-option-disabled,.ag-menu-option-disabled{cursor:not-allowed;opacity:.5}.ag-compact-menu-option-icon,.ag-menu-option-icon{width:var(--ag-icon-size)}.ag-ltr .ag-compact-menu-option-icon,.ag-ltr .ag-menu-option-icon{padding-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-compact-menu-option-icon,.ag-rtl .ag-menu-option-icon{padding-right:calc(var(--ag-spacing)*2)}.ag-compact-menu-option-text,.ag-menu-option-text{padding-left:calc(var(--ag-spacing)*2);padding-right:calc(var(--ag-spacing)*2)}.ag-ltr .ag-compact-menu-option-shortcut,.ag-ltr .ag-menu-option-shortcut{padding-right:var(--ag-spacing)}.ag-rtl .ag-compact-menu-option-shortcut,.ag-rtl .ag-menu-option-shortcut{padding-left:var(--ag-spacing)}.ag-ltr .ag-compact-menu-option-popup-pointer,.ag-ltr .ag-menu-option-popup-pointer{padding-right:var(--ag-spacing)}.ag-rtl .ag-compact-menu-option-popup-pointer,.ag-rtl .ag-menu-option-popup-pointer{padding-left:var(--ag-spacing)}.ag-menu-column-select-wrapper{height:265px;overflow:auto;.ag-column-select{height:100%}}.ag-menu.ag-tabs{min-width:290px}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}.ag-filter-select .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}.ag-ltr .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-ltr .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-rtl .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-ltr .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-menu .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}.ag-ltr .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}.ag-rtl .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-resizer-wrapper{margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-menu-option{cursor:pointer;font-weight:500}.ag-ltr .ag-menu-option-popup-pointer .ag-icon{text-align:right}.ag-rtl .ag-menu-option-popup-pointer .ag-icon{text-align:left}.ag-panel{background-color:var(--ag-panel-background-color);display:flex;flex-direction:column;overflow:hidden;position:relative}.ag-dialog{border:var(--ag-dialog-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dialog-shadow);position:absolute}.ag-panel-title-bar{align-items:center;background-color:var(--ag-panel-title-bar-background-color);border-bottom:var(--ag-panel-title-bar-border);color:var(--ag-header-text-color);cursor:default;display:flex;flex:none;height:var(--ag-header-height);padding:var(--ag-spacing) var(--ag-cell-horizontal-padding)}.ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-spacing)*2);margin-right:var(--ag-spacing)}.ag-rtl .ag-panel-title-bar-button{margin-left:var(--ag-spacing);margin-right:calc(var(--ag-spacing)*2)}.ag-panel-title-bar-title{color:var(--ag-header-text-color);flex:1 1 auto;font-weight:500}.ag-panel-title-bar-buttons{display:flex}.ag-panel-title-bar-button{cursor:pointer}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;overflow:hidden;position:relative}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1;&.ag-resizer-topLeft{height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-ltr .ag-resizer{&.ag-resizer-topLeft{cursor:nwse-resize}&.ag-resizer-topRight{cursor:nesw-resize}&.ag-resizer-bottomRight{cursor:nwse-resize}&.ag-resizer-bottomLeft{cursor:nesw-resize}}.ag-rtl .ag-resizer{&.ag-resizer-topLeft{cursor:nesw-resize}&.ag-resizer-topRight{cursor:nwse-resize}&.ag-resizer-bottomRight{cursor:nesw-resize}&.ag-resizer-bottomLeft{cursor:nwse-resize}}.ag-dragging-fill-handle .ag-dialog,.ag-dragging-range-handle .ag-dialog{opacity:.7;pointer-events:none}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}.ag-select{align-items:center;display:flex;flex-direction:row;.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}&.ag-disabled{opacity:.5}}.ag-ltr .ag-select{.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}.ag-rtl .ag-select{.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-rich-select{cursor:default;height:100%}.ag-rich-select-value{align-items:center;background-color:var(--ag-input-background-color);display:flex;height:100%;padding:var(--ag-spacing);.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;&.ag-display-as-placeholder{opacity:.5}}}.ag-rich-select-list{background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);box-shadow:var(--ag-dropdown-shadow);height:auto;position:relative;width:100%;.ag-loading-text{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}}.ag-rich-select-row{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;padding:0 var(--ag-spacing);white-space:nowrap}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-highlighted,.ag-rich-select-row:hover{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:700}.ag-rich-select-field-input{flex:1 1 auto;.ag-input-field-input{border:none!important;box-shadow:none!important;padding:0!important;text-overflow:ellipsis;&::-moz-placeholder{opacity:.8}&::placeholder{opacity:.8}}}.ag-ltr .ag-rich-select-field-input{left:var(--ag-spacing)}.ag-rtl .ag-rich-select-field-input{right:var(--ag-spacing)}.ag-popup-editor .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-pill-container{display:flex;flex-wrap:nowrap;gap:.25rem}.ag-pill{align-items:center;background:var(--ag-select-cell-background-color);border:var(--ag-select-cell-border);border-radius:var(--ag-border-radius);display:flex;padding:0 .25rem;white-space:nowrap;&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-pill .ag-pill-button{border:none;padding:0;&:hover{color:var(--ag-accent-color);cursor:pointer}}.ag-ltr .ag-pill .ag-pill-button{margin-left:var(--ag-spacing)}.ag-rtl .ag-pill .ag-pill-button{margin-right:var(--ag-spacing)}ag-grid,ag-grid-angular{display:block}.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-tool-panel-wrapper{cursor:default;display:flex;overflow-x:hidden;overflow-y:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-side-bar-panel-width)}.ag-select-agg-func-item{align-items:center;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;height:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;>*{flex:none}}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize{right:-3px}.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize,.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize{left:-3px}.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize{right:-3px}.ag-side-bar{background-color:var(--ag-side-bar-background-color);display:flex;flex-direction:row-reverse;position:relative}.ag-side-bar-left{flex-direction:row;order:-1}.ag-side-buttons{position:relative;width:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-side-button{&.ag-selected{background-color:var(--ag-background-color);border-bottom:1px solid var(--ag-border-color);&:not(:first-of-type){border-top:1px solid var(--ag-border-color)}}}.ag-side-button-button{align-items:center;cursor:pointer;display:flex;flex-direction:column;gap:var(--ag-spacing);padding:calc(var(--ag-spacing)*3) 0;position:relative;white-space:nowrap;width:100%;&:focus{box-shadow:none}}.ag-side-button-button:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-side-button-label{writing-mode:vertical-lr}@media (max-resolution:1.5x){.ag-side-button-label{font-family:"Segoe UI",var(--ag-font-family)}.ag-ltr .ag-side-button-label{transform:rotate(.05deg)}.ag-rtl .ag-side-button-label{transform:rotate(-.05deg)}}.ag-ltr .ag-side-bar-left,.ag-rtl .ag-side-bar-right{border-right:var(--ag-side-panel-border);.ag-tool-panel-wrapper{border-left:var(--ag-side-panel-border)}}.ag-ltr .ag-side-bar-right,.ag-rtl .ag-side-bar-left{border-left:var(--ag-side-panel-border);.ag-tool-panel-wrapper{border-right:var(--ag-side-panel-border)}}.ag-ltr .ag-chart-menu-panel{border-left:var(--ag-side-panel-border)}.ag-rtl .ag-chart-menu-panel{border-right:var(--ag-side-panel-border)}.ag-button{border-radius:0}.ag-standard-button{-moz-appearance:none;appearance:none;-webkit-appearance:none;background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);cursor:pointer;font-family:inherit;padding:var(--ag-spacing) calc(var(--ag-spacing)*2);&:hover{background-color:var(--ag-row-hover-color)}&:active{border-color:var(--ag-accent-color)}&:disabled{background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}}:where(input[class^=ag-][type=button],button[class^=ag-]):focus-visible{box-shadow:var(--ag-focus-shadow)}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow-x:hidden;overflow-y:auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;& span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.ag-ltr .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}.ag-rtl .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}.ag-range-field{align-items:center;display:flex;.ag-input-wrapper{height:100%}}& input[class^=ag-][type=range]{-webkit-appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&::-moz-ag-range-thumb{-webkit-appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus{&::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}&:active{&::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}&::-moz-ag-range-track{background-color:var(--ag-accent-color)}}&:disabled{opacity:.5}}.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border:solid var(--ag-toggle-button-border-width) var(--ag-toggle-button-off-border-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;& input{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;opacity:0;width:100%}&:before{background-color:var(--ag-toggle-button-switch-background-color);border:var(--ag-toggle-button-border-width) solid var(--ag-toggle-button-switch-border-color);border-radius:100%;content:"";display:block;height:var(--ag-toggle-button-height);pointer-events:none;position:absolute;top:calc(0px - var(--ag-toggle-button-border-width));width:var(--ag-toggle-button-height)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);border-color:var(--ag-toggle-button-on-border-color);&:before{border-color:var(--ag-toggle-button-on-border-color)}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}.ag-ltr .ag-toggle-button-input-wrapper{&:before{left:calc(0px - var(--ag-toggle-button-border-width));transition:left .1s}&.ag-checked{&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width))}}}.ag-rtl .ag-toggle-button-input-wrapper{&:before{right:calc(0px - var(--ag-toggle-button-border-width));transition:right .1s}&.ag-checked{&:before{right:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width))}}}.ag-autocomplete{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-autocomplete-list-popup{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-autocomplete-list{height:calc(var(--ag-row-height)*6.5);min-width:200px;position:relative;width:100%}.ag-autocomplete-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:focus-visible:after{content:none}&:hover{background-color:var(--ag-row-hover-color)}}.ag-autocomplete-row{align-items:center;display:flex;flex:1 1 auto;overflow:hidden}.ag-autocomplete-row-label{margin:0 var(--ag-widget-container-horizontal-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);white-space:normal}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:not(.ag-tooltip-interactive),.ag-tooltip:not(.ag-tooltip-interactive){pointer-events:none}.ag-tooltip-custom.ag-tooltip-animate,.ag-tooltip.ag-tooltip-animate{transition:opacity 1s;&.ag-tooltip-hiding{opacity:0}}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{display:block;position:relative}.ag-angle-select-child-circle{position:absolute}.ag-slider-wrapper{display:flex;.ag-input-field{flex:1 1 auto}}.ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-color-panel{display:flex;flex-direction:column;text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{cursor:pointer}.ag-spectrum-dragger{cursor:pointer;pointer-events:none;position:absolute}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{cursor:pointer;position:relative}.ag-spectrum-slider{pointer-events:none;position:absolute}.ag-spectrum-alpha .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-top:10px}.ag-recent-color{cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}.ag-ltr .ag-angle-select-field,.ag-ltr .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}.ag-rtl .ag-angle-select-field,.ag-rtl .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;height:24px;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;top:4px;width:6px}.ag-picker-field-wrapper{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{border:var(--ag-input-focus-border);box-shadow:var(--ag-focus-shadow)}}.ag-picker-field-button{background-color:var(--ag-background-color)}.ag-dialog.ag-color-dialog{border-radius:5px}.ag-color-picker{.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}.ag-ltr .ag-color-picker-color,.ag-ltr .ag-color-picker-value{margin-right:var(--ag-spacing)}.ag-rtl .ag-color-picker-color,.ag-rtl .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-color-panel{padding:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-tool{height:12px}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:12px}.ag-spectrum-slider{border:3px solid #f8f8f8;border-radius:18px;height:18px;margin-top:-15px;width:18px}.ag-recent-colors{margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-recent-color{border:1px solid var(--ag-border-color)}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0))}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);height:18px;width:18px}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-spectrum-tool{border-radius:2px;height:11px;margin-bottom:10px}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;width:13px}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:focus-visible:not(:disabled):not([readonly]){box-shadow:var(--ag-focus-shadow)}}.ag-color-input{.ag-color-input-color{position:absolute}}.ag-ltr .ag-color-input{& input[class^=ag-][type=text].ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}.ag-rtl .ag-color-input{& input[class^=ag-][type=text].ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-pill-select{.ag-picker-field-display{font-weight:500}.ag-picker-field-display,.ag-picker-field-icon .ag-icon{color:var(--ag-chart-menu-label-color)}}.ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header{position:relative}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{align-items:center;display:flex;>*{align-items:center;display:flex}}.ag-filter-toolpanel-header{height:calc(var(--ag-spacing)*6);&:focus-visible{border-radius:var(--ag-border-radius);box-shadow:inset var(--ag-focus-shadow)}}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{padding:0 var(--ag-spacing)}.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-group-level-0-header{height:calc(var(--ag-spacing)*8)}.ag-filter-toolpanel-group-item{margin-bottom:calc(var(--ag-spacing)*.5);margin-top:calc(var(--ag-spacing)*.5)}.ag-filter-toolpanel-search{margin-bottom:var(--ag-spacing);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-spacing)*4)}.ag-ltr .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-spacing)}.ag-rtl .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-filter-toolpanel-expand{cursor:pointer}.ag-ltr .ag-filter-toolpanel-expand{margin-right:var(--ag-spacing)}.ag-rtl .ag-filter-toolpanel-expand{margin-left:var(--ag-spacing)}.ag-ltr .ag-filter-toolpanel-group-title-bar,.ag-ltr .ag-filter-toolpanel-instance-header{padding-left:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}.ag-rtl .ag-filter-toolpanel-group-title-bar,.ag-rtl .ag-filter-toolpanel-instance-header{padding-right:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}.ag-ltr .ag-filter-toolpanel-instance-body{margin-left:var(--ag-filter-tool-panel-group-indent)}.ag-rtl .ag-filter-toolpanel-instance-body{margin-right:var(--ag-filter-tool-panel-group-indent)}.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,.ag-ltr .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-spacing)}.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,.ag-rtl .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-spacing)}.ag-filter-toolpanel-instance-filter{background-color:var(--ag-chrome-background-color)}.ag-filter-toolpanel-group-level-0{border-top:none}.ag-filter-toolpanel-header{height:auto;padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-filter-toolpanel-group-item{margin:0}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{color:var(--ag-header-text-color);font-weight:500}.ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}.ag-paging-page-size .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&:focus-visible{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}.ag-status-bar{border-top:var(--ag-footer-row-border);display:flex;justify-content:space-between;line-height:1.5;overflow:hidden;padding-left:calc(var(--ag-spacing)*4);padding-right:calc(var(--ag-spacing)*4)}.ag-status-panel{display:inline-flex}.ag-status-name-value{white-space:nowrap}.ag-status-bar-center,.ag-status-bar-left,.ag-status-bar-right{display:inline-flex}.ag-status-bar-center{text-align:center}.ag-status-name-value{margin-left:var(--ag-spacing);margin-right:var(--ag-spacing);padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-status-name-value-value{font-weight:500}.ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}.ag-icon{display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-column-select-column-group-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}}.ag-column-select-column-readonly .ag-icon-grip,.ag-column-select-column-readonly.ag-icon-grip{opacity:.35}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-contracted .ag-icon,.ag-group-expanded .ag-icon,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons{&:hover{background-color:var(--ag-icon-button-hover-color);border-radius:1px;box-shadow:0 0 0 4px var(--ag-icon-button-hover-color)}}.ag-filter-active{--ag-icon-button-hover-color:color-mix(in srgb,transparent,var(--ag-accent-color) 28%);background-color:color-mix(in srgb,transparent,var(--ag-accent-color) 14%);border-radius:1px;box-shadow:0 0 0 4px color-mix(in srgb,transparent,var(--ag-accent-color) 14%);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}.ag-icon-filter{clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z")}}.ag-ltr .ag-filter-active{&:after{right:-1px}}.ag-rtl .ag-filter-active{&:after{left:-1px}}.ag-label-align-right{.ag-label{order:1}>*{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-label{white-space:nowrap}.ag-ltr .ag-label{margin-right:var(--ag-spacing)}.ag-rtl .ag-label{margin-left:var(--ag-spacing)}.ag-label-align-top .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}.ag-ltr .ag-label-align-right .ag-label{margin-left:var(--ag-spacing)}.ag-rtl .ag-label-align-right .ag-label{margin-right:var(--ag-spacing)}`,eu={backgroundColor:"#FFF",foregroundColor:"#181d1f",textColor:{ref:"foregroundColor"},accentColor:"#2196f3",invalidColor:"#e02525",borderColor:{ref:"foregroundColor",mix:.15},wrapperBorder:!0,rowBorder:!0,browserColorScheme:"light",headerRowBorder:{ref:"rowBorder"},footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],chromeBackgroundColor:{ref:"foregroundColor",mix:.02,onto:"backgroundColor"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"backgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:{ref:"accentColor"},rangeSelectionBackgroundColor:{ref:"accentColor",mix:.2},rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:{ref:"accentColor",mix:.5},rowHoverColor:{ref:"accentColor",mix:.08},columnHoverColor:{ref:"accentColor",mix:.05},selectedRowBackgroundColor:{ref:"accentColor",mix:.12},modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:{ref:"backgroundColor"},borderRadius:4,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",spacing:8,fontSize:14,rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,popupShadow:{radius:16,color:"#00000026"},dropdownShadow:{radius:4,spread:1,offsetY:1,color:"#babfc766"},dragAndDropImageBackgroundColor:{ref:"backgroundColor"},dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:{ref:"foregroundColor",mix:.7},focusShadow:{spread:3,color:{ref:"accentColor",mix:.5}},sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},listItemHeight:{calc:"iconSize + widgetVerticalSpacing"},iconSize:16,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonBorderWidth:2,toggleButtonOnBorderColor:{ref:"accentColor"},toggleButtonOnBackgroundColor:{ref:"accentColor"},toggleButtonOffBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},toggleButtonOffBackgroundColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},toggleButtonSwitchBorderColor:{ref:"toggleButtonOffBorderColor"},toggleButtonSwitchBackgroundColor:{ref:"backgroundColor"},menuBorder:{color:{ref:"foregroundColor",mix:.2}},menuBackgroundColor:{ref:"foregroundColor",mix:.03,onto:"backgroundColor"},menuTextColor:{ref:"foregroundColor",mix:.95,onto:"backgroundColor"},menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:{ref:"foregroundColor",mix:.8},iconButtonHoverColor:{ref:"foregroundColor",mix:.1},dialogShadow:{ref:"popupShadow"},dialogBorder:{color:{ref:"foregroundColor",mix:.2}},panelBackgroundColor:{ref:"backgroundColor"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:{ref:"foregroundColor",mix:.07},columnDropCellBorder:{color:{ref:"foregroundColor",mix:.13}},selectCellBackgroundColor:{ref:"foregroundColor",mix:.07},selectCellBorder:{color:{ref:"foregroundColor",mix:.13}},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterToolPanelGroupIndent:{ref:"spacing"},iconButtonHoverBackgroundColor:{ref:"foregroundColor",mix:.1},rowLoadingSkeletonEffectColor:"rgba(66, 66, 66, 0.2)"},Cy=t=>t.replace(/[A-Z]/g,e=>`-${e}`).toLowerCase(),tu=t=>`--ag-${Cy(t)}`,tn=t=>`var(${tu(t)})`,_y=(t,e,r)=>Math.max(e,Math.min(r,t)),ky=t=>{const e=new Map;return r=>{const o=r;return e.has(o)||e.set(o,t(r)),e.get(o)}},Sy=ky(t=>{if(/Color$/.test(t))return"color";if(/Scale?$/.test(t))return"scale";if(t==="spacing"||/(Padding|Spacing|Size|Width|Height|Radius|Indent|Start|End|Top|Bottom|Horizontal|Vertical)$/.test(t))return"length";if(/Border$/.test(t))return"border";if(/BorderStyle$/.test(t))return"borderStyle";if(/Shadow$/.test(t))return"shadow";if(/Image$/.test(t))return"image";if(/Family$/.test(t))return"fontFamily";if(/Weight$/.test(t))return"fontWeight";if(/Duration$/.test(t))return"duration";if(/ColorScheme$/.test(t))return"colorScheme";throw new Error(`"${t}" is not a valid theme parameter.`)}),ci=t=>typeof t=="string"?t:typeof t=="number"?String(t):!1,Kl=t=>{if(typeof t=="string")return t;if("ref"in t){const e=tn(t.ref);return t.mix==null?e:`color-mix(in srgb, ${t.onto?"var(--ag-background-color)":"transparent"}, ${e} ${_y(t.mix*100,0,100)}%)`}return!1},Ty=ci,ro=t=>typeof t=="string"?t:typeof t=="number"?`${t}px`:"calc"in t?`calc(${t.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi,r=>r[0]==="-"?r:` ${tn(r)} `)})`:"ref"in t?tn(t.ref):!1,Ey=ci,Ny=(t,e)=>typeof t=="string"?t:t===!0?"solid 1px var(--ag-border-color)":t===!1?e==="columnBorder"?"solid 1px transparent":"none":"ref"in t?tn(t.ref):ru(t.style??"solid")+" "+ro(t.width??1)+" "+Kl(t.color??{ref:"borderColor"}),Ay=t=>typeof t=="string"?t:t===!1?"none":"ref"in t?tn(t.ref):[ro(t.offsetX??0),ro(t.offsetY??0),ro(t.radius??0),ro(t.spread??0),Kl(t.color??{ref:"foregroundColor"})].join(" "),ru=ci,nu=t=>typeof t=="string"?t:"googleFont"in t?nu(t.googleFont):"ref"in t?tn(t.ref):Array.isArray(t)?t.map(e=>(typeof e=="object"&&"googleFont"in e&&(e=e.googleFont),/^[\w-]+$/.test(e)?e:JSON.stringify(e))).join(", "):!1,My=ci,ou=t=>typeof t=="string"?t:"url"in t?`url(${JSON.stringify(t.url)})`:"svg"in t?ou({url:`data:image/svg+xml,${encodeURIComponent(t.svg)}`}):"ref"in t?tn(t.ref):!1,By=(t,e)=>typeof t=="string"?t:typeof t=="number"?(t>50&&C._errorOnce(`Numeric value ${t} passed to ${e} param will be interpreted as ${t} seconds. If this is intentional use "${t}s" to silence this warning.`),`${t}s`):"ref"in t?tn(t.ref):!1,Py={color:Kl,colorScheme:Ty,length:ro,scale:Ey,border:Ny,borderStyle:ru,shadow:Ay,image:ou,fontFamily:nu,fontWeight:My,duration:By},Dy=(t,e)=>{const r=Sy(t);return Py[r](e,t)},Vy=0,Ly=(t=`customTheme${++Vy}`)=>new Ry(t,[],{}),Iy=typeof window!="object"||!window||typeof document!="object"||window.document!==document,Fy=0,au=!1,Ry=class od{constructor(e,r=[],o={}){this.id=e,this.dependencies=r,this.defaults=o,this.useCount=0}withPart(e){return typeof e=="function"&&(e=e()),new od(this.id,this.dependencies.concat(e),this.defaults)}withParams(e){const r={...this.defaults};for(const[o,i]of Object.entries(e))i!=null&&(r[o]=i);return new od(this.id,this.dependencies,r)}getCSS(){return[Xd,...this._getCSSChunks().map(e=>e.css)].join(`
|
|
4
44
|
|
|
5
|
-
`)}startUse(e){++this.useCount,this.useCount===1&&this._install(e)}stopUse(){--this.useCount,this.useCount===0&&setTimeout(()=>{this.useCount===0&&
|
|
45
|
+
`)}startUse(e){++this.useCount,this.useCount===1&&this._install(e)}stopUse(){--this.useCount,this.useCount===0&&setTimeout(()=>{this.useCount===0&&iu(this.getCssClass(),this._installRoot)},1e3)}getCssClass(){return this._cssClass==null&&(this._cssClass=`ag-theme-${++Fy}`),this._cssClass}getParams(){if(this._getParamsCache)return this._getParamsCache;const e={...eu};for(const r of this._getFlatUnits())for(const[o,i]of Object.entries(r.defaults)){const s=i??eu[o];s!=null&&(e[o]=s)}return this._getParamsCache=e}async _install({container:e,loadThemeGoogleFonts:r}){if(Iy)return;au||(au=!0,iu("legacy",document.head),getComputedStyle(document.body).getPropertyValue("--ag-legacy-styles-loaded")&&C._errorOnce("both Theming API and the ag-grid.css are used on the same page, styling will be incorrect"));let o=e.getRootNode();o instanceof ShadowRoot||(o=document.head),this._installRoot=o;const i=[];i.push(Yl({css:Xd,part:"core",root:o}));for(const s of zy(this))r?Gy(s):r==null&&C._warnOnce(`theme uses google font ${s} but no value for loadThemeGoogleFonts was provided. Pass true to load fonts from ${su} or false to silence this warning.`);for(const s of this._getCSSChunks())Yl({css:s.css,part:s.id,scope:this.getCssClass(),root:o});return Promise.all(i)}_getFlatUnits(){if(this._getFlatUnitsCache)return this._getFlatUnitsCache;const e={};for(const o of this.dependencies)delete e[o.feature],e[o.feature]=o;const r=[...Object.values(e),this];return this._getFlatUnitsCache=r}_getCSSChunks(){if(this._getCssChunksCache)return this._getCssChunksCache;const e=[];e.push(Oy(this));for(const r of this._getFlatUnits())if(r.css&&r.css.length>0){let o=`/* Part ${r.id} */`;o+=r.css.map(i=>typeof i=="function"?i():i).join(`
|
|
6
46
|
`)+`
|
|
7
|
-
`,
|
|
8
|
-
${
|
|
9
|
-
}`,e.push({css:
|
|
10
|
-
`,r+=` ${
|
|
11
|
-
`}}const
|
|
47
|
+
`,o=`.${this.getCssClass()} {
|
|
48
|
+
${o}
|
|
49
|
+
}`,e.push({css:o,id:r.id})}return this._getCssChunksCache=e}},Oy=t=>{let e="",r="";for(const[s,d]of Object.entries(t.getParams())){const u=Dy(s,d);if(u===!1)C._errorOnce(`Invalid value for param ${s} - ${Uy(d)}`);else{const p=tu(s),h=p.replace("--ag-","--ag-inherited-");e+=` ${p}: var(${h}, ${u});
|
|
50
|
+
`,r+=` ${h}: var(${p});
|
|
51
|
+
`}}const o=`:where(.${t.getCssClass()})`;let i=`${o} {
|
|
12
52
|
${e}}
|
|
13
|
-
`;return
|
|
53
|
+
`;return i+=`:has(> ${o}):not(${o}) {
|
|
14
54
|
${r}}
|
|
15
|
-
`,{css:
|
|
16
|
-
`;return
|
|
17
|
-
`}return e},_m=(a,e)=>{const r=Sd[a];if(!r)throw new Error(`Missing icon data for ${a}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon ag-icon-${a}" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${e}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+r+"</svg>"},km=(a={})=>Ha("iconSet","quartz").withCSS(()=>xm(a)),Cm=":where(input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)){-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}:where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color)}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}&.ag-ltr :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-left:var(--ag-input-padding-start)}&.ag-rtl :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-right:var(--ag-input-padding-start)}",Sm=Ha("inputStyle","base").withAdditionalParams({inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"}}).withCSS(Cm),Tm=pd(Sm,"bordered").withParams({inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:{ref:"accentColor"}},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:{ref:"foregroundColor",mix:.06,onto:"backgroundColor"},inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),Em='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex;.ag-tabs-header{flex:1}}.ag-tabs-close-button-wrapper{border:0;padding:var(--ag-spacing)}&.ag-ltr .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}&.ag-rtl .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}&.ag-ltr .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-left-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-right-color:var(--ag-tab-selected-border-color)}}}&.ag-rtl .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-right-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-left-color:var(--ag-tab-selected-border-color)}}}',Nm=Ha("tabStyle","base").withAdditionalParams({tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:"0",tabSelectedUnderlineTransitionDuration:"0",tabBarBorder:!1}).withCSS(Em),Bm=pd(Nm,"quartz").withParams({tabBarBorder:!0,tabBarBackgroundColor:{ref:"foregroundColor",mix:.05},tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),Vm=a=>sm(a).withPart(bm),Mm=Vm("quartz").withPart(vm).withPart(km).withPart(Bm).withPart(()=>Tm).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function Td(){er.ModuleRegistry.registerModules([Ho.ClientSideRowModelModule,Cf.InfiniteRowModelModule,qc.ServerSideRowModelModule,Sf.CsvExportModule,Yc.ClipboardModule,Gc.RangeSelectionModule,Tf.RichSelectModule,Ef.MenuModule,Nf.ExcelExportModule]);const a=qh("AGGRID_LICENSE");a?(Qe.LicenseManager.setLicenseKey(a),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const Ed=Mm.withParams({headerColumnResizeHandleColor:"transparent",accentColor:"#110529",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}),Nd=Symbol("sdk-vue");function Ll(){return t.inject(Nd)}function zm(a,e){let r;Td();const i=()=>{a.loadBlockState().then(s=>{l.loaded=!0;const d=jf(s,a),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([f,m])=>{const _=typeof m=="function"?m():m;return[f,t.markRaw(_)]}));r=Object.assign(d,{...u,getRoute(f){return p[f]}})}).catch(s=>{console.error("load initial state error",s),l.error=s})},l=t.reactive({loaded:!1,error:void 0,useApp(){return Vf(r,"App is not loaded")},install(s){s.provide(Nd,this),i()}});return l}var Am=Object.defineProperty,Om=(a,e,r)=>e in a?Am(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,Lm=(a,e,r)=>Om(a,e+"",r);function Bd(a,e){if(a==null)throw Error("Empty (null | undefined) value");return a}function Im(a,e,r){const i=Math.min(e,r),l=Math.max(e,r);return a>=i&&a<=l}function Dm(a){return new Promise(e=>setTimeout(e,a))}function Rm(a){return a()}function ni(a,e,r){return e>a?e:a>r?r:a}function Vd(a,e){return e(a)}function En(a,e){if(a!=null)return e(a)}function Pm(a){if(a&&a.ok)return a.value}async function jm(a){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([e,r])=>[e,await r])))}const Md=a=>a;function Fm(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function $m(a){let e="";for(let r=0;r<a;r++)e+=String.fromCharCode(Fm(65,91));return e}function Zm(){return $m(42)}function Wa(a){return a!==null&&typeof a=="object"}function Um(a,e){return Object.keys(a).map(r=>e(a[r],r))}function Il(a,e){return Wa(a)&&Wa(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(r=>Il(a[r],e[r])):a===e}function qa(a){if(Array.isArray(a)){const e=[];for(let r=0;r<a.length;r++)e[r]=qa(a[r]);return e}else if(Wa(a)){const e={};return Object.keys(a).forEach(r=>{e[r]=qa(a[r])}),e}else return a}function Hm(a){return Array.isArray(a)?Object.assign([],a):Wa(a)?Object.assign({},a):a}function Wm(a,e){const r={};for(const i in e)e[i]!==a[i]&&(r[i]=a[i]);return r}function qm(a,e,r){return Object.assign({},a,{[e]:r})}function Ym(a){return Object.entries(a).forEach(([e,r])=>{r instanceof Function&&(a[e]=r.bind(a))}),a}function Gm(a,e,r){return a[e]=r,a}function Km(a,e){return a[e]}function Jm(a,e){a={...a};const r=a[e];return delete a[e],[r,a]}function Qm(a,...e){return Object.assign({},...e.map(r=>({[r]:a[r]})))}function Xm(a,...e){return e.map(r=>a[r])}function ey(a,...e){const r=Object.assign({},a);return e.forEach(i=>delete r[i]),r}const Dl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Ym,deepClone:qa,deepEqual:Il,getProp:Km,iSet:qm,isObject:Wa,map:Um,omit:ey,pick:Qm,pickValues:Xm,setProp:Gm,shallowClone:Hm,shallowDiff:Wm,shiftProp:Jm},Symbol.toStringTag,{value:"Module"}));function ty(a,e){const r=a.findIndex(e);if(r<0)return[];const i=(()=>{for(let l=r;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(r,i)}function zd(a,e,r){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,a.apply(this,l)},e)}}const ry=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ny=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ay=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],oy=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Ad=(a,e)=>{let r=String(a);return typeof e=="string"||Array.isArray(e)?r=a.toLocaleString(e):e===!0&&(r=a.toLocaleString(void 0)),r};function Rl(a,e){if(a=typeof a=="bigint"?Number(a):a,!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);Object.assign(e,{bits:!1,binary:!1});const r=e.bits?e.binary?oy:ay:e.binary?ny:ry;if(e.signed&&a===0)return` 0 ${r[0]}`;const i=a<0,l=i?"-":e.signed?"+":"";if(i&&(a=-a),a<1){const p=Ad(a,e.locale);return l+p+" "+r[0]}const s=Math.min(Math.floor(e.binary?Math.log(a)/Math.log(1024):Math.log10(a)/3),r.length-1);a/=(e.binary?1024:1e3)**s,a=Number(a.toPrecision(3));const d=Ad(Number(a),e.locale),u=r[s];return l+d+" "+u}const iy={class:"context-menu"},ly=["onClick"],sy=t.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(a,{emit:e}){const r=e,i=l=>{l.cb(),r("close")};return(l,s)=>(t.openBlock(),t.createElementBlock("div",iy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.options,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,onClick:t.withModifiers(p=>i(d),["stop"])},[t.createElementVNode("span",null,t.toDisplayString(d.text),1)],8,ly))),128))]))}}),Xr=(a,e)=>{const r=a.__vccOpts||a;for(const[i,l]of e)r[i]=l;return r},cy=Xr(sy,[["__scopeId","data-v-12530966"]]);function Pl(a,e){a.preventDefault();const r=()=>{t.render(null,document.body)},i=t.h(cy,{options:e,onClose:()=>{r()}});t.render(i,document.body);const l=i.el;return l.style.top=a.clientY+"px",l.style.left=a.clientX+"px",document.addEventListener("click",s=>{l.contains(s.target)||r()}),r}const Od=Symbol(),ai=()=>t.inject(Od),dy=["value"],uy={key:1},gy=t.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const r=e,i=a,l=t.reactive({edit:!1}),s=t.computed(()=>i.valueType),d=f=>{var m;let _=(m=f.target)==null?void 0:m.value;const C=t.unref(s),T=Rm(()=>C==="integer"?parseInt(_,10):C==="float"?Number(_):_);r("update:modelValue",T),l.edit=!1},u=t.ref(),p=f=>{!f.metaKey&&i.editable&&(l.edit=!0,requestAnimationFrame(()=>{var m,_;(_=(m=u.value)==null?void 0:m.querySelector("input"))==null||_.focus()}))};return(f,m)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"baseRef",ref:u,class:t.normalizeClass(["base-cell",{"base-cell__edit":l.edit}]),onClick:p},[l.edit?(t.openBlock(),t.createElementBlock("input",{key:0,value:f.modelValue,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:d},null,40,dy)):(t.openBlock(),t.createElementBlock("div",uy,t.toDisplayString(f.modelValue),1))],2))}}),py=["^data-row-index"],fy={key:0,class:"control-cell"},hy=t.defineComponent({__name:"TdCell",props:{cell:{}},setup(a){const e=a,r=ai(),i=t.computed(()=>e.cell.column.valueType),l=f=>{En(r.settings.value.onUpdatedRow,m=>{const _=e.cell.row,C={..._.dataRow,[e.cell.id]:f};m({..._,dataRow:C})})},s=f=>{f.metaKey&&r.selectRow(e.cell.row.primaryKey)},d=(f,m)=>{if(f.type==="contextmenu")f.preventDefault();else return;const _=r.settings??{},C=[],{onSelectedRows:T,onSelectedColumns:O}=_.value,S=r.data.selectedRows.has(m.primaryKey);T&&T.length&&(S?C.push({text:"Deselect row",cb(){r.data.selectedRows.delete(e.cell.row.primaryKey)}}):C.push({text:"Select row",cb(){r.selectRow(e.cell.row.primaryKey)}})),O&&O.length&&(C.push({text:"Select column",cb(){r.selectColumn(e.cell.column.id)}}),C.push({text:"Unselect column",cb(){r.unselectColumn(e.cell.column.id)}})),C.length&&Pl(f,C)},u=t.ref(),p=t.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(f,m)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cellRef",ref:u,class:t.normalizeClass(["td-cell",{[f.cell.class]:!0}]),"^data-row-index":f.cell.row.index,onClick:s,onContextmenu:m[0]||(m[0]=_=>d(_,f.cell.row))},[f.cell.control?(t.openBlock(),t.createElementBlock("div",fy,t.toDisplayString(f.cell.row.index),1)):p.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p.value),{key:1,"model-value":f.cell.value,"onUpdate:modelValue":l},null,8,["model-value"])):(t.openBlock(),t.createBlock(gy,{key:2,"model-value":f.cell.value,"value-type":i.value,editable:f.cell.column.editable,"onUpdate:modelValue":l},null,8,["model-value","value-type","editable"]))],42,py))}}),my={},yy={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function by(a,e){return t.openBlock(),t.createElementBlock("svg",yy,e[0]||(e[0]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),t.createTextVNode(),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const vy=Xr(my,[["render",by]]),wy={class:"tr-head"},xy=t.defineComponent({__name:"TrHead",setup(a){return(e,r)=>(t.openBlock(),t.createElementBlock("div",wy,[t.renderSlot(e.$slots,"default")]))}});function _y(a,e){const r=e.indexOf(a)+1;return e[r>=e.length?0:r]}function ky(a,e){const r=a.findIndex(e);if(r<0)return[];const i=(()=>{for(let l=r;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(r,i)}const Cy=["^data-col-id"],Sy=t.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(a,{emit:e}){const r=e;function i(s){s.preventDefault();const d=[];d.length&&Pl(s,d)}function l(s){var d;const u=((d=s.sort)==null?void 0:d.direction)??"DESC";r("change:sort",{colId:s.id,direction:_y(u,["DESC","ASC"])})}return(s,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cell th-cell",{"justify-center":s.col.justify,frozen:s.col.frozen}]),"^data-col-id":s.col.id,onContextmenu:i},[s.col.valueType?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.col.valueType)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.col.label)+" ",1),s.col.sort?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["sort",s.col.sort.direction]),onClick:d[0]||(d[0]=t.withModifiers(()=>l(s.col),["stop"]))},null,2)):t.createCommentVNode("",!0)],42,Cy))}}),Ty=t.defineComponent({__name:"TrBody",props:{row:{}},setup(a){const e=t.ref(),r=()=>{t.nextTick().then(()=>{En(e.value,i=>i.scrollLeft=0)})};return(i,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trRef",ref:e,class:t.normalizeClass(["tr-body",{selected:i.row.selected}]),scroll:"no",style:t.normalizeStyle(i.row.style),onScroll:r},[t.renderSlot(i.$slots,"default")],38))}}),Ey=t.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(a){const e=ai(),r=a,i=t.computed(()=>e.data.selectedColumns.has(r.column.id));return(l,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column-caret",{selected:i.value,frozen:l.column.frozen}])},null,2))}});function Xe(a,e,r,i){t.onMounted(()=>{var l;return(l=t.unref(a))==null?void 0:l.addEventListener(e,r,i)}),t.onUnmounted(()=>{var l;return(l=t.unref(a))==null?void 0:l.removeEventListener(e,r,i)})}function Ny(a){t.onMounted(()=>window.addEventListener("mouseup",a)),t.onUnmounted(()=>window.removeEventListener("mouseup",a))}function By(a){let e=!1;return function(...r){e?console.log("handle pressure"):(requestAnimationFrame(()=>{a(...r),e=!1}),e=!0)}}function Vy(a,e){let r;function i(s){r={...s}}Ny(()=>{r=void 0,e()});const l=By(a);return Xe(window,"mousemove",s=>{r&&l({x:r.x,width:r.width,diff:s.x-r.x})}),{start:i}}const Xn=1,My=10,zy=30,Ld=60;function Id(){const a=t.reactive({x:0,y:0});function e(r){a.x=r.pageX,a.y=r.pageY}return t.onMounted(()=>window.addEventListener("mousemove",e)),t.onUnmounted(()=>window.removeEventListener("mousemove",e)),a}function Dd(a,e={}){const{delayEnter:r=0,delayLeave:i=0}=e,l=t.ref(!1);let s;const d=u=>{const p=u?r:i;s&&(clearTimeout(s),s=void 0),p?s=setTimeout(()=>l.value=u,p):l.value=u};return window&&(Xe(a,"mouseenter",()=>d(!0)),Xe(a,"mouseleave",()=>d(!1))),l}function Ay(a){var e;const r=En((e=t.unref(a))==null?void 0:e.querySelectorAll(".th-cell"),i=>[...i])??[];return r.map(i=>{const{width:l,x:s}=i.getBoundingClientRect(),d=i.getAttribute("data-col-id");return Md({colId:d,width:l,x:s,right:s+l})}).slice(0,r.length-1)}function Oy(a,e){const r=Id(),i=Dd(e,{}),{data:l}=a,s=Vy(u=>{En(l.resizeTh,p=>{const f=l.columns.find(m=>m.id===p.colId);f&&(f.width=ni(u.width+u.diff,zy,1e4),a.adjustWidth())})},()=>{l.resize=!1,l.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{l.resizeTh&&(l.resize=!0,s.start({x:u.x,width:l.resizeTh.width}))};return t.watchEffect(()=>{if(!i.value){document.body.style.cursor="";return}if(l.resize)return;const u=Ay(e).find(p=>Math.abs(r.x-p.right)<My);u?(document.body.style.cursor="col-resize",l.resizeTh=u):(l.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const Ly={key:0,class:"command-menu"},Iy={key:0},Dy=["onClick"],Ry=t.defineComponent({__name:"RowsCommandMenu",setup(a){const e=ai(),r=t.computed(()=>e.getSelectedRows()),i=t.computed(()=>r.value.length>0),l=t.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),s=t.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(r.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>i.value?(t.openBlock(),t.createElementBlock("div",Ly,[r.value.length?(t.openBlock(),t.createElementBlock("span",Iy,t.toDisplayString(r.value.length)+" rows selected",1)):t.createCommentVNode("",!0),u[0]||(u[0]=t.createTextVNode()),u[1]||(u[1]=t.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=t.createTextVNode()),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(p,f)=>(t.openBlock(),t.createElementBlock("span",{key:f,class:"command",onClick:t.withModifiers(p.cb,["stop"])},t.toDisplayString(p.label),9,Dy))),128))])):t.createCommentVNode("",!0)}}),Py={key:0,class:"command-menu"},jy={key:0},Fy=["onClick"],$y=t.defineComponent({__name:"ColumnsCommandMenu",setup(a){const e=ai(),r=t.computed(()=>e.getSelectedColumns()),i=t.computed(()=>r.value.length>0),l=t.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),s=t.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(r.value),e.data.selectedColumns.clear()}})));return(d,u)=>i.value?(t.openBlock(),t.createElementBlock("div",Py,[r.value.length?(t.openBlock(),t.createElementBlock("span",jy,"selected columns "+t.toDisplayString(r.value.length),1)):t.createCommentVNode("",!0),u[0]||(u[0]=t.createTextVNode()),u[1]||(u[1]=t.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=t.createTextVNode()),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(p,f)=>(t.openBlock(),t.createElementBlock("span",{key:f,class:"command",onClick:t.withModifiers(p.cb,["stop"])},t.toDisplayString(p.label),9,Fy))),128))])):t.createCommentVNode("",!0)}});function en(a,e){const r={el:void 0,x:0,y:0},i=l=>({x:l.x,y:l.y,dx:l.x-r.x,dy:l.y-r.y});Xe(document,"mousedown",l=>{l.target===t.unref(a)&&(l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),r.el=t.unref(a),r.x=l.x,r.y=l.y)}),Xe(document,"mouseup",l=>{r.el&&(r.el=void 0,e({...i(l),stop:!0},r))}),Xe(document,"mousemove",l=>{r.el&&e(i(l),r)})}const Zy=t.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(a,{emit:e}){const r=e,i=a,l=t.ref(),s=t.computed(()=>i.windowSize-12),d=t.computed(()=>i.windowSize<i.dataSize),u=t.computed(()=>Math.ceil(i.offset*(s.value/i.dataSize))),p=t.computed(()=>Math.ceil(s.value*s.value/i.dataSize)),f=t.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return en(l,(m,_)=>{const C=(u.value+m.dy)*i.dataSize/s.value;r("change:offset",C),_.x=m.x,_.y=m.y}),(m,_)=>(t.openBlock(),t.createElementBlock("div",{class:"t-scroll",style:t.normalizeStyle({height:`${m.windowSize}px`})},[t.createElementVNode("div",null,[d.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"handleRef",ref:l,class:"t-scroll__handle",style:t.normalizeStyle(f.value)},null,4)):t.createCommentVNode("",!0)])],4))}});function Uy(a){return t.computed(()=>{const{data:e,settings:r}=a,{bodyWidth:i,scrollLeft:l}=e,s=[...e.columns],d=Zm();r.value.controlColumn&&s.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=s.map(m=>{const _={...m,offset:u};return u+=m.width+Xn,_}),f=p.filter(m=>m.frozen);return ty(p,m=>m.frozen?!1:l<m.offset+m.width&&m.offset<i+l).concat(f).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function Hy(a,e){const r=t.computed(()=>e.value.reduce((i,l)=>(i[l.id]=l.justify?"justify-"+l.justify:"",i),{}));return t.computed(()=>a.rows.map(i=>{const l=r.value,{primaryKey:s,offset:d,dataRow:u,height:p}=i,f=e.value.map(m=>({id:m.id,column:m,row:i,value:u[m.id],class:l[m.id],editable:m.editable,width:m.width,style:m.style,control:m.control}));return Md({style:{top:`${d-a.scrollTop}px`,height:`${i.height}px`},primaryKey:s,offset:d,height:p,cells:f,selected:a.selectedRows.has(s)})}))}const Wy=async(a,e)=>{const{scrollTop:r,bodyHeight:i}=a;return await Dm(0),jm({rows:e.getRows(r,i),dataWindow:a})};function qy(a){const e=t.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:a.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});t.watch(()=>a.settings,m=>{e.columns=qa(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(_=>{e.dataHeight=_,f.updateBodyHeight()}).catch(_=>e.error=_)},{immediate:!0});const r=t.computed(()=>a.settings),i=t.computed(()=>e.columns.reduce((m,_)=>m+_.width+Xn,0)),l=t.computed(()=>Vd(f.data.dataHeight-f.data.bodyHeight,m=>m>0?m:0)),s=t.computed(()=>Vd(i.value-f.data.bodyWidth,m=>m>0?m:0)),d=t.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=Uy({data:e,settings:r}),p=Hy(e,u),f={data:e,settings:r,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((C,T)=>C+T.width+Xn,0),_=e.bodyWidth+e.scrollLeft;if(m<_){const C=e.columns[e.columns.length-1];C.width=C.width+(_-m)}},updateOffsets(m){this.updateScrollTop(e.scrollTop+m.deltaY),this.updateScrollLeft(e.scrollLeft+m.deltaX)},getSelectedRows(){return e.rows.filter(m=>e.selectedRows.has(m.primaryKey))},getSelectedColumns(){return e.columns.filter(m=>e.selectedColumns.has(m.id))},selectRow(m){e.selectedRows.add(m)},unselectRow(m){e.selectedRows.delete(m)},selectColumn(m){e.selectedColumns.add(m)},unselectColumn(m){e.selectedColumns.delete(m)},updateScrollTop(m){e.scrollTop=ni(m,0,l.value)},updateScrollLeft(m){e.scrollLeft=ni(m,0,s.value)},updateBodyHeight(){const{height:m}=a.settings,{dataHeight:_}=e,C=m>_?_:m;e.bodyHeight=C},updateDimensions(m){this.updateBodyHeight(),f.data.bodyWidth=m.width,f.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return t.watch(d,(m,_)=>{const C=m.current;(!C||m.scrollTop<C.scrollTop||m.scrollTop+m.bodyHeight>C.bodyHeight+C.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-Ld,bodyHeight:m.bodyHeight+Ld*2},Wy(qa(e.currentWindow),r.value.dataSource).then(({rows:T,dataWindow:O})=>{Il(e.currentWindow,O)&&(e.rows=T)}))},{deep:!0,immediate:!0}),t.provide(Od,f),f}const Yy={class:"command-menu__container"},Gy={key:0,class:"table-body__no-data"},Ky={class:"carets"},jl=t.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(a,{emit:e}){const r=e,i=a,l=qy(i),s=t.computed(()=>l.data.rows.length===0),d=t.computed(()=>({height:s.value?"212px":l.data.bodyHeight+"px"}));t.watch(l.data,S=>r("update:data",S),{deep:!0}),t.watch(i,()=>m);const u=t.ref(),p=t.ref(),f=t.ref(),m=()=>{En(f.value,S=>{l.updateDimensions(S.getBoundingClientRect())})},_=l.tableColumns,C=l.tableRows,{mouseDown:T}=Oy(l,u);t.onMounted(()=>{t.nextTick(m)}),t.watchPostEffect(()=>{t.unref(i.settings),t.nextTick(m)}),Xe(window,"resize",()=>t.nextTick(m));const O=S=>{S.preventDefault(),l.updateOffsets(S)};return(S,M)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:M[2]||(M[2]=(...v)=>t.unref(T)&&t.unref(T)(...v))},[t.createElementVNode("div",Yy,[t.createVNode(Ry),M[3]||(M[3]=t.createTextVNode()),t.createVNode($y)]),M[7]||(M[7]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[t.createVNode(xy,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(_),(v,A)=>(t.openBlock(),t.createBlock(Sy,{key:A,col:v,style:t.normalizeStyle(v.style),"onChange:sort":M[0]||(M[0]=I=>S.$emit("change:sort",I))},null,8,["col","style"]))),128))]),_:1})],512),M[8]||(M[8]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"bodyRef",ref:f,class:"table-body",style:t.normalizeStyle(d.value),onWheel:O},[s.value?(t.openBlock(),t.createElementBlock("div",Gy,[t.createElementVNode("div",null,[t.createVNode(vy),M[4]||(M[4]=t.createTextVNode()),M[5]||(M[5]=t.createElementVNode("div",null,"No Data To Show",-1))])])):t.createCommentVNode("",!0),M[6]||(M[6]=t.createTextVNode()),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(C),(v,A)=>(t.openBlock(),t.createBlock(Ty,{key:A,row:v},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.cells,I=>(t.openBlock(),t.createBlock(hy,{key:I.column.id+":"+A,cell:I,style:t.normalizeStyle(I.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),M[9]||(M[9]=t.createTextVNode()),t.createElementVNode("div",Ky,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(_),(v,A)=>(t.openBlock(),t.createBlock(Ey,{key:A,column:v,style:t.normalizeStyle(v.style),"onChange:sort":M[1]||(M[1]=I=>S.$emit("change:sort",I))},null,8,["column","style"]))),128))]),M[10]||(M[10]=t.createTextVNode()),t.createVNode(Zy,{offset:t.unref(l).data.scrollTop,"window-size":t.unref(l).data.bodyHeight,"data-size":t.unref(l).data.dataHeight,"onChange:offset":t.unref(l).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),Rd=new WeakMap;class Jy{constructor(e,r,i){Lm(this,"dataHeight"),this.datum=e,this.resolveHeight=r,this.resolvePrimaryKey=i;const l=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+Xn,d),{total:0,indices:new Map});this.dataHeight=l.total;const s=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:Bd(l.indices.get(u)),height:this.resolveHeight(d,u)}));Rd.set(this,s)}get rows(){return Rd.get(this)}async getHeight(){return this.dataHeight}async getRows(e,r){return ky(this.rows,i=>{const l=i.offset;return e<l+i.height&&l<r+e})}}class Qy{constructor(e,r,i){this.api=e,this.rowHeight=r,this.resolvePrimaryKey=i}get height(){return this.rowHeight+Xn}async getHeight(){return await this.api.count()*this.height}async getRows(e,r){const i=ni(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),l=Math.ceil(r+40/this.height);return(await this.api.query({offset:i,limit:l})).map((s,d)=>({dataRow:s,index:i+d,primaryKey:this.resolvePrimaryKey(s,i+d),offset:(i+d)*(this.rowHeight+Xn),height:this.rowHeight}))}}function Xy(a){return Object.freeze(a)}function e0(a){return t.h(jl,{settings:Object.freeze(a)})}function Fl(a,e){const r=new Jy(a,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:r}}function t0(a,e){return t.computed(()=>{const r=t.unref(a);return Fl(r,t.unref(e))})}function r0(a,e){const r=t.computed(()=>{const l=t.unref(a);return Fl(l,t.unref(e))}),i=t.reactive({settings:r});return t.computed(()=>t.h(jl,i))}const n0=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:Qy,Component:jl,factory:e0,rawDataSettings:Fl,settings:Xy,useRawData:t0,useRawDataComponent:r0},Symbol.toStringTag,{value:"Module"}));function*a0(a,e){for(const r of a)yield e(r)}function o0(a){const e=[];for(const r of a)e.push(r);return e}function Pd(a){return a()}function $l(a,e){if(a==null)throw Error(e);return a}function Zl(a){let e=!1;return function(...r){e||(requestAnimationFrame(()=>{a(...r),e=!1}),e=!0)}}function jd(a){return new Promise(e=>setTimeout(e,a))}function Fd(a,e){const r=setTimeout(a,e);return()=>{clearTimeout(r)}}function $d(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function i0(a){let e="";for(let r=0;r<a;r++)e+=String.fromCharCode($d(65,91));return e}function Zd(a){return function(e){return 1-a(1-e)}}function l0(a){return function(e){return e<.5?a(2*e)/2:(2-a(2*(1-e)))/2}}function Ud(a){const{duration:e,draw:r,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=(u-l)/e;(p>1||s)&&(p=1);const f=i(p);r(f),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function s0(a){const{getFraction:e,draw:r,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=e(u-l);if(s)return;p>1&&(p=1);const f=i(p);r(f),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Hd(a,e){let r=-1;return(...i)=>{r!==-1&&(clearTimeout(r),r=-1),r=window.setTimeout(()=>a(...i),e)}}function Wd(a,e,r=!0){let i=0,l;return function(...s){l=()=>{a.apply(this,s),i=new Date().getTime()+e,l=null,r&&setTimeout(()=>{l&&l()},e)},new Date().getTime()>i&&l()}}function c0(a){return a.map(e=>({text:String(e),value:e}))}function Nn(a){return a.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const Ul=new Map;function d0(a){return Ul.has(a)||Ul.set(a,t.ref(localStorage.getItem(a))),$l(Ul.get(a),"...")}function u0(a,e){e==null?localStorage.removeItem(a):localStorage.setItem(a,e)}function qd(a){const e=d0(a);return t.watch(e,r=>u0(a,r)),e}const Hl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{o0(a0(Hl.values(),e=>e(a.matches?"dark":"light")))});const g0=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Yd=t.ref(g0),Wl=qd("theme");function Gd(a){const e=t.computed(()=>Wl.value?Wl.value:Yd.value),r=l=>{Yd.value=l,a&&a(l)};function i(){Wl.value=e.value==="light"?"dark":(e.value,"light")}return t.watch(e,l=>{a&&a(t.unref(l))}),t.onMounted(()=>{Hl.add(r)}),t.onUnmounted(()=>{Hl.delete(r)}),[e,i]}const p0=t.defineComponent({__name:"ThemeSwitcher",setup(a){const[e,r]=Gd();return(i,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ui-theme-switcher",t.unref(e)]),onClick:l[0]||(l[0]=(...s)=>t.unref(r)&&t.unref(r)(...s))},l[1]||(l[1]=[t.createElementVNode("div",null,null,-1)]),2))}}),f0={class:"pl-layout-component pl-block-page"},h0={key:0,class:"pl-block-page__title"},m0={class:"pl-block-page__title__append"},y0={key:1},b0={class:"pl-block-page__body"},v0={name:"PlBlockPage"},w0=t.defineComponent({...v0,setup(a){const e=t.useSlots();return(r,i)=>(t.openBlock(),t.createElementBlock("div",f0,[t.unref(e).title?(t.openBlock(),t.createElementBlock("div",h0,[t.createElementVNode("h1",null,[t.renderSlot(r.$slots,"title")]),i[0]||(i[0]=t.createTextVNode()),t.createElementVNode("div",m0,[t.renderSlot(r.$slots,"append")])])):(t.openBlock(),t.createElementBlock("div",y0)),i[1]||(i[1]=t.createTextVNode()),t.createElementVNode("div",b0,[t.renderSlot(r.$slots,"default")])]))}}),x0={name:"PlContainer"},_0=t.defineComponent({...x0,props:{width:{}},setup(a){const e=a,r=t.computed(()=>({width:e.width}));return(i,l)=>(t.openBlock(),t.createElementBlock("div",{class:"pl-container pl-layout-component",style:t.normalizeStyle(r.value)},[t.renderSlot(i.$slots,"default")],4))}}),k0={name:"PlRow"},C0=t.defineComponent({...k0,props:{wrap:{type:Boolean},alignCenter:{type:Boolean}},setup(a){return(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[t.renderSlot(e.$slots,"default")],2))}}),S0={class:"pl-layout-component",style:{"flex-grow":"1"}},T0={name:"PlSpacer"},Kd=t.defineComponent({...T0,setup(a){return(e,r)=>(t.openBlock(),t.createElementBlock("div",S0))}}),E0={name:"PlGrid"},N0=t.defineComponent({...E0,props:{columns:{}},setup(a){const e=a,r=t.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(i,l)=>(t.openBlock(),t.createElementBlock("div",{class:"pl-layout-component pl-grid",style:t.normalizeStyle(r.value)},[t.renderSlot(i.$slots,"default")],4))}}),B0={key:0,class:"pl-alert__icon"},V0={class:"pl-alert__main"},M0={key:0},z0={class:"pl-alert__main__text"},A0={name:"PlAlert"},O0=t.defineComponent({...A0,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(a){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(r,i)=>r.modelValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["pl-alert",[{monospace:r.monospace,whiteSpacePre:r.whiteSpacePre},r.type?`pl-alert__${r.type}`:""]]),style:t.normalizeStyle({maxHeight:r.maxHeight})},[r.icon&&r.type?(t.openBlock(),t.createElementBlock("div",B0,[t.createElementVNode("div",{class:t.normalizeClass(`icon-24 icon-${e[r.type]}`)},null,2)])):t.createCommentVNode("",!0),i[2]||(i[2]=t.createTextVNode()),t.createElementVNode("div",V0,[r.label?(t.openBlock(),t.createElementBlock("label",M0,t.toDisplayString(r.label),1)):t.createCommentVNode("",!0),i[1]||(i[1]=t.createTextVNode()),t.createElementVNode("div",z0,[t.renderSlot(r.$slots,"default")])]),i[3]||(i[3]=t.createTextVNode()),r.closeable?(t.openBlock(),t.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:i[0]||(i[0]=l=>r.$emit("update:modelValue",!1))})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}}),Ya=t.defineComponent({__name:"PlMaskIcon16",props:{name:{},size:{}},setup(a){const e=a,r=t.computed(()=>e.size==="large"?"--mask-size: 24px":""),i=t.computed(()=>`mask-16 mask-${e.name}`);return(l,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle(r.value),class:t.normalizeClass(i.value)},null,6))}});function Jd(a){function e(r){const i=r.currentTarget,l=document.createElement("span"),s=Math.max(i.clientWidth,i.clientHeight),d=s/2;l.style.width=l.style.height=`${s}px`,l.style.left=`${r.clientX-i.offsetLeft-d}px`,l.style.top=`${r.clientY-i.offsetTop-d}px`,l.classList.add("ripple");const u=i.getElementsByClassName("ripple")[0];u&&u.remove(),i.appendChild(l)}t.onMounted(()=>{var r;(r=a.value)==null||r.addEventListener("click",e)})}const L0={key:0},I0={inheritAttrs:!1},oi=t.defineComponent({...I0,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a,r=t.ref(),i=t.computed(()=>e.small||e.size==="small"),l=t.computed(()=>e.large||e.size==="large");return Jd(r),(s,d)=>(t.openBlock(),t.createElementBlock("button",t.mergeProps({ref_key:"btn",ref:r,tabindex:"0",class:{loading:s.loading,small:i.value,large:l.value,round:s.round,reverse:s.reverse,justifyCenter:s.justifyCenter,[s.$attrs.class+""]:!0}},{...s.$attrs,disabled:!!s.$attrs.disabled||s.loading}),[s.round?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",L0,[t.renderSlot(s.$slots,"default")])),d[0]||(d[0]=t.createTextVNode()),s.loading?(t.openBlock(),t.createBlock(t.unref(Ya),{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(t.openBlock(),t.createBlock(t.unref(Ya),{key:2,name:s.icon,size:s.size},null,8,["name","size"])):t.createCommentVNode("",!0)],16))}}),D0={name:"PlBtnPrimary"},ql=t.defineComponent({...D0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(r,i)=>(t.openBlock(),t.createBlock(oi,t.mergeProps({class:"pl-btn-primary"},e),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16))}}),R0={name:"PlBtnAccent"},P0=t.defineComponent({...R0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(r,i)=>(t.openBlock(),t.createBlock(oi,t.mergeProps({class:"pl-btn-accent"},e),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16))}}),j0={name:"PlBtnDanger"},F0=t.defineComponent({...j0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(r,i)=>(t.openBlock(),t.createBlock(oi,t.mergeProps({class:"pl-btn-danger"},e),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16))}}),$0={name:"PlBtnSecondary"},Yl=t.defineComponent({...$0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(r,i)=>(t.openBlock(),t.createBlock(oi,t.mergeProps(e,{class:"pl-btn-secondary"}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16))}}),Z0={key:0},U0={name:"PlBtnGhost"},Gl=t.defineComponent({...U0,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(a){const e=a,r=t.computed(()=>e.size==="small"),i=t.computed(()=>e.size==="large"),l=t.ref(),s=t.useSlots();return Jd(l),(d,u)=>(t.openBlock(),t.createElementBlock("button",t.mergeProps({ref_key:"btnRef",ref:l,tabindex:"0",class:["pl-btn-ghost",{loading:d.loading,small:r.value,large:i.value,round:d.round,reverse:d.reverse,justifyCenter:d.justifyCenter,[d.$attrs.class+""]:!0}]},{...d.$attrs,disabled:!!d.$attrs.disabled||d.loading}),[t.unref(s).default&&!d.round?(t.openBlock(),t.createElementBlock("span",Z0,[t.renderSlot(d.$slots,"default")])):t.createCommentVNode("",!0),u[0]||(u[0]=t.createTextVNode()),d.loading?(t.openBlock(),t.createBlock(t.unref(Ya),{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(t.openBlock(),t.createBlock(t.unref(Ya),{key:2,name:d.icon,size:d.size},null,8,["name","size"])):t.createCommentVNode("",!0),u[1]||(u[1]=t.createTextVNode()),t.renderSlot(d.$slots,"append")],16))}}),H0=t.defineComponent({__name:"PlBtnLink",props:{loading:{type:Boolean},size:{},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean},disabled:{type:Boolean}},setup(a){const e=a,r=t.ref(!1);return(i,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ui-btn-link",{disabled:i.disabled,loading:i.loading,hover:r.value}]),onMouseover:l[0]||(l[0]=s=>r.value=!0),onMouseleave:l[1]||(l[1]=s=>r.value=!1)},[t.createVNode(Yl,t.mergeProps({round:"",hover:r.value},e),null,16,["hover"]),l[2]||(l[2]=t.createTextVNode()),t.renderSlot(i.$slots,"default")],34))}});function Ga(a,e){const r=Zl(()=>{if(a.value){const{scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,f=a.value.getBoundingClientRect();e({scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:i+f.y,offsetX:l+f.x,top:f.top,right:f.right,bottom:f.bottom,left:f.left,width:f.width,height:f.height,x:f.x,y:f.y})}});t.onMounted(r),Xe(window,"scroll",r,{capture:!0,passive:!0}),Xe(window,"resize",r,{passive:!0}),Xe(window,"adjust",r,!0)}function W0(a,e){const r=t.ref();return Ga(a,i=>{r.value=i}),t.computed(()=>{const i=t.unref(r),l=t.unref(e),s=l.position??"top",d=l.gap??8;if(!i)return"";const u=i.offsetY+Math.floor(i.height/2),p=i.offsetX+Math.floor(i.width/2);return s==="top-left"?`left: ${i.offsetX}px; top: ${i.offsetY-d}px;`:s==="top"?`left: ${p}px; top: ${i.offsetY-d}px;`:s==="right"?`left: ${i.offsetX+i.width+d}px; top: ${u}px;`:s==="left"?`right: ${i.scrollWidth-i.x+d}px; top: ${u}px;`:""})}function Ka(a,e){return e(a)}function nt(a,e){if(a!=null)return e(a)}function q0(a){return Array.isArray(a)?a:[a]}function Y0(a,e,...r){r.forEach(i=>{a[i]=e[i]})}function ii(a,e){Xe(document,"click",r=>{document.contains(r.target)&&(q0(a).map(i=>i.value).filter(i=>!!i).some(i=>i==null?void 0:i.contains(r.target))||e())})}const G0={},K0={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(a,e){return t.openBlock(),t.createElementBlock("svg",K0,e[0]||(e[0]=[t.createElementVNode("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const Q0=Xr(G0,[["render",J0]]),Kl=new Map,X0={name:"PlTooltip"},zt=t.defineComponent({...X0,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"}},emits:["tooltip:close"],setup(a,{emit:e}){const r=e,i=Symbol(),l=a,s=t.reactive({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});Kl.set(i,()=>f()),t.watch(()=>s.open,S=>{requestAnimationFrame(()=>{s.tooltipOpen=S})});let d=()=>{};const u=Wd(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[S,M]of Kl.entries())S!==i&&M()},f=()=>{s.open=!1,r("tooltip:close")},m=async()=>{l.hide||(u(),s.over=!0,d(),await jd(100),s.over&&p())},_=()=>{s.over=!1,d=Fd(()=>{s.over||f()},l.closeDelay)};t.watch(()=>l.hide,S=>{S&&f()});const C=t.ref(),T=t.ref(),O=W0(C,t.toRef(l));return ii([C,T],()=>f()),t.onUnmounted(()=>{Kl.delete(i)}),(S,M)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.element),t.mergeProps(S.$attrs,{ref_key:"rootRef",ref:C,onClick:m,onMouseover:m,onMouseleave:_}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"default"),M[1]||(M[1]=t.createTextVNode()),S.$slots.tooltip&&s.open?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"body"},[t.createVNode(t.Transition,{name:"tooltip-transition"},{default:t.withCtx(()=>[s.tooltipOpen?(t.openBlock(),t.createElementBlock("div",{key:0,class:"pl-tooltip__container",style:t.normalizeStyle(t.unref(O))},[t.createElementVNode("div",{ref_key:"tooltip",ref:T,class:t.normalizeClass(["pl-tooltip",S.position]),onMouseover:m,onMouseleave:_},[t.createElementVNode("div",null,[t.renderSlot(S.$slots,"tooltip")]),M[0]||(M[0]=t.createTextVNode()),t.createVNode(Q0)],34)],4)):t.createCommentVNode("",!0)]),_:3})])):t.createCommentVNode("",!0)]),_:3},16))}}),eb={},tb={class:"inner-border"};function rb(a,e,r,i,l,s){return t.openBlock(),t.createElementBlock("div",tb,[t.renderSlot(a.$slots,"default")])}const nb=Xr(eb,[["render",rb]]),ab={key:0},ob=["tabindex","onKeydown","onClick"],ib={key:1,class:"ui-btn-group__helper"},lb={key:2,class:"ui-btn-group__error"},sb={name:"PlBtnGroup"},cb=t.defineComponent({...sb,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.useSlots(),i=e,l=u=>i("update:modelValue",u),s=a,d=t.computed(()=>s.options.map(u=>({label:"label"in u?u.label:u.text,value:u.value})));return(u,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ui-btn-group",{disabled:u.disabled}])},[u.label?(t.openBlock(),t.createElementBlock("label",ab,[t.createElementVNode("span",null,t.toDisplayString(u.label),1),p[0]||(p[0]=t.createTextVNode()),t.unref(r).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:0,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(u.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),p[1]||(p[1]=t.createTextVNode()),t.createVNode(nb,{class:"ui-btn-group__container"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,(f,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:t.normalizeClass(["ui-btn-group__option text-s",{active:u.modelValue===f.value}]),tabindex:u.modelValue===f.value||u.disabled?void 0:0,onKeydown:t.withKeys(_=>l(f.value),["enter"]),onClick:_=>l(f.value)},t.toDisplayString(f.label),43,ob))),128))]),_:1}),p[2]||(p[2]=t.createTextVNode()),u.helper?(t.openBlock(),t.createElementBlock("div",ib,t.toDisplayString(u.helper),1)):u.error?(t.openBlock(),t.createElementBlock("div",lb,t.toDisplayString(u.error),1)):t.createCommentVNode("",!0)],2))}}),db={inheritAttrs:!1},ub={class:"double-contour"};function gb(a,e,r,i,l,s){return t.openBlock(),t.createElementBlock("div",ub,[t.createElementVNode("div",t.normalizeProps(t.guardReactiveProps(a.$attrs)),[t.renderSlot(a.$slots,"default")],16)])}const tn=Xr(db,[["render",gb]]);function Qd(a){t.onMounted(a),t.onUpdated(a)}const Jl=new WeakMap,Ql=new ResizeObserver(a=>{for(const e of a)nt(Jl.get(e.target),r=>r(e))});function Xd(a,e){Jl.set(a,e),Ql.unobserve(a),Ql.observe(a)}function eu(a){Ql.unobserve(a),Jl.delete(a)}const pb=8,tu=4;function Ar(a,e="label"){const r=new Set;Qd(()=>{nt(a==null?void 0:a.value,i=>{const l=i.querySelector(e);l&&(r.add(l),Xd(l,()=>{const s=Pd(()=>l.getBoundingClientRect().width+Ka(pb,d=>Number.isNaN(d)?tu:d+tu));i.style.getPropertyValue("--label-offset-right-x")!==`${s}px`&&i.style.setProperty("--label-offset-right-x",`${s}px`)}))})}),t.onBeforeUnmount(()=>{Array.from(r.values()).map(i=>eu(i))})}function fb(a,e){const r=[];return e&&e.length>0&&e.forEach(i=>{const l=i(a);typeof l=="string"&&r.push(l)}),{isValid:r.length===0,errors:r}}function ru(a,e){return t.computed(()=>fb(a.value,e))}const hb=t.defineComponent({__name:"PlIcon16",props:{name:{},size:{}},setup(a){const e=a,r=t.computed(()=>e.size==="large"?"--icon-size: 24px":""),i=t.computed(()=>`icon-16 icon-${e.name}`);return(l,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle(r.value),class:t.normalizeClass([i.value,l.$style.icon])},null,6))}}),mb="_icon_1ugxm_2",yb={icon:mb},bb={$style:yb},li=Xr(hb,[["__cssModules",bb]]),vb=t.defineComponent({__name:"PlIcon24",props:{name:{},size:{}},setup(a){const e=a,r=t.computed(()=>`icon-24 icon-${e.name}`);return(i,l)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass([r.value,i.$style.icon])},null,2))}}),wb="_icon_1ugxm_2",xb={icon:wb},_b={$style:xb},nu=Xr(vb,[["__cssModules",_b]]),kb={class:"pl-text-field__envelope"},Cb={key:0,ref:"label"},Sb={key:0,class:"required-icon"},Tb={key:1,class:"pl-text-field__prefix"},Eb=["disabled","placeholder","type"],Nb={class:"pl-text-field__append"},Bb={key:0,class:"pl-text-field__error"},Vb={key:1,class:"pl-text-field__helper"},Mb={name:"PlTextField"},au=t.defineComponent({...Mb,props:t.mergeModels({label:{},clearable:{type:[Boolean,Function]},parse:{type:Function},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const e=t.useSlots(),r=t.useModel(a,"modelValue"),i=a,l=t.ref(void 0),s=t.ref(),d=t.ref(!1),u=t.reactive({cached:void 0}),p=t.computed({get(){return u.cached?u.cached.value:r.value===void 0||r.value===null?"":String(r.value)},set(W){if(u.cached=void 0,i.parse)try{r.value=i.parse(W)}catch(j){u.cached={error:j instanceof Error?j.message:String(j),value:W}}else r.value=W}}),f=t.computed(()=>i.type&&i.type==="password"?d.value?"text":i.type:"text"),m=t.computed(()=>d.value?"view-show":"view-hide"),_=()=>{i.clearable&&(u.cached=void 0,r.value=i.clearable===!0?"":i.clearable())},C=ru(p,i.rules||[]),T=t.computed(()=>i.clearable?i.clearable===!0?r.value==="":r.value===i.clearable():r.value===""),O=t.computed(()=>!T.value),S=t.computed(()=>{const W=[];return i.error&&W.push(i.error),u.cached&&W.push(u.cached.error),C.value.isValid||W.push(...C.value.errors),W}),M=t.computed(()=>S.value.length>0),v=t.computed(()=>i.clearable&&O.value&&i.type!=="password"),A=()=>d.value=!d.value,I=()=>{u.cached=void 0};return Ar(l),(W,j)=>(t.openBlock(),t.createElementBlock("div",kb,[t.createElementVNode("div",{ref_key:"rootRef",ref:l,class:t.normalizeClass(["pl-text-field",{error:M.value,disabled:W.disabled,dashed:W.dashed,nonEmpty:O.value}])},[W.label?(t.openBlock(),t.createElementBlock("label",Cb,[W.required?(t.openBlock(),t.createElementBlock("i",Sb)):t.createCommentVNode("",!0),j[1]||(j[1]=t.createTextVNode()),t.createElementVNode("span",null,t.toDisplayString(W.label),1),j[2]||(j[2]=t.createTextVNode()),t.unref(e).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:1,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(W.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),j[5]||(j[5]=t.createTextVNode()),W.prefix?(t.openBlock(),t.createElementBlock("div",Tb,t.toDisplayString(W.prefix),1)):t.createCommentVNode("",!0),j[6]||(j[6]=t.createTextVNode()),t.withDirectives(t.createElementVNode("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":j[0]||(j[0]=Y=>p.value=Y),disabled:W.disabled,placeholder:W.placeholder||"...",type:f.value,spellcheck:"false",onFocusout:I},null,40,Eb),[[t.vModelDynamic,p.value]]),j[7]||(j[7]=t.createTextVNode()),t.createElementVNode("div",Nb,[v.value?(t.openBlock(),t.createBlock(t.unref(li),{key:0,name:"delete-clear",onClick:_})):t.createCommentVNode("",!0),j[3]||(j[3]=t.createTextVNode()),W.type==="password"?(t.openBlock(),t.createBlock(t.unref(nu),{key:1,name:m.value,style:{cursor:"pointer"},onClick:A},null,8,["name"])):t.createCommentVNode("",!0),j[4]||(j[4]=t.createTextVNode()),t.renderSlot(W.$slots,"append")]),j[8]||(j[8]=t.createTextVNode()),t.createVNode(tn,{class:"pl-text-field__contour"})],2),j[9]||(j[9]=t.createTextVNode()),M.value?(t.openBlock(),t.createElementBlock("div",Bb,t.toDisplayString(S.value.join(" ")),1)):W.helper?(t.openBlock(),t.createElementBlock("div",Vb,t.toDisplayString(W.helper),1)):t.createCommentVNode("",!0)]))}}),zb={class:"ui-text-area__envelope"},Ab={key:0,ref:"label"},Ob={key:0,class:"required-icon"},Lb=["readonly","rows","disabled","placeholder"],Ib={class:"ui-text-area__append"},Db={key:0,class:"ui-text-area__error"},Rb={key:1,class:"ui-text-area__helper"},Pb={name:"PlTextArea"},jb=t.defineComponent({...Pb,props:{modelValue:{},label:{},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},dashed:{type:Boolean},rows:{},autogrow:{type:Boolean},rules:{}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.useSlots(),i=e,l=a,s=t.ref(),d=t.ref(),u=t.computed({get(){return l.modelValue??""},set(T){i("update:modelValue",T)}}),p=t.computed(()=>!!l.modelValue),f=ru(u,l.rules||[]);Ar(s);const m=t.computed(()=>{const T=[];return l.error&&T.push(l.error),T.push(...f.value.errors),T}),_=t.computed(()=>m.value.length>0),C=()=>{if(!l.autogrow)return;const T=d.value;T&&(T.style.height="auto",T.style.height=`${T.scrollHeight}px`)};return t.onMounted(()=>{C()}),(T,O)=>(t.openBlock(),t.createElementBlock("div",zb,[t.createElementVNode("div",{ref_key:"root",ref:s,class:t.normalizeClass(["ui-text-area",{error:_.value,disabled:T.disabled,dashed:T.dashed,nonEmpty:p.value}])},[T.label?(t.openBlock(),t.createElementBlock("label",Ab,[T.required?(t.openBlock(),t.createElementBlock("i",Ob)):t.createCommentVNode("",!0),O[1]||(O[1]=t.createTextVNode()),t.createElementVNode("span",null,t.toDisplayString(T.label),1),O[2]||(O[2]=t.createTextVNode()),t.unref(r).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:1,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(T.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),O[3]||(O[3]=t.createTextVNode()),t.withDirectives(t.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":O[0]||(O[0]=S=>u.value=S),readonly:T.readonly,rows:T.rows,disabled:T.disabled,placeholder:T.placeholder??"...",spellcheck:"false",onInput:C},null,40,Lb),[[t.vModelText,u.value]]),O[4]||(O[4]=t.createTextVNode()),t.createElementVNode("div",Ib,[t.renderSlot(T.$slots,"append")]),O[5]||(O[5]=t.createTextVNode()),t.createVNode(tn,{class:"ui-text-area__contour"})],2),O[6]||(O[6]=t.createTextVNode()),_.value?(t.openBlock(),t.createElementBlock("div",Db,t.toDisplayString(m.value.join(" ")),1)):T.helper?(t.openBlock(),t.createElementBlock("div",Rb,t.toDisplayString(T.helper),1)):t.createCommentVNode("",!0)]))}});function ou(a,e){const r=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+r&&l>r}function iu(a,e){const r=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+r?"ceil":l>r?"floor":"visible"}function Ja(a,e,r={}){const i=a.scrollTop,l=a.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=iu(a,e);if(u==="visible")return;const p=f=>{const m=u==="floor"?d-(l-s):d;a.scrollTop=i+f*(m-i)};ou(a,e)||Ud({duration:r.duration||100,timing:Zd(f=>f),draw:p})}function Xl(a,e,r,i){return a.addEventListener(e,r,i),function(){a.removeEventListener(e,r)}}function Fb(a,e){const r=e.getBoundingClientRect();return a.x<r.x||a.x>r.x+r.width||a.y<r.y||a.y>r.y+r.height}function lu(a){return a!==null&&typeof a=="object"}function St(a,e){return lu(a)&&lu(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(r=>St(a[r],e[r])):a===e}function es(a,e){return a.some(r=>St(r,e))}const $b=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
55
|
+
`,{css:i,id:"variables"}},zy=t=>Array.from(new Set(Object.values(t.getParams()).flat().map(e=>e==null?void 0:e.googleFont).filter(e=>typeof e=="string"))).sort(),Yl=async({root:t,part:e,scope:r,css:o})=>{let i=`:scope > style[data-ag-part="${e}"]`;r&&(i+=`[data-ag-scope="${r}"]`);let s=t.querySelector(i);if(!s){s=document.createElement("style"),s.dataset.agPart=e,r&&(s.dataset.agScope=r);const d=t.querySelectorAll(":scope > style[data-ag-part]"),u=d[d.length-1];u?u.insertAdjacentElement("afterend",s):t.firstElementChild?t.firstElementChild.insertAdjacentElement("beforebegin",s):t.appendChild(s)}if(s._agTextContent!==o)return s.textContent=o,s._agTextContent=o,jy(s)},iu=(t,e)=>{for(const r of Array.from(e.querySelectorAll(`:scope > style[data-ag-scope="${t}"]`)))r.remove()},lu=new Set,Gy=async t=>{if(lu.has(t))return;lu.add(t);const e=`@import url('https://${su}/css2?family=${encodeURIComponent(t)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
|
|
56
|
+
`;return Yl({css:e,part:`googleFont:${t}`,root:document.head})},su="fonts.googleapis.com",jy=t=>new Promise(e=>{const r=()=>{t.removeEventListener("load",r),e()};t.addEventListener("load",r)}),Uy=t=>t==null?String(t):`${typeof t} ${t}`,Zy='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);& input{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;opacity:0;width:100%}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&.ag-checked{background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:active,&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&.ag-checked:after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&.ag-indeterminate{background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&.ag-checked:after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',$y=Qo("checkboxStyle","default").withAdditionalParams({checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:{ref:"backgroundColor"},checkboxUncheckedBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxCheckedBackgroundColor:{ref:"accentColor"},checkboxCheckedBorderColor:{ref:"accentColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:{ref:"backgroundColor"},checkboxIndeterminateBackgroundColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxIndeterminateBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:{ref:"backgroundColor"},radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}}).withCSS(Zy),Wy=Qo("colorScheme","light"),Hy='.ag-icon:before{background-color:currentColor;content:"";display:block;height:var(--ag-icon-size);-webkit-mask-image:linear-gradient(#0000,#0000);mask-image:linear-gradient(#0000,#0000);-webkit-mask-size:contain;mask-size:contain;width:var(--ag-icon-size)}',cu={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-down":'<path d="m6 9 6 6 6-6"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',"small-up":'<path d="m18 15-6-6-6 6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},qy=(t={})=>{let e=Hy;for(const r of Object.keys(cu)){const o=Ky(r,t.strokeWidth||1.5);e+=`.ag-icon-${r}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(o)}'); }
|
|
57
|
+
`}return e},Ky=(t,e)=>{const r=cu[t];if(!r)throw new Error(`Missing icon data for ${t}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon ag-icon-${t}" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${e}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+r+"</svg>"},Yy=(t={})=>Qo("iconSet","quartz").withCSS(()=>qy(t)),Jy=":where(input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)){-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}:where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color)}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}&.ag-ltr :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-left:var(--ag-input-padding-start)}&.ag-rtl :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-right:var(--ag-input-padding-start)}",Qy=Qo("inputStyle","base").withAdditionalParams({inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"}}).withCSS(Jy),Xy=Jd(Qy,"bordered").withParams({inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:{ref:"accentColor"}},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:{ref:"foregroundColor",mix:.06,onto:"backgroundColor"},inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),eb='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex;.ag-tabs-header{flex:1}}.ag-tabs-close-button-wrapper{border:0;padding:var(--ag-spacing)}&.ag-ltr .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}&.ag-rtl .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}&.ag-ltr .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-left-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-right-color:var(--ag-tab-selected-border-color)}}}&.ag-rtl .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-right-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-left-color:var(--ag-tab-selected-border-color)}}}',tb=Qo("tabStyle","base").withAdditionalParams({tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:"0",tabSelectedUnderlineTransitionDuration:"0",tabBarBorder:!1}).withCSS(eb),rb=Jd(tb,"quartz").withParams({tabBarBorder:!0,tabBarBackgroundColor:{ref:"foregroundColor",mix:.05},tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),nb=t=>Ly(t).withPart($y),ob=nb("quartz").withPart(Wy).withPart(Yy).withPart(rb).withPart(()=>Xy).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function du(){C.ModuleRegistry.registerModules([Ja.ClientSideRowModelModule,cf.InfiniteRowModelModule,cd.ServerSideRowModelModule,df.CsvExportModule,dd.ClipboardModule,ud.RangeSelectionModule,uf.RichSelectModule,pf.MenuModule,gf.ExcelExportModule,Ul,Yd]);const t=Pm("AGGRID_LICENSE");t?(Le.LicenseManager.setLicenseKey(t),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const uu=ob.withParams({headerColumnResizeHandleColor:"transparent",accentColor:"#110529",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}),pu=Symbol("sdk-vue");function Jl(){return n.inject(pu)}function ab(t,e){let r;du();const o=()=>{t.loadBlockState().then(s=>{i.loaded=!0;const d=Sf(s,t),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([h,f])=>{const y=typeof f=="function"?f():f;return[h,n.markRaw(y)]}));r=Object.assign(d,{...u,getRoute(h){return p[h]}})}).catch(s=>{console.error("load initial state error",s),i.error=s})},i=n.reactive({loaded:!1,error:void 0,useApp(){return ff(r,"App is not loaded")},install(s){s.provide(pu,this),o()}});return i}var ib=Object.defineProperty,lb=(t,e,r)=>e in t?ib(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sb=(t,e,r)=>lb(t,e+"",r);function gu(t,e){if(t==null)throw Error("Empty (null | undefined) value");return t}function cb(t,e,r){const o=Math.min(e,r),i=Math.max(e,r);return t>=o&&t<=i}function db(t){return new Promise(e=>setTimeout(e,t))}function ub(t){return t()}function di(t,e,r){return e>t?e:t>r?r:t}function hu(t,e){return e(t)}function Mn(t,e){if(t!=null)return e(t)}function pb(t){if(t&&t.ok)return t.value}async function gb(t){return Object.fromEntries(await Promise.all(Object.entries(t).map(async([e,r])=>[e,await r])))}const fu=t=>t;function hb(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t}function fb(t){let e="";for(let r=0;r<t;r++)e+=String.fromCharCode(hb(65,91));return e}function mb(){return fb(42)}function Xo(t){return t!==null&&typeof t=="object"}function vb(t,e){return Object.keys(t).map(r=>e(t[r],r))}function Ql(t,e){return Xo(t)&&Xo(e)?Object.keys(t).length!==Object.keys(e).length?!1:Object.keys(t).every(r=>Ql(t[r],e[r])):t===e}function ea(t){if(Array.isArray(t)){const e=[];for(let r=0;r<t.length;r++)e[r]=ea(t[r]);return e}else if(Xo(t)){const e={};return Object.keys(t).forEach(r=>{e[r]=ea(t[r])}),e}else return t}function yb(t){return Array.isArray(t)?Object.assign([],t):Xo(t)?Object.assign({},t):t}function bb(t,e){const r={};for(const o in e)e[o]!==t[o]&&(r[o]=t[o]);return r}function wb(t,e,r){return Object.assign({},t,{[e]:r})}function xb(t){return Object.entries(t).forEach(([e,r])=>{r instanceof Function&&(t[e]=r.bind(t))}),t}function Cb(t,e,r){return t[e]=r,t}function _b(t,e){return t[e]}function kb(t,e){t={...t};const r=t[e];return delete t[e],[r,t]}function Sb(t,...e){return Object.assign({},...e.map(r=>({[r]:t[r]})))}function Tb(t,...e){return e.map(r=>t[r])}function Eb(t,...e){const r=Object.assign({},t);return e.forEach(o=>delete r[o]),r}const Xl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:xb,deepClone:ea,deepEqual:Ql,getProp:_b,iSet:wb,isObject:Xo,map:vb,omit:Eb,pick:Sb,pickValues:Tb,setProp:Cb,shallowClone:yb,shallowDiff:bb,shiftProp:kb},Symbol.toStringTag,{value:"Module"}));function Nb(t,e){const r=t.findIndex(e);if(r<0)return[];const o=(()=>{for(let i=r;i<t.length;i++)if(!e(t[i],i))return i;return t.length})();return t.slice(r,o)}function mu(t,e,r){let o;return function(...i){o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,t.apply(this,i)},e)}}const Ab=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Mb=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Bb=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Pb=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vu=(t,e)=>{let r=String(t);return typeof e=="string"||Array.isArray(e)?r=t.toLocaleString(e):e===!0&&(r=t.toLocaleString(void 0)),r};function es(t,e){if(t=typeof t=="bigint"?Number(t):t,!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);Object.assign(e,{bits:!1,binary:!1});const r=e.bits?e.binary?Pb:Bb:e.binary?Mb:Ab;if(e.signed&&t===0)return` 0 ${r[0]}`;const o=t<0,i=o?"-":e.signed?"+":"";if(o&&(t=-t),t<1){const p=vu(t,e.locale);return i+p+" "+r[0]}const s=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),r.length-1);t/=(e.binary?1024:1e3)**s,t=Number(t.toPrecision(3));const d=vu(Number(t),e.locale),u=r[s];return i+d+" "+u}const Db={class:"context-menu"},Vb=["onClick"],Lb=n.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(t,{emit:e}){const r=e,o=i=>{i.cb(),r("close")};return(i,s)=>(n.openBlock(),n.createElementBlock("div",Db,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.options,(d,u)=>(n.openBlock(),n.createElementBlock("div",{key:u,onClick:n.withModifiers(p=>o(d),["stop"])},[n.createElementVNode("span",null,n.toDisplayString(d.text),1)],8,Vb))),128))]))}}),rn=(t,e)=>{const r=t.__vccOpts||t;for(const[o,i]of e)r[o]=i;return r},Ib=rn(Lb,[["__scopeId","data-v-12530966"]]);function ts(t,e){t.preventDefault();const r=()=>{n.render(null,document.body)},o=n.h(Ib,{options:e,onClose:()=>{r()}});n.render(o,document.body);const i=o.el;return i.style.top=t.clientY+"px",i.style.left=t.clientX+"px",document.addEventListener("click",s=>{i.contains(s.target)||r()}),r}const yu=Symbol(),ui=()=>n.inject(yu),Fb=["value"],Rb={key:1},Ob=n.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const r=e,o=t,i=n.reactive({edit:!1}),s=n.computed(()=>o.valueType),d=h=>{var f;let y=(f=h.target)==null?void 0:f.value;const S=n.unref(s),k=ub(()=>S==="integer"?parseInt(y,10):S==="float"?Number(y):y);r("update:modelValue",k),i.edit=!1},u=n.ref(),p=h=>{!h.metaKey&&o.editable&&(i.edit=!0,requestAnimationFrame(()=>{var f,y;(y=(f=u.value)==null?void 0:f.querySelector("input"))==null||y.focus()}))};return(h,f)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"baseRef",ref:u,class:n.normalizeClass(["base-cell",{"base-cell__edit":i.edit}]),onClick:p},[i.edit?(n.openBlock(),n.createElementBlock("input",{key:0,value:h.modelValue,onFocusout:f[0]||(f[0]=y=>i.edit=!1),onChange:d},null,40,Fb)):(n.openBlock(),n.createElementBlock("div",Rb,n.toDisplayString(h.modelValue),1))],2))}}),zb=["^data-row-index"],Gb={key:0,class:"control-cell"},jb=n.defineComponent({__name:"TdCell",props:{cell:{}},setup(t){const e=t,r=ui(),o=n.computed(()=>e.cell.column.valueType),i=h=>{Mn(r.settings.value.onUpdatedRow,f=>{const y=e.cell.row,S={...y.dataRow,[e.cell.id]:h};f({...y,dataRow:S})})},s=h=>{h.metaKey&&r.selectRow(e.cell.row.primaryKey)},d=(h,f)=>{if(h.type==="contextmenu")h.preventDefault();else return;const y=r.settings??{},S=[],{onSelectedRows:k,onSelectedColumns:D}=y.value,E=r.data.selectedRows.has(f.primaryKey);k&&k.length&&(E?S.push({text:"Deselect row",cb(){r.data.selectedRows.delete(e.cell.row.primaryKey)}}):S.push({text:"Select row",cb(){r.selectRow(e.cell.row.primaryKey)}})),D&&D.length&&(S.push({text:"Select column",cb(){r.selectColumn(e.cell.column.id)}}),S.push({text:"Unselect column",cb(){r.unselectColumn(e.cell.column.id)}})),S.length&&ts(h,S)},u=n.ref(),p=n.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(h,f)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"cellRef",ref:u,class:n.normalizeClass(["td-cell",{[h.cell.class]:!0}]),"^data-row-index":h.cell.row.index,onClick:s,onContextmenu:f[0]||(f[0]=y=>d(y,h.cell.row))},[h.cell.control?(n.openBlock(),n.createElementBlock("div",Gb,n.toDisplayString(h.cell.row.index),1)):p.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(p.value),{key:1,"model-value":h.cell.value,"onUpdate:modelValue":i},null,8,["model-value"])):(n.openBlock(),n.createBlock(Ob,{key:2,"model-value":h.cell.value,"value-type":o.value,editable:h.cell.column.editable,"onUpdate:modelValue":i},null,8,["model-value","value-type","editable"]))],42,zb))}}),Ub={},Zb={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $b(t,e){return n.openBlock(),n.createElementBlock("svg",Zb,e[0]||(e[0]=[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),n.createTextVNode(),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const Wb=rn(Ub,[["render",$b]]),Hb={class:"tr-head"},qb=n.defineComponent({__name:"TrHead",setup(t){return(e,r)=>(n.openBlock(),n.createElementBlock("div",Hb,[n.renderSlot(e.$slots,"default")]))}});function Kb(t,e){const r=e.indexOf(t)+1;return e[r>=e.length?0:r]}function Yb(t,e){const r=t.findIndex(e);if(r<0)return[];const o=(()=>{for(let i=r;i<t.length;i++)if(!e(t[i],i))return i;return t.length})();return t.slice(r,o)}const Jb=["^data-col-id"],Qb=n.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(t,{emit:e}){const r=e;function o(s){s.preventDefault();const d=[];d.length&&ts(s,d)}function i(s){var d;const u=((d=s.sort)==null?void 0:d.direction)??"DESC";r("change:sort",{colId:s.id,direction:Kb(u,["DESC","ASC"])})}return(s,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cell th-cell",{"justify-center":s.col.justify,frozen:s.col.frozen}]),"^data-col-id":s.col.id,onContextmenu:o},[s.col.valueType?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(s.col.valueType)},null,2)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(s.col.label)+" ",1),s.col.sort?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["sort",s.col.sort.direction]),onClick:d[0]||(d[0]=n.withModifiers(()=>i(s.col),["stop"]))},null,2)):n.createCommentVNode("",!0)],42,Jb))}}),Xb=n.defineComponent({__name:"TrBody",props:{row:{}},setup(t){const e=n.ref(),r=()=>{n.nextTick().then(()=>{Mn(e.value,o=>o.scrollLeft=0)})};return(o,i)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"trRef",ref:e,class:n.normalizeClass(["tr-body",{selected:o.row.selected}]),scroll:"no",style:n.normalizeStyle(o.row.style),onScroll:r},[n.renderSlot(o.$slots,"default")],38))}}),ew=n.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(t){const e=ui(),r=t,o=n.computed(()=>e.data.selectedColumns.has(r.column.id));return(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column-caret",{selected:o.value,frozen:i.column.frozen}])},null,2))}});function et(t,e,r,o){n.onMounted(()=>{var i;return(i=n.unref(t))==null?void 0:i.addEventListener(e,r,o)}),n.onUnmounted(()=>{var i;return(i=n.unref(t))==null?void 0:i.removeEventListener(e,r,o)})}function tw(t){n.onMounted(()=>window.addEventListener("mouseup",t)),n.onUnmounted(()=>window.removeEventListener("mouseup",t))}function rw(t){let e=!1;return function(...r){e?console.log("handle pressure"):(requestAnimationFrame(()=>{t(...r),e=!1}),e=!0)}}function nw(t,e){let r;function o(s){r={...s}}tw(()=>{r=void 0,e()});const i=rw(t);return et(window,"mousemove",s=>{r&&i({x:r.x,width:r.width,diff:s.x-r.x})}),{start:o}}const no=1,ow=10,aw=30,bu=60;function wu(){const t=n.reactive({x:0,y:0});function e(r){t.x=r.pageX,t.y=r.pageY}return n.onMounted(()=>window.addEventListener("mousemove",e)),n.onUnmounted(()=>window.removeEventListener("mousemove",e)),t}function xu(t,e={}){const{delayEnter:r=0,delayLeave:o=0}=e,i=n.ref(!1);let s;const d=u=>{const p=u?r:o;s&&(clearTimeout(s),s=void 0),p?s=setTimeout(()=>i.value=u,p):i.value=u};return window&&(et(t,"mouseenter",()=>d(!0)),et(t,"mouseleave",()=>d(!1))),i}function iw(t){var e;const r=Mn((e=n.unref(t))==null?void 0:e.querySelectorAll(".th-cell"),o=>[...o])??[];return r.map(o=>{const{width:i,x:s}=o.getBoundingClientRect(),d=o.getAttribute("data-col-id");return fu({colId:d,width:i,x:s,right:s+i})}).slice(0,r.length-1)}function lw(t,e){const r=wu(),o=xu(e,{}),{data:i}=t,s=nw(u=>{Mn(i.resizeTh,p=>{const h=i.columns.find(f=>f.id===p.colId);h&&(h.width=di(u.width+u.diff,aw,1e4),t.adjustWidth())})},()=>{i.resize=!1,i.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{i.resizeTh&&(i.resize=!0,s.start({x:u.x,width:i.resizeTh.width}))};return n.watchEffect(()=>{if(!o.value){document.body.style.cursor="";return}if(i.resize)return;const u=iw(e).find(p=>Math.abs(r.x-p.right)<ow);u?(document.body.style.cursor="col-resize",i.resizeTh=u):(i.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const sw={key:0,class:"command-menu"},cw={key:0},dw=["onClick"],uw=n.defineComponent({__name:"RowsCommandMenu",setup(t){const e=ui(),r=n.computed(()=>e.getSelectedRows()),o=n.computed(()=>r.value.length>0),i=n.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),s=n.computed(()=>i.value.map(d=>({label:d.label,cb:()=>{d.cb(r.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>o.value?(n.openBlock(),n.createElementBlock("div",sw,[r.value.length?(n.openBlock(),n.createElementBlock("span",cw,n.toDisplayString(r.value.length)+" rows selected",1)):n.createCommentVNode("",!0),u[0]||(u[0]=n.createTextVNode()),u[1]||(u[1]=n.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=n.createTextVNode()),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.value,(p,h)=>(n.openBlock(),n.createElementBlock("span",{key:h,class:"command",onClick:n.withModifiers(p.cb,["stop"])},n.toDisplayString(p.label),9,dw))),128))])):n.createCommentVNode("",!0)}}),pw={key:0,class:"command-menu"},gw={key:0},hw=["onClick"],fw=n.defineComponent({__name:"ColumnsCommandMenu",setup(t){const e=ui(),r=n.computed(()=>e.getSelectedColumns()),o=n.computed(()=>r.value.length>0),i=n.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),s=n.computed(()=>i.value.map(d=>({label:d.label,cb:()=>{d.cb(r.value),e.data.selectedColumns.clear()}})));return(d,u)=>o.value?(n.openBlock(),n.createElementBlock("div",pw,[r.value.length?(n.openBlock(),n.createElementBlock("span",gw,"selected columns "+n.toDisplayString(r.value.length),1)):n.createCommentVNode("",!0),u[0]||(u[0]=n.createTextVNode()),u[1]||(u[1]=n.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=n.createTextVNode()),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.value,(p,h)=>(n.openBlock(),n.createElementBlock("span",{key:h,class:"command",onClick:n.withModifiers(p.cb,["stop"])},n.toDisplayString(p.label),9,hw))),128))])):n.createCommentVNode("",!0)}});function nn(t,e){const r={el:void 0,x:0,y:0},o=i=>({x:i.x,y:i.y,dx:i.x-r.x,dy:i.y-r.y});et(document,"mousedown",i=>{i.target===n.unref(t)&&(i.stopPropagation&&i.stopPropagation(),i.preventDefault&&i.preventDefault(),r.el=n.unref(t),r.x=i.x,r.y=i.y)}),et(document,"mouseup",i=>{r.el&&(r.el=void 0,e({...o(i),stop:!0},r))}),et(document,"mousemove",i=>{r.el&&e(o(i),r)})}const mw=n.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(t,{emit:e}){const r=e,o=t,i=n.ref(),s=n.computed(()=>o.windowSize-12),d=n.computed(()=>o.windowSize<o.dataSize),u=n.computed(()=>Math.ceil(o.offset*(s.value/o.dataSize))),p=n.computed(()=>Math.ceil(s.value*s.value/o.dataSize)),h=n.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return nn(i,(f,y)=>{const S=(u.value+f.dy)*o.dataSize/s.value;r("change:offset",S),y.x=f.x,y.y=f.y}),(f,y)=>(n.openBlock(),n.createElementBlock("div",{class:"t-scroll",style:n.normalizeStyle({height:`${f.windowSize}px`})},[n.createElementVNode("div",null,[d.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"handleRef",ref:i,class:"t-scroll__handle",style:n.normalizeStyle(h.value)},null,4)):n.createCommentVNode("",!0)])],4))}});function vw(t){return n.computed(()=>{const{data:e,settings:r}=t,{bodyWidth:o,scrollLeft:i}=e,s=[...e.columns],d=mb();r.value.controlColumn&&s.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=s.map(f=>{const y={...f,offset:u};return u+=f.width+no,y}),h=p.filter(f=>f.frozen);return Nb(p,f=>f.frozen?!1:i<f.offset+f.width&&f.offset<o+i).concat(h).map(f=>({...f,style:{left:f.frozen?`${f.offset}px`:`${f.offset-e.scrollLeft}px`,width:`${f.width}px`},control:f.id===d}))})}function yw(t,e){const r=n.computed(()=>e.value.reduce((o,i)=>(o[i.id]=i.justify?"justify-"+i.justify:"",o),{}));return n.computed(()=>t.rows.map(o=>{const i=r.value,{primaryKey:s,offset:d,dataRow:u,height:p}=o,h=e.value.map(f=>({id:f.id,column:f,row:o,value:u[f.id],class:i[f.id],editable:f.editable,width:f.width,style:f.style,control:f.control}));return fu({style:{top:`${d-t.scrollTop}px`,height:`${o.height}px`},primaryKey:s,offset:d,height:p,cells:h,selected:t.selectedRows.has(s)})}))}const bw=async(t,e)=>{const{scrollTop:r,bodyHeight:o}=t;return await db(0),gb({rows:e.getRows(r,o),dataWindow:t})};function ww(t){const e=n.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:t.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});n.watch(()=>t.settings,f=>{e.columns=ea(f.columns),e.currentWindow=void 0,f.dataSource.getHeight().then(y=>{e.dataHeight=y,h.updateBodyHeight()}).catch(y=>e.error=y)},{immediate:!0});const r=n.computed(()=>t.settings),o=n.computed(()=>e.columns.reduce((f,y)=>f+y.width+no,0)),i=n.computed(()=>hu(h.data.dataHeight-h.data.bodyHeight,f=>f>0?f:0)),s=n.computed(()=>hu(o.value-h.data.bodyWidth,f=>f>0?f:0)),d=n.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=vw({data:e,settings:r}),p=yw(e,u),h={data:e,settings:r,tableColumns:u,tableRows:p,adjustWidth:()=>{const f=e.columns.reduce((S,k)=>S+k.width+no,0),y=e.bodyWidth+e.scrollLeft;if(f<y){const S=e.columns[e.columns.length-1];S.width=S.width+(y-f)}},updateOffsets(f){this.updateScrollTop(e.scrollTop+f.deltaY),this.updateScrollLeft(e.scrollLeft+f.deltaX)},getSelectedRows(){return e.rows.filter(f=>e.selectedRows.has(f.primaryKey))},getSelectedColumns(){return e.columns.filter(f=>e.selectedColumns.has(f.id))},selectRow(f){e.selectedRows.add(f)},unselectRow(f){e.selectedRows.delete(f)},selectColumn(f){e.selectedColumns.add(f)},unselectColumn(f){e.selectedColumns.delete(f)},updateScrollTop(f){e.scrollTop=di(f,0,i.value)},updateScrollLeft(f){e.scrollLeft=di(f,0,s.value)},updateBodyHeight(){const{height:f}=t.settings,{dataHeight:y}=e,S=f>y?y:f;e.bodyHeight=S},updateDimensions(f){this.updateBodyHeight(),h.data.bodyWidth=f.width,h.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return n.watch(d,(f,y)=>{const S=f.current;(!S||f.scrollTop<S.scrollTop||f.scrollTop+f.bodyHeight>S.bodyHeight+S.scrollTop)&&(e.currentWindow={scrollTop:f.scrollTop-bu,bodyHeight:f.bodyHeight+bu*2},bw(ea(e.currentWindow),r.value.dataSource).then(({rows:k,dataWindow:D})=>{Ql(e.currentWindow,D)&&(e.rows=k)}))},{deep:!0,immediate:!0}),n.provide(yu,h),h}const xw={class:"command-menu__container"},Cw={key:0,class:"table-body__no-data"},_w={class:"carets"},rs=n.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(t,{emit:e}){const r=e,o=t,i=ww(o),s=n.computed(()=>i.data.rows.length===0),d=n.computed(()=>({height:s.value?"212px":i.data.bodyHeight+"px"}));n.watch(i.data,E=>r("update:data",E),{deep:!0}),n.watch(o,()=>f);const u=n.ref(),p=n.ref(),h=n.ref(),f=()=>{Mn(h.value,E=>{i.updateDimensions(E.getBoundingClientRect())})},y=i.tableColumns,S=i.tableRows,{mouseDown:k}=lw(i,u);n.onMounted(()=>{n.nextTick(f)}),n.watchPostEffect(()=>{n.unref(o.settings),n.nextTick(f)}),et(window,"resize",()=>n.nextTick(f));const D=E=>{E.preventDefault(),i.updateOffsets(E)};return(E,A)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:A[2]||(A[2]=(...w)=>n.unref(k)&&n.unref(k)(...w))},[n.createElementVNode("div",xw,[n.createVNode(uw),A[3]||(A[3]=n.createTextVNode()),n.createVNode(fw)]),A[7]||(A[7]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[n.createVNode(qb,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(y),(w,L)=>(n.openBlock(),n.createBlock(Qb,{key:L,col:w,style:n.normalizeStyle(w.style),"onChange:sort":A[0]||(A[0]=R=>E.$emit("change:sort",R))},null,8,["col","style"]))),128))]),_:1})],512),A[8]||(A[8]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"bodyRef",ref:h,class:"table-body",style:n.normalizeStyle(d.value),onWheel:D},[s.value?(n.openBlock(),n.createElementBlock("div",Cw,[n.createElementVNode("div",null,[n.createVNode(Wb),A[4]||(A[4]=n.createTextVNode()),A[5]||(A[5]=n.createElementVNode("div",null,"No Data To Show",-1))])])):n.createCommentVNode("",!0),A[6]||(A[6]=n.createTextVNode()),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(S),(w,L)=>(n.openBlock(),n.createBlock(Xb,{key:L,row:w},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(w.cells,R=>(n.openBlock(),n.createBlock(jb,{key:R.column.id+":"+L,cell:R,style:n.normalizeStyle(R.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),A[9]||(A[9]=n.createTextVNode()),n.createElementVNode("div",_w,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(y),(w,L)=>(n.openBlock(),n.createBlock(ew,{key:L,column:w,style:n.normalizeStyle(w.style),"onChange:sort":A[1]||(A[1]=R=>E.$emit("change:sort",R))},null,8,["column","style"]))),128))]),A[10]||(A[10]=n.createTextVNode()),n.createVNode(mw,{offset:n.unref(i).data.scrollTop,"window-size":n.unref(i).data.bodyHeight,"data-size":n.unref(i).data.dataHeight,"onChange:offset":n.unref(i).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),Cu=new WeakMap;class kw{constructor(e,r,o){sb(this,"dataHeight"),this.datum=e,this.resolveHeight=r,this.resolvePrimaryKey=o;const i=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+no,d),{total:0,indices:new Map});this.dataHeight=i.total;const s=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:gu(i.indices.get(u)),height:this.resolveHeight(d,u)}));Cu.set(this,s)}get rows(){return Cu.get(this)}async getHeight(){return this.dataHeight}async getRows(e,r){return Yb(this.rows,o=>{const i=o.offset;return e<i+o.height&&i<r+e})}}class Sw{constructor(e,r,o){this.api=e,this.rowHeight=r,this.resolvePrimaryKey=o}get height(){return this.rowHeight+no}async getHeight(){return await this.api.count()*this.height}async getRows(e,r){const o=di(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),i=Math.ceil(r+40/this.height);return(await this.api.query({offset:o,limit:i})).map((s,d)=>({dataRow:s,index:o+d,primaryKey:this.resolvePrimaryKey(s,o+d),offset:(o+d)*(this.rowHeight+no),height:this.rowHeight}))}}function Tw(t){return Object.freeze(t)}function Ew(t){return n.h(rs,{settings:Object.freeze(t)})}function ns(t,e){const r=new kw(t,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:r}}function Nw(t,e){return n.computed(()=>{const r=n.unref(t);return ns(r,n.unref(e))})}function Aw(t,e){const r=n.computed(()=>{const i=n.unref(t);return ns(i,n.unref(e))}),o=n.reactive({settings:r});return n.computed(()=>n.h(rs,o))}const Mw=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:Sw,Component:rs,factory:Ew,rawDataSettings:ns,settings:Tw,useRawData:Nw,useRawDataComponent:Aw},Symbol.toStringTag,{value:"Module"}));function*Bw(t,e){for(const r of t)yield e(r)}function Pw(t){const e=[];for(const r of t)e.push(r);return e}function _u(t){return t()}function os(t,e){if(t==null)throw Error(e);return t}function as(t){let e=!1;return function(...r){e||(requestAnimationFrame(()=>{t(...r),e=!1}),e=!0)}}function ku(t){return new Promise(e=>setTimeout(e,t))}function Su(t,e){const r=setTimeout(t,e);return()=>{clearTimeout(r)}}function Tu(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t}function Dw(t){let e="";for(let r=0;r<t;r++)e+=String.fromCharCode(Tu(65,91));return e}function Eu(t){return function(e){return 1-t(1-e)}}function Vw(t){return function(e){return e<.5?t(2*e)/2:(2-t(2*(1-e)))/2}}function Nu(t){const{duration:e,draw:r,timing:o}=t,i=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=(u-i)/e;(p>1||s)&&(p=1);const h=o(p);r(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Lw(t){const{getFraction:e,draw:r,timing:o}=t,i=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=e(u-i);if(s)return;p>1&&(p=1);const h=o(p);r(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Au(t,e){let r=-1;return(...o)=>{r!==-1&&(clearTimeout(r),r=-1),r=window.setTimeout(()=>t(...o),e)}}function Mu(t,e,r=!0){let o=0,i;return function(...s){i=()=>{t.apply(this,s),o=new Date().getTime()+e,i=null,r&&setTimeout(()=>{i&&i()},e)},new Date().getTime()>o&&i()}}function Iw(t){return t.map(e=>({text:String(e),value:e}))}function Bn(t){return t.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const is=new Map;function Fw(t){return is.has(t)||is.set(t,n.ref(localStorage.getItem(t))),os(is.get(t),"...")}function Rw(t,e){e==null?localStorage.removeItem(t):localStorage.setItem(t,e)}function Bu(t){const e=Fw(t);return n.watch(e,r=>Rw(t,r)),e}const ls=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>{Pw(Bw(ls.values(),e=>e(t.matches?"dark":"light")))});const Ow=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Pu=n.ref(Ow),ss=Bu("theme");function Du(t){const e=n.computed(()=>ss.value?ss.value:Pu.value),r=i=>{Pu.value=i,t&&t(i)};function o(){ss.value=e.value==="light"?"dark":(e.value,"light")}return n.watch(e,i=>{t&&t(n.unref(i))}),n.onMounted(()=>{ls.add(r)}),n.onUnmounted(()=>{ls.delete(r)}),[e,o]}const zw=n.defineComponent({__name:"ThemeSwitcher",setup(t){const[e,r]=Du();return(o,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ui-theme-switcher",n.unref(e)]),onClick:i[0]||(i[0]=(...s)=>n.unref(r)&&n.unref(r)(...s))},i[1]||(i[1]=[n.createElementVNode("div",null,null,-1)]),2))}}),Gw={class:"pl-layout-component pl-block-page"},jw={key:0,class:"pl-block-page__title"},Uw={class:"pl-block-page__title__append"},Zw={key:1},$w={class:"pl-block-page__body"},Ww={name:"PlBlockPage"},Hw=n.defineComponent({...Ww,setup(t){const e=n.useSlots();return(r,o)=>(n.openBlock(),n.createElementBlock("div",Gw,[n.unref(e).title?(n.openBlock(),n.createElementBlock("div",jw,[n.createElementVNode("h1",null,[n.renderSlot(r.$slots,"title")]),o[0]||(o[0]=n.createTextVNode()),n.createElementVNode("div",Uw,[n.renderSlot(r.$slots,"append")])])):(n.openBlock(),n.createElementBlock("div",Zw)),o[1]||(o[1]=n.createTextVNode()),n.createElementVNode("div",$w,[n.renderSlot(r.$slots,"default")])]))}}),qw={name:"PlContainer"},Kw=n.defineComponent({...qw,props:{width:{}},setup(t){const e=t,r=n.computed(()=>({width:e.width}));return(o,i)=>(n.openBlock(),n.createElementBlock("div",{class:"pl-container pl-layout-component",style:n.normalizeStyle(r.value)},[n.renderSlot(o.$slots,"default")],4))}}),Yw={name:"PlRow"},Jw=n.defineComponent({...Yw,props:{wrap:{type:Boolean},alignCenter:{type:Boolean}},setup(t){return(e,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[n.renderSlot(e.$slots,"default")],2))}}),Qw={class:"pl-layout-component",style:{"flex-grow":"1"}},Xw={name:"PlSpacer"},Vu=n.defineComponent({...Xw,setup(t){return(e,r)=>(n.openBlock(),n.createElementBlock("div",Qw))}}),e0={name:"PlGrid"},t0=n.defineComponent({...e0,props:{columns:{}},setup(t){const e=t,r=n.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(o,i)=>(n.openBlock(),n.createElementBlock("div",{class:"pl-layout-component pl-grid",style:n.normalizeStyle(r.value)},[n.renderSlot(o.$slots,"default")],4))}}),r0={key:0,class:"pl-alert__icon"},n0={class:"pl-alert__main"},o0={key:0},a0={class:"pl-alert__main__text"},i0={name:"PlAlert"},l0=n.defineComponent({...i0,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(t){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(r,o)=>r.modelValue?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["pl-alert",[{monospace:r.monospace,whiteSpacePre:r.whiteSpacePre},r.type?`pl-alert__${r.type}`:""]]),style:n.normalizeStyle({maxHeight:r.maxHeight})},[r.icon&&r.type?(n.openBlock(),n.createElementBlock("div",r0,[n.createElementVNode("div",{class:n.normalizeClass(`icon-24 icon-${e[r.type]}`)},null,2)])):n.createCommentVNode("",!0),o[2]||(o[2]=n.createTextVNode()),n.createElementVNode("div",n0,[r.label?(n.openBlock(),n.createElementBlock("label",o0,n.toDisplayString(r.label),1)):n.createCommentVNode("",!0),o[1]||(o[1]=n.createTextVNode()),n.createElementVNode("div",a0,[n.renderSlot(r.$slots,"default")])]),o[3]||(o[3]=n.createTextVNode()),r.closeable?(n.openBlock(),n.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:o[0]||(o[0]=i=>r.$emit("update:modelValue",!1))})):n.createCommentVNode("",!0)],6)):n.createCommentVNode("",!0)}}),ta=n.defineComponent({__name:"PlMaskIcon16",props:{name:{},size:{}},setup(t){const e=t,r=n.computed(()=>e.size==="large"?"--mask-size: 24px":""),o=n.computed(()=>`mask-16 mask-${e.name}`);return(i,s)=>(n.openBlock(),n.createElementBlock("i",{style:n.normalizeStyle(r.value),class:n.normalizeClass(o.value)},null,6))}});function Lu(t){function e(r){const o=r.currentTarget,i=document.createElement("span"),s=Math.max(o.clientWidth,o.clientHeight),d=s/2;i.style.width=i.style.height=`${s}px`,i.style.left=`${r.clientX-o.offsetLeft-d}px`,i.style.top=`${r.clientY-o.offsetTop-d}px`,i.classList.add("ripple");const u=o.getElementsByClassName("ripple")[0];u&&u.remove(),o.appendChild(i)}n.onMounted(()=>{var r;(r=t.value)==null||r.addEventListener("click",e)})}const s0={key:0},c0={inheritAttrs:!1},pi=n.defineComponent({...c0,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(t){const e=t,r=n.ref(),o=n.computed(()=>e.small||e.size==="small"),i=n.computed(()=>e.large||e.size==="large");return Lu(r),(s,d)=>(n.openBlock(),n.createElementBlock("button",n.mergeProps({ref_key:"btn",ref:r,tabindex:"0",class:{loading:s.loading,small:o.value,large:i.value,round:s.round,reverse:s.reverse,justifyCenter:s.justifyCenter,[s.$attrs.class+""]:!0}},{...s.$attrs,disabled:!!s.$attrs.disabled||s.loading}),[s.round?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("span",s0,[n.renderSlot(s.$slots,"default")])),d[0]||(d[0]=n.createTextVNode()),s.loading?(n.openBlock(),n.createBlock(n.unref(ta),{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(n.openBlock(),n.createBlock(n.unref(ta),{key:2,name:s.icon,size:s.size},null,8,["name","size"])):n.createCommentVNode("",!0)],16))}}),d0={name:"PlBtnPrimary"},cs=n.defineComponent({...d0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(t){const e=t;return(r,o)=>(n.openBlock(),n.createBlock(pi,n.mergeProps({class:"pl-btn-primary"},e),{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},16))}}),u0={name:"PlBtnAccent"},p0=n.defineComponent({...u0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(t){const e=t;return(r,o)=>(n.openBlock(),n.createBlock(pi,n.mergeProps({class:"pl-btn-accent"},e),{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},16))}}),g0={name:"PlBtnDanger"},h0=n.defineComponent({...g0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(t){const e=t;return(r,o)=>(n.openBlock(),n.createBlock(pi,n.mergeProps({class:"pl-btn-danger"},e),{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},16))}}),f0={name:"PlBtnSecondary"},ds=n.defineComponent({...f0,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(t){const e=t;return(r,o)=>(n.openBlock(),n.createBlock(pi,n.mergeProps(e,{class:"pl-btn-secondary"}),{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},16))}}),m0={key:0},v0={name:"PlBtnGhost"},us=n.defineComponent({...v0,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(t){const e=t,r=n.computed(()=>e.size==="small"),o=n.computed(()=>e.size==="large"),i=n.ref(),s=n.useSlots();return Lu(i),(d,u)=>(n.openBlock(),n.createElementBlock("button",n.mergeProps({ref_key:"btnRef",ref:i,tabindex:"0",class:["pl-btn-ghost",{loading:d.loading,small:r.value,large:o.value,round:d.round,reverse:d.reverse,justifyCenter:d.justifyCenter,[d.$attrs.class+""]:!0}]},{...d.$attrs,disabled:!!d.$attrs.disabled||d.loading}),[n.unref(s).default&&!d.round?(n.openBlock(),n.createElementBlock("span",m0,[n.renderSlot(d.$slots,"default")])):n.createCommentVNode("",!0),u[0]||(u[0]=n.createTextVNode()),d.loading?(n.openBlock(),n.createBlock(n.unref(ta),{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(n.openBlock(),n.createBlock(n.unref(ta),{key:2,name:d.icon,size:d.size},null,8,["name","size"])):n.createCommentVNode("",!0),u[1]||(u[1]=n.createTextVNode()),n.renderSlot(d.$slots,"append")],16))}}),y0=n.defineComponent({__name:"PlBtnLink",props:{loading:{type:Boolean},size:{},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean},disabled:{type:Boolean}},setup(t){const e=t,r=n.ref(!1);return(o,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ui-btn-link",{disabled:o.disabled,loading:o.loading,hover:r.value}]),onMouseover:i[0]||(i[0]=s=>r.value=!0),onMouseleave:i[1]||(i[1]=s=>r.value=!1)},[n.createVNode(ds,n.mergeProps({round:"",hover:r.value},e),null,16,["hover"]),i[2]||(i[2]=n.createTextVNode()),n.renderSlot(o.$slots,"default")],34))}});function ra(t,e){const r=as(()=>{if(t.value){const{scrollTop:o,scrollLeft:i,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,h=t.value.getBoundingClientRect();e({scrollTop:o,scrollLeft:i,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:o+h.y,offsetX:i+h.x,top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.width,height:h.height,x:h.x,y:h.y})}});n.onMounted(r),et(window,"scroll",r,{capture:!0,passive:!0}),et(window,"resize",r,{passive:!0}),et(window,"adjust",r,!0)}function b0(t,e){const r=n.ref();return ra(t,o=>{r.value=o}),n.computed(()=>{const o=n.unref(r),i=n.unref(e),s=i.position??"top",d=i.gap??8;if(!o)return"";const u=o.offsetY+Math.floor(o.height/2),p=o.offsetX+Math.floor(o.width/2);return s==="top-left"?`left: ${o.offsetX}px; top: ${o.offsetY-d}px;`:s==="top"?`left: ${p}px; top: ${o.offsetY-d}px;`:s==="right"?`left: ${o.offsetX+o.width+d}px; top: ${u}px;`:s==="left"?`right: ${o.scrollWidth-o.x+d}px; top: ${u}px;`:""})}function na(t,e){return e(t)}function ot(t,e){if(t!=null)return e(t)}function w0(t){return Array.isArray(t)?t:[t]}function x0(t,e,...r){r.forEach(o=>{t[o]=e[o]})}function gi(t,e){et(document,"click",r=>{document.contains(r.target)&&(w0(t).map(o=>o.value).filter(o=>!!o).some(o=>o==null?void 0:o.contains(r.target))||e())})}const C0={},_0={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k0(t,e){return n.openBlock(),n.createElementBlock("svg",_0,e[0]||(e[0]=[n.createElementVNode("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const S0=rn(C0,[["render",k0]]),ps=new Map,T0={name:"PlTooltip"},Vt=n.defineComponent({...T0,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"}},emits:["tooltip:close"],setup(t,{emit:e}){const r=e,o=Symbol(),i=t,s=n.reactive({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});ps.set(o,()=>h()),n.watch(()=>s.open,E=>{requestAnimationFrame(()=>{s.tooltipOpen=E})});let d=()=>{};const u=Mu(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[E,A]of ps.entries())E!==o&&A()},h=()=>{s.open=!1,r("tooltip:close")},f=async()=>{i.hide||(u(),s.over=!0,d(),await ku(100),s.over&&p())},y=()=>{s.over=!1,d=Su(()=>{s.over||h()},i.closeDelay)};n.watch(()=>i.hide,E=>{E&&h()});const S=n.ref(),k=n.ref(),D=b0(S,n.toRef(i));return gi([S,k],()=>h()),n.onUnmounted(()=>{ps.delete(o)}),(E,A)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(E.element),n.mergeProps(E.$attrs,{ref_key:"rootRef",ref:S,onClick:f,onMouseover:f,onMouseleave:y}),{default:n.withCtx(()=>[n.renderSlot(E.$slots,"default"),A[1]||(A[1]=n.createTextVNode()),E.$slots.tooltip&&s.open?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"body"},[n.createVNode(n.Transition,{name:"tooltip-transition"},{default:n.withCtx(()=>[s.tooltipOpen?(n.openBlock(),n.createElementBlock("div",{key:0,class:"pl-tooltip__container",style:n.normalizeStyle(n.unref(D))},[n.createElementVNode("div",{ref_key:"tooltip",ref:k,class:n.normalizeClass(["pl-tooltip",E.position]),onMouseover:f,onMouseleave:y},[n.createElementVNode("div",null,[n.renderSlot(E.$slots,"tooltip")]),A[0]||(A[0]=n.createTextVNode()),n.createVNode(S0)],34)],4)):n.createCommentVNode("",!0)]),_:3})])):n.createCommentVNode("",!0)]),_:3},16))}}),E0={},N0={class:"inner-border"};function A0(t,e,r,o,i,s){return n.openBlock(),n.createElementBlock("div",N0,[n.renderSlot(t.$slots,"default")])}const M0=rn(E0,[["render",A0]]),B0={key:0},P0=["tabindex","onKeydown","onClick"],D0={key:1,class:"ui-btn-group__helper"},V0={key:2,class:"ui-btn-group__error"},L0={name:"PlBtnGroup"},I0=n.defineComponent({...L0,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.useSlots(),o=e,i=u=>o("update:modelValue",u),s=t,d=n.computed(()=>s.options.map(u=>({label:"label"in u?u.label:u.text,value:u.value})));return(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ui-btn-group",{disabled:u.disabled}])},[u.label?(n.openBlock(),n.createElementBlock("label",B0,[n.createElementVNode("span",null,n.toDisplayString(u.label),1),p[0]||(p[0]=n.createTextVNode()),n.unref(r).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(u.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),p[1]||(p[1]=n.createTextVNode()),n.createVNode(M0,{class:"ui-btn-group__container"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(h,f)=>(n.openBlock(),n.createElementBlock("div",{key:f,class:n.normalizeClass(["ui-btn-group__option text-s",{active:u.modelValue===h.value}]),tabindex:u.modelValue===h.value||u.disabled?void 0:0,onKeydown:n.withKeys(y=>i(h.value),["enter"]),onClick:y=>i(h.value)},n.toDisplayString(h.label),43,P0))),128))]),_:1}),p[2]||(p[2]=n.createTextVNode()),u.helper?(n.openBlock(),n.createElementBlock("div",D0,n.toDisplayString(u.helper),1)):u.error?(n.openBlock(),n.createElementBlock("div",V0,n.toDisplayString(u.error),1)):n.createCommentVNode("",!0)],2))}}),F0={inheritAttrs:!1},R0={class:"double-contour"};function O0(t,e,r,o,i,s){return n.openBlock(),n.createElementBlock("div",R0,[n.createElementVNode("div",n.normalizeProps(n.guardReactiveProps(t.$attrs)),[n.renderSlot(t.$slots,"default")],16)])}const on=rn(F0,[["render",O0]]);function Iu(t){n.onMounted(t),n.onUpdated(t)}const gs=new WeakMap,hs=new ResizeObserver(t=>{for(const e of t)ot(gs.get(e.target),r=>r(e))});function Fu(t,e){gs.set(t,e),hs.unobserve(t),hs.observe(t)}function Ru(t){hs.unobserve(t),gs.delete(t)}const z0=8,Ou=4;function Vr(t,e="label"){const r=new Set;Iu(()=>{ot(t==null?void 0:t.value,o=>{const i=o.querySelector(e);i&&(r.add(i),Fu(i,()=>{const s=_u(()=>i.getBoundingClientRect().width+na(z0,d=>Number.isNaN(d)?Ou:d+Ou));o.style.getPropertyValue("--label-offset-right-x")!==`${s}px`&&o.style.setProperty("--label-offset-right-x",`${s}px`)}))})}),n.onBeforeUnmount(()=>{Array.from(r.values()).map(o=>Ru(o))})}function G0(t,e){const r=[];return e&&e.length>0&&e.forEach(o=>{const i=o(t);typeof i=="string"&&r.push(i)}),{isValid:r.length===0,errors:r}}function zu(t,e){return n.computed(()=>G0(t.value,e))}const j0=n.defineComponent({__name:"PlIcon16",props:{name:{},size:{}},setup(t){const e=t,r=n.computed(()=>e.size==="large"?"--icon-size: 24px":""),o=n.computed(()=>`icon-16 icon-${e.name}`);return(i,s)=>(n.openBlock(),n.createElementBlock("i",{style:n.normalizeStyle(r.value),class:n.normalizeClass([o.value,i.$style.icon])},null,6))}}),U0="_icon_1ugxm_2",Z0={icon:U0},$0={$style:Z0},hi=rn(j0,[["__cssModules",$0]]),W0=n.defineComponent({__name:"PlIcon24",props:{name:{},size:{}},setup(t){const e=t,r=n.computed(()=>`icon-24 icon-${e.name}`);return(o,i)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass([r.value,o.$style.icon])},null,2))}}),H0="_icon_1ugxm_2",q0={icon:H0},K0={$style:q0},Gu=rn(W0,[["__cssModules",K0]]),Y0={class:"pl-text-field__envelope"},J0={key:0,ref:"label"},Q0={key:0,class:"required-icon"},X0={key:1,class:"pl-text-field__prefix"},ex=["disabled","placeholder","type"],tx={class:"pl-text-field__append"},rx={key:0,class:"pl-text-field__error"},nx={key:1,class:"pl-text-field__helper"},ox={name:"PlTextField"},ju=n.defineComponent({...ox,props:n.mergeModels({label:{},clearable:{type:[Boolean,Function]},parse:{type:Function},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=n.useSlots(),r=n.useModel(t,"modelValue"),o=t,i=n.ref(void 0),s=n.ref(),d=n.ref(!1),u=n.reactive({cached:void 0}),p=n.computed({get(){return u.cached?u.cached.value:r.value===void 0||r.value===null?"":String(r.value)},set(H){if(u.cached=void 0,o.parse)try{r.value=o.parse(H)}catch(G){u.cached={error:G instanceof Error?G.message:String(G),value:H}}else r.value=H}}),h=n.computed(()=>o.type&&o.type==="password"?d.value?"text":o.type:"text"),f=n.computed(()=>d.value?"view-show":"view-hide"),y=()=>{o.clearable&&(u.cached=void 0,r.value=o.clearable===!0?"":o.clearable())},S=zu(p,o.rules||[]),k=n.computed(()=>o.clearable?o.clearable===!0?r.value==="":r.value===o.clearable():r.value===""),D=n.computed(()=>!k.value),E=n.computed(()=>{const H=[];return o.error&&H.push(o.error),u.cached&&H.push(u.cached.error),S.value.isValid||H.push(...S.value.errors),H}),A=n.computed(()=>E.value.length>0),w=n.computed(()=>o.clearable&&D.value&&o.type!=="password"),L=()=>d.value=!d.value,R=()=>{u.cached=void 0};return Vr(i),(H,G)=>(n.openBlock(),n.createElementBlock("div",Y0,[n.createElementVNode("div",{ref_key:"rootRef",ref:i,class:n.normalizeClass(["pl-text-field",{error:A.value,disabled:H.disabled,dashed:H.dashed,nonEmpty:D.value}])},[H.label?(n.openBlock(),n.createElementBlock("label",J0,[H.required?(n.openBlock(),n.createElementBlock("i",Q0)):n.createCommentVNode("",!0),G[1]||(G[1]=n.createTextVNode()),n.createElementVNode("span",null,n.toDisplayString(H.label),1),G[2]||(G[2]=n.createTextVNode()),n.unref(e).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:1,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(H.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)],512)):n.createCommentVNode("",!0),G[5]||(G[5]=n.createTextVNode()),H.prefix?(n.openBlock(),n.createElementBlock("div",X0,n.toDisplayString(H.prefix),1)):n.createCommentVNode("",!0),G[6]||(G[6]=n.createTextVNode()),n.withDirectives(n.createElementVNode("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":G[0]||(G[0]=K=>p.value=K),disabled:H.disabled,placeholder:H.placeholder||"...",type:h.value,spellcheck:"false",onFocusout:R},null,40,ex),[[n.vModelDynamic,p.value]]),G[7]||(G[7]=n.createTextVNode()),n.createElementVNode("div",tx,[w.value?(n.openBlock(),n.createBlock(n.unref(hi),{key:0,name:"delete-clear",onClick:y})):n.createCommentVNode("",!0),G[3]||(G[3]=n.createTextVNode()),H.type==="password"?(n.openBlock(),n.createBlock(n.unref(Gu),{key:1,name:f.value,style:{cursor:"pointer"},onClick:L},null,8,["name"])):n.createCommentVNode("",!0),G[4]||(G[4]=n.createTextVNode()),n.renderSlot(H.$slots,"append")]),G[8]||(G[8]=n.createTextVNode()),n.createVNode(on,{class:"pl-text-field__contour"})],2),G[9]||(G[9]=n.createTextVNode()),A.value?(n.openBlock(),n.createElementBlock("div",rx,n.toDisplayString(E.value.join(" ")),1)):H.helper?(n.openBlock(),n.createElementBlock("div",nx,n.toDisplayString(H.helper),1)):n.createCommentVNode("",!0)]))}}),ax={class:"ui-text-area__envelope"},ix={key:0,ref:"label"},lx={key:0,class:"required-icon"},sx=["readonly","rows","disabled","placeholder"],cx={class:"ui-text-area__append"},dx={key:0,class:"ui-text-area__error"},ux={key:1,class:"ui-text-area__helper"},px={name:"PlTextArea"},gx=n.defineComponent({...px,props:{modelValue:{},label:{},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},dashed:{type:Boolean},rows:{},autogrow:{type:Boolean},rules:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.useSlots(),o=e,i=t,s=n.ref(),d=n.ref(),u=n.computed({get(){return i.modelValue??""},set(k){o("update:modelValue",k)}}),p=n.computed(()=>!!i.modelValue),h=zu(u,i.rules||[]);Vr(s);const f=n.computed(()=>{const k=[];return i.error&&k.push(i.error),k.push(...h.value.errors),k}),y=n.computed(()=>f.value.length>0),S=()=>{if(!i.autogrow)return;const k=d.value;k&&(k.style.height="auto",k.style.height=`${k.scrollHeight}px`)};return n.onMounted(()=>{S()}),(k,D)=>(n.openBlock(),n.createElementBlock("div",ax,[n.createElementVNode("div",{ref_key:"root",ref:s,class:n.normalizeClass(["ui-text-area",{error:y.value,disabled:k.disabled,dashed:k.dashed,nonEmpty:p.value}])},[k.label?(n.openBlock(),n.createElementBlock("label",ix,[k.required?(n.openBlock(),n.createElementBlock("i",lx)):n.createCommentVNode("",!0),D[1]||(D[1]=n.createTextVNode()),n.createElementVNode("span",null,n.toDisplayString(k.label),1),D[2]||(D[2]=n.createTextVNode()),n.unref(r).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:1,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(k.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)],512)):n.createCommentVNode("",!0),D[3]||(D[3]=n.createTextVNode()),n.withDirectives(n.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":D[0]||(D[0]=E=>u.value=E),readonly:k.readonly,rows:k.rows,disabled:k.disabled,placeholder:k.placeholder??"...",spellcheck:"false",onInput:S},null,40,sx),[[n.vModelText,u.value]]),D[4]||(D[4]=n.createTextVNode()),n.createElementVNode("div",cx,[n.renderSlot(k.$slots,"append")]),D[5]||(D[5]=n.createTextVNode()),n.createVNode(on,{class:"ui-text-area__contour"})],2),D[6]||(D[6]=n.createTextVNode()),y.value?(n.openBlock(),n.createElementBlock("div",dx,n.toDisplayString(f.value.join(" ")),1)):k.helper?(n.openBlock(),n.createElementBlock("div",ux,n.toDisplayString(k.helper),1)):n.createCommentVNode("",!0)]))}});function Uu(t,e){const r=t.scrollTop,o=t.getBoundingClientRect().height,i=e.offsetTop,s=e.getBoundingClientRect().height;return i+s<o+r&&i>r}function Zu(t,e){const r=t.scrollTop,o=t.getBoundingClientRect().height,i=e.offsetTop,s=e.getBoundingClientRect().height;return i+s<o+r?"ceil":i>r?"floor":"visible"}function oa(t,e,r={}){const o=t.scrollTop,i=t.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=Zu(t,e);if(u==="visible")return;const p=h=>{const f=u==="floor"?d-(i-s):d;t.scrollTop=o+h*(f-o)};Uu(t,e)||Nu({duration:r.duration||100,timing:Eu(h=>h),draw:p})}function fs(t,e,r,o){return t.addEventListener(e,r,o),function(){t.removeEventListener(e,r)}}function hx(t,e){const r=e.getBoundingClientRect();return t.x<r.x||t.x>r.x+r.width||t.y<r.y||t.y>r.y+r.height}function $u(t){return t!==null&&typeof t=="object"}function Et(t,e){return $u(t)&&$u(e)?Object.keys(t).length!==Object.keys(e).length?!1:Object.keys(t).every(r=>Et(t[r],e[r])):t===e}function ms(t,e){return t.some(r=>Et(r,e))}const fx=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
58
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 4.5H4.5L4.5 19.5H19.5V4.5ZM4.5 3C3.67157 3 3 3.67157 3 4.5V19.5C3 20.3284 3.67157 21 4.5 21H19.5C20.3284 21 21 20.3284 21 19.5V4.5C21 3.67157 20.3284 3 19.5 3H4.5Z" fill="#110529"/>
|
|
19
59
|
</svg>
|
|
20
|
-
`,
|
|
60
|
+
`,mx=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
21
61
|
<rect x="3" y="3" width="18" height="18" rx="2" fill="#110529"/>
|
|
22
62
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5431 8.51724L10.3333 16.0875L6.45691 12.0172L7.54312 10.9828L10.3333 13.9125L16.4569 7.48276L17.5431 8.51724Z" fill="white"/>
|
|
23
63
|
</svg>
|
|
24
|
-
`,Ub=["innerHTML"],Hb={class:"dropdown-list-item__title-container"},Wb={class:"dropdown-list-item__title text-s"},qb={key:0,class:"dropdown-list-item__description text-description"},Yb={key:1,class:"dropdown-list-item__icon flex-self-start"},Qa=t.defineComponent({__name:"DropdownListItem",props:{option:{},isSelected:{type:Boolean,default:!1},size:{default:"small"},isHovered:{type:Boolean,default:!1},useCheckbox:{type:Boolean,default:!1}},setup(a){const e=a,r=t.computed(()=>{const s=[];return e.size==="small"&&s.push("dropdown-list-item__small"),e.isSelected&&s.push("dropdown-list-item__selected"),e.isHovered&&s.push("hovered-item"),s.join(" ")}),i=t.computed(()=>{const s=["dropdown-list-item__checkbox","flex-self-start"];return e.isSelected&&s.push("checked"),s.join(" ")}),l=t.computed(()=>e.isSelected?Zb:$b);return(s,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.value,"dropdown-list-item"])},[e.useCheckbox?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.value),innerHTML:l.value},null,10,Ub)):t.createCommentVNode("",!0),d[1]||(d[1]=t.createTextVNode()),t.createElementVNode("div",Hb,[t.createElementVNode("div",Wb,t.toDisplayString(s.option.label),1),d[0]||(d[0]=t.createTextVNode()),s.option.description?(t.openBlock(),t.createElementBlock("div",qb,t.toDisplayString(s.option.description),1)):t.createCommentVNode("",!0)]),d[2]||(d[2]=t.createTextVNode()),!e.useCheckbox&&e.isSelected?(t.openBlock(),t.createElementBlock("div",Yb)):t.createCommentVNode("",!0)],2))}}),ts=t.defineComponent({__name:"LongText",setup(a){t.useCssVars(m=>({"8d68520c":d.value}));const e=t.ref(!1),r=t.ref(),i=t.ref(!1),l=t.computed(()=>i.value&&e.value?"ui-lt-animate":""),s=Hd(m=>i.value=m,500),d=t.computed(()=>{var m;return r.value?`${((m=r.value)==null?void 0:m.innerHTML.length)*.4}s`:"5s"});function u(){const m=$l(r.value,"span cannot be empty");e.value=m.clientWidth<m.scrollWidth}function p(){u(),s(!0)}function f(){s(!1)}return(m,_)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps(m.$attrs,{class:"ui-lt-container"}),[t.createElementVNode("span",{onMouseover:p,onMouseleave:f},[t.createElementVNode("span",{ref_key:"span",ref:r,class:t.normalizeClass(l.value)},[t.renderSlot(m.$slots,"default")],2)],32)],16))}}),Or=t.defineComponent({__name:"PlMaskIcon24",props:{name:{},size:{}},setup(a){const e=a,r=t.computed(()=>`mask-24 mask-${e.name}`);return(i,l)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(r.value)},null,2))}}),Gb={class:"pl-dropdown__envelope"},Kb=["tabindex"],Jb={class:"pl-dropdown__container"},Qb={class:"pl-dropdown__field"},Xb=["disabled","placeholder"],ev={class:"pl-dropdown__controls"},tv={key:0},rv={key:0,class:"required-icon"},nv={key:0,class:"nothing-found"},av={key:0,class:"pl-dropdown__error"},ov={key:1,class:"pl-dropdown__helper"},iv={key:2,class:"pl-dropdown__helper"},lv={name:"PlDropdown"},rs=t.defineComponent({...lv,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},arrowIcon:{default:void 0},arrowIconLarge:{default:void 0},optionSize:{default:"small"}},emits:["update:modelValue"],setup(a,{emit:e}){const r=e,i=a,l=t.useSlots(),s=t.ref(),d=t.ref(),u=t.ref(),p=t.reactive({search:"",activeIndex:-1,open:!1,optionsHeight:0}),f=()=>Ka(I.value.findIndex(V=>St(V.value,i.modelValue)),V=>V<0?0:V),m=()=>p.activeIndex=f(),_=t.computed(()=>i.options===void 0),C=t.computed(()=>_.value?!0:i.disabled),T=t.computed(()=>(i.options??[]).findIndex(V=>St(V.value,i.modelValue))),O=t.computed(()=>{if(!_.value){if(i.error)return i.error;if(i.modelValue!==void 0&&T.value===-1)return"The selected value is not one of the options"}}),S=t.computed(()=>Nn(i.options??[]).map((V,R)=>({...V,index:R,isSelected:R===T.value,isActive:R===p.activeIndex}))),M=t.computed(()=>{const V=t.unref(S).find(R=>St(R.value,i.modelValue));return(V==null?void 0:V.label)||i.modelValue}),v=t.computed(()=>!p.open&&i.modelValue?"":i.modelValue?String(M.value):i.placeholder),A=t.computed(()=>i.modelValue!==void 0&&i.modelValue!==null),I=t.computed(()=>{const V=S.value;return p.search?V.filter(R=>{const Q=p.search.toLowerCase();return R.label.toLowerCase().includes(Q)||R.description&&R.description.toLowerCase().includes(Q)?!0:typeof R.value=="string"?R.value.toLowerCase().includes(Q):R.value===p.search}):V}),W=t.computed(()=>C.value?void 0:"0"),j=V=>{var R;r("update:modelValue",V),p.search="",p.open=!1,(R=s==null?void 0:s.value)==null||R.focus()},Y=()=>r("update:modelValue",void 0),F=()=>{var V;return(V=u.value)==null?void 0:V.focus()},B=()=>p.open=!p.open,H=()=>p.open=!0,D=V=>{var R,Q;const ye=V.relatedTarget;!((R=s.value)!=null&&R.contains(ye))&&!((Q=d.value)!=null&&Q.contains(ye))&&(p.search="",p.open=!1)},J=()=>{const V=d.value;V&&nt(V.querySelector(".hovered-item"),R=>{Ja(V,R)})},de=V=>{var R,Q;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(V.code))V.preventDefault();else return;const{open:ye,activeIndex:_e}=p;if(!ye){V.code==="Enter"&&(p.open=!0);return}V.code==="Escape"&&(p.open=!1,(R=s.value)==null||R.focus());const Rt=t.unref(I),{length:Ht}=Rt;if(!Ht)return;V.code==="Enter"&&j((Q=Rt.find(xo=>xo.index===_e))==null?void 0:Q.value);const Tt=Rt.findIndex(xo=>xo.index===_e)??-1,wo=V.code==="ArrowDown"?1:V.code==="ArrowUp"?-1:0,In=Math.abs(Tt+wo+Ht)%Ht;p.activeIndex=I.value[In].index??-1};Ar(s),t.watch(()=>i.modelValue,m,{immediate:!0}),t.watch(()=>p.open,V=>{var R;return V?(R=u.value)==null?void 0:R.focus():""}),t.watchPostEffect(()=>{p.search,p.activeIndex>=0&&p.open&&J()});const Z=t.reactive({top:"0px",left:"0px",width:"0px"});return t.watch(d,V=>{if(V){const R=V.getBoundingClientRect();p.optionsHeight=R.height,window.dispatchEvent(new CustomEvent("adjust"))}}),Ga(s,V=>{const R=V.top+V.height+3;R+p.optionsHeight>V.clientHeight?Z.top=V.top-p.optionsHeight-3+"px":Z.top=R+"px",Z.left=V.left+"px",Z.width=V.width+"px"}),(V,R)=>(t.openBlock(),t.createElementBlock("div",Gb,[t.createElementVNode("div",{ref_key:"root",ref:s,tabindex:W.value,class:t.normalizeClass(["pl-dropdown",{open:p.open,error:V.error,disabled:C.value}]),onKeydown:de,onFocusout:D},[t.createElementVNode("div",Jb,[t.createElementVNode("div",Qb,[t.withDirectives(t.createElementVNode("input",{ref_key:"input",ref:u,"onUpdate:modelValue":R[0]||(R[0]=Q=>p.search=Q),type:"text",tabindex:"-1",disabled:C.value,placeholder:v.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:H},null,40,Xb),[[t.vModelText,p.search]]),R[4]||(R[4]=t.createTextVNode()),p.open?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,onClick:F},[t.createVNode(ts,{class:"input-value"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(M.value),1)]),_:1})])),R[5]||(R[5]=t.createTextVNode()),t.createElementVNode("div",ev,[_.value?(t.openBlock(),t.createBlock(t.unref(Or),{key:0,name:"loading"})):t.createCommentVNode("",!0),R[1]||(R[1]=t.createTextVNode()),V.clearable&&A.value?(t.openBlock(),t.createBlock(t.unref(li),{key:1,name:"delete-clear",onClick:t.withModifiers(Y,["stop"])})):t.createCommentVNode("",!0),R[2]||(R[2]=t.createTextVNode()),t.renderSlot(V.$slots,"append"),R[3]||(R[3]=t.createTextVNode()),V.arrowIconLarge?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["arrow-icon",[`icon-24 ${V.arrowIconLarge}`]]),onClick:t.withModifiers(B,["stop"])},null,2)):V.arrowIcon?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(["arrow-icon",[`icon-16 ${V.arrowIcon}`]]),onClick:t.withModifiers(B,["stop"])},null,2)):(t.openBlock(),t.createElementBlock("div",{key:4,class:"arrow-icon arrow-icon-default",onClick:t.withModifiers(B,["stop"])}))])]),R[9]||(R[9]=t.createTextVNode()),V.label?(t.openBlock(),t.createElementBlock("label",tv,[V.required?(t.openBlock(),t.createElementBlock("i",rv)):t.createCommentVNode("",!0),R[6]||(R[6]=t.createTextVNode()),t.createElementVNode("span",null,t.toDisplayString(V.label),1),R[7]||(R[7]=t.createTextVNode()),t.unref(l).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:1,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(V.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),R[10]||(R[10]=t.createTextVNode()),p.open?(t.openBlock(),t.createBlock(t.Teleport,{key:1,to:"body"},[t.createElementVNode("div",{ref_key:"list",ref:d,class:"pl-dropdown__options",style:t.normalizeStyle(Z),tabindex:"-1"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(Q,ye)=>(t.openBlock(),t.createBlock(Qa,{key:ye,option:Q,"is-selected":Q.isSelected,"is-hovered":Q.isActive,size:V.optionSize,onClick:t.withModifiers(_e=>j(Q.value),["stop"])},null,8,["option","is-selected","is-hovered","size","onClick"]))),128)),R[8]||(R[8]=t.createTextVNode()),I.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",nv,"Nothing found"))],4)])):t.createCommentVNode("",!0),R[11]||(R[11]=t.createTextVNode()),t.createVNode(tn,{class:"pl-dropdown__contour"})])],42,Kb),R[12]||(R[12]=t.createTextVNode()),O.value?(t.openBlock(),t.createElementBlock("div",av,t.toDisplayString(O.value),1)):_.value&&V.loadingOptionsHelper?(t.openBlock(),t.createElementBlock("div",ov,t.toDisplayString(V.loadingOptionsHelper),1)):V.helper?(t.openBlock(),t.createElementBlock("div",iv,t.toDisplayString(V.helper),1)):t.createCommentVNode("",!0)]))}}),sv={name:"PlDropdownRef"},cv=t.defineComponent({...sv,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},optionSize:{default:"small"}},emits:["update:modelValue"],setup(a){const e=a,r=t.computed(()=>{var l;return(l=e.options)==null?void 0:l.map(s=>({label:s.label,value:s.ref}))}),i=t.computed(()=>e.disabled?"icon-link-disabled":"icon-link");return(l,s)=>(t.openBlock(),t.createBlock(t.unref(rs),t.mergeProps(e,{options:r.value,"loading-options-helper":l.loadingOptionsHelper,"arrow-icon-large":i.value,"onUpdate:modelValue":s[0]||(s[0]=d=>l.$emit("update:modelValue",d))}),null,16,["options","loading-options-helper","arrow-icon-large"]))}});function dv(a,e){return t.computed(()=>{const r=Nn(a.value);return e.value?r.filter(i=>i.label.toLowerCase().includes(e.value.toLowerCase())):r})}const uv={class:"resizable-input"},gv=["placeholder","value","disabled"],pv=t.defineComponent({__name:"ResizableInput",props:{modelValue:{},placeholder:{},value:{},disabled:{type:Boolean},maxWidth:{},width:{}},emits:["input","update:modelValue"],setup(a,{emit:e}){const r=a,i=e,l=t.computed(()=>{var u;return r.placeholder?r.placeholder:(u=r.modelValue||r.value)==null?void 0:u.replace('"',"")}),s=t.computed(()=>{const u={};return r.width&&(u.width=r.width),r.maxWidth&&(u.maxWidth=r.maxWidth),u});function d(u){const p=u.target.value;i("update:modelValue",p)}return(u,p)=>(t.openBlock(),t.createElementBlock("div",uv,[t.createElementVNode("span",{style:t.normalizeStyle(s.value),class:"resizable-input__size-span"},t.toDisplayString(l.value),5),p[0]||(p[0]=t.createTextVNode()),t.createElementVNode("input",t.mergeProps(u.$attrs,{placeholder:u.placeholder,value:r.modelValue,disabled:r.disabled,style:s.value,onInput:d}),null,16,gv)]))}}),fv={class:"dropdown-tab-item__title text-caps13"},hv=t.defineComponent({__name:"TabItem",props:{option:{},isSelected:{type:Boolean,default:!1},isHovered:{type:Boolean,default:!1}},setup(a){const e=a,r=t.computed(()=>e.option.label),i=t.computed(()=>{const l=[];return e.isSelected&&l.push("dropdown-tab-item__selected"),e.isHovered&&l.push("hovered-item"),l.join(" ")});return(l,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.value,"dropdown-tab-item"])},[t.createElementVNode("div",fv,t.toDisplayString(r.value),1)],2))}}),mv={class:"pl-line-dropdown__prefix"},yv={class:"pl-line-dropdown__icon-wrapper"},bv={class:"pl-line-dropdown__icon"},vv={key:0,class:"pl-line-dropdown__no-item"},wv={key:0,class:"pl-line-dropdown__no-item"},su=t.defineComponent({__name:"PlDropdownLine",props:{modelValue:{},disabled:{type:Boolean},prefix:{default:""},options:{},placeholder:{default:"Select.."},mode:{default:"list"},tabsContainerStyles:{type:[Boolean,null,String,Object,Array],default:void 0},clearable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const r=e,i=a,l=t.reactive({isOpen:!1,activeOption:-1,optionsHeight:0}),s=t.ref(),d=t.ref(),u=t.computed(()=>{const D=[];return l.isOpen&&D.push("open"),i.disabled&&D.push("disabled"),D.join(" ")}),p=t.ref(""),f=dv(t.toRef(i,"options"),p),m=t.computed(()=>!!(i.clearable&&l.isOpen&&i.modelValue&&_.value)),_=t.computed(()=>{if(i.modelValue){const D=O();if(D!==-1){const J=Nn(i.options)[D];return typeof J.label=="object"?J.label.title:J.label}}return""}),C=t.ref(_.value),T=t.computed(()=>l.isOpen&&p.value&&p.value.length>=_.value.length-1?p.value:_.value??"...");ii(s,()=>{i.mode==="list"&&(l.isOpen=!1)}),t.watch(()=>C.value,D=>{_.value!==D?p.value=D:p.value=""}),t.watch(()=>l.isOpen,D=>{var J;D&&s.value&&((J=s.value.querySelector("input"))==null||J.focus(),t.nextTick(()=>F()))}),t.watch(()=>i.modelValue,()=>S(),{immediate:!0});function O(){return i.options.findIndex(D=>St(D.value,i.modelValue))}function S(){l.activeOption=Ka(f.value.findIndex(D=>St(D.value,i.modelValue)),D=>D<0?0:D),C.value=_.value}function M(){p.value=""}function v(){i.disabled?l.isOpen=!1:t.nextTick(()=>{l.isOpen=!l.isOpen})}function A(){i.mode==="list"&&(l.isOpen=!1)}function I(D){D&&(r("update:modelValue",D.value),A(),M())}function W(D){return St(D.value,i.modelValue)}const j=D=>{var J,de;const Z=D.relatedTarget;!((J=s.value)!=null&&J.contains(Z))&&!((de=d.value)!=null&&de.contains(Z))&&(p.value="",l.isOpen=!1)};function Y(D){const{activeOption:J}=l;if(!l.isOpen&&D.code==="Enter"){l.isOpen=!0;return}const{length:de}=f.value;if(!de)return;["ArrowDown","ArrowUp","Enter"].includes(D.code)&&D.preventDefault(),D.code==="Enter"&&I(f.value[J]);const Z=D.code==="ArrowDown"?1:D.code==="ArrowUp"?-1:0;l.activeOption=Math.abs(J+Z+de)%de,requestAnimationFrame(F)}function F(){const D=d.value;D&&nt(D.querySelector(".hovered-item"),J=>{i.mode==="list"?Ja(D,J):J.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}function B(){r("update:modelValue",void 0)}const H=t.reactive({top:"0px",left:"0px"});return t.watch(d,D=>{if(D){const J=D.getBoundingClientRect();l.optionsHeight=J.height,window.dispatchEvent(new CustomEvent("adjust"))}}),Ga(s,D=>{const J=D.top+D.height+2;J+l.optionsHeight>D.clientHeight?H.top=D.top-l.optionsHeight-2+"px":H.top=J+"px",H.left=D.left+"px"}),(D,J)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"container",ref:s,tabindex:"0",class:t.normalizeClass([u.value,"pl-line-dropdown uc-pointer"]),onKeydown:Y,onFocusout:j,onClick:v},[t.createElementVNode("div",mv,t.toDisplayString(i==null?void 0:i.prefix),1),J[6]||(J[6]=t.createTextVNode()),t.createVNode(pv,{modelValue:C.value,"onUpdate:modelValue":J[0]||(J[0]=de=>C.value=de),placeholder:T.value,disabled:i.disabled,class:"pl-line-dropdown__input"},null,8,["modelValue","placeholder","disabled"]),J[7]||(J[7]=t.createTextVNode()),t.createElementVNode("div",yv,[t.withDirectives(t.createElementVNode("div",bv,null,512),[[t.vShow,!m.value]]),J[1]||(J[1]=t.createTextVNode()),t.withDirectives(t.createElementVNode("div",{class:"pl-line-dropdown__icon-clear",onClick:B},null,512),[[t.vShow,m.value]])]),J[8]||(J[8]=t.createTextVNode()),l.isOpen?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"body"},[i.mode==="list"?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"list",ref:d,style:t.normalizeStyle(H),tabindex:"-1",class:"pl-line-dropdown__items",onFocusout:j},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(f),(de,Z)=>t.renderSlot(D.$slots,"item",{key:Z,item:de,textItem:"text",isSelected:W(de),isHovered:l.activeOption==Z,onClick:t.withModifiers(V=>I(de),["stop"])},()=>[t.createVNode(Qa,{option:de,"text-item":"text","is-selected":W(de),"is-hovered":l.activeOption==Z,size:"medium",onClick:t.withModifiers(V=>I(de),["stop"])},null,8,["option","is-selected","is-hovered","onClick"])])),128)),J[3]||(J[3]=t.createTextVNode()),t.unref(f).length===0?(t.openBlock(),t.createElementBlock("div",vv,J[2]||(J[2]=[t.createElementVNode("div",{class:"pl-line-dropdown__no-item-title text-s"},"Didn't find anything that matched",-1)]))):t.createCommentVNode("",!0)],36)):i.mode==="tabs"?(t.openBlock(),t.createElementBlock("div",{key:1,ref_key:"list",ref:d,style:t.normalizeStyle(H),tabindex:"-1",class:"pl-line-dropdown__items-tabs",onFocusout:j},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(f),(de,Z)=>t.renderSlot(D.$slots,"item",{key:Z,item:de,isSelected:W(de),isHovered:l.activeOption==Z,onClick:t.withModifiers(V=>I(de),["stop"])},()=>[t.createVNode(hv,{option:de,"is-selected":W(de),"is-hovered":l.activeOption==Z,onClick:t.withModifiers(V=>I(de),["stop"])},null,8,["option","is-selected","is-hovered","onClick"])])),128)),J[5]||(J[5]=t.createTextVNode()),t.unref(f).length===0?(t.openBlock(),t.createElementBlock("div",wv,J[4]||(J[4]=[t.createElementVNode("div",{class:"pl-line-dropdown__no-item-title text-s"},"Didn't find anything that matched",-1)]))):t.createCommentVNode("",!0)],36)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],34))}}),xv={class:"ui-dropdown__envelope"},_v=["tabindex"],kv={class:"ui-dropdown__container"},Cv={class:"ui-dropdown__field"},Sv=["disabled","placeholder"],Tv={class:"ui-dropdown__controls"},Ev={key:0},Nv={key:0,class:"required-icon"},Bv={key:0,class:"nothing-found"},Vv={key:0,class:"ui-dropdown__error"},Mv={key:1,class:"ui-dropdown__helper"},zv={key:2,class:"ui-dropdown__helper"},Av={name:"PlDropdown"},Ov=t.defineComponent({...Av,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},arrowIcon:{default:void 0},arrowIconLarge:{default:void 0},optionSize:{default:"small"}},emits:["update:modelValue"],setup(a,{emit:e}){const r=e,i=a,l=t.useSlots(),s=t.ref(),d=t.ref(),u=t.ref(),p=t.reactive({search:"",activeIndex:-1,open:!1}),f=()=>Ka(I.value.findIndex(Z=>St(Z.value,i.modelValue)),Z=>Z<0?0:Z),m=()=>p.activeIndex=f(),_=t.computed(()=>i.options===void 0),C=t.computed(()=>_.value?!0:i.disabled),T=t.computed(()=>(i.options??[]).findIndex(Z=>St(Z.value,i.modelValue))),O=t.computed(()=>{if(!_.value){if(i.error)return i.error;if(i.modelValue!==void 0&&T.value===-1)return"The selected value is not one of the options"}}),S=t.computed(()=>Nn(i.options??[]).map((Z,V)=>({...Z,index:V,isSelected:V===T.value,isActive:V===p.activeIndex}))),M=t.computed(()=>{const Z=t.unref(S).find(V=>St(V.value,i.modelValue));return(Z==null?void 0:Z.label)||i.modelValue}),v=t.computed(()=>!p.open&&i.modelValue?"":i.modelValue?String(M.value):i.placeholder),A=t.computed(()=>i.modelValue!==void 0&&i.modelValue!==null),I=t.computed(()=>{const Z=S.value;return p.search?Z.filter(V=>{const R=p.search.toLowerCase();return V.label.toLowerCase().includes(R)||V.description&&V.description.toLowerCase().includes(R)?!0:typeof V.value=="string"?V.value.toLowerCase().includes(R):V.value===p.search}):Z}),W=t.computed(()=>C.value?void 0:"0"),j=Z=>{var V;r("update:modelValue",Z),p.search="",p.open=!1,(V=s==null?void 0:s.value)==null||V.focus()},Y=()=>r("update:modelValue",void 0),F=()=>{var Z;return(Z=u.value)==null?void 0:Z.focus()},B=()=>p.open=!p.open,H=()=>p.open=!0,D=Z=>{var V;(V=s==null?void 0:s.value)!=null&&V.contains(Z.relatedTarget)||(p.search="",p.open=!1)},J=()=>{const Z=d.value;Z&&nt(Z.querySelector(".hovered-item"),V=>{Ja(Z,V)})},de=Z=>{var V,R;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(Z.code))Z.preventDefault();else return;const{open:Q,activeIndex:ye}=p;if(!Q){Z.code==="Enter"&&(p.open=!0);return}Z.code==="Escape"&&(p.open=!1,(V=s.value)==null||V.focus());const _e=t.unref(I),{length:Rt}=_e;if(!Rt)return;Z.code==="Enter"&&j((R=_e.find(In=>In.index===ye))==null?void 0:R.value);const Ht=_e.findIndex(In=>In.index===ye)??-1,Tt=Z.code==="ArrowDown"?1:Z.code==="ArrowUp"?-1:0,wo=Math.abs(Ht+Tt+Rt)%Rt;p.activeIndex=I.value[wo].index??-1};return Ar(s),t.watch(()=>i.modelValue,m,{immediate:!0}),t.watch(()=>p.open,Z=>{var V;return Z?(V=u.value)==null?void 0:V.focus():""}),t.watchPostEffect(()=>{p.search,p.activeIndex>=0&&p.open&&J()}),(Z,V)=>(t.openBlock(),t.createElementBlock("div",xv,[t.createElementVNode("div",{ref_key:"root",ref:s,tabindex:W.value,class:t.normalizeClass(["ui-dropdown",{open:p.open,error:Z.error,disabled:C.value}]),onKeydown:de,onFocusout:D},[t.createElementVNode("div",kv,[t.createElementVNode("div",Cv,[t.withDirectives(t.createElementVNode("input",{ref_key:"input",ref:u,"onUpdate:modelValue":V[0]||(V[0]=R=>p.search=R),type:"text",tabindex:"-1",disabled:C.value,placeholder:v.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:H},null,40,Sv),[[t.vModelText,p.search]]),V[4]||(V[4]=t.createTextVNode()),p.open?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,onClick:F},[t.createVNode(ts,{class:"input-value"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(M.value),1)]),_:1})])),V[5]||(V[5]=t.createTextVNode()),t.createElementVNode("div",Tv,[_.value?(t.openBlock(),t.createBlock(t.unref(Or),{key:0,name:"loading"})):t.createCommentVNode("",!0),V[1]||(V[1]=t.createTextVNode()),Z.clearable&&A.value?(t.openBlock(),t.createBlock(t.unref(li),{key:1,name:"delete-clear",onClick:t.withModifiers(Y,["stop"])})):t.createCommentVNode("",!0),V[2]||(V[2]=t.createTextVNode()),t.renderSlot(Z.$slots,"append"),V[3]||(V[3]=t.createTextVNode()),Z.arrowIconLarge?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["arrow-icon",[`icon-24 ${Z.arrowIconLarge}`]]),onClick:t.withModifiers(B,["stop"])},null,2)):Z.arrowIcon?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(["arrow-icon",[`icon-16 ${Z.arrowIcon}`]]),onClick:t.withModifiers(B,["stop"])},null,2)):(t.openBlock(),t.createElementBlock("div",{key:4,class:"arrow-icon arrow-icon-default",onClick:t.withModifiers(B,["stop"])}))])]),V[9]||(V[9]=t.createTextVNode()),Z.label?(t.openBlock(),t.createElementBlock("label",Ev,[Z.required?(t.openBlock(),t.createElementBlock("i",Nv)):t.createCommentVNode("",!0),V[6]||(V[6]=t.createTextVNode()),t.createElementVNode("span",null,t.toDisplayString(Z.label),1),V[7]||(V[7]=t.createTextVNode()),t.unref(l).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:1,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(Z.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),V[10]||(V[10]=t.createTextVNode()),p.open?(t.openBlock(),t.createElementBlock("div",{key:1,ref_key:"list",ref:d,class:"ui-dropdown__options"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(R,Q)=>(t.openBlock(),t.createBlock(Qa,{key:Q,option:R,"is-selected":R.isSelected,"is-hovered":R.isActive,size:Z.optionSize,onClick:t.withModifiers(ye=>j(R.value),["stop"])},null,8,["option","is-selected","is-hovered","size","onClick"]))),128)),V[8]||(V[8]=t.createTextVNode()),I.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Bv,"Nothing found"))],512)):t.createCommentVNode("",!0),V[11]||(V[11]=t.createTextVNode()),t.createVNode(tn,{class:"ui-dropdown__contour"})])],42,_v),V[12]||(V[12]=t.createTextVNode()),O.value?(t.openBlock(),t.createElementBlock("div",Vv,t.toDisplayString(O.value),1)):_.value&&Z.loadingOptionsHelper?(t.openBlock(),t.createElementBlock("div",Mv,t.toDisplayString(Z.loadingOptionsHelper),1)):Z.helper?(t.openBlock(),t.createElementBlock("div",zv,t.toDisplayString(Z.helper),1)):t.createCommentVNode("",!0)]))}}),Lv={key:0,class:"ui-progress-bar"},Iv={class:"ui-progress-bar__messages d-flex align-center pl-6 pr-6"},Dv={class:"ui-progress-bar__message flex-grow-1"},Rv={class:"ui-progress-bar__percent"},Pv=t.defineComponent({__name:"PlProgressBar",props:{loading:{type:Boolean},progress:{default:0},completeMessage:{default:"Completed"}},setup(a){const e=a,r=t.computed(()=>e.progress===100?e.completeMessage:"");return(i,l)=>i.loading?(t.openBlock(),t.createElementBlock("div",Lv,[t.createElementVNode("div",{class:"ui-progress-bar__indicator",style:t.normalizeStyle({width:i.progress+"%"})},null,4),l[1]||(l[1]=t.createTextVNode()),t.createElementVNode("div",Iv,[t.createElementVNode("div",Dv,t.toDisplayString(r.value),1),l[0]||(l[0]=t.createTextVNode()),t.createElementVNode("div",Rv,t.toDisplayString(i.progress+"%"),1)])])):t.createCommentVNode("",!0)}}),jv={class:"mi-number-field__main-wrapper d-flex"},Fv={class:"mi-number-field__wrapper flex-grow d-flex flex-align-center"},$v={key:0,class:"text-description"},Zv=["disabled","placeholder"],Uv={class:"mi-number-field__icons d-flex-column"},Hv={key:0,class:"mi-number-field__hint text-description"},Wv=t.defineComponent({__name:"PlNumberField",props:{modelValue:{},disabled:{type:Boolean},label:{default:void 0},placeholder:{default:void 0},step:{default:1},minValue:{default:void 0},maxValue:{default:void 0},errorMessage:{default:void 0},validate:{type:Function,default:void 0}},emits:["update:modelValue"],setup(a,{emit:e}){const r=a,i=e,l=t.ref(),s=t.useSlots(),d=t.ref();Ar(l);const u=t.ref(!0),p=t.computed({get(){return u.value&&r.modelValue!==void 0?new Number(r.modelValue).toString():""},set(v){var A;v=v.replace(/,/g,""),C(v)?(i("update:modelValue",+v),v.toString()!==((A=r.modelValue)==null?void 0:A.toString())&&+v===r.modelValue&&v[v.length-1]!=="."&&(u.value=!1,t.nextTick(()=>{u.value=!0}))):(v.trim()===""&&i("update:modelValue",void 0),u.value=!1,t.nextTick(()=>{u.value=!0}))}}),f=t.computed(()=>{let v=[];return r.errorMessage&&v.push(r.errorMessage),C(r.modelValue)?(r.minValue!==void 0&&r.modelValue!==void 0&&r.modelValue<r.minValue&&v.push(`Model value must be higher than ${r.minValue}`),r.maxValue!==void 0&&r.modelValue!==void 0&&r.modelValue>r.maxValue&&v.push(`Model value must be less than ${r.maxValue}`)):v.push("Model value is not a number."),v=[...v],v.join(" ")}),m=t.computed(()=>!!(r.maxValue&&r.modelValue!==void 0&&(r.modelValue||0)+r.step>r.maxValue)),_=t.computed(()=>!!(r.minValue&&r.modelValue!==void 0&&(r.modelValue||0)-r.step<r.minValue));function C(v){return v!==void 0?(v=v==null?void 0:v.toString(),!isNaN(+v)&&!isNaN(parseFloat(v))):!1}function T(){if(!m.value){let v=0;r.modelValue===void 0?v=r.minValue?r.minValue:0:v=+(r.modelValue||0)+r.step,p.value=v.toString()}}function O(){if(!_.value){let v=0;r.modelValue===void 0?v=0:v=+(r.modelValue||0)-r.step,p.value=r.minValue?Math.max(r.minValue,v).toString():v.toString()}}function S(v){["ArrowDown","ArrowUp"].includes(v.code)&&v.preventDefault(),v.code==="ArrowUp"?T():v.code==="ArrowDown"&&O()}const M=v=>{v.detail>1&&v.preventDefault()};return(v,A)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"root",ref:l,class:t.normalizeClass([{error:!!f.value.trim(),disabled:v.disabled},"mi-number-field d-flex-column"]),onMousedown:M,onKeydown:A[1]||(A[1]=I=>S(I))},[t.createElementVNode("div",jv,[t.createVNode(tn,{class:"mi-number-field__contour"}),A[6]||(A[6]=t.createTextVNode()),t.createElementVNode("div",Fv,[v.label?(t.openBlock(),t.createElementBlock("label",$v,[t.createTextVNode(t.toDisplayString(v.label)+" ",1),t.unref(s).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:0,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(v.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),A[2]||(A[2]=t.createTextVNode()),t.withDirectives(t.createElementVNode("input",{ref_key:"input",ref:d,"onUpdate:modelValue":A[0]||(A[0]=I=>p.value=I),disabled:v.disabled,placeholder:v.placeholder,class:"text-s flex-grow"},null,8,Zv),[[t.vModelText,p.value]])]),A[7]||(A[7]=t.createTextVNode()),t.createElementVNode("div",Uv,[t.createElementVNode("div",{class:t.normalizeClass([{disabled:m.value},"mi-number-field__icon d-flex flex-justify-center uc-pointer flex-grow flex-align-center"]),onClick:T},A[3]||(A[3]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 4.93933L13.5303 10.4697L12.4697 11.5303L8 7.06065L3.53033 11.5303L2.46967 10.4697L8 4.93933Z",fill:"#110529"})],-1)]),2),A[5]||(A[5]=t.createTextVNode()),t.createElementVNode("div",{class:t.normalizeClass([{disabled:_.value},"mi-number-field__icon d-flex flex-justify-center uc-pointer flex-grow flex-align-center"]),onClick:O},A[4]||(A[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.46967 6.53033L3.53033 5.46967L8 9.93934L12.4697 5.46967L13.5303 6.53033L8 12.0607L2.46967 6.53033Z",fill:"#110529"})],-1)]),2)])]),A[8]||(A[8]=t.createTextVNode()),f.value.trim()?(t.openBlock(),t.createElementBlock("div",Hv,t.toDisplayString(f.value),1)):t.createCommentVNode("",!0)],34))}}),qv={class:"pl-chip__text"},ns=t.defineComponent({__name:"PlChip",props:{closeable:{type:Boolean},small:{type:Boolean}},emits:["close"],setup(a){const e=t.ref(),r=t.ref(!1);return t.onMounted(()=>{var i;e.value&&(r.value=((i=e.value)==null?void 0:i.clientWidth)>=256)}),(i,l)=>(t.openBlock(),t.createBlock(t.unref(zt),{position:"top",class:"pl-chip-tooltip",delay:500},t.createSlots({default:t.withCtx(()=>[l[4]||(l[4]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"chip",ref:e,class:t.normalizeClass(["pl-chip",{small:i.small}])},[t.createElementVNode("div",qv,[t.renderSlot(i.$slots,"default")]),l[3]||(l[3]=t.createTextVNode()),i.closeable?(t.openBlock(),t.createElementBlock("div",{key:0,tabindex:"0",class:"pl-chip__close",onKeydown:l[0]||(l[0]=t.withKeys(s=>i.$emit("close"),["enter"])),onClick:l[1]||(l[1]=t.withModifiers(s=>i.$emit("close"),["stop"]))},l[2]||(l[2]=[t.createElementVNode("div",{class:"pl-chip__close--icon"},null,-1)]),32)):t.createCommentVNode("",!0)],2)]),_:2},[r.value?{name:"tooltip",fn:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),key:"0"}:void 0]),1024))}}),Yv={class:"pl-multi-dropdown__envelope"},Gv=["tabindex"],Kv={class:"pl-multi-dropdown__container"},Jv={class:"pl-multi-dropdown__field"},Qv=["disabled","placeholder"],Xv={class:"pl-multi-dropdown__append"},ew={key:0},tw={key:0,class:"required-icon"},rw={class:"pl-multi-dropdown__open-chips-container"},nw={key:0,class:"nothing-found"},aw={key:0,class:"pl-multi-dropdown__error"},ow={key:1,class:"pl-multi-dropdown__helper"},iw={name:"PlDropdownMulti"},lw=t.defineComponent({...iw,props:{modelValue:{default:()=>[]},label:{default:void 0},options:{},helper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const r=e,i=B=>r("update:modelValue",B),l=t.useSlots(),s=a,d=t.ref(),u=t.ref(),p=t.ref(),f=t.reactive({search:"",activeOption:-1,open:!1,optionsHeight:0}),m=t.computed(()=>Array.isArray(s.modelValue)?s.modelValue:[]),_=t.computed(()=>f.open&&s.modelValue.length>0?s.placeholder:s.modelValue.length>0?"":s.placeholder),C=t.computed(()=>Nn(s.options).filter(B=>es(m.value,B.value))),T=t.computed(()=>{const B=t.unref(m),H=Nn(s.options);return(f.search?H.filter(D=>{const J=f.search.toLowerCase();return D.label.toLowerCase().includes(J)?!0:typeof D.value=="string"?D.value.toLowerCase().includes(J):D.value===f.search}):[...H]).map(D=>({...D,selected:es(B,D.value)}))}),O=t.computed(()=>s.disabled?void 0:"0"),S=()=>{f.activeOption=Ka(T.value.findIndex(B=>St(B.value,s.modelValue)),B=>B<0?0:B)},M=B=>{var H;const D=t.unref(m);i(es(D,B)?D.filter(J=>!St(J,B)):[...D,B]),f.search="",(H=d==null?void 0:d.value)==null||H.focus()},v=B=>i(t.unref(m).filter(H=>!St(H,B))),A=()=>{var B;return(B=p.value)==null?void 0:B.focus()},I=()=>f.open=!f.open,W=B=>{var H,D;const J=B.relatedTarget;!((H=d.value)!=null&&H.contains(J))&&!((D=u.value)!=null&&D.contains(J))&&(f.search="",f.open=!1)},j=()=>{const B=u.value;B&&nt(B.querySelector(".hovered-item"),H=>{Ja(B,H)})},Y=B=>{var H;const{open:D,activeOption:J}=f;if(!D){B.code==="Enter"&&(f.open=!0);return}B.code==="Escape"&&(f.open=!1,(H=d.value)==null||H.focus());const de=t.unref(T),{length:Z}=de;if(!Z)return;["ArrowDown","ArrowUp","Enter"].includes(B.code)&&B.preventDefault(),B.code==="Enter"&&M(de[J].value);const V=B.code==="ArrowDown"?1:B.code==="ArrowUp"?-1:0;f.activeOption=Math.abs(J+V+Z)%Z,requestAnimationFrame(j)};Ar(d),t.watch(()=>s.modelValue,()=>S(),{immediate:!0}),t.watchPostEffect(()=>{f.search,f.open&&j()});const F=t.reactive({top:"0px",left:"0px",width:"0px"});return t.watch(u,B=>{if(B){const H=B.getBoundingClientRect();f.optionsHeight=H.height,window.dispatchEvent(new CustomEvent("adjust"))}}),Ga(d,B=>{const H=B.top+B.height+5;H+f.optionsHeight>B.clientHeight?F.top=B.top-f.optionsHeight-5+"px":F.top=H+"px",F.left=B.left+"px",F.width=B.width+"px"}),(B,H)=>(t.openBlock(),t.createElementBlock("div",Yv,[t.createElementVNode("div",{ref_key:"rootRef",ref:d,tabindex:O.value,class:t.normalizeClass(["pl-multi-dropdown",{open:f.open,error:B.error,disabled:B.disabled}]),onKeydown:Y,onFocusout:W},[t.createElementVNode("div",Kv,[t.createElementVNode("div",Jv,[t.withDirectives(t.createElementVNode("input",{ref_key:"input",ref:p,"onUpdate:modelValue":H[0]||(H[0]=D=>f.search=D),type:"text",tabindex:"-1",disabled:B.disabled,placeholder:_.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:H[1]||(H[1]=D=>f.open=!0)},null,40,Qv),[[t.vModelText,f.search]]),H[3]||(H[3]=t.createTextVNode()),f.open?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"chips-container",onClick:A},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.value,(D,J)=>(t.openBlock(),t.createBlock(t.unref(ns),{key:J,closeable:"",small:"",onClick:H[2]||(H[2]=t.withModifiers(de=>f.open=!0,["stop"])),onClose:de=>v(D.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(D.label||D.value),1)]),_:2},1032,["onClose"]))),128))])),H[4]||(H[4]=t.createTextVNode()),t.createElementVNode("div",{class:"arrow",onClick:t.withModifiers(I,["stop"])}),H[5]||(H[5]=t.createTextVNode()),t.createElementVNode("div",Xv,[t.renderSlot(B.$slots,"append")])]),H[10]||(H[10]=t.createTextVNode()),B.label?(t.openBlock(),t.createElementBlock("label",ew,[B.required?(t.openBlock(),t.createElementBlock("i",tw)):t.createCommentVNode("",!0),H[6]||(H[6]=t.createTextVNode()),t.createElementVNode("span",null,t.toDisplayString(B.label),1),H[7]||(H[7]=t.createTextVNode()),t.unref(l).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:1,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(B.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),H[11]||(H[11]=t.createTextVNode()),f.open?(t.openBlock(),t.createBlock(t.Teleport,{key:1,to:"body"},[t.createElementVNode("div",{ref_key:"list",ref:u,class:"pl-multi-dropdown__options",style:t.normalizeStyle(F),tabindex:"-1",onFocusout:W},[t.createElementVNode("div",rw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.value,(D,J)=>(t.openBlock(),t.createBlock(t.unref(ns),{key:J,closeable:"",small:"",onClose:de=>v(D.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(D.label||D.value),1)]),_:2},1032,["onClose"]))),128))]),H[8]||(H[8]=t.createTextVNode()),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.value,(D,J)=>(t.openBlock(),t.createBlock(Qa,{key:J,option:D,"text-item":"text","is-selected":D.selected,"is-hovered":f.activeOption==J,size:"medium","use-checkbox":"",onClick:t.withModifiers(de=>M(D.value),["stop"])},null,8,["option","is-selected","is-hovered","onClick"]))),128)),H[9]||(H[9]=t.createTextVNode()),T.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",nw,"Nothing found"))],36)])):t.createCommentVNode("",!0),H[12]||(H[12]=t.createTextVNode()),t.createVNode(tn,{class:"pl-multi-dropdown__contour"})])],42,Gv),H[13]||(H[13]=t.createTextVNode()),B.error?(t.openBlock(),t.createElementBlock("div",aw,t.toDisplayString(B.error),1)):B.helper?(t.openBlock(),t.createElementBlock("div",ow,t.toDisplayString(B.helper),1)):t.createCommentVNode("",!0)]))}}),as=t.defineComponent({__name:"PlCheckboxBase",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(a){const e=a,r=t.computed(()=>e.modelValue);return(i,l)=>(t.openBlock(),t.createElementBlock("div",{tabindex:"0",class:t.normalizeClass(["pl-checkbox-base",{checked:r.value,disabled:i.disabled}]),onClick:l[0]||(l[0]=s=>i.$emit("update:modelValue",!i.modelValue)),onKeydown:l[1]||(l[1]=t.withKeys(s=>i.$emit("update:modelValue",!i.modelValue),["enter"]))},null,34))}}),sw={name:"PlCheckbox"},cw=t.defineComponent({...sw,props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(a){const e=a,r=t.useSlots();return(i,l)=>t.unref(r).default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["pl-checkbox",{disabled:i.disabled}])},[t.createVNode(as,t.mergeProps(e,{"onUpdate:modelValue":l[0]||(l[0]=s=>i.$emit("update:modelValue",s))}),null,16),l[3]||(l[3]=t.createTextVNode()),t.createElementVNode("label",{onClick:l[1]||(l[1]=s=>i.$emit("update:modelValue",!i.$props.modelValue))},[t.renderSlot(i.$slots,"default")])],2)):(t.openBlock(),t.createBlock(as,t.mergeProps({key:1},e,{"onUpdate:modelValue":l[2]||(l[2]=s=>i.$emit("update:modelValue",s))}),null,16))}}),dw={key:0},uw=["onClick"],gw={name:"PlCheckboxGroup"},pw=t.defineComponent({...gw,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const r=e,i=a,l=d=>i.modelValue.includes(d),s=d=>{const u=i.modelValue??[];r("update:modelValue",l(d)?u.filter(p=>p!==d):[...u,d])};return(d,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ui-checkbox-group",{disabled:d.disabled}])},[d.label?(t.openBlock(),t.createElementBlock("label",dw,t.toDisplayString(d.label),1)):t.createCommentVNode("",!0),u[1]||(u[1]=t.createTextVNode()),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.options.map(p=>({label:"label"in p?p.label:p.text,value:p.value})),(p,f)=>(t.openBlock(),t.createElementBlock("div",{key:f},[t.createVNode(as,{disabled:d.disabled,label:p.label,"model-value":l(p.value),"onUpdate:modelValue":()=>s(p.value)},null,8,["disabled","label","model-value","onUpdate:modelValue"]),u[0]||(u[0]=t.createTextVNode()),t.createElementVNode("label",{onClick:t.withModifiers(()=>s(p.value),["stop"])},t.toDisplayString(p.label),9,uw)]))),128))],2))}}),fw="_component_tupwt_1",hw={component:fw},mw={};function yw(a,e){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(a.$style.component)},e[0]||(e[0]=[t.createElementVNode("div",null,null,-1)]),2)}const bw={$style:hw},vw=Xr(mw,[["render",yw],["__cssModules",bw]]),ww={key:1,class:"pl-dialog-modal__title"},xw={inheritAttrs:!1},os=t.defineComponent({...xw,__name:"PlDialogModal",props:{modelValue:{type:Boolean},width:{default:"448px"},height:{default:"auto"},minHeight:{default:"auto"},maxHeight:{default:"auto"},closable:{type:Boolean,default:!0},noContentGutters:{type:Boolean,default:!1},noTopContentGutter:{type:Boolean},actionsHasTopBorder:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.useSlots(),i=e,l=a,s=t.ref(),d=t.useAttrs();function u(p){s.value&&document.contains(p.target)&&!s.value.contains(p.target)&&i("update:modelValue",!1)}return Xe(document.body,"keyup",p=>{l.modelValue&&p.code==="Escape"&&i("update:modelValue",!1)}),(p,f)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"dialog"},{default:t.withCtx(()=>[p.modelValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"pl-dialog-modal__shadow",onClick:u},[t.createElementVNode("div",t.mergeProps(t.unref(d),{ref_key:"modal",ref:s,class:["pl-dialog-modal",{"has-title":t.unref(r).title,"has-content":t.unref(r).default}],style:{width:p.width,height:p.height,minHeight:p.minHeight,maxHeight:p.maxHeight}}),[p.closable?(t.openBlock(),t.createBlock(vw,{key:0,class:"close-modal-btn",onClick:f[0]||(f[0]=t.withModifiers(m=>i("update:modelValue",!1),["stop"]))})):t.createCommentVNode("",!0),f[1]||(f[1]=t.createTextVNode()),t.unref(r).title?(t.openBlock(),t.createElementBlock("div",ww,[t.renderSlot(p.$slots,"title")])):t.createCommentVNode("",!0),f[2]||(f[2]=t.createTextVNode()),t.createElementVNode("div",{class:t.normalizeClass(["pl-dialog-modal__content",{"no-content-gutters":p.noContentGutters,"no-top-content-gutter":p.noTopContentGutter}])},[t.renderSlot(p.$slots,"default")],2),f[3]||(f[3]=t.createTextVNode()),t.unref(r).actions?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["pl-dialog-modal__actions",{"has-top-border":p.actionsHasTopBorder}])},[t.renderSlot(p.$slots,"actions")],2)):t.createCommentVNode("",!0)],16)])):t.createCommentVNode("",!0)]),_:3})]))}}),_w=t.defineComponent({__name:"TransitionSlidePanel",setup(a){function e(){window.dispatchEvent(new CustomEvent("adjust"))}function r(){window.dispatchEvent(new CustomEvent("adjust"))}return(i,l)=>(t.openBlock(),t.createBlock(t.Transition,{name:"slide-panel",onAfterEnter:e,onAfterLeave:r},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3}))}}),kw={key:0,class:"pl-slide-modal__title"},Cw={class:"pl-slide-modal__content"},Sw={key:1,class:"pl-slide-modal__actions"},Tw={name:"PlSlideModal",inheritAttrs:!1},Ew=t.defineComponent({...Tw,props:{modelValue:{type:Boolean,default:!1},width:{default:"368px"},shadow:{type:Boolean,default:!1},closeOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.useSlots(),i=e,l=a,s=t.ref(),d=t.useAttrs();return ii(s,()=>{l.modelValue&&l.closeOnOutsideClick&&i("update:modelValue",!1)}),Xe(document,"keydown",u=>{u.key==="Escape"&&i("update:modelValue",!1)}),(u,p)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(_w,null,{default:t.withCtx(()=>[u.modelValue?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0,ref_key:"modal",ref:s,style:{width:u.width}},t.unref(d),{class:["pl-slide-modal",{"has-title":t.unref(r).title,"has-actions":t.unref(r).actions}],onKeyup:p[1]||(p[1]=t.withKeys(f=>i("update:modelValue",!1),["esc"]))}),[t.createElementVNode("div",{class:"close-dialog-btn",onClick:p[0]||(p[0]=f=>i("update:modelValue",!1))}),p[3]||(p[3]=t.createTextVNode()),t.unref(r).title?(t.openBlock(),t.createElementBlock("div",kw,[t.renderSlot(u.$slots,"title")])):t.createCommentVNode("",!0),p[4]||(p[4]=t.createTextVNode()),t.createElementVNode("div",Cw,[t.renderSlot(u.$slots,"default")]),p[5]||(p[5]=t.createTextVNode()),t.unref(r).actions?(t.openBlock(),t.createElementBlock("div",Sw,[t.renderSlot(u.$slots,"actions")])):t.createCommentVNode("",!0)],16)):t.createCommentVNode("",!0)]),_:3}),p[6]||(p[6]=t.createTextVNode()),u.modelValue&&u.shadow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"pl-slide-modal__shadow",onKeyup:p[2]||(p[2]=t.withKeys(f=>i("update:modelValue",!1),["esc"]))},null,32)):t.createCommentVNode("",!0)]))}}),Nw={key:0,class:"label"},Bw={name:"PlToggleSwitch"},Vw=t.defineComponent({...Bw,props:{label:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(a){return(e,r)=>(t.openBlock(),t.createElementBlock("div",{tabindex:"0",class:t.normalizeClass(["ui-toggle-switch",{active:e.modelValue}]),onClick:r[0]||(r[0]=i=>e.$emit("update:modelValue",!e.modelValue)),onKeydown:r[1]||(r[1]=t.withKeys(i=>e.$emit("update:modelValue",!e.modelValue),["enter"]))},[r[2]||(r[2]=t.createElementVNode("div",{class:"ui-toggle-switch__body"},[t.createElementVNode("div",{class:"ui-toggle-switch__handle"})],-1)),r[3]||(r[3]=t.createTextVNode()),e.label?(t.openBlock(),t.createElementBlock("span",Nw,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)],34))}});function cu(a){return t.getCurrentScope()?(t.onScopeDispose(a),!0):!1}function Mw(a){return t.unref(a)}const zw=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Aw(a,e,r={}){const{immediate:i=!0}=r,l=t.ref(!1);let s=null;function d(){s&&(clearTimeout(s),s=null)}function u(){l.value=!1,d()}function p(...f){d(),l.value=!0,s=setTimeout(()=>{l.value=!1,s=null,a(...f)},Mw(e))}return i&&(l.value=!0,zw&&p()),cu(u),{isPending:t.readonly(l),start:p,stop:u}}function Ow(a,e,r){return t.watch(a,(i,l,s)=>{i&&e(i,l,s)},{...r,once:!1})}function Lw(a,e,r){const{start:i}=Aw(s,e,{immediate:!1}),l=t.ref(!1);async function s(){l.value&&(await a(),i())}function d(){l.value||(l.value=!0,s())}function u(){l.value=!1}return r!=null&&r.immediate&&d(),cu(u),{isActive:l,pause:u,resume:d}}const Iw="[==PROGRESS==]";function Dw(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rw(a){const e=t.ref(),r=t.reactive({errorCount:0});async function i(){var s;let d=e.value;if(d===void 0)return;const u=a.mockPlatforma??window.platforma;if(!u){console.warn("Platforma API is not available");return}for(;;){const p=await u.logDriver.readText(d.logHandle,100,d.lastOffset);if(d.error=void 0,r.errorCount=0,p.shouldUpdateHandle||d.logHandle!==((s=e.value)==null?void 0:s.logHandle))return;const f=a.progressPrefix??Iw,m=new TextDecoder().decode(p.data).replace(new RegExp(`${Dw(f)}`,"g"),"");if(d=Object.assign(d,{lines:d.lines+m,lastOffset:p.newOffset,finished:!p.live}),p.newOffset>=p.size)break}}const l=Lw(()=>i().catch(s=>{e.value&&(r.errorCount++,r.errorCount>(a.maxRetries??3)?e.value.error=s:console.warn("skip error:",s,"retry..."))}),1500,{immediate:!1});return Ow(()=>{var s;return(s=e==null?void 0:e.value)==null?void 0:s.finished},()=>l.pause()),t.watch(()=>a.logHandle,s=>{var d;s===void 0?(e.value=void 0,l.pause()):s!==((d=e.value)==null?void 0:d.logHandle)&&(e.value={logHandle:s,lastOffset:0,lines:"",finished:!1,error:void 0},r.errorCount=0,l.resume())},{immediate:!0}),e}const Pw={key:0},jw={key:1,class:"pl-log-view__error"},Fw={name:"PlLogView"},$w=t.defineComponent({...Fw,props:{value:{},logHandle:{},progressPrefix:{},error:{},output:{},maxRetries:{},mockPlatforma:{},label:{}},setup(a){const e=C=>{if(C&&C.ok===!1)return C.errors.join(`
|
|
25
|
-
`)},r=a,i=Rw(r),l=t.ref(!0),s=t.ref(),d=t.ref(),u=t.computed(()=>{var C;return((C=i.value)==null?void 0:C.error)??r.error??e(r.output)}),p=t.computed(()=>{var C;return((C=i.value)==null?void 0:C.lines)??r.value??Pm(r.output)});Ar(d);const f=()=>{p.value&&typeof p.value=="string"&&navigator.clipboard.writeText(p.value)},m=()=>{En(s.value,C=>{l.value&&C.scrollTo(C.scrollLeft,C.scrollHeight)})};t.watch(p,()=>{requestAnimationFrame(()=>{m()})},{immediate:!0});const _=C=>{const T=C.target;l.value=T.scrollTop+20>=T.scrollHeight-T.offsetHeight};return(C,T)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"root",ref:d,class:t.normalizeClass(["pl-log-view",{"has-error":u.value}])},[C.label?(t.openBlock(),t.createElementBlock("label",Pw,t.toDisplayString(C.label),1)):t.createCommentVNode("",!0),T[0]||(T[0]=t.createTextVNode()),t.createVNode(tn,{class:"pl-log-view__contour"}),T[1]||(T[1]=t.createTextVNode()),t.createVNode(t.unref(Or),{title:"Copy content",class:"pl-log-view__copy",name:"clipboard",onClick:f}),T[2]||(T[2]=t.createTextVNode()),u.value?(t.openBlock(),t.createElementBlock("div",jw,t.toDisplayString(u.value),1)):(t.openBlock(),t.createElementBlock("div",{key:2,ref_key:"contentRef",ref:s,class:"pl-log-view__content",onScroll:_},t.toDisplayString(p.value),545))],2))}});function Zw(a){const e=a.split("/"),r=[];for(let i=0;i<e.length;i++)r.push({index:i,name:i===0?"Root":e[i],path:e.slice(0,i+1).join("/")});return r}const Uw={class:"file-dialog"},Hw={class:"file-dialog__search"},Ww={class:"ls-container"},qw={class:"ls-head"},Yw={class:"ls-head__breadcrumbs"},Gw=["title","onClick"],Kw={key:0,class:"icon-16 icon-chevron-right"},Jw={class:"d-flex ml-auto align-center gap-12"},Qw={class:"ls-head__selected"},Xw={key:0,class:"ls-loader"},ex={key:1,class:"ls-empty"},tx={key:2,class:"ls-error"},rx={class:"ls-error__message"},nx={key:3,class:"ls-body"},ax=["onClick"],ox=["title"],ix=["onClick"],lx=["title"],du=t.defineComponent({__name:"PlFileDialog",props:{modelValue:{type:Boolean},extensions:{default:void 0},multi:{type:Boolean},title:{default:void 0},autoSelectStorage:{type:Boolean,default:!0}},emits:["update:modelValue","import:files"],setup(a,{emit:e}){const r=e,i=a,l=()=>({dirPath:"",storageEntry:void 0,items:[],error:"",storageOptions:[],selected:[],lastSelected:void 0,currentLoadingPath:void 0,showHiddenItems:!1}),s=t.reactive(l()),d=t.computed(()=>s.showHiddenItems?s.items:s.items.filter(F=>!F.name.startsWith("."))),u=t.computed(()=>{var F;return{modelValue:i.modelValue,dirPath:s.dirPath,storageHandle:(F=s.storageEntry)==null?void 0:F.handle}}),p=(F,B)=>{window.platforma&&s.currentLoadingPath!==B&&(s.error="",s.items=[],s.lastSelected=void 0,s.currentLoadingPath=B,window.platforma.lsDriver.listFiles(F,B).then(H=>{B===s.dirPath&&(s.items=Bd(H).entries.map(D=>({path:D.fullPath,name:D.name,isDir:D.type==="dir",canBeSelected:D.type==="file"&&(!i.extensions||i.extensions.some(J=>D.fullPath.endsWith(J))),handle:D.type==="file"?D.handle:void 0,selected:!1})).sort((D,J)=>D.isDir&&!J.isDir?-1:!D.isDir&&J.isDir?1:D.name.localeCompare(J.name)).map((D,J)=>({id:J,...D})),s.lastSelected=void 0)}).catch(H=>s.error=String(H)).finally(()=>{s.currentLoadingPath=void 0}))},f=()=>{const{storageHandle:F,dirPath:B,modelValue:H}=u.value;F&&H&&B&&p(F,B)},m=zd(F=>{F&&(s.dirPath=F)},1e3),_=t.computed(()=>Zw(s.dirPath)),C=t.computed(()=>s.items.filter(F=>F.canBeSelected&&F.selected&&!F.isDir)),T=t.computed(()=>C.value.length>0),O=()=>{r("update:modelValue",!1)},S=()=>{var F;T.value&&(F=s.storageEntry)!=null&&F.handle&&(r("import:files",{storageHandle:s.storageEntry.handle,files:C.value.map(B=>B.handle)}),O())},M=F=>{s.dirPath=F,s.storageEntry&&f()},v=(F,B)=>{const{shiftKey:H,metaKey:D}=F,{lastSelected:J}=s;if(F.preventDefault(),B.canBeSelected){if(i.multi||s.items.forEach(de=>de.selected=!1),B.selected=!0,!i.multi)return;!D&&!H&&s.items.forEach(de=>{de.id!==B.id&&(de.selected=!1)}),H&&J!==void 0&&s.items.forEach(de=>{Im(de.id,J,B.id)&&(de.selected=!0)}),B.selected&&(s.lastSelected=B.id)}},A=F=>{F&&!i.multi||s.items.filter(B=>B.canBeSelected).forEach(B=>{B.selected=F})},I=()=>A(!0),W=()=>A(!1),j=()=>{if(s.error="",s.lastSelected=void 0,W(),!window.platforma){console.warn("platforma API is not found");return}window.platforma.lsDriver.getStorageList().then(F=>{s.storageOptions=F.map(B=>({text:B.name,value:B})),i.autoSelectStorage&&En(F.find(B=>B.name==="local"||B.name.startsWith("local_disk_")&&B.initialFullPath.length>4),B=>{s.storageEntry=B,s.dirPath=B.initialFullPath})}).catch(F=>s.error=String(F))};t.watch(t.toRef(s,"storageEntry"),F=>{s.dirPath=(F==null?void 0:F.initialFullPath)??""}),t.watch([()=>s.dirPath,()=>s.storageEntry],()=>{f()}),t.watch(()=>i.modelValue,F=>{F?j():Object.assign(s,l())},{immediate:!0}),Xe(document,"keydown",F=>{i.modelValue&&F.target===document.body&&(F.metaKey&&F.code==="KeyA"&&(F.preventDefault(),I()),F.metaKey&&F.shiftKey&&F.code==="Period"&&(F.preventDefault(),s.showHiddenItems=!s.showHiddenItems),F.code==="Enter"&&S())}),t.onUpdated(j);const Y={mounted:F=>{if(F.clientWidth<F.scrollWidth){const B=F.innerText;F.innerText=B.substring(0,57)+"..."+B.substring(B.length-10)}}};return(F,B)=>(t.openBlock(),t.createBlock(t.unref(os),{"no-content-gutters":!0,class:"split","model-value":F.modelValue,width:"688px",height:"720px","onUpdate:modelValue":O,onClick:t.withModifiers(W,["stop"])},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(F.title??"Select files"),1)]),actions:t.withCtx(()=>[t.createVNode(t.unref(ql),{style:{"min-width":"160px"},disabled:!T.value,onClick:t.withModifiers(S,["stop"])},{default:t.withCtx(()=>B[14]||(B[14]=[t.createTextVNode("Import")])),_:1},8,["disabled"]),B[16]||(B[16]=t.createTextVNode()),t.createVNode(t.unref(Gl),{"justify-center":!1,onClick:t.withModifiers(O,["stop"])},{default:t.withCtx(()=>B[15]||(B[15]=[t.createTextVNode("Cancel")])),_:1})]),default:t.withCtx(()=>[B[17]||(B[17]=t.createTextVNode()),t.createElementVNode("div",Uw,[t.createElementVNode("div",Hw,[t.createVNode(t.unref(rs),{modelValue:s.storageEntry,"onUpdate:modelValue":B[0]||(B[0]=H=>s.storageEntry=H),label:"Select storage",options:s.storageOptions},null,8,["modelValue","options"]),B[1]||(B[1]=t.createTextVNode()),t.createVNode(t.unref(au),{"model-value":s.dirPath,label:"Enter path","onUpdate:modelValue":t.unref(m)},null,8,["model-value","onUpdate:modelValue"])]),B[13]||(B[13]=t.createTextVNode()),t.createElementVNode("div",Ww,[t.createElementVNode("div",qw,[t.createElementVNode("div",Yw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,(H,D)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:D},[t.createElementVNode("div",{title:H.path,onClick:J=>M(H.path)},t.toDisplayString(H.name),9,Gw),B[2]||(B[2]=t.createTextVNode()),H.index!==_.value.length-1?(t.openBlock(),t.createElementBlock("i",Kw)):t.createCommentVNode("",!0)],64))),128))]),B[3]||(B[3]=t.createTextVNode()),t.createElementVNode("div",Jw,[t.createElementVNode("span",Qw,"Selected: "+t.toDisplayString(C.value.length),1)])]),B[12]||(B[12]=t.createTextVNode()),s.currentLoadingPath!==void 0?(t.openBlock(),t.createElementBlock("div",Xw,B[4]||(B[4]=[t.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"},null,-1)]))):s.storageEntry?s.error?(t.openBlock(),t.createElementBlock("div",tx,[B[6]||(B[6]=t.createElementVNode("div",{class:"ls-error__cat"},null,-1)),B[7]||(B[7]=t.createTextVNode()),t.createElementVNode("div",rx,t.toDisplayString(s.error),1)])):(t.openBlock(),t.createElementBlock("div",nx,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,H=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:H.id},[H.isDir?(t.openBlock(),t.createElementBlock("div",{key:0,class:"isDir",onClick:D=>M(H.path)},[B[8]||(B[8]=t.createElementVNode("i",{class:"icon-16 icon-chevron-right"},null,-1)),B[9]||(B[9]=t.createTextVNode()),t.withDirectives((t.openBlock(),t.createElementBlock("span",{title:H.name},[t.createTextVNode(t.toDisplayString(H.name),1)],8,ox)),[[Y]])],8,ax)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass({canBeSelected:H.canBeSelected,selected:H.selected}),onClick:t.withModifiers(D=>v(D,H),["stop"])},[B[10]||(B[10]=t.createElementVNode("i",{class:"mask-16 mask-comp isFile"},null,-1)),B[11]||(B[11]=t.createTextVNode()),t.withDirectives((t.openBlock(),t.createElementBlock("span",{title:H.name},[t.createTextVNode(t.toDisplayString(H.name),1)],8,lx)),[[Y]])],10,ix))],64))),128))])):(t.openBlock(),t.createElementBlock("div",ex,B[5]||(B[5]=[t.createElementVNode("div",{class:"ls-empty__cat"},null,-1),t.createTextVNode(),t.createElementVNode("div",{class:"ls-empty__message"},"Select storage to preview",-1)])))])]),B[18]||(B[18]=t.createTextVNode())]),_:1},8,["model-value"]))}});var Le;(function(a){a.assertEqual=l=>l;function e(l){}a.assertIs=e;function r(l){throw new Error}a.assertNever=r,a.arrayToEnum=l=>{const s={};for(const d of l)s[d]=d;return s},a.getValidEnumValues=l=>{const s=a.objectKeys(l).filter(u=>typeof l[l[u]]!="number"),d={};for(const u of s)d[u]=l[u];return a.objectValues(d)},a.objectValues=l=>a.objectKeys(l).map(function(s){return l[s]}),a.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const s=[];for(const d in l)Object.prototype.hasOwnProperty.call(l,d)&&s.push(d);return s},a.find=(l,s)=>{for(const d of l)if(s(d))return d},a.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function i(l,s=" | "){return l.map(d=>typeof d=="string"?`'${d}'`:d).join(s)}a.joinValues=i,a.jsonStringifyReplacer=(l,s)=>typeof s=="bigint"?s.toString():s})(Le||(Le={}));var is;(function(a){a.mergeShapes=(e,r)=>({...e,...r})})(is||(is={}));const ae=Le.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),rn=a=>{switch(typeof a){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(a)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(a)?ae.array:a===null?ae.null:a.then&&typeof a.then=="function"&&a.catch&&typeof a.catch=="function"?ae.promise:typeof Map<"u"&&a instanceof Map?ae.map:typeof Set<"u"&&a instanceof Set?ae.set:typeof Date<"u"&&a instanceof Date?ae.date:ae.object;default:return ae.unknown}},K=Le.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),sx=a=>JSON.stringify(a,null,2).replace(/"([^"]+)":/g,"$1:");class At extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const r=e||function(s){return s.message},i={_errors:[]},l=s=>{for(const d of s.issues)if(d.code==="invalid_union")d.unionErrors.map(l);else if(d.code==="invalid_return_type")l(d.returnTypeError);else if(d.code==="invalid_arguments")l(d.argumentsError);else if(d.path.length===0)i._errors.push(r(d));else{let u=i,p=0;for(;p<d.path.length;){const f=d.path[p];p===d.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(r(d))):u[f]=u[f]||{_errors:[]},u=u[f],p++}}};return l(this),i}static assert(e){if(!(e instanceof At))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Le.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},i=[];for(const l of this.issues)l.path.length>0?(r[l.path[0]]=r[l.path[0]]||[],r[l.path[0]].push(e(l))):i.push(e(l));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}At.create=a=>new At(a);const ea=(a,e)=>{let r;switch(a.code){case K.invalid_type:a.received===ae.undefined?r="Required":r=`Expected ${a.expected}, received ${a.received}`;break;case K.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(a.expected,Le.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:r=`Unrecognized key(s) in object: ${Le.joinValues(a.keys,", ")}`;break;case K.invalid_union:r="Invalid input";break;case K.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Le.joinValues(a.options)}`;break;case K.invalid_enum_value:r=`Invalid enum value. Expected ${Le.joinValues(a.options)}, received '${a.received}'`;break;case K.invalid_arguments:r="Invalid function arguments";break;case K.invalid_return_type:r="Invalid function return type";break;case K.invalid_date:r="Invalid date";break;case K.invalid_string:typeof a.validation=="object"?"includes"in a.validation?(r=`Invalid input: must include "${a.validation.includes}"`,typeof a.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${a.validation.position}`)):"startsWith"in a.validation?r=`Invalid input: must start with "${a.validation.startsWith}"`:"endsWith"in a.validation?r=`Invalid input: must end with "${a.validation.endsWith}"`:Le.assertNever(a.validation):a.validation!=="regex"?r=`Invalid ${a.validation}`:r="Invalid";break;case K.too_small:a.type==="array"?r=`Array must contain ${a.exact?"exactly":a.inclusive?"at least":"more than"} ${a.minimum} element(s)`:a.type==="string"?r=`String must contain ${a.exact?"exactly":a.inclusive?"at least":"over"} ${a.minimum} character(s)`:a.type==="number"?r=`Number must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${a.minimum}`:a.type==="date"?r=`Date must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(a.minimum))}`:r="Invalid input";break;case K.too_big:a.type==="array"?r=`Array must contain ${a.exact?"exactly":a.inclusive?"at most":"less than"} ${a.maximum} element(s)`:a.type==="string"?r=`String must contain ${a.exact?"exactly":a.inclusive?"at most":"under"} ${a.maximum} character(s)`:a.type==="number"?r=`Number must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="bigint"?r=`BigInt must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="date"?r=`Date must be ${a.exact?"exactly":a.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(a.maximum))}`:r="Invalid input";break;case K.custom:r="Invalid input";break;case K.invalid_intersection_types:r="Intersection results could not be merged";break;case K.not_multiple_of:r=`Number must be a multiple of ${a.multipleOf}`;break;case K.not_finite:r="Number must be finite";break;default:r=e.defaultError,Le.assertNever(a)}return{message:r}};let uu=ea;function cx(a){uu=a}function si(){return uu}const ci=a=>{const{data:e,path:r,errorMaps:i,issueData:l}=a,s=[...r,...l.path||[]],d={...l,path:s};if(l.message!==void 0)return{...l,path:s,message:l.message};let u="";const p=i.filter(f=>!!f).slice().reverse();for(const f of p)u=f(d,{data:e,defaultError:u}).message;return{...l,path:s,message:u}},dx=[];function re(a,e){const r=si(),i=ci({issueData:e,data:a.data,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,r,r===ea?void 0:ea].filter(l=>!!l)});a.common.issues.push(i)}class pt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const i=[];for(const l of r){if(l.status==="aborted")return ve;l.status==="dirty"&&e.dirty(),i.push(l.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,r){const i=[];for(const l of r){const s=await l.key,d=await l.value;i.push({key:s,value:d})}return pt.mergeObjectSync(e,i)}static mergeObjectSync(e,r){const i={};for(const l of r){const{key:s,value:d}=l;if(s.status==="aborted"||d.status==="aborted")return ve;s.status==="dirty"&&e.dirty(),d.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof d.value<"u"||l.alwaysSet)&&(i[s.value]=d.value)}return{status:e.value,value:i}}}const ve=Object.freeze({status:"aborted"}),di=a=>({status:"dirty",value:a}),vt=a=>({status:"valid",value:a}),ls=a=>a.status==="aborted",ss=a=>a.status==="dirty",Xa=a=>a.status==="valid",eo=a=>typeof Promise<"u"&&a instanceof Promise;function ui(a,e,r,i){if(typeof e=="function"?a!==e||!i:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(a)}function gu(a,e,r,i,l){if(typeof e=="function"?a!==e||!l:!e.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(a,r),r}var ce;(function(a){a.errToObj=e=>typeof e=="string"?{message:e}:e||{},a.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ce||(ce={}));var to,ro;class Cr{constructor(e,r,i,l){this._cachedPath=[],this.parent=e,this.data=r,this._path=i,this._key=l}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const pu=(a,e)=>{if(Xa(e))return{success:!0,data:e.value};if(!a.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new At(a.common.issues);return this._error=r,this._error}}};function Se(a){if(!a)return{};const{errorMap:e,invalid_type_error:r,required_error:i,description:l}=a;if(e&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:l}:{errorMap:(s,d)=>{var u,p;const{message:f}=a;return s.code==="invalid_enum_value"?{message:f??d.defaultError}:typeof d.data>"u"?{message:(u=f??i)!==null&&u!==void 0?u:d.defaultError}:s.code!=="invalid_type"?{message:d.defaultError}:{message:(p=f??r)!==null&&p!==void 0?p:d.defaultError}},description:l}}class Ne{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return rn(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:rn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new pt,ctx:{common:e.parent.common,data:e.data,parsedType:rn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(eo(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const i=this.safeParse(e,r);if(i.success)return i.data;throw i.error}safeParse(e,r){var i;const l={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rn(e)},s=this._parseSync({data:e,path:l.path,parent:l});return pu(l,s)}async parseAsync(e,r){const i=await this.safeParseAsync(e,r);if(i.success)return i.data;throw i.error}async safeParseAsync(e,r){const i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rn(e)},l=this._parse({data:e,path:i.path,parent:i}),s=await(eo(l)?l:Promise.resolve(l));return pu(i,s)}refine(e,r){const i=l=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(l):r;return this._refinement((l,s)=>{const d=e(l),u=()=>s.addIssue({code:K.custom,...i(l)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(u(),!1)):d?!0:(u(),!1)})}refinement(e,r){return this._refinement((i,l)=>e(i)?!0:(l.addIssue(typeof r=="function"?r(i,l):r),!1))}_refinement(e){return new ir({schema:this,typeName:me.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Tr.create(this,this._def)}nullable(){return sn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return or.create(this,this._def)}promise(){return aa.create(this,this._def)}or(e){return io.create([this,e],this._def)}and(e){return lo.create(this,e,this._def)}transform(e){return new ir({...Se(this._def),schema:this,typeName:me.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new po({...Se(this._def),innerType:this,defaultValue:r,typeName:me.ZodDefault})}brand(){return new us({typeName:me.ZodBranded,type:this,...Se(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new fo({...Se(this._def),innerType:this,catchValue:r,typeName:me.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return ho.create(this,e)}readonly(){return mo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ux=/^c[^\s-]{8,}$/i,gx=/^[0-9a-z]+$/,px=/^[0-9A-HJKMNP-TV-Z]{26}$/,fx=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hx=/^[a-z0-9_-]{21}$/i,mx=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,yx=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,bx="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cs;const vx=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,wx=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,xx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fu="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",_x=new RegExp(`^${fu}$`);function hu(a){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return a.precision?e=`${e}\\.\\d{${a.precision}}`:a.precision==null&&(e=`${e}(\\.\\d+)?`),e}function kx(a){return new RegExp(`^${hu(a)}$`)}function mu(a){let e=`${fu}T${hu(a)}`;const r=[];return r.push(a.local?"Z?":"Z"),a.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Cx(a,e){return!!((e==="v4"||!e)&&vx.test(a)||(e==="v6"||!e)&&wx.test(a))}class ar extends Ne{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ae.string){const l=this._getOrReturnCtx(e);return re(l,{code:K.invalid_type,expected:ae.string,received:l.parsedType}),ve}const r=new pt;let i;for(const l of this._def.checks)if(l.kind==="min")e.data.length<l.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:K.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),r.dirty());else if(l.kind==="max")e.data.length>l.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:K.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),r.dirty());else if(l.kind==="length"){const s=e.data.length>l.value,d=e.data.length<l.value;(s||d)&&(i=this._getOrReturnCtx(e,i),s?re(i,{code:K.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&re(i,{code:K.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),r.dirty())}else if(l.kind==="email")yx.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"email",code:K.invalid_string,message:l.message}),r.dirty());else if(l.kind==="emoji")cs||(cs=new RegExp(bx,"u")),cs.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"emoji",code:K.invalid_string,message:l.message}),r.dirty());else if(l.kind==="uuid")fx.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"uuid",code:K.invalid_string,message:l.message}),r.dirty());else if(l.kind==="nanoid")hx.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"nanoid",code:K.invalid_string,message:l.message}),r.dirty());else if(l.kind==="cuid")ux.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"cuid",code:K.invalid_string,message:l.message}),r.dirty());else if(l.kind==="cuid2")gx.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"cuid2",code:K.invalid_string,message:l.message}),r.dirty());else if(l.kind==="ulid")px.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"ulid",code:K.invalid_string,message:l.message}),r.dirty());else if(l.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),re(i,{validation:"url",code:K.invalid_string,message:l.message}),r.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"regex",code:K.invalid_string,message:l.message}),r.dirty())):l.kind==="trim"?e.data=e.data.trim():l.kind==="includes"?e.data.includes(l.value,l.position)||(i=this._getOrReturnCtx(e,i),re(i,{code:K.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),r.dirty()):l.kind==="toLowerCase"?e.data=e.data.toLowerCase():l.kind==="toUpperCase"?e.data=e.data.toUpperCase():l.kind==="startsWith"?e.data.startsWith(l.value)||(i=this._getOrReturnCtx(e,i),re(i,{code:K.invalid_string,validation:{startsWith:l.value},message:l.message}),r.dirty()):l.kind==="endsWith"?e.data.endsWith(l.value)||(i=this._getOrReturnCtx(e,i),re(i,{code:K.invalid_string,validation:{endsWith:l.value},message:l.message}),r.dirty()):l.kind==="datetime"?mu(l).test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{code:K.invalid_string,validation:"datetime",message:l.message}),r.dirty()):l.kind==="date"?_x.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{code:K.invalid_string,validation:"date",message:l.message}),r.dirty()):l.kind==="time"?kx(l).test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{code:K.invalid_string,validation:"time",message:l.message}),r.dirty()):l.kind==="duration"?mx.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"duration",code:K.invalid_string,message:l.message}),r.dirty()):l.kind==="ip"?Cx(e.data,l.version)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"ip",code:K.invalid_string,message:l.message}),r.dirty()):l.kind==="base64"?xx.test(e.data)||(i=this._getOrReturnCtx(e,i),re(i,{validation:"base64",code:K.invalid_string,message:l.message}),r.dirty()):Le.assertNever(l);return{status:r.value,value:e.data}}_regex(e,r,i){return this.refinement(l=>e.test(l),{validation:r,code:K.invalid_string,...ce.errToObj(i)})}_addCheck(e){return new ar({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ce.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ce.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ce.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ce.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ce.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ce.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ce.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ce.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ce.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ce.errToObj(e)})}datetime(e){var r,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,local:(i=e==null?void 0:e.local)!==null&&i!==void 0?i:!1,...ce.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...ce.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ce.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ce.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ce.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ce.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ce.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ce.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ce.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ce.errToObj(r)})}nonempty(e){return this.min(1,ce.errToObj(e))}trim(){return new ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}ar.create=a=>{var e;return new ar({checks:[],typeName:me.ZodString,coerce:(e=a==null?void 0:a.coerce)!==null&&e!==void 0?e:!1,...Se(a)})};function Sx(a,e){const r=(a.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,l=r>i?r:i,s=parseInt(a.toFixed(l).replace(".","")),d=parseInt(e.toFixed(l).replace(".",""));return s%d/Math.pow(10,l)}class nn extends Ne{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ae.number){const l=this._getOrReturnCtx(e);return re(l,{code:K.invalid_type,expected:ae.number,received:l.parsedType}),ve}let r;const i=new pt;for(const l of this._def.checks)l.kind==="int"?Le.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),re(r,{code:K.invalid_type,expected:"integer",received:"float",message:l.message}),i.dirty()):l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(r=this._getOrReturnCtx(e,r),re(r,{code:K.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),i.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(r=this._getOrReturnCtx(e,r),re(r,{code:K.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),i.dirty()):l.kind==="multipleOf"?Sx(e.data,l.value)!==0&&(r=this._getOrReturnCtx(e,r),re(r,{code:K.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):l.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),re(r,{code:K.not_finite,message:l.message}),i.dirty()):Le.assertNever(l);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,i,l){return new nn({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:ce.toString(l)}]})}_addCheck(e){return new nn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ce.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ce.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Le.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(r)&&Number.isFinite(e)}}nn.create=a=>new nn({checks:[],typeName:me.ZodNumber,coerce:(a==null?void 0:a.coerce)||!1,...Se(a)});class an extends Ne{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ae.bigint){const l=this._getOrReturnCtx(e);return re(l,{code:K.invalid_type,expected:ae.bigint,received:l.parsedType}),ve}let r;const i=new pt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(r=this._getOrReturnCtx(e,r),re(r,{code:K.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),i.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(r=this._getOrReturnCtx(e,r),re(r,{code:K.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),i.dirty()):l.kind==="multipleOf"?e.data%l.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),re(r,{code:K.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):Le.assertNever(l);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,i,l){return new an({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:ce.toString(l)}]})}_addCheck(e){return new an({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}an.create=a=>{var e;return new an({checks:[],typeName:me.ZodBigInt,coerce:(e=a==null?void 0:a.coerce)!==null&&e!==void 0?e:!1,...Se(a)})};class no extends Ne{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ae.boolean){const r=this._getOrReturnCtx(e);return re(r,{code:K.invalid_type,expected:ae.boolean,received:r.parsedType}),ve}return vt(e.data)}}no.create=a=>new no({typeName:me.ZodBoolean,coerce:(a==null?void 0:a.coerce)||!1,...Se(a)});class Bn extends Ne{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ae.date){const l=this._getOrReturnCtx(e);return re(l,{code:K.invalid_type,expected:ae.date,received:l.parsedType}),ve}if(isNaN(e.data.getTime())){const l=this._getOrReturnCtx(e);return re(l,{code:K.invalid_date}),ve}const r=new pt;let i;for(const l of this._def.checks)l.kind==="min"?e.data.getTime()<l.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:K.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),r.dirty()):l.kind==="max"?e.data.getTime()>l.value&&(i=this._getOrReturnCtx(e,i),re(i,{code:K.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),r.dirty()):Le.assertNever(l);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Bn({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ce.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ce.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}Bn.create=a=>new Bn({checks:[],coerce:(a==null?void 0:a.coerce)||!1,typeName:me.ZodDate,...Se(a)});class gi extends Ne{_parse(e){if(this._getType(e)!==ae.symbol){const r=this._getOrReturnCtx(e);return re(r,{code:K.invalid_type,expected:ae.symbol,received:r.parsedType}),ve}return vt(e.data)}}gi.create=a=>new gi({typeName:me.ZodSymbol,...Se(a)});class ao extends Ne{_parse(e){if(this._getType(e)!==ae.undefined){const r=this._getOrReturnCtx(e);return re(r,{code:K.invalid_type,expected:ae.undefined,received:r.parsedType}),ve}return vt(e.data)}}ao.create=a=>new ao({typeName:me.ZodUndefined,...Se(a)});class oo extends Ne{_parse(e){if(this._getType(e)!==ae.null){const r=this._getOrReturnCtx(e);return re(r,{code:K.invalid_type,expected:ae.null,received:r.parsedType}),ve}return vt(e.data)}}oo.create=a=>new oo({typeName:me.ZodNull,...Se(a)});class ta extends Ne{constructor(){super(...arguments),this._any=!0}_parse(e){return vt(e.data)}}ta.create=a=>new ta({typeName:me.ZodAny,...Se(a)});class Vn extends Ne{constructor(){super(...arguments),this._unknown=!0}_parse(e){return vt(e.data)}}Vn.create=a=>new Vn({typeName:me.ZodUnknown,...Se(a)});class Lr extends Ne{_parse(e){const r=this._getOrReturnCtx(e);return re(r,{code:K.invalid_type,expected:ae.never,received:r.parsedType}),ve}}Lr.create=a=>new Lr({typeName:me.ZodNever,...Se(a)});class pi extends Ne{_parse(e){if(this._getType(e)!==ae.undefined){const r=this._getOrReturnCtx(e);return re(r,{code:K.invalid_type,expected:ae.void,received:r.parsedType}),ve}return vt(e.data)}}pi.create=a=>new pi({typeName:me.ZodVoid,...Se(a)});class or extends Ne{_parse(e){const{ctx:r,status:i}=this._processInputParams(e),l=this._def;if(r.parsedType!==ae.array)return re(r,{code:K.invalid_type,expected:ae.array,received:r.parsedType}),ve;if(l.exactLength!==null){const d=r.data.length>l.exactLength.value,u=r.data.length<l.exactLength.value;(d||u)&&(re(r,{code:d?K.too_big:K.too_small,minimum:u?l.exactLength.value:void 0,maximum:d?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),i.dirty())}if(l.minLength!==null&&r.data.length<l.minLength.value&&(re(r,{code:K.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),i.dirty()),l.maxLength!==null&&r.data.length>l.maxLength.value&&(re(r,{code:K.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((d,u)=>l.type._parseAsync(new Cr(r,d,r.path,u)))).then(d=>pt.mergeArray(i,d));const s=[...r.data].map((d,u)=>l.type._parseSync(new Cr(r,d,r.path,u)));return pt.mergeArray(i,s)}get element(){return this._def.type}min(e,r){return new or({...this._def,minLength:{value:e,message:ce.toString(r)}})}max(e,r){return new or({...this._def,maxLength:{value:e,message:ce.toString(r)}})}length(e,r){return new or({...this._def,exactLength:{value:e,message:ce.toString(r)}})}nonempty(e){return this.min(1,e)}}or.create=(a,e)=>new or({type:a,minLength:null,maxLength:null,exactLength:null,typeName:me.ZodArray,...Se(e)});function ra(a){if(a instanceof Ye){const e={};for(const r in a.shape){const i=a.shape[r];e[r]=Tr.create(ra(i))}return new Ye({...a._def,shape:()=>e})}else return a instanceof or?new or({...a._def,type:ra(a.element)}):a instanceof Tr?Tr.create(ra(a.unwrap())):a instanceof sn?sn.create(ra(a.unwrap())):a instanceof Sr?Sr.create(a.items.map(e=>ra(e))):a}class Ye extends Ne{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=Le.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ae.object){const p=this._getOrReturnCtx(e);return re(p,{code:K.invalid_type,expected:ae.object,received:p.parsedType}),ve}const{status:r,ctx:i}=this._processInputParams(e),{shape:l,keys:s}=this._getCached(),d=[];if(!(this._def.catchall instanceof Lr&&this._def.unknownKeys==="strip"))for(const p in i.data)s.includes(p)||d.push(p);const u=[];for(const p of s){const f=l[p],m=i.data[p];u.push({key:{status:"valid",value:p},value:f._parse(new Cr(i,m,i.path,p)),alwaysSet:p in i.data})}if(this._def.catchall instanceof Lr){const p=this._def.unknownKeys;if(p==="passthrough")for(const f of d)u.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(p==="strict")d.length>0&&(re(i,{code:K.unrecognized_keys,keys:d}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const f of d){const m=i.data[f];u.push({key:{status:"valid",value:f},value:p._parse(new Cr(i,m,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const p=[];for(const f of u){const m=await f.key,_=await f.value;p.push({key:m,value:_,alwaysSet:f.alwaysSet})}return p}).then(p=>pt.mergeObjectSync(r,p)):pt.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return ce.errToObj,new Ye({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,i)=>{var l,s,d,u;const p=(d=(s=(l=this._def).errorMap)===null||s===void 0?void 0:s.call(l,r,i).message)!==null&&d!==void 0?d:i.defaultError;return r.code==="unrecognized_keys"?{message:(u=ce.errToObj(e).message)!==null&&u!==void 0?u:p}:{message:p}}}:{}})}strip(){return new Ye({...this._def,unknownKeys:"strip"})}passthrough(){return new Ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:me.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Ye({...this._def,catchall:e})}pick(e){const r={};return Le.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new Ye({...this._def,shape:()=>r})}omit(e){const r={};return Le.objectKeys(this.shape).forEach(i=>{e[i]||(r[i]=this.shape[i])}),new Ye({...this._def,shape:()=>r})}deepPartial(){return ra(this)}partial(e){const r={};return Le.objectKeys(this.shape).forEach(i=>{const l=this.shape[i];e&&!e[i]?r[i]=l:r[i]=l.optional()}),new Ye({...this._def,shape:()=>r})}required(e){const r={};return Le.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])r[i]=this.shape[i];else{let l=this.shape[i];for(;l instanceof Tr;)l=l._def.innerType;r[i]=l}}),new Ye({...this._def,shape:()=>r})}keyof(){return yu(Le.objectKeys(this.shape))}}Ye.create=(a,e)=>new Ye({shape:()=>a,unknownKeys:"strip",catchall:Lr.create(),typeName:me.ZodObject,...Se(e)}),Ye.strictCreate=(a,e)=>new Ye({shape:()=>a,unknownKeys:"strict",catchall:Lr.create(),typeName:me.ZodObject,...Se(e)}),Ye.lazycreate=(a,e)=>new Ye({shape:a,unknownKeys:"strip",catchall:Lr.create(),typeName:me.ZodObject,...Se(e)});class io extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e),i=this._def.options;function l(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return r.common.issues.push(...u.ctx.common.issues),u.result;const d=s.map(u=>new At(u.ctx.common.issues));return re(r,{code:K.invalid_union,unionErrors:d}),ve}if(r.common.async)return Promise.all(i.map(async s=>{const d={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:d}),ctx:d}})).then(l);{let s;const d=[];for(const p of i){const f={...r,common:{...r.common,issues:[]},parent:null},m=p._parseSync({data:r.data,path:r.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!s&&(s={result:m,ctx:f}),f.common.issues.length&&d.push(f.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const u=d.map(p=>new At(p));return re(r,{code:K.invalid_union,unionErrors:u}),ve}}get options(){return this._def.options}}io.create=(a,e)=>new io({options:a,typeName:me.ZodUnion,...Se(e)});const on=a=>a instanceof co?on(a.schema):a instanceof ir?on(a.innerType()):a instanceof uo?[a.value]:a instanceof ln?a.options:a instanceof go?Le.objectValues(a.enum):a instanceof po?on(a._def.innerType):a instanceof ao?[void 0]:a instanceof oo?[null]:a instanceof Tr?[void 0,...on(a.unwrap())]:a instanceof sn?[null,...on(a.unwrap())]:a instanceof us||a instanceof mo?on(a.unwrap()):a instanceof fo?on(a._def.innerType):[];class fi extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.object)return re(r,{code:K.invalid_type,expected:ae.object,received:r.parsedType}),ve;const i=this.discriminator,l=r.data[i],s=this.optionsMap.get(l);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(re(r,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,i){const l=new Map;for(const s of r){const d=on(s.shape[e]);if(!d.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const u of d){if(l.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);l.set(u,s)}}return new fi({typeName:me.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:l,...Se(i)})}}function ds(a,e){const r=rn(a),i=rn(e);if(a===e)return{valid:!0,data:a};if(r===ae.object&&i===ae.object){const l=Le.objectKeys(e),s=Le.objectKeys(a).filter(u=>l.indexOf(u)!==-1),d={...a,...e};for(const u of s){const p=ds(a[u],e[u]);if(!p.valid)return{valid:!1};d[u]=p.data}return{valid:!0,data:d}}else if(r===ae.array&&i===ae.array){if(a.length!==e.length)return{valid:!1};const l=[];for(let s=0;s<a.length;s++){const d=a[s],u=e[s],p=ds(d,u);if(!p.valid)return{valid:!1};l.push(p.data)}return{valid:!0,data:l}}else return r===ae.date&&i===ae.date&&+a==+e?{valid:!0,data:a}:{valid:!1}}class lo extends Ne{_parse(e){const{status:r,ctx:i}=this._processInputParams(e),l=(s,d)=>{if(ls(s)||ls(d))return ve;const u=ds(s.value,d.value);return u.valid?((ss(s)||ss(d))&&r.dirty(),{status:r.value,value:u.data}):(re(i,{code:K.invalid_intersection_types}),ve)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,d])=>l(s,d)):l(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}lo.create=(a,e,r)=>new lo({left:a,right:e,typeName:me.ZodIntersection,...Se(r)});class Sr extends Ne{_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.array)return re(i,{code:K.invalid_type,expected:ae.array,received:i.parsedType}),ve;if(i.data.length<this._def.items.length)return re(i,{code:K.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ve;!this._def.rest&&i.data.length>this._def.items.length&&(re(i,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const l=[...i.data].map((s,d)=>{const u=this._def.items[d]||this._def.rest;return u?u._parse(new Cr(i,s,i.path,d)):null}).filter(s=>!!s);return i.common.async?Promise.all(l).then(s=>pt.mergeArray(r,s)):pt.mergeArray(r,l)}get items(){return this._def.items}rest(e){return new Sr({...this._def,rest:e})}}Sr.create=(a,e)=>{if(!Array.isArray(a))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Sr({items:a,typeName:me.ZodTuple,rest:null,...Se(e)})};class so extends Ne{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.object)return re(i,{code:K.invalid_type,expected:ae.object,received:i.parsedType}),ve;const l=[],s=this._def.keyType,d=this._def.valueType;for(const u in i.data)l.push({key:s._parse(new Cr(i,u,i.path,u)),value:d._parse(new Cr(i,i.data[u],i.path,u)),alwaysSet:u in i.data});return i.common.async?pt.mergeObjectAsync(r,l):pt.mergeObjectSync(r,l)}get element(){return this._def.valueType}static create(e,r,i){return r instanceof Ne?new so({keyType:e,valueType:r,typeName:me.ZodRecord,...Se(i)}):new so({keyType:ar.create(),valueType:e,typeName:me.ZodRecord,...Se(r)})}}class hi extends Ne{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.map)return re(i,{code:K.invalid_type,expected:ae.map,received:i.parsedType}),ve;const l=this._def.keyType,s=this._def.valueType,d=[...i.data.entries()].map(([u,p],f)=>({key:l._parse(new Cr(i,u,i.path,[f,"key"])),value:s._parse(new Cr(i,p,i.path,[f,"value"]))}));if(i.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const p of d){const f=await p.key,m=await p.value;if(f.status==="aborted"||m.status==="aborted")return ve;(f.status==="dirty"||m.status==="dirty")&&r.dirty(),u.set(f.value,m.value)}return{status:r.value,value:u}})}else{const u=new Map;for(const p of d){const f=p.key,m=p.value;if(f.status==="aborted"||m.status==="aborted")return ve;(f.status==="dirty"||m.status==="dirty")&&r.dirty(),u.set(f.value,m.value)}return{status:r.value,value:u}}}}hi.create=(a,e,r)=>new hi({valueType:e,keyType:a,typeName:me.ZodMap,...Se(r)});class Mn extends Ne{_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.set)return re(i,{code:K.invalid_type,expected:ae.set,received:i.parsedType}),ve;const l=this._def;l.minSize!==null&&i.data.size<l.minSize.value&&(re(i,{code:K.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),r.dirty()),l.maxSize!==null&&i.data.size>l.maxSize.value&&(re(i,{code:K.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),r.dirty());const s=this._def.valueType;function d(p){const f=new Set;for(const m of p){if(m.status==="aborted")return ve;m.status==="dirty"&&r.dirty(),f.add(m.value)}return{status:r.value,value:f}}const u=[...i.data.values()].map((p,f)=>s._parse(new Cr(i,p,i.path,f)));return i.common.async?Promise.all(u).then(p=>d(p)):d(u)}min(e,r){return new Mn({...this._def,minSize:{value:e,message:ce.toString(r)}})}max(e,r){return new Mn({...this._def,maxSize:{value:e,message:ce.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Mn.create=(a,e)=>new Mn({valueType:a,minSize:null,maxSize:null,typeName:me.ZodSet,...Se(e)});class na extends Ne{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.function)return re(r,{code:K.invalid_type,expected:ae.function,received:r.parsedType}),ve;function i(u,p){return ci({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,si(),ea].filter(f=>!!f),issueData:{code:K.invalid_arguments,argumentsError:p}})}function l(u,p){return ci({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,si(),ea].filter(f=>!!f),issueData:{code:K.invalid_return_type,returnTypeError:p}})}const s={errorMap:r.common.contextualErrorMap},d=r.data;if(this._def.returns instanceof aa){const u=this;return vt(async function(...p){const f=new At([]),m=await u._def.args.parseAsync(p,s).catch(C=>{throw f.addIssue(i(p,C)),f}),_=await Reflect.apply(d,this,m);return await u._def.returns._def.type.parseAsync(_,s).catch(C=>{throw f.addIssue(l(_,C)),f})})}else{const u=this;return vt(function(...p){const f=u._def.args.safeParse(p,s);if(!f.success)throw new At([i(p,f.error)]);const m=Reflect.apply(d,this,f.data),_=u._def.returns.safeParse(m,s);if(!_.success)throw new At([l(m,_.error)]);return _.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new na({...this._def,args:Sr.create(e).rest(Vn.create())})}returns(e){return new na({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,i){return new na({args:e||Sr.create([]).rest(Vn.create()),returns:r||Vn.create(),typeName:me.ZodFunction,...Se(i)})}}class co extends Ne{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}co.create=(a,e)=>new co({getter:a,typeName:me.ZodLazy,...Se(e)});class uo extends Ne{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return re(r,{received:r.data,code:K.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:e.data}}get value(){return this._def.value}}uo.create=(a,e)=>new uo({value:a,typeName:me.ZodLiteral,...Se(e)});function yu(a,e){return new ln({values:a,typeName:me.ZodEnum,...Se(e)})}class ln extends Ne{constructor(){super(...arguments),to.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),i=this._def.values;return re(r,{expected:Le.joinValues(i),received:r.parsedType,code:K.invalid_type}),ve}if(ui(this,to)||gu(this,to,new Set(this._def.values)),!ui(this,to).has(e.data)){const r=this._getOrReturnCtx(e),i=this._def.values;return re(r,{received:r.data,code:K.invalid_enum_value,options:i}),ve}return vt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return ln.create(e,{...this._def,...r})}exclude(e,r=this._def){return ln.create(this.options.filter(i=>!e.includes(i)),{...this._def,...r})}}to=new WeakMap,ln.create=yu;class go extends Ne{constructor(){super(...arguments),ro.set(this,void 0)}_parse(e){const r=Le.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==ae.string&&i.parsedType!==ae.number){const l=Le.objectValues(r);return re(i,{expected:Le.joinValues(l),received:i.parsedType,code:K.invalid_type}),ve}if(ui(this,ro)||gu(this,ro,new Set(Le.getValidEnumValues(this._def.values))),!ui(this,ro).has(e.data)){const l=Le.objectValues(r);return re(i,{received:i.data,code:K.invalid_enum_value,options:l}),ve}return vt(e.data)}get enum(){return this._def.values}}ro=new WeakMap,go.create=(a,e)=>new go({values:a,typeName:me.ZodNativeEnum,...Se(e)});class aa extends Ne{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.promise&&r.common.async===!1)return re(r,{code:K.invalid_type,expected:ae.promise,received:r.parsedType}),ve;const i=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return vt(i.then(l=>this._def.type.parseAsync(l,{path:r.path,errorMap:r.common.contextualErrorMap})))}}aa.create=(a,e)=>new aa({type:a,typeName:me.ZodPromise,...Se(e)});class ir extends Ne{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:i}=this._processInputParams(e),l=this._def.effect||null,s={addIssue:d=>{re(i,d),d.fatal?r.abort():r.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),l.type==="preprocess"){const d=l.transform(i.data,s);if(i.common.async)return Promise.resolve(d).then(async u=>{if(r.value==="aborted")return ve;const p=await this._def.schema._parseAsync({data:u,path:i.path,parent:i});return p.status==="aborted"?ve:p.status==="dirty"||r.value==="dirty"?di(p.value):p});{if(r.value==="aborted")return ve;const u=this._def.schema._parseSync({data:d,path:i.path,parent:i});return u.status==="aborted"?ve:u.status==="dirty"||r.value==="dirty"?di(u.value):u}}if(l.type==="refinement"){const d=u=>{const p=l.refinement(u,s);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return u.status==="aborted"?ve:(u.status==="dirty"&&r.dirty(),d(u.value),{status:r.value,value:u.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>u.status==="aborted"?ve:(u.status==="dirty"&&r.dirty(),d(u.value).then(()=>({status:r.value,value:u.value}))))}if(l.type==="transform")if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Xa(d))return d;const u=l.transform(d.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:u}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>Xa(d)?Promise.resolve(l.transform(d.value,s)).then(u=>({status:r.value,value:u})):d);Le.assertNever(l)}}ir.create=(a,e,r)=>new ir({schema:a,typeName:me.ZodEffects,effect:e,...Se(r)}),ir.createWithPreprocess=(a,e,r)=>new ir({schema:e,effect:{type:"preprocess",transform:a},typeName:me.ZodEffects,...Se(r)});class Tr extends Ne{_parse(e){return this._getType(e)===ae.undefined?vt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Tr.create=(a,e)=>new Tr({innerType:a,typeName:me.ZodOptional,...Se(e)});class sn extends Ne{_parse(e){return this._getType(e)===ae.null?vt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}sn.create=(a,e)=>new sn({innerType:a,typeName:me.ZodNullable,...Se(e)});class po extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e);let i=r.data;return r.parsedType===ae.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}po.create=(a,e)=>new po({innerType:a,typeName:me.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Se(e)});class fo extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e),i={...r,common:{...r.common,issues:[]}},l=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return eo(l)?l.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new At(i.common.issues)},input:i.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new At(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}fo.create=(a,e)=>new fo({innerType:a,typeName:me.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Se(e)});class mi extends Ne{_parse(e){if(this._getType(e)!==ae.nan){const r=this._getOrReturnCtx(e);return re(r,{code:K.invalid_type,expected:ae.nan,received:r.parsedType}),ve}return{status:"valid",value:e.data}}}mi.create=a=>new mi({typeName:me.ZodNaN,...Se(a)});const Tx=Symbol("zod_brand");class us extends Ne{_parse(e){const{ctx:r}=this._processInputParams(e),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class ho extends Ne{_parse(e){const{status:r,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?ve:l.status==="dirty"?(r.dirty(),di(l.value)):this._def.out._parseAsync({data:l.value,path:i.path,parent:i})})();{const l=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?ve:l.status==="dirty"?(r.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:i.path,parent:i})}}static create(e,r){return new ho({in:e,out:r,typeName:me.ZodPipeline})}}class mo extends Ne{_parse(e){const r=this._def.innerType._parse(e),i=l=>(Xa(l)&&(l.value=Object.freeze(l.value)),l);return eo(r)?r.then(l=>i(l)):i(r)}unwrap(){return this._def.innerType}}mo.create=(a,e)=>new mo({innerType:a,typeName:me.ZodReadonly,...Se(e)});function bu(a,e={},r){return a?ta.create().superRefine((i,l)=>{var s,d;if(!a(i)){const u=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(d=(s=u.fatal)!==null&&s!==void 0?s:r)!==null&&d!==void 0?d:!0,f=typeof u=="string"?{message:u}:u;l.addIssue({code:"custom",...f,fatal:p})}}):ta.create()}const Ex={object:Ye.lazycreate};var me;(function(a){a.ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly"})(me||(me={}));const Nx=(a,e={message:`Input not instance of ${a.name}`})=>bu(r=>r instanceof a,e),vu=ar.create,wu=nn.create,Bx=mi.create,Vx=an.create,xu=no.create,Mx=Bn.create,zx=gi.create,Ax=ao.create,Ox=oo.create,Lx=ta.create,Ix=Vn.create,Dx=Lr.create,Rx=pi.create,Px=or.create,jx=Ye.create,Fx=Ye.strictCreate,$x=io.create,Zx=fi.create,Ux=lo.create,Hx=Sr.create,Wx=so.create,qx=hi.create,Yx=Mn.create,Gx=na.create,Kx=co.create,Jx=uo.create,Qx=ln.create,Xx=go.create,e_=aa.create,_u=ir.create,t_=Tr.create,r_=sn.create,n_=ir.createWithPreprocess,a_=ho.create;var yi=Object.freeze({__proto__:null,defaultErrorMap:ea,setErrorMap:cx,getErrorMap:si,makeIssue:ci,EMPTY_PATH:dx,addIssueToContext:re,ParseStatus:pt,INVALID:ve,DIRTY:di,OK:vt,isAborted:ls,isDirty:ss,isValid:Xa,isAsync:eo,get util(){return Le},get objectUtil(){return is},ZodParsedType:ae,getParsedType:rn,ZodType:Ne,datetimeRegex:mu,ZodString:ar,ZodNumber:nn,ZodBigInt:an,ZodBoolean:no,ZodDate:Bn,ZodSymbol:gi,ZodUndefined:ao,ZodNull:oo,ZodAny:ta,ZodUnknown:Vn,ZodNever:Lr,ZodVoid:pi,ZodArray:or,ZodObject:Ye,ZodUnion:io,ZodDiscriminatedUnion:fi,ZodIntersection:lo,ZodTuple:Sr,ZodRecord:so,ZodMap:hi,ZodSet:Mn,ZodFunction:na,ZodLazy:co,ZodLiteral:uo,ZodEnum:ln,ZodNativeEnum:go,ZodPromise:aa,ZodEffects:ir,ZodTransformer:ir,ZodOptional:Tr,ZodNullable:sn,ZodDefault:po,ZodCatch:fo,ZodNaN:mi,BRAND:Tx,ZodBranded:us,ZodPipeline:ho,ZodReadonly:mo,custom:bu,Schema:Ne,ZodSchema:Ne,late:Ex,get ZodFirstPartyTypeKind(){return me},coerce:{string:a=>ar.create({...a,coerce:!0}),number:a=>nn.create({...a,coerce:!0}),boolean:a=>no.create({...a,coerce:!0}),bigint:a=>an.create({...a,coerce:!0}),date:a=>Bn.create({...a,coerce:!0})},any:Lx,array:Px,bigint:Vx,boolean:xu,date:Mx,discriminatedUnion:Zx,effect:_u,enum:Qx,function:Gx,instanceof:Nx,intersection:Ux,lazy:Kx,literal:Jx,map:qx,nan:Bx,nativeEnum:Xx,never:Dx,null:Ox,nullable:r_,number:wu,object:jx,oboolean:()=>xu().optional(),onumber:()=>wu().optional(),optional:t_,ostring:()=>vu().optional(),pipeline:a_,preprocess:n_,promise:e_,record:Wx,set:Yx,strictObject:Fx,string:vu,symbol:zx,transformer:_u,tuple:Hx,undefined:Ax,union:$x,unknown:Ix,void:Rx,NEVER:ve,ZodIssueCode:K,quotelessJson:sx,ZodError:At});function o_(a){throw new Error("Unexpected object: "+a)}const ku="upload://upload/",Cu="index://index/";function i_(a){return a.startsWith(ku)}function l_(a){return a.startsWith(Cu)}function s_(a){if(l_(a)){const e=a.slice(Cu.length);return JSON.parse(decodeURIComponent(e)).path}else if(i_(a)){const e=a.slice(ku.length);return JSON.parse(decodeURIComponent(e)).localPath}o_(a)}yi.object({__isRef:yi.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:yi.string().describe("Upstream block id"),name:yi.string().describe("Name of the output provided to the upstream block's output context")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").strict().readonly();function c_(a){return a.replace(/^.*[\\/]/,"")}const d_={key:0,ref:"label"},u_={key:0,class:"required-icon"},g_=["data-placeholder"],p_={key:5,class:"pl-file-input__stats"},f_={key:0,class:"pl-file-input__error"},h_={key:1,class:"upl-file-input__helper"},Su=t.defineComponent({__name:"PlFileInput",props:{modelValue:{},label:{default:void 0},required:{type:Boolean},dashed:{type:Boolean},extensions:{default:void 0},fileDialogTitle:{default:void 0},placeholder:{default:void 0},progress:{default:void 0},error:{default:void 0},helper:{default:void 0},showFilenameOnly:{type:Boolean},cellStyle:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.reactive({fileDialogOpen:!1}),i=t.useSlots(),l=e,s=a,d=t.computed(()=>{if(s.modelValue)try{const v=s_(s.modelValue).trim();return s.showFilenameOnly?c_(v):v}catch(v){return console.error(v),s.modelValue}return""}),u=t.computed(()=>s.progress&&!s.progress.done),p=t.computed(()=>s.progress&&s.progress.done),f=t.computed(()=>s.error),m=t.computed(()=>s.error),_=t.computed(()=>{const{status:v,done:A}=s.progress??{};return!v||!v.bytesTotal?"":v.bytesProcessed&&!A?Rl(v.bytesProcessed,{})+" / "+Rl(v.bytesTotal,{}):Rl(v.bytesTotal,{})}),C=t.computed(()=>{var v;const{progress:A}=s;return A?{width:A.done?"100%":Math.round((((v=A.status)==null?void 0:v.progress)??0)*100)+"%"}:{}}),T=()=>{r.fileDialogOpen=!0},O=v=>{v.files.length&&l("update:modelValue",v.files[0])},S=()=>l("update:modelValue",void 0),M=t.ref();return s.cellStyle||Ar(M),(v,A)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass([{"pl-file-input__cell-style":!!v.cellStyle,"has-file":!!d.value},"pl-file-input__envelope"])},[t.createElementVNode("div",{ref_key:"rootRef",ref:M,class:t.normalizeClass(["pl-file-input",{dashed:v.dashed,error:f.value}]),tabindex:"0",onKeyup:t.withKeys(T,["enter"])},[t.createElementVNode("div",{class:"pl-file-input__progress",style:t.normalizeStyle(C.value)},null,4),A[3]||(A[3]=t.createTextVNode()),!v.cellStyle&&v.label?(t.openBlock(),t.createElementBlock("label",d_,[v.required?(t.openBlock(),t.createElementBlock("i",u_)):t.createCommentVNode("",!0),A[1]||(A[1]=t.createTextVNode()),t.createElementVNode("span",null,t.toDisplayString(v.label),1),A[2]||(A[2]=t.createTextVNode()),t.unref(i).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:1,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(v.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),A[4]||(A[4]=t.createTextVNode()),f.value?(t.openBlock(),t.createBlock(t.unref(Or),{key:1,name:"restart"})):u.value?(t.openBlock(),t.createBlock(t.unref(Or),{key:2,name:"cloud-upload"})):p.value?(t.openBlock(),t.createBlock(t.unref(Or),{key:3,name:"success"})):(t.openBlock(),t.createBlock(t.unref(Or),{key:4,name:"paper-clip"})),A[5]||(A[5]=t.createTextVNode()),t.createElementVNode("div",{"data-placeholder":v.placeholder??"Choose file",class:"pl-file-input__filename",onClick:t.withModifiers(T,["stop"])},t.toDisplayString(d.value),9,g_),A[6]||(A[6]=t.createTextVNode()),_.value?(t.openBlock(),t.createElementBlock("div",p_,t.toDisplayString(_.value),1)):t.createCommentVNode("",!0),A[7]||(A[7]=t.createTextVNode()),v.modelValue?(t.openBlock(),t.createBlock(t.unref(Or),{key:6,name:"close",onClick:t.withModifiers(S,["stop"])})):t.createCommentVNode("",!0),A[8]||(A[8]=t.createTextVNode()),t.createVNode(tn,{class:"pl-file-input__contour"})],34),A[9]||(A[9]=t.createTextVNode()),f.value?(t.openBlock(),t.createElementBlock("div",f_,t.toDisplayString(m.value),1)):v.helper?(t.openBlock(),t.createElementBlock("div",h_,t.toDisplayString(v.helper),1)):t.createCommentVNode("",!0)],2),A[10]||(A[10]=t.createTextVNode()),t.createVNode(t.unref(du),{modelValue:r.fileDialogOpen,"onUpdate:modelValue":A[0]||(A[0]=I=>r.fileDialogOpen=I),extensions:v.extensions,title:v.fileDialogTitle,"onImport:files":O},null,8,["modelValue","extensions","title"])],64))}}),m_={class:"pl-notification-alert__wrapper d-flex"},y_={class:"pl-notification-alert__content flex-grow-1"},b_={key:0,class:"pl-notification-alert__close"},v_={key:0,class:"pl-notification-alert__actions d-flex"},Tu=t.defineComponent({__name:"PlNotificationAlert",props:t.mergeModels({type:{default:"neutral"},width:{default:"256px"},closable:{type:Boolean}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const e=a,r=t.useModel(a,"modelValue");function i(){e.closable&&(r.value=!1)}return(l,s)=>r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([l.type,"pl-notification-alert d-flex flex-column gap-16"]),style:t.normalizeStyle({width:`${l.width}`})},[t.createElementVNode("div",m_,[t.createElementVNode("div",y_,[t.renderSlot(l.$slots,"default")]),s[0]||(s[0]=t.createTextVNode()),l.closable?(t.openBlock(),t.createElementBlock("div",b_,[t.createVNode(t.unref(Gl),{icon:"close",onClick:i})])):t.createCommentVNode("",!0)]),s[1]||(s[1]=t.createTextVNode()),l.$slots.actions?(t.openBlock(),t.createElementBlock("div",v_,[t.renderSlot(l.$slots,"actions")])):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}}),Eu=t.defineComponent({__name:"PlCopyData",emits:["copy"],setup(a,{emit:e}){const r=e,i=t.ref(!1),l=t.computed(()=>i.value?"mask-clipboard-copied":"mask-clipboard");function s(){i.value=!0,setTimeout(()=>i.value=!1,700),r("copy")}return(d,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.value,"mask-24"]),onClick:s},null,2))}}),w_=t.defineComponent({__name:"ContextProvider",props:{context:{},contextKey:{}},setup(a){const e=a;return t.provide(e.contextKey,t.computed(()=>e.context)),(r,i)=>t.renderSlot(r.$slots,"default")}});function ft(a,e,r){return e>a?e:a>r?r:a}const gs=a=>t.computed(()=>{const e=[100],{min:r,max:i,step:l}=a.value;let s=r;for(;s<i;){s+=l;const d=(1-(ft(s,r,i)-r)/(i-r))*100;e.push(d)}return e}),x_={class:"ui-slider__wrapper"},__={class:"ui-slider__label-section"},k_={key:0,class:"text-s"},C_={key:1,class:"ui-slider__value-static text-s"},S_={class:"ui-slider__base"},T_={class:"ui-slider__container"},E_={class:"ui-slider__container ui-slider__container-thumb"},N_={class:"ui-slider__input-wrapper d-flex"},B_=["value"],V_={key:0,class:"ui-slider__error"},M_=t.defineComponent({__name:"Slider",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.useSlots(),i=e,l=a,s=t.reactive({deltaValue:0}),d=t.computed(()=>l.max-l.min),u=t.computed(()=>ft((l.modelValue??0)+s.deltaValue,l.min,l.max)),p=t.ref(l.modelValue),f=t.computed(()=>{const j=l.modelValue;return Number.isFinite(j)?j<l.min?`Min value: ${l.min}`:j>l.max?`Max value: ${l.max}`:l.error:"Not a number"}),m=t.computed(()=>l),_=gs(m),C=t.computed(()=>(u.value-l.min)/d.value),T=t.computed(()=>({right:Math.ceil((1-C.value)*100)+"%"})),O=t.computed(()=>({right:`calc(${Math.ceil((1-C.value)*100)}%) `})),S=t.ref(),M=t.ref();t.watch(()=>l.modelValue,j=>{p.value=j});function v(j){const Y=ft(j,l.min,l.max);return Math.round((Y+Number.EPSILON)*(1/l.step))/(1/l.step)}en(M,j=>{var Y;nt((Y=t.unref(S))==null?void 0:Y.getBoundingClientRect(),F=>{const{dx:B}=j;s.deltaValue=B/F.width*d.value,p.value=v(ft((l.modelValue??0)+s.deltaValue,l.min,l.max)),j.stop&&(i("update:modelValue",v(u.value)),s.deltaValue=0)})});function A(j){i("update:modelValue",v(j))}function I(j){A(+j.target.value)}function W(j){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(j.code)&&j.preventDefault();const Y=j.code==="ArrowUp"||j.code==="ArrowRight"?l.step*1:j.code==="ArrowDown"||j.code==="ArrowLeft"?l.step*-1:0;A(l.modelValue+Y)}return(j,Y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[t.createElementVNode("div",{class:t.normalizeClass([`ui-slider__mode-${l.mode}`,"ui-slider"])},[t.createElementVNode("div",x_,[t.createElementVNode("div",__,[j.label?(t.openBlock(),t.createElementBlock("label",k_,[t.createElementVNode("span",null,t.toDisplayString(j.label),1),Y[1]||(Y[1]=t.createTextVNode()),t.unref(r).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:0,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(j.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),Y[2]||(Y[2]=t.createTextVNode()),l.mode==="text"?(t.openBlock(),t.createElementBlock("div",C_,t.toDisplayString(p.value)+t.toDisplayString(j.measure),1)):t.createCommentVNode("",!0)]),Y[6]||(Y[6]=t.createTextVNode()),t.createElementVNode("div",S_,[t.createElementVNode("div",T_,[t.createElementVNode("div",{ref_key:"barRef",ref:S,class:"ui-slider__bar"},[t.createElementVNode("div",{class:"ui-slider__progress",style:t.normalizeStyle(T.value)},null,4)],512)]),Y[5]||(Y[5]=t.createTextVNode()),t.createElementVNode("div",E_,[l.breakpoints?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(_),(F,B)=>(t.openBlock(),t.createElementBlock("div",{key:B,style:t.normalizeStyle({right:`${F}%`}),class:"ui-slider__thumb-step"},null,4))),128)):t.createCommentVNode("",!0),Y[4]||(Y[4]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"thumbRef",ref:M,tabindex:"0",class:"ui-slider__thumb ui-slider__thumb-active",style:t.normalizeStyle(O.value),onKeydown:W},Y[3]||(Y[3]=[t.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),Y[7]||(Y[7]=t.createTextVNode()),t.createElementVNode("div",N_,[l.mode==="input"?(t.openBlock(),t.createElementBlock("input",{key:0,value:p.value,class:"ui-slider__value text-s",onChange:Y[0]||(Y[0]=F=>I(F))},null,40,B_)):t.createCommentVNode("",!0)])],2),Y[8]||(Y[8]=t.createTextVNode()),f.value?(t.openBlock(),t.createElementBlock("div",V_,t.toDisplayString(f.value),1)):t.createCommentVNode("",!0)],2))}});function z_(a,e=null,r=null){function i(u){const{scrollTop:p,scrollHeight:f,clientHeight:m}=u;if(!(f>m)||!e)return null;const _=f-p-m,C=p>e?e:0,T=_>e?m-e-C:m;return`linear-gradient(
|
|
64
|
+
`,vx=["innerHTML"],yx={class:"dropdown-list-item__title-container"},bx={class:"dropdown-list-item__title text-s"},wx={key:0,class:"dropdown-list-item__description text-description"},xx={key:1,class:"dropdown-list-item__icon flex-self-start"},aa=n.defineComponent({__name:"DropdownListItem",props:{option:{},isSelected:{type:Boolean,default:!1},size:{default:"small"},isHovered:{type:Boolean,default:!1},useCheckbox:{type:Boolean,default:!1}},setup(t){const e=t,r=n.computed(()=>{const s=[];return e.size==="small"&&s.push("dropdown-list-item__small"),e.isSelected&&s.push("dropdown-list-item__selected"),e.isHovered&&s.push("hovered-item"),s.join(" ")}),o=n.computed(()=>{const s=["dropdown-list-item__checkbox","flex-self-start"];return e.isSelected&&s.push("checked"),s.join(" ")}),i=n.computed(()=>e.isSelected?mx:fx);return(s,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([r.value,"dropdown-list-item"])},[e.useCheckbox?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(o.value),innerHTML:i.value},null,10,vx)):n.createCommentVNode("",!0),d[1]||(d[1]=n.createTextVNode()),n.createElementVNode("div",yx,[n.createElementVNode("div",bx,n.toDisplayString(s.option.label),1),d[0]||(d[0]=n.createTextVNode()),s.option.description?(n.openBlock(),n.createElementBlock("div",wx,n.toDisplayString(s.option.description),1)):n.createCommentVNode("",!0)]),d[2]||(d[2]=n.createTextVNode()),!e.useCheckbox&&e.isSelected?(n.openBlock(),n.createElementBlock("div",xx)):n.createCommentVNode("",!0)],2))}}),vs=n.defineComponent({__name:"LongText",setup(t){n.useCssVars(f=>({"8d68520c":d.value}));const e=n.ref(!1),r=n.ref(),o=n.ref(!1),i=n.computed(()=>o.value&&e.value?"ui-lt-animate":""),s=Au(f=>o.value=f,500),d=n.computed(()=>{var f;return r.value?`${((f=r.value)==null?void 0:f.innerHTML.length)*.4}s`:"5s"});function u(){const f=os(r.value,"span cannot be empty");e.value=f.clientWidth<f.scrollWidth}function p(){u(),s(!0)}function h(){s(!1)}return(f,y)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps(f.$attrs,{class:"ui-lt-container"}),[n.createElementVNode("span",{onMouseover:p,onMouseleave:h},[n.createElementVNode("span",{ref_key:"span",ref:r,class:n.normalizeClass(i.value)},[n.renderSlot(f.$slots,"default")],2)],32)],16))}}),Lr=n.defineComponent({__name:"PlMaskIcon24",props:{name:{},size:{}},setup(t){const e=t,r=n.computed(()=>`mask-24 mask-${e.name}`);return(o,i)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(r.value)},null,2))}}),Cx={class:"pl-dropdown__envelope"},_x=["tabindex"],kx={class:"pl-dropdown__container"},Sx={class:"pl-dropdown__field"},Tx=["disabled","placeholder"],Ex={class:"pl-dropdown__controls"},Nx={key:0},Ax={key:0,class:"required-icon"},Mx={key:0,class:"nothing-found"},Bx={key:0,class:"pl-dropdown__error"},Px={key:1,class:"pl-dropdown__helper"},Dx={key:2,class:"pl-dropdown__helper"},Vx={name:"PlDropdown"},ys=n.defineComponent({...Vx,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},arrowIcon:{default:void 0},arrowIconLarge:{default:void 0},optionSize:{default:"small"}},emits:["update:modelValue"],setup(t,{emit:e}){const r=e,o=t,i=n.useSlots(),s=n.ref(),d=n.ref(),u=n.ref(),p=n.reactive({search:"",activeIndex:-1,open:!1,optionsHeight:0}),h=()=>na(R.value.findIndex(B=>Et(B.value,o.modelValue)),B=>B<0?0:B),f=()=>p.activeIndex=h(),y=n.computed(()=>o.options===void 0),S=n.computed(()=>y.value?!0:o.disabled),k=n.computed(()=>(o.options??[]).findIndex(B=>Et(B.value,o.modelValue))),D=n.computed(()=>{if(!y.value){if(o.error)return o.error;if(o.modelValue!==void 0&&k.value===-1)return"The selected value is not one of the options"}}),E=n.computed(()=>Bn(o.options??[]).map((B,O)=>({...B,index:O,isSelected:O===k.value,isActive:O===p.activeIndex}))),A=n.computed(()=>{const B=n.unref(E).find(O=>Et(O.value,o.modelValue));return(B==null?void 0:B.label)||o.modelValue}),w=n.computed(()=>!p.open&&o.modelValue?"":o.modelValue?String(A.value):o.placeholder),L=n.computed(()=>o.modelValue!==void 0&&o.modelValue!==null),R=n.computed(()=>{const B=E.value;return p.search?B.filter(O=>{const X=p.search.toLowerCase();return O.label.toLowerCase().includes(X)||O.description&&O.description.toLowerCase().includes(X)?!0:typeof O.value=="string"?O.value.toLowerCase().includes(X):O.value===p.search}):B}),H=n.computed(()=>S.value?void 0:"0"),G=B=>{var O;r("update:modelValue",B),p.search="",p.open=!1,(O=s==null?void 0:s.value)==null||O.focus()},K=()=>r("update:modelValue",void 0),U=()=>{var B;return(B=u.value)==null?void 0:B.focus()},P=()=>p.open=!p.open,W=()=>p.open=!0,F=B=>{var O,X;const ye=B.relatedTarget;!((O=s.value)!=null&&O.contains(ye))&&!((X=d.value)!=null&&X.contains(ye))&&(p.search="",p.open=!1)},Y=()=>{const B=d.value;B&&ot(B.querySelector(".hovered-item"),O=>{oa(B,O)})},ue=B=>{var O,X;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(B.code))B.preventDefault();else return;const{open:ye,activeIndex:_e}=p;if(!ye){B.code==="Enter"&&(p.open=!0);return}B.code==="Escape"&&(p.open=!1,(O=s.value)==null||O.focus());const zt=n.unref(R),{length:Ht}=zt;if(!Ht)return;B.code==="Enter"&&G((X=zt.find(Ea=>Ea.index===_e))==null?void 0:X.value);const Nt=zt.findIndex(Ea=>Ea.index===_e)??-1,Ta=B.code==="ArrowDown"?1:B.code==="ArrowUp"?-1:0,On=Math.abs(Nt+Ta+Ht)%Ht;p.activeIndex=R.value[On].index??-1};Vr(s),n.watch(()=>o.modelValue,f,{immediate:!0}),n.watch(()=>p.open,B=>{var O;return B?(O=u.value)==null?void 0:O.focus():""}),n.watchPostEffect(()=>{p.search,p.activeIndex>=0&&p.open&&Y()});const j=n.reactive({top:"0px",left:"0px",width:"0px"});return n.watch(d,B=>{if(B){const O=B.getBoundingClientRect();p.optionsHeight=O.height,window.dispatchEvent(new CustomEvent("adjust"))}}),ra(s,B=>{const O=B.top+B.height+3;O+p.optionsHeight>B.clientHeight?j.top=B.top-p.optionsHeight-3+"px":j.top=O+"px",j.left=B.left+"px",j.width=B.width+"px"}),(B,O)=>(n.openBlock(),n.createElementBlock("div",Cx,[n.createElementVNode("div",{ref_key:"root",ref:s,tabindex:H.value,class:n.normalizeClass(["pl-dropdown",{open:p.open,error:B.error,disabled:S.value}]),onKeydown:ue,onFocusout:F},[n.createElementVNode("div",kx,[n.createElementVNode("div",Sx,[n.withDirectives(n.createElementVNode("input",{ref_key:"input",ref:u,"onUpdate:modelValue":O[0]||(O[0]=X=>p.search=X),type:"text",tabindex:"-1",disabled:S.value,placeholder:w.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:W},null,40,Tx),[[n.vModelText,p.search]]),O[4]||(O[4]=n.createTextVNode()),p.open?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,onClick:U},[n.createVNode(vs,{class:"input-value"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(A.value),1)]),_:1})])),O[5]||(O[5]=n.createTextVNode()),n.createElementVNode("div",Ex,[y.value?(n.openBlock(),n.createBlock(n.unref(Lr),{key:0,name:"loading"})):n.createCommentVNode("",!0),O[1]||(O[1]=n.createTextVNode()),B.clearable&&L.value?(n.openBlock(),n.createBlock(n.unref(hi),{key:1,name:"delete-clear",onClick:n.withModifiers(K,["stop"])})):n.createCommentVNode("",!0),O[2]||(O[2]=n.createTextVNode()),n.renderSlot(B.$slots,"append"),O[3]||(O[3]=n.createTextVNode()),B.arrowIconLarge?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["arrow-icon",[`icon-24 ${B.arrowIconLarge}`]]),onClick:n.withModifiers(P,["stop"])},null,2)):B.arrowIcon?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["arrow-icon",[`icon-16 ${B.arrowIcon}`]]),onClick:n.withModifiers(P,["stop"])},null,2)):(n.openBlock(),n.createElementBlock("div",{key:4,class:"arrow-icon arrow-icon-default",onClick:n.withModifiers(P,["stop"])}))])]),O[9]||(O[9]=n.createTextVNode()),B.label?(n.openBlock(),n.createElementBlock("label",Nx,[B.required?(n.openBlock(),n.createElementBlock("i",Ax)):n.createCommentVNode("",!0),O[6]||(O[6]=n.createTextVNode()),n.createElementVNode("span",null,n.toDisplayString(B.label),1),O[7]||(O[7]=n.createTextVNode()),n.unref(i).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:1,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(B.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),O[10]||(O[10]=n.createTextVNode()),p.open?(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:"body"},[n.createElementVNode("div",{ref_key:"list",ref:d,class:"pl-dropdown__options",style:n.normalizeStyle(j),tabindex:"-1"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(R.value,(X,ye)=>(n.openBlock(),n.createBlock(aa,{key:ye,option:X,"is-selected":X.isSelected,"is-hovered":X.isActive,size:B.optionSize,onClick:n.withModifiers(_e=>G(X.value),["stop"])},null,8,["option","is-selected","is-hovered","size","onClick"]))),128)),O[8]||(O[8]=n.createTextVNode()),R.value.length?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Mx,"Nothing found"))],4)])):n.createCommentVNode("",!0),O[11]||(O[11]=n.createTextVNode()),n.createVNode(on,{class:"pl-dropdown__contour"})])],42,_x),O[12]||(O[12]=n.createTextVNode()),D.value?(n.openBlock(),n.createElementBlock("div",Bx,n.toDisplayString(D.value),1)):y.value&&B.loadingOptionsHelper?(n.openBlock(),n.createElementBlock("div",Px,n.toDisplayString(B.loadingOptionsHelper),1)):B.helper?(n.openBlock(),n.createElementBlock("div",Dx,n.toDisplayString(B.helper),1)):n.createCommentVNode("",!0)]))}}),Lx={name:"PlDropdownRef"},Ix=n.defineComponent({...Lx,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},optionSize:{default:"small"}},emits:["update:modelValue"],setup(t){const e=t,r=n.computed(()=>{var i;return(i=e.options)==null?void 0:i.map(s=>({label:s.label,value:s.ref}))}),o=n.computed(()=>e.disabled?"icon-link-disabled":"icon-link");return(i,s)=>(n.openBlock(),n.createBlock(n.unref(ys),n.mergeProps(e,{options:r.value,"loading-options-helper":i.loadingOptionsHelper,"arrow-icon-large":o.value,"onUpdate:modelValue":s[0]||(s[0]=d=>i.$emit("update:modelValue",d))}),null,16,["options","loading-options-helper","arrow-icon-large"]))}});function Fx(t,e){return n.computed(()=>{const r=Bn(t.value);return e.value?r.filter(o=>o.label.toLowerCase().includes(e.value.toLowerCase())):r})}const Rx={class:"resizable-input"},Ox=["placeholder","value","disabled"],zx=n.defineComponent({__name:"ResizableInput",props:{modelValue:{},placeholder:{},value:{},disabled:{type:Boolean},maxWidth:{},width:{}},emits:["input","update:modelValue"],setup(t,{emit:e}){const r=t,o=e,i=n.computed(()=>{var u;return r.placeholder?r.placeholder:(u=r.modelValue||r.value)==null?void 0:u.replace('"',"")}),s=n.computed(()=>{const u={};return r.width&&(u.width=r.width),r.maxWidth&&(u.maxWidth=r.maxWidth),u});function d(u){const p=u.target.value;o("update:modelValue",p)}return(u,p)=>(n.openBlock(),n.createElementBlock("div",Rx,[n.createElementVNode("span",{style:n.normalizeStyle(s.value),class:"resizable-input__size-span"},n.toDisplayString(i.value),5),p[0]||(p[0]=n.createTextVNode()),n.createElementVNode("input",n.mergeProps(u.$attrs,{placeholder:u.placeholder,value:r.modelValue,disabled:r.disabled,style:s.value,onInput:d}),null,16,Ox)]))}}),Gx={class:"dropdown-tab-item__title text-caps13"},jx=n.defineComponent({__name:"TabItem",props:{option:{},isSelected:{type:Boolean,default:!1},isHovered:{type:Boolean,default:!1}},setup(t){const e=t,r=n.computed(()=>e.option.label),o=n.computed(()=>{const i=[];return e.isSelected&&i.push("dropdown-tab-item__selected"),e.isHovered&&i.push("hovered-item"),i.join(" ")});return(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([o.value,"dropdown-tab-item"])},[n.createElementVNode("div",Gx,n.toDisplayString(r.value),1)],2))}}),Ux={class:"pl-line-dropdown__prefix"},Zx={class:"pl-line-dropdown__icon-wrapper"},$x={class:"pl-line-dropdown__icon"},Wx={key:0,class:"pl-line-dropdown__no-item"},Hx={key:0,class:"pl-line-dropdown__no-item"},Wu=n.defineComponent({__name:"PlDropdownLine",props:{modelValue:{},disabled:{type:Boolean},prefix:{default:""},options:{},placeholder:{default:"Select.."},mode:{default:"list"},tabsContainerStyles:{type:[Boolean,null,String,Object,Array],default:void 0},clearable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const r=e,o=t,i=n.reactive({isOpen:!1,activeOption:-1,optionsHeight:0}),s=n.ref(),d=n.ref(),u=n.computed(()=>{const F=[];return i.isOpen&&F.push("open"),o.disabled&&F.push("disabled"),F.join(" ")}),p=n.ref(""),h=Fx(n.toRef(o,"options"),p),f=n.computed(()=>!!(o.clearable&&i.isOpen&&o.modelValue&&y.value)),y=n.computed(()=>{if(o.modelValue){const F=D();if(F!==-1){const Y=Bn(o.options)[F];return typeof Y.label=="object"?Y.label.title:Y.label}}return""}),S=n.ref(y.value),k=n.computed(()=>i.isOpen&&p.value&&p.value.length>=y.value.length-1?p.value:y.value??"...");gi(s,()=>{o.mode==="list"&&(i.isOpen=!1)}),n.watch(()=>S.value,F=>{y.value!==F?p.value=F:p.value=""}),n.watch(()=>i.isOpen,F=>{var Y;F&&s.value&&((Y=s.value.querySelector("input"))==null||Y.focus(),n.nextTick(()=>U()))}),n.watch(()=>o.modelValue,()=>E(),{immediate:!0});function D(){return o.options.findIndex(F=>Et(F.value,o.modelValue))}function E(){i.activeOption=na(h.value.findIndex(F=>Et(F.value,o.modelValue)),F=>F<0?0:F),S.value=y.value}function A(){p.value=""}function w(){o.disabled?i.isOpen=!1:n.nextTick(()=>{i.isOpen=!i.isOpen})}function L(){o.mode==="list"&&(i.isOpen=!1)}function R(F){F&&(r("update:modelValue",F.value),L(),A())}function H(F){return Et(F.value,o.modelValue)}const G=F=>{var Y,ue;const j=F.relatedTarget;!((Y=s.value)!=null&&Y.contains(j))&&!((ue=d.value)!=null&&ue.contains(j))&&(p.value="",i.isOpen=!1)};function K(F){const{activeOption:Y}=i;if(!i.isOpen&&F.code==="Enter"){i.isOpen=!0;return}const{length:ue}=h.value;if(!ue)return;["ArrowDown","ArrowUp","Enter"].includes(F.code)&&F.preventDefault(),F.code==="Enter"&&R(h.value[Y]);const j=F.code==="ArrowDown"?1:F.code==="ArrowUp"?-1:0;i.activeOption=Math.abs(Y+j+ue)%ue,requestAnimationFrame(U)}function U(){const F=d.value;F&&ot(F.querySelector(".hovered-item"),Y=>{o.mode==="list"?oa(F,Y):Y.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}function P(){r("update:modelValue",void 0)}const W=n.reactive({top:"0px",left:"0px"});return n.watch(d,F=>{if(F){const Y=F.getBoundingClientRect();i.optionsHeight=Y.height,window.dispatchEvent(new CustomEvent("adjust"))}}),ra(s,F=>{const Y=F.top+F.height+2;Y+i.optionsHeight>F.clientHeight?W.top=F.top-i.optionsHeight-2+"px":W.top=Y+"px",W.left=F.left+"px"}),(F,Y)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"container",ref:s,tabindex:"0",class:n.normalizeClass([u.value,"pl-line-dropdown uc-pointer"]),onKeydown:K,onFocusout:G,onClick:w},[n.createElementVNode("div",Ux,n.toDisplayString(o==null?void 0:o.prefix),1),Y[6]||(Y[6]=n.createTextVNode()),n.createVNode(zx,{modelValue:S.value,"onUpdate:modelValue":Y[0]||(Y[0]=ue=>S.value=ue),placeholder:k.value,disabled:o.disabled,class:"pl-line-dropdown__input"},null,8,["modelValue","placeholder","disabled"]),Y[7]||(Y[7]=n.createTextVNode()),n.createElementVNode("div",Zx,[n.withDirectives(n.createElementVNode("div",$x,null,512),[[n.vShow,!f.value]]),Y[1]||(Y[1]=n.createTextVNode()),n.withDirectives(n.createElementVNode("div",{class:"pl-line-dropdown__icon-clear",onClick:P},null,512),[[n.vShow,f.value]])]),Y[8]||(Y[8]=n.createTextVNode()),i.isOpen?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"body"},[o.mode==="list"?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"list",ref:d,style:n.normalizeStyle(W),tabindex:"-1",class:"pl-line-dropdown__items",onFocusout:G},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(h),(ue,j)=>n.renderSlot(F.$slots,"item",{key:j,item:ue,textItem:"text",isSelected:H(ue),isHovered:i.activeOption==j,onClick:n.withModifiers(B=>R(ue),["stop"])},()=>[n.createVNode(aa,{option:ue,"text-item":"text","is-selected":H(ue),"is-hovered":i.activeOption==j,size:"medium",onClick:n.withModifiers(B=>R(ue),["stop"])},null,8,["option","is-selected","is-hovered","onClick"])])),128)),Y[3]||(Y[3]=n.createTextVNode()),n.unref(h).length===0?(n.openBlock(),n.createElementBlock("div",Wx,Y[2]||(Y[2]=[n.createElementVNode("div",{class:"pl-line-dropdown__no-item-title text-s"},"Didn't find anything that matched",-1)]))):n.createCommentVNode("",!0)],36)):o.mode==="tabs"?(n.openBlock(),n.createElementBlock("div",{key:1,ref_key:"list",ref:d,style:n.normalizeStyle(W),tabindex:"-1",class:"pl-line-dropdown__items-tabs",onFocusout:G},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(h),(ue,j)=>n.renderSlot(F.$slots,"item",{key:j,item:ue,isSelected:H(ue),isHovered:i.activeOption==j,onClick:n.withModifiers(B=>R(ue),["stop"])},()=>[n.createVNode(jx,{option:ue,"is-selected":H(ue),"is-hovered":i.activeOption==j,onClick:n.withModifiers(B=>R(ue),["stop"])},null,8,["option","is-selected","is-hovered","onClick"])])),128)),Y[5]||(Y[5]=n.createTextVNode()),n.unref(h).length===0?(n.openBlock(),n.createElementBlock("div",Hx,Y[4]||(Y[4]=[n.createElementVNode("div",{class:"pl-line-dropdown__no-item-title text-s"},"Didn't find anything that matched",-1)]))):n.createCommentVNode("",!0)],36)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)],34))}}),qx={class:"ui-dropdown__envelope"},Kx=["tabindex"],Yx={class:"ui-dropdown__container"},Jx={class:"ui-dropdown__field"},Qx=["disabled","placeholder"],Xx={class:"ui-dropdown__controls"},eC={key:0},tC={key:0,class:"required-icon"},rC={key:0,class:"nothing-found"},nC={key:0,class:"ui-dropdown__error"},oC={key:1,class:"ui-dropdown__helper"},aC={key:2,class:"ui-dropdown__helper"},iC={name:"PlDropdown"},lC=n.defineComponent({...iC,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},arrowIcon:{default:void 0},arrowIconLarge:{default:void 0},optionSize:{default:"small"}},emits:["update:modelValue"],setup(t,{emit:e}){const r=e,o=t,i=n.useSlots(),s=n.ref(),d=n.ref(),u=n.ref(),p=n.reactive({search:"",activeIndex:-1,open:!1}),h=()=>na(R.value.findIndex(j=>Et(j.value,o.modelValue)),j=>j<0?0:j),f=()=>p.activeIndex=h(),y=n.computed(()=>o.options===void 0),S=n.computed(()=>y.value?!0:o.disabled),k=n.computed(()=>(o.options??[]).findIndex(j=>Et(j.value,o.modelValue))),D=n.computed(()=>{if(!y.value){if(o.error)return o.error;if(o.modelValue!==void 0&&k.value===-1)return"The selected value is not one of the options"}}),E=n.computed(()=>Bn(o.options??[]).map((j,B)=>({...j,index:B,isSelected:B===k.value,isActive:B===p.activeIndex}))),A=n.computed(()=>{const j=n.unref(E).find(B=>Et(B.value,o.modelValue));return(j==null?void 0:j.label)||o.modelValue}),w=n.computed(()=>!p.open&&o.modelValue?"":o.modelValue?String(A.value):o.placeholder),L=n.computed(()=>o.modelValue!==void 0&&o.modelValue!==null),R=n.computed(()=>{const j=E.value;return p.search?j.filter(B=>{const O=p.search.toLowerCase();return B.label.toLowerCase().includes(O)||B.description&&B.description.toLowerCase().includes(O)?!0:typeof B.value=="string"?B.value.toLowerCase().includes(O):B.value===p.search}):j}),H=n.computed(()=>S.value?void 0:"0"),G=j=>{var B;r("update:modelValue",j),p.search="",p.open=!1,(B=s==null?void 0:s.value)==null||B.focus()},K=()=>r("update:modelValue",void 0),U=()=>{var j;return(j=u.value)==null?void 0:j.focus()},P=()=>p.open=!p.open,W=()=>p.open=!0,F=j=>{var B;(B=s==null?void 0:s.value)!=null&&B.contains(j.relatedTarget)||(p.search="",p.open=!1)},Y=()=>{const j=d.value;j&&ot(j.querySelector(".hovered-item"),B=>{oa(j,B)})},ue=j=>{var B,O;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(j.code))j.preventDefault();else return;const{open:X,activeIndex:ye}=p;if(!X){j.code==="Enter"&&(p.open=!0);return}j.code==="Escape"&&(p.open=!1,(B=s.value)==null||B.focus());const _e=n.unref(R),{length:zt}=_e;if(!zt)return;j.code==="Enter"&&G((O=_e.find(On=>On.index===ye))==null?void 0:O.value);const Ht=_e.findIndex(On=>On.index===ye)??-1,Nt=j.code==="ArrowDown"?1:j.code==="ArrowUp"?-1:0,Ta=Math.abs(Ht+Nt+zt)%zt;p.activeIndex=R.value[Ta].index??-1};return Vr(s),n.watch(()=>o.modelValue,f,{immediate:!0}),n.watch(()=>p.open,j=>{var B;return j?(B=u.value)==null?void 0:B.focus():""}),n.watchPostEffect(()=>{p.search,p.activeIndex>=0&&p.open&&Y()}),(j,B)=>(n.openBlock(),n.createElementBlock("div",qx,[n.createElementVNode("div",{ref_key:"root",ref:s,tabindex:H.value,class:n.normalizeClass(["ui-dropdown",{open:p.open,error:j.error,disabled:S.value}]),onKeydown:ue,onFocusout:F},[n.createElementVNode("div",Yx,[n.createElementVNode("div",Jx,[n.withDirectives(n.createElementVNode("input",{ref_key:"input",ref:u,"onUpdate:modelValue":B[0]||(B[0]=O=>p.search=O),type:"text",tabindex:"-1",disabled:S.value,placeholder:w.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:W},null,40,Qx),[[n.vModelText,p.search]]),B[4]||(B[4]=n.createTextVNode()),p.open?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,onClick:U},[n.createVNode(vs,{class:"input-value"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(A.value),1)]),_:1})])),B[5]||(B[5]=n.createTextVNode()),n.createElementVNode("div",Xx,[y.value?(n.openBlock(),n.createBlock(n.unref(Lr),{key:0,name:"loading"})):n.createCommentVNode("",!0),B[1]||(B[1]=n.createTextVNode()),j.clearable&&L.value?(n.openBlock(),n.createBlock(n.unref(hi),{key:1,name:"delete-clear",onClick:n.withModifiers(K,["stop"])})):n.createCommentVNode("",!0),B[2]||(B[2]=n.createTextVNode()),n.renderSlot(j.$slots,"append"),B[3]||(B[3]=n.createTextVNode()),j.arrowIconLarge?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["arrow-icon",[`icon-24 ${j.arrowIconLarge}`]]),onClick:n.withModifiers(P,["stop"])},null,2)):j.arrowIcon?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["arrow-icon",[`icon-16 ${j.arrowIcon}`]]),onClick:n.withModifiers(P,["stop"])},null,2)):(n.openBlock(),n.createElementBlock("div",{key:4,class:"arrow-icon arrow-icon-default",onClick:n.withModifiers(P,["stop"])}))])]),B[9]||(B[9]=n.createTextVNode()),j.label?(n.openBlock(),n.createElementBlock("label",eC,[j.required?(n.openBlock(),n.createElementBlock("i",tC)):n.createCommentVNode("",!0),B[6]||(B[6]=n.createTextVNode()),n.createElementVNode("span",null,n.toDisplayString(j.label),1),B[7]||(B[7]=n.createTextVNode()),n.unref(i).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:1,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(j.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),B[10]||(B[10]=n.createTextVNode()),p.open?(n.openBlock(),n.createElementBlock("div",{key:1,ref_key:"list",ref:d,class:"ui-dropdown__options"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(R.value,(O,X)=>(n.openBlock(),n.createBlock(aa,{key:X,option:O,"is-selected":O.isSelected,"is-hovered":O.isActive,size:j.optionSize,onClick:n.withModifiers(ye=>G(O.value),["stop"])},null,8,["option","is-selected","is-hovered","size","onClick"]))),128)),B[8]||(B[8]=n.createTextVNode()),R.value.length?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",rC,"Nothing found"))],512)):n.createCommentVNode("",!0),B[11]||(B[11]=n.createTextVNode()),n.createVNode(on,{class:"ui-dropdown__contour"})])],42,Kx),B[12]||(B[12]=n.createTextVNode()),D.value?(n.openBlock(),n.createElementBlock("div",nC,n.toDisplayString(D.value),1)):y.value&&j.loadingOptionsHelper?(n.openBlock(),n.createElementBlock("div",oC,n.toDisplayString(j.loadingOptionsHelper),1)):j.helper?(n.openBlock(),n.createElementBlock("div",aC,n.toDisplayString(j.helper),1)):n.createCommentVNode("",!0)]))}}),sC={key:0,class:"ui-progress-bar"},cC={class:"ui-progress-bar__messages d-flex align-center pl-6 pr-6"},dC={class:"ui-progress-bar__message flex-grow-1"},uC={class:"ui-progress-bar__percent"},pC=n.defineComponent({__name:"PlProgressBar",props:{loading:{type:Boolean},progress:{default:0},completeMessage:{default:"Completed"}},setup(t){const e=t,r=n.computed(()=>e.progress===100?e.completeMessage:"");return(o,i)=>o.loading?(n.openBlock(),n.createElementBlock("div",sC,[n.createElementVNode("div",{class:"ui-progress-bar__indicator",style:n.normalizeStyle({width:o.progress+"%"})},null,4),i[1]||(i[1]=n.createTextVNode()),n.createElementVNode("div",cC,[n.createElementVNode("div",dC,n.toDisplayString(r.value),1),i[0]||(i[0]=n.createTextVNode()),n.createElementVNode("div",uC,n.toDisplayString(o.progress+"%"),1)])])):n.createCommentVNode("",!0)}}),gC={class:"mi-number-field__main-wrapper d-flex"},hC={class:"mi-number-field__wrapper flex-grow d-flex flex-align-center"},fC={key:0,class:"text-description"},mC=["disabled","placeholder"],vC={class:"mi-number-field__icons d-flex-column"},yC={key:0,class:"mi-number-field__hint text-description"},bC=n.defineComponent({__name:"PlNumberField",props:{modelValue:{},disabled:{type:Boolean},label:{default:void 0},placeholder:{default:void 0},step:{default:1},minValue:{default:void 0},maxValue:{default:void 0},errorMessage:{default:void 0},validate:{type:Function,default:void 0}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,o=e,i=n.ref(),s=n.useSlots(),d=n.ref();Vr(i);const u=n.ref(!0),p=n.computed({get(){return u.value&&r.modelValue!==void 0?new Number(r.modelValue).toString():""},set(w){var L;w=w.replace(/,/g,""),S(w)?(o("update:modelValue",+w),w.toString()!==((L=r.modelValue)==null?void 0:L.toString())&&+w===r.modelValue&&w[w.length-1]!=="."&&(u.value=!1,n.nextTick(()=>{u.value=!0}))):(w.trim()===""&&o("update:modelValue",void 0),u.value=!1,n.nextTick(()=>{u.value=!0}))}}),h=n.computed(()=>{let w=[];return r.errorMessage&&w.push(r.errorMessage),S(r.modelValue)?(r.minValue!==void 0&&r.modelValue!==void 0&&r.modelValue<r.minValue&&w.push(`Model value must be higher than ${r.minValue}`),r.maxValue!==void 0&&r.modelValue!==void 0&&r.modelValue>r.maxValue&&w.push(`Model value must be less than ${r.maxValue}`)):w.push("Model value is not a number."),w=[...w],w.join(" ")}),f=n.computed(()=>!!(r.maxValue&&r.modelValue!==void 0&&(r.modelValue||0)+r.step>r.maxValue)),y=n.computed(()=>!!(r.minValue&&r.modelValue!==void 0&&(r.modelValue||0)-r.step<r.minValue));function S(w){return w!==void 0?(w=w==null?void 0:w.toString(),!isNaN(+w)&&!isNaN(parseFloat(w))):!1}function k(){if(!f.value){let w=0;r.modelValue===void 0?w=r.minValue?r.minValue:0:w=+(r.modelValue||0)+r.step,p.value=w.toString()}}function D(){if(!y.value){let w=0;r.modelValue===void 0?w=0:w=+(r.modelValue||0)-r.step,p.value=r.minValue?Math.max(r.minValue,w).toString():w.toString()}}function E(w){["ArrowDown","ArrowUp"].includes(w.code)&&w.preventDefault(),w.code==="ArrowUp"?k():w.code==="ArrowDown"&&D()}const A=w=>{w.detail>1&&w.preventDefault()};return(w,L)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"root",ref:i,class:n.normalizeClass([{error:!!h.value.trim(),disabled:w.disabled},"mi-number-field d-flex-column"]),onMousedown:A,onKeydown:L[1]||(L[1]=R=>E(R))},[n.createElementVNode("div",gC,[n.createVNode(on,{class:"mi-number-field__contour"}),L[6]||(L[6]=n.createTextVNode()),n.createElementVNode("div",hC,[w.label?(n.openBlock(),n.createElementBlock("label",fC,[n.createTextVNode(n.toDisplayString(w.label)+" ",1),n.unref(s).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(w.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),L[2]||(L[2]=n.createTextVNode()),n.withDirectives(n.createElementVNode("input",{ref_key:"input",ref:d,"onUpdate:modelValue":L[0]||(L[0]=R=>p.value=R),disabled:w.disabled,placeholder:w.placeholder,class:"text-s flex-grow"},null,8,mC),[[n.vModelText,p.value]])]),L[7]||(L[7]=n.createTextVNode()),n.createElementVNode("div",vC,[n.createElementVNode("div",{class:n.normalizeClass([{disabled:f.value},"mi-number-field__icon d-flex flex-justify-center uc-pointer flex-grow flex-align-center"]),onClick:k},L[3]||(L[3]=[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 4.93933L13.5303 10.4697L12.4697 11.5303L8 7.06065L3.53033 11.5303L2.46967 10.4697L8 4.93933Z",fill:"#110529"})],-1)]),2),L[5]||(L[5]=n.createTextVNode()),n.createElementVNode("div",{class:n.normalizeClass([{disabled:y.value},"mi-number-field__icon d-flex flex-justify-center uc-pointer flex-grow flex-align-center"]),onClick:D},L[4]||(L[4]=[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.46967 6.53033L3.53033 5.46967L8 9.93934L12.4697 5.46967L13.5303 6.53033L8 12.0607L2.46967 6.53033Z",fill:"#110529"})],-1)]),2)])]),L[8]||(L[8]=n.createTextVNode()),h.value.trim()?(n.openBlock(),n.createElementBlock("div",yC,n.toDisplayString(h.value),1)):n.createCommentVNode("",!0)],34))}}),wC={class:"pl-chip__text"},bs=n.defineComponent({__name:"PlChip",props:{closeable:{type:Boolean},small:{type:Boolean}},emits:["close"],setup(t){const e=n.ref(),r=n.ref(!1);return n.onMounted(()=>{var o;e.value&&(r.value=((o=e.value)==null?void 0:o.clientWidth)>=256)}),(o,i)=>(n.openBlock(),n.createBlock(n.unref(Vt),{position:"top",class:"pl-chip-tooltip",delay:500},n.createSlots({default:n.withCtx(()=>[i[4]||(i[4]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"chip",ref:e,class:n.normalizeClass(["pl-chip",{small:o.small}])},[n.createElementVNode("div",wC,[n.renderSlot(o.$slots,"default")]),i[3]||(i[3]=n.createTextVNode()),o.closeable?(n.openBlock(),n.createElementBlock("div",{key:0,tabindex:"0",class:"pl-chip__close",onKeydown:i[0]||(i[0]=n.withKeys(s=>o.$emit("close"),["enter"])),onClick:i[1]||(i[1]=n.withModifiers(s=>o.$emit("close"),["stop"]))},i[2]||(i[2]=[n.createElementVNode("div",{class:"pl-chip__close--icon"},null,-1)]),32)):n.createCommentVNode("",!0)],2)]),_:2},[r.value?{name:"tooltip",fn:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),key:"0"}:void 0]),1024))}}),xC={class:"pl-multi-dropdown__envelope"},CC=["tabindex"],_C={class:"pl-multi-dropdown__container"},kC={class:"pl-multi-dropdown__field"},SC=["disabled","placeholder"],TC={class:"pl-multi-dropdown__append"},EC={key:0},NC={key:0,class:"required-icon"},AC={class:"pl-multi-dropdown__open-chips-container"},MC={key:0,class:"nothing-found"},BC={key:0,class:"pl-multi-dropdown__error"},PC={key:1,class:"pl-multi-dropdown__helper"},DC={name:"PlDropdownMulti"},VC=n.defineComponent({...DC,props:{modelValue:{default:()=>[]},label:{default:void 0},options:{},helper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const r=e,o=P=>r("update:modelValue",P),i=n.useSlots(),s=t,d=n.ref(),u=n.ref(),p=n.ref(),h=n.reactive({search:"",activeOption:-1,open:!1,optionsHeight:0}),f=n.computed(()=>Array.isArray(s.modelValue)?s.modelValue:[]),y=n.computed(()=>h.open&&s.modelValue.length>0?s.placeholder:s.modelValue.length>0?"":s.placeholder),S=n.computed(()=>Bn(s.options).filter(P=>ms(f.value,P.value))),k=n.computed(()=>{const P=n.unref(f),W=Bn(s.options);return(h.search?W.filter(F=>{const Y=h.search.toLowerCase();return F.label.toLowerCase().includes(Y)?!0:typeof F.value=="string"?F.value.toLowerCase().includes(Y):F.value===h.search}):[...W]).map(F=>({...F,selected:ms(P,F.value)}))}),D=n.computed(()=>s.disabled?void 0:"0"),E=()=>{h.activeOption=na(k.value.findIndex(P=>Et(P.value,s.modelValue)),P=>P<0?0:P)},A=P=>{var W;const F=n.unref(f);o(ms(F,P)?F.filter(Y=>!Et(Y,P)):[...F,P]),h.search="",(W=d==null?void 0:d.value)==null||W.focus()},w=P=>o(n.unref(f).filter(W=>!Et(W,P))),L=()=>{var P;return(P=p.value)==null?void 0:P.focus()},R=()=>h.open=!h.open,H=P=>{var W,F;const Y=P.relatedTarget;!((W=d.value)!=null&&W.contains(Y))&&!((F=u.value)!=null&&F.contains(Y))&&(h.search="",h.open=!1)},G=()=>{const P=u.value;P&&ot(P.querySelector(".hovered-item"),W=>{oa(P,W)})},K=P=>{var W;const{open:F,activeOption:Y}=h;if(!F){P.code==="Enter"&&(h.open=!0);return}P.code==="Escape"&&(h.open=!1,(W=d.value)==null||W.focus());const ue=n.unref(k),{length:j}=ue;if(!j)return;["ArrowDown","ArrowUp","Enter"].includes(P.code)&&P.preventDefault(),P.code==="Enter"&&A(ue[Y].value);const B=P.code==="ArrowDown"?1:P.code==="ArrowUp"?-1:0;h.activeOption=Math.abs(Y+B+j)%j,requestAnimationFrame(G)};Vr(d),n.watch(()=>s.modelValue,()=>E(),{immediate:!0}),n.watchPostEffect(()=>{h.search,h.open&&G()});const U=n.reactive({top:"0px",left:"0px",width:"0px"});return n.watch(u,P=>{if(P){const W=P.getBoundingClientRect();h.optionsHeight=W.height,window.dispatchEvent(new CustomEvent("adjust"))}}),ra(d,P=>{const W=P.top+P.height+5;W+h.optionsHeight>P.clientHeight?U.top=P.top-h.optionsHeight-5+"px":U.top=W+"px",U.left=P.left+"px",U.width=P.width+"px"}),(P,W)=>(n.openBlock(),n.createElementBlock("div",xC,[n.createElementVNode("div",{ref_key:"rootRef",ref:d,tabindex:D.value,class:n.normalizeClass(["pl-multi-dropdown",{open:h.open,error:P.error,disabled:P.disabled}]),onKeydown:K,onFocusout:H},[n.createElementVNode("div",_C,[n.createElementVNode("div",kC,[n.withDirectives(n.createElementVNode("input",{ref_key:"input",ref:p,"onUpdate:modelValue":W[0]||(W[0]=F=>h.search=F),type:"text",tabindex:"-1",disabled:P.disabled,placeholder:y.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:W[1]||(W[1]=F=>h.open=!0)},null,40,SC),[[n.vModelText,h.search]]),W[3]||(W[3]=n.createTextVNode()),h.open?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"chips-container",onClick:L},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(S.value,(F,Y)=>(n.openBlock(),n.createBlock(n.unref(bs),{key:Y,closeable:"",small:"",onClick:W[2]||(W[2]=n.withModifiers(ue=>h.open=!0,["stop"])),onClose:ue=>w(F.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(F.label||F.value),1)]),_:2},1032,["onClose"]))),128))])),W[4]||(W[4]=n.createTextVNode()),n.createElementVNode("div",{class:"arrow",onClick:n.withModifiers(R,["stop"])}),W[5]||(W[5]=n.createTextVNode()),n.createElementVNode("div",TC,[n.renderSlot(P.$slots,"append")])]),W[10]||(W[10]=n.createTextVNode()),P.label?(n.openBlock(),n.createElementBlock("label",EC,[P.required?(n.openBlock(),n.createElementBlock("i",NC)):n.createCommentVNode("",!0),W[6]||(W[6]=n.createTextVNode()),n.createElementVNode("span",null,n.toDisplayString(P.label),1),W[7]||(W[7]=n.createTextVNode()),n.unref(i).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:1,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(P.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),W[11]||(W[11]=n.createTextVNode()),h.open?(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:"body"},[n.createElementVNode("div",{ref_key:"list",ref:u,class:"pl-multi-dropdown__options",style:n.normalizeStyle(U),tabindex:"-1",onFocusout:H},[n.createElementVNode("div",AC,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(S.value,(F,Y)=>(n.openBlock(),n.createBlock(n.unref(bs),{key:Y,closeable:"",small:"",onClose:ue=>w(F.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(F.label||F.value),1)]),_:2},1032,["onClose"]))),128))]),W[8]||(W[8]=n.createTextVNode()),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(k.value,(F,Y)=>(n.openBlock(),n.createBlock(aa,{key:Y,option:F,"text-item":"text","is-selected":F.selected,"is-hovered":h.activeOption==Y,size:"medium","use-checkbox":"",onClick:n.withModifiers(ue=>A(F.value),["stop"])},null,8,["option","is-selected","is-hovered","onClick"]))),128)),W[9]||(W[9]=n.createTextVNode()),k.value.length?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",MC,"Nothing found"))],36)])):n.createCommentVNode("",!0),W[12]||(W[12]=n.createTextVNode()),n.createVNode(on,{class:"pl-multi-dropdown__contour"})])],42,CC),W[13]||(W[13]=n.createTextVNode()),P.error?(n.openBlock(),n.createElementBlock("div",BC,n.toDisplayString(P.error),1)):P.helper?(n.openBlock(),n.createElementBlock("div",PC,n.toDisplayString(P.helper),1)):n.createCommentVNode("",!0)]))}}),ws=n.defineComponent({__name:"PlCheckboxBase",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,r=n.computed(()=>e.modelValue);return(o,i)=>(n.openBlock(),n.createElementBlock("div",{tabindex:"0",class:n.normalizeClass(["pl-checkbox-base",{checked:r.value,disabled:o.disabled}]),onClick:i[0]||(i[0]=s=>o.$emit("update:modelValue",!o.modelValue)),onKeydown:i[1]||(i[1]=n.withKeys(s=>o.$emit("update:modelValue",!o.modelValue),["enter"]))},null,34))}}),LC={name:"PlCheckbox"},IC=n.defineComponent({...LC,props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,r=n.useSlots();return(o,i)=>n.unref(r).default?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["pl-checkbox",{disabled:o.disabled}])},[n.createVNode(ws,n.mergeProps(e,{"onUpdate:modelValue":i[0]||(i[0]=s=>o.$emit("update:modelValue",s))}),null,16),i[3]||(i[3]=n.createTextVNode()),n.createElementVNode("label",{onClick:i[1]||(i[1]=s=>o.$emit("update:modelValue",!o.$props.modelValue))},[n.renderSlot(o.$slots,"default")])],2)):(n.openBlock(),n.createBlock(ws,n.mergeProps({key:1},e,{"onUpdate:modelValue":i[2]||(i[2]=s=>o.$emit("update:modelValue",s))}),null,16))}}),FC={key:0},RC=["onClick"],OC={name:"PlCheckboxGroup"},zC=n.defineComponent({...OC,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const r=e,o=t,i=d=>o.modelValue.includes(d),s=d=>{const u=o.modelValue??[];r("update:modelValue",i(d)?u.filter(p=>p!==d):[...u,d])};return(d,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ui-checkbox-group",{disabled:d.disabled}])},[d.label?(n.openBlock(),n.createElementBlock("label",FC,n.toDisplayString(d.label),1)):n.createCommentVNode("",!0),u[1]||(u[1]=n.createTextVNode()),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.options.map(p=>({label:"label"in p?p.label:p.text,value:p.value})),(p,h)=>(n.openBlock(),n.createElementBlock("div",{key:h},[n.createVNode(ws,{disabled:d.disabled,label:p.label,"model-value":i(p.value),"onUpdate:modelValue":()=>s(p.value)},null,8,["disabled","label","model-value","onUpdate:modelValue"]),u[0]||(u[0]=n.createTextVNode()),n.createElementVNode("label",{onClick:n.withModifiers(()=>s(p.value),["stop"])},n.toDisplayString(p.label),9,RC)]))),128))],2))}}),GC="_component_tupwt_1",jC={component:GC},UC={};function ZC(t,e){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(t.$style.component)},e[0]||(e[0]=[n.createElementVNode("div",null,null,-1)]),2)}const $C={$style:jC},WC=rn(UC,[["render",ZC],["__cssModules",$C]]),HC={key:1,class:"pl-dialog-modal__title"},qC={inheritAttrs:!1},xs=n.defineComponent({...qC,__name:"PlDialogModal",props:{modelValue:{type:Boolean},width:{default:"448px"},height:{default:"auto"},minHeight:{default:"auto"},maxHeight:{default:"auto"},closable:{type:Boolean,default:!0},noContentGutters:{type:Boolean,default:!1},noTopContentGutter:{type:Boolean},actionsHasTopBorder:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.useSlots(),o=e,i=t,s=n.ref(),d=n.useAttrs();function u(p){s.value&&document.contains(p.target)&&!s.value.contains(p.target)&&o("update:modelValue",!1)}return et(document.body,"keyup",p=>{i.modelValue&&p.code==="Escape"&&o("update:modelValue",!1)}),(p,h)=>(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"dialog"},{default:n.withCtx(()=>[p.modelValue?(n.openBlock(),n.createElementBlock("div",{key:0,class:"pl-dialog-modal__shadow",onClick:u},[n.createElementVNode("div",n.mergeProps(n.unref(d),{ref_key:"modal",ref:s,class:["pl-dialog-modal",{"has-title":n.unref(r).title,"has-content":n.unref(r).default}],style:{width:p.width,height:p.height,minHeight:p.minHeight,maxHeight:p.maxHeight}}),[p.closable?(n.openBlock(),n.createBlock(WC,{key:0,class:"close-modal-btn",onClick:h[0]||(h[0]=n.withModifiers(f=>o("update:modelValue",!1),["stop"]))})):n.createCommentVNode("",!0),h[1]||(h[1]=n.createTextVNode()),n.unref(r).title?(n.openBlock(),n.createElementBlock("div",HC,[n.renderSlot(p.$slots,"title")])):n.createCommentVNode("",!0),h[2]||(h[2]=n.createTextVNode()),n.createElementVNode("div",{class:n.normalizeClass(["pl-dialog-modal__content",{"no-content-gutters":p.noContentGutters,"no-top-content-gutter":p.noTopContentGutter}])},[n.renderSlot(p.$slots,"default")],2),h[3]||(h[3]=n.createTextVNode()),n.unref(r).actions?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["pl-dialog-modal__actions",{"has-top-border":p.actionsHasTopBorder}])},[n.renderSlot(p.$slots,"actions")],2)):n.createCommentVNode("",!0)],16)])):n.createCommentVNode("",!0)]),_:3})]))}}),KC=n.defineComponent({__name:"TransitionSlidePanel",setup(t){function e(){window.dispatchEvent(new CustomEvent("adjust"))}function r(){window.dispatchEvent(new CustomEvent("adjust"))}return(o,i)=>(n.openBlock(),n.createBlock(n.Transition,{name:"slide-panel",onAfterEnter:e,onAfterLeave:r},{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),_:3}))}}),YC={key:0,class:"pl-slide-modal__title"},JC={class:"pl-slide-modal__content"},QC={key:1,class:"pl-slide-modal__actions"},XC={name:"PlSlideModal",inheritAttrs:!1},e_=n.defineComponent({...XC,props:{modelValue:{type:Boolean,default:!1},width:{default:"368px"},shadow:{type:Boolean,default:!1},closeOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.useSlots(),o=e,i=t,s=n.ref(),d=n.useAttrs();return gi(s,()=>{i.modelValue&&i.closeOnOutsideClick&&o("update:modelValue",!1)}),et(document,"keydown",u=>{u.key==="Escape"&&o("update:modelValue",!1)}),(u,p)=>(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(KC,null,{default:n.withCtx(()=>[u.modelValue?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,ref_key:"modal",ref:s,style:{width:u.width}},n.unref(d),{class:["pl-slide-modal",{"has-title":n.unref(r).title,"has-actions":n.unref(r).actions}],onKeyup:p[1]||(p[1]=n.withKeys(h=>o("update:modelValue",!1),["esc"]))}),[n.createElementVNode("div",{class:"close-dialog-btn",onClick:p[0]||(p[0]=h=>o("update:modelValue",!1))}),p[3]||(p[3]=n.createTextVNode()),n.unref(r).title?(n.openBlock(),n.createElementBlock("div",YC,[n.renderSlot(u.$slots,"title")])):n.createCommentVNode("",!0),p[4]||(p[4]=n.createTextVNode()),n.createElementVNode("div",JC,[n.renderSlot(u.$slots,"default")]),p[5]||(p[5]=n.createTextVNode()),n.unref(r).actions?(n.openBlock(),n.createElementBlock("div",QC,[n.renderSlot(u.$slots,"actions")])):n.createCommentVNode("",!0)],16)):n.createCommentVNode("",!0)]),_:3}),p[6]||(p[6]=n.createTextVNode()),u.modelValue&&u.shadow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"pl-slide-modal__shadow",onKeyup:p[2]||(p[2]=n.withKeys(h=>o("update:modelValue",!1),["esc"]))},null,32)):n.createCommentVNode("",!0)]))}}),t_={key:0,class:"label"},r_={name:"PlToggleSwitch"},n_=n.defineComponent({...r_,props:{label:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(t){return(e,r)=>(n.openBlock(),n.createElementBlock("div",{tabindex:"0",class:n.normalizeClass(["ui-toggle-switch",{active:e.modelValue}]),onClick:r[0]||(r[0]=o=>e.$emit("update:modelValue",!e.modelValue)),onKeydown:r[1]||(r[1]=n.withKeys(o=>e.$emit("update:modelValue",!e.modelValue),["enter"]))},[r[2]||(r[2]=n.createElementVNode("div",{class:"ui-toggle-switch__body"},[n.createElementVNode("div",{class:"ui-toggle-switch__handle"})],-1)),r[3]||(r[3]=n.createTextVNode()),e.label?(n.openBlock(),n.createElementBlock("span",t_,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0)],34))}});function Hu(t){return n.getCurrentScope()?(n.onScopeDispose(t),!0):!1}function o_(t){return n.unref(t)}const a_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function i_(t,e,r={}){const{immediate:o=!0}=r,i=n.ref(!1);let s=null;function d(){s&&(clearTimeout(s),s=null)}function u(){i.value=!1,d()}function p(...h){d(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,t(...h)},o_(e))}return o&&(i.value=!0,a_&&p()),Hu(u),{isPending:n.readonly(i),start:p,stop:u}}function l_(t,e,r){return n.watch(t,(o,i,s)=>{o&&e(o,i,s)},{...r,once:!1})}function s_(t,e,r){const{start:o}=i_(s,e,{immediate:!1}),i=n.ref(!1);async function s(){i.value&&(await t(),o())}function d(){i.value||(i.value=!0,s())}function u(){i.value=!1}return r!=null&&r.immediate&&d(),Hu(u),{isActive:i,pause:u,resume:d}}const c_="[==PROGRESS==]";function d_(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u_(t){const e=n.ref(),r=n.reactive({errorCount:0});async function o(){var s;let d=e.value;if(d===void 0)return;const u=t.mockPlatforma??window.platforma;if(!u){console.warn("Platforma API is not available");return}for(;;){const p=await u.logDriver.readText(d.logHandle,100,d.lastOffset);if(d.error=void 0,r.errorCount=0,p.shouldUpdateHandle||d.logHandle!==((s=e.value)==null?void 0:s.logHandle))return;const h=t.progressPrefix??c_,f=new TextDecoder().decode(p.data).replace(new RegExp(`${d_(h)}`,"g"),"");if(d=Object.assign(d,{lines:d.lines+f,lastOffset:p.newOffset,finished:!p.live}),p.newOffset>=p.size)break}}const i=s_(()=>o().catch(s=>{e.value&&(r.errorCount++,r.errorCount>(t.maxRetries??3)?e.value.error=s:console.warn("skip error:",s,"retry..."))}),1500,{immediate:!1});return l_(()=>{var s;return(s=e==null?void 0:e.value)==null?void 0:s.finished},()=>i.pause()),n.watch(()=>t.logHandle,s=>{var d;s===void 0?(e.value=void 0,i.pause()):s!==((d=e.value)==null?void 0:d.logHandle)&&(e.value={logHandle:s,lastOffset:0,lines:"",finished:!1,error:void 0},r.errorCount=0,i.resume())},{immediate:!0}),e}const p_={key:0},g_={key:1,class:"pl-log-view__error"},h_={name:"PlLogView"},f_=n.defineComponent({...h_,props:{value:{},logHandle:{},progressPrefix:{},error:{},output:{},maxRetries:{},mockPlatforma:{},label:{}},setup(t){const e=S=>{if(S&&S.ok===!1)return S.errors.join(`
|
|
65
|
+
`)},r=t,o=u_(r),i=n.ref(!0),s=n.ref(),d=n.ref(),u=n.computed(()=>{var S;return((S=o.value)==null?void 0:S.error)??r.error??e(r.output)}),p=n.computed(()=>{var S;return((S=o.value)==null?void 0:S.lines)??r.value??pb(r.output)});Vr(d);const h=()=>{p.value&&typeof p.value=="string"&&navigator.clipboard.writeText(p.value)},f=()=>{Mn(s.value,S=>{i.value&&S.scrollTo(S.scrollLeft,S.scrollHeight)})};n.watch(p,()=>{requestAnimationFrame(()=>{f()})},{immediate:!0});const y=S=>{const k=S.target;i.value=k.scrollTop+20>=k.scrollHeight-k.offsetHeight};return(S,k)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"root",ref:d,class:n.normalizeClass(["pl-log-view",{"has-error":u.value}])},[S.label?(n.openBlock(),n.createElementBlock("label",p_,n.toDisplayString(S.label),1)):n.createCommentVNode("",!0),k[0]||(k[0]=n.createTextVNode()),n.createVNode(on,{class:"pl-log-view__contour"}),k[1]||(k[1]=n.createTextVNode()),n.createVNode(n.unref(Lr),{title:"Copy content",class:"pl-log-view__copy",name:"clipboard",onClick:h}),k[2]||(k[2]=n.createTextVNode()),u.value?(n.openBlock(),n.createElementBlock("div",g_,n.toDisplayString(u.value),1)):(n.openBlock(),n.createElementBlock("div",{key:2,ref_key:"contentRef",ref:s,class:"pl-log-view__content",onScroll:y},n.toDisplayString(p.value),545))],2))}});function m_(t){const e=t.split("/"),r=[];for(let o=0;o<e.length;o++)r.push({index:o,name:o===0?"Root":e[o],path:e.slice(0,o+1).join("/")});return r}const v_={class:"file-dialog"},y_={class:"file-dialog__search"},b_={class:"ls-container"},w_={class:"ls-head"},x_={class:"ls-head__breadcrumbs"},C_=["title","onClick"],__={key:0,class:"icon-16 icon-chevron-right"},k_={class:"d-flex ml-auto align-center gap-12"},S_={class:"ls-head__selected"},T_={key:0,class:"ls-loader"},E_={key:1,class:"ls-empty"},N_={key:2,class:"ls-error"},A_={class:"ls-error__message"},M_={key:3,class:"ls-body"},B_=["onClick"],P_=["title"],D_=["onClick"],V_=["title"],qu=n.defineComponent({__name:"PlFileDialog",props:{modelValue:{type:Boolean},extensions:{default:void 0},multi:{type:Boolean},title:{default:void 0},autoSelectStorage:{type:Boolean,default:!0}},emits:["update:modelValue","import:files"],setup(t,{emit:e}){const r=e,o=t,i=()=>({dirPath:"",storageEntry:void 0,items:[],error:"",storageOptions:[],selected:[],lastSelected:void 0,currentLoadingPath:void 0,showHiddenItems:!1}),s=n.reactive(i()),d=n.computed(()=>s.showHiddenItems?s.items:s.items.filter(U=>!U.name.startsWith("."))),u=n.computed(()=>{var U;return{modelValue:o.modelValue,dirPath:s.dirPath,storageHandle:(U=s.storageEntry)==null?void 0:U.handle}}),p=(U,P)=>{window.platforma&&s.currentLoadingPath!==P&&(s.error="",s.items=[],s.lastSelected=void 0,s.currentLoadingPath=P,window.platforma.lsDriver.listFiles(U,P).then(W=>{P===s.dirPath&&(s.items=gu(W).entries.map(F=>({path:F.fullPath,name:F.name,isDir:F.type==="dir",canBeSelected:F.type==="file"&&(!o.extensions||o.extensions.some(Y=>F.fullPath.endsWith(Y))),handle:F.type==="file"?F.handle:void 0,selected:!1})).sort((F,Y)=>F.isDir&&!Y.isDir?-1:!F.isDir&&Y.isDir?1:F.name.localeCompare(Y.name)).map((F,Y)=>({id:Y,...F})),s.lastSelected=void 0)}).catch(W=>s.error=String(W)).finally(()=>{s.currentLoadingPath=void 0}))},h=()=>{const{storageHandle:U,dirPath:P,modelValue:W}=u.value;U&&W&&P&&p(U,P)},f=mu(U=>{U&&(s.dirPath=U)},1e3),y=n.computed(()=>m_(s.dirPath)),S=n.computed(()=>s.items.filter(U=>U.canBeSelected&&U.selected&&!U.isDir)),k=n.computed(()=>S.value.length>0),D=()=>{r("update:modelValue",!1)},E=()=>{var U;k.value&&(U=s.storageEntry)!=null&&U.handle&&(r("import:files",{storageHandle:s.storageEntry.handle,files:S.value.map(P=>P.handle)}),D())},A=U=>{s.dirPath=U,s.storageEntry&&h()},w=(U,P)=>{const{shiftKey:W,metaKey:F}=U,{lastSelected:Y}=s;if(U.preventDefault(),P.canBeSelected){if(o.multi||s.items.forEach(ue=>ue.selected=!1),P.selected=!0,!o.multi)return;!F&&!W&&s.items.forEach(ue=>{ue.id!==P.id&&(ue.selected=!1)}),W&&Y!==void 0&&s.items.forEach(ue=>{cb(ue.id,Y,P.id)&&(ue.selected=!0)}),P.selected&&(s.lastSelected=P.id)}},L=U=>{U&&!o.multi||s.items.filter(P=>P.canBeSelected).forEach(P=>{P.selected=U})},R=()=>L(!0),H=()=>L(!1),G=()=>{if(s.error="",s.lastSelected=void 0,H(),!window.platforma){console.warn("platforma API is not found");return}window.platforma.lsDriver.getStorageList().then(U=>{s.storageOptions=U.map(P=>({text:P.name,value:P})),o.autoSelectStorage&&Mn(U.find(P=>P.name==="local"||P.name.startsWith("local_disk_")&&P.initialFullPath.length>4),P=>{s.storageEntry=P,s.dirPath=P.initialFullPath})}).catch(U=>s.error=String(U))};n.watch(n.toRef(s,"storageEntry"),U=>{s.dirPath=(U==null?void 0:U.initialFullPath)??""}),n.watch([()=>s.dirPath,()=>s.storageEntry],()=>{h()}),n.watch(()=>o.modelValue,U=>{U?G():Object.assign(s,i())},{immediate:!0}),et(document,"keydown",U=>{o.modelValue&&U.target===document.body&&(U.metaKey&&U.code==="KeyA"&&(U.preventDefault(),R()),U.metaKey&&U.shiftKey&&U.code==="Period"&&(U.preventDefault(),s.showHiddenItems=!s.showHiddenItems),U.code==="Enter"&&E())}),n.onUpdated(G);const K={mounted:U=>{if(U.clientWidth<U.scrollWidth){const P=U.innerText;U.innerText=P.substring(0,57)+"..."+P.substring(P.length-10)}}};return(U,P)=>(n.openBlock(),n.createBlock(n.unref(xs),{"no-content-gutters":!0,class:"split","model-value":U.modelValue,width:"688px",height:"720px","onUpdate:modelValue":D,onClick:n.withModifiers(H,["stop"])},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(U.title??"Select files"),1)]),actions:n.withCtx(()=>[n.createVNode(n.unref(cs),{style:{"min-width":"160px"},disabled:!k.value,onClick:n.withModifiers(E,["stop"])},{default:n.withCtx(()=>P[14]||(P[14]=[n.createTextVNode("Import")])),_:1},8,["disabled"]),P[16]||(P[16]=n.createTextVNode()),n.createVNode(n.unref(us),{"justify-center":!1,onClick:n.withModifiers(D,["stop"])},{default:n.withCtx(()=>P[15]||(P[15]=[n.createTextVNode("Cancel")])),_:1})]),default:n.withCtx(()=>[P[17]||(P[17]=n.createTextVNode()),n.createElementVNode("div",v_,[n.createElementVNode("div",y_,[n.createVNode(n.unref(ys),{modelValue:s.storageEntry,"onUpdate:modelValue":P[0]||(P[0]=W=>s.storageEntry=W),label:"Select storage",options:s.storageOptions},null,8,["modelValue","options"]),P[1]||(P[1]=n.createTextVNode()),n.createVNode(n.unref(ju),{"model-value":s.dirPath,label:"Enter path","onUpdate:modelValue":n.unref(f)},null,8,["model-value","onUpdate:modelValue"])]),P[13]||(P[13]=n.createTextVNode()),n.createElementVNode("div",b_,[n.createElementVNode("div",w_,[n.createElementVNode("div",x_,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y.value,(W,F)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:F},[n.createElementVNode("div",{title:W.path,onClick:Y=>A(W.path)},n.toDisplayString(W.name),9,C_),P[2]||(P[2]=n.createTextVNode()),W.index!==y.value.length-1?(n.openBlock(),n.createElementBlock("i",__)):n.createCommentVNode("",!0)],64))),128))]),P[3]||(P[3]=n.createTextVNode()),n.createElementVNode("div",k_,[n.createElementVNode("span",S_,"Selected: "+n.toDisplayString(S.value.length),1)])]),P[12]||(P[12]=n.createTextVNode()),s.currentLoadingPath!==void 0?(n.openBlock(),n.createElementBlock("div",T_,P[4]||(P[4]=[n.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"},null,-1)]))):s.storageEntry?s.error?(n.openBlock(),n.createElementBlock("div",N_,[P[6]||(P[6]=n.createElementVNode("div",{class:"ls-error__cat"},null,-1)),P[7]||(P[7]=n.createTextVNode()),n.createElementVNode("div",A_,n.toDisplayString(s.error),1)])):(n.openBlock(),n.createElementBlock("div",M_,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,W=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:W.id},[W.isDir?(n.openBlock(),n.createElementBlock("div",{key:0,class:"isDir",onClick:F=>A(W.path)},[P[8]||(P[8]=n.createElementVNode("i",{class:"icon-16 icon-chevron-right"},null,-1)),P[9]||(P[9]=n.createTextVNode()),n.withDirectives((n.openBlock(),n.createElementBlock("span",{title:W.name},[n.createTextVNode(n.toDisplayString(W.name),1)],8,P_)),[[K]])],8,B_)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass({canBeSelected:W.canBeSelected,selected:W.selected}),onClick:n.withModifiers(F=>w(F,W),["stop"])},[P[10]||(P[10]=n.createElementVNode("i",{class:"mask-16 mask-comp isFile"},null,-1)),P[11]||(P[11]=n.createTextVNode()),n.withDirectives((n.openBlock(),n.createElementBlock("span",{title:W.name},[n.createTextVNode(n.toDisplayString(W.name),1)],8,V_)),[[K]])],10,D_))],64))),128))])):(n.openBlock(),n.createElementBlock("div",E_,P[5]||(P[5]=[n.createElementVNode("div",{class:"ls-empty__cat"},null,-1),n.createTextVNode(),n.createElementVNode("div",{class:"ls-empty__message"},"Select storage to preview",-1)])))])]),P[18]||(P[18]=n.createTextVNode())]),_:1},8,["model-value"]))}});var Fe;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{const s={};for(const d of i)s[d]=d;return s},t.getValidEnumValues=i=>{const s=t.objectKeys(i).filter(u=>typeof i[i[u]]!="number"),d={};for(const u of s)d[u]=i[u];return t.objectValues(d)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&s.push(d);return s},t.find=(i,s)=>{for(const d of i)if(s(d))return d},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function o(i,s=" | "){return i.map(d=>typeof d=="string"?`'${d}'`:d).join(s)}t.joinValues=o,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Fe||(Fe={}));var Cs;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Cs||(Cs={}));const ae=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),an=t=>{switch(typeof t){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(t)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(t)?ae.array:t===null?ae.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ae.promise:typeof Map<"u"&&t instanceof Map?ae.map:typeof Set<"u"&&t instanceof Set?ae.set:typeof Date<"u"&&t instanceof Date?ae.date:ae.object;default:return ae.unknown}},Q=Fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),L_=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class Lt extends Error{constructor(e){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const r=e||function(s){return s.message},o={_errors:[]},i=s=>{for(const d of s.issues)if(d.code==="invalid_union")d.unionErrors.map(i);else if(d.code==="invalid_return_type")i(d.returnTypeError);else if(d.code==="invalid_arguments")i(d.argumentsError);else if(d.path.length===0)o._errors.push(r(d));else{let u=o,p=0;for(;p<d.path.length;){const h=d.path[p];p===d.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(r(d))):u[h]=u[h]||{_errors:[]},u=u[h],p++}}};return i(this),o}static assert(e){if(!(e instanceof Lt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},o=[];for(const i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):o.push(e(i));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}}Lt.create=t=>new Lt(t);const oo=(t,e)=>{let r;switch(t.code){case Q.invalid_type:t.received===ae.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case Q.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Fe.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:r=`Unrecognized key(s) in object: ${Fe.joinValues(t.keys,", ")}`;break;case Q.invalid_union:r="Invalid input";break;case Q.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Fe.joinValues(t.options)}`;break;case Q.invalid_enum_value:r=`Invalid enum value. Expected ${Fe.joinValues(t.options)}, received '${t.received}'`;break;case Q.invalid_arguments:r="Invalid function arguments";break;case Q.invalid_return_type:r="Invalid function return type";break;case Q.invalid_date:r="Invalid date";break;case Q.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Fe.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case Q.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case Q.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case Q.custom:r="Invalid input";break;case Q.invalid_intersection_types:r="Intersection results could not be merged";break;case Q.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case Q.not_finite:r="Number must be finite";break;default:r=e.defaultError,Fe.assertNever(t)}return{message:r}};let Ku=oo;function I_(t){Ku=t}function fi(){return Ku}const mi=t=>{const{data:e,path:r,errorMaps:o,issueData:i}=t,s=[...r,...i.path||[]],d={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let u="";const p=o.filter(h=>!!h).slice().reverse();for(const h of p)u=h(d,{data:e,defaultError:u}).message;return{...i,path:s,message:u}},F_=[];function ne(t,e){const r=fi(),o=mi({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===oo?void 0:oo].filter(i=>!!i)});t.common.issues.push(o)}class ft{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const o=[];for(const i of r){if(i.status==="aborted")return we;i.status==="dirty"&&e.dirty(),o.push(i.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,r){const o=[];for(const i of r){const s=await i.key,d=await i.value;o.push({key:s,value:d})}return ft.mergeObjectSync(e,o)}static mergeObjectSync(e,r){const o={};for(const i of r){const{key:s,value:d}=i;if(s.status==="aborted"||d.status==="aborted")return we;s.status==="dirty"&&e.dirty(),d.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof d.value<"u"||i.alwaysSet)&&(o[s.value]=d.value)}return{status:e.value,value:o}}}const we=Object.freeze({status:"aborted"}),vi=t=>({status:"dirty",value:t}),xt=t=>({status:"valid",value:t}),_s=t=>t.status==="aborted",ks=t=>t.status==="dirty",ia=t=>t.status==="valid",la=t=>typeof Promise<"u"&&t instanceof Promise;function yi(t,e,r,o){if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function Yu(t,e,r,o,i){if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r}var de;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(de||(de={}));var sa,ca;class Sr{constructor(e,r,o,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=o,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ju=(t,e)=>{if(ia(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Lt(t.common.issues);return this._error=r,this._error}}};function Te(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:o,description:i}=t;if(e&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(s,d)=>{var u,p;const{message:h}=t;return s.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:(u=h??o)!==null&&u!==void 0?u:d.defaultError}:s.code!=="invalid_type"?{message:d.defaultError}:{message:(p=h??r)!==null&&p!==void 0?p:d.defaultError}},description:i}}class Ae{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return an(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:an(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ft,ctx:{common:e.parent.common,data:e.data,parsedType:an(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(la(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const o=this.safeParse(e,r);if(o.success)return o.data;throw o.error}safeParse(e,r){var o;const i={common:{issues:[],async:(o=r==null?void 0:r.async)!==null&&o!==void 0?o:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:an(e)},s=this._parseSync({data:e,path:i.path,parent:i});return Ju(i,s)}async parseAsync(e,r){const o=await this.safeParseAsync(e,r);if(o.success)return o.data;throw o.error}async safeParseAsync(e,r){const o={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:an(e)},i=this._parse({data:e,path:o.path,parent:o}),s=await(la(i)?i:Promise.resolve(i));return Ju(o,s)}refine(e,r){const o=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{const d=e(i),u=()=>s.addIssue({code:Q.custom,...o(i)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(u(),!1)):d?!0:(u(),!1)})}refinement(e,r){return this._refinement((o,i)=>e(o)?!0:(i.addIssue(typeof r=="function"?r(o,i):r),!1))}_refinement(e){return new lr({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Er.create(this,this._def)}nullable(){return un.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ir.create(this,this._def)}promise(){return so.create(this,this._def)}or(e){return ga.create([this,e],this._def)}and(e){return ha.create(this,e,this._def)}transform(e){return new lr({...Te(this._def),schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new ba({...Te(this._def),innerType:this,defaultValue:r,typeName:ve.ZodDefault})}brand(){return new Es({typeName:ve.ZodBranded,type:this,...Te(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new wa({...Te(this._def),innerType:this,catchValue:r,typeName:ve.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return xa.create(this,e)}readonly(){return Ca.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const R_=/^c[^\s-]{8,}$/i,O_=/^[0-9a-z]+$/,z_=/^[0-9A-HJKMNP-TV-Z]{26}$/,G_=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j_=/^[a-z0-9_-]{21}$/i,U_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Z_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ss;const W_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,H_=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,q_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Qu="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",K_=new RegExp(`^${Qu}$`);function Xu(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Y_(t){return new RegExp(`^${Xu(t)}$`)}function ep(t){let e=`${Qu}T${Xu(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function J_(t,e){return!!((e==="v4"||!e)&&W_.test(t)||(e==="v6"||!e)&&H_.test(t))}class ar extends Ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ae.string){const i=this._getOrReturnCtx(e);return ne(i,{code:Q.invalid_type,expected:ae.string,received:i.parsedType}),we}const r=new ft;let o;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const s=e.data.length>i.value,d=e.data.length<i.value;(s||d)&&(o=this._getOrReturnCtx(e,o),s?ne(o,{code:Q.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):d&&ne(o,{code:Q.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")Z_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"email",code:Q.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Ss||(Ss=new RegExp($_,"u")),Ss.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"emoji",code:Q.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")G_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"uuid",code:Q.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")j_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"nanoid",code:Q.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")R_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"cuid",code:Q.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")O_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"cuid2",code:Q.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")z_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"ulid",code:Q.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),ne(o,{validation:"url",code:Q.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"regex",code:Q.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?ep(i).test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?K_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?Y_(i).test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?U_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"duration",code:Q.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?J_(e.data,i.version)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"ip",code:Q.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?q_.test(e.data)||(o=this._getOrReturnCtx(e,o),ne(o,{validation:"base64",code:Q.invalid_string,message:i.message}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:e.data}}_regex(e,r,o){return this.refinement(i=>e.test(i),{validation:r,code:Q.invalid_string,...de.errToObj(o)})}_addCheck(e){return new ar({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...de.errToObj(e)})}url(e){return this._addCheck({kind:"url",...de.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...de.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...de.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...de.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...de.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...de.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...de.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...de.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...de.errToObj(e)})}datetime(e){var r,o;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,local:(o=e==null?void 0:e.local)!==null&&o!==void 0?o:!1,...de.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...de.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...de.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...de.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...de.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...de.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...de.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...de.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...de.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...de.errToObj(r)})}nonempty(e){return this.min(1,de.errToObj(e))}trim(){return new ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}ar.create=t=>{var e;return new ar({checks:[],typeName:ve.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Te(t)})};function Q_(t,e){const r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,i=r>o?r:o,s=parseInt(t.toFixed(i).replace(".","")),d=parseInt(e.toFixed(i).replace(".",""));return s%d/Math.pow(10,i)}class ln extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ae.number){const i=this._getOrReturnCtx(e);return ne(i,{code:Q.invalid_type,expected:ae.number,received:i.parsedType}),we}let r;const o=new ft;for(const i of this._def.checks)i.kind==="int"?Fe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?Q_(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.not_finite,message:i.message}),o.dirty()):Fe.assertNever(i);return{status:o.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,de.toString(r))}gt(e,r){return this.setLimit("min",e,!1,de.toString(r))}lte(e,r){return this.setLimit("max",e,!0,de.toString(r))}lt(e,r){return this.setLimit("max",e,!1,de.toString(r))}setLimit(e,r,o,i){return new ln({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:de.toString(i)}]})}_addCheck(e){return new ln({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:de.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:de.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:de.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:de.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:de.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:de.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:de.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:de.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:de.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Fe.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(e===null||o.value<e)&&(e=o.value)}return Number.isFinite(r)&&Number.isFinite(e)}}ln.create=t=>new ln({checks:[],typeName:ve.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Te(t)});class sn extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ae.bigint){const i=this._getOrReturnCtx(e);return ne(i,{code:Q.invalid_type,expected:ae.bigint,received:i.parsedType}),we}let r;const o=new ft;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),ne(r,{code:Q.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Fe.assertNever(i);return{status:o.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,de.toString(r))}gt(e,r){return this.setLimit("min",e,!1,de.toString(r))}lte(e,r){return this.setLimit("max",e,!0,de.toString(r))}lt(e,r){return this.setLimit("max",e,!1,de.toString(r))}setLimit(e,r,o,i){return new sn({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:de.toString(i)}]})}_addCheck(e){return new sn({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:de.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:de.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:de.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:de.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:de.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}sn.create=t=>{var e;return new sn({checks:[],typeName:ve.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Te(t)})};class da extends Ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ae.boolean){const r=this._getOrReturnCtx(e);return ne(r,{code:Q.invalid_type,expected:ae.boolean,received:r.parsedType}),we}return xt(e.data)}}da.create=t=>new da({typeName:ve.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Te(t)});class Pn extends Ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ae.date){const i=this._getOrReturnCtx(e);return ne(i,{code:Q.invalid_type,expected:ae.date,received:i.parsedType}),we}if(isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return ne(i,{code:Q.invalid_date}),we}const r=new ft;let o;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(o=this._getOrReturnCtx(e,o),ne(o,{code:Q.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Pn({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:de.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:de.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}Pn.create=t=>new Pn({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ve.ZodDate,...Te(t)});class bi extends Ae{_parse(e){if(this._getType(e)!==ae.symbol){const r=this._getOrReturnCtx(e);return ne(r,{code:Q.invalid_type,expected:ae.symbol,received:r.parsedType}),we}return xt(e.data)}}bi.create=t=>new bi({typeName:ve.ZodSymbol,...Te(t)});class ua extends Ae{_parse(e){if(this._getType(e)!==ae.undefined){const r=this._getOrReturnCtx(e);return ne(r,{code:Q.invalid_type,expected:ae.undefined,received:r.parsedType}),we}return xt(e.data)}}ua.create=t=>new ua({typeName:ve.ZodUndefined,...Te(t)});class pa extends Ae{_parse(e){if(this._getType(e)!==ae.null){const r=this._getOrReturnCtx(e);return ne(r,{code:Q.invalid_type,expected:ae.null,received:r.parsedType}),we}return xt(e.data)}}pa.create=t=>new pa({typeName:ve.ZodNull,...Te(t)});class ao extends Ae{constructor(){super(...arguments),this._any=!0}_parse(e){return xt(e.data)}}ao.create=t=>new ao({typeName:ve.ZodAny,...Te(t)});class Dn extends Ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xt(e.data)}}Dn.create=t=>new Dn({typeName:ve.ZodUnknown,...Te(t)});class Ir extends Ae{_parse(e){const r=this._getOrReturnCtx(e);return ne(r,{code:Q.invalid_type,expected:ae.never,received:r.parsedType}),we}}Ir.create=t=>new Ir({typeName:ve.ZodNever,...Te(t)});class wi extends Ae{_parse(e){if(this._getType(e)!==ae.undefined){const r=this._getOrReturnCtx(e);return ne(r,{code:Q.invalid_type,expected:ae.void,received:r.parsedType}),we}return xt(e.data)}}wi.create=t=>new wi({typeName:ve.ZodVoid,...Te(t)});class ir extends Ae{_parse(e){const{ctx:r,status:o}=this._processInputParams(e),i=this._def;if(r.parsedType!==ae.array)return ne(r,{code:Q.invalid_type,expected:ae.array,received:r.parsedType}),we;if(i.exactLength!==null){const d=r.data.length>i.exactLength.value,u=r.data.length<i.exactLength.value;(d||u)&&(ne(r,{code:d?Q.too_big:Q.too_small,minimum:u?i.exactLength.value:void 0,maximum:d?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),o.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ne(r,{code:Q.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),o.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ne(r,{code:Q.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((d,u)=>i.type._parseAsync(new Sr(r,d,r.path,u)))).then(d=>ft.mergeArray(o,d));const s=[...r.data].map((d,u)=>i.type._parseSync(new Sr(r,d,r.path,u)));return ft.mergeArray(o,s)}get element(){return this._def.type}min(e,r){return new ir({...this._def,minLength:{value:e,message:de.toString(r)}})}max(e,r){return new ir({...this._def,maxLength:{value:e,message:de.toString(r)}})}length(e,r){return new ir({...this._def,exactLength:{value:e,message:de.toString(r)}})}nonempty(e){return this.min(1,e)}}ir.create=(t,e)=>new ir({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray,...Te(e)});function io(t){if(t instanceof Ye){const e={};for(const r in t.shape){const o=t.shape[r];e[r]=Er.create(io(o))}return new Ye({...t._def,shape:()=>e})}else return t instanceof ir?new ir({...t._def,type:io(t.element)}):t instanceof Er?Er.create(io(t.unwrap())):t instanceof un?un.create(io(t.unwrap())):t instanceof Tr?Tr.create(t.items.map(e=>io(e))):t}class Ye extends Ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=Fe.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ae.object){const p=this._getOrReturnCtx(e);return ne(p,{code:Q.invalid_type,expected:ae.object,received:p.parsedType}),we}const{status:r,ctx:o}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),d=[];if(!(this._def.catchall instanceof Ir&&this._def.unknownKeys==="strip"))for(const p in o.data)s.includes(p)||d.push(p);const u=[];for(const p of s){const h=i[p],f=o.data[p];u.push({key:{status:"valid",value:p},value:h._parse(new Sr(o,f,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof Ir){const p=this._def.unknownKeys;if(p==="passthrough")for(const h of d)u.push({key:{status:"valid",value:h},value:{status:"valid",value:o.data[h]}});else if(p==="strict")d.length>0&&(ne(o,{code:Q.unrecognized_keys,keys:d}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const h of d){const f=o.data[h];u.push({key:{status:"valid",value:h},value:p._parse(new Sr(o,f,o.path,h)),alwaysSet:h in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const h of u){const f=await h.key,y=await h.value;p.push({key:f,value:y,alwaysSet:h.alwaysSet})}return p}).then(p=>ft.mergeObjectSync(r,p)):ft.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return de.errToObj,new Ye({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,o)=>{var i,s,d,u;const p=(d=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,o).message)!==null&&d!==void 0?d:o.defaultError;return r.code==="unrecognized_keys"?{message:(u=de.errToObj(e).message)!==null&&u!==void 0?u:p}:{message:p}}}:{}})}strip(){return new Ye({...this._def,unknownKeys:"strip"})}passthrough(){return new Ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ve.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Ye({...this._def,catchall:e})}pick(e){const r={};return Fe.objectKeys(e).forEach(o=>{e[o]&&this.shape[o]&&(r[o]=this.shape[o])}),new Ye({...this._def,shape:()=>r})}omit(e){const r={};return Fe.objectKeys(this.shape).forEach(o=>{e[o]||(r[o]=this.shape[o])}),new Ye({...this._def,shape:()=>r})}deepPartial(){return io(this)}partial(e){const r={};return Fe.objectKeys(this.shape).forEach(o=>{const i=this.shape[o];e&&!e[o]?r[o]=i:r[o]=i.optional()}),new Ye({...this._def,shape:()=>r})}required(e){const r={};return Fe.objectKeys(this.shape).forEach(o=>{if(e&&!e[o])r[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof Er;)i=i._def.innerType;r[o]=i}}),new Ye({...this._def,shape:()=>r})}keyof(){return tp(Fe.objectKeys(this.shape))}}Ye.create=(t,e)=>new Ye({shape:()=>t,unknownKeys:"strip",catchall:Ir.create(),typeName:ve.ZodObject,...Te(e)}),Ye.strictCreate=(t,e)=>new Ye({shape:()=>t,unknownKeys:"strict",catchall:Ir.create(),typeName:ve.ZodObject,...Te(e)}),Ye.lazycreate=(t,e)=>new Ye({shape:t,unknownKeys:"strip",catchall:Ir.create(),typeName:ve.ZodObject,...Te(e)});class ga extends Ae{_parse(e){const{ctx:r}=this._processInputParams(e),o=this._def.options;function i(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return r.common.issues.push(...u.ctx.common.issues),u.result;const d=s.map(u=>new Lt(u.ctx.common.issues));return ne(r,{code:Q.invalid_union,unionErrors:d}),we}if(r.common.async)return Promise.all(o.map(async s=>{const d={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:d}),ctx:d}})).then(i);{let s;const d=[];for(const p of o){const h={...r,common:{...r.common,issues:[]},parent:null},f=p._parseSync({data:r.data,path:r.path,parent:h});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:h}),h.common.issues.length&&d.push(h.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const u=d.map(p=>new Lt(p));return ne(r,{code:Q.invalid_union,unionErrors:u}),we}}get options(){return this._def.options}}ga.create=(t,e)=>new ga({options:t,typeName:ve.ZodUnion,...Te(e)});const cn=t=>t instanceof ma?cn(t.schema):t instanceof lr?cn(t.innerType()):t instanceof va?[t.value]:t instanceof dn?t.options:t instanceof ya?Fe.objectValues(t.enum):t instanceof ba?cn(t._def.innerType):t instanceof ua?[void 0]:t instanceof pa?[null]:t instanceof Er?[void 0,...cn(t.unwrap())]:t instanceof un?[null,...cn(t.unwrap())]:t instanceof Es||t instanceof Ca?cn(t.unwrap()):t instanceof wa?cn(t._def.innerType):[];class xi extends Ae{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.object)return ne(r,{code:Q.invalid_type,expected:ae.object,received:r.parsedType}),we;const o=this.discriminator,i=r.data[o],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ne(r,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,o){const i=new Map;for(const s of r){const d=cn(s.shape[e]);if(!d.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const u of d){if(i.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);i.set(u,s)}}return new xi({typeName:ve.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Te(o)})}}function Ts(t,e){const r=an(t),o=an(e);if(t===e)return{valid:!0,data:t};if(r===ae.object&&o===ae.object){const i=Fe.objectKeys(e),s=Fe.objectKeys(t).filter(u=>i.indexOf(u)!==-1),d={...t,...e};for(const u of s){const p=Ts(t[u],e[u]);if(!p.valid)return{valid:!1};d[u]=p.data}return{valid:!0,data:d}}else if(r===ae.array&&o===ae.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let s=0;s<t.length;s++){const d=t[s],u=e[s],p=Ts(d,u);if(!p.valid)return{valid:!1};i.push(p.data)}return{valid:!0,data:i}}else return r===ae.date&&o===ae.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class ha extends Ae{_parse(e){const{status:r,ctx:o}=this._processInputParams(e),i=(s,d)=>{if(_s(s)||_s(d))return we;const u=Ts(s.value,d.value);return u.valid?((ks(s)||ks(d))&&r.dirty(),{status:r.value,value:u.data}):(ne(o,{code:Q.invalid_intersection_types}),we)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([s,d])=>i(s,d)):i(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}ha.create=(t,e,r)=>new ha({left:t,right:e,typeName:ve.ZodIntersection,...Te(r)});class Tr extends Ae{_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.array)return ne(o,{code:Q.invalid_type,expected:ae.array,received:o.parsedType}),we;if(o.data.length<this._def.items.length)return ne(o,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&o.data.length>this._def.items.length&&(ne(o,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...o.data].map((s,d)=>{const u=this._def.items[d]||this._def.rest;return u?u._parse(new Sr(o,s,o.path,d)):null}).filter(s=>!!s);return o.common.async?Promise.all(i).then(s=>ft.mergeArray(r,s)):ft.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new Tr({...this._def,rest:e})}}Tr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Tr({items:t,typeName:ve.ZodTuple,rest:null,...Te(e)})};class fa extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.object)return ne(o,{code:Q.invalid_type,expected:ae.object,received:o.parsedType}),we;const i=[],s=this._def.keyType,d=this._def.valueType;for(const u in o.data)i.push({key:s._parse(new Sr(o,u,o.path,u)),value:d._parse(new Sr(o,o.data[u],o.path,u)),alwaysSet:u in o.data});return o.common.async?ft.mergeObjectAsync(r,i):ft.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,o){return r instanceof Ae?new fa({keyType:e,valueType:r,typeName:ve.ZodRecord,...Te(o)}):new fa({keyType:ar.create(),valueType:e,typeName:ve.ZodRecord,...Te(r)})}}class Ci extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.map)return ne(o,{code:Q.invalid_type,expected:ae.map,received:o.parsedType}),we;const i=this._def.keyType,s=this._def.valueType,d=[...o.data.entries()].map(([u,p],h)=>({key:i._parse(new Sr(o,u,o.path,[h,"key"])),value:s._parse(new Sr(o,p,o.path,[h,"value"]))}));if(o.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const p of d){const h=await p.key,f=await p.value;if(h.status==="aborted"||f.status==="aborted")return we;(h.status==="dirty"||f.status==="dirty")&&r.dirty(),u.set(h.value,f.value)}return{status:r.value,value:u}})}else{const u=new Map;for(const p of d){const h=p.key,f=p.value;if(h.status==="aborted"||f.status==="aborted")return we;(h.status==="dirty"||f.status==="dirty")&&r.dirty(),u.set(h.value,f.value)}return{status:r.value,value:u}}}}Ci.create=(t,e,r)=>new Ci({valueType:e,keyType:t,typeName:ve.ZodMap,...Te(r)});class Vn extends Ae{_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.set)return ne(o,{code:Q.invalid_type,expected:ae.set,received:o.parsedType}),we;const i=this._def;i.minSize!==null&&o.data.size<i.minSize.value&&(ne(o,{code:Q.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&o.data.size>i.maxSize.value&&(ne(o,{code:Q.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const s=this._def.valueType;function d(p){const h=new Set;for(const f of p){if(f.status==="aborted")return we;f.status==="dirty"&&r.dirty(),h.add(f.value)}return{status:r.value,value:h}}const u=[...o.data.values()].map((p,h)=>s._parse(new Sr(o,p,o.path,h)));return o.common.async?Promise.all(u).then(p=>d(p)):d(u)}min(e,r){return new Vn({...this._def,minSize:{value:e,message:de.toString(r)}})}max(e,r){return new Vn({...this._def,maxSize:{value:e,message:de.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Vn.create=(t,e)=>new Vn({valueType:t,minSize:null,maxSize:null,typeName:ve.ZodSet,...Te(e)});class lo extends Ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.function)return ne(r,{code:Q.invalid_type,expected:ae.function,received:r.parsedType}),we;function o(u,p){return mi({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fi(),oo].filter(h=>!!h),issueData:{code:Q.invalid_arguments,argumentsError:p}})}function i(u,p){return mi({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fi(),oo].filter(h=>!!h),issueData:{code:Q.invalid_return_type,returnTypeError:p}})}const s={errorMap:r.common.contextualErrorMap},d=r.data;if(this._def.returns instanceof so){const u=this;return xt(async function(...p){const h=new Lt([]),f=await u._def.args.parseAsync(p,s).catch(S=>{throw h.addIssue(o(p,S)),h}),y=await Reflect.apply(d,this,f);return await u._def.returns._def.type.parseAsync(y,s).catch(S=>{throw h.addIssue(i(y,S)),h})})}else{const u=this;return xt(function(...p){const h=u._def.args.safeParse(p,s);if(!h.success)throw new Lt([o(p,h.error)]);const f=Reflect.apply(d,this,h.data),y=u._def.returns.safeParse(f,s);if(!y.success)throw new Lt([i(f,y.error)]);return y.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new lo({...this._def,args:Tr.create(e).rest(Dn.create())})}returns(e){return new lo({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,o){return new lo({args:e||Tr.create([]).rest(Dn.create()),returns:r||Dn.create(),typeName:ve.ZodFunction,...Te(o)})}}class ma extends Ae{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}ma.create=(t,e)=>new ma({getter:t,typeName:ve.ZodLazy,...Te(e)});class va extends Ae{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return ne(r,{received:r.data,code:Q.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:e.data}}get value(){return this._def.value}}va.create=(t,e)=>new va({value:t,typeName:ve.ZodLiteral,...Te(e)});function tp(t,e){return new dn({values:t,typeName:ve.ZodEnum,...Te(e)})}class dn extends Ae{constructor(){super(...arguments),sa.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),o=this._def.values;return ne(r,{expected:Fe.joinValues(o),received:r.parsedType,code:Q.invalid_type}),we}if(yi(this,sa)||Yu(this,sa,new Set(this._def.values)),!yi(this,sa).has(e.data)){const r=this._getOrReturnCtx(e),o=this._def.values;return ne(r,{received:r.data,code:Q.invalid_enum_value,options:o}),we}return xt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return dn.create(e,{...this._def,...r})}exclude(e,r=this._def){return dn.create(this.options.filter(o=>!e.includes(o)),{...this._def,...r})}}sa=new WeakMap,dn.create=tp;class ya extends Ae{constructor(){super(...arguments),ca.set(this,void 0)}_parse(e){const r=Fe.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==ae.string&&o.parsedType!==ae.number){const i=Fe.objectValues(r);return ne(o,{expected:Fe.joinValues(i),received:o.parsedType,code:Q.invalid_type}),we}if(yi(this,ca)||Yu(this,ca,new Set(Fe.getValidEnumValues(this._def.values))),!yi(this,ca).has(e.data)){const i=Fe.objectValues(r);return ne(o,{received:o.data,code:Q.invalid_enum_value,options:i}),we}return xt(e.data)}get enum(){return this._def.values}}ca=new WeakMap,ya.create=(t,e)=>new ya({values:t,typeName:ve.ZodNativeEnum,...Te(e)});class so extends Ae{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.promise&&r.common.async===!1)return ne(r,{code:Q.invalid_type,expected:ae.promise,received:r.parsedType}),we;const o=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return xt(o.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}so.create=(t,e)=>new so({type:t,typeName:ve.ZodPromise,...Te(e)});class lr extends Ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:o}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:d=>{ne(o,d),d.fatal?r.abort():r.dirty()},get path(){return o.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const d=i.transform(o.data,s);if(o.common.async)return Promise.resolve(d).then(async u=>{if(r.value==="aborted")return we;const p=await this._def.schema._parseAsync({data:u,path:o.path,parent:o});return p.status==="aborted"?we:p.status==="dirty"||r.value==="dirty"?vi(p.value):p});{if(r.value==="aborted")return we;const u=this._def.schema._parseSync({data:d,path:o.path,parent:o});return u.status==="aborted"?we:u.status==="dirty"||r.value==="dirty"?vi(u.value):u}}if(i.type==="refinement"){const d=u=>{const p=i.refinement(u,s);if(o.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(o.common.async===!1){const u=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return u.status==="aborted"?we:(u.status==="dirty"&&r.dirty(),d(u.value),{status:r.value,value:u.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(u=>u.status==="aborted"?we:(u.status==="dirty"&&r.dirty(),d(u.value).then(()=>({status:r.value,value:u.value}))))}if(i.type==="transform")if(o.common.async===!1){const d=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!ia(d))return d;const u=i.transform(d.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:u}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(d=>ia(d)?Promise.resolve(i.transform(d.value,s)).then(u=>({status:r.value,value:u})):d);Fe.assertNever(i)}}lr.create=(t,e,r)=>new lr({schema:t,typeName:ve.ZodEffects,effect:e,...Te(r)}),lr.createWithPreprocess=(t,e,r)=>new lr({schema:e,effect:{type:"preprocess",transform:t},typeName:ve.ZodEffects,...Te(r)});class Er extends Ae{_parse(e){return this._getType(e)===ae.undefined?xt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Er.create=(t,e)=>new Er({innerType:t,typeName:ve.ZodOptional,...Te(e)});class un extends Ae{_parse(e){return this._getType(e)===ae.null?xt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}un.create=(t,e)=>new un({innerType:t,typeName:ve.ZodNullable,...Te(e)});class ba extends Ae{_parse(e){const{ctx:r}=this._processInputParams(e);let o=r.data;return r.parsedType===ae.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}ba.create=(t,e)=>new ba({innerType:t,typeName:ve.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Te(e)});class wa extends Ae{_parse(e){const{ctx:r}=this._processInputParams(e),o={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return la(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Lt(o.common.issues)},input:o.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Lt(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}wa.create=(t,e)=>new wa({innerType:t,typeName:ve.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Te(e)});class _i extends Ae{_parse(e){if(this._getType(e)!==ae.nan){const r=this._getOrReturnCtx(e);return ne(r,{code:Q.invalid_type,expected:ae.nan,received:r.parsedType}),we}return{status:"valid",value:e.data}}}_i.create=t=>new _i({typeName:ve.ZodNaN,...Te(t)});const X_=Symbol("zod_brand");class Es extends Ae{_parse(e){const{ctx:r}=this._processInputParams(e),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}}class xa extends Ae{_parse(e){const{status:r,ctx:o}=this._processInputParams(e);if(o.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?we:i.status==="dirty"?(r.dirty(),vi(i.value)):this._def.out._parseAsync({data:i.value,path:o.path,parent:o})})();{const i=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?we:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:o.path,parent:o})}}static create(e,r){return new xa({in:e,out:r,typeName:ve.ZodPipeline})}}class Ca extends Ae{_parse(e){const r=this._def.innerType._parse(e),o=i=>(ia(i)&&(i.value=Object.freeze(i.value)),i);return la(r)?r.then(i=>o(i)):o(r)}unwrap(){return this._def.innerType}}Ca.create=(t,e)=>new Ca({innerType:t,typeName:ve.ZodReadonly,...Te(e)});function rp(t,e={},r){return t?ao.create().superRefine((o,i)=>{var s,d;if(!t(o)){const u=typeof e=="function"?e(o):typeof e=="string"?{message:e}:e,p=(d=(s=u.fatal)!==null&&s!==void 0?s:r)!==null&&d!==void 0?d:!0,h=typeof u=="string"?{message:u}:u;i.addIssue({code:"custom",...h,fatal:p})}}):ao.create()}const e1={object:Ye.lazycreate};var ve;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ve||(ve={}));const t1=(t,e={message:`Input not instance of ${t.name}`})=>rp(r=>r instanceof t,e),np=ar.create,op=ln.create,r1=_i.create,n1=sn.create,ap=da.create,o1=Pn.create,a1=bi.create,i1=ua.create,l1=pa.create,s1=ao.create,c1=Dn.create,d1=Ir.create,u1=wi.create,p1=ir.create,g1=Ye.create,h1=Ye.strictCreate,f1=ga.create,m1=xi.create,v1=ha.create,y1=Tr.create,b1=fa.create,w1=Ci.create,x1=Vn.create,C1=lo.create,_1=ma.create,k1=va.create,S1=dn.create,T1=ya.create,E1=so.create,ip=lr.create,N1=Er.create,A1=un.create,M1=lr.createWithPreprocess,B1=xa.create;var ki=Object.freeze({__proto__:null,defaultErrorMap:oo,setErrorMap:I_,getErrorMap:fi,makeIssue:mi,EMPTY_PATH:F_,addIssueToContext:ne,ParseStatus:ft,INVALID:we,DIRTY:vi,OK:xt,isAborted:_s,isDirty:ks,isValid:ia,isAsync:la,get util(){return Fe},get objectUtil(){return Cs},ZodParsedType:ae,getParsedType:an,ZodType:Ae,datetimeRegex:ep,ZodString:ar,ZodNumber:ln,ZodBigInt:sn,ZodBoolean:da,ZodDate:Pn,ZodSymbol:bi,ZodUndefined:ua,ZodNull:pa,ZodAny:ao,ZodUnknown:Dn,ZodNever:Ir,ZodVoid:wi,ZodArray:ir,ZodObject:Ye,ZodUnion:ga,ZodDiscriminatedUnion:xi,ZodIntersection:ha,ZodTuple:Tr,ZodRecord:fa,ZodMap:Ci,ZodSet:Vn,ZodFunction:lo,ZodLazy:ma,ZodLiteral:va,ZodEnum:dn,ZodNativeEnum:ya,ZodPromise:so,ZodEffects:lr,ZodTransformer:lr,ZodOptional:Er,ZodNullable:un,ZodDefault:ba,ZodCatch:wa,ZodNaN:_i,BRAND:X_,ZodBranded:Es,ZodPipeline:xa,ZodReadonly:Ca,custom:rp,Schema:Ae,ZodSchema:Ae,late:e1,get ZodFirstPartyTypeKind(){return ve},coerce:{string:t=>ar.create({...t,coerce:!0}),number:t=>ln.create({...t,coerce:!0}),boolean:t=>da.create({...t,coerce:!0}),bigint:t=>sn.create({...t,coerce:!0}),date:t=>Pn.create({...t,coerce:!0})},any:s1,array:p1,bigint:n1,boolean:ap,date:o1,discriminatedUnion:m1,effect:ip,enum:S1,function:C1,instanceof:t1,intersection:v1,lazy:_1,literal:k1,map:w1,nan:r1,nativeEnum:T1,never:d1,null:l1,nullable:A1,number:op,object:g1,oboolean:()=>ap().optional(),onumber:()=>op().optional(),optional:N1,ostring:()=>np().optional(),pipeline:B1,preprocess:M1,promise:E1,record:b1,set:x1,strictObject:h1,string:np,symbol:a1,transformer:ip,tuple:y1,undefined:i1,union:f1,unknown:c1,void:u1,NEVER:we,ZodIssueCode:Q,quotelessJson:L_,ZodError:Lt});function P1(t){throw new Error("Unexpected object: "+t)}const lp="upload://upload/",sp="index://index/";function D1(t){return t.startsWith(lp)}function V1(t){return t.startsWith(sp)}function L1(t){if(V1(t)){const e=t.slice(sp.length);return JSON.parse(decodeURIComponent(e)).path}else if(D1(t)){const e=t.slice(lp.length);return JSON.parse(decodeURIComponent(e)).localPath}P1(t)}ki.object({__isRef:ki.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:ki.string().describe("Upstream block id"),name:ki.string().describe("Name of the output provided to the upstream block's output context")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").strict().readonly();function I1(t){return t.replace(/^.*[\\/]/,"")}const F1={key:0,ref:"label"},R1={key:0,class:"required-icon"},O1=["data-placeholder"],z1={key:5,class:"pl-file-input__stats"},G1={key:0,class:"pl-file-input__error"},j1={key:1,class:"upl-file-input__helper"},cp=n.defineComponent({__name:"PlFileInput",props:{modelValue:{},label:{default:void 0},required:{type:Boolean},dashed:{type:Boolean},extensions:{default:void 0},fileDialogTitle:{default:void 0},placeholder:{default:void 0},progress:{default:void 0},error:{default:void 0},helper:{default:void 0},showFilenameOnly:{type:Boolean},cellStyle:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.reactive({fileDialogOpen:!1}),o=n.useSlots(),i=e,s=t,d=n.computed(()=>{if(s.modelValue)try{const w=L1(s.modelValue).trim();return s.showFilenameOnly?I1(w):w}catch(w){return console.error(w),s.modelValue}return""}),u=n.computed(()=>s.progress&&!s.progress.done),p=n.computed(()=>s.progress&&s.progress.done),h=n.computed(()=>s.error),f=n.computed(()=>s.error),y=n.computed(()=>{const{status:w,done:L}=s.progress??{};return!w||!w.bytesTotal?"":w.bytesProcessed&&!L?es(w.bytesProcessed,{})+" / "+es(w.bytesTotal,{}):es(w.bytesTotal,{})}),S=n.computed(()=>{var w;const{progress:L}=s;return L?{width:L.done?"100%":Math.round((((w=L.status)==null?void 0:w.progress)??0)*100)+"%"}:{}}),k=()=>{r.fileDialogOpen=!0},D=w=>{w.files.length&&i("update:modelValue",w.files[0])},E=()=>i("update:modelValue",void 0),A=n.ref();return s.cellStyle||Vr(A),(w,L)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.normalizeClass([{"pl-file-input__cell-style":!!w.cellStyle,"has-file":!!d.value},"pl-file-input__envelope"])},[n.createElementVNode("div",{ref_key:"rootRef",ref:A,class:n.normalizeClass(["pl-file-input",{dashed:w.dashed,error:h.value}]),tabindex:"0",onKeyup:n.withKeys(k,["enter"])},[n.createElementVNode("div",{class:"pl-file-input__progress",style:n.normalizeStyle(S.value)},null,4),L[3]||(L[3]=n.createTextVNode()),!w.cellStyle&&w.label?(n.openBlock(),n.createElementBlock("label",F1,[w.required?(n.openBlock(),n.createElementBlock("i",R1)):n.createCommentVNode("",!0),L[1]||(L[1]=n.createTextVNode()),n.createElementVNode("span",null,n.toDisplayString(w.label),1),L[2]||(L[2]=n.createTextVNode()),n.unref(o).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:1,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(w.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)],512)):n.createCommentVNode("",!0),L[4]||(L[4]=n.createTextVNode()),h.value?(n.openBlock(),n.createBlock(n.unref(Lr),{key:1,name:"restart"})):u.value?(n.openBlock(),n.createBlock(n.unref(Lr),{key:2,name:"cloud-upload"})):p.value?(n.openBlock(),n.createBlock(n.unref(Lr),{key:3,name:"success"})):(n.openBlock(),n.createBlock(n.unref(Lr),{key:4,name:"paper-clip"})),L[5]||(L[5]=n.createTextVNode()),n.createElementVNode("div",{"data-placeholder":w.placeholder??"Choose file",class:"pl-file-input__filename",onClick:n.withModifiers(k,["stop"])},n.toDisplayString(d.value),9,O1),L[6]||(L[6]=n.createTextVNode()),y.value?(n.openBlock(),n.createElementBlock("div",z1,n.toDisplayString(y.value),1)):n.createCommentVNode("",!0),L[7]||(L[7]=n.createTextVNode()),w.modelValue?(n.openBlock(),n.createBlock(n.unref(Lr),{key:6,name:"close",onClick:n.withModifiers(E,["stop"])})):n.createCommentVNode("",!0),L[8]||(L[8]=n.createTextVNode()),n.createVNode(on,{class:"pl-file-input__contour"})],34),L[9]||(L[9]=n.createTextVNode()),h.value?(n.openBlock(),n.createElementBlock("div",G1,n.toDisplayString(f.value),1)):w.helper?(n.openBlock(),n.createElementBlock("div",j1,n.toDisplayString(w.helper),1)):n.createCommentVNode("",!0)],2),L[10]||(L[10]=n.createTextVNode()),n.createVNode(n.unref(qu),{modelValue:r.fileDialogOpen,"onUpdate:modelValue":L[0]||(L[0]=R=>r.fileDialogOpen=R),extensions:w.extensions,title:w.fileDialogTitle,"onImport:files":D},null,8,["modelValue","extensions","title"])],64))}}),U1={class:"pl-notification-alert__wrapper d-flex"},Z1={class:"pl-notification-alert__content flex-grow-1"},$1={key:0,class:"pl-notification-alert__close"},W1={key:0,class:"pl-notification-alert__actions d-flex"},dp=n.defineComponent({__name:"PlNotificationAlert",props:n.mergeModels({type:{default:"neutral"},width:{default:"256px"},closable:{type:Boolean}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,r=n.useModel(t,"modelValue");function o(){e.closable&&(r.value=!1)}return(i,s)=>r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([i.type,"pl-notification-alert d-flex flex-column gap-16"]),style:n.normalizeStyle({width:`${i.width}`})},[n.createElementVNode("div",U1,[n.createElementVNode("div",Z1,[n.renderSlot(i.$slots,"default")]),s[0]||(s[0]=n.createTextVNode()),i.closable?(n.openBlock(),n.createElementBlock("div",$1,[n.createVNode(n.unref(us),{icon:"close",onClick:o})])):n.createCommentVNode("",!0)]),s[1]||(s[1]=n.createTextVNode()),i.$slots.actions?(n.openBlock(),n.createElementBlock("div",W1,[n.renderSlot(i.$slots,"actions")])):n.createCommentVNode("",!0)],6)):n.createCommentVNode("",!0)}}),up=n.defineComponent({__name:"PlCopyData",emits:["copy"],setup(t,{emit:e}){const r=e,o=n.ref(!1),i=n.computed(()=>o.value?"mask-clipboard-copied":"mask-clipboard");function s(){o.value=!0,setTimeout(()=>o.value=!1,700),r("copy")}return(d,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([i.value,"mask-24"]),onClick:s},null,2))}}),H1=n.defineComponent({__name:"ContextProvider",props:{context:{},contextKey:{}},setup(t){const e=t;return n.provide(e.contextKey,n.computed(()=>e.context)),(r,o)=>n.renderSlot(r.$slots,"default")}});function mt(t,e,r){return e>t?e:t>r?r:t}const Ns=t=>n.computed(()=>{const e=[100],{min:r,max:o,step:i}=t.value;let s=r;for(;s<o;){s+=i;const d=(1-(mt(s,r,o)-r)/(o-r))*100;e.push(d)}return e}),q1={class:"ui-slider__wrapper"},K1={class:"ui-slider__label-section"},Y1={key:0,class:"text-s"},J1={key:1,class:"ui-slider__value-static text-s"},Q1={class:"ui-slider__base"},X1={class:"ui-slider__container"},ek={class:"ui-slider__container ui-slider__container-thumb"},tk={class:"ui-slider__input-wrapper d-flex"},rk=["value"],nk={key:0,class:"ui-slider__error"},ok=n.defineComponent({__name:"Slider",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.useSlots(),o=e,i=t,s=n.reactive({deltaValue:0}),d=n.computed(()=>i.max-i.min),u=n.computed(()=>mt((i.modelValue??0)+s.deltaValue,i.min,i.max)),p=n.ref(i.modelValue),h=n.computed(()=>{const G=i.modelValue;return Number.isFinite(G)?G<i.min?`Min value: ${i.min}`:G>i.max?`Max value: ${i.max}`:i.error:"Not a number"}),f=n.computed(()=>i),y=Ns(f),S=n.computed(()=>(u.value-i.min)/d.value),k=n.computed(()=>({right:Math.ceil((1-S.value)*100)+"%"})),D=n.computed(()=>({right:`calc(${Math.ceil((1-S.value)*100)}%) `})),E=n.ref(),A=n.ref();n.watch(()=>i.modelValue,G=>{p.value=G});function w(G){const K=mt(G,i.min,i.max);return Math.round((K+Number.EPSILON)*(1/i.step))/(1/i.step)}nn(A,G=>{var K;ot((K=n.unref(E))==null?void 0:K.getBoundingClientRect(),U=>{const{dx:P}=G;s.deltaValue=P/U.width*d.value,p.value=w(mt((i.modelValue??0)+s.deltaValue,i.min,i.max)),G.stop&&(o("update:modelValue",w(u.value)),s.deltaValue=0)})});function L(G){o("update:modelValue",w(G))}function R(G){L(+G.target.value)}function H(G){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(G.code)&&G.preventDefault();const K=G.code==="ArrowUp"||G.code==="ArrowRight"?i.step*1:G.code==="ArrowDown"||G.code==="ArrowLeft"?i.step*-1:0;L(i.modelValue+K)}return(G,K)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([i.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[n.createElementVNode("div",{class:n.normalizeClass([`ui-slider__mode-${i.mode}`,"ui-slider"])},[n.createElementVNode("div",q1,[n.createElementVNode("div",K1,[G.label?(n.openBlock(),n.createElementBlock("label",Y1,[n.createElementVNode("span",null,n.toDisplayString(G.label),1),K[1]||(K[1]=n.createTextVNode()),n.unref(r).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(G.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),K[2]||(K[2]=n.createTextVNode()),i.mode==="text"?(n.openBlock(),n.createElementBlock("div",J1,n.toDisplayString(p.value)+n.toDisplayString(G.measure),1)):n.createCommentVNode("",!0)]),K[6]||(K[6]=n.createTextVNode()),n.createElementVNode("div",Q1,[n.createElementVNode("div",X1,[n.createElementVNode("div",{ref_key:"barRef",ref:E,class:"ui-slider__bar"},[n.createElementVNode("div",{class:"ui-slider__progress",style:n.normalizeStyle(k.value)},null,4)],512)]),K[5]||(K[5]=n.createTextVNode()),n.createElementVNode("div",ek,[i.breakpoints?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(y),(U,P)=>(n.openBlock(),n.createElementBlock("div",{key:P,style:n.normalizeStyle({right:`${U}%`}),class:"ui-slider__thumb-step"},null,4))),128)):n.createCommentVNode("",!0),K[4]||(K[4]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef",ref:A,tabindex:"0",class:"ui-slider__thumb ui-slider__thumb-active",style:n.normalizeStyle(D.value),onKeydown:H},K[3]||(K[3]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),K[7]||(K[7]=n.createTextVNode()),n.createElementVNode("div",tk,[i.mode==="input"?(n.openBlock(),n.createElementBlock("input",{key:0,value:p.value,class:"ui-slider__value text-s",onChange:K[0]||(K[0]=U=>R(U))},null,40,rk)):n.createCommentVNode("",!0)])],2),K[8]||(K[8]=n.createTextVNode()),h.value?(n.openBlock(),n.createElementBlock("div",nk,n.toDisplayString(h.value),1)):n.createCommentVNode("",!0)],2))}});function ak(t,e=null,r=null){function o(u){const{scrollTop:p,scrollHeight:h,clientHeight:f}=u;if(!(h>f)||!e)return null;const y=h-p-f,S=p>e?e:0,k=y>e?f-e-S:f;return`linear-gradient(
|
|
26
66
|
to bottom,
|
|
27
67
|
transparent,
|
|
28
|
-
black ${
|
|
29
|
-
black ${
|
|
68
|
+
black ${S}px,
|
|
69
|
+
black ${k}px,
|
|
30
70
|
transparent 100%
|
|
31
|
-
)`}function
|
|
71
|
+
)`}function i(u){const{scrollLeft:p,scrollWidth:h,clientWidth:f}=u;if(!(h>f)||!r)return null;const y=h-p-f,S=p>r?r:0,k=y>r?f-r-S:f;return`linear-gradient(
|
|
32
72
|
to right,
|
|
33
73
|
transparent,
|
|
34
|
-
black ${
|
|
35
|
-
black ${
|
|
74
|
+
black ${S}px,
|
|
75
|
+
black ${k}px,
|
|
36
76
|
transparent 100%
|
|
37
|
-
)`}function s(){const u=a.value;if(!u)return;const p=[i(u),l(u)].filter(f=>f!==null);u.style.setProperty("-webkit-mask-image",p.join(",")),u.style.setProperty("mask-image",p.join(",")),p.length>1&&(u.style.setProperty("-webkit-mask-composite","source-in"),u.style.setProperty("mask-composite","source-in"))}const d=Zl(s);t.onMounted(s),Xe(window,"scroll",d,!0),Xe(window,"resize",d,!0)}function Nu(a,e){Qd(()=>{nt(t.unref(a),r=>{Xd(r,()=>e(r))})}),t.onUnmounted(()=>{nt(t.unref(a),r=>{eu(r)})})}const cn={item:"sortable__item",animate:"sortable__animate"},yo=a=>a.getBoundingClientRect().y,Bu=a=>{const{y:e,height:r}=a.getBoundingClientRect();return e+Math.ceil(r/2)},A_=a=>{const{y:e,height:r}=a.getBoundingClientRect();return e+r};function O_(a,e){const r={item:void 0,options(){var T;return[...((T=a.value)==null?void 0:T.children)??[]]}},i=t.computed(()=>r.options()),l=e.shakeBuffer??10,s=e.reorderDelay??100;function d(T){const O=e.handle?this.querySelector(e.handle):null;O&&!O.contains(T.target)||(this.classList.remove(cn.animate),this.classList.add(cn.item),r.item={el:this,y:T.y,dy:0,orderChanged:!1})}function u(T){const O=r.options();return O.slice(0,O.indexOf(T))}function p(T){const O=r.options();return O.slice(O.indexOf(T)+1)}function f(T,O){const S=r.options().filter(v=>v!==O),M=S.indexOf(T);return S.splice(M,0,O),S}function m(T,O){const S=r.options().filter(v=>v!==O),M=S.indexOf(T);return S.splice(M+1,0,O),S}function _(T,O){T.dy=O-T.y,T.el.style.setProperty("transform",`translateY(${T.dy}px)`)}function C(T){var O;if(!r.item)return;const{el:S}=r.item;if(!S.isConnected){r.item=void 0;return}const M=T.map(Y=>yo(Y)),v=yo(S);(O=a.value)==null||O.replaceChildren(...T);const A=yo(S),I=T.map(Y=>yo(Y)),W=[];for(let Y=0;Y<I.length;Y++){const F=T[Y];if(F===r.item.el)continue;const B=I[Y],H=M[Y]-B;F.style.transform=`translateY(${H}px)`,W.push(F)}const j=A-v;r.item.y=r.item.y+j,r.item.dy=r.item.dy-j,r.item.orderChanged=!0,r.item.el.style.setProperty("transform",`translateY(${r.item.dy}px)`),W.forEach(Y=>Y.classList.remove(cn.animate)),requestAnimationFrame(function(){W.forEach(Y=>{Y.classList.add(cn.animate),Y.style.transform="",Y.addEventListener("transitionend",()=>{Y.classList.remove(cn.animate)})})})}Xe(window,"mousemove",T=>{if(!r.item)return;const{el:O}=r.item;_(r.item,T.y);const S=yo(r.item.el),M=A_(r.item.el),v=u(O),A=p(O);v.forEach(I=>{const W=Bu(I);S+l<W&&C(f(I,O))}),A.forEach(I=>{const W=Bu(I);M-l>W&&C(m(I,O))})}),Xe(window,"mouseup",()=>{if(!r.item)return;const{el:T,orderChanged:O}=r.item;T.classList.add(cn.animate),T.style.removeProperty("transform"),T.addEventListener("transitionend",()=>{T.classList.remove(cn.animate,cn.item)}),setTimeout(()=>{if(!O)return;const S=r.options().map(v=>Number(v.getAttribute("data-index"))),M=a.value;if(M){for(const v of r.options())M.removeChild(v);i.value.forEach(v=>{M.appendChild(v)})}e.onChange(S)},s),r.item=void 0}),t.watchEffect(()=>{i.value.forEach((T,O)=>{T.removeEventListener("mousedown",d),T.addEventListener("mousedown",d),T.setAttribute("data-index",String(O))})})}function L_(a,e){let r;t.onMounted(()=>{r=setInterval(a,e)}),t.onUnmounted(()=>clearInterval(r))}function I_(a,e,r){const i=t.reactive({data:Dl.deepClone(e(a.value)),changed:!1});return t.watch(()=>i.data,l=>{i.changed?r(Dl.deepClone(l)):i.changed=!0},{deep:!0}),t.watch(a,l=>{Object.assign(i,{data:Dl.deepClone(e(l)),changed:!1})},{deep:!0,immediate:!0}),i}function D_(a){const e=t.reactive({isLoading:!1,result:void 0,error:void 0,async run(...r){this.isLoading=!0,this.error=void 0;try{this.result=await a(...r)}catch(i){this.error=i}finally{this.isLoading=!1}},debounce(r,i=1e3){return zd(()=>{const l=r();this.run(...l).catch(console.error)},i)}});return e.run=e.run.bind(e),e}function R_(a,e){function r(d,u){const p=t.unref(a);if(!p)return;const f=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",f),e(u)}function i(d){const u=p=>r(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=t.unref(a);document.removeEventListener("mousemove",u),p&&(p.style.setProperty("transition","all .3s ease-in-out"),p.style.removeProperty("transform"),p.addEventListener("transitionend",()=>{p.style.removeProperty("transition")}))},{once:!0})}function l(){var d;(d=t.unref(a))==null||d.addEventListener("mousedown",i)}function s(){var d;(d=t.unref(a))==null||d.removeEventListener("mousedown",i)}t.onMounted(l),t.onUnmounted(s)}const P_={class:"ui-slider__wrapper"},j_={class:"ui-slider__label-section"},F_={key:0,class:"text-s"},$_={class:"ui-slider__base"},Z_={class:"ui-slider__container"},U_={class:"ui-slider__container ui-slider__container-thumb"},H_=["data-percent"],W_=["data-percent"],q_=["data-percent"],Y_={key:0,class:"ui-slider__error"},G_=t.defineComponent({__name:"SliderRangeTriple",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:"%"},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.useSlots(),i=e,l=a,s=t.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=t.ref(),u=t.ref(),p=t.ref(),f=t.ref(),m=t.computed(()=>l.max-l.min),_=t.computed(()=>l),C=gs(_),T=t.computed(()=>ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),O=t.computed(()=>ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),S=t.computed(()=>ft((l.modelValue[2]??0)+s.deltaValue3,l.min,l.max)),M=t.computed(()=>{const R=l.modelValue;if(!(Array.isArray(R)&&R.length===3&&R.every(ye=>Number.isFinite(ye))))return"Expected model [number, number, number]";const Q=[];return[...l.modelValue].forEach(ye=>{ye>l.max&&Q.push(`Max model value must be lower than max props ${l.max}.`),ye<l.min&&Q.push("Min model value must be greater than max props.")}),Q.length>0?Q.join(" "):l.error}),v=t.computed(()=>(T.value-l.min)/m.value),A=t.computed(()=>(O.value-l.min)/m.value),I=t.computed(()=>(S.value-l.min)/m.value),W=t.computed(()=>D()),j=t.computed(()=>({right:W.value[0]+"%",left:100-W.value[2]+"%"})),Y=t.computed(()=>({right:Math.ceil((1-v.value)*100)+"%"})),F=t.computed(()=>({right:Math.ceil((1-A.value)*100)+"%"})),B=t.computed(()=>({right:Math.ceil((1-I.value)*100)+"%"}));en(u,R=>{var Q;nt((Q=t.unref(d))==null?void 0:Q.getBoundingClientRect(),ye=>{const{dx:_e}=R;s.deltaValue1=_e/ye.width*m.value,u.value&&H(u.value,l.modelValue[0],s.deltaValue1),R.stop&&(de([J(T.value),J(O.value),J(S.value)]),s.deltaValue1=0)})}),en(p,R=>{var Q;nt((Q=t.unref(d))==null?void 0:Q.getBoundingClientRect(),ye=>{const{dx:_e}=R;s.deltaValue2=_e/ye.width*m.value,p.value&&H(p.value,l.modelValue[1],s.deltaValue2),R.stop&&(de([J(T.value),J(O.value),J(S.value)]),s.deltaValue2=0)})}),en(f,R=>{var Q;nt((Q=t.unref(d))==null?void 0:Q.getBoundingClientRect(),ye=>{const{dx:_e}=R;s.deltaValue3=_e/ye.width*m.value,f.value&&H(f.value,l.modelValue[2],s.deltaValue3),R.stop&&(de([J(T.value),J(O.value),J(S.value)]),s.deltaValue3=0)})});function H(R,Q,ye){const _e=J(ft((Q??0)+ye,l.min,l.max));R.dataset.percent=`${_e}${l.measure}`,Z()}function D(){const R=Math.ceil((1-v.value)*100),Q=Math.ceil((1-A.value)*100),ye=Math.ceil((1-I.value)*100);return[R,Q,ye].sort((_e,Rt)=>_e-Rt)}function J(R){const Q=ft(R,l.min,l.max);return Math.round((Q+Number.EPSILON)*(1/l.step))/(1/l.step)}function de(R){i("update:modelValue",R)}function Z(){const R=Number(Y.value.right.substring(0,Y.value.right.length-1)),Q=Number(F.value.right.substring(0,F.value.right.length-1)),ye=Number(B.value.right.substring(0,B.value.right.length-1)),_e=[{r:R,th:u},{r:Q,th:p},{r:ye,th:f}].sort((Rt,Ht)=>Rt.r-Ht.r);_e[0].th.value&&(_e[0].th.value.dataset.hint="high"),_e[1].th.value&&(_e[1].th.value.dataset.hint="mid"),_e[2].th.value&&(_e[2].th.value.dataset.hint="low")}function V(R,Q){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(R.code)&&R.preventDefault();const ye=R.code==="ArrowUp"||R.code==="ArrowRight"?l.step*1:R.code==="ArrowDown"||R.code==="ArrowLeft"?l.step*-1:0,_e=[...l.modelValue];_e[Q]=ft(_e[Q]+ye,l.min,l.max),de(_e),Z()}return t.onMounted(()=>{Z()}),(R,Q)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[t.createElementVNode("div",{class:t.normalizeClass([`ui-slider__mode-${l.mode}`,"ui-slider"])},[t.createElementVNode("div",P_,[t.createElementVNode("div",j_,[R.label?(t.openBlock(),t.createElementBlock("label",F_,[t.createElementVNode("span",null,t.toDisplayString(R.label),1),Q[3]||(Q[3]=t.createTextVNode()),t.unref(r).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:0,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(R.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Q[11]||(Q[11]=t.createTextVNode()),t.createElementVNode("div",$_,[t.createElementVNode("div",Z_,[t.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[t.createElementVNode("div",{class:"ui-slider__progress",style:t.normalizeStyle(j.value)},null,4)],512)]),Q[10]||(Q[10]=t.createTextVNode()),t.createElementVNode("div",U_,[l.breakpoints?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(C),(ye,_e)=>(t.openBlock(),t.createElementBlock("div",{key:_e,style:t.normalizeStyle({right:`${ye}%`}),class:"ui-slider__thumb-step"},null,4))),128)):t.createCommentVNode("",!0),Q[7]||(Q[7]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:t.normalizeStyle(Y.value),"data-percent":l.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:Q[0]||(Q[0]=ye=>V(ye,0))},Q[4]||(Q[4]=[t.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,H_),Q[8]||(Q[8]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:t.normalizeStyle(F.value),"data-percent":l.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:Q[1]||(Q[1]=ye=>V(ye,1))},Q[5]||(Q[5]=[t.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,W_),Q[9]||(Q[9]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"thumbRef3",ref:f,style:t.normalizeStyle(B.value),"data-percent":l.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:Q[2]||(Q[2]=ye=>V(ye,2))},Q[6]||(Q[6]=[t.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,q_)])])]),Q[12]||(Q[12]=t.createTextVNode()),Q[13]||(Q[13]=t.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),Q[14]||(Q[14]=t.createTextVNode()),M.value?(t.openBlock(),t.createElementBlock("div",Y_,t.toDisplayString(M.value),1)):t.createCommentVNode("",!0)],2))}}),K_={class:"ui-input-range__separator"},J_=t.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(a,{emit:e}){const r=a,i=e,l=t.reactive({left:r.modelValue[0],right:r.modelValue[1]}),s=t.ref(!1),d=t.computed(()=>(s.value,"ui-input-range-focused")),u=t.computed({get(){return{left:Math.min(...r.modelValue),right:Math.max(...r.modelValue)}},set(){}});t.watch(()=>u.value,m=>(l.left=m.left)&&(l.right=m.right));function p(){i("update:modelValue",[+l.left,+l.right]),i("change",[+l.left,+l.right])}function f(m,_){const C=_.target.value;/^[0-9]{0,2}$/.test(C)?m?l.left=+C:l.right=+C:m?l.left=+C.slice(0,C.length-1):l.right=+C.slice(0,C.length-1)}return(m,_)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps({class:[d.value,"ui-input-range"]},m.$attrs),[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=C=>u.value.left=C),class:"text-s",type:"text",onChange:p,onFocus:_[1]||(_[1]=C=>s.value=!0),onFocusout:_[2]||(_[2]=C=>s.value=!1),onInput:_[3]||(_[3]=C=>f(!0,C))},null,544),[[t.vModelText,u.value.left]]),_[8]||(_[8]=t.createTextVNode()),t.createElementVNode("div",K_,t.toDisplayString(r.separator),1),_[9]||(_[9]=t.createTextVNode()),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=C=>u.value.right=C),class:"text-s",type:"text",onChange:p,onFocus:_[5]||(_[5]=C=>s.value=!0),onFocusout:_[6]||(_[6]=C=>s.value=!1),onInput:_[7]||(_[7]=C=>f(!1,C))},null,544),[[t.vModelText,u.value.right]])],16))}}),Q_={class:"ui-slider__wrapper"},X_={class:"ui-slider__label-section"},e1={key:0,class:"text-s"},t1={key:1,class:"ui-slider__value-static text-s"},r1={class:"ui-slider__base"},n1={class:"ui-slider__container"},a1={class:"ui-slider__container ui-slider__container-thumb"},o1={class:"ui-slider__input-wrapper d-flex"},i1={key:0,class:"ui-slider__error"},l1=t.defineComponent({__name:"SliderRange",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const r=t.useSlots(),i=e,l=a,s=t.reactive({deltaValue1:0,deltaValue2:0}),d=t.ref(),u=t.ref(),p=t.ref(),f=t.ref(l.modelValue),m=t.ref(l.modelValue[0]),_=t.ref(l.modelValue[1]),C=t.computed(()=>l),T=gs(C),O=t.computed(()=>[m.value,_.value].sort((Z,V)=>Z-V).join("-")),S=t.computed(()=>l.max-l.min),M=t.computed(()=>ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),v=t.computed(()=>ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),A=t.computed(()=>{const Z=l.modelValue;return Array.isArray(Z)&&Z.length===2&&Z.every(V=>Number.isFinite(V))?l.error:"Expected model [number, number]"}),I=t.computed(()=>(M.value-l.min)/S.value),W=t.computed(()=>(v.value-l.min)/S.value),j=t.computed(()=>H()),Y=t.computed(()=>({right:j.value[0]+"%",left:100-j.value[1]+"%"})),F=t.computed(()=>({right:Math.ceil((1-I.value)*100)+"%"})),B=t.computed(()=>({right:Math.ceil((1-W.value)*100)+"%"}));t.watch(()=>l.modelValue,Z=>{f.value=Z,m.value=+Z[0],_.value=+Z[1]},{immediate:!0}),en(u,Z=>{var V;nt((V=t.unref(d))==null?void 0:V.getBoundingClientRect(),R=>{const{dx:Q}=Z;s.deltaValue1=Q/R.width*S.value,m.value=D(ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),f.value=[m.value,_.value].sort((ye,_e)=>ye-_e),Z.stop&&(J([D(M.value),D(v.value)]),s.deltaValue1=0)})}),en(p,Z=>{var V;nt((V=t.unref(d))==null?void 0:V.getBoundingClientRect(),R=>{const{dx:Q}=Z;s.deltaValue2=Q/R.width*S.value,_.value=D(ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),f.value=[m.value,_.value].sort((ye,_e)=>ye-_e),Z.stop&&(J([D(M.value),D(v.value)]),s.deltaValue2=0)})});function H(){const Z=Math.ceil((1-I.value)*100),V=Math.ceil((1-W.value)*100);return[Z,V].sort((R,Q)=>R-Q)}function D(Z){const V=ft(Z,l.min,l.max);return Math.round((V+Number.EPSILON)*(1/l.step))/(1/l.step)}function J(Z){i("update:modelValue",Z)}function de(Z,V){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(Z.code)&&Z.preventDefault();const R=Z.code==="ArrowUp"||Z.code==="ArrowRight"?l.step*1:Z.code==="ArrowDown"||Z.code==="ArrowLeft"?l.step*-1:0,Q=[...l.modelValue];Q[V]=ft(Q[V]+R,l.min,l.max),J(Q)}return(Z,V)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[t.createElementVNode("div",{class:t.normalizeClass([`ui-slider__mode-${l.mode}`,"ui-slider"])},[t.createElementVNode("div",Q_,[t.createElementVNode("div",X_,[Z.label?(t.openBlock(),t.createElementBlock("label",e1,[t.createElementVNode("span",null,t.toDisplayString(Z.label),1),V[3]||(V[3]=t.createTextVNode()),t.unref(r).tooltip?(t.openBlock(),t.createBlock(t.unref(zt),{key:0,class:"info",position:"top"},{tooltip:t.withCtx(()=>[t.renderSlot(Z.$slots,"tooltip")]),_:3})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),V[4]||(V[4]=t.createTextVNode()),l.mode==="text"?(t.openBlock(),t.createElementBlock("div",t1,t.toDisplayString(O.value),1)):t.createCommentVNode("",!0)]),V[10]||(V[10]=t.createTextVNode()),t.createElementVNode("div",r1,[t.createElementVNode("div",n1,[t.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[t.createElementVNode("div",{class:"ui-slider__progress",style:t.normalizeStyle(Y.value)},null,4)],512)]),V[9]||(V[9]=t.createTextVNode()),t.createElementVNode("div",a1,[l.breakpoints?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(T),(R,Q)=>(t.openBlock(),t.createElementBlock("div",{key:Q,style:t.normalizeStyle({right:`${R}%`}),class:"ui-slider__thumb-step"},null,4))),128)):t.createCommentVNode("",!0),V[7]||(V[7]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:t.normalizeStyle(F.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:V[0]||(V[0]=R=>de(R,0))},V[5]||(V[5]=[t.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),V[8]||(V[8]=t.createTextVNode()),t.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:t.normalizeStyle(B.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:V[1]||(V[1]=R=>de(R,1))},V[6]||(V[6]=[t.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),V[11]||(V[11]=t.createTextVNode()),t.createElementVNode("div",o1,[l.mode==="input"?(t.openBlock(),t.createBlock(J_,{key:0,modelValue:f.value,"onUpdate:modelValue":V[2]||(V[2]=R=>f.value=R),class:"ui-focused-border",onChange:J},null,8,["modelValue"])):t.createCommentVNode("",!0)])],2),V[12]||(V[12]=t.createTextVNode()),A.value?(t.openBlock(),t.createElementBlock("div",i1,t.toDisplayString(A.value),1)):t.createCommentVNode("",!0)],2))}}),s1=t.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(a,{emit:e}){const r=e,i=a,l=t.ref(),s=t.computed(()=>i.clientHeight/(i.scrollHeight||1)),d=t.computed(()=>s.value<1),u=t.computed(()=>{const p=t.unref(s);return{top:i.scrollTop*p+"px",height:Math.floor(i.clientHeight*p)+"px"}});return Xe(l,"pointerdown",p=>{const f={clientY:p.clientY},m=Xl(document,"mousemove",_=>{const C=(_.clientY-f.clientY)/s.value;r("update:scrollTop",i.scrollTop+C),f.clientY=_.clientY});["mouseup","pointercancel"].forEach(_=>{document.addEventListener(_,m,{once:!0})})}),(p,f)=>d.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:l,class:"v-scroll"},[t.createElementVNode("div",{class:"v-scroll__scrollbar",style:t.normalizeStyle(u.value)},null,4)],512)):t.createCommentVNode("",!0)}}),c1=t.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(a,{emit:e}){const r=e,i=a,l=t.ref(),s=t.computed(()=>i.clientWidth/(i.scrollWidth||1)),d=t.computed(()=>s.value<1),u=t.computed(()=>{const p=t.unref(s);return{left:i.scrollLeft*p+"px",width:Math.floor(i.clientWidth*p)+"px"}});return Xe(l,"pointerdown",p=>{const f={clientX:p.clientX},m=Xl(document,"mousemove",_=>{const C=(_.clientX-f.clientX)/s.value;r("update:scrollLeft",i.scrollLeft+C),f.clientX=_.clientX});["mouseup","pointercancel"].forEach(_=>{document.addEventListener(_,m,{once:!0})})}),(p,f)=>d.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:l,class:"h-scroll"},[t.createElementVNode("div",{class:"h-scroll__scrollbar",style:t.normalizeStyle(u.value)},null,4)],512)):t.createCommentVNode("",!0)}}),d1={class:"ui-scrollable"},u1=t.defineComponent({__name:"Scrollable",setup(a){const e=t.ref(),r=t.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function i(u){Y0(r,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const l=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,i(p)};function s(u){nt(t.unref(e),p=>{p.scrollTop=u,i(p)})}function d(u){nt(t.unref(e),p=>{p.scrollLeft=u,i(p)})}return Nu(e,u=>{nt(u,p=>i(p))}),t.onMounted(()=>{nt(t.unref(e),u=>{i(u),u.addEventListener("wheel",l)})}),t.onUnmounted(()=>{nt(t.unref(e),u=>u.removeEventListener("wheel",l))}),(u,p)=>(t.openBlock(),t.createElementBlock("div",d1,[t.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:l},[t.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=t.createTextVNode()),t.createVNode(s1,{"scroll-top":r.scrollTop,"client-height":r.clientHeight,"scroll-height":r.scrollHeight,onWheel:p[0]||(p[0]=t.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":s},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=t.createTextVNode()),t.createVNode(c1,{"scroll-left":r.scrollLeft,"client-width":r.clientWidth,"scroll-width":r.scrollWidth,onWheel:p[1]||(p[1]=t.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),g1="add.svg",p1="box.svg",f1="calendar.svg",h1="checkmark.svg",m1="clipboard.svg",y1="close.svg",b1="copy.svg",v1="download.svg",w1="duplicate.svg",x1="edit.svg",_1="error.svg",k1="filter.svg",C1="help.svg",S1="info.svg",T1="link.svg",E1="loading.svg",N1="lock.svg",B1="maximize.svg",V1="minimize.svg",M1="minus.svg",z1="more.svg",A1="open.svg",O1="pause.svg",L1="play.svg",I1="renew.svg",D1="restart.svg",R1="reverse.svg",P1="settings.svg",j1="sort.svg",F1="stop.svg",$1="success.svg",Z1="time.svg",U1="tune.svg",H1="warning.svg",W1="zip.svg",q1={add:g1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",box:p1,calendar:f1,"caret-down":"caret-down.svg","caret-left":"caret-left.svg","caret-right":"caret-right.svg","caret-up":"caret-up.svg","cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:h1,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:m1,close:y1,copy:b1,"data-dimentions":"data-dimentions.svg","delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",download:v1,"drag-dots":"drag-dots.svg",duplicate:w1,edit:x1,error:_1,export:"export.svg","filter-on":"filter-on.svg",filter:k1,"help-outline":"help-outline.svg",help:C1,"info-outline":"info-outline.svg",info:S1,"jump-link":"jump-link.svg",link:T1,loading:E1,lock:N1,maximize:B1,minimize:V1,minus:M1,more:z1,open:A1,"paper-clip":"paper-clip.svg",pause:O1,play:L1,renew:I1,restart:D1,reverse:R1,settings:P1,sort:j1,stop:F1,success:$1,time:Z1,tune:U1,warning:H1,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:W1},Y1="add.svg",G1="annotate.svg",K1="annotation.svg",J1="area.svg",Q1="axes.svg",X1="bar.svg",ek="bindot.svg",tk="box.svg",rk="boxplot.svg",nk="bubble.svg",ak="calendar.svg",ok="canvas.svg",ik="checkbox.svg",lk="checkmark.svg",sk="clipboard.svg",ck="close.svg",dk="cluster.svg",uk="code.svg",gk="color.svg",pk="columns.svg",fk="container.svg",hk="cookie.svg",mk="copy.svg",yk="cpu.svg",bk="debug.svg",vk="dna.svg",wk="download.svg",xk="duplicate.svg",_k="edit.svg",kk="error.svg",Ck="filter.svg",Sk="generate.svg",Tk="graph.svg",Ek="heatmap.svg",Nk="help.svg",Bk="info.svg",Vk="jitter.svg",Mk="lasso.svg",zk="layers.svg",Ak="learn.svg",Ok="legend.svg",Lk="line.svg",Ik="link.svg",Dk="loading.svg",Rk="lock.svg",Pk="maximize.svg",jk="menu.svg",Fk="minimize.svg",$k="minus.svg",Zk="more.svg",Uk="pause.svg",Hk="pin.svg",Wk="play.svg",qk="product.svg",Yk="publications.svg",Gk="renew.svg",Kk="restart.svg",Jk="reverse.svg",Qk="search.svg",Xk="server.svg",eC="settings.svg",tC="sina.svg",rC="skatterplot.svg",nC="slice.svg",aC="sort.svg",oC="statistics.svg",iC="stop.svg",lC="success.svg",sC="table.svg",cC="template.svg",dC="terminal.svg",uC="time.svg",gC="tune.svg",pC="venn.svg",fC="violin.svg",hC="warning.svg",mC="wetlab.svg",yC="zip.svg",bC={"add-layer":"add-layer.svg",add:Y1,"align-center":"align-center.svg","align-left":"align-left.svg","align-right":"align-right.svg",annotate:G1,annotation:K1,area:J1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:Q1,"bar-cross":"bar-cross.svg","bar-error":"bar-error.svg","bar-stacked":"bar-stacked.svg","bar-trend":"bar-trend.svg",bar:X1,bindot:ek,box:tk,"boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:rk,bubble:nk,calendar:ak,canvas:ok,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg","checkbox-checked":"checkbox-checked.svg","checkbox-intermediate":"checkbox-intermediate.svg",checkbox:ik,checkmark:lk,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:sk,close:ck,"cloud-download":"cloud-download.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-upload":"cloud-upload.svg",cluster:dk,code:uk,"color-fill":"color-fill.svg","color-none":"color-none.svg","color-stroke":"color-stroke.svg",color:gk,columns:pk,"connected-points":"connected-points.svg",container:fk,cookie:hk,copy:mk,cpu:yk,"data-dimentions":"data-dimentions.svg",debug:bk,"delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg","dendrogram-X-line":"dendrogram-X-line.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-line":"dendrogram-Y-line.svg","dendrogram-Y":"dendrogram-Y.svg",dna:vk,download:wk,"drag-dots":"drag-dots.svg","drag-horizontal":"drag-horizontal.svg","drag-vertical":"drag-vertical.svg",duplicate:xk,edit:_k,"error-bar":"error-bar.svg",error:kk,"expand-left":"expand-left.svg","expand-right":"expand-right.svg",export:"export.svg","file-doc-add":"file-doc-add.svg","file-doc-download":"file-doc-download.svg","file-doc-import":"file-doc-import.svg","file-doc":"file-doc.svg","files-export":"files-export.svg","files-import":"files-import.svg","filter-on":"filter-on.svg",filter:Ck,"fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type-all":"frame-type-all.svg","frame-type-bottom":"frame-type-bottom.svg","frame-type-left-bottom":"frame-type-left-bottom.svg","frame-type-left":"frame-type-left.svg","frame-type-none":"frame-type-none.svg",generate:Sk,graph:Tk,heatmap:Ek,"help-outline":"help-outline.svg",help:Nk,"info-outline":"info-outline.svg",info:Bk,jitter:Vk,"jump-link":"jump-link.svg",lasso:Mk,layers:zk,learn:Ak,"legend-box-dot":"legend-box-dot.svg","legend-box":"legend-box.svg",legend:Ok,"line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:Lk,"linetype-dashed":"linetype-dashed.svg","linetype-dotdash":"linetype-dotdash.svg","linetype-dotted":"linetype-dotted.svg","linetype-longdash":"linetype-longdash.svg","linetype-solid":"linetype-solid.svg","linetype-twodash":"linetype-twodash.svg","link-disabled":"link-disabled.svg",link:Ik,loading:Dk,lock:Rk,maximize:Pk,menu:jk,minimize:Fk,minus:$k,more:Zk,"paper-clip":"paper-clip.svg",pause:Uk,pin:Hk,play:Wk,"position-bottom-annotation":"position-bottom-annotation.svg","position-bottom":"position-bottom.svg","position-left-annotation":"position-left-annotation.svg","position-left":"position-left.svg","position-right-annotation":"position-right-annotation.svg","position-right":"position-right.svg","position-top-annotation":"position-top-annotation.svg","position-top":"position-top.svg",product:qk,publications:Yk,"radio-button-checked":"radio-button-checked.svg","radio-button":"radio-button.svg",renew:Gk,restart:Kk,reverse:Jk,"rotation-0":"rotation-0.svg","rotation-45":"rotation-45.svg","rotation-90":"rotation-90.svg",search:Qk,"server-on":"server-on.svg",server:Xk,settings:eC,sina:tC,skatterplot:rC,slice:nC,"social-github":"social-github.svg","social-linkedin":"social-linkedin.svg","social-twitter-X":"social-twitter-X.svg","social-twitter-bird":"social-twitter-bird.svg","social-youtube":"social-youtube.svg","sort-list-down":"sort-list-down.svg","sort-list-up":"sort-list-up.svg",sort:aC,statistics:oC,stop:iC,"strip-plot":"strip-plot.svg",success:lC,"table-add":"table-add.svg","table-alias":"table-alias.svg","table-import":"table-import.svg",table:sC,template:cC,terminal:dC,"text-align-center":"text-align-center.svg","text-align-left":"text-align-left.svg","text-align-right":"text-align-right.svg","theme-dark":"theme-dark.svg","theme-light":"theme-light.svg",time:uC,tune:gC,venn:pC,"view-hide":"view-hide.svg","view-show":"view-show.svg","violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:fC,warning:hC,wetlab:mC,"windows-collapse":"windows-collapse.svg","windows-expand":"windows-expand.svg","x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:yC,"zoom-in":"zoom-in.svg","zoom-out":"zoom-out.svg"};function vC(){return{txtSec:{title:"Text",data:{"--txt-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Text on the colored elements"},"--txt-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary text layer"},"--txt-02":{light:[!0,!1],value:["#231842","#ADAEB8"],description:"Secondary text layer - large arrays of text"},"--txt-03":{light:[!0,!0],value:["#9D9EAE","#60616B"],description:"Tetritary text layer - hints and descriptions"},"--txt-mask":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Text mask in inputs, icons, etc."},"--txt-focus":{light:[!0,!0],value:["#07AD3E","#87E087"],description:"Colored text in active/focus elements"},"--txt-error":{light:[!0,!0],value:["#F1222F","#FF5C5C"],description:"Colored text in error elements"},"--txt-link":{light:[!0,!0],value:["#5F31CC","#9470FF"],description:"Colored text in links"}}},iconSec:{title:"Icon",data:{"--ic-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Icons on colored elements"},"--ic-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary elements"},"--ic-02":{light:[!1,!0],value:["#CFD1DB","#60616B"],description:"Secondary & tetritary elements"},"--ic-accent":{light:[!0,!1],value:["#07AD3E","#87E087"],description:"Focus/active elements"}}},borderSec:{title:"Border",data:{"--border-color-default":{light:[!0,!0],value:["#110529","#60616B"],description:"Main border for components"},"--border-color-hover":{light:[!0,!0],value:["#231842","#ADAEB8"],description:"Hover on main border"},"--border-color-focus":{light:[!1,!1],value:["#49CC49","#49CC49"],description:"Active border for components"},"--border-color-error":{light:[!1,!1],value:["#FF5C5C","#FF5C5C"],description:"Error border for components"},"--border-color-div-grey":{light:[!1,!0],value:["#E1E3EB","#232329"],description:"Divider lines low contrast"},"--border-color-div-bw":{light:[!1,!0],value:["#FFFFFF","#000000"],description:"Divider lines hight contrast"}}},btnSec:{title:"Button",data:{"--btn-accent-default":{light:[!0,!0],value:["#845CFF"," #5F31CC"],description:"Accent coloured button"},"--btn-accent-hover":{light:[!0,!0],value:["#9470FF"," #5F31CC"],description:"Hover on accent coloured button"},"--btn-accent-press":{light:[!0,!0],value:["#6F4DD6","#5F31CC"],description:"Pressed on accent coloured button"},"--btn-primary-default":{light:[!0,!0],value:["#110529","#5F31CC"],description:"Primary button"},"--btn-primary-hover":{light:[!0,!0],value:["#231842","#6D3DDB"],description:"Hover on primary button"},"--btn-primary-press":{light:[!0,!0],value:["#080214","#5328B8"],description:"Hover on primary button"},"--btn-sec-hover-white":{light:[!1,!0],value:["rgba(255, 255, 255, 0.50)","rgba(131, 131, 163, 0.16)"],description:"Hover background on transparent button"},"--btn-sec-hover-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.16)","rgba(131, 131, 163, 0.16)"],description:"Hover background on ghost button & icons"},"--btn-sec-press-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.24)","rgba(131, 131, 163, 0.24)"],description:"Hover background on ghost button & icons"},"--btn-active-select":{light:[!1,!0],value:["rgba(99, 224, 36, 0.24)","rgba(99, 224, 36, 0.24)"],description:"Fill on selected elements"},"--btn-switcher":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","#5E5E70"],description:"Gradient on active controll/switcher element"}}},disSec:{title:"Disable",data:{"--dis-00":{light:[!1,!0],value:["#FFFFFF","#65656B"],description:"Elements on dis-01, labels, texts, icons"},"--dis-01":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Buttons, borders, labels, texts, icons"}}},bgSec:{title:"Background",data:{"--bg-base-dark":{light:[!0,!0],value:["#110529","#0D0D0F"],description:"Default dark block background"},"--bg-base-light":{light:[!1,!0],value:["#F7F8FA","#0D0D0F"],description:"Default light block background"},"--bg-elevated-01":{light:[!1,!0],value:["#FFFFFF","#1B1B1F"],description:"Default block background"},"--bg-elevated-02":{light:[!1,!0],value:["#E1E3EB","#2D2D33"],description:"Secondary block background"}}},filledSec:{title:"Filled",data:{"--filled-V-BG":{light:[!1,!0],value:["#D0F0C0","rgba(66, 184, 66, 0.40)"],description:"Text background selection on V-read"},"--filled-D-BG":{light:[!1,!0],value:["#FFCECC","rgba(229, 83, 229, 0.40)"],description:"Text background selection on D-read"},"--filled-N-BG":{light:[!1,!0],value:["#FAF5AA","rgba(83, 82, 102, 0.40)"],description:"Text background selection on C/N-read"},"--filled-J-BG":{light:[!1,!0],value:["#DEDBFF","rgba(132, 92, 255, 0.40)"],description:"Text background selection on J-read"}}},notificationSec:{title:"Notification",data:{"--notification-neutral":{light:[!1,!0],value:["linear-gradient(90deg, #D6D9FF 0%, #FFF 100%)","linear-gradient(90deg, #4D4D8F 0%, #292933 100%)"],description:"Background on neutral blocks"},"--notification-success":{light:[!1,!0],value:["linear-gradient(90deg, #C9F0B6 0%, #FFF 100%)","linear-gradient(90deg, #305C3E 0%, #292933 100%)"],description:"Background on success blocks"},"--notification-warning":{light:[!1,!0],value:["linear-gradient(90deg, #FEE0A3 0%, #FFF 100%)","linear-gradient(90deg, #754F2D 0%, #292933 100%)"],description:"Background on warning blocks"},"--notification-error":{light:[!1,!0],value:["linear-gradient(90deg, #FFB8B8 0%, #FFF 100%)","linear-gradient(90deg, #8F3343 0%, #292933 100%)"],description:"Background on error blocks"}}},gradientSec:{title:"Gradient",data:{"--gradient-blue-green":{light:[!0,!0],value:["linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand dark gradient"},"--gradient-green-lime":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-violet":{light:[!1,!0],value:["linear-gradient(180deg, #ADB8FF 0%, #D6E9FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-clear":{light:[!1,!0],value:["linear-gradient(180deg, #85BEFF 0%, #CEF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-orange":{light:[!1,!0],value:["linear-gradient(180deg, #FFB766 0%, #FFEAA3 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-mint":{light:[!1,!0],value:["linear-gradient(180deg, #7DD1D1 0%, #C8FAE9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-lime":{light:[!1,!0],value:["linear-gradient(180deg, #BFE062 0%, #E4FFAD 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-rose":{light:[!1,!0],value:["linear-gradient(0deg, #FFDDD6 0%, #FF99C9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-red":{light:[!1,!0],value:["linear-gradient(0deg, #FFD5CC 0%, #FF9494 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-violet":{light:[!1,!0],value:["linear-gradient(180deg, #BCA3FF 0%, #E5E5FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"}}}}}const wC=["add","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","box","calendar","caret-down","caret-left","caret-right","caret-up","cell-type-num","cell-type-txt","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","clipboard-copied","clipboard","close","copy","data-dimentions","delete-bin","delete-circle","delete-clear","download","drag-dots","duplicate","edit","error","export","filter-on","filter","help-outline","help","info-outline","info","jump-link","link","loading","lock","maximize","minimize","minus","more","open","paper-clip","pause","play","renew","restart","reverse","settings","sort","stop","success","time","tune","warning","x-axis","y-axis","zip"],xC=["add-layer","add","align-center","align-left","align-right","annotate","annotation","area","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","axes","bar-cross","bar-error","bar-stacked","bar-trend","bar","bindot","box","boxplot-binned","boxplot-jitter","boxplot-notched","boxplot","bubble","calendar","canvas","cell-type-num","cell-type-txt","checkbox-checked","checkbox-intermediate","checkbox","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-sort","chevron-up","clipboard-copied","clipboard","close","cloud-download","cloud-offline","cloud-online","cloud-upload","cluster","code","color-fill","color-none","color-stroke","color","columns","connected-points","container","cookie","copy","cpu","data-dimentions","debug","delete-bin","delete-circle","delete-clear","dendrogram-X-line","dendrogram-X","dendrogram-Y-line","dendrogram-Y","dna","download","drag-dots","drag-horizontal","drag-vertical","duplicate","edit","error-bar","error","expand-left","expand-right","export","file-doc-add","file-doc-download","file-doc-import","file-doc","files-export","files-import","filter-on","filter","fire-tips","folder-parent","frame-type-all","frame-type-bottom","frame-type-left-bottom","frame-type-left","frame-type-none","generate","graph","heatmap","help-outline","help","info-outline","info","jitter","jump-link","lasso","layers","learn","legend-box-dot","legend-box","legend","line-binned","line-error","line-jitter","line","linetype-dashed","linetype-dotdash","linetype-dotted","linetype-longdash","linetype-solid","linetype-twodash","link-disabled","link","loading","lock","maximize","menu","minimize","minus","more","paper-clip","pause","pin","play","position-bottom-annotation","position-bottom","position-left-annotation","position-left","position-right-annotation","position-right","position-top-annotation","position-top","product","publications","radio-button-checked","radio-button","renew","restart","reverse","rotation-0","rotation-45","rotation-90","search","server-on","server","settings","sina","skatterplot","slice","social-github","social-linkedin","social-twitter-X","social-twitter-bird","social-youtube","sort-list-down","sort-list-up","sort","statistics","stop","strip-plot","success","table-add","table-alias","table-import","table","template","terminal","text-align-center","text-align-left","text-align-right","theme-dark","theme-light","time","tune","venn","view-hide","view-show","violin-binned","violin-jitter","violin","warning","wetlab","windows-collapse","windows-expand","x-axis","y-axis","zip","zoom-in","zoom-out"],_C={allCssVariables:vC(),icons16:q1,icons24:bC},kC={class:"block__not-found"},CC=t.defineComponent({__name:"NotFound",setup(a){const r=Ll().useApp(),i=()=>{r.updateNavigationState(l=>{l.href="/"})};return(l,s)=>(t.openBlock(),t.createElementBlock("div",kC,[t.createElementVNode("h1",null,"Not found route: "+t.toDisplayString(t.unref(r).snapshot.navigationState.href),1),t.createVNode(t.unref(Yl),{onClick:t.withModifiers(i,["stop"])},{default:t.withCtx(()=>s[0]||(s[0]=[t.createTextVNode("Return to main page")])),_:1})]))}}),ps=(a,e)=>{const r=a.__vccOpts||a;for(const[i,l]of e)r[i]=l;return r},SC={},TC={class:"block__loader-page"};function EC(a,e){return t.openBlock(),t.createElementBlock("div",TC,e[0]||(e[0]=[t.createElementVNode("div",{class:"loader-container"},[t.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const NC=ps(SC,[["render",EC]]),BC={class:"pl-app-notification-alert"},VC={class:"pl-app-notification-alert__content"},MC={class:"pl-app-notification-alert__title"},zC={class:"pl-app-notification-alert__error-description"},AC=t.defineComponent({__name:"PlAppErrorNotificationAlert",props:{errors:{}},setup(a){const e=a,r=t.ref(!1),i=t.ref(!0),l=t.computed(()=>Object.entries(e.errors).filter(u=>!!u[1]));function s(){r.value=!0}function d(u){navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(u))}return t.watch(()=>e.errors,u=>{i.value=Object.values(u).some(p=>!!p)},{immediate:!0,deep:!0}),(u,p)=>(t.openBlock(),t.createElementBlock("div",BC,[t.createVNode(t.unref(os),{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=f=>r.value=f),width:"50%",style:{"max-height":"100vh"}},{title:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" Errors ")])),default:t.withCtx(()=>[t.createElementVNode("div",VC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,f=>{var m;return t.openBlock(),t.createElementBlock("div",{key:f[0],class:"pl-app-notification-alert__item"},[t.createElementVNode("div",MC,t.toDisplayString(f[0]),1),t.createElementVNode("div",zC,[t.createElementVNode("code",null,t.toDisplayString((m=f[1])==null?void 0:m.message),1),t.createVNode(t.unref(Eu),{class:"pl-app-notification-alert__copy-icon",onCopyData:_=>d(f[1])},null,8,["onCopyData"])])])}),128))])]),_:1},8,["modelValue"]),t.createVNode(t.unref(Tu),{modelValue:i.value,"onUpdate:modelValue":p[1]||(p[1]=f=>i.value=f),type:"error",closable:""},{actions:t.withCtx(()=>[t.createVNode(t.unref(ql),{icon:"arrow-right",onClick:s},{default:t.withCtx(()=>p[3]||(p[3]=[t.createTextVNode("See errors")])),_:1}),t.createVNode(t.unref(Kd))]),default:t.withCtx(()=>[p[4]||(p[4]=t.createTextVNode(" Some outputs have errors. "))]),_:1},8,["modelValue"])]))}}),OC={class:"block block__layout"},LC={key:0},IC=t.defineComponent({__name:"BlockLayout",setup(a){const e=Ll(),r=p=>{try{return new URL(p,"http://dummy").pathname}catch{console.error("Invalid href",p);return}},i=t.computed(()=>e.loaded?e.useApp().href:void 0),l=t.computed(()=>{if(e.loaded){const p=e.useApp(),f=r(p.snapshot.navigationState.href);return f?p.getRoute(f):void 0}}),s=t.computed(()=>e.loaded?e.useApp():void 0),d=t.computed(()=>s.value?s.value.model.outputErrors:{}),u=t.computed(()=>{var p;return((p=s.value)==null?void 0:p.showErrorsNotification)??!0});return(p,f)=>(t.openBlock(),t.createElementBlock("div",OC,[t.unref(e).error?(t.openBlock(),t.createElementBlock("div",LC,t.toDisplayString(t.unref(e).error),1)):t.unref(e).loaded?l.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{key:i.value})):(t.openBlock(),t.createBlock(CC,{key:3})):(t.openBlock(),t.createBlock(NC,{key:1},{default:t.withCtx(()=>f[0]||(f[0]=[t.createTextVNode("Loading...")])),_:1})),t.unref(e).loaded&&u.value?(t.openBlock(),t.createBlock(t.unref(AC),{key:4,errors:d.value},null,8,["errors"])):t.createCommentVNode("",!0)]))}});var bi={exports:{}};/**
|
|
77
|
+
)`}function s(){const u=t.value;if(!u)return;const p=[o(u),i(u)].filter(h=>h!==null);u.style.setProperty("-webkit-mask-image",p.join(",")),u.style.setProperty("mask-image",p.join(",")),p.length>1&&(u.style.setProperty("-webkit-mask-composite","source-in"),u.style.setProperty("mask-composite","source-in"))}const d=as(s);n.onMounted(s),et(window,"scroll",d,!0),et(window,"resize",d,!0)}function pp(t,e){Iu(()=>{ot(n.unref(t),r=>{Fu(r,()=>e(r))})}),n.onUnmounted(()=>{ot(n.unref(t),r=>{Ru(r)})})}const pn={item:"sortable__item",animate:"sortable__animate"},_a=t=>t.getBoundingClientRect().y,gp=t=>{const{y:e,height:r}=t.getBoundingClientRect();return e+Math.ceil(r/2)},ik=t=>{const{y:e,height:r}=t.getBoundingClientRect();return e+r};function lk(t,e){const r={item:void 0,options(){var k;return[...((k=t.value)==null?void 0:k.children)??[]]}},o=n.computed(()=>r.options()),i=e.shakeBuffer??10,s=e.reorderDelay??100;function d(k){const D=e.handle?this.querySelector(e.handle):null;D&&!D.contains(k.target)||(this.classList.remove(pn.animate),this.classList.add(pn.item),r.item={el:this,y:k.y,dy:0,orderChanged:!1})}function u(k){const D=r.options();return D.slice(0,D.indexOf(k))}function p(k){const D=r.options();return D.slice(D.indexOf(k)+1)}function h(k,D){const E=r.options().filter(w=>w!==D),A=E.indexOf(k);return E.splice(A,0,D),E}function f(k,D){const E=r.options().filter(w=>w!==D),A=E.indexOf(k);return E.splice(A+1,0,D),E}function y(k,D){k.dy=D-k.y,k.el.style.setProperty("transform",`translateY(${k.dy}px)`)}function S(k){var D;if(!r.item)return;const{el:E}=r.item;if(!E.isConnected){r.item=void 0;return}const A=k.map(K=>_a(K)),w=_a(E);(D=t.value)==null||D.replaceChildren(...k);const L=_a(E),R=k.map(K=>_a(K)),H=[];for(let K=0;K<R.length;K++){const U=k[K];if(U===r.item.el)continue;const P=R[K],W=A[K]-P;U.style.transform=`translateY(${W}px)`,H.push(U)}const G=L-w;r.item.y=r.item.y+G,r.item.dy=r.item.dy-G,r.item.orderChanged=!0,r.item.el.style.setProperty("transform",`translateY(${r.item.dy}px)`),H.forEach(K=>K.classList.remove(pn.animate)),requestAnimationFrame(function(){H.forEach(K=>{K.classList.add(pn.animate),K.style.transform="",K.addEventListener("transitionend",()=>{K.classList.remove(pn.animate)})})})}et(window,"mousemove",k=>{if(!r.item)return;const{el:D}=r.item;y(r.item,k.y);const E=_a(r.item.el),A=ik(r.item.el),w=u(D),L=p(D);w.forEach(R=>{const H=gp(R);E+i<H&&S(h(R,D))}),L.forEach(R=>{const H=gp(R);A-i>H&&S(f(R,D))})}),et(window,"mouseup",()=>{if(!r.item)return;const{el:k,orderChanged:D}=r.item;k.classList.add(pn.animate),k.style.removeProperty("transform"),k.addEventListener("transitionend",()=>{k.classList.remove(pn.animate,pn.item)}),setTimeout(()=>{if(!D)return;const E=r.options().map(w=>Number(w.getAttribute("data-index"))),A=t.value;if(A){for(const w of r.options())A.removeChild(w);o.value.forEach(w=>{A.appendChild(w)})}e.onChange(E)},s),r.item=void 0}),n.watchEffect(()=>{o.value.forEach((k,D)=>{k.removeEventListener("mousedown",d),k.addEventListener("mousedown",d),k.setAttribute("data-index",String(D))})})}function sk(t,e){let r;n.onMounted(()=>{r=setInterval(t,e)}),n.onUnmounted(()=>clearInterval(r))}function ck(t,e,r){const o=n.reactive({data:Xl.deepClone(e(t.value)),changed:!1});return n.watch(()=>o.data,i=>{o.changed?r(Xl.deepClone(i)):o.changed=!0},{deep:!0}),n.watch(t,i=>{Object.assign(o,{data:Xl.deepClone(e(i)),changed:!1})},{deep:!0,immediate:!0}),o}function dk(t){const e=n.reactive({isLoading:!1,result:void 0,error:void 0,async run(...r){this.isLoading=!0,this.error=void 0;try{this.result=await t(...r)}catch(o){this.error=o}finally{this.isLoading=!1}},debounce(r,o=1e3){return mu(()=>{const i=r();this.run(...i).catch(console.error)},o)}});return e.run=e.run.bind(e),e}function uk(t,e){function r(d,u){const p=n.unref(t);if(!p)return;const h=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",h),e(u)}function o(d){const u=p=>r(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=n.unref(t);document.removeEventListener("mousemove",u),p&&(p.style.setProperty("transition","all .3s ease-in-out"),p.style.removeProperty("transform"),p.addEventListener("transitionend",()=>{p.style.removeProperty("transition")}))},{once:!0})}function i(){var d;(d=n.unref(t))==null||d.addEventListener("mousedown",o)}function s(){var d;(d=n.unref(t))==null||d.removeEventListener("mousedown",o)}n.onMounted(i),n.onUnmounted(s)}const pk={class:"ui-slider__wrapper"},gk={class:"ui-slider__label-section"},hk={key:0,class:"text-s"},fk={class:"ui-slider__base"},mk={class:"ui-slider__container"},vk={class:"ui-slider__container ui-slider__container-thumb"},yk=["data-percent"],bk=["data-percent"],wk=["data-percent"],xk={key:0,class:"ui-slider__error"},Ck=n.defineComponent({__name:"SliderRangeTriple",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:"%"},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.useSlots(),o=e,i=t,s=n.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=n.ref(),u=n.ref(),p=n.ref(),h=n.ref(),f=n.computed(()=>i.max-i.min),y=n.computed(()=>i),S=Ns(y),k=n.computed(()=>mt((i.modelValue[0]??0)+s.deltaValue1,i.min,i.max)),D=n.computed(()=>mt((i.modelValue[1]??0)+s.deltaValue2,i.min,i.max)),E=n.computed(()=>mt((i.modelValue[2]??0)+s.deltaValue3,i.min,i.max)),A=n.computed(()=>{const O=i.modelValue;if(!(Array.isArray(O)&&O.length===3&&O.every(ye=>Number.isFinite(ye))))return"Expected model [number, number, number]";const X=[];return[...i.modelValue].forEach(ye=>{ye>i.max&&X.push(`Max model value must be lower than max props ${i.max}.`),ye<i.min&&X.push("Min model value must be greater than max props.")}),X.length>0?X.join(" "):i.error}),w=n.computed(()=>(k.value-i.min)/f.value),L=n.computed(()=>(D.value-i.min)/f.value),R=n.computed(()=>(E.value-i.min)/f.value),H=n.computed(()=>F()),G=n.computed(()=>({right:H.value[0]+"%",left:100-H.value[2]+"%"})),K=n.computed(()=>({right:Math.ceil((1-w.value)*100)+"%"})),U=n.computed(()=>({right:Math.ceil((1-L.value)*100)+"%"})),P=n.computed(()=>({right:Math.ceil((1-R.value)*100)+"%"}));nn(u,O=>{var X;ot((X=n.unref(d))==null?void 0:X.getBoundingClientRect(),ye=>{const{dx:_e}=O;s.deltaValue1=_e/ye.width*f.value,u.value&&W(u.value,i.modelValue[0],s.deltaValue1),O.stop&&(ue([Y(k.value),Y(D.value),Y(E.value)]),s.deltaValue1=0)})}),nn(p,O=>{var X;ot((X=n.unref(d))==null?void 0:X.getBoundingClientRect(),ye=>{const{dx:_e}=O;s.deltaValue2=_e/ye.width*f.value,p.value&&W(p.value,i.modelValue[1],s.deltaValue2),O.stop&&(ue([Y(k.value),Y(D.value),Y(E.value)]),s.deltaValue2=0)})}),nn(h,O=>{var X;ot((X=n.unref(d))==null?void 0:X.getBoundingClientRect(),ye=>{const{dx:_e}=O;s.deltaValue3=_e/ye.width*f.value,h.value&&W(h.value,i.modelValue[2],s.deltaValue3),O.stop&&(ue([Y(k.value),Y(D.value),Y(E.value)]),s.deltaValue3=0)})});function W(O,X,ye){const _e=Y(mt((X??0)+ye,i.min,i.max));O.dataset.percent=`${_e}${i.measure}`,j()}function F(){const O=Math.ceil((1-w.value)*100),X=Math.ceil((1-L.value)*100),ye=Math.ceil((1-R.value)*100);return[O,X,ye].sort((_e,zt)=>_e-zt)}function Y(O){const X=mt(O,i.min,i.max);return Math.round((X+Number.EPSILON)*(1/i.step))/(1/i.step)}function ue(O){o("update:modelValue",O)}function j(){const O=Number(K.value.right.substring(0,K.value.right.length-1)),X=Number(U.value.right.substring(0,U.value.right.length-1)),ye=Number(P.value.right.substring(0,P.value.right.length-1)),_e=[{r:O,th:u},{r:X,th:p},{r:ye,th:h}].sort((zt,Ht)=>zt.r-Ht.r);_e[0].th.value&&(_e[0].th.value.dataset.hint="high"),_e[1].th.value&&(_e[1].th.value.dataset.hint="mid"),_e[2].th.value&&(_e[2].th.value.dataset.hint="low")}function B(O,X){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(O.code)&&O.preventDefault();const ye=O.code==="ArrowUp"||O.code==="ArrowRight"?i.step*1:O.code==="ArrowDown"||O.code==="ArrowLeft"?i.step*-1:0,_e=[...i.modelValue];_e[X]=mt(_e[X]+ye,i.min,i.max),ue(_e),j()}return n.onMounted(()=>{j()}),(O,X)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([i.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[n.createElementVNode("div",{class:n.normalizeClass([`ui-slider__mode-${i.mode}`,"ui-slider"])},[n.createElementVNode("div",pk,[n.createElementVNode("div",gk,[O.label?(n.openBlock(),n.createElementBlock("label",hk,[n.createElementVNode("span",null,n.toDisplayString(O.label),1),X[3]||(X[3]=n.createTextVNode()),n.unref(r).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(O.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),X[11]||(X[11]=n.createTextVNode()),n.createElementVNode("div",fk,[n.createElementVNode("div",mk,[n.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[n.createElementVNode("div",{class:"ui-slider__progress",style:n.normalizeStyle(G.value)},null,4)],512)]),X[10]||(X[10]=n.createTextVNode()),n.createElementVNode("div",vk,[i.breakpoints?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(S),(ye,_e)=>(n.openBlock(),n.createElementBlock("div",{key:_e,style:n.normalizeStyle({right:`${ye}%`}),class:"ui-slider__thumb-step"},null,4))),128)):n.createCommentVNode("",!0),X[7]||(X[7]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:n.normalizeStyle(K.value),"data-percent":i.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:X[0]||(X[0]=ye=>B(ye,0))},X[4]||(X[4]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,yk),X[8]||(X[8]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:n.normalizeStyle(U.value),"data-percent":i.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:X[1]||(X[1]=ye=>B(ye,1))},X[5]||(X[5]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,bk),X[9]||(X[9]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef3",ref:h,style:n.normalizeStyle(P.value),"data-percent":i.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:X[2]||(X[2]=ye=>B(ye,2))},X[6]||(X[6]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,wk)])])]),X[12]||(X[12]=n.createTextVNode()),X[13]||(X[13]=n.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),X[14]||(X[14]=n.createTextVNode()),A.value?(n.openBlock(),n.createElementBlock("div",xk,n.toDisplayString(A.value),1)):n.createCommentVNode("",!0)],2))}}),_k={class:"ui-input-range__separator"},kk=n.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(t,{emit:e}){const r=t,o=e,i=n.reactive({left:r.modelValue[0],right:r.modelValue[1]}),s=n.ref(!1),d=n.computed(()=>(s.value,"ui-input-range-focused")),u=n.computed({get(){return{left:Math.min(...r.modelValue),right:Math.max(...r.modelValue)}},set(){}});n.watch(()=>u.value,f=>(i.left=f.left)&&(i.right=f.right));function p(){o("update:modelValue",[+i.left,+i.right]),o("change",[+i.left,+i.right])}function h(f,y){const S=y.target.value;/^[0-9]{0,2}$/.test(S)?f?i.left=+S:i.right=+S:f?i.left=+S.slice(0,S.length-1):i.right=+S.slice(0,S.length-1)}return(f,y)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({class:[d.value,"ui-input-range"]},f.$attrs),[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=S=>u.value.left=S),class:"text-s",type:"text",onChange:p,onFocus:y[1]||(y[1]=S=>s.value=!0),onFocusout:y[2]||(y[2]=S=>s.value=!1),onInput:y[3]||(y[3]=S=>h(!0,S))},null,544),[[n.vModelText,u.value.left]]),y[8]||(y[8]=n.createTextVNode()),n.createElementVNode("div",_k,n.toDisplayString(r.separator),1),y[9]||(y[9]=n.createTextVNode()),n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":y[4]||(y[4]=S=>u.value.right=S),class:"text-s",type:"text",onChange:p,onFocus:y[5]||(y[5]=S=>s.value=!0),onFocusout:y[6]||(y[6]=S=>s.value=!1),onInput:y[7]||(y[7]=S=>h(!1,S))},null,544),[[n.vModelText,u.value.right]])],16))}}),Sk={class:"ui-slider__wrapper"},Tk={class:"ui-slider__label-section"},Ek={key:0,class:"text-s"},Nk={key:1,class:"ui-slider__value-static text-s"},Ak={class:"ui-slider__base"},Mk={class:"ui-slider__container"},Bk={class:"ui-slider__container ui-slider__container-thumb"},Pk={class:"ui-slider__input-wrapper d-flex"},Dk={key:0,class:"ui-slider__error"},Vk=n.defineComponent({__name:"SliderRange",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const r=n.useSlots(),o=e,i=t,s=n.reactive({deltaValue1:0,deltaValue2:0}),d=n.ref(),u=n.ref(),p=n.ref(),h=n.ref(i.modelValue),f=n.ref(i.modelValue[0]),y=n.ref(i.modelValue[1]),S=n.computed(()=>i),k=Ns(S),D=n.computed(()=>[f.value,y.value].sort((j,B)=>j-B).join("-")),E=n.computed(()=>i.max-i.min),A=n.computed(()=>mt((i.modelValue[0]??0)+s.deltaValue1,i.min,i.max)),w=n.computed(()=>mt((i.modelValue[1]??0)+s.deltaValue2,i.min,i.max)),L=n.computed(()=>{const j=i.modelValue;return Array.isArray(j)&&j.length===2&&j.every(B=>Number.isFinite(B))?i.error:"Expected model [number, number]"}),R=n.computed(()=>(A.value-i.min)/E.value),H=n.computed(()=>(w.value-i.min)/E.value),G=n.computed(()=>W()),K=n.computed(()=>({right:G.value[0]+"%",left:100-G.value[1]+"%"})),U=n.computed(()=>({right:Math.ceil((1-R.value)*100)+"%"})),P=n.computed(()=>({right:Math.ceil((1-H.value)*100)+"%"}));n.watch(()=>i.modelValue,j=>{h.value=j,f.value=+j[0],y.value=+j[1]},{immediate:!0}),nn(u,j=>{var B;ot((B=n.unref(d))==null?void 0:B.getBoundingClientRect(),O=>{const{dx:X}=j;s.deltaValue1=X/O.width*E.value,f.value=F(mt((i.modelValue[0]??0)+s.deltaValue1,i.min,i.max)),h.value=[f.value,y.value].sort((ye,_e)=>ye-_e),j.stop&&(Y([F(A.value),F(w.value)]),s.deltaValue1=0)})}),nn(p,j=>{var B;ot((B=n.unref(d))==null?void 0:B.getBoundingClientRect(),O=>{const{dx:X}=j;s.deltaValue2=X/O.width*E.value,y.value=F(mt((i.modelValue[1]??0)+s.deltaValue2,i.min,i.max)),h.value=[f.value,y.value].sort((ye,_e)=>ye-_e),j.stop&&(Y([F(A.value),F(w.value)]),s.deltaValue2=0)})});function W(){const j=Math.ceil((1-R.value)*100),B=Math.ceil((1-H.value)*100);return[j,B].sort((O,X)=>O-X)}function F(j){const B=mt(j,i.min,i.max);return Math.round((B+Number.EPSILON)*(1/i.step))/(1/i.step)}function Y(j){o("update:modelValue",j)}function ue(j,B){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(j.code)&&j.preventDefault();const O=j.code==="ArrowUp"||j.code==="ArrowRight"?i.step*1:j.code==="ArrowDown"||j.code==="ArrowLeft"?i.step*-1:0,X=[...i.modelValue];X[B]=mt(X[B]+O,i.min,i.max),Y(X)}return(j,B)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([i.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[n.createElementVNode("div",{class:n.normalizeClass([`ui-slider__mode-${i.mode}`,"ui-slider"])},[n.createElementVNode("div",Sk,[n.createElementVNode("div",Tk,[j.label?(n.openBlock(),n.createElementBlock("label",Ek,[n.createElementVNode("span",null,n.toDisplayString(j.label),1),B[3]||(B[3]=n.createTextVNode()),n.unref(r).tooltip?(n.openBlock(),n.createBlock(n.unref(Vt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(j.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),B[4]||(B[4]=n.createTextVNode()),i.mode==="text"?(n.openBlock(),n.createElementBlock("div",Nk,n.toDisplayString(D.value),1)):n.createCommentVNode("",!0)]),B[10]||(B[10]=n.createTextVNode()),n.createElementVNode("div",Ak,[n.createElementVNode("div",Mk,[n.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[n.createElementVNode("div",{class:"ui-slider__progress",style:n.normalizeStyle(K.value)},null,4)],512)]),B[9]||(B[9]=n.createTextVNode()),n.createElementVNode("div",Bk,[i.breakpoints?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(k),(O,X)=>(n.openBlock(),n.createElementBlock("div",{key:X,style:n.normalizeStyle({right:`${O}%`}),class:"ui-slider__thumb-step"},null,4))),128)):n.createCommentVNode("",!0),B[7]||(B[7]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:n.normalizeStyle(U.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:B[0]||(B[0]=O=>ue(O,0))},B[5]||(B[5]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),B[8]||(B[8]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:n.normalizeStyle(P.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:B[1]||(B[1]=O=>ue(O,1))},B[6]||(B[6]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),B[11]||(B[11]=n.createTextVNode()),n.createElementVNode("div",Pk,[i.mode==="input"?(n.openBlock(),n.createBlock(kk,{key:0,modelValue:h.value,"onUpdate:modelValue":B[2]||(B[2]=O=>h.value=O),class:"ui-focused-border",onChange:Y},null,8,["modelValue"])):n.createCommentVNode("",!0)])],2),B[12]||(B[12]=n.createTextVNode()),L.value?(n.openBlock(),n.createElementBlock("div",Dk,n.toDisplayString(L.value),1)):n.createCommentVNode("",!0)],2))}}),Lk=n.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(t,{emit:e}){const r=e,o=t,i=n.ref(),s=n.computed(()=>o.clientHeight/(o.scrollHeight||1)),d=n.computed(()=>s.value<1),u=n.computed(()=>{const p=n.unref(s);return{top:o.scrollTop*p+"px",height:Math.floor(o.clientHeight*p)+"px"}});return et(i,"pointerdown",p=>{const h={clientY:p.clientY},f=fs(document,"mousemove",y=>{const S=(y.clientY-h.clientY)/s.value;r("update:scrollTop",o.scrollTop+S),h.clientY=y.clientY});["mouseup","pointercancel"].forEach(y=>{document.addEventListener(y,f,{once:!0})})}),(p,h)=>d.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:i,class:"v-scroll"},[n.createElementVNode("div",{class:"v-scroll__scrollbar",style:n.normalizeStyle(u.value)},null,4)],512)):n.createCommentVNode("",!0)}}),Ik=n.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(t,{emit:e}){const r=e,o=t,i=n.ref(),s=n.computed(()=>o.clientWidth/(o.scrollWidth||1)),d=n.computed(()=>s.value<1),u=n.computed(()=>{const p=n.unref(s);return{left:o.scrollLeft*p+"px",width:Math.floor(o.clientWidth*p)+"px"}});return et(i,"pointerdown",p=>{const h={clientX:p.clientX},f=fs(document,"mousemove",y=>{const S=(y.clientX-h.clientX)/s.value;r("update:scrollLeft",o.scrollLeft+S),h.clientX=y.clientX});["mouseup","pointercancel"].forEach(y=>{document.addEventListener(y,f,{once:!0})})}),(p,h)=>d.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:i,class:"h-scroll"},[n.createElementVNode("div",{class:"h-scroll__scrollbar",style:n.normalizeStyle(u.value)},null,4)],512)):n.createCommentVNode("",!0)}}),Fk={class:"ui-scrollable"},Rk=n.defineComponent({__name:"Scrollable",setup(t){const e=n.ref(),r=n.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function o(u){x0(r,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const i=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,o(p)};function s(u){ot(n.unref(e),p=>{p.scrollTop=u,o(p)})}function d(u){ot(n.unref(e),p=>{p.scrollLeft=u,o(p)})}return pp(e,u=>{ot(u,p=>o(p))}),n.onMounted(()=>{ot(n.unref(e),u=>{o(u),u.addEventListener("wheel",i)})}),n.onUnmounted(()=>{ot(n.unref(e),u=>u.removeEventListener("wheel",i))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",Fk,[n.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:i},[n.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=n.createTextVNode()),n.createVNode(Lk,{"scroll-top":r.scrollTop,"client-height":r.clientHeight,"scroll-height":r.scrollHeight,onWheel:p[0]||(p[0]=n.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":s},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=n.createTextVNode()),n.createVNode(Ik,{"scroll-left":r.scrollLeft,"client-width":r.clientWidth,"scroll-width":r.scrollWidth,onWheel:p[1]||(p[1]=n.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),Ok="add.svg",zk="box.svg",Gk="calendar.svg",jk="checkmark.svg",Uk="clipboard.svg",Zk="close.svg",$k="copy.svg",Wk="download.svg",Hk="duplicate.svg",qk="edit.svg",Kk="error.svg",Yk="filter.svg",Jk="help.svg",Qk="info.svg",Xk="link.svg",eS="loading.svg",tS="lock.svg",rS="maximize.svg",nS="minimize.svg",oS="minus.svg",aS="more.svg",iS="open.svg",lS="pause.svg",sS="play.svg",cS="renew.svg",dS="restart.svg",uS="reverse.svg",pS="settings.svg",gS="sort.svg",hS="stop.svg",fS="success.svg",mS="time.svg",vS="tune.svg",yS="warning.svg",bS="zip.svg",wS={add:Ok,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",box:zk,calendar:Gk,"caret-down":"caret-down.svg","caret-left":"caret-left.svg","caret-right":"caret-right.svg","caret-up":"caret-up.svg","cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:jk,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:Uk,close:Zk,copy:$k,"data-dimentions":"data-dimentions.svg","delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",download:Wk,"drag-dots":"drag-dots.svg",duplicate:Hk,edit:qk,error:Kk,export:"export.svg","filter-on":"filter-on.svg",filter:Yk,"help-outline":"help-outline.svg",help:Jk,"info-outline":"info-outline.svg",info:Qk,"jump-link":"jump-link.svg",link:Xk,loading:eS,lock:tS,maximize:rS,minimize:nS,minus:oS,more:aS,open:iS,"paper-clip":"paper-clip.svg",pause:lS,play:sS,renew:cS,restart:dS,reverse:uS,settings:pS,sort:gS,stop:hS,success:fS,time:mS,tune:vS,warning:yS,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:bS},xS="add.svg",CS="annotate.svg",_S="annotation.svg",kS="area.svg",SS="axes.svg",TS="bar.svg",ES="bindot.svg",NS="box.svg",AS="boxplot.svg",MS="bubble.svg",BS="calendar.svg",PS="canvas.svg",DS="checkbox.svg",VS="checkmark.svg",LS="clipboard.svg",IS="close.svg",FS="cluster.svg",RS="code.svg",OS="color.svg",zS="columns.svg",GS="container.svg",jS="cookie.svg",US="copy.svg",ZS="cpu.svg",$S="debug.svg",WS="dna.svg",HS="download.svg",qS="duplicate.svg",KS="edit.svg",YS="error.svg",JS="filter.svg",QS="generate.svg",XS="graph.svg",eT="heatmap.svg",tT="help.svg",rT="info.svg",nT="jitter.svg",oT="lasso.svg",aT="layers.svg",iT="learn.svg",lT="legend.svg",sT="line.svg",cT="link.svg",dT="loading.svg",uT="lock.svg",pT="maximize.svg",gT="menu.svg",hT="minimize.svg",fT="minus.svg",mT="more.svg",vT="pause.svg",yT="pin.svg",bT="play.svg",wT="product.svg",xT="publications.svg",CT="renew.svg",_T="restart.svg",kT="reverse.svg",ST="search.svg",TT="server.svg",ET="settings.svg",NT="sina.svg",AT="skatterplot.svg",MT="slice.svg",BT="sort.svg",PT="statistics.svg",DT="stop.svg",VT="success.svg",LT="table.svg",IT="template.svg",FT="terminal.svg",RT="time.svg",OT="tune.svg",zT="venn.svg",GT="violin.svg",jT="warning.svg",UT="wetlab.svg",ZT="zip.svg",$T={"add-layer":"add-layer.svg",add:xS,"align-center":"align-center.svg","align-left":"align-left.svg","align-right":"align-right.svg",annotate:CS,annotation:_S,area:kS,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:SS,"bar-cross":"bar-cross.svg","bar-error":"bar-error.svg","bar-stacked":"bar-stacked.svg","bar-trend":"bar-trend.svg",bar:TS,bindot:ES,box:NS,"boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:AS,bubble:MS,calendar:BS,canvas:PS,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg","checkbox-checked":"checkbox-checked.svg","checkbox-intermediate":"checkbox-intermediate.svg",checkbox:DS,checkmark:VS,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:LS,close:IS,"cloud-download":"cloud-download.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-upload":"cloud-upload.svg",cluster:FS,code:RS,"color-fill":"color-fill.svg","color-none":"color-none.svg","color-stroke":"color-stroke.svg",color:OS,columns:zS,"connected-points":"connected-points.svg",container:GS,cookie:jS,copy:US,cpu:ZS,"data-dimentions":"data-dimentions.svg",debug:$S,"delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg","dendrogram-X-line":"dendrogram-X-line.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-line":"dendrogram-Y-line.svg","dendrogram-Y":"dendrogram-Y.svg",dna:WS,download:HS,"drag-dots":"drag-dots.svg","drag-horizontal":"drag-horizontal.svg","drag-vertical":"drag-vertical.svg",duplicate:qS,edit:KS,"error-bar":"error-bar.svg",error:YS,"expand-left":"expand-left.svg","expand-right":"expand-right.svg",export:"export.svg","file-doc-add":"file-doc-add.svg","file-doc-download":"file-doc-download.svg","file-doc-import":"file-doc-import.svg","file-doc":"file-doc.svg","files-export":"files-export.svg","files-import":"files-import.svg","filter-on":"filter-on.svg",filter:JS,"fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type-all":"frame-type-all.svg","frame-type-bottom":"frame-type-bottom.svg","frame-type-left-bottom":"frame-type-left-bottom.svg","frame-type-left":"frame-type-left.svg","frame-type-none":"frame-type-none.svg",generate:QS,graph:XS,heatmap:eT,"help-outline":"help-outline.svg",help:tT,"info-outline":"info-outline.svg",info:rT,jitter:nT,"jump-link":"jump-link.svg",lasso:oT,layers:aT,learn:iT,"legend-box-dot":"legend-box-dot.svg","legend-box":"legend-box.svg",legend:lT,"line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:sT,"linetype-dashed":"linetype-dashed.svg","linetype-dotdash":"linetype-dotdash.svg","linetype-dotted":"linetype-dotted.svg","linetype-longdash":"linetype-longdash.svg","linetype-solid":"linetype-solid.svg","linetype-twodash":"linetype-twodash.svg","link-disabled":"link-disabled.svg",link:cT,loading:dT,lock:uT,maximize:pT,menu:gT,minimize:hT,minus:fT,more:mT,"paper-clip":"paper-clip.svg",pause:vT,pin:yT,play:bT,"position-bottom-annotation":"position-bottom-annotation.svg","position-bottom":"position-bottom.svg","position-left-annotation":"position-left-annotation.svg","position-left":"position-left.svg","position-right-annotation":"position-right-annotation.svg","position-right":"position-right.svg","position-top-annotation":"position-top-annotation.svg","position-top":"position-top.svg",product:wT,publications:xT,"radio-button-checked":"radio-button-checked.svg","radio-button":"radio-button.svg",renew:CT,restart:_T,reverse:kT,"rotation-0":"rotation-0.svg","rotation-45":"rotation-45.svg","rotation-90":"rotation-90.svg",search:ST,"server-on":"server-on.svg",server:TT,settings:ET,sina:NT,skatterplot:AT,slice:MT,"social-github":"social-github.svg","social-linkedin":"social-linkedin.svg","social-twitter-X":"social-twitter-X.svg","social-twitter-bird":"social-twitter-bird.svg","social-youtube":"social-youtube.svg","sort-list-down":"sort-list-down.svg","sort-list-up":"sort-list-up.svg",sort:BT,statistics:PT,stop:DT,"strip-plot":"strip-plot.svg",success:VT,"table-add":"table-add.svg","table-alias":"table-alias.svg","table-import":"table-import.svg",table:LT,template:IT,terminal:FT,"text-align-center":"text-align-center.svg","text-align-left":"text-align-left.svg","text-align-right":"text-align-right.svg","theme-dark":"theme-dark.svg","theme-light":"theme-light.svg",time:RT,tune:OT,venn:zT,"view-hide":"view-hide.svg","view-show":"view-show.svg","violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:GT,warning:jT,wetlab:UT,"windows-collapse":"windows-collapse.svg","windows-expand":"windows-expand.svg","x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:ZT,"zoom-in":"zoom-in.svg","zoom-out":"zoom-out.svg"};function WT(){return{txtSec:{title:"Text",data:{"--txt-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Text on the colored elements"},"--txt-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary text layer"},"--txt-02":{light:[!0,!1],value:["#231842","#ADAEB8"],description:"Secondary text layer - large arrays of text"},"--txt-03":{light:[!0,!0],value:["#9D9EAE","#60616B"],description:"Tetritary text layer - hints and descriptions"},"--txt-mask":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Text mask in inputs, icons, etc."},"--txt-focus":{light:[!0,!0],value:["#07AD3E","#87E087"],description:"Colored text in active/focus elements"},"--txt-error":{light:[!0,!0],value:["#F1222F","#FF5C5C"],description:"Colored text in error elements"},"--txt-link":{light:[!0,!0],value:["#5F31CC","#9470FF"],description:"Colored text in links"}}},iconSec:{title:"Icon",data:{"--ic-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Icons on colored elements"},"--ic-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary elements"},"--ic-02":{light:[!1,!0],value:["#CFD1DB","#60616B"],description:"Secondary & tetritary elements"},"--ic-accent":{light:[!0,!1],value:["#07AD3E","#87E087"],description:"Focus/active elements"}}},borderSec:{title:"Border",data:{"--border-color-default":{light:[!0,!0],value:["#110529","#60616B"],description:"Main border for components"},"--border-color-hover":{light:[!0,!0],value:["#231842","#ADAEB8"],description:"Hover on main border"},"--border-color-focus":{light:[!1,!1],value:["#49CC49","#49CC49"],description:"Active border for components"},"--border-color-error":{light:[!1,!1],value:["#FF5C5C","#FF5C5C"],description:"Error border for components"},"--border-color-div-grey":{light:[!1,!0],value:["#E1E3EB","#232329"],description:"Divider lines low contrast"},"--border-color-div-bw":{light:[!1,!0],value:["#FFFFFF","#000000"],description:"Divider lines hight contrast"}}},btnSec:{title:"Button",data:{"--btn-accent-default":{light:[!0,!0],value:["#845CFF"," #5F31CC"],description:"Accent coloured button"},"--btn-accent-hover":{light:[!0,!0],value:["#9470FF"," #5F31CC"],description:"Hover on accent coloured button"},"--btn-accent-press":{light:[!0,!0],value:["#6F4DD6","#5F31CC"],description:"Pressed on accent coloured button"},"--btn-primary-default":{light:[!0,!0],value:["#110529","#5F31CC"],description:"Primary button"},"--btn-primary-hover":{light:[!0,!0],value:["#231842","#6D3DDB"],description:"Hover on primary button"},"--btn-primary-press":{light:[!0,!0],value:["#080214","#5328B8"],description:"Hover on primary button"},"--btn-sec-hover-white":{light:[!1,!0],value:["rgba(255, 255, 255, 0.50)","rgba(131, 131, 163, 0.16)"],description:"Hover background on transparent button"},"--btn-sec-hover-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.16)","rgba(131, 131, 163, 0.16)"],description:"Hover background on ghost button & icons"},"--btn-sec-press-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.24)","rgba(131, 131, 163, 0.24)"],description:"Hover background on ghost button & icons"},"--btn-active-select":{light:[!1,!0],value:["rgba(99, 224, 36, 0.24)","rgba(99, 224, 36, 0.24)"],description:"Fill on selected elements"},"--btn-switcher":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","#5E5E70"],description:"Gradient on active controll/switcher element"}}},disSec:{title:"Disable",data:{"--dis-00":{light:[!1,!0],value:["#FFFFFF","#65656B"],description:"Elements on dis-01, labels, texts, icons"},"--dis-01":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Buttons, borders, labels, texts, icons"}}},bgSec:{title:"Background",data:{"--bg-base-dark":{light:[!0,!0],value:["#110529","#0D0D0F"],description:"Default dark block background"},"--bg-base-light":{light:[!1,!0],value:["#F7F8FA","#0D0D0F"],description:"Default light block background"},"--bg-elevated-01":{light:[!1,!0],value:["#FFFFFF","#1B1B1F"],description:"Default block background"},"--bg-elevated-02":{light:[!1,!0],value:["#E1E3EB","#2D2D33"],description:"Secondary block background"}}},filledSec:{title:"Filled",data:{"--filled-V-BG":{light:[!1,!0],value:["#D0F0C0","rgba(66, 184, 66, 0.40)"],description:"Text background selection on V-read"},"--filled-D-BG":{light:[!1,!0],value:["#FFCECC","rgba(229, 83, 229, 0.40)"],description:"Text background selection on D-read"},"--filled-N-BG":{light:[!1,!0],value:["#FAF5AA","rgba(83, 82, 102, 0.40)"],description:"Text background selection on C/N-read"},"--filled-J-BG":{light:[!1,!0],value:["#DEDBFF","rgba(132, 92, 255, 0.40)"],description:"Text background selection on J-read"}}},notificationSec:{title:"Notification",data:{"--notification-neutral":{light:[!1,!0],value:["linear-gradient(90deg, #D6D9FF 0%, #FFF 100%)","linear-gradient(90deg, #4D4D8F 0%, #292933 100%)"],description:"Background on neutral blocks"},"--notification-success":{light:[!1,!0],value:["linear-gradient(90deg, #C9F0B6 0%, #FFF 100%)","linear-gradient(90deg, #305C3E 0%, #292933 100%)"],description:"Background on success blocks"},"--notification-warning":{light:[!1,!0],value:["linear-gradient(90deg, #FEE0A3 0%, #FFF 100%)","linear-gradient(90deg, #754F2D 0%, #292933 100%)"],description:"Background on warning blocks"},"--notification-error":{light:[!1,!0],value:["linear-gradient(90deg, #FFB8B8 0%, #FFF 100%)","linear-gradient(90deg, #8F3343 0%, #292933 100%)"],description:"Background on error blocks"}}},gradientSec:{title:"Gradient",data:{"--gradient-blue-green":{light:[!0,!0],value:["linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand dark gradient"},"--gradient-green-lime":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-violet":{light:[!1,!0],value:["linear-gradient(180deg, #ADB8FF 0%, #D6E9FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-clear":{light:[!1,!0],value:["linear-gradient(180deg, #85BEFF 0%, #CEF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-orange":{light:[!1,!0],value:["linear-gradient(180deg, #FFB766 0%, #FFEAA3 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-mint":{light:[!1,!0],value:["linear-gradient(180deg, #7DD1D1 0%, #C8FAE9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-lime":{light:[!1,!0],value:["linear-gradient(180deg, #BFE062 0%, #E4FFAD 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-rose":{light:[!1,!0],value:["linear-gradient(0deg, #FFDDD6 0%, #FF99C9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-red":{light:[!1,!0],value:["linear-gradient(0deg, #FFD5CC 0%, #FF9494 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-violet":{light:[!1,!0],value:["linear-gradient(180deg, #BCA3FF 0%, #E5E5FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"}}}}}const HT=["add","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","box","calendar","caret-down","caret-left","caret-right","caret-up","cell-type-num","cell-type-txt","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","clipboard-copied","clipboard","close","copy","data-dimentions","delete-bin","delete-circle","delete-clear","download","drag-dots","duplicate","edit","error","export","filter-on","filter","help-outline","help","info-outline","info","jump-link","link","loading","lock","maximize","minimize","minus","more","open","paper-clip","pause","play","renew","restart","reverse","settings","sort","stop","success","time","tune","warning","x-axis","y-axis","zip"],qT=["add-layer","add","align-center","align-left","align-right","annotate","annotation","area","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","axes","bar-cross","bar-error","bar-stacked","bar-trend","bar","bindot","box","boxplot-binned","boxplot-jitter","boxplot-notched","boxplot","bubble","calendar","canvas","cell-type-num","cell-type-txt","checkbox-checked","checkbox-intermediate","checkbox","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-sort","chevron-up","clipboard-copied","clipboard","close","cloud-download","cloud-offline","cloud-online","cloud-upload","cluster","code","color-fill","color-none","color-stroke","color","columns","connected-points","container","cookie","copy","cpu","data-dimentions","debug","delete-bin","delete-circle","delete-clear","dendrogram-X-line","dendrogram-X","dendrogram-Y-line","dendrogram-Y","dna","download","drag-dots","drag-horizontal","drag-vertical","duplicate","edit","error-bar","error","expand-left","expand-right","export","file-doc-add","file-doc-download","file-doc-import","file-doc","files-export","files-import","filter-on","filter","fire-tips","folder-parent","frame-type-all","frame-type-bottom","frame-type-left-bottom","frame-type-left","frame-type-none","generate","graph","heatmap","help-outline","help","info-outline","info","jitter","jump-link","lasso","layers","learn","legend-box-dot","legend-box","legend","line-binned","line-error","line-jitter","line","linetype-dashed","linetype-dotdash","linetype-dotted","linetype-longdash","linetype-solid","linetype-twodash","link-disabled","link","loading","lock","maximize","menu","minimize","minus","more","paper-clip","pause","pin","play","position-bottom-annotation","position-bottom","position-left-annotation","position-left","position-right-annotation","position-right","position-top-annotation","position-top","product","publications","radio-button-checked","radio-button","renew","restart","reverse","rotation-0","rotation-45","rotation-90","search","server-on","server","settings","sina","skatterplot","slice","social-github","social-linkedin","social-twitter-X","social-twitter-bird","social-youtube","sort-list-down","sort-list-up","sort","statistics","stop","strip-plot","success","table-add","table-alias","table-import","table","template","terminal","text-align-center","text-align-left","text-align-right","theme-dark","theme-light","time","tune","venn","view-hide","view-show","violin-binned","violin-jitter","violin","warning","wetlab","windows-collapse","windows-expand","x-axis","y-axis","zip","zoom-in","zoom-out"],KT={allCssVariables:WT(),icons16:wS,icons24:$T},YT={class:"block__not-found"},JT=n.defineComponent({__name:"NotFound",setup(t){const r=Jl().useApp(),o=()=>{r.updateNavigationState(i=>{i.href="/"})};return(i,s)=>(n.openBlock(),n.createElementBlock("div",YT,[n.createElementVNode("h1",null,"Not found route: "+n.toDisplayString(n.unref(r).snapshot.navigationState.href),1),n.createVNode(n.unref(ds),{onClick:n.withModifiers(o,["stop"])},{default:n.withCtx(()=>s[0]||(s[0]=[n.createTextVNode("Return to main page")])),_:1})]))}}),As=(t,e)=>{const r=t.__vccOpts||t;for(const[o,i]of e)r[o]=i;return r},QT={},XT={class:"block__loader-page"};function eE(t,e){return n.openBlock(),n.createElementBlock("div",XT,e[0]||(e[0]=[n.createElementVNode("div",{class:"loader-container"},[n.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const tE=As(QT,[["render",eE]]),rE={class:"pl-app-notification-alert"},nE={class:"pl-app-notification-alert__content"},oE={class:"pl-app-notification-alert__title"},aE={class:"pl-app-notification-alert__error-description"},iE=n.defineComponent({__name:"PlAppErrorNotificationAlert",props:{errors:{}},setup(t){const e=t,r=n.ref(!1),o=n.ref(!0),i=n.computed(()=>Object.entries(e.errors).filter(u=>!!u[1]));function s(){r.value=!0}function d(u){navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(u))}return n.watch(()=>e.errors,u=>{o.value=Object.values(u).some(p=>!!p)},{immediate:!0,deep:!0}),(u,p)=>(n.openBlock(),n.createElementBlock("div",rE,[n.createVNode(n.unref(xs),{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=h=>r.value=h),width:"50%",style:{"max-height":"100vh"}},{title:n.withCtx(()=>p[2]||(p[2]=[n.createTextVNode(" Errors ")])),default:n.withCtx(()=>[n.createElementVNode("div",nE,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.value,h=>{var f;return n.openBlock(),n.createElementBlock("div",{key:h[0],class:"pl-app-notification-alert__item"},[n.createElementVNode("div",oE,n.toDisplayString(h[0]),1),n.createElementVNode("div",aE,[n.createElementVNode("code",null,n.toDisplayString((f=h[1])==null?void 0:f.message),1),n.createVNode(n.unref(up),{class:"pl-app-notification-alert__copy-icon",onCopyData:y=>d(h[1])},null,8,["onCopyData"])])])}),128))])]),_:1},8,["modelValue"]),n.createVNode(n.unref(dp),{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=h=>o.value=h),type:"error",closable:""},{actions:n.withCtx(()=>[n.createVNode(n.unref(cs),{icon:"arrow-right",onClick:s},{default:n.withCtx(()=>p[3]||(p[3]=[n.createTextVNode("See errors")])),_:1}),n.createVNode(n.unref(Vu))]),default:n.withCtx(()=>[p[4]||(p[4]=n.createTextVNode(" Some outputs have errors. "))]),_:1},8,["modelValue"])]))}}),lE={class:"block block__layout"},sE={key:0},cE=n.defineComponent({__name:"BlockLayout",setup(t){const e=Jl(),r=p=>{try{return new URL(p,"http://dummy").pathname}catch{console.error("Invalid href",p);return}},o=n.computed(()=>e.loaded?e.useApp().href:void 0),i=n.computed(()=>{if(e.loaded){const p=e.useApp(),h=r(p.snapshot.navigationState.href);return h?p.getRoute(h):void 0}}),s=n.computed(()=>e.loaded?e.useApp():void 0),d=n.computed(()=>s.value?s.value.model.outputErrors:{}),u=n.computed(()=>{var p;return((p=s.value)==null?void 0:p.showErrorsNotification)??!0});return(p,h)=>(n.openBlock(),n.createElementBlock("div",lE,[n.unref(e).error?(n.openBlock(),n.createElementBlock("div",sE,n.toDisplayString(n.unref(e).error),1)):n.unref(e).loaded?i.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.value),{key:o.value})):(n.openBlock(),n.createBlock(JT,{key:3})):(n.openBlock(),n.createBlock(tE,{key:1},{default:n.withCtx(()=>h[0]||(h[0]=[n.createTextVNode("Loading...")])),_:1})),n.unref(e).loaded&&u.value?(n.openBlock(),n.createBlock(n.unref(iE),{key:4,errors:d.value},null,8,["errors"])):n.createCommentVNode("",!0)]))}});var Si={exports:{}};/**
|
|
38
78
|
* @license
|
|
39
79
|
* Lodash <https://lodash.com/>
|
|
40
80
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
41
81
|
* Released under MIT license <https://lodash.com/license>
|
|
42
82
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
43
83
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
44
|
-
*/bi.exports,function(a,e){(function(){var r,i="4.17.21",l=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",u="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",f=500,m="__lodash_placeholder__",_=1,C=2,T=4,O=1,S=2,M=1,v=2,A=4,I=8,W=16,j=32,Y=64,F=128,B=256,H=512,D=30,J="...",de=800,Z=16,V=1,R=2,Q=3,ye=1/0,_e=9007199254740991,Rt=17976931348623157e292,Ht=NaN,Tt=4294967295,wo=Tt-1,In=Tt>>>1,xo=[["ary",F],["bind",M],["bindKey",v],["curry",I],["curryRight",W],["flip",H],["partial",j],["partialRight",Y],["rearg",B]],da="[object Arguments]",_i="[object Array]",hS="[object AsyncFunction]",_o="[object Boolean]",ko="[object Date]",mS="[object DOMException]",ki="[object Error]",Ci="[object Function]",Uu="[object GeneratorFunction]",hr="[object Map]",Co="[object Number]",yS="[object Null]",Dr="[object Object]",Hu="[object Promise]",bS="[object Proxy]",So="[object RegExp]",mr="[object Set]",To="[object String]",Si="[object Symbol]",vS="[object Undefined]",Eo="[object WeakMap]",wS="[object WeakSet]",No="[object ArrayBuffer]",ua="[object DataView]",vs="[object Float32Array]",ws="[object Float64Array]",xs="[object Int8Array]",_s="[object Int16Array]",ks="[object Int32Array]",Cs="[object Uint8Array]",Ss="[object Uint8ClampedArray]",Ts="[object Uint16Array]",Es="[object Uint32Array]",xS=/\b__p \+= '';/g,_S=/\b(__p \+=) '' \+/g,kS=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wu=/&(?:amp|lt|gt|quot|#39);/g,qu=/[&<>"']/g,CS=RegExp(Wu.source),SS=RegExp(qu.source),TS=/<%-([\s\S]+?)%>/g,ES=/<%([\s\S]+?)%>/g,Yu=/<%=([\s\S]+?)%>/g,NS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BS=/^\w*$/,VS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ns=/[\\^$.*+?()[\]{}|]/g,MS=RegExp(Ns.source),Bs=/^\s+/,zS=/\s/,AS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OS=/\{\n\/\* \[wrapped with (.+)\] \*/,LS=/,? & /,IS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,DS=/[()=,{}\[\]\/\s]/,RS=/\\(\\)?/g,PS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gu=/\w*$/,jS=/^[-+]0x[0-9a-f]+$/i,FS=/^0b[01]+$/i,$S=/^\[object .+?Constructor\]$/,ZS=/^0o[0-7]+$/i,US=/^(?:0|[1-9]\d*)$/,HS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ti=/($^)/,WS=/['\n\r\u2028\u2029\\]/g,Ei="\\ud800-\\udfff",qS="\\u0300-\\u036f",YS="\\ufe20-\\ufe2f",GS="\\u20d0-\\u20ff",Ku=qS+YS+GS,Ju="\\u2700-\\u27bf",Qu="a-z\\xdf-\\xf6\\xf8-\\xff",KS="\\xac\\xb1\\xd7\\xf7",JS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",QS="\\u2000-\\u206f",XS=" \\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",Xu="A-Z\\xc0-\\xd6\\xd8-\\xde",eg="\\ufe0e\\ufe0f",tg=KS+JS+QS+XS,Vs="['’]",e2="["+Ei+"]",rg="["+tg+"]",Ni="["+Ku+"]",ng="\\d+",t2="["+Ju+"]",ag="["+Qu+"]",og="[^"+Ei+tg+ng+Ju+Qu+Xu+"]",Ms="\\ud83c[\\udffb-\\udfff]",r2="(?:"+Ni+"|"+Ms+")",ig="[^"+Ei+"]",zs="(?:\\ud83c[\\udde6-\\uddff]){2}",As="[\\ud800-\\udbff][\\udc00-\\udfff]",ga="["+Xu+"]",lg="\\u200d",sg="(?:"+ag+"|"+og+")",n2="(?:"+ga+"|"+og+")",cg="(?:"+Vs+"(?:d|ll|m|re|s|t|ve))?",dg="(?:"+Vs+"(?:D|LL|M|RE|S|T|VE))?",ug=r2+"?",gg="["+eg+"]?",a2="(?:"+lg+"(?:"+[ig,zs,As].join("|")+")"+gg+ug+")*",o2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pg=gg+ug+a2,l2="(?:"+[t2,zs,As].join("|")+")"+pg,s2="(?:"+[ig+Ni+"?",Ni,zs,As,e2].join("|")+")",c2=RegExp(Vs,"g"),d2=RegExp(Ni,"g"),Os=RegExp(Ms+"(?="+Ms+")|"+s2+pg,"g"),u2=RegExp([ga+"?"+ag+"+"+cg+"(?="+[rg,ga,"$"].join("|")+")",n2+"+"+dg+"(?="+[rg,ga+sg,"$"].join("|")+")",ga+"?"+sg+"+"+cg,ga+"+"+dg,i2,o2,ng,l2].join("|"),"g"),g2=RegExp("["+lg+Ei+Ku+eg+"]"),p2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,f2=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],h2=-1,Ue={};Ue[vs]=Ue[ws]=Ue[xs]=Ue[_s]=Ue[ks]=Ue[Cs]=Ue[Ss]=Ue[Ts]=Ue[Es]=!0,Ue[da]=Ue[_i]=Ue[No]=Ue[_o]=Ue[ua]=Ue[ko]=Ue[ki]=Ue[Ci]=Ue[hr]=Ue[Co]=Ue[Dr]=Ue[So]=Ue[mr]=Ue[To]=Ue[Eo]=!1;var $e={};$e[da]=$e[_i]=$e[No]=$e[ua]=$e[_o]=$e[ko]=$e[vs]=$e[ws]=$e[xs]=$e[_s]=$e[ks]=$e[hr]=$e[Co]=$e[Dr]=$e[So]=$e[mr]=$e[To]=$e[Si]=$e[Cs]=$e[Ss]=$e[Ts]=$e[Es]=!0,$e[ki]=$e[Ci]=$e[Eo]=!1;var m2={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},y2={"&":"&","<":"<",">":">",'"':""","'":"'"},b2={"&":"&","<":"<",">":">",""":'"',"'":"'"},v2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},w2=parseFloat,x2=parseInt,fg=typeof Ta=="object"&&Ta&&Ta.Object===Object&&Ta,_2=typeof self=="object"&&self&&self.Object===Object&&self,dt=fg||_2||Function("return this")(),Ls=e&&!e.nodeType&&e,Dn=Ls&&!0&&a&&!a.nodeType&&a,hg=Dn&&Dn.exports===Ls,Is=hg&&fg.process,Wt=function(){try{var E=Dn&&Dn.require&&Dn.require("util").types;return E||Is&&Is.binding&&Is.binding("util")}catch{}}(),mg=Wt&&Wt.isArrayBuffer,yg=Wt&&Wt.isDate,bg=Wt&&Wt.isMap,vg=Wt&&Wt.isRegExp,wg=Wt&&Wt.isSet,xg=Wt&&Wt.isTypedArray;function Pt(E,P,L){switch(L.length){case 0:return E.call(P);case 1:return E.call(P,L[0]);case 2:return E.call(P,L[0],L[1]);case 3:return E.call(P,L[0],L[1],L[2])}return E.apply(P,L)}function k2(E,P,L,oe){for(var xe=-1,De=E==null?0:E.length;++xe<De;){var ot=E[xe];P(oe,ot,L(ot),E)}return oe}function qt(E,P){for(var L=-1,oe=E==null?0:E.length;++L<oe&&P(E[L],L,E)!==!1;);return E}function C2(E,P){for(var L=E==null?0:E.length;L--&&P(E[L],L,E)!==!1;);return E}function _g(E,P){for(var L=-1,oe=E==null?0:E.length;++L<oe;)if(!P(E[L],L,E))return!1;return!0}function gn(E,P){for(var L=-1,oe=E==null?0:E.length,xe=0,De=[];++L<oe;){var ot=E[L];P(ot,L,E)&&(De[xe++]=ot)}return De}function Bi(E,P){var L=E==null?0:E.length;return!!L&&pa(E,P,0)>-1}function Ds(E,P,L){for(var oe=-1,xe=E==null?0:E.length;++oe<xe;)if(L(P,E[oe]))return!0;return!1}function We(E,P){for(var L=-1,oe=E==null?0:E.length,xe=Array(oe);++L<oe;)xe[L]=P(E[L],L,E);return xe}function pn(E,P){for(var L=-1,oe=P.length,xe=E.length;++L<oe;)E[xe+L]=P[L];return E}function Rs(E,P,L,oe){var xe=-1,De=E==null?0:E.length;for(oe&&De&&(L=E[++xe]);++xe<De;)L=P(L,E[xe],xe,E);return L}function S2(E,P,L,oe){var xe=E==null?0:E.length;for(oe&&xe&&(L=E[--xe]);xe--;)L=P(L,E[xe],xe,E);return L}function Ps(E,P){for(var L=-1,oe=E==null?0:E.length;++L<oe;)if(P(E[L],L,E))return!0;return!1}var T2=js("length");function E2(E){return E.split("")}function N2(E){return E.match(IS)||[]}function kg(E,P,L){var oe;return L(E,function(xe,De,ot){if(P(xe,De,ot))return oe=De,!1}),oe}function Vi(E,P,L,oe){for(var xe=E.length,De=L+(oe?1:-1);oe?De--:++De<xe;)if(P(E[De],De,E))return De;return-1}function pa(E,P,L){return P===P?j2(E,P,L):Vi(E,Cg,L)}function B2(E,P,L,oe){for(var xe=L-1,De=E.length;++xe<De;)if(oe(E[xe],P))return xe;return-1}function Cg(E){return E!==E}function Sg(E,P){var L=E==null?0:E.length;return L?$s(E,P)/L:Ht}function js(E){return function(P){return P==null?r:P[E]}}function Fs(E){return function(P){return E==null?r:E[P]}}function Tg(E,P,L,oe,xe){return xe(E,function(De,ot,Fe){L=oe?(oe=!1,De):P(L,De,ot,Fe)}),L}function V2(E,P){var L=E.length;for(E.sort(P);L--;)E[L]=E[L].value;return E}function $s(E,P){for(var L,oe=-1,xe=E.length;++oe<xe;){var De=P(E[oe]);De!==r&&(L=L===r?De:L+De)}return L}function Zs(E,P){for(var L=-1,oe=Array(E);++L<E;)oe[L]=P(L);return oe}function M2(E,P){return We(P,function(L){return[L,E[L]]})}function Eg(E){return E&&E.slice(0,Mg(E)+1).replace(Bs,"")}function jt(E){return function(P){return E(P)}}function Us(E,P){return We(P,function(L){return E[L]})}function Bo(E,P){return E.has(P)}function Ng(E,P){for(var L=-1,oe=E.length;++L<oe&&pa(P,E[L],0)>-1;);return L}function Bg(E,P){for(var L=E.length;L--&&pa(P,E[L],0)>-1;);return L}function z2(E,P){for(var L=E.length,oe=0;L--;)E[L]===P&&++oe;return oe}var A2=Fs(m2),O2=Fs(y2);function L2(E){return"\\"+v2[E]}function I2(E,P){return E==null?r:E[P]}function fa(E){return g2.test(E)}function D2(E){return p2.test(E)}function R2(E){for(var P,L=[];!(P=E.next()).done;)L.push(P.value);return L}function Hs(E){var P=-1,L=Array(E.size);return E.forEach(function(oe,xe){L[++P]=[xe,oe]}),L}function Vg(E,P){return function(L){return E(P(L))}}function fn(E,P){for(var L=-1,oe=E.length,xe=0,De=[];++L<oe;){var ot=E[L];(ot===P||ot===m)&&(E[L]=m,De[xe++]=L)}return De}function Mi(E){var P=-1,L=Array(E.size);return E.forEach(function(oe){L[++P]=oe}),L}function P2(E){var P=-1,L=Array(E.size);return E.forEach(function(oe){L[++P]=[oe,oe]}),L}function j2(E,P,L){for(var oe=L-1,xe=E.length;++oe<xe;)if(E[oe]===P)return oe;return-1}function F2(E,P,L){for(var oe=L+1;oe--;)if(E[oe]===P)return oe;return oe}function ha(E){return fa(E)?Z2(E):T2(E)}function yr(E){return fa(E)?U2(E):E2(E)}function Mg(E){for(var P=E.length;P--&&zS.test(E.charAt(P)););return P}var $2=Fs(b2);function Z2(E){for(var P=Os.lastIndex=0;Os.test(E);)++P;return P}function U2(E){return E.match(Os)||[]}function H2(E){return E.match(u2)||[]}var W2=function E(P){P=P==null?dt:ma.defaults(dt.Object(),P,ma.pick(dt,f2));var L=P.Array,oe=P.Date,xe=P.Error,De=P.Function,ot=P.Math,Fe=P.Object,Ws=P.RegExp,q2=P.String,Yt=P.TypeError,zi=L.prototype,Y2=De.prototype,ya=Fe.prototype,Ai=P["__core-js_shared__"],Oi=Y2.toString,je=ya.hasOwnProperty,G2=0,zg=function(){var n=/[^.]+$/.exec(Ai&&Ai.keys&&Ai.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Li=ya.toString,K2=Oi.call(Fe),J2=dt._,Q2=Ws("^"+Oi.call(je).replace(Ns,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ii=hg?P.Buffer:r,hn=P.Symbol,Di=P.Uint8Array,Ag=Ii?Ii.allocUnsafe:r,Ri=Vg(Fe.getPrototypeOf,Fe),Og=Fe.create,Lg=ya.propertyIsEnumerable,Pi=zi.splice,Ig=hn?hn.isConcatSpreadable:r,Vo=hn?hn.iterator:r,Rn=hn?hn.toStringTag:r,ji=function(){try{var n=Zn(Fe,"defineProperty");return n({},"",{}),n}catch{}}(),X2=P.clearTimeout!==dt.clearTimeout&&P.clearTimeout,eT=oe&&oe.now!==dt.Date.now&&oe.now,tT=P.setTimeout!==dt.setTimeout&&P.setTimeout,Fi=ot.ceil,$i=ot.floor,qs=Fe.getOwnPropertySymbols,rT=Ii?Ii.isBuffer:r,Dg=P.isFinite,nT=zi.join,aT=Vg(Fe.keys,Fe),it=ot.max,mt=ot.min,oT=oe.now,iT=P.parseInt,Rg=ot.random,lT=zi.reverse,Ys=Zn(P,"DataView"),Mo=Zn(P,"Map"),Gs=Zn(P,"Promise"),ba=Zn(P,"Set"),zo=Zn(P,"WeakMap"),Ao=Zn(Fe,"create"),Zi=zo&&new zo,va={},sT=Un(Ys),cT=Un(Mo),dT=Un(Gs),uT=Un(ba),gT=Un(zo),Ui=hn?hn.prototype:r,Oo=Ui?Ui.valueOf:r,Pg=Ui?Ui.toString:r;function y(n){if(Je(n)&&!ke(n)&&!(n instanceof ze)){if(n instanceof Gt)return n;if(je.call(n,"__wrapped__"))return jp(n)}return new Gt(n)}var wa=function(){function n(){}return function(o){if(!Ge(o))return{};if(Og)return Og(o);n.prototype=o;var c=new n;return n.prototype=r,c}}();function Hi(){}function Gt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}y.templateSettings={escape:TS,evaluate:ES,interpolate:Yu,variable:"",imports:{_:y}},y.prototype=Hi.prototype,y.prototype.constructor=y,Gt.prototype=wa(Hi.prototype),Gt.prototype.constructor=Gt;function ze(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Tt,this.__views__=[]}function pT(){var n=new ze(this.__wrapped__);return n.__actions__=Et(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Et(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Et(this.__views__),n}function fT(){if(this.__filtered__){var n=new ze(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function hT(){var n=this.__wrapped__.value(),o=this.__dir__,c=ke(n),g=o<0,h=c?n.length:0,b=EE(0,h,this.__views__),x=b.start,k=b.end,N=k-x,$=g?k:x-1,U=this.__iteratees__,q=U.length,ee=0,le=mt(N,this.__takeCount__);if(!c||!g&&h==N&&le==N)return cp(n,this.__actions__);var pe=[];e:for(;N--&&ee<le;){$+=o;for(var Be=-1,fe=n[$];++Be<q;){var Me=U[Be],Ae=Me.iteratee,Zt=Me.type,Ct=Ae(fe);if(Zt==R)fe=Ct;else if(!Ct){if(Zt==V)continue e;break e}}pe[ee++]=fe}return pe}ze.prototype=wa(Hi.prototype),ze.prototype.constructor=ze;function Pn(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var g=n[o];this.set(g[0],g[1])}}function mT(){this.__data__=Ao?Ao(null):{},this.size=0}function yT(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function bT(n){var o=this.__data__;if(Ao){var c=o[n];return c===p?r:c}return je.call(o,n)?o[n]:r}function vT(n){var o=this.__data__;return Ao?o[n]!==r:je.call(o,n)}function wT(n,o){var c=this.__data__;return this.size+=this.has(n)?0:1,c[n]=Ao&&o===r?p:o,this}Pn.prototype.clear=mT,Pn.prototype.delete=yT,Pn.prototype.get=bT,Pn.prototype.has=vT,Pn.prototype.set=wT;function Rr(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var g=n[o];this.set(g[0],g[1])}}function xT(){this.__data__=[],this.size=0}function _T(n){var o=this.__data__,c=Wi(o,n);if(c<0)return!1;var g=o.length-1;return c==g?o.pop():Pi.call(o,c,1),--this.size,!0}function kT(n){var o=this.__data__,c=Wi(o,n);return c<0?r:o[c][1]}function CT(n){return Wi(this.__data__,n)>-1}function ST(n,o){var c=this.__data__,g=Wi(c,n);return g<0?(++this.size,c.push([n,o])):c[g][1]=o,this}Rr.prototype.clear=xT,Rr.prototype.delete=_T,Rr.prototype.get=kT,Rr.prototype.has=CT,Rr.prototype.set=ST;function Pr(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var g=n[o];this.set(g[0],g[1])}}function TT(){this.size=0,this.__data__={hash:new Pn,map:new(Mo||Rr),string:new Pn}}function ET(n){var o=al(this,n).delete(n);return this.size-=o?1:0,o}function NT(n){return al(this,n).get(n)}function BT(n){return al(this,n).has(n)}function VT(n,o){var c=al(this,n),g=c.size;return c.set(n,o),this.size+=c.size==g?0:1,this}Pr.prototype.clear=TT,Pr.prototype.delete=ET,Pr.prototype.get=NT,Pr.prototype.has=BT,Pr.prototype.set=VT;function jn(n){var o=-1,c=n==null?0:n.length;for(this.__data__=new Pr;++o<c;)this.add(n[o])}function MT(n){return this.__data__.set(n,p),this}function zT(n){return this.__data__.has(n)}jn.prototype.add=jn.prototype.push=MT,jn.prototype.has=zT;function br(n){var o=this.__data__=new Rr(n);this.size=o.size}function AT(){this.__data__=new Rr,this.size=0}function OT(n){var o=this.__data__,c=o.delete(n);return this.size=o.size,c}function LT(n){return this.__data__.get(n)}function IT(n){return this.__data__.has(n)}function DT(n,o){var c=this.__data__;if(c instanceof Rr){var g=c.__data__;if(!Mo||g.length<l-1)return g.push([n,o]),this.size=++c.size,this;c=this.__data__=new Pr(g)}return c.set(n,o),this.size=c.size,this}br.prototype.clear=AT,br.prototype.delete=OT,br.prototype.get=LT,br.prototype.has=IT,br.prototype.set=DT;function jg(n,o){var c=ke(n),g=!c&&Hn(n),h=!c&&!g&&wn(n),b=!c&&!g&&!h&&Ca(n),x=c||g||h||b,k=x?Zs(n.length,q2):[],N=k.length;for(var $ in n)(o||je.call(n,$))&&!(x&&($=="length"||h&&($=="offset"||$=="parent")||b&&($=="buffer"||$=="byteLength"||$=="byteOffset")||Zr($,N)))&&k.push($);return k}function Fg(n){var o=n.length;return o?n[ic(0,o-1)]:r}function RT(n,o){return ol(Et(n),Fn(o,0,n.length))}function PT(n){return ol(Et(n))}function Ks(n,o,c){(c!==r&&!vr(n[o],c)||c===r&&!(o in n))&&jr(n,o,c)}function Lo(n,o,c){var g=n[o];(!(je.call(n,o)&&vr(g,c))||c===r&&!(o in n))&&jr(n,o,c)}function Wi(n,o){for(var c=n.length;c--;)if(vr(n[c][0],o))return c;return-1}function jT(n,o,c,g){return mn(n,function(h,b,x){o(g,h,c(h),x)}),g}function $g(n,o){return n&&Nr(o,ct(o),n)}function FT(n,o){return n&&Nr(o,Bt(o),n)}function jr(n,o,c){o=="__proto__"&&ji?ji(n,o,{configurable:!0,enumerable:!0,value:c,writable:!0}):n[o]=c}function Js(n,o){for(var c=-1,g=o.length,h=L(g),b=n==null;++c<g;)h[c]=b?r:Mc(n,o[c]);return h}function Fn(n,o,c){return n===n&&(c!==r&&(n=n<=c?n:c),o!==r&&(n=n>=o?n:o)),n}function Kt(n,o,c,g,h,b){var x,k=o&_,N=o&C,$=o&T;if(c&&(x=h?c(n,g,h,b):c(n)),x!==r)return x;if(!Ge(n))return n;var U=ke(n);if(U){if(x=BE(n),!k)return Et(n,x)}else{var q=yt(n),ee=q==Ci||q==Uu;if(wn(n))return gp(n,k);if(q==Dr||q==da||ee&&!h){if(x=N||ee?{}:Mp(n),!k)return N?bE(n,FT(x,n)):yE(n,$g(x,n))}else{if(!$e[q])return h?n:{};x=VE(n,q,k)}}b||(b=new br);var le=b.get(n);if(le)return le;b.set(n,x),lf(n)?n.forEach(function(fe){x.add(Kt(fe,o,c,fe,n,b))}):af(n)&&n.forEach(function(fe,Me){x.set(Me,Kt(fe,o,c,Me,n,b))});var pe=$?N?yc:mc:N?Bt:ct,Be=U?r:pe(n);return qt(Be||n,function(fe,Me){Be&&(Me=fe,fe=n[Me]),Lo(x,Me,Kt(fe,o,c,Me,n,b))}),x}function $T(n){var o=ct(n);return function(c){return Zg(c,n,o)}}function Zg(n,o,c){var g=c.length;if(n==null)return!g;for(n=Fe(n);g--;){var h=c[g],b=o[h],x=n[h];if(x===r&&!(h in n)||!b(x))return!1}return!0}function Ug(n,o,c){if(typeof n!="function")throw new Yt(d);return $o(function(){n.apply(r,c)},o)}function Io(n,o,c,g){var h=-1,b=Bi,x=!0,k=n.length,N=[],$=o.length;if(!k)return N;c&&(o=We(o,jt(c))),g?(b=Ds,x=!1):o.length>=l&&(b=Bo,x=!1,o=new jn(o));e:for(;++h<k;){var U=n[h],q=c==null?U:c(U);if(U=g||U!==0?U:0,x&&q===q){for(var ee=$;ee--;)if(o[ee]===q)continue e;N.push(U)}else b(o,q,g)||N.push(U)}return N}var mn=yp(Er),Hg=yp(Xs,!0);function ZT(n,o){var c=!0;return mn(n,function(g,h,b){return c=!!o(g,h,b),c}),c}function qi(n,o,c){for(var g=-1,h=n.length;++g<h;){var b=n[g],x=o(b);if(x!=null&&(k===r?x===x&&!$t(x):c(x,k)))var k=x,N=b}return N}function UT(n,o,c,g){var h=n.length;for(c=Te(c),c<0&&(c=-c>h?0:h+c),g=g===r||g>h?h:Te(g),g<0&&(g+=h),g=c>g?0:cf(g);c<g;)n[c++]=o;return n}function Wg(n,o){var c=[];return mn(n,function(g,h,b){o(g,h,b)&&c.push(g)}),c}function ut(n,o,c,g,h){var b=-1,x=n.length;for(c||(c=zE),h||(h=[]);++b<x;){var k=n[b];o>0&&c(k)?o>1?ut(k,o-1,c,g,h):pn(h,k):g||(h[h.length]=k)}return h}var Qs=bp(),qg=bp(!0);function Er(n,o){return n&&Qs(n,o,ct)}function Xs(n,o){return n&&qg(n,o,ct)}function Yi(n,o){return gn(o,function(c){return Ur(n[c])})}function $n(n,o){o=bn(o,n);for(var c=0,g=o.length;n!=null&&c<g;)n=n[Br(o[c++])];return c&&c==g?n:r}function Yg(n,o,c){var g=o(n);return ke(n)?g:pn(g,c(n))}function _t(n){return n==null?n===r?vS:yS:Rn&&Rn in Fe(n)?TE(n):PE(n)}function ec(n,o){return n>o}function HT(n,o){return n!=null&&je.call(n,o)}function WT(n,o){return n!=null&&o in Fe(n)}function qT(n,o,c){return n>=mt(o,c)&&n<it(o,c)}function tc(n,o,c){for(var g=c?Ds:Bi,h=n[0].length,b=n.length,x=b,k=L(b),N=1/0,$=[];x--;){var U=n[x];x&&o&&(U=We(U,jt(o))),N=mt(U.length,N),k[x]=!c&&(o||h>=120&&U.length>=120)?new jn(x&&U):r}U=n[0];var q=-1,ee=k[0];e:for(;++q<h&&$.length<N;){var le=U[q],pe=o?o(le):le;if(le=c||le!==0?le:0,!(ee?Bo(ee,pe):g($,pe,c))){for(x=b;--x;){var Be=k[x];if(!(Be?Bo(Be,pe):g(n[x],pe,c)))continue e}ee&&ee.push(pe),$.push(le)}}return $}function YT(n,o,c,g){return Er(n,function(h,b,x){o(g,c(h),b,x)}),g}function Do(n,o,c){o=bn(o,n),n=Lp(n,o);var g=n==null?n:n[Br(Qt(o))];return g==null?r:Pt(g,n,c)}function Gg(n){return Je(n)&&_t(n)==da}function GT(n){return Je(n)&&_t(n)==No}function KT(n){return Je(n)&&_t(n)==ko}function Ro(n,o,c,g,h){return n===o?!0:n==null||o==null||!Je(n)&&!Je(o)?n!==n&&o!==o:JT(n,o,c,g,Ro,h)}function JT(n,o,c,g,h,b){var x=ke(n),k=ke(o),N=x?_i:yt(n),$=k?_i:yt(o);N=N==da?Dr:N,$=$==da?Dr:$;var U=N==Dr,q=$==Dr,ee=N==$;if(ee&&wn(n)){if(!wn(o))return!1;x=!0,U=!1}if(ee&&!U)return b||(b=new br),x||Ca(n)?Np(n,o,c,g,h,b):CE(n,o,N,c,g,h,b);if(!(c&O)){var le=U&&je.call(n,"__wrapped__"),pe=q&&je.call(o,"__wrapped__");if(le||pe){var Be=le?n.value():n,fe=pe?o.value():o;return b||(b=new br),h(Be,fe,c,g,b)}}return ee?(b||(b=new br),SE(n,o,c,g,h,b)):!1}function QT(n){return Je(n)&&yt(n)==hr}function rc(n,o,c,g){var h=c.length,b=h,x=!g;if(n==null)return!b;for(n=Fe(n);h--;){var k=c[h];if(x&&k[2]?k[1]!==n[k[0]]:!(k[0]in n))return!1}for(;++h<b;){k=c[h];var N=k[0],$=n[N],U=k[1];if(x&&k[2]){if($===r&&!(N in n))return!1}else{var q=new br;if(g)var ee=g($,U,N,n,o,q);if(!(ee===r?Ro(U,$,O|S,g,q):ee))return!1}}return!0}function Kg(n){if(!Ge(n)||OE(n))return!1;var o=Ur(n)?Q2:$S;return o.test(Un(n))}function XT(n){return Je(n)&&_t(n)==So}function eE(n){return Je(n)&&yt(n)==mr}function tE(n){return Je(n)&&ul(n.length)&&!!Ue[_t(n)]}function Jg(n){return typeof n=="function"?n:n==null?Vt:typeof n=="object"?ke(n)?ep(n[0],n[1]):Xg(n):wf(n)}function nc(n){if(!Fo(n))return aT(n);var o=[];for(var c in Fe(n))je.call(n,c)&&c!="constructor"&&o.push(c);return o}function rE(n){if(!Ge(n))return RE(n);var o=Fo(n),c=[];for(var g in n)g=="constructor"&&(o||!je.call(n,g))||c.push(g);return c}function ac(n,o){return n<o}function Qg(n,o){var c=-1,g=Nt(n)?L(n.length):[];return mn(n,function(h,b,x){g[++c]=o(h,b,x)}),g}function Xg(n){var o=vc(n);return o.length==1&&o[0][2]?Ap(o[0][0],o[0][1]):function(c){return c===n||rc(c,n,o)}}function ep(n,o){return xc(n)&&zp(o)?Ap(Br(n),o):function(c){var g=Mc(c,n);return g===r&&g===o?zc(c,n):Ro(o,g,O|S)}}function Gi(n,o,c,g,h){n!==o&&Qs(o,function(b,x){if(h||(h=new br),Ge(b))nE(n,o,x,c,Gi,g,h);else{var k=g?g(kc(n,x),b,x+"",n,o,h):r;k===r&&(k=b),Ks(n,x,k)}},Bt)}function nE(n,o,c,g,h,b,x){var k=kc(n,c),N=kc(o,c),$=x.get(N);if($){Ks(n,c,$);return}var U=b?b(k,N,c+"",n,o,x):r,q=U===r;if(q){var ee=ke(N),le=!ee&&wn(N),pe=!ee&&!le&&Ca(N);U=N,ee||le||pe?ke(k)?U=k:et(k)?U=Et(k):le?(q=!1,U=gp(N,!0)):pe?(q=!1,U=pp(N,!0)):U=[]:Zo(N)||Hn(N)?(U=k,Hn(k)?U=df(k):(!Ge(k)||Ur(k))&&(U=Mp(N))):q=!1}q&&(x.set(N,U),h(U,N,g,b,x),x.delete(N)),Ks(n,c,U)}function tp(n,o){var c=n.length;if(c)return o+=o<0?c:0,Zr(o,c)?n[o]:r}function rp(n,o,c){o.length?o=We(o,function(b){return ke(b)?function(x){return $n(x,b.length===1?b[0]:b)}:b}):o=[Vt];var g=-1;o=We(o,jt(ue()));var h=Qg(n,function(b,x,k){var N=We(o,function($){return $(b)});return{criteria:N,index:++g,value:b}});return V2(h,function(b,x){return mE(b,x,c)})}function aE(n,o){return np(n,o,function(c,g){return zc(n,g)})}function np(n,o,c){for(var g=-1,h=o.length,b={};++g<h;){var x=o[g],k=$n(n,x);c(k,x)&&Po(b,bn(x,n),k)}return b}function oE(n){return function(o){return $n(o,n)}}function oc(n,o,c,g){var h=g?B2:pa,b=-1,x=o.length,k=n;for(n===o&&(o=Et(o)),c&&(k=We(n,jt(c)));++b<x;)for(var N=0,$=o[b],U=c?c($):$;(N=h(k,U,N,g))>-1;)k!==n&&Pi.call(k,N,1),Pi.call(n,N,1);return n}function ap(n,o){for(var c=n?o.length:0,g=c-1;c--;){var h=o[c];if(c==g||h!==b){var b=h;Zr(h)?Pi.call(n,h,1):cc(n,h)}}return n}function ic(n,o){return n+$i(Rg()*(o-n+1))}function iE(n,o,c,g){for(var h=-1,b=it(Fi((o-n)/(c||1)),0),x=L(b);b--;)x[g?b:++h]=n,n+=c;return x}function lc(n,o){var c="";if(!n||o<1||o>_e)return c;do o%2&&(c+=n),o=$i(o/2),o&&(n+=n);while(o);return c}function Ve(n,o){return Cc(Op(n,o,Vt),n+"")}function lE(n){return Fg(Sa(n))}function sE(n,o){var c=Sa(n);return ol(c,Fn(o,0,c.length))}function Po(n,o,c,g){if(!Ge(n))return n;o=bn(o,n);for(var h=-1,b=o.length,x=b-1,k=n;k!=null&&++h<b;){var N=Br(o[h]),$=c;if(N==="__proto__"||N==="constructor"||N==="prototype")return n;if(h!=x){var U=k[N];$=g?g(U,N,k):r,$===r&&($=Ge(U)?U:Zr(o[h+1])?[]:{})}Lo(k,N,$),k=k[N]}return n}var op=Zi?function(n,o){return Zi.set(n,o),n}:Vt,cE=ji?function(n,o){return ji(n,"toString",{configurable:!0,enumerable:!1,value:Oc(o),writable:!0})}:Vt;function dE(n){return ol(Sa(n))}function Jt(n,o,c){var g=-1,h=n.length;o<0&&(o=-o>h?0:h+o),c=c>h?h:c,c<0&&(c+=h),h=o>c?0:c-o>>>0,o>>>=0;for(var b=L(h);++g<h;)b[g]=n[g+o];return b}function uE(n,o){var c;return mn(n,function(g,h,b){return c=o(g,h,b),!c}),!!c}function Ki(n,o,c){var g=0,h=n==null?g:n.length;if(typeof o=="number"&&o===o&&h<=In){for(;g<h;){var b=g+h>>>1,x=n[b];x!==null&&!$t(x)&&(c?x<=o:x<o)?g=b+1:h=b}return h}return sc(n,o,Vt,c)}function sc(n,o,c,g){var h=0,b=n==null?0:n.length;if(b===0)return 0;o=c(o);for(var x=o!==o,k=o===null,N=$t(o),$=o===r;h<b;){var U=$i((h+b)/2),q=c(n[U]),ee=q!==r,le=q===null,pe=q===q,Be=$t(q);if(x)var fe=g||pe;else $?fe=pe&&(g||ee):k?fe=pe&&ee&&(g||!le):N?fe=pe&&ee&&!le&&(g||!Be):le||Be?fe=!1:fe=g?q<=o:q<o;fe?h=U+1:b=U}return mt(b,wo)}function ip(n,o){for(var c=-1,g=n.length,h=0,b=[];++c<g;){var x=n[c],k=o?o(x):x;if(!c||!vr(k,N)){var N=k;b[h++]=x===0?0:x}}return b}function lp(n){return typeof n=="number"?n:$t(n)?Ht:+n}function Ft(n){if(typeof n=="string")return n;if(ke(n))return We(n,Ft)+"";if($t(n))return Pg?Pg.call(n):"";var o=n+"";return o=="0"&&1/n==-ye?"-0":o}function yn(n,o,c){var g=-1,h=Bi,b=n.length,x=!0,k=[],N=k;if(c)x=!1,h=Ds;else if(b>=l){var $=o?null:_E(n);if($)return Mi($);x=!1,h=Bo,N=new jn}else N=o?[]:k;e:for(;++g<b;){var U=n[g],q=o?o(U):U;if(U=c||U!==0?U:0,x&&q===q){for(var ee=N.length;ee--;)if(N[ee]===q)continue e;o&&N.push(q),k.push(U)}else h(N,q,c)||(N!==k&&N.push(q),k.push(U))}return k}function cc(n,o){return o=bn(o,n),n=Lp(n,o),n==null||delete n[Br(Qt(o))]}function sp(n,o,c,g){return Po(n,o,c($n(n,o)),g)}function Ji(n,o,c,g){for(var h=n.length,b=g?h:-1;(g?b--:++b<h)&&o(n[b],b,n););return c?Jt(n,g?0:b,g?b+1:h):Jt(n,g?b+1:0,g?h:b)}function cp(n,o){var c=n;return c instanceof ze&&(c=c.value()),Rs(o,function(g,h){return h.func.apply(h.thisArg,pn([g],h.args))},c)}function dc(n,o,c){var g=n.length;if(g<2)return g?yn(n[0]):[];for(var h=-1,b=L(g);++h<g;)for(var x=n[h],k=-1;++k<g;)k!=h&&(b[h]=Io(b[h]||x,n[k],o,c));return yn(ut(b,1),o,c)}function dp(n,o,c){for(var g=-1,h=n.length,b=o.length,x={};++g<h;){var k=g<b?o[g]:r;c(x,n[g],k)}return x}function uc(n){return et(n)?n:[]}function gc(n){return typeof n=="function"?n:Vt}function bn(n,o){return ke(n)?n:xc(n,o)?[n]:Pp(Pe(n))}var gE=Ve;function vn(n,o,c){var g=n.length;return c=c===r?g:c,!o&&c>=g?n:Jt(n,o,c)}var up=X2||function(n){return dt.clearTimeout(n)};function gp(n,o){if(o)return n.slice();var c=n.length,g=Ag?Ag(c):new n.constructor(c);return n.copy(g),g}function pc(n){var o=new n.constructor(n.byteLength);return new Di(o).set(new Di(n)),o}function pE(n,o){var c=o?pc(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.byteLength)}function fE(n){var o=new n.constructor(n.source,Gu.exec(n));return o.lastIndex=n.lastIndex,o}function hE(n){return Oo?Fe(Oo.call(n)):{}}function pp(n,o){var c=o?pc(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.length)}function fp(n,o){if(n!==o){var c=n!==r,g=n===null,h=n===n,b=$t(n),x=o!==r,k=o===null,N=o===o,$=$t(o);if(!k&&!$&&!b&&n>o||b&&x&&N&&!k&&!$||g&&x&&N||!c&&N||!h)return 1;if(!g&&!b&&!$&&n<o||$&&c&&h&&!g&&!b||k&&c&&h||!x&&h||!N)return-1}return 0}function mE(n,o,c){for(var g=-1,h=n.criteria,b=o.criteria,x=h.length,k=c.length;++g<x;){var N=fp(h[g],b[g]);if(N){if(g>=k)return N;var $=c[g];return N*($=="desc"?-1:1)}}return n.index-o.index}function hp(n,o,c,g){for(var h=-1,b=n.length,x=c.length,k=-1,N=o.length,$=it(b-x,0),U=L(N+$),q=!g;++k<N;)U[k]=o[k];for(;++h<x;)(q||h<b)&&(U[c[h]]=n[h]);for(;$--;)U[k++]=n[h++];return U}function mp(n,o,c,g){for(var h=-1,b=n.length,x=-1,k=c.length,N=-1,$=o.length,U=it(b-k,0),q=L(U+$),ee=!g;++h<U;)q[h]=n[h];for(var le=h;++N<$;)q[le+N]=o[N];for(;++x<k;)(ee||h<b)&&(q[le+c[x]]=n[h++]);return q}function Et(n,o){var c=-1,g=n.length;for(o||(o=L(g));++c<g;)o[c]=n[c];return o}function Nr(n,o,c,g){var h=!c;c||(c={});for(var b=-1,x=o.length;++b<x;){var k=o[b],N=g?g(c[k],n[k],k,c,n):r;N===r&&(N=n[k]),h?jr(c,k,N):Lo(c,k,N)}return c}function yE(n,o){return Nr(n,wc(n),o)}function bE(n,o){return Nr(n,Bp(n),o)}function Qi(n,o){return function(c,g){var h=ke(c)?k2:jT,b=o?o():{};return h(c,n,ue(g,2),b)}}function xa(n){return Ve(function(o,c){var g=-1,h=c.length,b=h>1?c[h-1]:r,x=h>2?c[2]:r;for(b=n.length>3&&typeof b=="function"?(h--,b):r,x&&kt(c[0],c[1],x)&&(b=h<3?r:b,h=1),o=Fe(o);++g<h;){var k=c[g];k&&n(o,k,g,b)}return o})}function yp(n,o){return function(c,g){if(c==null)return c;if(!Nt(c))return n(c,g);for(var h=c.length,b=o?h:-1,x=Fe(c);(o?b--:++b<h)&&g(x[b],b,x)!==!1;);return c}}function bp(n){return function(o,c,g){for(var h=-1,b=Fe(o),x=g(o),k=x.length;k--;){var N=x[n?k:++h];if(c(b[N],N,b)===!1)break}return o}}function vE(n,o,c){var g=o&M,h=jo(n);function b(){var x=this&&this!==dt&&this instanceof b?h:n;return x.apply(g?c:this,arguments)}return b}function vp(n){return function(o){o=Pe(o);var c=fa(o)?yr(o):r,g=c?c[0]:o.charAt(0),h=c?vn(c,1).join(""):o.slice(1);return g[n]()+h}}function _a(n){return function(o){return Rs(bf(yf(o).replace(c2,"")),n,"")}}function jo(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var c=wa(n.prototype),g=n.apply(c,o);return Ge(g)?g:c}}function wE(n,o,c){var g=jo(n);function h(){for(var b=arguments.length,x=L(b),k=b,N=ka(h);k--;)x[k]=arguments[k];var $=b<3&&x[0]!==N&&x[b-1]!==N?[]:fn(x,N);if(b-=$.length,b<c)return Cp(n,o,Xi,h.placeholder,r,x,$,r,r,c-b);var U=this&&this!==dt&&this instanceof h?g:n;return Pt(U,this,x)}return h}function wp(n){return function(o,c,g){var h=Fe(o);if(!Nt(o)){var b=ue(c,3);o=ct(o),c=function(k){return b(h[k],k,h)}}var x=n(o,c,g);return x>-1?h[b?o[x]:x]:r}}function xp(n){return $r(function(o){var c=o.length,g=c,h=Gt.prototype.thru;for(n&&o.reverse();g--;){var b=o[g];if(typeof b!="function")throw new Yt(d);if(h&&!x&&nl(b)=="wrapper")var x=new Gt([],!0)}for(g=x?g:c;++g<c;){b=o[g];var k=nl(b),N=k=="wrapper"?bc(b):r;N&&_c(N[0])&&N[1]==(F|I|j|B)&&!N[4].length&&N[9]==1?x=x[nl(N[0])].apply(x,N[3]):x=b.length==1&&_c(b)?x[k]():x.thru(b)}return function(){var $=arguments,U=$[0];if(x&&$.length==1&&ke(U))return x.plant(U).value();for(var q=0,ee=c?o[q].apply(this,$):U;++q<c;)ee=o[q].call(this,ee);return ee}})}function Xi(n,o,c,g,h,b,x,k,N,$){var U=o&F,q=o&M,ee=o&v,le=o&(I|W),pe=o&H,Be=ee?r:jo(n);function fe(){for(var Me=arguments.length,Ae=L(Me),Zt=Me;Zt--;)Ae[Zt]=arguments[Zt];if(le)var Ct=ka(fe),Ut=z2(Ae,Ct);if(g&&(Ae=hp(Ae,g,h,le)),b&&(Ae=mp(Ae,b,x,le)),Me-=Ut,le&&Me<$){var tt=fn(Ae,Ct);return Cp(n,o,Xi,fe.placeholder,c,Ae,tt,k,N,$-Me)}var wr=q?c:this,Wr=ee?wr[n]:n;return Me=Ae.length,k?Ae=jE(Ae,k):pe&&Me>1&&Ae.reverse(),U&&N<Me&&(Ae.length=N),this&&this!==dt&&this instanceof fe&&(Wr=Be||jo(Wr)),Wr.apply(wr,Ae)}return fe}function _p(n,o){return function(c,g){return YT(c,n,o(g),{})}}function el(n,o){return function(c,g){var h;if(c===r&&g===r)return o;if(c!==r&&(h=c),g!==r){if(h===r)return g;typeof c=="string"||typeof g=="string"?(c=Ft(c),g=Ft(g)):(c=lp(c),g=lp(g)),h=n(c,g)}return h}}function fc(n){return $r(function(o){return o=We(o,jt(ue())),Ve(function(c){var g=this;return n(o,function(h){return Pt(h,g,c)})})})}function tl(n,o){o=o===r?" ":Ft(o);var c=o.length;if(c<2)return c?lc(o,n):o;var g=lc(o,Fi(n/ha(o)));return fa(o)?vn(yr(g),0,n).join(""):g.slice(0,n)}function xE(n,o,c,g){var h=o&M,b=jo(n);function x(){for(var k=-1,N=arguments.length,$=-1,U=g.length,q=L(U+N),ee=this&&this!==dt&&this instanceof x?b:n;++$<U;)q[$]=g[$];for(;N--;)q[$++]=arguments[++k];return Pt(ee,h?c:this,q)}return x}function kp(n){return function(o,c,g){return g&&typeof g!="number"&&kt(o,c,g)&&(c=g=r),o=Hr(o),c===r?(c=o,o=0):c=Hr(c),g=g===r?o<c?1:-1:Hr(g),iE(o,c,g,n)}}function rl(n){return function(o,c){return typeof o=="string"&&typeof c=="string"||(o=Xt(o),c=Xt(c)),n(o,c)}}function Cp(n,o,c,g,h,b,x,k,N,$){var U=o&I,q=U?x:r,ee=U?r:x,le=U?b:r,pe=U?r:b;o|=U?j:Y,o&=~(U?Y:j),o&A||(o&=~(M|v));var Be=[n,o,h,le,q,pe,ee,k,N,$],fe=c.apply(r,Be);return _c(n)&&Ip(fe,Be),fe.placeholder=g,Dp(fe,n,o)}function hc(n){var o=ot[n];return function(c,g){if(c=Xt(c),g=g==null?0:mt(Te(g),292),g&&Dg(c)){var h=(Pe(c)+"e").split("e"),b=o(h[0]+"e"+(+h[1]+g));return h=(Pe(b)+"e").split("e"),+(h[0]+"e"+(+h[1]-g))}return o(c)}}var _E=ba&&1/Mi(new ba([,-0]))[1]==ye?function(n){return new ba(n)}:Dc;function Sp(n){return function(o){var c=yt(o);return c==hr?Hs(o):c==mr?P2(o):M2(o,n(o))}}function Fr(n,o,c,g,h,b,x,k){var N=o&v;if(!N&&typeof n!="function")throw new Yt(d);var $=g?g.length:0;if($||(o&=~(j|Y),g=h=r),x=x===r?x:it(Te(x),0),k=k===r?k:Te(k),$-=h?h.length:0,o&Y){var U=g,q=h;g=h=r}var ee=N?r:bc(n),le=[n,o,c,g,h,U,q,b,x,k];if(ee&&DE(le,ee),n=le[0],o=le[1],c=le[2],g=le[3],h=le[4],k=le[9]=le[9]===r?N?0:n.length:it(le[9]-$,0),!k&&o&(I|W)&&(o&=~(I|W)),!o||o==M)var pe=vE(n,o,c);else o==I||o==W?pe=wE(n,o,k):(o==j||o==(M|j))&&!h.length?pe=xE(n,o,c,g):pe=Xi.apply(r,le);var Be=ee?op:Ip;return Dp(Be(pe,le),n,o)}function Tp(n,o,c,g){return n===r||vr(n,ya[c])&&!je.call(g,c)?o:n}function Ep(n,o,c,g,h,b){return Ge(n)&&Ge(o)&&(b.set(o,n),Gi(n,o,r,Ep,b),b.delete(o)),n}function kE(n){return Zo(n)?r:n}function Np(n,o,c,g,h,b){var x=c&O,k=n.length,N=o.length;if(k!=N&&!(x&&N>k))return!1;var $=b.get(n),U=b.get(o);if($&&U)return $==o&&U==n;var q=-1,ee=!0,le=c&S?new jn:r;for(b.set(n,o),b.set(o,n);++q<k;){var pe=n[q],Be=o[q];if(g)var fe=x?g(Be,pe,q,o,n,b):g(pe,Be,q,n,o,b);if(fe!==r){if(fe)continue;ee=!1;break}if(le){if(!Ps(o,function(Me,Ae){if(!Bo(le,Ae)&&(pe===Me||h(pe,Me,c,g,b)))return le.push(Ae)})){ee=!1;break}}else if(!(pe===Be||h(pe,Be,c,g,b))){ee=!1;break}}return b.delete(n),b.delete(o),ee}function CE(n,o,c,g,h,b,x){switch(c){case ua:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case No:return!(n.byteLength!=o.byteLength||!b(new Di(n),new Di(o)));case _o:case ko:case Co:return vr(+n,+o);case ki:return n.name==o.name&&n.message==o.message;case So:case To:return n==o+"";case hr:var k=Hs;case mr:var N=g&O;if(k||(k=Mi),n.size!=o.size&&!N)return!1;var $=x.get(n);if($)return $==o;g|=S,x.set(n,o);var U=Np(k(n),k(o),g,h,b,x);return x.delete(n),U;case Si:if(Oo)return Oo.call(n)==Oo.call(o)}return!1}function SE(n,o,c,g,h,b){var x=c&O,k=mc(n),N=k.length,$=mc(o),U=$.length;if(N!=U&&!x)return!1;for(var q=N;q--;){var ee=k[q];if(!(x?ee in o:je.call(o,ee)))return!1}var le=b.get(n),pe=b.get(o);if(le&&pe)return le==o&&pe==n;var Be=!0;b.set(n,o),b.set(o,n);for(var fe=x;++q<N;){ee=k[q];var Me=n[ee],Ae=o[ee];if(g)var Zt=x?g(Ae,Me,ee,o,n,b):g(Me,Ae,ee,n,o,b);if(!(Zt===r?Me===Ae||h(Me,Ae,c,g,b):Zt)){Be=!1;break}fe||(fe=ee=="constructor")}if(Be&&!fe){var Ct=n.constructor,Ut=o.constructor;Ct!=Ut&&"constructor"in n&&"constructor"in o&&!(typeof Ct=="function"&&Ct instanceof Ct&&typeof Ut=="function"&&Ut instanceof Ut)&&(Be=!1)}return b.delete(n),b.delete(o),Be}function $r(n){return Cc(Op(n,r,Zp),n+"")}function mc(n){return Yg(n,ct,wc)}function yc(n){return Yg(n,Bt,Bp)}var bc=Zi?function(n){return Zi.get(n)}:Dc;function nl(n){for(var o=n.name+"",c=va[o],g=je.call(va,o)?c.length:0;g--;){var h=c[g],b=h.func;if(b==null||b==n)return h.name}return o}function ka(n){var o=je.call(y,"placeholder")?y:n;return o.placeholder}function ue(){var n=y.iteratee||Lc;return n=n===Lc?Jg:n,arguments.length?n(arguments[0],arguments[1]):n}function al(n,o){var c=n.__data__;return AE(o)?c[typeof o=="string"?"string":"hash"]:c.map}function vc(n){for(var o=ct(n),c=o.length;c--;){var g=o[c],h=n[g];o[c]=[g,h,zp(h)]}return o}function Zn(n,o){var c=I2(n,o);return Kg(c)?c:r}function TE(n){var o=je.call(n,Rn),c=n[Rn];try{n[Rn]=r;var g=!0}catch{}var h=Li.call(n);return g&&(o?n[Rn]=c:delete n[Rn]),h}var wc=qs?function(n){return n==null?[]:(n=Fe(n),gn(qs(n),function(o){return Lg.call(n,o)}))}:Rc,Bp=qs?function(n){for(var o=[];n;)pn(o,wc(n)),n=Ri(n);return o}:Rc,yt=_t;(Ys&&yt(new Ys(new ArrayBuffer(1)))!=ua||Mo&&yt(new Mo)!=hr||Gs&&yt(Gs.resolve())!=Hu||ba&&yt(new ba)!=mr||zo&&yt(new zo)!=Eo)&&(yt=function(n){var o=_t(n),c=o==Dr?n.constructor:r,g=c?Un(c):"";if(g)switch(g){case sT:return ua;case cT:return hr;case dT:return Hu;case uT:return mr;case gT:return Eo}return o});function EE(n,o,c){for(var g=-1,h=c.length;++g<h;){var b=c[g],x=b.size;switch(b.type){case"drop":n+=x;break;case"dropRight":o-=x;break;case"take":o=mt(o,n+x);break;case"takeRight":n=it(n,o-x);break}}return{start:n,end:o}}function NE(n){var o=n.match(OS);return o?o[1].split(LS):[]}function Vp(n,o,c){o=bn(o,n);for(var g=-1,h=o.length,b=!1;++g<h;){var x=Br(o[g]);if(!(b=n!=null&&c(n,x)))break;n=n[x]}return b||++g!=h?b:(h=n==null?0:n.length,!!h&&ul(h)&&Zr(x,h)&&(ke(n)||Hn(n)))}function BE(n){var o=n.length,c=new n.constructor(o);return o&&typeof n[0]=="string"&&je.call(n,"index")&&(c.index=n.index,c.input=n.input),c}function Mp(n){return typeof n.constructor=="function"&&!Fo(n)?wa(Ri(n)):{}}function VE(n,o,c){var g=n.constructor;switch(o){case No:return pc(n);case _o:case ko:return new g(+n);case ua:return pE(n,c);case vs:case ws:case xs:case _s:case ks:case Cs:case Ss:case Ts:case Es:return pp(n,c);case hr:return new g;case Co:case To:return new g(n);case So:return fE(n);case mr:return new g;case Si:return hE(n)}}function ME(n,o){var c=o.length;if(!c)return n;var g=c-1;return o[g]=(c>1?"& ":"")+o[g],o=o.join(c>2?", ":" "),n.replace(AS,`{
|
|
45
|
-
/* [wrapped with `+
|
|
46
|
-
`)}function zE(n){return ke(n)||Hn(n)||!!(Ig&&n&&n[Ig])}function Zr(n,o){var c=typeof n;return o=o??_e,!!o&&(c=="number"||c!="symbol"&&US.test(n))&&n>-1&&n%1==0&&n<o}function kt(n,o,c){if(!Ge(c))return!1;var g=typeof o;return(g=="number"?Nt(c)&&Zr(o,c.length):g=="string"&&o in c)?vr(c[o],n):!1}function xc(n,o){if(ke(n))return!1;var c=typeof n;return c=="number"||c=="symbol"||c=="boolean"||n==null||$t(n)?!0:BS.test(n)||!NS.test(n)||o!=null&&n in Fe(o)}function AE(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function _c(n){var o=nl(n),c=y[o];if(typeof c!="function"||!(o in ze.prototype))return!1;if(n===c)return!0;var g=bc(c);return!!g&&n===g[0]}function OE(n){return!!zg&&zg in n}var LE=Ai?Ur:Pc;function Fo(n){var o=n&&n.constructor,c=typeof o=="function"&&o.prototype||ya;return n===c}function zp(n){return n===n&&!Ge(n)}function Ap(n,o){return function(c){return c==null?!1:c[n]===o&&(o!==r||n in Fe(c))}}function IE(n){var o=cl(n,function(g){return c.size===f&&c.clear(),g}),c=o.cache;return o}function DE(n,o){var c=n[1],g=o[1],h=c|g,b=h<(M|v|F),x=g==F&&c==I||g==F&&c==B&&n[7].length<=o[8]||g==(F|B)&&o[7].length<=o[8]&&c==I;if(!(b||x))return n;g&M&&(n[2]=o[2],h|=c&M?0:A);var k=o[3];if(k){var N=n[3];n[3]=N?hp(N,k,o[4]):k,n[4]=N?fn(n[3],m):o[4]}return k=o[5],k&&(N=n[5],n[5]=N?mp(N,k,o[6]):k,n[6]=N?fn(n[5],m):o[6]),k=o[7],k&&(n[7]=k),g&F&&(n[8]=n[8]==null?o[8]:mt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=h,n}function RE(n){var o=[];if(n!=null)for(var c in Fe(n))o.push(c);return o}function PE(n){return Li.call(n)}function Op(n,o,c){return o=it(o===r?n.length-1:o,0),function(){for(var g=arguments,h=-1,b=it(g.length-o,0),x=L(b);++h<b;)x[h]=g[o+h];h=-1;for(var k=L(o+1);++h<o;)k[h]=g[h];return k[o]=c(x),Pt(n,this,k)}}function Lp(n,o){return o.length<2?n:$n(n,Jt(o,0,-1))}function jE(n,o){for(var c=n.length,g=mt(o.length,c),h=Et(n);g--;){var b=o[g];n[g]=Zr(b,c)?h[b]:r}return n}function kc(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Ip=Rp(op),$o=tT||function(n,o){return dt.setTimeout(n,o)},Cc=Rp(cE);function Dp(n,o,c){var g=o+"";return Cc(n,ME(g,FE(NE(g),c)))}function Rp(n){var o=0,c=0;return function(){var g=oT(),h=Z-(g-c);if(c=g,h>0){if(++o>=de)return arguments[0]}else o=0;return n.apply(r,arguments)}}function ol(n,o){var c=-1,g=n.length,h=g-1;for(o=o===r?g:o;++c<o;){var b=ic(c,h),x=n[b];n[b]=n[c],n[c]=x}return n.length=o,n}var Pp=IE(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(VS,function(c,g,h,b){o.push(h?b.replace(RS,"$1"):g||c)}),o});function Br(n){if(typeof n=="string"||$t(n))return n;var o=n+"";return o=="0"&&1/n==-ye?"-0":o}function Un(n){if(n!=null){try{return Oi.call(n)}catch{}try{return n+""}catch{}}return""}function FE(n,o){return qt(xo,function(c){var g="_."+c[0];o&c[1]&&!Bi(n,g)&&n.push(g)}),n.sort()}function jp(n){if(n instanceof ze)return n.clone();var o=new Gt(n.__wrapped__,n.__chain__);return o.__actions__=Et(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function $E(n,o,c){(c?kt(n,o,c):o===r)?o=1:o=it(Te(o),0);var g=n==null?0:n.length;if(!g||o<1)return[];for(var h=0,b=0,x=L(Fi(g/o));h<g;)x[b++]=Jt(n,h,h+=o);return x}function ZE(n){for(var o=-1,c=n==null?0:n.length,g=0,h=[];++o<c;){var b=n[o];b&&(h[g++]=b)}return h}function UE(){var n=arguments.length;if(!n)return[];for(var o=L(n-1),c=arguments[0],g=n;g--;)o[g-1]=arguments[g];return pn(ke(c)?Et(c):[c],ut(o,1))}var HE=Ve(function(n,o){return et(n)?Io(n,ut(o,1,et,!0)):[]}),WE=Ve(function(n,o){var c=Qt(o);return et(c)&&(c=r),et(n)?Io(n,ut(o,1,et,!0),ue(c,2)):[]}),qE=Ve(function(n,o){var c=Qt(o);return et(c)&&(c=r),et(n)?Io(n,ut(o,1,et,!0),r,c):[]});function YE(n,o,c){var g=n==null?0:n.length;return g?(o=c||o===r?1:Te(o),Jt(n,o<0?0:o,g)):[]}function GE(n,o,c){var g=n==null?0:n.length;return g?(o=c||o===r?1:Te(o),o=g-o,Jt(n,0,o<0?0:o)):[]}function KE(n,o){return n&&n.length?Ji(n,ue(o,3),!0,!0):[]}function JE(n,o){return n&&n.length?Ji(n,ue(o,3),!0):[]}function QE(n,o,c,g){var h=n==null?0:n.length;return h?(c&&typeof c!="number"&&kt(n,o,c)&&(c=0,g=h),UT(n,o,c,g)):[]}function Fp(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var h=c==null?0:Te(c);return h<0&&(h=it(g+h,0)),Vi(n,ue(o,3),h)}function $p(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var h=g-1;return c!==r&&(h=Te(c),h=c<0?it(g+h,0):mt(h,g-1)),Vi(n,ue(o,3),h,!0)}function Zp(n){var o=n==null?0:n.length;return o?ut(n,1):[]}function XE(n){var o=n==null?0:n.length;return o?ut(n,ye):[]}function eN(n,o){var c=n==null?0:n.length;return c?(o=o===r?1:Te(o),ut(n,o)):[]}function tN(n){for(var o=-1,c=n==null?0:n.length,g={};++o<c;){var h=n[o];g[h[0]]=h[1]}return g}function Up(n){return n&&n.length?n[0]:r}function rN(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var h=c==null?0:Te(c);return h<0&&(h=it(g+h,0)),pa(n,o,h)}function nN(n){var o=n==null?0:n.length;return o?Jt(n,0,-1):[]}var aN=Ve(function(n){var o=We(n,uc);return o.length&&o[0]===n[0]?tc(o):[]}),oN=Ve(function(n){var o=Qt(n),c=We(n,uc);return o===Qt(c)?o=r:c.pop(),c.length&&c[0]===n[0]?tc(c,ue(o,2)):[]}),iN=Ve(function(n){var o=Qt(n),c=We(n,uc);return o=typeof o=="function"?o:r,o&&c.pop(),c.length&&c[0]===n[0]?tc(c,r,o):[]});function lN(n,o){return n==null?"":nT.call(n,o)}function Qt(n){var o=n==null?0:n.length;return o?n[o-1]:r}function sN(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var h=g;return c!==r&&(h=Te(c),h=h<0?it(g+h,0):mt(h,g-1)),o===o?F2(n,o,h):Vi(n,Cg,h,!0)}function cN(n,o){return n&&n.length?tp(n,Te(o)):r}var dN=Ve(Hp);function Hp(n,o){return n&&n.length&&o&&o.length?oc(n,o):n}function uN(n,o,c){return n&&n.length&&o&&o.length?oc(n,o,ue(c,2)):n}function gN(n,o,c){return n&&n.length&&o&&o.length?oc(n,o,r,c):n}var pN=$r(function(n,o){var c=n==null?0:n.length,g=Js(n,o);return ap(n,We(o,function(h){return Zr(h,c)?+h:h}).sort(fp)),g});function fN(n,o){var c=[];if(!(n&&n.length))return c;var g=-1,h=[],b=n.length;for(o=ue(o,3);++g<b;){var x=n[g];o(x,g,n)&&(c.push(x),h.push(g))}return ap(n,h),c}function Sc(n){return n==null?n:lT.call(n)}function hN(n,o,c){var g=n==null?0:n.length;return g?(c&&typeof c!="number"&&kt(n,o,c)?(o=0,c=g):(o=o==null?0:Te(o),c=c===r?g:Te(c)),Jt(n,o,c)):[]}function mN(n,o){return Ki(n,o)}function yN(n,o,c){return sc(n,o,ue(c,2))}function bN(n,o){var c=n==null?0:n.length;if(c){var g=Ki(n,o);if(g<c&&vr(n[g],o))return g}return-1}function vN(n,o){return Ki(n,o,!0)}function wN(n,o,c){return sc(n,o,ue(c,2),!0)}function xN(n,o){var c=n==null?0:n.length;if(c){var g=Ki(n,o,!0)-1;if(vr(n[g],o))return g}return-1}function _N(n){return n&&n.length?ip(n):[]}function kN(n,o){return n&&n.length?ip(n,ue(o,2)):[]}function CN(n){var o=n==null?0:n.length;return o?Jt(n,1,o):[]}function SN(n,o,c){return n&&n.length?(o=c||o===r?1:Te(o),Jt(n,0,o<0?0:o)):[]}function TN(n,o,c){var g=n==null?0:n.length;return g?(o=c||o===r?1:Te(o),o=g-o,Jt(n,o<0?0:o,g)):[]}function EN(n,o){return n&&n.length?Ji(n,ue(o,3),!1,!0):[]}function NN(n,o){return n&&n.length?Ji(n,ue(o,3)):[]}var BN=Ve(function(n){return yn(ut(n,1,et,!0))}),VN=Ve(function(n){var o=Qt(n);return et(o)&&(o=r),yn(ut(n,1,et,!0),ue(o,2))}),MN=Ve(function(n){var o=Qt(n);return o=typeof o=="function"?o:r,yn(ut(n,1,et,!0),r,o)});function zN(n){return n&&n.length?yn(n):[]}function AN(n,o){return n&&n.length?yn(n,ue(o,2)):[]}function ON(n,o){return o=typeof o=="function"?o:r,n&&n.length?yn(n,r,o):[]}function Tc(n){if(!(n&&n.length))return[];var o=0;return n=gn(n,function(c){if(et(c))return o=it(c.length,o),!0}),Zs(o,function(c){return We(n,js(c))})}function Wp(n,o){if(!(n&&n.length))return[];var c=Tc(n);return o==null?c:We(c,function(g){return Pt(o,r,g)})}var LN=Ve(function(n,o){return et(n)?Io(n,o):[]}),IN=Ve(function(n){return dc(gn(n,et))}),DN=Ve(function(n){var o=Qt(n);return et(o)&&(o=r),dc(gn(n,et),ue(o,2))}),RN=Ve(function(n){var o=Qt(n);return o=typeof o=="function"?o:r,dc(gn(n,et),r,o)}),PN=Ve(Tc);function jN(n,o){return dp(n||[],o||[],Lo)}function FN(n,o){return dp(n||[],o||[],Po)}var $N=Ve(function(n){var o=n.length,c=o>1?n[o-1]:r;return c=typeof c=="function"?(n.pop(),c):r,Wp(n,c)});function qp(n){var o=y(n);return o.__chain__=!0,o}function ZN(n,o){return o(n),n}function il(n,o){return o(n)}var UN=$r(function(n){var o=n.length,c=o?n[0]:0,g=this.__wrapped__,h=function(b){return Js(b,n)};return o>1||this.__actions__.length||!(g instanceof ze)||!Zr(c)?this.thru(h):(g=g.slice(c,+c+(o?1:0)),g.__actions__.push({func:il,args:[h],thisArg:r}),new Gt(g,this.__chain__).thru(function(b){return o&&!b.length&&b.push(r),b}))});function HN(){return qp(this)}function WN(){return new Gt(this.value(),this.__chain__)}function qN(){this.__values__===r&&(this.__values__=sf(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function YN(){return this}function GN(n){for(var o,c=this;c instanceof Hi;){var g=jp(c);g.__index__=0,g.__values__=r,o?h.__wrapped__=g:o=g;var h=g;c=c.__wrapped__}return h.__wrapped__=n,o}function KN(){var n=this.__wrapped__;if(n instanceof ze){var o=n;return this.__actions__.length&&(o=new ze(this)),o=o.reverse(),o.__actions__.push({func:il,args:[Sc],thisArg:r}),new Gt(o,this.__chain__)}return this.thru(Sc)}function JN(){return cp(this.__wrapped__,this.__actions__)}var QN=Qi(function(n,o,c){je.call(n,c)?++n[c]:jr(n,c,1)});function XN(n,o,c){var g=ke(n)?_g:ZT;return c&&kt(n,o,c)&&(o=r),g(n,ue(o,3))}function eB(n,o){var c=ke(n)?gn:Wg;return c(n,ue(o,3))}var tB=wp(Fp),rB=wp($p);function nB(n,o){return ut(ll(n,o),1)}function aB(n,o){return ut(ll(n,o),ye)}function oB(n,o,c){return c=c===r?1:Te(c),ut(ll(n,o),c)}function Yp(n,o){var c=ke(n)?qt:mn;return c(n,ue(o,3))}function Gp(n,o){var c=ke(n)?C2:Hg;return c(n,ue(o,3))}var iB=Qi(function(n,o,c){je.call(n,c)?n[c].push(o):jr(n,c,[o])});function lB(n,o,c,g){n=Nt(n)?n:Sa(n),c=c&&!g?Te(c):0;var h=n.length;return c<0&&(c=it(h+c,0)),gl(n)?c<=h&&n.indexOf(o,c)>-1:!!h&&pa(n,o,c)>-1}var sB=Ve(function(n,o,c){var g=-1,h=typeof o=="function",b=Nt(n)?L(n.length):[];return mn(n,function(x){b[++g]=h?Pt(o,x,c):Do(x,o,c)}),b}),cB=Qi(function(n,o,c){jr(n,c,o)});function ll(n,o){var c=ke(n)?We:Qg;return c(n,ue(o,3))}function dB(n,o,c,g){return n==null?[]:(ke(o)||(o=o==null?[]:[o]),c=g?r:c,ke(c)||(c=c==null?[]:[c]),rp(n,o,c))}var uB=Qi(function(n,o,c){n[c?0:1].push(o)},function(){return[[],[]]});function gB(n,o,c){var g=ke(n)?Rs:Tg,h=arguments.length<3;return g(n,ue(o,4),c,h,mn)}function pB(n,o,c){var g=ke(n)?S2:Tg,h=arguments.length<3;return g(n,ue(o,4),c,h,Hg)}function fB(n,o){var c=ke(n)?gn:Wg;return c(n,dl(ue(o,3)))}function hB(n){var o=ke(n)?Fg:lE;return o(n)}function mB(n,o,c){(c?kt(n,o,c):o===r)?o=1:o=Te(o);var g=ke(n)?RT:sE;return g(n,o)}function yB(n){var o=ke(n)?PT:dE;return o(n)}function bB(n){if(n==null)return 0;if(Nt(n))return gl(n)?ha(n):n.length;var o=yt(n);return o==hr||o==mr?n.size:nc(n).length}function vB(n,o,c){var g=ke(n)?Ps:uE;return c&&kt(n,o,c)&&(o=r),g(n,ue(o,3))}var wB=Ve(function(n,o){if(n==null)return[];var c=o.length;return c>1&&kt(n,o[0],o[1])?o=[]:c>2&&kt(o[0],o[1],o[2])&&(o=[o[0]]),rp(n,ut(o,1),[])}),sl=eT||function(){return dt.Date.now()};function xB(n,o){if(typeof o!="function")throw new Yt(d);return n=Te(n),function(){if(--n<1)return o.apply(this,arguments)}}function Kp(n,o,c){return o=c?r:o,o=n&&o==null?n.length:o,Fr(n,F,r,r,r,r,o)}function Jp(n,o){var c;if(typeof o!="function")throw new Yt(d);return n=Te(n),function(){return--n>0&&(c=o.apply(this,arguments)),n<=1&&(o=r),c}}var Ec=Ve(function(n,o,c){var g=M;if(c.length){var h=fn(c,ka(Ec));g|=j}return Fr(n,g,o,c,h)}),Qp=Ve(function(n,o,c){var g=M|v;if(c.length){var h=fn(c,ka(Qp));g|=j}return Fr(o,g,n,c,h)});function Xp(n,o,c){o=c?r:o;var g=Fr(n,I,r,r,r,r,r,o);return g.placeholder=Xp.placeholder,g}function ef(n,o,c){o=c?r:o;var g=Fr(n,W,r,r,r,r,r,o);return g.placeholder=ef.placeholder,g}function tf(n,o,c){var g,h,b,x,k,N,$=0,U=!1,q=!1,ee=!0;if(typeof n!="function")throw new Yt(d);o=Xt(o)||0,Ge(c)&&(U=!!c.leading,q="maxWait"in c,b=q?it(Xt(c.maxWait)||0,o):b,ee="trailing"in c?!!c.trailing:ee);function le(tt){var wr=g,Wr=h;return g=h=r,$=tt,x=n.apply(Wr,wr),x}function pe(tt){return $=tt,k=$o(Me,o),U?le(tt):x}function Be(tt){var wr=tt-N,Wr=tt-$,xf=o-wr;return q?mt(xf,b-Wr):xf}function fe(tt){var wr=tt-N,Wr=tt-$;return N===r||wr>=o||wr<0||q&&Wr>=b}function Me(){var tt=sl();if(fe(tt))return Ae(tt);k=$o(Me,Be(tt))}function Ae(tt){return k=r,ee&&g?le(tt):(g=h=r,x)}function Zt(){k!==r&&up(k),$=0,g=N=h=k=r}function Ct(){return k===r?x:Ae(sl())}function Ut(){var tt=sl(),wr=fe(tt);if(g=arguments,h=this,N=tt,wr){if(k===r)return pe(N);if(q)return up(k),k=$o(Me,o),le(N)}return k===r&&(k=$o(Me,o)),x}return Ut.cancel=Zt,Ut.flush=Ct,Ut}var _B=Ve(function(n,o){return Ug(n,1,o)}),kB=Ve(function(n,o,c){return Ug(n,Xt(o)||0,c)});function CB(n){return Fr(n,H)}function cl(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(d);var c=function(){var g=arguments,h=o?o.apply(this,g):g[0],b=c.cache;if(b.has(h))return b.get(h);var x=n.apply(this,g);return c.cache=b.set(h,x)||b,x};return c.cache=new(cl.Cache||Pr),c}cl.Cache=Pr;function dl(n){if(typeof n!="function")throw new Yt(d);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function SB(n){return Jp(2,n)}var TB=gE(function(n,o){o=o.length==1&&ke(o[0])?We(o[0],jt(ue())):We(ut(o,1),jt(ue()));var c=o.length;return Ve(function(g){for(var h=-1,b=mt(g.length,c);++h<b;)g[h]=o[h].call(this,g[h]);return Pt(n,this,g)})}),Nc=Ve(function(n,o){var c=fn(o,ka(Nc));return Fr(n,j,r,o,c)}),rf=Ve(function(n,o){var c=fn(o,ka(rf));return Fr(n,Y,r,o,c)}),EB=$r(function(n,o){return Fr(n,B,r,r,r,o)});function NB(n,o){if(typeof n!="function")throw new Yt(d);return o=o===r?o:Te(o),Ve(n,o)}function BB(n,o){if(typeof n!="function")throw new Yt(d);return o=o==null?0:it(Te(o),0),Ve(function(c){var g=c[o],h=vn(c,0,o);return g&&pn(h,g),Pt(n,this,h)})}function VB(n,o,c){var g=!0,h=!0;if(typeof n!="function")throw new Yt(d);return Ge(c)&&(g="leading"in c?!!c.leading:g,h="trailing"in c?!!c.trailing:h),tf(n,o,{leading:g,maxWait:o,trailing:h})}function MB(n){return Kp(n,1)}function zB(n,o){return Nc(gc(o),n)}function AB(){if(!arguments.length)return[];var n=arguments[0];return ke(n)?n:[n]}function OB(n){return Kt(n,T)}function LB(n,o){return o=typeof o=="function"?o:r,Kt(n,T,o)}function IB(n){return Kt(n,_|T)}function DB(n,o){return o=typeof o=="function"?o:r,Kt(n,_|T,o)}function RB(n,o){return o==null||Zg(n,o,ct(o))}function vr(n,o){return n===o||n!==n&&o!==o}var PB=rl(ec),jB=rl(function(n,o){return n>=o}),Hn=Gg(function(){return arguments}())?Gg:function(n){return Je(n)&&je.call(n,"callee")&&!Lg.call(n,"callee")},ke=L.isArray,FB=mg?jt(mg):GT;function Nt(n){return n!=null&&ul(n.length)&&!Ur(n)}function et(n){return Je(n)&&Nt(n)}function $B(n){return n===!0||n===!1||Je(n)&&_t(n)==_o}var wn=rT||Pc,ZB=yg?jt(yg):KT;function UB(n){return Je(n)&&n.nodeType===1&&!Zo(n)}function HB(n){if(n==null)return!0;if(Nt(n)&&(ke(n)||typeof n=="string"||typeof n.splice=="function"||wn(n)||Ca(n)||Hn(n)))return!n.length;var o=yt(n);if(o==hr||o==mr)return!n.size;if(Fo(n))return!nc(n).length;for(var c in n)if(je.call(n,c))return!1;return!0}function WB(n,o){return Ro(n,o)}function qB(n,o,c){c=typeof c=="function"?c:r;var g=c?c(n,o):r;return g===r?Ro(n,o,r,c):!!g}function Bc(n){if(!Je(n))return!1;var o=_t(n);return o==ki||o==mS||typeof n.message=="string"&&typeof n.name=="string"&&!Zo(n)}function YB(n){return typeof n=="number"&&Dg(n)}function Ur(n){if(!Ge(n))return!1;var o=_t(n);return o==Ci||o==Uu||o==hS||o==bS}function nf(n){return typeof n=="number"&&n==Te(n)}function ul(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=_e}function Ge(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Je(n){return n!=null&&typeof n=="object"}var af=bg?jt(bg):QT;function GB(n,o){return n===o||rc(n,o,vc(o))}function KB(n,o,c){return c=typeof c=="function"?c:r,rc(n,o,vc(o),c)}function JB(n){return of(n)&&n!=+n}function QB(n){if(LE(n))throw new xe(s);return Kg(n)}function XB(n){return n===null}function eV(n){return n==null}function of(n){return typeof n=="number"||Je(n)&&_t(n)==Co}function Zo(n){if(!Je(n)||_t(n)!=Dr)return!1;var o=Ri(n);if(o===null)return!0;var c=je.call(o,"constructor")&&o.constructor;return typeof c=="function"&&c instanceof c&&Oi.call(c)==K2}var Vc=vg?jt(vg):XT;function tV(n){return nf(n)&&n>=-_e&&n<=_e}var lf=wg?jt(wg):eE;function gl(n){return typeof n=="string"||!ke(n)&&Je(n)&&_t(n)==To}function $t(n){return typeof n=="symbol"||Je(n)&&_t(n)==Si}var Ca=xg?jt(xg):tE;function rV(n){return n===r}function nV(n){return Je(n)&&yt(n)==Eo}function aV(n){return Je(n)&&_t(n)==wS}var oV=rl(ac),iV=rl(function(n,o){return n<=o});function sf(n){if(!n)return[];if(Nt(n))return gl(n)?yr(n):Et(n);if(Vo&&n[Vo])return R2(n[Vo]());var o=yt(n),c=o==hr?Hs:o==mr?Mi:Sa;return c(n)}function Hr(n){if(!n)return n===0?n:0;if(n=Xt(n),n===ye||n===-ye){var o=n<0?-1:1;return o*Rt}return n===n?n:0}function Te(n){var o=Hr(n),c=o%1;return o===o?c?o-c:o:0}function cf(n){return n?Fn(Te(n),0,Tt):0}function Xt(n){if(typeof n=="number")return n;if($t(n))return Ht;if(Ge(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ge(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Eg(n);var c=FS.test(n);return c||ZS.test(n)?x2(n.slice(2),c?2:8):jS.test(n)?Ht:+n}function df(n){return Nr(n,Bt(n))}function lV(n){return n?Fn(Te(n),-_e,_e):n===0?n:0}function Pe(n){return n==null?"":Ft(n)}var sV=xa(function(n,o){if(Fo(o)||Nt(o)){Nr(o,ct(o),n);return}for(var c in o)je.call(o,c)&&Lo(n,c,o[c])}),uf=xa(function(n,o){Nr(o,Bt(o),n)}),pl=xa(function(n,o,c,g){Nr(o,Bt(o),n,g)}),cV=xa(function(n,o,c,g){Nr(o,ct(o),n,g)}),dV=$r(Js);function uV(n,o){var c=wa(n);return o==null?c:$g(c,o)}var gV=Ve(function(n,o){n=Fe(n);var c=-1,g=o.length,h=g>2?o[2]:r;for(h&&kt(o[0],o[1],h)&&(g=1);++c<g;)for(var b=o[c],x=Bt(b),k=-1,N=x.length;++k<N;){var $=x[k],U=n[$];(U===r||vr(U,ya[$])&&!je.call(n,$))&&(n[$]=b[$])}return n}),pV=Ve(function(n){return n.push(r,Ep),Pt(gf,r,n)});function fV(n,o){return kg(n,ue(o,3),Er)}function hV(n,o){return kg(n,ue(o,3),Xs)}function mV(n,o){return n==null?n:Qs(n,ue(o,3),Bt)}function yV(n,o){return n==null?n:qg(n,ue(o,3),Bt)}function bV(n,o){return n&&Er(n,ue(o,3))}function vV(n,o){return n&&Xs(n,ue(o,3))}function wV(n){return n==null?[]:Yi(n,ct(n))}function xV(n){return n==null?[]:Yi(n,Bt(n))}function Mc(n,o,c){var g=n==null?r:$n(n,o);return g===r?c:g}function _V(n,o){return n!=null&&Vp(n,o,HT)}function zc(n,o){return n!=null&&Vp(n,o,WT)}var kV=_p(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=Li.call(o)),n[o]=c},Oc(Vt)),CV=_p(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=Li.call(o)),je.call(n,o)?n[o].push(c):n[o]=[c]},ue),SV=Ve(Do);function ct(n){return Nt(n)?jg(n):nc(n)}function Bt(n){return Nt(n)?jg(n,!0):rE(n)}function TV(n,o){var c={};return o=ue(o,3),Er(n,function(g,h,b){jr(c,o(g,h,b),g)}),c}function EV(n,o){var c={};return o=ue(o,3),Er(n,function(g,h,b){jr(c,h,o(g,h,b))}),c}var NV=xa(function(n,o,c){Gi(n,o,c)}),gf=xa(function(n,o,c,g){Gi(n,o,c,g)}),BV=$r(function(n,o){var c={};if(n==null)return c;var g=!1;o=We(o,function(b){return b=bn(b,n),g||(g=b.length>1),b}),Nr(n,yc(n),c),g&&(c=Kt(c,_|C|T,kE));for(var h=o.length;h--;)cc(c,o[h]);return c});function VV(n,o){return pf(n,dl(ue(o)))}var MV=$r(function(n,o){return n==null?{}:aE(n,o)});function pf(n,o){if(n==null)return{};var c=We(yc(n),function(g){return[g]});return o=ue(o),np(n,c,function(g,h){return o(g,h[0])})}function zV(n,o,c){o=bn(o,n);var g=-1,h=o.length;for(h||(h=1,n=r);++g<h;){var b=n==null?r:n[Br(o[g])];b===r&&(g=h,b=c),n=Ur(b)?b.call(n):b}return n}function AV(n,o,c){return n==null?n:Po(n,o,c)}function OV(n,o,c,g){return g=typeof g=="function"?g:r,n==null?n:Po(n,o,c,g)}var ff=Sp(ct),hf=Sp(Bt);function LV(n,o,c){var g=ke(n),h=g||wn(n)||Ca(n);if(o=ue(o,4),c==null){var b=n&&n.constructor;h?c=g?new b:[]:Ge(n)?c=Ur(b)?wa(Ri(n)):{}:c={}}return(h?qt:Er)(n,function(x,k,N){return o(c,x,k,N)}),c}function IV(n,o){return n==null?!0:cc(n,o)}function DV(n,o,c){return n==null?n:sp(n,o,gc(c))}function RV(n,o,c,g){return g=typeof g=="function"?g:r,n==null?n:sp(n,o,gc(c),g)}function Sa(n){return n==null?[]:Us(n,ct(n))}function PV(n){return n==null?[]:Us(n,Bt(n))}function jV(n,o,c){return c===r&&(c=o,o=r),c!==r&&(c=Xt(c),c=c===c?c:0),o!==r&&(o=Xt(o),o=o===o?o:0),Fn(Xt(n),o,c)}function FV(n,o,c){return o=Hr(o),c===r?(c=o,o=0):c=Hr(c),n=Xt(n),qT(n,o,c)}function $V(n,o,c){if(c&&typeof c!="boolean"&&kt(n,o,c)&&(o=c=r),c===r&&(typeof o=="boolean"?(c=o,o=r):typeof n=="boolean"&&(c=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Hr(n),o===r?(o=n,n=0):o=Hr(o)),n>o){var g=n;n=o,o=g}if(c||n%1||o%1){var h=Rg();return mt(n+h*(o-n+w2("1e-"+((h+"").length-1))),o)}return ic(n,o)}var ZV=_a(function(n,o,c){return o=o.toLowerCase(),n+(c?mf(o):o)});function mf(n){return Ac(Pe(n).toLowerCase())}function yf(n){return n=Pe(n),n&&n.replace(HS,A2).replace(d2,"")}function UV(n,o,c){n=Pe(n),o=Ft(o);var g=n.length;c=c===r?g:Fn(Te(c),0,g);var h=c;return c-=o.length,c>=0&&n.slice(c,h)==o}function HV(n){return n=Pe(n),n&&SS.test(n)?n.replace(qu,O2):n}function WV(n){return n=Pe(n),n&&MS.test(n)?n.replace(Ns,"\\$&"):n}var qV=_a(function(n,o,c){return n+(c?"-":"")+o.toLowerCase()}),YV=_a(function(n,o,c){return n+(c?" ":"")+o.toLowerCase()}),GV=vp("toLowerCase");function KV(n,o,c){n=Pe(n),o=Te(o);var g=o?ha(n):0;if(!o||g>=o)return n;var h=(o-g)/2;return tl($i(h),c)+n+tl(Fi(h),c)}function JV(n,o,c){n=Pe(n),o=Te(o);var g=o?ha(n):0;return o&&g<o?n+tl(o-g,c):n}function QV(n,o,c){n=Pe(n),o=Te(o);var g=o?ha(n):0;return o&&g<o?tl(o-g,c)+n:n}function XV(n,o,c){return c||o==null?o=0:o&&(o=+o),iT(Pe(n).replace(Bs,""),o||0)}function eM(n,o,c){return(c?kt(n,o,c):o===r)?o=1:o=Te(o),lc(Pe(n),o)}function tM(){var n=arguments,o=Pe(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var rM=_a(function(n,o,c){return n+(c?"_":"")+o.toLowerCase()});function nM(n,o,c){return c&&typeof c!="number"&&kt(n,o,c)&&(o=c=r),c=c===r?Tt:c>>>0,c?(n=Pe(n),n&&(typeof o=="string"||o!=null&&!Vc(o))&&(o=Ft(o),!o&&fa(n))?vn(yr(n),0,c):n.split(o,c)):[]}var aM=_a(function(n,o,c){return n+(c?" ":"")+Ac(o)});function oM(n,o,c){return n=Pe(n),c=c==null?0:Fn(Te(c),0,n.length),o=Ft(o),n.slice(c,c+o.length)==o}function iM(n,o,c){var g=y.templateSettings;c&&kt(n,o,c)&&(o=r),n=Pe(n),o=pl({},o,g,Tp);var h=pl({},o.imports,g.imports,Tp),b=ct(h),x=Us(h,b),k,N,$=0,U=o.interpolate||Ti,q="__p += '",ee=Ws((o.escape||Ti).source+"|"+U.source+"|"+(U===Yu?PS:Ti).source+"|"+(o.evaluate||Ti).source+"|$","g"),le="//# sourceURL="+(je.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++h2+"]")+`
|
|
47
|
-
`;
|
|
48
|
-
__e(`+
|
|
49
|
-
'`),
|
|
50
|
-
`+
|
|
51
|
-
__p += '`),
|
|
52
|
-
((__t = (`+
|
|
53
|
-
'`)
|
|
54
|
-
`;var
|
|
84
|
+
*/Si.exports,function(t,e){(function(){var r,o="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",u="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",y=1,S=2,k=4,D=1,E=2,A=1,w=2,L=4,R=8,H=16,G=32,K=64,U=128,P=256,W=512,F=30,Y="...",ue=800,j=16,B=1,O=2,X=3,ye=1/0,_e=9007199254740991,zt=17976931348623157e292,Ht=NaN,Nt=4294967295,Ta=Nt-1,On=Nt>>>1,Ea=[["ary",U],["bind",A],["bindKey",w],["curry",R],["curryRight",H],["flip",W],["partial",G],["partialRight",K],["rearg",P]],fo="[object Arguments]",Ai="[object Array]",jE="[object AsyncFunction]",Na="[object Boolean]",Aa="[object Date]",UE="[object DOMException]",Mi="[object Error]",Bi="[object Function]",Np="[object GeneratorFunction]",mr="[object Map]",Ma="[object Number]",ZE="[object Null]",Rr="[object Object]",Ap="[object Promise]",$E="[object Proxy]",Ba="[object RegExp]",vr="[object Set]",Pa="[object String]",Pi="[object Symbol]",WE="[object Undefined]",Da="[object WeakMap]",HE="[object WeakSet]",Va="[object ArrayBuffer]",mo="[object DataView]",Ls="[object Float32Array]",Is="[object Float64Array]",Fs="[object Int8Array]",Rs="[object Int16Array]",Os="[object Int32Array]",zs="[object Uint8Array]",Gs="[object Uint8ClampedArray]",js="[object Uint16Array]",Us="[object Uint32Array]",qE=/\b__p \+= '';/g,KE=/\b(__p \+=) '' \+/g,YE=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mp=/&(?:amp|lt|gt|quot|#39);/g,Bp=/[&<>"']/g,JE=RegExp(Mp.source),QE=RegExp(Bp.source),XE=/<%-([\s\S]+?)%>/g,eN=/<%([\s\S]+?)%>/g,Pp=/<%=([\s\S]+?)%>/g,tN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rN=/^\w*$/,nN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zs=/[\\^$.*+?()[\]{}|]/g,oN=RegExp(Zs.source),$s=/^\s+/,aN=/\s/,iN=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lN=/\{\n\/\* \[wrapped with (.+)\] \*/,sN=/,? & /,cN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dN=/[()=,{}\[\]\/\s]/,uN=/\\(\\)?/g,pN=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dp=/\w*$/,gN=/^[-+]0x[0-9a-f]+$/i,hN=/^0b[01]+$/i,fN=/^\[object .+?Constructor\]$/,mN=/^0o[0-7]+$/i,vN=/^(?:0|[1-9]\d*)$/,yN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Di=/($^)/,bN=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",wN="\\u0300-\\u036f",xN="\\ufe20-\\ufe2f",CN="\\u20d0-\\u20ff",Vp=wN+xN+CN,Lp="\\u2700-\\u27bf",Ip="a-z\\xdf-\\xf6\\xf8-\\xff",_N="\\xac\\xb1\\xd7\\xf7",kN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",SN="\\u2000-\\u206f",TN=" \\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",Fp="A-Z\\xc0-\\xd6\\xd8-\\xde",Rp="\\ufe0e\\ufe0f",Op=_N+kN+SN+TN,Ws="['’]",EN="["+Vi+"]",zp="["+Op+"]",Li="["+Vp+"]",Gp="\\d+",NN="["+Lp+"]",jp="["+Ip+"]",Up="[^"+Vi+Op+Gp+Lp+Ip+Fp+"]",Hs="\\ud83c[\\udffb-\\udfff]",AN="(?:"+Li+"|"+Hs+")",Zp="[^"+Vi+"]",qs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ks="[\\ud800-\\udbff][\\udc00-\\udfff]",vo="["+Fp+"]",$p="\\u200d",Wp="(?:"+jp+"|"+Up+")",MN="(?:"+vo+"|"+Up+")",Hp="(?:"+Ws+"(?:d|ll|m|re|s|t|ve))?",qp="(?:"+Ws+"(?:D|LL|M|RE|S|T|VE))?",Kp=AN+"?",Yp="["+Rp+"]?",BN="(?:"+$p+"(?:"+[Zp,qs,Ks].join("|")+")"+Yp+Kp+")*",PN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",DN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jp=Yp+Kp+BN,VN="(?:"+[NN,qs,Ks].join("|")+")"+Jp,LN="(?:"+[Zp+Li+"?",Li,qs,Ks,EN].join("|")+")",IN=RegExp(Ws,"g"),FN=RegExp(Li,"g"),Ys=RegExp(Hs+"(?="+Hs+")|"+LN+Jp,"g"),RN=RegExp([vo+"?"+jp+"+"+Hp+"(?="+[zp,vo,"$"].join("|")+")",MN+"+"+qp+"(?="+[zp,vo+Wp,"$"].join("|")+")",vo+"?"+Wp+"+"+Hp,vo+"+"+qp,DN,PN,Gp,VN].join("|"),"g"),ON=RegExp("["+$p+Vi+Vp+Rp+"]"),zN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,GN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jN=-1,We={};We[Ls]=We[Is]=We[Fs]=We[Rs]=We[Os]=We[zs]=We[Gs]=We[js]=We[Us]=!0,We[fo]=We[Ai]=We[Va]=We[Na]=We[mo]=We[Aa]=We[Mi]=We[Bi]=We[mr]=We[Ma]=We[Rr]=We[Ba]=We[vr]=We[Pa]=We[Da]=!1;var Ze={};Ze[fo]=Ze[Ai]=Ze[Va]=Ze[mo]=Ze[Na]=Ze[Aa]=Ze[Ls]=Ze[Is]=Ze[Fs]=Ze[Rs]=Ze[Os]=Ze[mr]=Ze[Ma]=Ze[Rr]=Ze[Ba]=Ze[vr]=Ze[Pa]=Ze[Pi]=Ze[zs]=Ze[Gs]=Ze[js]=Ze[Us]=!0,Ze[Mi]=Ze[Bi]=Ze[Da]=!1;var UN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ZN={"&":"&","<":"<",">":">",'"':""","'":"'"},$N={"&":"&","<":"<",">":">",""":'"',"'":"'"},WN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HN=parseFloat,qN=parseInt,Qp=typeof Bo=="object"&&Bo&&Bo.Object===Object&&Bo,KN=typeof self=="object"&&self&&self.Object===Object&&self,pt=Qp||KN||Function("return this")(),Js=e&&!e.nodeType&&e,zn=Js&&!0&&t&&!t.nodeType&&t,Xp=zn&&zn.exports===Js,Qs=Xp&&Qp.process,qt=function(){try{var N=zn&&zn.require&&zn.require("util").types;return N||Qs&&Qs.binding&&Qs.binding("util")}catch{}}(),eg=qt&&qt.isArrayBuffer,tg=qt&&qt.isDate,rg=qt&&qt.isMap,ng=qt&&qt.isRegExp,og=qt&&qt.isSet,ag=qt&&qt.isTypedArray;function Gt(N,z,I){switch(I.length){case 0:return N.call(z);case 1:return N.call(z,I[0]);case 2:return N.call(z,I[0],I[1]);case 3:return N.call(z,I[0],I[1],I[2])}return N.apply(z,I)}function YN(N,z,I,ie){for(var Ce=-1,Oe=N==null?0:N.length;++Ce<Oe;){var it=N[Ce];z(ie,it,I(it),N)}return ie}function Kt(N,z){for(var I=-1,ie=N==null?0:N.length;++I<ie&&z(N[I],I,N)!==!1;);return N}function JN(N,z){for(var I=N==null?0:N.length;I--&&z(N[I],I,N)!==!1;);return N}function ig(N,z){for(var I=-1,ie=N==null?0:N.length;++I<ie;)if(!z(N[I],I,N))return!1;return!0}function fn(N,z){for(var I=-1,ie=N==null?0:N.length,Ce=0,Oe=[];++I<ie;){var it=N[I];z(it,I,N)&&(Oe[Ce++]=it)}return Oe}function Ii(N,z){var I=N==null?0:N.length;return!!I&&yo(N,z,0)>-1}function Xs(N,z,I){for(var ie=-1,Ce=N==null?0:N.length;++ie<Ce;)if(I(z,N[ie]))return!0;return!1}function qe(N,z){for(var I=-1,ie=N==null?0:N.length,Ce=Array(ie);++I<ie;)Ce[I]=z(N[I],I,N);return Ce}function mn(N,z){for(var I=-1,ie=z.length,Ce=N.length;++I<ie;)N[Ce+I]=z[I];return N}function ec(N,z,I,ie){var Ce=-1,Oe=N==null?0:N.length;for(ie&&Oe&&(I=N[++Ce]);++Ce<Oe;)I=z(I,N[Ce],Ce,N);return I}function QN(N,z,I,ie){var Ce=N==null?0:N.length;for(ie&&Ce&&(I=N[--Ce]);Ce--;)I=z(I,N[Ce],Ce,N);return I}function tc(N,z){for(var I=-1,ie=N==null?0:N.length;++I<ie;)if(z(N[I],I,N))return!0;return!1}var XN=rc("length");function eA(N){return N.split("")}function tA(N){return N.match(cN)||[]}function lg(N,z,I){var ie;return I(N,function(Ce,Oe,it){if(z(Ce,Oe,it))return ie=Oe,!1}),ie}function Fi(N,z,I,ie){for(var Ce=N.length,Oe=I+(ie?1:-1);ie?Oe--:++Oe<Ce;)if(z(N[Oe],Oe,N))return Oe;return-1}function yo(N,z,I){return z===z?gA(N,z,I):Fi(N,sg,I)}function rA(N,z,I,ie){for(var Ce=I-1,Oe=N.length;++Ce<Oe;)if(ie(N[Ce],z))return Ce;return-1}function sg(N){return N!==N}function cg(N,z){var I=N==null?0:N.length;return I?oc(N,z)/I:Ht}function rc(N){return function(z){return z==null?r:z[N]}}function nc(N){return function(z){return N==null?r:N[z]}}function dg(N,z,I,ie,Ce){return Ce(N,function(Oe,it,Ue){I=ie?(ie=!1,Oe):z(I,Oe,it,Ue)}),I}function nA(N,z){var I=N.length;for(N.sort(z);I--;)N[I]=N[I].value;return N}function oc(N,z){for(var I,ie=-1,Ce=N.length;++ie<Ce;){var Oe=z(N[ie]);Oe!==r&&(I=I===r?Oe:I+Oe)}return I}function ac(N,z){for(var I=-1,ie=Array(N);++I<N;)ie[I]=z(I);return ie}function oA(N,z){return qe(z,function(I){return[I,N[I]]})}function ug(N){return N&&N.slice(0,fg(N)+1).replace($s,"")}function jt(N){return function(z){return N(z)}}function ic(N,z){return qe(z,function(I){return N[I]})}function La(N,z){return N.has(z)}function pg(N,z){for(var I=-1,ie=N.length;++I<ie&&yo(z,N[I],0)>-1;);return I}function gg(N,z){for(var I=N.length;I--&&yo(z,N[I],0)>-1;);return I}function aA(N,z){for(var I=N.length,ie=0;I--;)N[I]===z&&++ie;return ie}var iA=nc(UN),lA=nc(ZN);function sA(N){return"\\"+WN[N]}function cA(N,z){return N==null?r:N[z]}function bo(N){return ON.test(N)}function dA(N){return zN.test(N)}function uA(N){for(var z,I=[];!(z=N.next()).done;)I.push(z.value);return I}function lc(N){var z=-1,I=Array(N.size);return N.forEach(function(ie,Ce){I[++z]=[Ce,ie]}),I}function hg(N,z){return function(I){return N(z(I))}}function vn(N,z){for(var I=-1,ie=N.length,Ce=0,Oe=[];++I<ie;){var it=N[I];(it===z||it===f)&&(N[I]=f,Oe[Ce++]=I)}return Oe}function Ri(N){var z=-1,I=Array(N.size);return N.forEach(function(ie){I[++z]=ie}),I}function pA(N){var z=-1,I=Array(N.size);return N.forEach(function(ie){I[++z]=[ie,ie]}),I}function gA(N,z,I){for(var ie=I-1,Ce=N.length;++ie<Ce;)if(N[ie]===z)return ie;return-1}function hA(N,z,I){for(var ie=I+1;ie--;)if(N[ie]===z)return ie;return ie}function wo(N){return bo(N)?mA(N):XN(N)}function yr(N){return bo(N)?vA(N):eA(N)}function fg(N){for(var z=N.length;z--&&aN.test(N.charAt(z)););return z}var fA=nc($N);function mA(N){for(var z=Ys.lastIndex=0;Ys.test(N);)++z;return z}function vA(N){return N.match(Ys)||[]}function yA(N){return N.match(RN)||[]}var bA=function N(z){z=z==null?pt:xo.defaults(pt.Object(),z,xo.pick(pt,GN));var I=z.Array,ie=z.Date,Ce=z.Error,Oe=z.Function,it=z.Math,Ue=z.Object,sc=z.RegExp,wA=z.String,Yt=z.TypeError,Oi=I.prototype,xA=Oe.prototype,Co=Ue.prototype,zi=z["__core-js_shared__"],Gi=xA.toString,je=Co.hasOwnProperty,CA=0,mg=function(){var a=/[^.]+$/.exec(zi&&zi.keys&&zi.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ji=Co.toString,_A=Gi.call(Ue),kA=pt._,SA=sc("^"+Gi.call(je).replace(Zs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ui=Xp?z.Buffer:r,yn=z.Symbol,Zi=z.Uint8Array,vg=Ui?Ui.allocUnsafe:r,$i=hg(Ue.getPrototypeOf,Ue),yg=Ue.create,bg=Co.propertyIsEnumerable,Wi=Oi.splice,wg=yn?yn.isConcatSpreadable:r,Ia=yn?yn.iterator:r,Gn=yn?yn.toStringTag:r,Hi=function(){try{var a=Wn(Ue,"defineProperty");return a({},"",{}),a}catch{}}(),TA=z.clearTimeout!==pt.clearTimeout&&z.clearTimeout,EA=ie&&ie.now!==pt.Date.now&&ie.now,NA=z.setTimeout!==pt.setTimeout&&z.setTimeout,qi=it.ceil,Ki=it.floor,cc=Ue.getOwnPropertySymbols,AA=Ui?Ui.isBuffer:r,xg=z.isFinite,MA=Oi.join,BA=hg(Ue.keys,Ue),lt=it.max,yt=it.min,PA=ie.now,DA=z.parseInt,Cg=it.random,VA=Oi.reverse,dc=Wn(z,"DataView"),Fa=Wn(z,"Map"),uc=Wn(z,"Promise"),_o=Wn(z,"Set"),Ra=Wn(z,"WeakMap"),Oa=Wn(Ue,"create"),Yi=Ra&&new Ra,ko={},LA=Hn(dc),IA=Hn(Fa),FA=Hn(uc),RA=Hn(_o),OA=Hn(Ra),Ji=yn?yn.prototype:r,za=Ji?Ji.valueOf:r,_g=Ji?Ji.toString:r;function v(a){if(Xe(a)&&!ke(a)&&!(a instanceof De)){if(a instanceof Jt)return a;if(je.call(a,"__wrapped__"))return kh(a)}return new Jt(a)}var So=function(){function a(){}return function(l){if(!Je(l))return{};if(yg)return yg(l);a.prototype=l;var c=new a;return a.prototype=r,c}}();function Qi(){}function Jt(a,l){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=r}v.templateSettings={escape:XE,evaluate:eN,interpolate:Pp,variable:"",imports:{_:v}},v.prototype=Qi.prototype,v.prototype.constructor=v,Jt.prototype=So(Qi.prototype),Jt.prototype.constructor=Jt;function De(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Nt,this.__views__=[]}function zA(){var a=new De(this.__wrapped__);return a.__actions__=At(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=At(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=At(this.__views__),a}function GA(){if(this.__filtered__){var a=new De(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function jA(){var a=this.__wrapped__.value(),l=this.__dir__,c=ke(a),g=l<0,m=c?a.length:0,b=eB(0,m,this.__views__),_=b.start,T=b.end,M=T-_,Z=g?T:_-1,$=this.__iteratees__,q=$.length,te=0,se=yt(M,this.__takeCount__);if(!c||!g&&m==M&&se==M)return Hg(a,this.__actions__);var he=[];e:for(;M--&&te<se;){Z+=l;for(var Me=-1,fe=a[Z];++Me<q;){var Pe=$[Me],Ve=Pe.iteratee,$t=Pe.type,Tt=Ve(fe);if($t==O)fe=Tt;else if(!Tt){if($t==B)continue e;break e}}he[te++]=fe}return he}De.prototype=So(Qi.prototype),De.prototype.constructor=De;function jn(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var g=a[l];this.set(g[0],g[1])}}function UA(){this.__data__=Oa?Oa(null):{},this.size=0}function ZA(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function $A(a){var l=this.__data__;if(Oa){var c=l[a];return c===p?r:c}return je.call(l,a)?l[a]:r}function WA(a){var l=this.__data__;return Oa?l[a]!==r:je.call(l,a)}function HA(a,l){var c=this.__data__;return this.size+=this.has(a)?0:1,c[a]=Oa&&l===r?p:l,this}jn.prototype.clear=UA,jn.prototype.delete=ZA,jn.prototype.get=$A,jn.prototype.has=WA,jn.prototype.set=HA;function Or(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var g=a[l];this.set(g[0],g[1])}}function qA(){this.__data__=[],this.size=0}function KA(a){var l=this.__data__,c=Xi(l,a);if(c<0)return!1;var g=l.length-1;return c==g?l.pop():Wi.call(l,c,1),--this.size,!0}function YA(a){var l=this.__data__,c=Xi(l,a);return c<0?r:l[c][1]}function JA(a){return Xi(this.__data__,a)>-1}function QA(a,l){var c=this.__data__,g=Xi(c,a);return g<0?(++this.size,c.push([a,l])):c[g][1]=l,this}Or.prototype.clear=qA,Or.prototype.delete=KA,Or.prototype.get=YA,Or.prototype.has=JA,Or.prototype.set=QA;function zr(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var g=a[l];this.set(g[0],g[1])}}function XA(){this.size=0,this.__data__={hash:new jn,map:new(Fa||Or),string:new jn}}function eM(a){var l=ul(this,a).delete(a);return this.size-=l?1:0,l}function tM(a){return ul(this,a).get(a)}function rM(a){return ul(this,a).has(a)}function nM(a,l){var c=ul(this,a),g=c.size;return c.set(a,l),this.size+=c.size==g?0:1,this}zr.prototype.clear=XA,zr.prototype.delete=eM,zr.prototype.get=tM,zr.prototype.has=rM,zr.prototype.set=nM;function Un(a){var l=-1,c=a==null?0:a.length;for(this.__data__=new zr;++l<c;)this.add(a[l])}function oM(a){return this.__data__.set(a,p),this}function aM(a){return this.__data__.has(a)}Un.prototype.add=Un.prototype.push=oM,Un.prototype.has=aM;function br(a){var l=this.__data__=new Or(a);this.size=l.size}function iM(){this.__data__=new Or,this.size=0}function lM(a){var l=this.__data__,c=l.delete(a);return this.size=l.size,c}function sM(a){return this.__data__.get(a)}function cM(a){return this.__data__.has(a)}function dM(a,l){var c=this.__data__;if(c instanceof Or){var g=c.__data__;if(!Fa||g.length<i-1)return g.push([a,l]),this.size=++c.size,this;c=this.__data__=new zr(g)}return c.set(a,l),this.size=c.size,this}br.prototype.clear=iM,br.prototype.delete=lM,br.prototype.get=sM,br.prototype.has=cM,br.prototype.set=dM;function kg(a,l){var c=ke(a),g=!c&&qn(a),m=!c&&!g&&_n(a),b=!c&&!g&&!m&&Ao(a),_=c||g||m||b,T=_?ac(a.length,wA):[],M=T.length;for(var Z in a)(l||je.call(a,Z))&&!(_&&(Z=="length"||m&&(Z=="offset"||Z=="parent")||b&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||Zr(Z,M)))&&T.push(Z);return T}function Sg(a){var l=a.length;return l?a[Cc(0,l-1)]:r}function uM(a,l){return pl(At(a),Zn(l,0,a.length))}function pM(a){return pl(At(a))}function pc(a,l,c){(c!==r&&!wr(a[l],c)||c===r&&!(l in a))&&Gr(a,l,c)}function Ga(a,l,c){var g=a[l];(!(je.call(a,l)&&wr(g,c))||c===r&&!(l in a))&&Gr(a,l,c)}function Xi(a,l){for(var c=a.length;c--;)if(wr(a[c][0],l))return c;return-1}function gM(a,l,c,g){return bn(a,function(m,b,_){l(g,m,c(m),_)}),g}function Tg(a,l){return a&&Ar(l,ut(l),a)}function hM(a,l){return a&&Ar(l,Bt(l),a)}function Gr(a,l,c){l=="__proto__"&&Hi?Hi(a,l,{configurable:!0,enumerable:!0,value:c,writable:!0}):a[l]=c}function gc(a,l){for(var c=-1,g=l.length,m=I(g),b=a==null;++c<g;)m[c]=b?r:Hc(a,l[c]);return m}function Zn(a,l,c){return a===a&&(c!==r&&(a=a<=c?a:c),l!==r&&(a=a>=l?a:l)),a}function Qt(a,l,c,g,m,b){var _,T=l&y,M=l&S,Z=l&k;if(c&&(_=m?c(a,g,m,b):c(a)),_!==r)return _;if(!Je(a))return a;var $=ke(a);if($){if(_=rB(a),!T)return At(a,_)}else{var q=bt(a),te=q==Bi||q==Np;if(_n(a))return Yg(a,T);if(q==Rr||q==fo||te&&!m){if(_=M||te?{}:fh(a),!T)return M?$M(a,hM(_,a)):ZM(a,Tg(_,a))}else{if(!Ze[q])return m?a:{};_=nB(a,q,T)}}b||(b=new br);var se=b.get(a);if(se)return se;b.set(a,_),Zh(a)?a.forEach(function(fe){_.add(Qt(fe,l,c,fe,a,b))}):jh(a)&&a.forEach(function(fe,Pe){_.set(Pe,Qt(fe,l,c,Pe,a,b))});var he=Z?M?Dc:Pc:M?Bt:ut,Me=$?r:he(a);return Kt(Me||a,function(fe,Pe){Me&&(Pe=fe,fe=a[Pe]),Ga(_,Pe,Qt(fe,l,c,Pe,a,b))}),_}function fM(a){var l=ut(a);return function(c){return Eg(c,a,l)}}function Eg(a,l,c){var g=c.length;if(a==null)return!g;for(a=Ue(a);g--;){var m=c[g],b=l[m],_=a[m];if(_===r&&!(m in a)||!b(_))return!1}return!0}function Ng(a,l,c){if(typeof a!="function")throw new Yt(d);return qa(function(){a.apply(r,c)},l)}function ja(a,l,c,g){var m=-1,b=Ii,_=!0,T=a.length,M=[],Z=l.length;if(!T)return M;c&&(l=qe(l,jt(c))),g?(b=Xs,_=!1):l.length>=i&&(b=La,_=!1,l=new Un(l));e:for(;++m<T;){var $=a[m],q=c==null?$:c($);if($=g||$!==0?$:0,_&&q===q){for(var te=Z;te--;)if(l[te]===q)continue e;M.push($)}else b(l,q,g)||M.push($)}return M}var bn=th(Nr),Ag=th(fc,!0);function mM(a,l){var c=!0;return bn(a,function(g,m,b){return c=!!l(g,m,b),c}),c}function el(a,l,c){for(var g=-1,m=a.length;++g<m;){var b=a[g],_=l(b);if(_!=null&&(T===r?_===_&&!Zt(_):c(_,T)))var T=_,M=b}return M}function vM(a,l,c,g){var m=a.length;for(c=Ee(c),c<0&&(c=-c>m?0:m+c),g=g===r||g>m?m:Ee(g),g<0&&(g+=m),g=c>g?0:Wh(g);c<g;)a[c++]=l;return a}function Mg(a,l){var c=[];return bn(a,function(g,m,b){l(g,m,b)&&c.push(g)}),c}function gt(a,l,c,g,m){var b=-1,_=a.length;for(c||(c=aB),m||(m=[]);++b<_;){var T=a[b];l>0&&c(T)?l>1?gt(T,l-1,c,g,m):mn(m,T):g||(m[m.length]=T)}return m}var hc=rh(),Bg=rh(!0);function Nr(a,l){return a&&hc(a,l,ut)}function fc(a,l){return a&&Bg(a,l,ut)}function tl(a,l){return fn(l,function(c){return $r(a[c])})}function $n(a,l){l=xn(l,a);for(var c=0,g=l.length;a!=null&&c<g;)a=a[Mr(l[c++])];return c&&c==g?a:r}function Pg(a,l,c){var g=l(a);return ke(a)?g:mn(g,c(a))}function kt(a){return a==null?a===r?WE:ZE:Gn&&Gn in Ue(a)?XM(a):pB(a)}function mc(a,l){return a>l}function yM(a,l){return a!=null&&je.call(a,l)}function bM(a,l){return a!=null&&l in Ue(a)}function wM(a,l,c){return a>=yt(l,c)&&a<lt(l,c)}function vc(a,l,c){for(var g=c?Xs:Ii,m=a[0].length,b=a.length,_=b,T=I(b),M=1/0,Z=[];_--;){var $=a[_];_&&l&&($=qe($,jt(l))),M=yt($.length,M),T[_]=!c&&(l||m>=120&&$.length>=120)?new Un(_&&$):r}$=a[0];var q=-1,te=T[0];e:for(;++q<m&&Z.length<M;){var se=$[q],he=l?l(se):se;if(se=c||se!==0?se:0,!(te?La(te,he):g(Z,he,c))){for(_=b;--_;){var Me=T[_];if(!(Me?La(Me,he):g(a[_],he,c)))continue e}te&&te.push(he),Z.push(se)}}return Z}function xM(a,l,c,g){return Nr(a,function(m,b,_){l(g,c(m),b,_)}),g}function Ua(a,l,c){l=xn(l,a),a=bh(a,l);var g=a==null?a:a[Mr(er(l))];return g==null?r:Gt(g,a,c)}function Dg(a){return Xe(a)&&kt(a)==fo}function CM(a){return Xe(a)&&kt(a)==Va}function _M(a){return Xe(a)&&kt(a)==Aa}function Za(a,l,c,g,m){return a===l?!0:a==null||l==null||!Xe(a)&&!Xe(l)?a!==a&&l!==l:kM(a,l,c,g,Za,m)}function kM(a,l,c,g,m,b){var _=ke(a),T=ke(l),M=_?Ai:bt(a),Z=T?Ai:bt(l);M=M==fo?Rr:M,Z=Z==fo?Rr:Z;var $=M==Rr,q=Z==Rr,te=M==Z;if(te&&_n(a)){if(!_n(l))return!1;_=!0,$=!1}if(te&&!$)return b||(b=new br),_||Ao(a)?ph(a,l,c,g,m,b):JM(a,l,M,c,g,m,b);if(!(c&D)){var se=$&&je.call(a,"__wrapped__"),he=q&&je.call(l,"__wrapped__");if(se||he){var Me=se?a.value():a,fe=he?l.value():l;return b||(b=new br),m(Me,fe,c,g,b)}}return te?(b||(b=new br),QM(a,l,c,g,m,b)):!1}function SM(a){return Xe(a)&&bt(a)==mr}function yc(a,l,c,g){var m=c.length,b=m,_=!g;if(a==null)return!b;for(a=Ue(a);m--;){var T=c[m];if(_&&T[2]?T[1]!==a[T[0]]:!(T[0]in a))return!1}for(;++m<b;){T=c[m];var M=T[0],Z=a[M],$=T[1];if(_&&T[2]){if(Z===r&&!(M in a))return!1}else{var q=new br;if(g)var te=g(Z,$,M,a,l,q);if(!(te===r?Za($,Z,D|E,g,q):te))return!1}}return!0}function Vg(a){if(!Je(a)||lB(a))return!1;var l=$r(a)?SA:fN;return l.test(Hn(a))}function TM(a){return Xe(a)&&kt(a)==Ba}function EM(a){return Xe(a)&&bt(a)==vr}function NM(a){return Xe(a)&&yl(a.length)&&!!We[kt(a)]}function Lg(a){return typeof a=="function"?a:a==null?Pt:typeof a=="object"?ke(a)?Rg(a[0],a[1]):Fg(a):nf(a)}function bc(a){if(!Ha(a))return BA(a);var l=[];for(var c in Ue(a))je.call(a,c)&&c!="constructor"&&l.push(c);return l}function AM(a){if(!Je(a))return uB(a);var l=Ha(a),c=[];for(var g in a)g=="constructor"&&(l||!je.call(a,g))||c.push(g);return c}function wc(a,l){return a<l}function Ig(a,l){var c=-1,g=Mt(a)?I(a.length):[];return bn(a,function(m,b,_){g[++c]=l(m,b,_)}),g}function Fg(a){var l=Lc(a);return l.length==1&&l[0][2]?vh(l[0][0],l[0][1]):function(c){return c===a||yc(c,a,l)}}function Rg(a,l){return Fc(a)&&mh(l)?vh(Mr(a),l):function(c){var g=Hc(c,a);return g===r&&g===l?qc(c,a):Za(l,g,D|E)}}function rl(a,l,c,g,m){a!==l&&hc(l,function(b,_){if(m||(m=new br),Je(b))MM(a,l,_,c,rl,g,m);else{var T=g?g(Oc(a,_),b,_+"",a,l,m):r;T===r&&(T=b),pc(a,_,T)}},Bt)}function MM(a,l,c,g,m,b,_){var T=Oc(a,c),M=Oc(l,c),Z=_.get(M);if(Z){pc(a,c,Z);return}var $=b?b(T,M,c+"",a,l,_):r,q=$===r;if(q){var te=ke(M),se=!te&&_n(M),he=!te&&!se&&Ao(M);$=M,te||se||he?ke(T)?$=T:tt(T)?$=At(T):se?(q=!1,$=Yg(M,!0)):he?(q=!1,$=Jg(M,!0)):$=[]:Ka(M)||qn(M)?($=T,qn(T)?$=Hh(T):(!Je(T)||$r(T))&&($=fh(M))):q=!1}q&&(_.set(M,$),m($,M,g,b,_),_.delete(M)),pc(a,c,$)}function Og(a,l){var c=a.length;if(c)return l+=l<0?c:0,Zr(l,c)?a[l]:r}function zg(a,l,c){l.length?l=qe(l,function(b){return ke(b)?function(_){return $n(_,b.length===1?b[0]:b)}:b}):l=[Pt];var g=-1;l=qe(l,jt(pe()));var m=Ig(a,function(b,_,T){var M=qe(l,function(Z){return Z(b)});return{criteria:M,index:++g,value:b}});return nA(m,function(b,_){return UM(b,_,c)})}function BM(a,l){return Gg(a,l,function(c,g){return qc(a,g)})}function Gg(a,l,c){for(var g=-1,m=l.length,b={};++g<m;){var _=l[g],T=$n(a,_);c(T,_)&&$a(b,xn(_,a),T)}return b}function PM(a){return function(l){return $n(l,a)}}function xc(a,l,c,g){var m=g?rA:yo,b=-1,_=l.length,T=a;for(a===l&&(l=At(l)),c&&(T=qe(a,jt(c)));++b<_;)for(var M=0,Z=l[b],$=c?c(Z):Z;(M=m(T,$,M,g))>-1;)T!==a&&Wi.call(T,M,1),Wi.call(a,M,1);return a}function jg(a,l){for(var c=a?l.length:0,g=c-1;c--;){var m=l[c];if(c==g||m!==b){var b=m;Zr(m)?Wi.call(a,m,1):Sc(a,m)}}return a}function Cc(a,l){return a+Ki(Cg()*(l-a+1))}function DM(a,l,c,g){for(var m=-1,b=lt(qi((l-a)/(c||1)),0),_=I(b);b--;)_[g?b:++m]=a,a+=c;return _}function _c(a,l){var c="";if(!a||l<1||l>_e)return c;do l%2&&(c+=a),l=Ki(l/2),l&&(a+=a);while(l);return c}function Be(a,l){return zc(yh(a,l,Pt),a+"")}function VM(a){return Sg(Mo(a))}function LM(a,l){var c=Mo(a);return pl(c,Zn(l,0,c.length))}function $a(a,l,c,g){if(!Je(a))return a;l=xn(l,a);for(var m=-1,b=l.length,_=b-1,T=a;T!=null&&++m<b;){var M=Mr(l[m]),Z=c;if(M==="__proto__"||M==="constructor"||M==="prototype")return a;if(m!=_){var $=T[M];Z=g?g($,M,T):r,Z===r&&(Z=Je($)?$:Zr(l[m+1])?[]:{})}Ga(T,M,Z),T=T[M]}return a}var Ug=Yi?function(a,l){return Yi.set(a,l),a}:Pt,IM=Hi?function(a,l){return Hi(a,"toString",{configurable:!0,enumerable:!1,value:Yc(l),writable:!0})}:Pt;function FM(a){return pl(Mo(a))}function Xt(a,l,c){var g=-1,m=a.length;l<0&&(l=-l>m?0:m+l),c=c>m?m:c,c<0&&(c+=m),m=l>c?0:c-l>>>0,l>>>=0;for(var b=I(m);++g<m;)b[g]=a[g+l];return b}function RM(a,l){var c;return bn(a,function(g,m,b){return c=l(g,m,b),!c}),!!c}function nl(a,l,c){var g=0,m=a==null?g:a.length;if(typeof l=="number"&&l===l&&m<=On){for(;g<m;){var b=g+m>>>1,_=a[b];_!==null&&!Zt(_)&&(c?_<=l:_<l)?g=b+1:m=b}return m}return kc(a,l,Pt,c)}function kc(a,l,c,g){var m=0,b=a==null?0:a.length;if(b===0)return 0;l=c(l);for(var _=l!==l,T=l===null,M=Zt(l),Z=l===r;m<b;){var $=Ki((m+b)/2),q=c(a[$]),te=q!==r,se=q===null,he=q===q,Me=Zt(q);if(_)var fe=g||he;else Z?fe=he&&(g||te):T?fe=he&&te&&(g||!se):M?fe=he&&te&&!se&&(g||!Me):se||Me?fe=!1:fe=g?q<=l:q<l;fe?m=$+1:b=$}return yt(b,Ta)}function Zg(a,l){for(var c=-1,g=a.length,m=0,b=[];++c<g;){var _=a[c],T=l?l(_):_;if(!c||!wr(T,M)){var M=T;b[m++]=_===0?0:_}}return b}function $g(a){return typeof a=="number"?a:Zt(a)?Ht:+a}function Ut(a){if(typeof a=="string")return a;if(ke(a))return qe(a,Ut)+"";if(Zt(a))return _g?_g.call(a):"";var l=a+"";return l=="0"&&1/a==-ye?"-0":l}function wn(a,l,c){var g=-1,m=Ii,b=a.length,_=!0,T=[],M=T;if(c)_=!1,m=Xs;else if(b>=i){var Z=l?null:KM(a);if(Z)return Ri(Z);_=!1,m=La,M=new Un}else M=l?[]:T;e:for(;++g<b;){var $=a[g],q=l?l($):$;if($=c||$!==0?$:0,_&&q===q){for(var te=M.length;te--;)if(M[te]===q)continue e;l&&M.push(q),T.push($)}else m(M,q,c)||(M!==T&&M.push(q),T.push($))}return T}function Sc(a,l){return l=xn(l,a),a=bh(a,l),a==null||delete a[Mr(er(l))]}function Wg(a,l,c,g){return $a(a,l,c($n(a,l)),g)}function ol(a,l,c,g){for(var m=a.length,b=g?m:-1;(g?b--:++b<m)&&l(a[b],b,a););return c?Xt(a,g?0:b,g?b+1:m):Xt(a,g?b+1:0,g?m:b)}function Hg(a,l){var c=a;return c instanceof De&&(c=c.value()),ec(l,function(g,m){return m.func.apply(m.thisArg,mn([g],m.args))},c)}function Tc(a,l,c){var g=a.length;if(g<2)return g?wn(a[0]):[];for(var m=-1,b=I(g);++m<g;)for(var _=a[m],T=-1;++T<g;)T!=m&&(b[m]=ja(b[m]||_,a[T],l,c));return wn(gt(b,1),l,c)}function qg(a,l,c){for(var g=-1,m=a.length,b=l.length,_={};++g<m;){var T=g<b?l[g]:r;c(_,a[g],T)}return _}function Ec(a){return tt(a)?a:[]}function Nc(a){return typeof a=="function"?a:Pt}function xn(a,l){return ke(a)?a:Fc(a,l)?[a]:_h(Ge(a))}var OM=Be;function Cn(a,l,c){var g=a.length;return c=c===r?g:c,!l&&c>=g?a:Xt(a,l,c)}var Kg=TA||function(a){return pt.clearTimeout(a)};function Yg(a,l){if(l)return a.slice();var c=a.length,g=vg?vg(c):new a.constructor(c);return a.copy(g),g}function Ac(a){var l=new a.constructor(a.byteLength);return new Zi(l).set(new Zi(a)),l}function zM(a,l){var c=l?Ac(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset,a.byteLength)}function GM(a){var l=new a.constructor(a.source,Dp.exec(a));return l.lastIndex=a.lastIndex,l}function jM(a){return za?Ue(za.call(a)):{}}function Jg(a,l){var c=l?Ac(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset,a.length)}function Qg(a,l){if(a!==l){var c=a!==r,g=a===null,m=a===a,b=Zt(a),_=l!==r,T=l===null,M=l===l,Z=Zt(l);if(!T&&!Z&&!b&&a>l||b&&_&&M&&!T&&!Z||g&&_&&M||!c&&M||!m)return 1;if(!g&&!b&&!Z&&a<l||Z&&c&&m&&!g&&!b||T&&c&&m||!_&&m||!M)return-1}return 0}function UM(a,l,c){for(var g=-1,m=a.criteria,b=l.criteria,_=m.length,T=c.length;++g<_;){var M=Qg(m[g],b[g]);if(M){if(g>=T)return M;var Z=c[g];return M*(Z=="desc"?-1:1)}}return a.index-l.index}function Xg(a,l,c,g){for(var m=-1,b=a.length,_=c.length,T=-1,M=l.length,Z=lt(b-_,0),$=I(M+Z),q=!g;++T<M;)$[T]=l[T];for(;++m<_;)(q||m<b)&&($[c[m]]=a[m]);for(;Z--;)$[T++]=a[m++];return $}function eh(a,l,c,g){for(var m=-1,b=a.length,_=-1,T=c.length,M=-1,Z=l.length,$=lt(b-T,0),q=I($+Z),te=!g;++m<$;)q[m]=a[m];for(var se=m;++M<Z;)q[se+M]=l[M];for(;++_<T;)(te||m<b)&&(q[se+c[_]]=a[m++]);return q}function At(a,l){var c=-1,g=a.length;for(l||(l=I(g));++c<g;)l[c]=a[c];return l}function Ar(a,l,c,g){var m=!c;c||(c={});for(var b=-1,_=l.length;++b<_;){var T=l[b],M=g?g(c[T],a[T],T,c,a):r;M===r&&(M=a[T]),m?Gr(c,T,M):Ga(c,T,M)}return c}function ZM(a,l){return Ar(a,Ic(a),l)}function $M(a,l){return Ar(a,gh(a),l)}function al(a,l){return function(c,g){var m=ke(c)?YN:gM,b=l?l():{};return m(c,a,pe(g,2),b)}}function To(a){return Be(function(l,c){var g=-1,m=c.length,b=m>1?c[m-1]:r,_=m>2?c[2]:r;for(b=a.length>3&&typeof b=="function"?(m--,b):r,_&&St(c[0],c[1],_)&&(b=m<3?r:b,m=1),l=Ue(l);++g<m;){var T=c[g];T&&a(l,T,g,b)}return l})}function th(a,l){return function(c,g){if(c==null)return c;if(!Mt(c))return a(c,g);for(var m=c.length,b=l?m:-1,_=Ue(c);(l?b--:++b<m)&&g(_[b],b,_)!==!1;);return c}}function rh(a){return function(l,c,g){for(var m=-1,b=Ue(l),_=g(l),T=_.length;T--;){var M=_[a?T:++m];if(c(b[M],M,b)===!1)break}return l}}function WM(a,l,c){var g=l&A,m=Wa(a);function b(){var _=this&&this!==pt&&this instanceof b?m:a;return _.apply(g?c:this,arguments)}return b}function nh(a){return function(l){l=Ge(l);var c=bo(l)?yr(l):r,g=c?c[0]:l.charAt(0),m=c?Cn(c,1).join(""):l.slice(1);return g[a]()+m}}function Eo(a){return function(l){return ec(tf(ef(l).replace(IN,"")),a,"")}}function Wa(a){return function(){var l=arguments;switch(l.length){case 0:return new a;case 1:return new a(l[0]);case 2:return new a(l[0],l[1]);case 3:return new a(l[0],l[1],l[2]);case 4:return new a(l[0],l[1],l[2],l[3]);case 5:return new a(l[0],l[1],l[2],l[3],l[4]);case 6:return new a(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new a(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var c=So(a.prototype),g=a.apply(c,l);return Je(g)?g:c}}function HM(a,l,c){var g=Wa(a);function m(){for(var b=arguments.length,_=I(b),T=b,M=No(m);T--;)_[T]=arguments[T];var Z=b<3&&_[0]!==M&&_[b-1]!==M?[]:vn(_,M);if(b-=Z.length,b<c)return sh(a,l,il,m.placeholder,r,_,Z,r,r,c-b);var $=this&&this!==pt&&this instanceof m?g:a;return Gt($,this,_)}return m}function oh(a){return function(l,c,g){var m=Ue(l);if(!Mt(l)){var b=pe(c,3);l=ut(l),c=function(T){return b(m[T],T,m)}}var _=a(l,c,g);return _>-1?m[b?l[_]:_]:r}}function ah(a){return Ur(function(l){var c=l.length,g=c,m=Jt.prototype.thru;for(a&&l.reverse();g--;){var b=l[g];if(typeof b!="function")throw new Yt(d);if(m&&!_&&dl(b)=="wrapper")var _=new Jt([],!0)}for(g=_?g:c;++g<c;){b=l[g];var T=dl(b),M=T=="wrapper"?Vc(b):r;M&&Rc(M[0])&&M[1]==(U|R|G|P)&&!M[4].length&&M[9]==1?_=_[dl(M[0])].apply(_,M[3]):_=b.length==1&&Rc(b)?_[T]():_.thru(b)}return function(){var Z=arguments,$=Z[0];if(_&&Z.length==1&&ke($))return _.plant($).value();for(var q=0,te=c?l[q].apply(this,Z):$;++q<c;)te=l[q].call(this,te);return te}})}function il(a,l,c,g,m,b,_,T,M,Z){var $=l&U,q=l&A,te=l&w,se=l&(R|H),he=l&W,Me=te?r:Wa(a);function fe(){for(var Pe=arguments.length,Ve=I(Pe),$t=Pe;$t--;)Ve[$t]=arguments[$t];if(se)var Tt=No(fe),Wt=aA(Ve,Tt);if(g&&(Ve=Xg(Ve,g,m,se)),b&&(Ve=eh(Ve,b,_,se)),Pe-=Wt,se&&Pe<Z){var rt=vn(Ve,Tt);return sh(a,l,il,fe.placeholder,c,Ve,rt,T,M,Z-Pe)}var xr=q?c:this,Hr=te?xr[a]:a;return Pe=Ve.length,T?Ve=gB(Ve,T):he&&Pe>1&&Ve.reverse(),$&&M<Pe&&(Ve.length=M),this&&this!==pt&&this instanceof fe&&(Hr=Me||Wa(Hr)),Hr.apply(xr,Ve)}return fe}function ih(a,l){return function(c,g){return xM(c,a,l(g),{})}}function ll(a,l){return function(c,g){var m;if(c===r&&g===r)return l;if(c!==r&&(m=c),g!==r){if(m===r)return g;typeof c=="string"||typeof g=="string"?(c=Ut(c),g=Ut(g)):(c=$g(c),g=$g(g)),m=a(c,g)}return m}}function Mc(a){return Ur(function(l){return l=qe(l,jt(pe())),Be(function(c){var g=this;return a(l,function(m){return Gt(m,g,c)})})})}function sl(a,l){l=l===r?" ":Ut(l);var c=l.length;if(c<2)return c?_c(l,a):l;var g=_c(l,qi(a/wo(l)));return bo(l)?Cn(yr(g),0,a).join(""):g.slice(0,a)}function qM(a,l,c,g){var m=l&A,b=Wa(a);function _(){for(var T=-1,M=arguments.length,Z=-1,$=g.length,q=I($+M),te=this&&this!==pt&&this instanceof _?b:a;++Z<$;)q[Z]=g[Z];for(;M--;)q[Z++]=arguments[++T];return Gt(te,m?c:this,q)}return _}function lh(a){return function(l,c,g){return g&&typeof g!="number"&&St(l,c,g)&&(c=g=r),l=Wr(l),c===r?(c=l,l=0):c=Wr(c),g=g===r?l<c?1:-1:Wr(g),DM(l,c,g,a)}}function cl(a){return function(l,c){return typeof l=="string"&&typeof c=="string"||(l=tr(l),c=tr(c)),a(l,c)}}function sh(a,l,c,g,m,b,_,T,M,Z){var $=l&R,q=$?_:r,te=$?r:_,se=$?b:r,he=$?r:b;l|=$?G:K,l&=~($?K:G),l&L||(l&=~(A|w));var Me=[a,l,m,se,q,he,te,T,M,Z],fe=c.apply(r,Me);return Rc(a)&&wh(fe,Me),fe.placeholder=g,xh(fe,a,l)}function Bc(a){var l=it[a];return function(c,g){if(c=tr(c),g=g==null?0:yt(Ee(g),292),g&&xg(c)){var m=(Ge(c)+"e").split("e"),b=l(m[0]+"e"+(+m[1]+g));return m=(Ge(b)+"e").split("e"),+(m[0]+"e"+(+m[1]-g))}return l(c)}}var KM=_o&&1/Ri(new _o([,-0]))[1]==ye?function(a){return new _o(a)}:Xc;function ch(a){return function(l){var c=bt(l);return c==mr?lc(l):c==vr?pA(l):oA(l,a(l))}}function jr(a,l,c,g,m,b,_,T){var M=l&w;if(!M&&typeof a!="function")throw new Yt(d);var Z=g?g.length:0;if(Z||(l&=~(G|K),g=m=r),_=_===r?_:lt(Ee(_),0),T=T===r?T:Ee(T),Z-=m?m.length:0,l&K){var $=g,q=m;g=m=r}var te=M?r:Vc(a),se=[a,l,c,g,m,$,q,b,_,T];if(te&&dB(se,te),a=se[0],l=se[1],c=se[2],g=se[3],m=se[4],T=se[9]=se[9]===r?M?0:a.length:lt(se[9]-Z,0),!T&&l&(R|H)&&(l&=~(R|H)),!l||l==A)var he=WM(a,l,c);else l==R||l==H?he=HM(a,l,T):(l==G||l==(A|G))&&!m.length?he=qM(a,l,c,g):he=il.apply(r,se);var Me=te?Ug:wh;return xh(Me(he,se),a,l)}function dh(a,l,c,g){return a===r||wr(a,Co[c])&&!je.call(g,c)?l:a}function uh(a,l,c,g,m,b){return Je(a)&&Je(l)&&(b.set(l,a),rl(a,l,r,uh,b),b.delete(l)),a}function YM(a){return Ka(a)?r:a}function ph(a,l,c,g,m,b){var _=c&D,T=a.length,M=l.length;if(T!=M&&!(_&&M>T))return!1;var Z=b.get(a),$=b.get(l);if(Z&&$)return Z==l&&$==a;var q=-1,te=!0,se=c&E?new Un:r;for(b.set(a,l),b.set(l,a);++q<T;){var he=a[q],Me=l[q];if(g)var fe=_?g(Me,he,q,l,a,b):g(he,Me,q,a,l,b);if(fe!==r){if(fe)continue;te=!1;break}if(se){if(!tc(l,function(Pe,Ve){if(!La(se,Ve)&&(he===Pe||m(he,Pe,c,g,b)))return se.push(Ve)})){te=!1;break}}else if(!(he===Me||m(he,Me,c,g,b))){te=!1;break}}return b.delete(a),b.delete(l),te}function JM(a,l,c,g,m,b,_){switch(c){case mo:if(a.byteLength!=l.byteLength||a.byteOffset!=l.byteOffset)return!1;a=a.buffer,l=l.buffer;case Va:return!(a.byteLength!=l.byteLength||!b(new Zi(a),new Zi(l)));case Na:case Aa:case Ma:return wr(+a,+l);case Mi:return a.name==l.name&&a.message==l.message;case Ba:case Pa:return a==l+"";case mr:var T=lc;case vr:var M=g&D;if(T||(T=Ri),a.size!=l.size&&!M)return!1;var Z=_.get(a);if(Z)return Z==l;g|=E,_.set(a,l);var $=ph(T(a),T(l),g,m,b,_);return _.delete(a),$;case Pi:if(za)return za.call(a)==za.call(l)}return!1}function QM(a,l,c,g,m,b){var _=c&D,T=Pc(a),M=T.length,Z=Pc(l),$=Z.length;if(M!=$&&!_)return!1;for(var q=M;q--;){var te=T[q];if(!(_?te in l:je.call(l,te)))return!1}var se=b.get(a),he=b.get(l);if(se&&he)return se==l&&he==a;var Me=!0;b.set(a,l),b.set(l,a);for(var fe=_;++q<M;){te=T[q];var Pe=a[te],Ve=l[te];if(g)var $t=_?g(Ve,Pe,te,l,a,b):g(Pe,Ve,te,a,l,b);if(!($t===r?Pe===Ve||m(Pe,Ve,c,g,b):$t)){Me=!1;break}fe||(fe=te=="constructor")}if(Me&&!fe){var Tt=a.constructor,Wt=l.constructor;Tt!=Wt&&"constructor"in a&&"constructor"in l&&!(typeof Tt=="function"&&Tt instanceof Tt&&typeof Wt=="function"&&Wt instanceof Wt)&&(Me=!1)}return b.delete(a),b.delete(l),Me}function Ur(a){return zc(yh(a,r,Eh),a+"")}function Pc(a){return Pg(a,ut,Ic)}function Dc(a){return Pg(a,Bt,gh)}var Vc=Yi?function(a){return Yi.get(a)}:Xc;function dl(a){for(var l=a.name+"",c=ko[l],g=je.call(ko,l)?c.length:0;g--;){var m=c[g],b=m.func;if(b==null||b==a)return m.name}return l}function No(a){var l=je.call(v,"placeholder")?v:a;return l.placeholder}function pe(){var a=v.iteratee||Jc;return a=a===Jc?Lg:a,arguments.length?a(arguments[0],arguments[1]):a}function ul(a,l){var c=a.__data__;return iB(l)?c[typeof l=="string"?"string":"hash"]:c.map}function Lc(a){for(var l=ut(a),c=l.length;c--;){var g=l[c],m=a[g];l[c]=[g,m,mh(m)]}return l}function Wn(a,l){var c=cA(a,l);return Vg(c)?c:r}function XM(a){var l=je.call(a,Gn),c=a[Gn];try{a[Gn]=r;var g=!0}catch{}var m=ji.call(a);return g&&(l?a[Gn]=c:delete a[Gn]),m}var Ic=cc?function(a){return a==null?[]:(a=Ue(a),fn(cc(a),function(l){return bg.call(a,l)}))}:ed,gh=cc?function(a){for(var l=[];a;)mn(l,Ic(a)),a=$i(a);return l}:ed,bt=kt;(dc&&bt(new dc(new ArrayBuffer(1)))!=mo||Fa&&bt(new Fa)!=mr||uc&&bt(uc.resolve())!=Ap||_o&&bt(new _o)!=vr||Ra&&bt(new Ra)!=Da)&&(bt=function(a){var l=kt(a),c=l==Rr?a.constructor:r,g=c?Hn(c):"";if(g)switch(g){case LA:return mo;case IA:return mr;case FA:return Ap;case RA:return vr;case OA:return Da}return l});function eB(a,l,c){for(var g=-1,m=c.length;++g<m;){var b=c[g],_=b.size;switch(b.type){case"drop":a+=_;break;case"dropRight":l-=_;break;case"take":l=yt(l,a+_);break;case"takeRight":a=lt(a,l-_);break}}return{start:a,end:l}}function tB(a){var l=a.match(lN);return l?l[1].split(sN):[]}function hh(a,l,c){l=xn(l,a);for(var g=-1,m=l.length,b=!1;++g<m;){var _=Mr(l[g]);if(!(b=a!=null&&c(a,_)))break;a=a[_]}return b||++g!=m?b:(m=a==null?0:a.length,!!m&&yl(m)&&Zr(_,m)&&(ke(a)||qn(a)))}function rB(a){var l=a.length,c=new a.constructor(l);return l&&typeof a[0]=="string"&&je.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function fh(a){return typeof a.constructor=="function"&&!Ha(a)?So($i(a)):{}}function nB(a,l,c){var g=a.constructor;switch(l){case Va:return Ac(a);case Na:case Aa:return new g(+a);case mo:return zM(a,c);case Ls:case Is:case Fs:case Rs:case Os:case zs:case Gs:case js:case Us:return Jg(a,c);case mr:return new g;case Ma:case Pa:return new g(a);case Ba:return GM(a);case vr:return new g;case Pi:return jM(a)}}function oB(a,l){var c=l.length;if(!c)return a;var g=c-1;return l[g]=(c>1?"& ":"")+l[g],l=l.join(c>2?", ":" "),a.replace(iN,`{
|
|
85
|
+
/* [wrapped with `+l+`] */
|
|
86
|
+
`)}function aB(a){return ke(a)||qn(a)||!!(wg&&a&&a[wg])}function Zr(a,l){var c=typeof a;return l=l??_e,!!l&&(c=="number"||c!="symbol"&&vN.test(a))&&a>-1&&a%1==0&&a<l}function St(a,l,c){if(!Je(c))return!1;var g=typeof l;return(g=="number"?Mt(c)&&Zr(l,c.length):g=="string"&&l in c)?wr(c[l],a):!1}function Fc(a,l){if(ke(a))return!1;var c=typeof a;return c=="number"||c=="symbol"||c=="boolean"||a==null||Zt(a)?!0:rN.test(a)||!tN.test(a)||l!=null&&a in Ue(l)}function iB(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function Rc(a){var l=dl(a),c=v[l];if(typeof c!="function"||!(l in De.prototype))return!1;if(a===c)return!0;var g=Vc(c);return!!g&&a===g[0]}function lB(a){return!!mg&&mg in a}var sB=zi?$r:td;function Ha(a){var l=a&&a.constructor,c=typeof l=="function"&&l.prototype||Co;return a===c}function mh(a){return a===a&&!Je(a)}function vh(a,l){return function(c){return c==null?!1:c[a]===l&&(l!==r||a in Ue(c))}}function cB(a){var l=ml(a,function(g){return c.size===h&&c.clear(),g}),c=l.cache;return l}function dB(a,l){var c=a[1],g=l[1],m=c|g,b=m<(A|w|U),_=g==U&&c==R||g==U&&c==P&&a[7].length<=l[8]||g==(U|P)&&l[7].length<=l[8]&&c==R;if(!(b||_))return a;g&A&&(a[2]=l[2],m|=c&A?0:L);var T=l[3];if(T){var M=a[3];a[3]=M?Xg(M,T,l[4]):T,a[4]=M?vn(a[3],f):l[4]}return T=l[5],T&&(M=a[5],a[5]=M?eh(M,T,l[6]):T,a[6]=M?vn(a[5],f):l[6]),T=l[7],T&&(a[7]=T),g&U&&(a[8]=a[8]==null?l[8]:yt(a[8],l[8])),a[9]==null&&(a[9]=l[9]),a[0]=l[0],a[1]=m,a}function uB(a){var l=[];if(a!=null)for(var c in Ue(a))l.push(c);return l}function pB(a){return ji.call(a)}function yh(a,l,c){return l=lt(l===r?a.length-1:l,0),function(){for(var g=arguments,m=-1,b=lt(g.length-l,0),_=I(b);++m<b;)_[m]=g[l+m];m=-1;for(var T=I(l+1);++m<l;)T[m]=g[m];return T[l]=c(_),Gt(a,this,T)}}function bh(a,l){return l.length<2?a:$n(a,Xt(l,0,-1))}function gB(a,l){for(var c=a.length,g=yt(l.length,c),m=At(a);g--;){var b=l[g];a[g]=Zr(b,c)?m[b]:r}return a}function Oc(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}var wh=Ch(Ug),qa=NA||function(a,l){return pt.setTimeout(a,l)},zc=Ch(IM);function xh(a,l,c){var g=l+"";return zc(a,oB(g,hB(tB(g),c)))}function Ch(a){var l=0,c=0;return function(){var g=PA(),m=j-(g-c);if(c=g,m>0){if(++l>=ue)return arguments[0]}else l=0;return a.apply(r,arguments)}}function pl(a,l){var c=-1,g=a.length,m=g-1;for(l=l===r?g:l;++c<l;){var b=Cc(c,m),_=a[b];a[b]=a[c],a[c]=_}return a.length=l,a}var _h=cB(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(nN,function(c,g,m,b){l.push(m?b.replace(uN,"$1"):g||c)}),l});function Mr(a){if(typeof a=="string"||Zt(a))return a;var l=a+"";return l=="0"&&1/a==-ye?"-0":l}function Hn(a){if(a!=null){try{return Gi.call(a)}catch{}try{return a+""}catch{}}return""}function hB(a,l){return Kt(Ea,function(c){var g="_."+c[0];l&c[1]&&!Ii(a,g)&&a.push(g)}),a.sort()}function kh(a){if(a instanceof De)return a.clone();var l=new Jt(a.__wrapped__,a.__chain__);return l.__actions__=At(a.__actions__),l.__index__=a.__index__,l.__values__=a.__values__,l}function fB(a,l,c){(c?St(a,l,c):l===r)?l=1:l=lt(Ee(l),0);var g=a==null?0:a.length;if(!g||l<1)return[];for(var m=0,b=0,_=I(qi(g/l));m<g;)_[b++]=Xt(a,m,m+=l);return _}function mB(a){for(var l=-1,c=a==null?0:a.length,g=0,m=[];++l<c;){var b=a[l];b&&(m[g++]=b)}return m}function vB(){var a=arguments.length;if(!a)return[];for(var l=I(a-1),c=arguments[0],g=a;g--;)l[g-1]=arguments[g];return mn(ke(c)?At(c):[c],gt(l,1))}var yB=Be(function(a,l){return tt(a)?ja(a,gt(l,1,tt,!0)):[]}),bB=Be(function(a,l){var c=er(l);return tt(c)&&(c=r),tt(a)?ja(a,gt(l,1,tt,!0),pe(c,2)):[]}),wB=Be(function(a,l){var c=er(l);return tt(c)&&(c=r),tt(a)?ja(a,gt(l,1,tt,!0),r,c):[]});function xB(a,l,c){var g=a==null?0:a.length;return g?(l=c||l===r?1:Ee(l),Xt(a,l<0?0:l,g)):[]}function CB(a,l,c){var g=a==null?0:a.length;return g?(l=c||l===r?1:Ee(l),l=g-l,Xt(a,0,l<0?0:l)):[]}function _B(a,l){return a&&a.length?ol(a,pe(l,3),!0,!0):[]}function kB(a,l){return a&&a.length?ol(a,pe(l,3),!0):[]}function SB(a,l,c,g){var m=a==null?0:a.length;return m?(c&&typeof c!="number"&&St(a,l,c)&&(c=0,g=m),vM(a,l,c,g)):[]}function Sh(a,l,c){var g=a==null?0:a.length;if(!g)return-1;var m=c==null?0:Ee(c);return m<0&&(m=lt(g+m,0)),Fi(a,pe(l,3),m)}function Th(a,l,c){var g=a==null?0:a.length;if(!g)return-1;var m=g-1;return c!==r&&(m=Ee(c),m=c<0?lt(g+m,0):yt(m,g-1)),Fi(a,pe(l,3),m,!0)}function Eh(a){var l=a==null?0:a.length;return l?gt(a,1):[]}function TB(a){var l=a==null?0:a.length;return l?gt(a,ye):[]}function EB(a,l){var c=a==null?0:a.length;return c?(l=l===r?1:Ee(l),gt(a,l)):[]}function NB(a){for(var l=-1,c=a==null?0:a.length,g={};++l<c;){var m=a[l];g[m[0]]=m[1]}return g}function Nh(a){return a&&a.length?a[0]:r}function AB(a,l,c){var g=a==null?0:a.length;if(!g)return-1;var m=c==null?0:Ee(c);return m<0&&(m=lt(g+m,0)),yo(a,l,m)}function MB(a){var l=a==null?0:a.length;return l?Xt(a,0,-1):[]}var BB=Be(function(a){var l=qe(a,Ec);return l.length&&l[0]===a[0]?vc(l):[]}),PB=Be(function(a){var l=er(a),c=qe(a,Ec);return l===er(c)?l=r:c.pop(),c.length&&c[0]===a[0]?vc(c,pe(l,2)):[]}),DB=Be(function(a){var l=er(a),c=qe(a,Ec);return l=typeof l=="function"?l:r,l&&c.pop(),c.length&&c[0]===a[0]?vc(c,r,l):[]});function VB(a,l){return a==null?"":MA.call(a,l)}function er(a){var l=a==null?0:a.length;return l?a[l-1]:r}function LB(a,l,c){var g=a==null?0:a.length;if(!g)return-1;var m=g;return c!==r&&(m=Ee(c),m=m<0?lt(g+m,0):yt(m,g-1)),l===l?hA(a,l,m):Fi(a,sg,m,!0)}function IB(a,l){return a&&a.length?Og(a,Ee(l)):r}var FB=Be(Ah);function Ah(a,l){return a&&a.length&&l&&l.length?xc(a,l):a}function RB(a,l,c){return a&&a.length&&l&&l.length?xc(a,l,pe(c,2)):a}function OB(a,l,c){return a&&a.length&&l&&l.length?xc(a,l,r,c):a}var zB=Ur(function(a,l){var c=a==null?0:a.length,g=gc(a,l);return jg(a,qe(l,function(m){return Zr(m,c)?+m:m}).sort(Qg)),g});function GB(a,l){var c=[];if(!(a&&a.length))return c;var g=-1,m=[],b=a.length;for(l=pe(l,3);++g<b;){var _=a[g];l(_,g,a)&&(c.push(_),m.push(g))}return jg(a,m),c}function Gc(a){return a==null?a:VA.call(a)}function jB(a,l,c){var g=a==null?0:a.length;return g?(c&&typeof c!="number"&&St(a,l,c)?(l=0,c=g):(l=l==null?0:Ee(l),c=c===r?g:Ee(c)),Xt(a,l,c)):[]}function UB(a,l){return nl(a,l)}function ZB(a,l,c){return kc(a,l,pe(c,2))}function $B(a,l){var c=a==null?0:a.length;if(c){var g=nl(a,l);if(g<c&&wr(a[g],l))return g}return-1}function WB(a,l){return nl(a,l,!0)}function HB(a,l,c){return kc(a,l,pe(c,2),!0)}function qB(a,l){var c=a==null?0:a.length;if(c){var g=nl(a,l,!0)-1;if(wr(a[g],l))return g}return-1}function KB(a){return a&&a.length?Zg(a):[]}function YB(a,l){return a&&a.length?Zg(a,pe(l,2)):[]}function JB(a){var l=a==null?0:a.length;return l?Xt(a,1,l):[]}function QB(a,l,c){return a&&a.length?(l=c||l===r?1:Ee(l),Xt(a,0,l<0?0:l)):[]}function XB(a,l,c){var g=a==null?0:a.length;return g?(l=c||l===r?1:Ee(l),l=g-l,Xt(a,l<0?0:l,g)):[]}function eP(a,l){return a&&a.length?ol(a,pe(l,3),!1,!0):[]}function tP(a,l){return a&&a.length?ol(a,pe(l,3)):[]}var rP=Be(function(a){return wn(gt(a,1,tt,!0))}),nP=Be(function(a){var l=er(a);return tt(l)&&(l=r),wn(gt(a,1,tt,!0),pe(l,2))}),oP=Be(function(a){var l=er(a);return l=typeof l=="function"?l:r,wn(gt(a,1,tt,!0),r,l)});function aP(a){return a&&a.length?wn(a):[]}function iP(a,l){return a&&a.length?wn(a,pe(l,2)):[]}function lP(a,l){return l=typeof l=="function"?l:r,a&&a.length?wn(a,r,l):[]}function jc(a){if(!(a&&a.length))return[];var l=0;return a=fn(a,function(c){if(tt(c))return l=lt(c.length,l),!0}),ac(l,function(c){return qe(a,rc(c))})}function Mh(a,l){if(!(a&&a.length))return[];var c=jc(a);return l==null?c:qe(c,function(g){return Gt(l,r,g)})}var sP=Be(function(a,l){return tt(a)?ja(a,l):[]}),cP=Be(function(a){return Tc(fn(a,tt))}),dP=Be(function(a){var l=er(a);return tt(l)&&(l=r),Tc(fn(a,tt),pe(l,2))}),uP=Be(function(a){var l=er(a);return l=typeof l=="function"?l:r,Tc(fn(a,tt),r,l)}),pP=Be(jc);function gP(a,l){return qg(a||[],l||[],Ga)}function hP(a,l){return qg(a||[],l||[],$a)}var fP=Be(function(a){var l=a.length,c=l>1?a[l-1]:r;return c=typeof c=="function"?(a.pop(),c):r,Mh(a,c)});function Bh(a){var l=v(a);return l.__chain__=!0,l}function mP(a,l){return l(a),a}function gl(a,l){return l(a)}var vP=Ur(function(a){var l=a.length,c=l?a[0]:0,g=this.__wrapped__,m=function(b){return gc(b,a)};return l>1||this.__actions__.length||!(g instanceof De)||!Zr(c)?this.thru(m):(g=g.slice(c,+c+(l?1:0)),g.__actions__.push({func:gl,args:[m],thisArg:r}),new Jt(g,this.__chain__).thru(function(b){return l&&!b.length&&b.push(r),b}))});function yP(){return Bh(this)}function bP(){return new Jt(this.value(),this.__chain__)}function wP(){this.__values__===r&&(this.__values__=$h(this.value()));var a=this.__index__>=this.__values__.length,l=a?r:this.__values__[this.__index__++];return{done:a,value:l}}function xP(){return this}function CP(a){for(var l,c=this;c instanceof Qi;){var g=kh(c);g.__index__=0,g.__values__=r,l?m.__wrapped__=g:l=g;var m=g;c=c.__wrapped__}return m.__wrapped__=a,l}function _P(){var a=this.__wrapped__;if(a instanceof De){var l=a;return this.__actions__.length&&(l=new De(this)),l=l.reverse(),l.__actions__.push({func:gl,args:[Gc],thisArg:r}),new Jt(l,this.__chain__)}return this.thru(Gc)}function kP(){return Hg(this.__wrapped__,this.__actions__)}var SP=al(function(a,l,c){je.call(a,c)?++a[c]:Gr(a,c,1)});function TP(a,l,c){var g=ke(a)?ig:mM;return c&&St(a,l,c)&&(l=r),g(a,pe(l,3))}function EP(a,l){var c=ke(a)?fn:Mg;return c(a,pe(l,3))}var NP=oh(Sh),AP=oh(Th);function MP(a,l){return gt(hl(a,l),1)}function BP(a,l){return gt(hl(a,l),ye)}function PP(a,l,c){return c=c===r?1:Ee(c),gt(hl(a,l),c)}function Ph(a,l){var c=ke(a)?Kt:bn;return c(a,pe(l,3))}function Dh(a,l){var c=ke(a)?JN:Ag;return c(a,pe(l,3))}var DP=al(function(a,l,c){je.call(a,c)?a[c].push(l):Gr(a,c,[l])});function VP(a,l,c,g){a=Mt(a)?a:Mo(a),c=c&&!g?Ee(c):0;var m=a.length;return c<0&&(c=lt(m+c,0)),bl(a)?c<=m&&a.indexOf(l,c)>-1:!!m&&yo(a,l,c)>-1}var LP=Be(function(a,l,c){var g=-1,m=typeof l=="function",b=Mt(a)?I(a.length):[];return bn(a,function(_){b[++g]=m?Gt(l,_,c):Ua(_,l,c)}),b}),IP=al(function(a,l,c){Gr(a,c,l)});function hl(a,l){var c=ke(a)?qe:Ig;return c(a,pe(l,3))}function FP(a,l,c,g){return a==null?[]:(ke(l)||(l=l==null?[]:[l]),c=g?r:c,ke(c)||(c=c==null?[]:[c]),zg(a,l,c))}var RP=al(function(a,l,c){a[c?0:1].push(l)},function(){return[[],[]]});function OP(a,l,c){var g=ke(a)?ec:dg,m=arguments.length<3;return g(a,pe(l,4),c,m,bn)}function zP(a,l,c){var g=ke(a)?QN:dg,m=arguments.length<3;return g(a,pe(l,4),c,m,Ag)}function GP(a,l){var c=ke(a)?fn:Mg;return c(a,vl(pe(l,3)))}function jP(a){var l=ke(a)?Sg:VM;return l(a)}function UP(a,l,c){(c?St(a,l,c):l===r)?l=1:l=Ee(l);var g=ke(a)?uM:LM;return g(a,l)}function ZP(a){var l=ke(a)?pM:FM;return l(a)}function $P(a){if(a==null)return 0;if(Mt(a))return bl(a)?wo(a):a.length;var l=bt(a);return l==mr||l==vr?a.size:bc(a).length}function WP(a,l,c){var g=ke(a)?tc:RM;return c&&St(a,l,c)&&(l=r),g(a,pe(l,3))}var HP=Be(function(a,l){if(a==null)return[];var c=l.length;return c>1&&St(a,l[0],l[1])?l=[]:c>2&&St(l[0],l[1],l[2])&&(l=[l[0]]),zg(a,gt(l,1),[])}),fl=EA||function(){return pt.Date.now()};function qP(a,l){if(typeof l!="function")throw new Yt(d);return a=Ee(a),function(){if(--a<1)return l.apply(this,arguments)}}function Vh(a,l,c){return l=c?r:l,l=a&&l==null?a.length:l,jr(a,U,r,r,r,r,l)}function Lh(a,l){var c;if(typeof l!="function")throw new Yt(d);return a=Ee(a),function(){return--a>0&&(c=l.apply(this,arguments)),a<=1&&(l=r),c}}var Uc=Be(function(a,l,c){var g=A;if(c.length){var m=vn(c,No(Uc));g|=G}return jr(a,g,l,c,m)}),Ih=Be(function(a,l,c){var g=A|w;if(c.length){var m=vn(c,No(Ih));g|=G}return jr(l,g,a,c,m)});function Fh(a,l,c){l=c?r:l;var g=jr(a,R,r,r,r,r,r,l);return g.placeholder=Fh.placeholder,g}function Rh(a,l,c){l=c?r:l;var g=jr(a,H,r,r,r,r,r,l);return g.placeholder=Rh.placeholder,g}function Oh(a,l,c){var g,m,b,_,T,M,Z=0,$=!1,q=!1,te=!0;if(typeof a!="function")throw new Yt(d);l=tr(l)||0,Je(c)&&($=!!c.leading,q="maxWait"in c,b=q?lt(tr(c.maxWait)||0,l):b,te="trailing"in c?!!c.trailing:te);function se(rt){var xr=g,Hr=m;return g=m=r,Z=rt,_=a.apply(Hr,xr),_}function he(rt){return Z=rt,T=qa(Pe,l),$?se(rt):_}function Me(rt){var xr=rt-M,Hr=rt-Z,of=l-xr;return q?yt(of,b-Hr):of}function fe(rt){var xr=rt-M,Hr=rt-Z;return M===r||xr>=l||xr<0||q&&Hr>=b}function Pe(){var rt=fl();if(fe(rt))return Ve(rt);T=qa(Pe,Me(rt))}function Ve(rt){return T=r,te&&g?se(rt):(g=m=r,_)}function $t(){T!==r&&Kg(T),Z=0,g=M=m=T=r}function Tt(){return T===r?_:Ve(fl())}function Wt(){var rt=fl(),xr=fe(rt);if(g=arguments,m=this,M=rt,xr){if(T===r)return he(M);if(q)return Kg(T),T=qa(Pe,l),se(M)}return T===r&&(T=qa(Pe,l)),_}return Wt.cancel=$t,Wt.flush=Tt,Wt}var KP=Be(function(a,l){return Ng(a,1,l)}),YP=Be(function(a,l,c){return Ng(a,tr(l)||0,c)});function JP(a){return jr(a,W)}function ml(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new Yt(d);var c=function(){var g=arguments,m=l?l.apply(this,g):g[0],b=c.cache;if(b.has(m))return b.get(m);var _=a.apply(this,g);return c.cache=b.set(m,_)||b,_};return c.cache=new(ml.Cache||zr),c}ml.Cache=zr;function vl(a){if(typeof a!="function")throw new Yt(d);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function QP(a){return Lh(2,a)}var XP=OM(function(a,l){l=l.length==1&&ke(l[0])?qe(l[0],jt(pe())):qe(gt(l,1),jt(pe()));var c=l.length;return Be(function(g){for(var m=-1,b=yt(g.length,c);++m<b;)g[m]=l[m].call(this,g[m]);return Gt(a,this,g)})}),Zc=Be(function(a,l){var c=vn(l,No(Zc));return jr(a,G,r,l,c)}),zh=Be(function(a,l){var c=vn(l,No(zh));return jr(a,K,r,l,c)}),eD=Ur(function(a,l){return jr(a,P,r,r,r,l)});function tD(a,l){if(typeof a!="function")throw new Yt(d);return l=l===r?l:Ee(l),Be(a,l)}function rD(a,l){if(typeof a!="function")throw new Yt(d);return l=l==null?0:lt(Ee(l),0),Be(function(c){var g=c[l],m=Cn(c,0,l);return g&&mn(m,g),Gt(a,this,m)})}function nD(a,l,c){var g=!0,m=!0;if(typeof a!="function")throw new Yt(d);return Je(c)&&(g="leading"in c?!!c.leading:g,m="trailing"in c?!!c.trailing:m),Oh(a,l,{leading:g,maxWait:l,trailing:m})}function oD(a){return Vh(a,1)}function aD(a,l){return Zc(Nc(l),a)}function iD(){if(!arguments.length)return[];var a=arguments[0];return ke(a)?a:[a]}function lD(a){return Qt(a,k)}function sD(a,l){return l=typeof l=="function"?l:r,Qt(a,k,l)}function cD(a){return Qt(a,y|k)}function dD(a,l){return l=typeof l=="function"?l:r,Qt(a,y|k,l)}function uD(a,l){return l==null||Eg(a,l,ut(l))}function wr(a,l){return a===l||a!==a&&l!==l}var pD=cl(mc),gD=cl(function(a,l){return a>=l}),qn=Dg(function(){return arguments}())?Dg:function(a){return Xe(a)&&je.call(a,"callee")&&!bg.call(a,"callee")},ke=I.isArray,hD=eg?jt(eg):CM;function Mt(a){return a!=null&&yl(a.length)&&!$r(a)}function tt(a){return Xe(a)&&Mt(a)}function fD(a){return a===!0||a===!1||Xe(a)&&kt(a)==Na}var _n=AA||td,mD=tg?jt(tg):_M;function vD(a){return Xe(a)&&a.nodeType===1&&!Ka(a)}function yD(a){if(a==null)return!0;if(Mt(a)&&(ke(a)||typeof a=="string"||typeof a.splice=="function"||_n(a)||Ao(a)||qn(a)))return!a.length;var l=bt(a);if(l==mr||l==vr)return!a.size;if(Ha(a))return!bc(a).length;for(var c in a)if(je.call(a,c))return!1;return!0}function bD(a,l){return Za(a,l)}function wD(a,l,c){c=typeof c=="function"?c:r;var g=c?c(a,l):r;return g===r?Za(a,l,r,c):!!g}function $c(a){if(!Xe(a))return!1;var l=kt(a);return l==Mi||l==UE||typeof a.message=="string"&&typeof a.name=="string"&&!Ka(a)}function xD(a){return typeof a=="number"&&xg(a)}function $r(a){if(!Je(a))return!1;var l=kt(a);return l==Bi||l==Np||l==jE||l==$E}function Gh(a){return typeof a=="number"&&a==Ee(a)}function yl(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=_e}function Je(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Xe(a){return a!=null&&typeof a=="object"}var jh=rg?jt(rg):SM;function CD(a,l){return a===l||yc(a,l,Lc(l))}function _D(a,l,c){return c=typeof c=="function"?c:r,yc(a,l,Lc(l),c)}function kD(a){return Uh(a)&&a!=+a}function SD(a){if(sB(a))throw new Ce(s);return Vg(a)}function TD(a){return a===null}function ED(a){return a==null}function Uh(a){return typeof a=="number"||Xe(a)&&kt(a)==Ma}function Ka(a){if(!Xe(a)||kt(a)!=Rr)return!1;var l=$i(a);if(l===null)return!0;var c=je.call(l,"constructor")&&l.constructor;return typeof c=="function"&&c instanceof c&&Gi.call(c)==_A}var Wc=ng?jt(ng):TM;function ND(a){return Gh(a)&&a>=-_e&&a<=_e}var Zh=og?jt(og):EM;function bl(a){return typeof a=="string"||!ke(a)&&Xe(a)&&kt(a)==Pa}function Zt(a){return typeof a=="symbol"||Xe(a)&&kt(a)==Pi}var Ao=ag?jt(ag):NM;function AD(a){return a===r}function MD(a){return Xe(a)&&bt(a)==Da}function BD(a){return Xe(a)&&kt(a)==HE}var PD=cl(wc),DD=cl(function(a,l){return a<=l});function $h(a){if(!a)return[];if(Mt(a))return bl(a)?yr(a):At(a);if(Ia&&a[Ia])return uA(a[Ia]());var l=bt(a),c=l==mr?lc:l==vr?Ri:Mo;return c(a)}function Wr(a){if(!a)return a===0?a:0;if(a=tr(a),a===ye||a===-ye){var l=a<0?-1:1;return l*zt}return a===a?a:0}function Ee(a){var l=Wr(a),c=l%1;return l===l?c?l-c:l:0}function Wh(a){return a?Zn(Ee(a),0,Nt):0}function tr(a){if(typeof a=="number")return a;if(Zt(a))return Ht;if(Je(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Je(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=ug(a);var c=hN.test(a);return c||mN.test(a)?qN(a.slice(2),c?2:8):gN.test(a)?Ht:+a}function Hh(a){return Ar(a,Bt(a))}function VD(a){return a?Zn(Ee(a),-_e,_e):a===0?a:0}function Ge(a){return a==null?"":Ut(a)}var LD=To(function(a,l){if(Ha(l)||Mt(l)){Ar(l,ut(l),a);return}for(var c in l)je.call(l,c)&&Ga(a,c,l[c])}),qh=To(function(a,l){Ar(l,Bt(l),a)}),wl=To(function(a,l,c,g){Ar(l,Bt(l),a,g)}),ID=To(function(a,l,c,g){Ar(l,ut(l),a,g)}),FD=Ur(gc);function RD(a,l){var c=So(a);return l==null?c:Tg(c,l)}var OD=Be(function(a,l){a=Ue(a);var c=-1,g=l.length,m=g>2?l[2]:r;for(m&&St(l[0],l[1],m)&&(g=1);++c<g;)for(var b=l[c],_=Bt(b),T=-1,M=_.length;++T<M;){var Z=_[T],$=a[Z];($===r||wr($,Co[Z])&&!je.call(a,Z))&&(a[Z]=b[Z])}return a}),zD=Be(function(a){return a.push(r,uh),Gt(Kh,r,a)});function GD(a,l){return lg(a,pe(l,3),Nr)}function jD(a,l){return lg(a,pe(l,3),fc)}function UD(a,l){return a==null?a:hc(a,pe(l,3),Bt)}function ZD(a,l){return a==null?a:Bg(a,pe(l,3),Bt)}function $D(a,l){return a&&Nr(a,pe(l,3))}function WD(a,l){return a&&fc(a,pe(l,3))}function HD(a){return a==null?[]:tl(a,ut(a))}function qD(a){return a==null?[]:tl(a,Bt(a))}function Hc(a,l,c){var g=a==null?r:$n(a,l);return g===r?c:g}function KD(a,l){return a!=null&&hh(a,l,yM)}function qc(a,l){return a!=null&&hh(a,l,bM)}var YD=ih(function(a,l,c){l!=null&&typeof l.toString!="function"&&(l=ji.call(l)),a[l]=c},Yc(Pt)),JD=ih(function(a,l,c){l!=null&&typeof l.toString!="function"&&(l=ji.call(l)),je.call(a,l)?a[l].push(c):a[l]=[c]},pe),QD=Be(Ua);function ut(a){return Mt(a)?kg(a):bc(a)}function Bt(a){return Mt(a)?kg(a,!0):AM(a)}function XD(a,l){var c={};return l=pe(l,3),Nr(a,function(g,m,b){Gr(c,l(g,m,b),g)}),c}function eV(a,l){var c={};return l=pe(l,3),Nr(a,function(g,m,b){Gr(c,m,l(g,m,b))}),c}var tV=To(function(a,l,c){rl(a,l,c)}),Kh=To(function(a,l,c,g){rl(a,l,c,g)}),rV=Ur(function(a,l){var c={};if(a==null)return c;var g=!1;l=qe(l,function(b){return b=xn(b,a),g||(g=b.length>1),b}),Ar(a,Dc(a),c),g&&(c=Qt(c,y|S|k,YM));for(var m=l.length;m--;)Sc(c,l[m]);return c});function nV(a,l){return Yh(a,vl(pe(l)))}var oV=Ur(function(a,l){return a==null?{}:BM(a,l)});function Yh(a,l){if(a==null)return{};var c=qe(Dc(a),function(g){return[g]});return l=pe(l),Gg(a,c,function(g,m){return l(g,m[0])})}function aV(a,l,c){l=xn(l,a);var g=-1,m=l.length;for(m||(m=1,a=r);++g<m;){var b=a==null?r:a[Mr(l[g])];b===r&&(g=m,b=c),a=$r(b)?b.call(a):b}return a}function iV(a,l,c){return a==null?a:$a(a,l,c)}function lV(a,l,c,g){return g=typeof g=="function"?g:r,a==null?a:$a(a,l,c,g)}var Jh=ch(ut),Qh=ch(Bt);function sV(a,l,c){var g=ke(a),m=g||_n(a)||Ao(a);if(l=pe(l,4),c==null){var b=a&&a.constructor;m?c=g?new b:[]:Je(a)?c=$r(b)?So($i(a)):{}:c={}}return(m?Kt:Nr)(a,function(_,T,M){return l(c,_,T,M)}),c}function cV(a,l){return a==null?!0:Sc(a,l)}function dV(a,l,c){return a==null?a:Wg(a,l,Nc(c))}function uV(a,l,c,g){return g=typeof g=="function"?g:r,a==null?a:Wg(a,l,Nc(c),g)}function Mo(a){return a==null?[]:ic(a,ut(a))}function pV(a){return a==null?[]:ic(a,Bt(a))}function gV(a,l,c){return c===r&&(c=l,l=r),c!==r&&(c=tr(c),c=c===c?c:0),l!==r&&(l=tr(l),l=l===l?l:0),Zn(tr(a),l,c)}function hV(a,l,c){return l=Wr(l),c===r?(c=l,l=0):c=Wr(c),a=tr(a),wM(a,l,c)}function fV(a,l,c){if(c&&typeof c!="boolean"&&St(a,l,c)&&(l=c=r),c===r&&(typeof l=="boolean"?(c=l,l=r):typeof a=="boolean"&&(c=a,a=r)),a===r&&l===r?(a=0,l=1):(a=Wr(a),l===r?(l=a,a=0):l=Wr(l)),a>l){var g=a;a=l,l=g}if(c||a%1||l%1){var m=Cg();return yt(a+m*(l-a+HN("1e-"+((m+"").length-1))),l)}return Cc(a,l)}var mV=Eo(function(a,l,c){return l=l.toLowerCase(),a+(c?Xh(l):l)});function Xh(a){return Kc(Ge(a).toLowerCase())}function ef(a){return a=Ge(a),a&&a.replace(yN,iA).replace(FN,"")}function vV(a,l,c){a=Ge(a),l=Ut(l);var g=a.length;c=c===r?g:Zn(Ee(c),0,g);var m=c;return c-=l.length,c>=0&&a.slice(c,m)==l}function yV(a){return a=Ge(a),a&&QE.test(a)?a.replace(Bp,lA):a}function bV(a){return a=Ge(a),a&&oN.test(a)?a.replace(Zs,"\\$&"):a}var wV=Eo(function(a,l,c){return a+(c?"-":"")+l.toLowerCase()}),xV=Eo(function(a,l,c){return a+(c?" ":"")+l.toLowerCase()}),CV=nh("toLowerCase");function _V(a,l,c){a=Ge(a),l=Ee(l);var g=l?wo(a):0;if(!l||g>=l)return a;var m=(l-g)/2;return sl(Ki(m),c)+a+sl(qi(m),c)}function kV(a,l,c){a=Ge(a),l=Ee(l);var g=l?wo(a):0;return l&&g<l?a+sl(l-g,c):a}function SV(a,l,c){a=Ge(a),l=Ee(l);var g=l?wo(a):0;return l&&g<l?sl(l-g,c)+a:a}function TV(a,l,c){return c||l==null?l=0:l&&(l=+l),DA(Ge(a).replace($s,""),l||0)}function EV(a,l,c){return(c?St(a,l,c):l===r)?l=1:l=Ee(l),_c(Ge(a),l)}function NV(){var a=arguments,l=Ge(a[0]);return a.length<3?l:l.replace(a[1],a[2])}var AV=Eo(function(a,l,c){return a+(c?"_":"")+l.toLowerCase()});function MV(a,l,c){return c&&typeof c!="number"&&St(a,l,c)&&(l=c=r),c=c===r?Nt:c>>>0,c?(a=Ge(a),a&&(typeof l=="string"||l!=null&&!Wc(l))&&(l=Ut(l),!l&&bo(a))?Cn(yr(a),0,c):a.split(l,c)):[]}var BV=Eo(function(a,l,c){return a+(c?" ":"")+Kc(l)});function PV(a,l,c){return a=Ge(a),c=c==null?0:Zn(Ee(c),0,a.length),l=Ut(l),a.slice(c,c+l.length)==l}function DV(a,l,c){var g=v.templateSettings;c&&St(a,l,c)&&(l=r),a=Ge(a),l=wl({},l,g,dh);var m=wl({},l.imports,g.imports,dh),b=ut(m),_=ic(m,b),T,M,Z=0,$=l.interpolate||Di,q="__p += '",te=sc((l.escape||Di).source+"|"+$.source+"|"+($===Pp?pN:Di).source+"|"+(l.evaluate||Di).source+"|$","g"),se="//# sourceURL="+(je.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jN+"]")+`
|
|
87
|
+
`;a.replace(te,function(fe,Pe,Ve,$t,Tt,Wt){return Ve||(Ve=$t),q+=a.slice(Z,Wt).replace(bN,sA),Pe&&(T=!0,q+=`' +
|
|
88
|
+
__e(`+Pe+`) +
|
|
89
|
+
'`),Tt&&(M=!0,q+=`';
|
|
90
|
+
`+Tt+`;
|
|
91
|
+
__p += '`),Ve&&(q+=`' +
|
|
92
|
+
((__t = (`+Ve+`)) == null ? '' : __t) +
|
|
93
|
+
'`),Z=Wt+fe.length,fe}),q+=`';
|
|
94
|
+
`;var he=je.call(l,"variable")&&l.variable;if(!he)q=`with (obj) {
|
|
55
95
|
`+q+`
|
|
56
96
|
}
|
|
57
|
-
`;else if(
|
|
58
|
-
`+(
|
|
59
|
-
`)+"var __t, __p = ''"+(
|
|
97
|
+
`;else if(dN.test(he))throw new Ce(u);q=(M?q.replace(qE,""):q).replace(KE,"$1").replace(YE,"$1;"),q="function("+(he||"obj")+`) {
|
|
98
|
+
`+(he?"":`obj || (obj = {});
|
|
99
|
+
`)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
60
100
|
function print() { __p += __j.call(arguments, '') }
|
|
61
101
|
`:`;
|
|
62
102
|
`)+q+`return __p
|
|
63
|
-
}`;var Be=vf(function(){return De(b,le+"return "+q).apply(r,x)});if(Be.source=q,Bc(Be))throw Be;return Be}function lM(n){return Pe(n).toLowerCase()}function sM(n){return Pe(n).toUpperCase()}function cM(n,o,c){if(n=Pe(n),n&&(c||o===r))return Eg(n);if(!n||!(o=Ft(o)))return n;var g=yr(n),h=yr(o),b=Ng(g,h),x=Bg(g,h)+1;return vn(g,b,x).join("")}function dM(n,o,c){if(n=Pe(n),n&&(c||o===r))return n.slice(0,Mg(n)+1);if(!n||!(o=Ft(o)))return n;var g=yr(n),h=Bg(g,yr(o))+1;return vn(g,0,h).join("")}function uM(n,o,c){if(n=Pe(n),n&&(c||o===r))return n.replace(Bs,"");if(!n||!(o=Ft(o)))return n;var g=yr(n),h=Ng(g,yr(o));return vn(g,h).join("")}function gM(n,o){var c=D,g=J;if(Ge(o)){var h="separator"in o?o.separator:h;c="length"in o?Te(o.length):c,g="omission"in o?Ft(o.omission):g}n=Pe(n);var b=n.length;if(fa(n)){var x=yr(n);b=x.length}if(c>=b)return n;var k=c-ha(g);if(k<1)return g;var N=x?vn(x,0,k).join(""):n.slice(0,k);if(h===r)return N+g;if(x&&(k+=N.length-k),Vc(h)){if(n.slice(k).search(h)){var $,U=N;for(h.global||(h=Ws(h.source,Pe(Gu.exec(h))+"g")),h.lastIndex=0;$=h.exec(U);)var q=$.index;N=N.slice(0,q===r?k:q)}}else if(n.indexOf(Ft(h),k)!=k){var ee=N.lastIndexOf(h);ee>-1&&(N=N.slice(0,ee))}return N+g}function pM(n){return n=Pe(n),n&&CS.test(n)?n.replace(Wu,$2):n}var fM=_a(function(n,o,c){return n+(c?" ":"")+o.toUpperCase()}),Ac=vp("toUpperCase");function bf(n,o,c){return n=Pe(n),o=c?r:o,o===r?D2(n)?H2(n):N2(n):n.match(o)||[]}var vf=Ve(function(n,o){try{return Pt(n,r,o)}catch(c){return Bc(c)?c:new xe(c)}}),hM=$r(function(n,o){return qt(o,function(c){c=Br(c),jr(n,c,Ec(n[c],n))}),n});function mM(n){var o=n==null?0:n.length,c=ue();return n=o?We(n,function(g){if(typeof g[1]!="function")throw new Yt(d);return[c(g[0]),g[1]]}):[],Ve(function(g){for(var h=-1;++h<o;){var b=n[h];if(Pt(b[0],this,g))return Pt(b[1],this,g)}})}function yM(n){return $T(Kt(n,_))}function Oc(n){return function(){return n}}function bM(n,o){return n==null||n!==n?o:n}var vM=xp(),wM=xp(!0);function Vt(n){return n}function Lc(n){return Jg(typeof n=="function"?n:Kt(n,_))}function xM(n){return Xg(Kt(n,_))}function _M(n,o){return ep(n,Kt(o,_))}var kM=Ve(function(n,o){return function(c){return Do(c,n,o)}}),CM=Ve(function(n,o){return function(c){return Do(n,c,o)}});function Ic(n,o,c){var g=ct(o),h=Yi(o,g);c==null&&!(Ge(o)&&(h.length||!g.length))&&(c=o,o=n,n=this,h=Yi(o,ct(o)));var b=!(Ge(c)&&"chain"in c)||!!c.chain,x=Ur(n);return qt(h,function(k){var N=o[k];n[k]=N,x&&(n.prototype[k]=function(){var $=this.__chain__;if(b||$){var U=n(this.__wrapped__),q=U.__actions__=Et(this.__actions__);return q.push({func:N,args:arguments,thisArg:n}),U.__chain__=$,U}return N.apply(n,pn([this.value()],arguments))})}),n}function SM(){return dt._===this&&(dt._=J2),this}function Dc(){}function TM(n){return n=Te(n),Ve(function(o){return tp(o,n)})}var EM=fc(We),NM=fc(_g),BM=fc(Ps);function wf(n){return xc(n)?js(Br(n)):oE(n)}function VM(n){return function(o){return n==null?r:$n(n,o)}}var MM=kp(),zM=kp(!0);function Rc(){return[]}function Pc(){return!1}function AM(){return{}}function OM(){return""}function LM(){return!0}function IM(n,o){if(n=Te(n),n<1||n>_e)return[];var c=Tt,g=mt(n,Tt);o=ue(o),n-=Tt;for(var h=Zs(g,o);++c<n;)o(c);return h}function DM(n){return ke(n)?We(n,Br):$t(n)?[n]:Et(Pp(Pe(n)))}function RM(n){var o=++G2;return Pe(n)+o}var PM=el(function(n,o){return n+o},0),jM=hc("ceil"),FM=el(function(n,o){return n/o},1),$M=hc("floor");function ZM(n){return n&&n.length?qi(n,Vt,ec):r}function UM(n,o){return n&&n.length?qi(n,ue(o,2),ec):r}function HM(n){return Sg(n,Vt)}function WM(n,o){return Sg(n,ue(o,2))}function qM(n){return n&&n.length?qi(n,Vt,ac):r}function YM(n,o){return n&&n.length?qi(n,ue(o,2),ac):r}var GM=el(function(n,o){return n*o},1),KM=hc("round"),JM=el(function(n,o){return n-o},0);function QM(n){return n&&n.length?$s(n,Vt):0}function XM(n,o){return n&&n.length?$s(n,ue(o,2)):0}return y.after=xB,y.ary=Kp,y.assign=sV,y.assignIn=uf,y.assignInWith=pl,y.assignWith=cV,y.at=dV,y.before=Jp,y.bind=Ec,y.bindAll=hM,y.bindKey=Qp,y.castArray=AB,y.chain=qp,y.chunk=$E,y.compact=ZE,y.concat=UE,y.cond=mM,y.conforms=yM,y.constant=Oc,y.countBy=QN,y.create=uV,y.curry=Xp,y.curryRight=ef,y.debounce=tf,y.defaults=gV,y.defaultsDeep=pV,y.defer=_B,y.delay=kB,y.difference=HE,y.differenceBy=WE,y.differenceWith=qE,y.drop=YE,y.dropRight=GE,y.dropRightWhile=KE,y.dropWhile=JE,y.fill=QE,y.filter=eB,y.flatMap=nB,y.flatMapDeep=aB,y.flatMapDepth=oB,y.flatten=Zp,y.flattenDeep=XE,y.flattenDepth=eN,y.flip=CB,y.flow=vM,y.flowRight=wM,y.fromPairs=tN,y.functions=wV,y.functionsIn=xV,y.groupBy=iB,y.initial=nN,y.intersection=aN,y.intersectionBy=oN,y.intersectionWith=iN,y.invert=kV,y.invertBy=CV,y.invokeMap=sB,y.iteratee=Lc,y.keyBy=cB,y.keys=ct,y.keysIn=Bt,y.map=ll,y.mapKeys=TV,y.mapValues=EV,y.matches=xM,y.matchesProperty=_M,y.memoize=cl,y.merge=NV,y.mergeWith=gf,y.method=kM,y.methodOf=CM,y.mixin=Ic,y.negate=dl,y.nthArg=TM,y.omit=BV,y.omitBy=VV,y.once=SB,y.orderBy=dB,y.over=EM,y.overArgs=TB,y.overEvery=NM,y.overSome=BM,y.partial=Nc,y.partialRight=rf,y.partition=uB,y.pick=MV,y.pickBy=pf,y.property=wf,y.propertyOf=VM,y.pull=dN,y.pullAll=Hp,y.pullAllBy=uN,y.pullAllWith=gN,y.pullAt=pN,y.range=MM,y.rangeRight=zM,y.rearg=EB,y.reject=fB,y.remove=fN,y.rest=NB,y.reverse=Sc,y.sampleSize=mB,y.set=AV,y.setWith=OV,y.shuffle=yB,y.slice=hN,y.sortBy=wB,y.sortedUniq=_N,y.sortedUniqBy=kN,y.split=nM,y.spread=BB,y.tail=CN,y.take=SN,y.takeRight=TN,y.takeRightWhile=EN,y.takeWhile=NN,y.tap=ZN,y.throttle=VB,y.thru=il,y.toArray=sf,y.toPairs=ff,y.toPairsIn=hf,y.toPath=DM,y.toPlainObject=df,y.transform=LV,y.unary=MB,y.union=BN,y.unionBy=VN,y.unionWith=MN,y.uniq=zN,y.uniqBy=AN,y.uniqWith=ON,y.unset=IV,y.unzip=Tc,y.unzipWith=Wp,y.update=DV,y.updateWith=RV,y.values=Sa,y.valuesIn=PV,y.without=LN,y.words=bf,y.wrap=zB,y.xor=IN,y.xorBy=DN,y.xorWith=RN,y.zip=PN,y.zipObject=jN,y.zipObjectDeep=FN,y.zipWith=$N,y.entries=ff,y.entriesIn=hf,y.extend=uf,y.extendWith=pl,Ic(y,y),y.add=PM,y.attempt=vf,y.camelCase=ZV,y.capitalize=mf,y.ceil=jM,y.clamp=jV,y.clone=OB,y.cloneDeep=IB,y.cloneDeepWith=DB,y.cloneWith=LB,y.conformsTo=RB,y.deburr=yf,y.defaultTo=bM,y.divide=FM,y.endsWith=UV,y.eq=vr,y.escape=HV,y.escapeRegExp=WV,y.every=XN,y.find=tB,y.findIndex=Fp,y.findKey=fV,y.findLast=rB,y.findLastIndex=$p,y.findLastKey=hV,y.floor=$M,y.forEach=Yp,y.forEachRight=Gp,y.forIn=mV,y.forInRight=yV,y.forOwn=bV,y.forOwnRight=vV,y.get=Mc,y.gt=PB,y.gte=jB,y.has=_V,y.hasIn=zc,y.head=Up,y.identity=Vt,y.includes=lB,y.indexOf=rN,y.inRange=FV,y.invoke=SV,y.isArguments=Hn,y.isArray=ke,y.isArrayBuffer=FB,y.isArrayLike=Nt,y.isArrayLikeObject=et,y.isBoolean=$B,y.isBuffer=wn,y.isDate=ZB,y.isElement=UB,y.isEmpty=HB,y.isEqual=WB,y.isEqualWith=qB,y.isError=Bc,y.isFinite=YB,y.isFunction=Ur,y.isInteger=nf,y.isLength=ul,y.isMap=af,y.isMatch=GB,y.isMatchWith=KB,y.isNaN=JB,y.isNative=QB,y.isNil=eV,y.isNull=XB,y.isNumber=of,y.isObject=Ge,y.isObjectLike=Je,y.isPlainObject=Zo,y.isRegExp=Vc,y.isSafeInteger=tV,y.isSet=lf,y.isString=gl,y.isSymbol=$t,y.isTypedArray=Ca,y.isUndefined=rV,y.isWeakMap=nV,y.isWeakSet=aV,y.join=lN,y.kebabCase=qV,y.last=Qt,y.lastIndexOf=sN,y.lowerCase=YV,y.lowerFirst=GV,y.lt=oV,y.lte=iV,y.max=ZM,y.maxBy=UM,y.mean=HM,y.meanBy=WM,y.min=qM,y.minBy=YM,y.stubArray=Rc,y.stubFalse=Pc,y.stubObject=AM,y.stubString=OM,y.stubTrue=LM,y.multiply=GM,y.nth=cN,y.noConflict=SM,y.noop=Dc,y.now=sl,y.pad=KV,y.padEnd=JV,y.padStart=QV,y.parseInt=XV,y.random=$V,y.reduce=gB,y.reduceRight=pB,y.repeat=eM,y.replace=tM,y.result=zV,y.round=KM,y.runInContext=E,y.sample=hB,y.size=bB,y.snakeCase=rM,y.some=vB,y.sortedIndex=mN,y.sortedIndexBy=yN,y.sortedIndexOf=bN,y.sortedLastIndex=vN,y.sortedLastIndexBy=wN,y.sortedLastIndexOf=xN,y.startCase=aM,y.startsWith=oM,y.subtract=JM,y.sum=QM,y.sumBy=XM,y.template=iM,y.times=IM,y.toFinite=Hr,y.toInteger=Te,y.toLength=cf,y.toLower=lM,y.toNumber=Xt,y.toSafeInteger=lV,y.toString=Pe,y.toUpper=sM,y.trim=cM,y.trimEnd=dM,y.trimStart=uM,y.truncate=gM,y.unescape=pM,y.uniqueId=RM,y.upperCase=fM,y.upperFirst=Ac,y.each=Yp,y.eachRight=Gp,y.first=Up,Ic(y,function(){var n={};return Er(y,function(o,c){je.call(y.prototype,c)||(n[c]=o)}),n}(),{chain:!1}),y.VERSION=i,qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){y[n].placeholder=y}),qt(["drop","take"],function(n,o){ze.prototype[n]=function(c){c=c===r?1:it(Te(c),0);var g=this.__filtered__&&!o?new ze(this):this.clone();return g.__filtered__?g.__takeCount__=mt(c,g.__takeCount__):g.__views__.push({size:mt(c,Tt),type:n+(g.__dir__<0?"Right":"")}),g},ze.prototype[n+"Right"]=function(c){return this.reverse()[n](c).reverse()}}),qt(["filter","map","takeWhile"],function(n,o){var c=o+1,g=c==V||c==Q;ze.prototype[n]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:ue(h,3),type:c}),b.__filtered__=b.__filtered__||g,b}}),qt(["head","last"],function(n,o){var c="take"+(o?"Right":"");ze.prototype[n]=function(){return this[c](1).value()[0]}}),qt(["initial","tail"],function(n,o){var c="drop"+(o?"":"Right");ze.prototype[n]=function(){return this.__filtered__?new ze(this):this[c](1)}}),ze.prototype.compact=function(){return this.filter(Vt)},ze.prototype.find=function(n){return this.filter(n).head()},ze.prototype.findLast=function(n){return this.reverse().find(n)},ze.prototype.invokeMap=Ve(function(n,o){return typeof n=="function"?new ze(this):this.map(function(c){return Do(c,n,o)})}),ze.prototype.reject=function(n){return this.filter(dl(ue(n)))},ze.prototype.slice=function(n,o){n=Te(n);var c=this;return c.__filtered__&&(n>0||o<0)?new ze(c):(n<0?c=c.takeRight(-n):n&&(c=c.drop(n)),o!==r&&(o=Te(o),c=o<0?c.dropRight(-o):c.take(o-n)),c)},ze.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},ze.prototype.toArray=function(){return this.take(Tt)},Er(ze.prototype,function(n,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),g=/^(?:head|last)$/.test(o),h=y[g?"take"+(o=="last"?"Right":""):o],b=g||/^find/.test(o);h&&(y.prototype[o]=function(){var x=this.__wrapped__,k=g?[1]:arguments,N=x instanceof ze,$=k[0],U=N||ke(x),q=function(Me){var Ae=h.apply(y,pn([Me],k));return g&&ee?Ae[0]:Ae};U&&c&&typeof $=="function"&&$.length!=1&&(N=U=!1);var ee=this.__chain__,le=!!this.__actions__.length,pe=b&&!ee,Be=N&&!le;if(!b&&U){x=Be?x:new ze(this);var fe=n.apply(x,k);return fe.__actions__.push({func:il,args:[q],thisArg:r}),new Gt(fe,ee)}return pe&&Be?n.apply(this,k):(fe=this.thru(q),pe?g?fe.value()[0]:fe.value():fe)})}),qt(["pop","push","shift","sort","splice","unshift"],function(n){var o=zi[n],c=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",g=/^(?:pop|shift)$/.test(n);y.prototype[n]=function(){var h=arguments;if(g&&!this.__chain__){var b=this.value();return o.apply(ke(b)?b:[],h)}return this[c](function(x){return o.apply(ke(x)?x:[],h)})}}),Er(ze.prototype,function(n,o){var c=y[o];if(c){var g=c.name+"";je.call(va,g)||(va[g]=[]),va[g].push({name:o,func:c})}}),va[Xi(r,v).name]=[{name:"wrapper",func:r}],ze.prototype.clone=pT,ze.prototype.reverse=fT,ze.prototype.value=hT,y.prototype.at=UN,y.prototype.chain=HN,y.prototype.commit=WN,y.prototype.next=qN,y.prototype.plant=GN,y.prototype.reverse=KN,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=JN,y.prototype.first=y.prototype.head,Vo&&(y.prototype[Vo]=YN),y},ma=W2();Dn?((Dn.exports=ma)._=ma,Ls._=ma):dt._=ma}).call(Ta)}(bi,bi.exports);var Ke=bi.exports;const DC={class:"grid-overlay-container"},Vu=t.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(a){return(e,r)=>(t.openBlock(),t.createElementBlock("div",DC,[e.params.notReady?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r[0]||(r[0]=t.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),r[1]||(r[1]=t.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r[2]||(r[2]=t.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),r[3]||(r[3]=t.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),RC={},PC={class:"grid-overlay-container"};function jC(a,e){return t.openBlock(),t.createElementBlock("div",PC,e[0]||(e[0]=[t.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),t.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const Mu=ps(RC,[["render",jC]]);async function FC(a,e){throw Error("not implemented")}function $C(a){return a.axesSpec.filter(e=>{var r;return((r=e.annotations)==null?void 0:r["pl7.app/axisNature"])==="heterogeneous"})}function ZC(a,e){const r=[];for(const i of e)if(a[i].type==="column"){const l=$C(a[i].spec);for(const s of l){if(s.type!=="String"){console.warn("heterogeneous axis with string type expected, got",s,"skipping");continue}const d=gd(s),u=a.findIndex(p=>Ke.isEqual(p.id,d));if(u===-1)throw console.error("axis not found",i,d,a),Error("axis not found");r.push({columnIdx:i,axisIdx:u})}}return r}const zu=(a,e)=>(a+e).toString();function UC(a,e,r,i,l,s){if(a.length>1)throw Error("hColumns.length > 1 is not supported");const d=a[0];let u=-1,p=-1;for(let _=0;_<s.length;++_)s[_]===d.axisIdx&&(u=_),s[_]===d.columnIdx&&(p=_);const f=(()=>{const C=i[u].data.filter(T=>T!==null);return Array.from(new Set(C))})();f.sort(),p>u?(r.splice(p,1),r.splice(u,1)):(r.splice(u,1),r.splice(p,1));const m=HC(l,i,u,p,f,e.rows);for(let _=0;_<f.length;++_){const C=f[_],T=C+"@"+_;r.push({colId:T,field:zu(i.length,_),headerName:C,valueFormatter:Au})}return{rowModelType:"clientSide",columnDefs:r,rowData:m}}function HC(a,e,r,i,l,s){const d=new Map;let u=0;for(let f=0;f<s;f++){const m={};for(let S=0;S<e.length;++S){if(S===r||S===i)continue;const M=a[S].toString();m[M]=e[S].data[f]}let _;const C=Ea(Object.values(m))??"";d.has(C)?_=d.get(C):(d.set(C,m),_=m,_.id=u.toString(),u++);const T=l.indexOf(e[r].data[f]);if(T===-1)throw Error("index not found");const O=zu(e.length,T);_[O]=e[i].data[f]}return Array.from(d.values())}function WC(a){return Ea({type:a.type,id:a.id})}function qC(a){return JSON.parse(a)}const Au=a=>a?a.value===void 0?"NULL":a.value===null?"NA":a.value.toString():"ERROR";function YC(a,e){var r,i;return{colId:WC(e),field:a.toString(),headerName:((i=(r=e.spec.annotations)==null?void 0:r["pl7.app/label"])==null?void 0:i.trim())??"Unlabeled "+e.type+" "+a.toString(),lockPosition:e.type==="axis",valueFormatter:Au,cellDataType:(l=>{switch(l){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${l}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function Ou(a,e){switch(e){case"Int":return a;case"Long":return typeof a=="bigint"?Number(a):a;case"Float":return a;case"Double":return a;case"String":return a;case"Bytes":return Buffer.from(a).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function Lu(a){const e=[];return ti(a,r=>(e.push(r),r)),e}async function GC(a,e,r){return r.length?(await a.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Ke.uniqWith(r.map(l=>zl(l.spec.axesSpec).map(Ke.cloneDeep)).flat(),Ke.isEqual),strictlyCompatible:!0})).hits.filter(l=>l.spec.axesSpec.length===1):[]}async function KC(a,e,r){const i=Lu(r),s=(await GC(a,e,i)).filter(d=>!Ke.find(i,u=>d.columnId===u.columnId));return s.length===0?r:{type:"outer",primary:r,secondary:s.map(d=>({type:"column",column:d}))}}async function JC(a,e,r,i){const l=r.filter(m=>m.type!=="Bytes"),s=Lu(i),d=l.map(m=>[]),u=l.map(m=>null);for(let m=0;m<s.length;++m){const _=zl(s[m].spec.axesSpec);for(let C=0;C<_.length;++C){const T=Ke.findIndex(l,O=>Ke.isEqual(O,_[C]));T===-1||u[T]||(_.length===1&&s[m].spec.name==="pl7.app/label"?(d[T]=[[m,C]],u[T]=s[m].columnId):d[T].push([m,C]))}}for(let m=l.length-1;m>=0;--m)d[m].length||(u.splice(m,1),d.splice(m,1),l.splice(m,1));const p=100,f=l.map(m=>new Set);e:for(let m=l.length-1;m>=0;--m){for(const[_,C]of d[m]){const T=await a.getUniqueValues(e,{columnId:s[_].columnId,...!u[m]&&{axis:Ke.cloneDeep(l[m])},filters:[],limit:p});if(T.overflow){u.splice(m,1),d.splice(m,1),l.splice(m,1);continue e}const O=T.values.type;for(const S of T.values.data)if(!(ud(S,O)||S===null)&&(f[m].add(Ou(S,O)),f[m].size===p)){u.splice(m,1),d.splice(m,1),l.splice(m,1);continue e}}if(!f[m].size){u.splice(m,1),d.splice(m,1),l.splice(m,1);continue e}}return l.map((m,_)=>{const C=[...f[_]].map(O=>({value:O,text:O.toString()})),T=C[0].value;return{axis:Ke.cloneDeep(m),...u[_]&&{column:u[_]},options:C,defaultValue:T}})}function QC(a,e,r){const i=e.length,l=[];for(let s=0;s<e[0].data.length;++s){const d={};for(let u=0;u<i;++u){const p=a[u].toString(),f=e[u].data[s],m=e[u].type;Uh(e[u].absent,s)?d[p]=void 0:ud(f,m)||f===null?d[p]=null:d[p]=Ou(f,m)}d.id=(r++).toString(),l.push(d)}return l}const XC=a=>a.type==="column"&&a.spec.axesSpec.length===1&&a.spec.name==="pl7.app/label";async function eS(a,e,r){const i=await a.getSpec(e),l=[...i.keys()].filter(C=>!Ke.find(r,T=>Ke.isEqual(T.axis,i[C].id)||Ke.isEqual(T.column,i[C].id))),s=Ke.cloneDeep(l),d=ZC(i,l);for(let C=l.length-1;C>=0;--C){const T=l[C];if(!XC(i[T]))continue;const O=zl(i[T].spec.axesSpec)[0],S=Ke.findIndex(l,M=>Ke.isEqual(i[M].id,O));if(S!==-1){l[S]=T;for(const M of d)M.axisIdx===T&&(M.axisIdx=S);l.splice(C,1),s.splice(C,1)}}const u=await a.getShape(e),p=u.rows,f=s.map(C=>YC(C,i[C]));if(d.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",d.length," transposition will not be applied."),d.length===1)return UC(d,u,f,await a.getData(e,l),s,l);let m;return{rowModelType:"serverSide",columnDefs:f,serverSideDatasource:{getRows:async C=>{try{if(p==0){C.success({rowData:[],rowCount:p}),C.api.showNoRowsOverlay(),C.api.setGridOption("loading",!1);return}if(m&&!Ke.isEqual(m.request.sortModel,C.request.sortModel)){m=void 0,C.fail(),C.api.setGridOption("loading",!0);return}m=C;let T=0,O=[];if(p>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(T=Math.min(p,C.request.endRow)-C.request.startRow,T>0)){const S=await a.getData(e,l,{offset:C.request.startRow,length:T});O=QC(s,S,C.request.startRow)}C.success({rowData:O,rowCount:p}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch{C.fail(),C.api.setGridOption("loading",!0)}}}}}const tS={class:"ap-ag-data-table-container"},rS={key:0,class:"ap-ag-data-table-sheets"},nS=ps(t.defineComponent({__name:"PlAgDataTable",props:t.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:["update:modelValue"],setup(a){er.ModuleRegistry.registerModules([Ho.ClientSideRowModelModule,Yc.ClipboardModule,qc.ServerSideRowModelModule,Gc.RangeSelectionModule]);const e=t.useModel(a,"modelValue"),r=a,{settings:i}=t.toRefs(r);t.watch(()=>i.value,async(v,A)=>{if(v.sourceType!=="pframe"||!v.pFrame||!v.join||A&&A.sourceType==="pframe"&&Ke.isEqual(v.pFrame,A.pFrame)&&Ke.isEqual(v.join,A.join))return;const I=window.platforma;if(!I)throw Error("platforma not set");const W=I.pFrameDriver;if(!W)throw Error("platforma.pFrameDriver not set");const j=await KC(W,v.pFrame,v.join),Y=e.value;Y.pTableParams||(Y.pTableParams={sorting:[],filters:[]}),Y.pTableParams.join=j,e.value=Y});const l=Iu(()=>i.value.sourceType,async v=>{var I;const A=i.value.sourceType;switch(A){case"pframe":{const W=window.platforma;if(!W)throw Error("platforma not set");const j=W.pFrameDriver;if(!j)throw Error("platforma.pFrameDriver not set");if(!i.value.pFrame)return[];const Y=i.value.pFrame,F=(I=e.value.pTableParams)==null?void 0:I.join;return F?await JC(j,Y,i.value.sheetAxes,F):[]}case"ptable":return i.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${A}`)}});function s(v){if(!(i.value.sourceType!=="ptable"&&i.value.sourceType!=="pframe"))return(v==null?void 0:v.sortModel.map(A=>({column:qC(A.colId),ascending:A.sort==="asc",naAndAbsentAreLeastValues:!0})))??[]}const d=t.computed({get:()=>{const v=e.value;return{columnOrder:v.gridState.columnOrder,sort:v.gridState.sort}},set:v=>{const A=e.value,I=_.value.rowModelType==="clientSide"?void 0:s(v.sort);A.gridState.columnOrder=v.columnOrder,A.gridState.sort=v.sort,(i.value.sourceType==="ptable"||i.value.sourceType==="pframe")&&(A.pTableParams||(A.pTableParams={sorting:[],filters:[]}),A.pTableParams.sorting=I),e.value=A}}),u=v=>Ea(v);function p(v){var A;if(!(i.value.sourceType!=="ptable"&&i.value.sourceType!=="pframe"))return((A=l.value)==null?void 0:A.map(I=>({type:"bySingleColumn",column:I.column?{type:"column",id:I.column}:{type:"axis",id:I.axis},predicate:{operator:"Equal",reference:v[u(I.axis)]}})))??[]}const f=t.computed({get:()=>e.value.gridState.sheets??{},set:v=>{const A=p(v),I=e.value;I.gridState.sheets=v,(i.value.sourceType==="ptable"||i.value.sourceType==="pframe")&&(I.pTableParams||(I.pTableParams={sorting:[],filters:[]}),I.pTableParams.filters=A),e.value=I}});t.watch(()=>[i.value,l.value],(v,A)=>{const[I,W]=v;if(!W)return;if(A){const[Y,F]=A;if((I.sourceType==="ptable"||I.sourceType==="pframe")&&I.sourceType===(Y==null?void 0:Y.sourceType)&&Ke.isEqual(W,F))return}if(I.sourceType!=="ptable"&&I.sourceType!=="pframe"){f.value={};return}const j=f.value;for(const Y of W){const F=u(Y.axis);j[F]||(j[F]=Y.defaultValue??Y.options[0].value)}f.value=j},{immediate:!0});const m=t.shallowRef(),_=t.ref({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:d.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:v=>{v.api.autoSizeAllColumns()},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:v=>v.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:Vu,noRowsOverlayComponent:Mu}),C=v=>{const A=v.api;m.value=new Proxy(A,{get(I,W,j){switch(W){case"setGridOption":return(Y,F)=>{const B=_.value;B[Y]=F,_.value=B,A.updateGridOptions(B)};case"updateGridOptions":return Y=>{_.value={..._.value,...Y},A.updateGridOptions(Y)};default:return Reflect.get(I,W,j)}}})},T=v=>{d.value={columnOrder:v.state.columnOrder,sort:v.state.sort},_.value.initialState=d.value},O=()=>{const v=m.value.getState();d.value={columnOrder:v.columnOrder,sort:v.sort},_.value.initialState=d.value,m.value=void 0},S=t.ref(0);t.watch(()=>[m.value,d.value],(v,A)=>{if(Ke.isEqual(v,A))return;const[I,W]=v;if(!I)return;const j=I.getState(),Y={columnOrder:j.columnOrder,sort:j.sort};Ke.isEqual(W,Y)||(_.value.initialState=W,++S.value)}),t.watch(()=>_.value,(v,A)=>{A&&v.rowModelType!=A.rowModelType&&++S.value});const M=(v,A)=>{var W;const I=f.value;I[v]!==A&&(I[v]=A,f.value=I,(W=m.value)==null||W.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))};return t.watch(()=>[m.value,i.value,l.value],async(v,A)=>{if(Ke.isEqual(v,A))return;const[I,W,j]=v;if(!I)return;const Y=window.platforma;if(!Y)throw Error("platforma not set");const F=W.sourceType;switch(F){case"pframe":case"ptable":{const B=Y.pFrameDriver;if(!B)throw Error("platforma.pFrameDriver not set");const H=W.pTable;if(!H||!j)return I.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const D=await eS(B,H,j);return I.updateGridOptions({loading:D.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...D})}case"xsv":{const B=Y.blobDriver;if(!B)throw Error("platforma.blobDriver not set");const H=W.xsvFile;if(!(H!=null&&H.ok)||!H.value)return I.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const D=await FC(B,H.value);return I.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...D})}default:throw Error(`unsupported source type: ${F}`)}}),(v,A)=>(t.openBlock(),t.createElementBlock("div",tS,[t.createVNode(t.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:t.withCtx(()=>[t.unref(l).value&&t.unref(l).value.length>0?(t.openBlock(),t.createElementBlock("div",rS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(l).value,(I,W)=>(t.openBlock(),t.createBlock(t.unref(su),{key:W,"model-value":f.value[u(I.axis)],options:I.options,"onUpdate:modelValue":j=>M(u(I.axis),j)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):t.createCommentVNode("",!0)]),_:1}),(t.openBlock(),t.createBlock(t.unref(Bf.AgGridVue),{key:S.value,theme:t.unref(Ed),class:"ap-ag-data-table-grid","grid-options":_.value,onGridReady:C,onStateUpdated:T,onGridPreDestroyed:O},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-f8dae119"]]),aS={key:1,class:"alert-error"},oS={key:2},iS=t.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(a){const e=a,r=t.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),i=t.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),l=t.computed(()=>r.value===void 0&&i.value===void 0);return(s,d)=>(t.openBlock(),t.createElementBlock("div",null,[r.value!==void 0?t.renderSlot(s.$slots,"default",t.normalizeProps(t.mergeProps({key:0},{value:r.value}))):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("div",aS,t.toDisplayString(i.value),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock("div",oS,"Unresolved")):t.createCommentVNode("",!0)]))}}),lS={style:{height:"100%"}},sS=t.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(a){const e=a,r=t.computed(()=>e.params.extensions),i=t.computed(()=>e.params.value);function l(d){e.params.setValue(d)}const s=t.computed(()=>e.params.resolveProgress?e.params.resolveProgress(i.value):void 0);return(d,u)=>(t.openBlock(),t.createElementBlock("div",lS,[t.createVNode(t.unref(Su),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${r.value?r.value[0]:""}`,extensions:r.value,"model-value":i.value,progress:s.value,"onUpdate:modelValue":l},null,8,["placeholder","extensions","model-value","progress"])]))}}),vi=new Map;function cS(a,e){const r=t.getCurrentScope()??t.effectScope(),i=r.run(()=>(t.onScopeDispose(()=>{vi.delete(a)}),t.reactive(e())));return i[Symbol.dispose]=()=>{r.stop()},i}function dS(a){const e=Symbol();return()=>(vi.has(e)||vi.set(e,cS(e,a)),vi.get(e))}function uS(a){return t.computed(()=>{try{return Jc(a())}catch(e){return{errors:[String(e)],value:void 0}}})}function Iu(a,e,r){const i=t.ref(0),l=t.reactive({loading:t.computed(()=>i.value>0),loadingRef:i,value:void 0,error:void 0}),s=zf(e);return t.watch(a,async d=>{l.error=void 0,i.value++,s(d).then(u=>{u.ok&&(l.value=u.value)}).catch(u=>{l.value=void 0,l.error=u}).finally(()=>{i.value--})},Object.assign({immediate:!0,deep:!0},r??{})),l}const oa=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Du=new Set,fs=typeof process=="object"&&process?process:{},Ru=(a,e,r,i)=>{typeof fs.emitWarning=="function"?fs.emitWarning(a,e,r,i):console.error(`[${r}] ${e}: ${a}`)};let wi=globalThis.AbortController,Pu=globalThis.AbortSignal;if(typeof wi>"u"){Pu=class{constructor(){Re(this,"onabort");Re(this,"_onabort",[]);Re(this,"reason");Re(this,"aborted",!1)}addEventListener(i,l){this._onabort.push(l)}},wi=class{constructor(){Re(this,"signal",new Pu);e()}abort(i){var l,s;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(const d of this.signal._onabort)d(i);(s=(l=this.signal).onabort)==null||s.call(l,i)}}};let a=((Fu=fs.env)==null?void 0:Fu.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{a&&(a=!1,Ru("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const gS=a=>!Du.has(a),dn=a=>a&&a===Math.floor(a)&&a>0&&isFinite(a),ju=a=>dn(a)?a<=Math.pow(2,8)?Uint8Array:a<=Math.pow(2,16)?Uint16Array:a<=Math.pow(2,32)?Uint32Array:a<=Number.MAX_SAFE_INTEGER?xi:null:null;class xi extends Array{constructor(e){super(e),this.fill(0)}}const zn=class zn{constructor(e,r){Re(this,"heap");Re(this,"length");if(!w(zn,ia))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}static create(e){const r=ju(e);if(!r)return[];ge(zn,ia,!0);const i=new zn(e,r);return ge(zn,ia,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};ia=new WeakMap,Ie(zn,ia,!1);let hs=zn;const bs=class bs{constructor(e){Ie(this,X);Ie(this,lr);Ie(this,Ot);Ie(this,sr);Ie(this,cr);Ie(this,la);Ie(this,sa);Re(this,"ttl");Re(this,"ttlResolution");Re(this,"ttlAutopurge");Re(this,"updateAgeOnGet");Re(this,"updateAgeOnHas");Re(this,"allowStale");Re(this,"noDisposeOnSet");Re(this,"noUpdateTTL");Re(this,"maxEntrySize");Re(this,"sizeCalculation");Re(this,"noDeleteOnFetchRejection");Re(this,"noDeleteOnStaleGet");Re(this,"allowStaleOnFetchAbort");Re(this,"allowStaleOnFetchRejection");Re(this,"ignoreFetchAbort");Ie(this,at);Ie(this,dr);Ie(this,rt);Ie(this,Ze);Ie(this,we);Ie(this,wt);Ie(this,Lt);Ie(this,ht);Ie(this,lt);Ie(this,ur);Ie(this,st);Ie(this,gr);Ie(this,pr);Ie(this,It);Ie(this,fr);Ie(this,un);Ie(this,xt);Ie(this,An,()=>{});Ie(this,Ir,()=>{});Ie(this,bo,()=>{});Ie(this,Dt,()=>!1);Ie(this,On,e=>{});Ie(this,ca,(e,r,i)=>{});Ie(this,vo,(e,r,i,l)=>{if(i||l)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Re(this,$u,"LRUCache");const{max:r=0,ttl:i,ttlResolution:l=1,ttlAutopurge:s,updateAgeOnGet:d,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:_,noUpdateTTL:C,maxSize:T=0,maxEntrySize:O=0,sizeCalculation:S,fetchMethod:M,memoMethod:v,noDeleteOnFetchRejection:A,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:W,allowStaleOnFetchAbort:j,ignoreFetchAbort:Y}=e;if(r!==0&&!dn(r))throw new TypeError("max option must be a nonnegative integer");const F=r?ju(r):Array;if(!F)throw new Error("invalid max value: "+r);if(ge(this,lr,r),ge(this,Ot,T),this.maxEntrySize=O||w(this,Ot),this.sizeCalculation=S,this.sizeCalculation){if(!w(this,Ot)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(v!==void 0&&typeof v!="function")throw new TypeError("memoMethod must be a function if defined");if(ge(this,sa,v),M!==void 0&&typeof M!="function")throw new TypeError("fetchMethod must be a function if specified");if(ge(this,la,M),ge(this,un,!!M),ge(this,rt,new Map),ge(this,Ze,new Array(r).fill(void 0)),ge(this,we,new Array(r).fill(void 0)),ge(this,wt,new F(r)),ge(this,Lt,new F(r)),ge(this,ht,0),ge(this,lt,0),ge(this,ur,hs.create(r)),ge(this,at,0),ge(this,dr,0),typeof f=="function"&&ge(this,sr,f),typeof m=="function"?(ge(this,cr,m),ge(this,st,[])):(ge(this,cr,void 0),ge(this,st,void 0)),ge(this,fr,!!w(this,sr)),ge(this,xt,!!w(this,cr)),this.noDisposeOnSet=!!_,this.noUpdateTTL=!!C,this.noDeleteOnFetchRejection=!!A,this.allowStaleOnFetchRejection=!!W,this.allowStaleOnFetchAbort=!!j,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(w(this,Ot)!==0&&!dn(w(this,Ot)))throw new TypeError("maxSize must be a positive integer if specified");if(!dn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ie(this,X,kf).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!I,this.updateAgeOnGet=!!d,this.updateAgeOnHas=!!u,this.ttlResolution=dn(l)||l===0?l:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!dn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ie(this,X,Zc).call(this)}if(w(this,lr)===0&&this.ttl===0&&w(this,Ot)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,lr)&&!w(this,Ot)){const B="LRU_CACHE_UNBOUNDED";gS(B)&&(Du.add(B),Ru("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,bs))}}static unsafeExposeInternals(e){return{starts:w(e,pr),ttls:w(e,It),sizes:w(e,gr),keyMap:w(e,rt),keyList:w(e,Ze),valList:w(e,we),next:w(e,wt),prev:w(e,Lt),get head(){return w(e,ht)},get tail(){return w(e,lt)},free:w(e,ur),isBackgroundFetch:r=>{var i;return ie(i=e,X,He).call(i,r)},backgroundFetch:(r,i,l,s)=>{var d;return ie(d=e,X,ml).call(d,r,i,l,s)},moveToTail:r=>{var i;return ie(i=e,X,Uo).call(i,r)},indexes:r=>{var i;return ie(i=e,X,xn).call(i,r)},rindexes:r=>{var i;return ie(i=e,X,_n).call(i,r)},isStale:r=>{var i;return w(i=e,Dt).call(i,r)}}}get max(){return w(this,lr)}get maxSize(){return w(this,Ot)}get calculatedSize(){return w(this,dr)}get size(){return w(this,at)}get fetchMethod(){return w(this,la)}get memoMethod(){return w(this,sa)}get dispose(){return w(this,sr)}get disposeAfter(){return w(this,cr)}getRemainingTTL(e){return w(this,rt).has(e)?1/0:0}*entries(){for(const e of ie(this,X,xn).call(this))w(this,we)[e]!==void 0&&w(this,Ze)[e]!==void 0&&!ie(this,X,He).call(this,w(this,we)[e])&&(yield[w(this,Ze)[e],w(this,we)[e]])}*rentries(){for(const e of ie(this,X,_n).call(this))w(this,we)[e]!==void 0&&w(this,Ze)[e]!==void 0&&!ie(this,X,He).call(this,w(this,we)[e])&&(yield[w(this,Ze)[e],w(this,we)[e]])}*keys(){for(const e of ie(this,X,xn).call(this)){const r=w(this,Ze)[e];r!==void 0&&!ie(this,X,He).call(this,w(this,we)[e])&&(yield r)}}*rkeys(){for(const e of ie(this,X,_n).call(this)){const r=w(this,Ze)[e];r!==void 0&&!ie(this,X,He).call(this,w(this,we)[e])&&(yield r)}}*values(){for(const e of ie(this,X,xn).call(this))w(this,we)[e]!==void 0&&!ie(this,X,He).call(this,w(this,we)[e])&&(yield w(this,we)[e])}*rvalues(){for(const e of ie(this,X,_n).call(this))w(this,we)[e]!==void 0&&!ie(this,X,He).call(this,w(this,we)[e])&&(yield w(this,we)[e])}[(Zu=Symbol.iterator,$u=Symbol.toStringTag,Zu)](){return this.entries()}find(e,r={}){for(const i of ie(this,X,xn).call(this)){const l=w(this,we)[i],s=ie(this,X,He).call(this,l)?l.__staleWhileFetching:l;if(s!==void 0&&e(s,w(this,Ze)[i],this))return this.get(w(this,Ze)[i],r)}}forEach(e,r=this){for(const i of ie(this,X,xn).call(this)){const l=w(this,we)[i],s=ie(this,X,He).call(this,l)?l.__staleWhileFetching:l;s!==void 0&&e.call(r,s,w(this,Ze)[i],this)}}rforEach(e,r=this){for(const i of ie(this,X,_n).call(this)){const l=w(this,we)[i],s=ie(this,X,He).call(this,l)?l.__staleWhileFetching:l;s!==void 0&&e.call(r,s,w(this,Ze)[i],this)}}purgeStale(){let e=!1;for(const r of ie(this,X,_n).call(this,{allowStale:!0}))w(this,Dt).call(this,r)&&(ie(this,X,kn).call(this,w(this,Ze)[r],"expire"),e=!0);return e}info(e){const r=w(this,rt).get(e);if(r===void 0)return;const i=w(this,we)[r],l=ie(this,X,He).call(this,i)?i.__staleWhileFetching:i;if(l===void 0)return;const s={value:l};if(w(this,It)&&w(this,pr)){const d=w(this,It)[r],u=w(this,pr)[r];if(d&&u){const p=d-(oa.now()-u);s.ttl=p,s.start=Date.now()}}return w(this,gr)&&(s.size=w(this,gr)[r]),s}dump(){const e=[];for(const r of ie(this,X,xn).call(this,{allowStale:!0})){const i=w(this,Ze)[r],l=w(this,we)[r],s=ie(this,X,He).call(this,l)?l.__staleWhileFetching:l;if(s===void 0||i===void 0)continue;const d={value:s};if(w(this,It)&&w(this,pr)){d.ttl=w(this,It)[r];const u=oa.now()-w(this,pr)[r];d.start=Math.floor(Date.now()-u)}w(this,gr)&&(d.size=w(this,gr)[r]),e.unshift([i,d])}return e}load(e){this.clear();for(const[r,i]of e){if(i.start){const l=Date.now()-i.start;i.start=oa.now()-l}this.set(r,i.value,i)}}set(e,r,i={}){var C,T,O,S,M;if(r===void 0)return this.delete(e),this;const{ttl:l=this.ttl,start:s,noDisposeOnSet:d=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=i;let{noUpdateTTL:f=this.noUpdateTTL}=i;const m=w(this,vo).call(this,e,r,i.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),ie(this,X,kn).call(this,e,"set"),this;let _=w(this,at)===0?void 0:w(this,rt).get(e);if(_===void 0)_=w(this,at)===0?w(this,lt):w(this,ur).length!==0?w(this,ur).pop():w(this,at)===w(this,lr)?ie(this,X,hl).call(this,!1):w(this,at),w(this,Ze)[_]=e,w(this,we)[_]=r,w(this,rt).set(e,_),w(this,wt)[w(this,lt)]=_,w(this,Lt)[_]=w(this,lt),ge(this,lt,_),fl(this,at)._++,w(this,ca).call(this,_,m,p),p&&(p.set="add"),f=!1;else{ie(this,X,Uo).call(this,_);const v=w(this,we)[_];if(r!==v){if(w(this,un)&&ie(this,X,He).call(this,v)){v.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:A}=v;A!==void 0&&!d&&(w(this,fr)&&((C=w(this,sr))==null||C.call(this,A,e,"set")),w(this,xt)&&((T=w(this,st))==null||T.push([A,e,"set"])))}else d||(w(this,fr)&&((O=w(this,sr))==null||O.call(this,v,e,"set")),w(this,xt)&&((S=w(this,st))==null||S.push([v,e,"set"])));if(w(this,On).call(this,_),w(this,ca).call(this,_,m,p),w(this,we)[_]=r,p){p.set="replace";const A=v&&ie(this,X,He).call(this,v)?v.__staleWhileFetching:v;A!==void 0&&(p.oldValue=A)}}else p&&(p.set="update")}if(l!==0&&!w(this,It)&&ie(this,X,Zc).call(this),w(this,It)&&(f||w(this,bo).call(this,_,l,s),p&&w(this,Ir).call(this,p,_)),!d&&w(this,xt)&&w(this,st)){const v=w(this,st);let A;for(;A=v==null?void 0:v.shift();)(M=w(this,cr))==null||M.call(this,...A)}return this}pop(){var e;try{for(;w(this,at);){const r=w(this,we)[w(this,ht)];if(ie(this,X,hl).call(this,!0),ie(this,X,He).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(w(this,xt)&&w(this,st)){const r=w(this,st);let i;for(;i=r==null?void 0:r.shift();)(e=w(this,cr))==null||e.call(this,...i)}}}has(e,r={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:l}=r,s=w(this,rt).get(e);if(s!==void 0){const d=w(this,we)[s];if(ie(this,X,He).call(this,d)&&d.__staleWhileFetching===void 0)return!1;if(w(this,Dt).call(this,s))l&&(l.has="stale",w(this,Ir).call(this,l,s));else return i&&w(this,An).call(this,s),l&&(l.has="hit",w(this,Ir).call(this,l,s)),!0}else l&&(l.has="miss");return!1}peek(e,r={}){const{allowStale:i=this.allowStale}=r,l=w(this,rt).get(e);if(l===void 0||!i&&w(this,Dt).call(this,l))return;const s=w(this,we)[l];return ie(this,X,He).call(this,s)?s.__staleWhileFetching:s}async fetch(e,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:l=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:d=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:_=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:C=this.allowStaleOnFetchRejection,ignoreFetchAbort:T=this.ignoreFetchAbort,allowStaleOnFetchAbort:O=this.allowStaleOnFetchAbort,context:S,forceRefresh:M=!1,status:v,signal:A}=r;if(!w(this,un))return v&&(v.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:l,noDeleteOnStaleGet:s,status:v});const I={allowStale:i,updateAgeOnGet:l,noDeleteOnStaleGet:s,ttl:d,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:_,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:O,ignoreFetchAbort:T,status:v,signal:A};let W=w(this,rt).get(e);if(W===void 0){v&&(v.fetch="miss");const j=ie(this,X,ml).call(this,e,W,I,S);return j.__returned=j}else{const j=w(this,we)[W];if(ie(this,X,He).call(this,j)){const D=i&&j.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",D&&(v.returnedStale=!0)),D?j.__staleWhileFetching:j.__returned=j}const Y=w(this,Dt).call(this,W);if(!M&&!Y)return v&&(v.fetch="hit"),ie(this,X,Uo).call(this,W),l&&w(this,An).call(this,W),v&&w(this,Ir).call(this,v,W),j;const F=ie(this,X,ml).call(this,e,W,I,S),H=F.__staleWhileFetching!==void 0&&i;return v&&(v.fetch=Y?"stale":"refresh",H&&Y&&(v.returnedStale=!0)),H?F.__staleWhileFetching:F.__returned=F}}async forceFetch(e,r={}){const i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){const i=w(this,sa);if(!i)throw new Error("no memoMethod provided to constructor");const{context:l,forceRefresh:s,...d}=r,u=this.get(e,d);if(!s&&u!==void 0)return u;const p=i(e,u,{options:d,context:l});return this.set(e,p,d),p}get(e,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:l=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:d}=r,u=w(this,rt).get(e);if(u!==void 0){const p=w(this,we)[u],f=ie(this,X,He).call(this,p);return d&&w(this,Ir).call(this,d,u),w(this,Dt).call(this,u)?(d&&(d.get="stale"),f?(d&&i&&p.__staleWhileFetching!==void 0&&(d.returnedStale=!0),i?p.__staleWhileFetching:void 0):(s||ie(this,X,kn).call(this,e,"expire"),d&&i&&(d.returnedStale=!0),i?p:void 0)):(d&&(d.get="hit"),f?p.__staleWhileFetching:(ie(this,X,Uo).call(this,u),l&&w(this,An).call(this,u),p))}else d&&(d.get="miss")}delete(e){return ie(this,X,kn).call(this,e,"delete")}clear(){return ie(this,X,Wc).call(this,"delete")}};lr=new WeakMap,Ot=new WeakMap,sr=new WeakMap,cr=new WeakMap,la=new WeakMap,sa=new WeakMap,at=new WeakMap,dr=new WeakMap,rt=new WeakMap,Ze=new WeakMap,we=new WeakMap,wt=new WeakMap,Lt=new WeakMap,ht=new WeakMap,lt=new WeakMap,ur=new WeakMap,st=new WeakMap,gr=new WeakMap,pr=new WeakMap,It=new WeakMap,fr=new WeakMap,un=new WeakMap,xt=new WeakMap,X=new WeakSet,Zc=function(){const e=new xi(w(this,lr)),r=new xi(w(this,lr));ge(this,It,e),ge(this,pr,r),ge(this,bo,(s,d,u=oa.now())=>{if(r[s]=d!==0?u:0,e[s]=d,d!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,Dt).call(this,s)&&ie(this,X,kn).call(this,w(this,Ze)[s],"expire")},d+1);p.unref&&p.unref()}}),ge(this,An,s=>{r[s]=e[s]!==0?oa.now():0}),ge(this,Ir,(s,d)=>{if(e[d]){const u=e[d],p=r[d];if(!u||!p)return;s.ttl=u,s.start=p,s.now=i||l();const f=s.now-p;s.remainingTTL=u-f}});let i=0;const l=()=>{const s=oa.now();if(this.ttlResolution>0){i=s;const d=setTimeout(()=>i=0,this.ttlResolution);d.unref&&d.unref()}return s};this.getRemainingTTL=s=>{const d=w(this,rt).get(s);if(d===void 0)return 0;const u=e[d],p=r[d];if(!u||!p)return 1/0;const f=(i||l())-p;return u-f},ge(this,Dt,s=>{const d=r[s],u=e[s];return!!u&&!!d&&(i||l())-d>u})},An=new WeakMap,Ir=new WeakMap,bo=new WeakMap,Dt=new WeakMap,kf=function(){const e=new xi(w(this,lr));ge(this,dr,0),ge(this,gr,e),ge(this,On,r=>{ge(this,dr,w(this,dr)-e[r]),e[r]=0}),ge(this,vo,(r,i,l,s)=>{if(ie(this,X,He).call(this,i))return 0;if(!dn(l))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(l=s(i,r),!dn(l))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return l}),ge(this,ca,(r,i,l)=>{if(e[r]=i,w(this,Ot)){const s=w(this,Ot)-e[r];for(;w(this,dr)>s;)ie(this,X,hl).call(this,!0)}ge(this,dr,w(this,dr)+e[r]),l&&(l.entrySize=i,l.totalCalculatedSize=w(this,dr))})},On=new WeakMap,ca=new WeakMap,vo=new WeakMap,xn=function*({allowStale:e=this.allowStale}={}){if(w(this,at))for(let r=w(this,lt);!(!ie(this,X,Uc).call(this,r)||((e||!w(this,Dt).call(this,r))&&(yield r),r===w(this,ht)));)r=w(this,Lt)[r]},_n=function*({allowStale:e=this.allowStale}={}){if(w(this,at))for(let r=w(this,ht);!(!ie(this,X,Uc).call(this,r)||((e||!w(this,Dt).call(this,r))&&(yield r),r===w(this,lt)));)r=w(this,wt)[r]},Uc=function(e){return e!==void 0&&w(this,rt).get(w(this,Ze)[e])===e},hl=function(e){var s,d;const r=w(this,ht),i=w(this,Ze)[r],l=w(this,we)[r];return w(this,un)&&ie(this,X,He).call(this,l)?l.__abortController.abort(new Error("evicted")):(w(this,fr)||w(this,xt))&&(w(this,fr)&&((s=w(this,sr))==null||s.call(this,l,i,"evict")),w(this,xt)&&((d=w(this,st))==null||d.push([l,i,"evict"]))),w(this,On).call(this,r),e&&(w(this,Ze)[r]=void 0,w(this,we)[r]=void 0,w(this,ur).push(r)),w(this,at)===1?(ge(this,ht,ge(this,lt,0)),w(this,ur).length=0):ge(this,ht,w(this,wt)[r]),w(this,rt).delete(i),fl(this,at)._--,r},ml=function(e,r,i,l){const s=r===void 0?void 0:w(this,we)[r];if(ie(this,X,He).call(this,s))return s;const d=new wi,{signal:u}=i;u==null||u.addEventListener("abort",()=>d.abort(u.reason),{signal:d.signal});const p={signal:d.signal,options:i,context:l},f=(S,M=!1)=>{const{aborted:v}=d.signal,A=i.ignoreFetchAbort&&S!==void 0;if(i.status&&(v&&!M?(i.status.fetchAborted=!0,i.status.fetchError=d.signal.reason,A&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),v&&!A&&!M)return _(d.signal.reason);const I=T;return w(this,we)[r]===T&&(S===void 0?I.__staleWhileFetching?w(this,we)[r]=I.__staleWhileFetching:ie(this,X,kn).call(this,e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,S,p.options))),S},m=S=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=S),_(S)),_=S=>{const{aborted:M}=d.signal,v=M&&i.allowStaleOnFetchAbort,A=v||i.allowStaleOnFetchRejection,I=A||i.noDeleteOnFetchRejection,W=T;if(w(this,we)[r]===T&&(!I||W.__staleWhileFetching===void 0?ie(this,X,kn).call(this,e,"fetch"):v||(w(this,we)[r]=W.__staleWhileFetching)),A)return i.status&&W.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),W.__staleWhileFetching;if(W.__returned===W)throw S},C=(S,M)=>{var A;const v=(A=w(this,la))==null?void 0:A.call(this,e,s,p);v&&v instanceof Promise&&v.then(I=>S(I===void 0?void 0:I),M),d.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(S(void 0),i.allowStaleOnFetchAbort&&(S=I=>f(I,!0)))})};i.status&&(i.status.fetchDispatched=!0);const T=new Promise(C).then(f,m),O=Object.assign(T,{__abortController:d,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,O,{...p.options,status:void 0}),r=w(this,rt).get(e)):w(this,we)[r]=O,O},He=function(e){if(!w(this,un))return!1;const r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof wi},Hc=function(e,r){w(this,Lt)[r]=e,w(this,wt)[e]=r},Uo=function(e){e!==w(this,lt)&&(e===w(this,ht)?ge(this,ht,w(this,wt)[e]):ie(this,X,Hc).call(this,w(this,Lt)[e],w(this,wt)[e]),ie(this,X,Hc).call(this,w(this,lt),e),ge(this,lt,e))},kn=function(e,r){var l,s,d,u;let i=!1;if(w(this,at)!==0){const p=w(this,rt).get(e);if(p!==void 0)if(i=!0,w(this,at)===1)ie(this,X,Wc).call(this,r);else{w(this,On).call(this,p);const f=w(this,we)[p];if(ie(this,X,He).call(this,f)?f.__abortController.abort(new Error("deleted")):(w(this,fr)||w(this,xt))&&(w(this,fr)&&((l=w(this,sr))==null||l.call(this,f,e,r)),w(this,xt)&&((s=w(this,st))==null||s.push([f,e,r]))),w(this,rt).delete(e),w(this,Ze)[p]=void 0,w(this,we)[p]=void 0,p===w(this,lt))ge(this,lt,w(this,Lt)[p]);else if(p===w(this,ht))ge(this,ht,w(this,wt)[p]);else{const m=w(this,Lt)[p];w(this,wt)[m]=w(this,wt)[p];const _=w(this,wt)[p];w(this,Lt)[_]=w(this,Lt)[p]}fl(this,at)._--,w(this,ur).push(p)}}if(w(this,xt)&&((d=w(this,st))!=null&&d.length)){const p=w(this,st);let f;for(;f=p==null?void 0:p.shift();)(u=w(this,cr))==null||u.call(this,...f)}return i},Wc=function(e){var r,i,l;for(const s of ie(this,X,_n).call(this,{allowStale:!0})){const d=w(this,we)[s];if(ie(this,X,He).call(this,d))d.__abortController.abort(new Error("deleted"));else{const u=w(this,Ze)[s];w(this,fr)&&((r=w(this,sr))==null||r.call(this,d,u,e)),w(this,xt)&&((i=w(this,st))==null||i.push([d,u,e]))}}if(w(this,rt).clear(),w(this,we).fill(void 0),w(this,Ze).fill(void 0),w(this,It)&&w(this,pr)&&(w(this,It).fill(0),w(this,pr).fill(0)),w(this,gr)&&w(this,gr).fill(0),ge(this,ht,0),ge(this,lt,0),w(this,ur).length=0,ge(this,dr,0),ge(this,at,0),w(this,xt)&&w(this,st)){const s=w(this,st);let d;for(;d=s==null?void 0:s.shift();)(l=w(this,cr))==null||l.call(this,...d)}};let ms=bs;const pS={cacheSize:15e6};class fS{constructor(e){Re(this,"_str");Re(this,"_rawJson");Re(this,"_zodSchema");Re(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const Ln=class Ln{constructor(e){Re(this,"fileDataCache");Re(this,"fileDataRefs",new Map);const r={...pS,...e??{}};this.fileDataCache=new ms({maxSize:r.cacheSize,fetchMethod:async i=>new fS(await Wh().blobDriver.getContent(i)),sizeCalculation:i=>i.bytes.length,dispose:(i,l)=>{this.fileDataRefs.delete(l)}})}getDataRef(e){const r=this.fileDataRefs.get(e);if(r!==void 0)return r;const i=t.shallowRef();return this.fileDataRefs.set(e,i),(async()=>{try{const l=await this.fileDataCache.fetch(e);i.value=l}catch(l){console.error(l)}})(),i}getContentBytes(e){if(e===void 0)return;const r=this.getDataRef(e);return t.computed(()=>{var i;return(i=r.value)==null?void 0:i.bytes})}getContentString(e){if(e===void 0)return;const r=this.getDataRef(e);return t.computed(()=>{var i;return(i=r==null?void 0:r.value)==null?void 0:i.str})}getContentJson(e,r){if(e===void 0)return;const i=this.getDataRef(e);return t.computed(()=>{var l,s;return r===void 0?(l=i==null?void 0:i.value)==null?void 0:l.rawJson:(s=i==null?void 0:i.value)==null?void 0:s.validatedJson(r)})}static getContentBytes(e){return Ln.globalInstance.getContentBytes(e)}static getContentString(e){return Ln.globalInstance.getContentString(e)}static getContentJson(e,r){return Ln.globalInstance.getContentJson(e,r)}};Re(Ln,"globalInstance",new Ln);let ys=Ln;z.AgGridTheme=Ed,z.BlockLayout=IC,z.ContextProvider=w_,z.DataTable=n0,z.DemoData=_C,z.DropdownListItem=Qa,z.LongText=ts,z.MultiError=vl,z.PlAgCellFile=sS,z.PlAgDataTable=nS,z.PlAgOverlayLoading=Vu,z.PlAgOverlayNoRows=Mu,z.PlAlert=O0,z.PlBlockPage=w0,z.PlBtnAccent=P0,z.PlBtnDanger=F0,z.PlBtnGhost=Gl,z.PlBtnGroup=cb,z.PlBtnLink=H0,z.PlBtnPrimary=ql,z.PlBtnSecondary=Yl,z.PlCheckbox=cw,z.PlCheckboxGroup=pw,z.PlChip=ns,z.PlContainer=_0,z.PlCopyData=Eu,z.PlDialogModal=os,z.PlDropdown=rs,z.PlDropdownLegacy=Ov,z.PlDropdownLine=su,z.PlDropdownMulti=lw,z.PlDropdownRef=cv,z.PlFileDialog=du,z.PlFileInput=Su,z.PlGrid=N0,z.PlIcon16=li,z.PlIcon24=nu,z.PlLogView=$w,z.PlMaskIcon16=Ya,z.PlMaskIcon24=Or,z.PlNotificationAlert=Tu,z.PlNumberField=Wv,z.PlProgressBar=Pv,z.PlRow=C0,z.PlSlideModal=Ew,z.PlSpacer=Kd,z.PlTextArea=jb,z.PlTextField=au,z.PlToggleSwitch=Vw,z.PlTooltip=zt,z.ReactiveFileContent=ys,z.Scrollable=u1,z.Slider=M_,z.SliderRange=l1,z.SliderRangeTriple=G_,z.ThemeSwitcher=p0,z.UnresolvedError=bl,z.ValueOrErrorsComponent=iS,z.activateAgGrid=Td,z.animate=Ud,z.animateInfinite=s0,z.call=Pd,z.computedResult=uS,z.createModel=Sl,z.debounce=Hd,z.defineApp=zm,z.defineStore=dS,z.delay=jd,z.detectOutside=Fb,z.ensureError=_l,z.eventListener=Xl,z.formatZodError=Cl,z.getElementScrollPosition=iu,z.identity=xl,z.isDefined=Df,z.isElementVisible=ou,z.isJsonEqual=wl,z.isZodError=kl,z.listToOptions=c0,z.makeEaseInOut=l0,z.makeEaseOut=Zd,z.maskIcons16=wC,z.maskIcons24=xC,z.normalizeListOptions=Nn,z.notEmpty=$l,z.randomInt=$d,z.randomString=i0,z.requestTick=Zl,z.scrollIntoView=Ja,z.showContextMenu=Pl,z.throttle=Wd,z.timeout=Fd,z.unwrapOptionalResult=If,z.unwrapValueOrErrors=Kc,z.useClickOutside=ii,z.useDraggable=R_,z.useEventListener=Xe,z.useFormState=I_,z.useHover=Dd,z.useInterval=L_,z.useLabelNotch=Ar,z.useLocalStorage=qd,z.useMouse=Id,z.useMouseCapture=en,z.usePosition=Ga,z.useQuery=D_,z.useResizeObserver=Nu,z.useScroll=z_,z.useSdkPlugin=Ll,z.useSortable=O_,z.useTheme=Gd,z.useWatchFetch=Iu,z.wrapOptionalResult=Jc,z.wrapValueOrErrors=Lf,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
|
|
103
|
+
}`;var Me=rf(function(){return Oe(b,se+"return "+q).apply(r,_)});if(Me.source=q,$c(Me))throw Me;return Me}function VV(a){return Ge(a).toLowerCase()}function LV(a){return Ge(a).toUpperCase()}function IV(a,l,c){if(a=Ge(a),a&&(c||l===r))return ug(a);if(!a||!(l=Ut(l)))return a;var g=yr(a),m=yr(l),b=pg(g,m),_=gg(g,m)+1;return Cn(g,b,_).join("")}function FV(a,l,c){if(a=Ge(a),a&&(c||l===r))return a.slice(0,fg(a)+1);if(!a||!(l=Ut(l)))return a;var g=yr(a),m=gg(g,yr(l))+1;return Cn(g,0,m).join("")}function RV(a,l,c){if(a=Ge(a),a&&(c||l===r))return a.replace($s,"");if(!a||!(l=Ut(l)))return a;var g=yr(a),m=pg(g,yr(l));return Cn(g,m).join("")}function OV(a,l){var c=F,g=Y;if(Je(l)){var m="separator"in l?l.separator:m;c="length"in l?Ee(l.length):c,g="omission"in l?Ut(l.omission):g}a=Ge(a);var b=a.length;if(bo(a)){var _=yr(a);b=_.length}if(c>=b)return a;var T=c-wo(g);if(T<1)return g;var M=_?Cn(_,0,T).join(""):a.slice(0,T);if(m===r)return M+g;if(_&&(T+=M.length-T),Wc(m)){if(a.slice(T).search(m)){var Z,$=M;for(m.global||(m=sc(m.source,Ge(Dp.exec(m))+"g")),m.lastIndex=0;Z=m.exec($);)var q=Z.index;M=M.slice(0,q===r?T:q)}}else if(a.indexOf(Ut(m),T)!=T){var te=M.lastIndexOf(m);te>-1&&(M=M.slice(0,te))}return M+g}function zV(a){return a=Ge(a),a&&JE.test(a)?a.replace(Mp,fA):a}var GV=Eo(function(a,l,c){return a+(c?" ":"")+l.toUpperCase()}),Kc=nh("toUpperCase");function tf(a,l,c){return a=Ge(a),l=c?r:l,l===r?dA(a)?yA(a):tA(a):a.match(l)||[]}var rf=Be(function(a,l){try{return Gt(a,r,l)}catch(c){return $c(c)?c:new Ce(c)}}),jV=Ur(function(a,l){return Kt(l,function(c){c=Mr(c),Gr(a,c,Uc(a[c],a))}),a});function UV(a){var l=a==null?0:a.length,c=pe();return a=l?qe(a,function(g){if(typeof g[1]!="function")throw new Yt(d);return[c(g[0]),g[1]]}):[],Be(function(g){for(var m=-1;++m<l;){var b=a[m];if(Gt(b[0],this,g))return Gt(b[1],this,g)}})}function ZV(a){return fM(Qt(a,y))}function Yc(a){return function(){return a}}function $V(a,l){return a==null||a!==a?l:a}var WV=ah(),HV=ah(!0);function Pt(a){return a}function Jc(a){return Lg(typeof a=="function"?a:Qt(a,y))}function qV(a){return Fg(Qt(a,y))}function KV(a,l){return Rg(a,Qt(l,y))}var YV=Be(function(a,l){return function(c){return Ua(c,a,l)}}),JV=Be(function(a,l){return function(c){return Ua(a,c,l)}});function Qc(a,l,c){var g=ut(l),m=tl(l,g);c==null&&!(Je(l)&&(m.length||!g.length))&&(c=l,l=a,a=this,m=tl(l,ut(l)));var b=!(Je(c)&&"chain"in c)||!!c.chain,_=$r(a);return Kt(m,function(T){var M=l[T];a[T]=M,_&&(a.prototype[T]=function(){var Z=this.__chain__;if(b||Z){var $=a(this.__wrapped__),q=$.__actions__=At(this.__actions__);return q.push({func:M,args:arguments,thisArg:a}),$.__chain__=Z,$}return M.apply(a,mn([this.value()],arguments))})}),a}function QV(){return pt._===this&&(pt._=kA),this}function Xc(){}function XV(a){return a=Ee(a),Be(function(l){return Og(l,a)})}var e2=Mc(qe),t2=Mc(ig),r2=Mc(tc);function nf(a){return Fc(a)?rc(Mr(a)):PM(a)}function n2(a){return function(l){return a==null?r:$n(a,l)}}var o2=lh(),a2=lh(!0);function ed(){return[]}function td(){return!1}function i2(){return{}}function l2(){return""}function s2(){return!0}function c2(a,l){if(a=Ee(a),a<1||a>_e)return[];var c=Nt,g=yt(a,Nt);l=pe(l),a-=Nt;for(var m=ac(g,l);++c<a;)l(c);return m}function d2(a){return ke(a)?qe(a,Mr):Zt(a)?[a]:At(_h(Ge(a)))}function u2(a){var l=++CA;return Ge(a)+l}var p2=ll(function(a,l){return a+l},0),g2=Bc("ceil"),h2=ll(function(a,l){return a/l},1),f2=Bc("floor");function m2(a){return a&&a.length?el(a,Pt,mc):r}function v2(a,l){return a&&a.length?el(a,pe(l,2),mc):r}function y2(a){return cg(a,Pt)}function b2(a,l){return cg(a,pe(l,2))}function w2(a){return a&&a.length?el(a,Pt,wc):r}function x2(a,l){return a&&a.length?el(a,pe(l,2),wc):r}var C2=ll(function(a,l){return a*l},1),_2=Bc("round"),k2=ll(function(a,l){return a-l},0);function S2(a){return a&&a.length?oc(a,Pt):0}function T2(a,l){return a&&a.length?oc(a,pe(l,2)):0}return v.after=qP,v.ary=Vh,v.assign=LD,v.assignIn=qh,v.assignInWith=wl,v.assignWith=ID,v.at=FD,v.before=Lh,v.bind=Uc,v.bindAll=jV,v.bindKey=Ih,v.castArray=iD,v.chain=Bh,v.chunk=fB,v.compact=mB,v.concat=vB,v.cond=UV,v.conforms=ZV,v.constant=Yc,v.countBy=SP,v.create=RD,v.curry=Fh,v.curryRight=Rh,v.debounce=Oh,v.defaults=OD,v.defaultsDeep=zD,v.defer=KP,v.delay=YP,v.difference=yB,v.differenceBy=bB,v.differenceWith=wB,v.drop=xB,v.dropRight=CB,v.dropRightWhile=_B,v.dropWhile=kB,v.fill=SB,v.filter=EP,v.flatMap=MP,v.flatMapDeep=BP,v.flatMapDepth=PP,v.flatten=Eh,v.flattenDeep=TB,v.flattenDepth=EB,v.flip=JP,v.flow=WV,v.flowRight=HV,v.fromPairs=NB,v.functions=HD,v.functionsIn=qD,v.groupBy=DP,v.initial=MB,v.intersection=BB,v.intersectionBy=PB,v.intersectionWith=DB,v.invert=YD,v.invertBy=JD,v.invokeMap=LP,v.iteratee=Jc,v.keyBy=IP,v.keys=ut,v.keysIn=Bt,v.map=hl,v.mapKeys=XD,v.mapValues=eV,v.matches=qV,v.matchesProperty=KV,v.memoize=ml,v.merge=tV,v.mergeWith=Kh,v.method=YV,v.methodOf=JV,v.mixin=Qc,v.negate=vl,v.nthArg=XV,v.omit=rV,v.omitBy=nV,v.once=QP,v.orderBy=FP,v.over=e2,v.overArgs=XP,v.overEvery=t2,v.overSome=r2,v.partial=Zc,v.partialRight=zh,v.partition=RP,v.pick=oV,v.pickBy=Yh,v.property=nf,v.propertyOf=n2,v.pull=FB,v.pullAll=Ah,v.pullAllBy=RB,v.pullAllWith=OB,v.pullAt=zB,v.range=o2,v.rangeRight=a2,v.rearg=eD,v.reject=GP,v.remove=GB,v.rest=tD,v.reverse=Gc,v.sampleSize=UP,v.set=iV,v.setWith=lV,v.shuffle=ZP,v.slice=jB,v.sortBy=HP,v.sortedUniq=KB,v.sortedUniqBy=YB,v.split=MV,v.spread=rD,v.tail=JB,v.take=QB,v.takeRight=XB,v.takeRightWhile=eP,v.takeWhile=tP,v.tap=mP,v.throttle=nD,v.thru=gl,v.toArray=$h,v.toPairs=Jh,v.toPairsIn=Qh,v.toPath=d2,v.toPlainObject=Hh,v.transform=sV,v.unary=oD,v.union=rP,v.unionBy=nP,v.unionWith=oP,v.uniq=aP,v.uniqBy=iP,v.uniqWith=lP,v.unset=cV,v.unzip=jc,v.unzipWith=Mh,v.update=dV,v.updateWith=uV,v.values=Mo,v.valuesIn=pV,v.without=sP,v.words=tf,v.wrap=aD,v.xor=cP,v.xorBy=dP,v.xorWith=uP,v.zip=pP,v.zipObject=gP,v.zipObjectDeep=hP,v.zipWith=fP,v.entries=Jh,v.entriesIn=Qh,v.extend=qh,v.extendWith=wl,Qc(v,v),v.add=p2,v.attempt=rf,v.camelCase=mV,v.capitalize=Xh,v.ceil=g2,v.clamp=gV,v.clone=lD,v.cloneDeep=cD,v.cloneDeepWith=dD,v.cloneWith=sD,v.conformsTo=uD,v.deburr=ef,v.defaultTo=$V,v.divide=h2,v.endsWith=vV,v.eq=wr,v.escape=yV,v.escapeRegExp=bV,v.every=TP,v.find=NP,v.findIndex=Sh,v.findKey=GD,v.findLast=AP,v.findLastIndex=Th,v.findLastKey=jD,v.floor=f2,v.forEach=Ph,v.forEachRight=Dh,v.forIn=UD,v.forInRight=ZD,v.forOwn=$D,v.forOwnRight=WD,v.get=Hc,v.gt=pD,v.gte=gD,v.has=KD,v.hasIn=qc,v.head=Nh,v.identity=Pt,v.includes=VP,v.indexOf=AB,v.inRange=hV,v.invoke=QD,v.isArguments=qn,v.isArray=ke,v.isArrayBuffer=hD,v.isArrayLike=Mt,v.isArrayLikeObject=tt,v.isBoolean=fD,v.isBuffer=_n,v.isDate=mD,v.isElement=vD,v.isEmpty=yD,v.isEqual=bD,v.isEqualWith=wD,v.isError=$c,v.isFinite=xD,v.isFunction=$r,v.isInteger=Gh,v.isLength=yl,v.isMap=jh,v.isMatch=CD,v.isMatchWith=_D,v.isNaN=kD,v.isNative=SD,v.isNil=ED,v.isNull=TD,v.isNumber=Uh,v.isObject=Je,v.isObjectLike=Xe,v.isPlainObject=Ka,v.isRegExp=Wc,v.isSafeInteger=ND,v.isSet=Zh,v.isString=bl,v.isSymbol=Zt,v.isTypedArray=Ao,v.isUndefined=AD,v.isWeakMap=MD,v.isWeakSet=BD,v.join=VB,v.kebabCase=wV,v.last=er,v.lastIndexOf=LB,v.lowerCase=xV,v.lowerFirst=CV,v.lt=PD,v.lte=DD,v.max=m2,v.maxBy=v2,v.mean=y2,v.meanBy=b2,v.min=w2,v.minBy=x2,v.stubArray=ed,v.stubFalse=td,v.stubObject=i2,v.stubString=l2,v.stubTrue=s2,v.multiply=C2,v.nth=IB,v.noConflict=QV,v.noop=Xc,v.now=fl,v.pad=_V,v.padEnd=kV,v.padStart=SV,v.parseInt=TV,v.random=fV,v.reduce=OP,v.reduceRight=zP,v.repeat=EV,v.replace=NV,v.result=aV,v.round=_2,v.runInContext=N,v.sample=jP,v.size=$P,v.snakeCase=AV,v.some=WP,v.sortedIndex=UB,v.sortedIndexBy=ZB,v.sortedIndexOf=$B,v.sortedLastIndex=WB,v.sortedLastIndexBy=HB,v.sortedLastIndexOf=qB,v.startCase=BV,v.startsWith=PV,v.subtract=k2,v.sum=S2,v.sumBy=T2,v.template=DV,v.times=c2,v.toFinite=Wr,v.toInteger=Ee,v.toLength=Wh,v.toLower=VV,v.toNumber=tr,v.toSafeInteger=VD,v.toString=Ge,v.toUpper=LV,v.trim=IV,v.trimEnd=FV,v.trimStart=RV,v.truncate=OV,v.unescape=zV,v.uniqueId=u2,v.upperCase=GV,v.upperFirst=Kc,v.each=Ph,v.eachRight=Dh,v.first=Nh,Qc(v,function(){var a={};return Nr(v,function(l,c){je.call(v.prototype,c)||(a[c]=l)}),a}(),{chain:!1}),v.VERSION=o,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){v[a].placeholder=v}),Kt(["drop","take"],function(a,l){De.prototype[a]=function(c){c=c===r?1:lt(Ee(c),0);var g=this.__filtered__&&!l?new De(this):this.clone();return g.__filtered__?g.__takeCount__=yt(c,g.__takeCount__):g.__views__.push({size:yt(c,Nt),type:a+(g.__dir__<0?"Right":"")}),g},De.prototype[a+"Right"]=function(c){return this.reverse()[a](c).reverse()}}),Kt(["filter","map","takeWhile"],function(a,l){var c=l+1,g=c==B||c==X;De.prototype[a]=function(m){var b=this.clone();return b.__iteratees__.push({iteratee:pe(m,3),type:c}),b.__filtered__=b.__filtered__||g,b}}),Kt(["head","last"],function(a,l){var c="take"+(l?"Right":"");De.prototype[a]=function(){return this[c](1).value()[0]}}),Kt(["initial","tail"],function(a,l){var c="drop"+(l?"":"Right");De.prototype[a]=function(){return this.__filtered__?new De(this):this[c](1)}}),De.prototype.compact=function(){return this.filter(Pt)},De.prototype.find=function(a){return this.filter(a).head()},De.prototype.findLast=function(a){return this.reverse().find(a)},De.prototype.invokeMap=Be(function(a,l){return typeof a=="function"?new De(this):this.map(function(c){return Ua(c,a,l)})}),De.prototype.reject=function(a){return this.filter(vl(pe(a)))},De.prototype.slice=function(a,l){a=Ee(a);var c=this;return c.__filtered__&&(a>0||l<0)?new De(c):(a<0?c=c.takeRight(-a):a&&(c=c.drop(a)),l!==r&&(l=Ee(l),c=l<0?c.dropRight(-l):c.take(l-a)),c)},De.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},De.prototype.toArray=function(){return this.take(Nt)},Nr(De.prototype,function(a,l){var c=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),m=v[g?"take"+(l=="last"?"Right":""):l],b=g||/^find/.test(l);m&&(v.prototype[l]=function(){var _=this.__wrapped__,T=g?[1]:arguments,M=_ instanceof De,Z=T[0],$=M||ke(_),q=function(Pe){var Ve=m.apply(v,mn([Pe],T));return g&&te?Ve[0]:Ve};$&&c&&typeof Z=="function"&&Z.length!=1&&(M=$=!1);var te=this.__chain__,se=!!this.__actions__.length,he=b&&!te,Me=M&&!se;if(!b&&$){_=Me?_:new De(this);var fe=a.apply(_,T);return fe.__actions__.push({func:gl,args:[q],thisArg:r}),new Jt(fe,te)}return he&&Me?a.apply(this,T):(fe=this.thru(q),he?g?fe.value()[0]:fe.value():fe)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(a){var l=Oi[a],c=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);v.prototype[a]=function(){var m=arguments;if(g&&!this.__chain__){var b=this.value();return l.apply(ke(b)?b:[],m)}return this[c](function(_){return l.apply(ke(_)?_:[],m)})}}),Nr(De.prototype,function(a,l){var c=v[l];if(c){var g=c.name+"";je.call(ko,g)||(ko[g]=[]),ko[g].push({name:l,func:c})}}),ko[il(r,w).name]=[{name:"wrapper",func:r}],De.prototype.clone=zA,De.prototype.reverse=GA,De.prototype.value=jA,v.prototype.at=vP,v.prototype.chain=yP,v.prototype.commit=bP,v.prototype.next=wP,v.prototype.plant=CP,v.prototype.reverse=_P,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=kP,v.prototype.first=v.prototype.head,Ia&&(v.prototype[Ia]=xP),v},xo=bA();zn?((zn.exports=xo)._=xo,Js._=xo):pt._=xo}).call(Bo)}(Si,Si.exports);var Qe=Si.exports;const dE={class:"grid-overlay-container"},hp=n.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,r)=>(n.openBlock(),n.createElementBlock("div",dE,[e.params.notReady?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r[0]||(r[0]=n.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),r[1]||(r[1]=n.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r[2]||(r[2]=n.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),r[3]||(r[3]=n.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),uE={},pE={class:"grid-overlay-container"};function gE(t,e){return n.openBlock(),n.createElementBlock("div",pE,e[0]||(e[0]=[n.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),n.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const fp=As(uE,[["render",gE]]);async function hE(t,e){throw Error("not implemented")}function fE(t){return t.axesSpec.filter(e=>{var r;return((r=e.annotations)==null?void 0:r["pl7.app/axisNature"])==="heterogeneous"})}function mE(t,e){const r=[];for(const o of e)if(t[o].type==="column"){const i=fE(t[o].spec);for(const s of i){if(s.type!=="String"){console.warn("heterogeneous axis with string type expected, got",s,"skipping");continue}const d=Nd(s),u=t.findIndex(p=>Qe.isEqual(p.id,d));if(u===-1)throw console.error("axis not found",o,d,t),Error("axis not found");r.push({columnIdx:o,axisIdx:u})}}return r}const mp=(t,e)=>(t+e).toString();function vE(t,e,r,o,i,s){if(t.length>1)throw Error("hColumns.length > 1 is not supported");const d=t[0];let u=-1,p=-1;for(let y=0;y<s.length;++y)s[y]===d.axisIdx&&(u=y),s[y]===d.columnIdx&&(p=y);const h=(()=>{const S=o[u].data.filter(k=>k!==null);return Array.from(new Set(S))})();h.sort(),p>u?(r.splice(p,1),r.splice(u,1)):(r.splice(u,1),r.splice(p,1));const f=yE(i,o,u,p,h,e.rows);for(let y=0;y<h.length;++y){const S=h[y],k=S+"@"+y;r.push({colId:k,field:mp(o.length,y),headerName:S,valueFormatter:vp})}return{rowModelType:"clientSide",columnDefs:r,rowData:f}}function yE(t,e,r,o,i,s){const d=new Map;let u=0;for(let h=0;h<s;h++){const f={};for(let E=0;E<e.length;++E){if(E===r||E===o)continue;const A=t[E].toString();f[A]=e[E].data[h]}let y;const S=Po(Object.values(f))??"";d.has(S)?y=d.get(S):(d.set(S,f),y=f,y.id=u.toString(),u++);const k=i.indexOf(e[r].data[h]);if(k===-1)throw Error("index not found");const D=mp(e.length,k);y[D]=e[o].data[h]}return Array.from(d.values())}function bE(t){return Po({type:t.type,id:t.id})}function wE(t){return JSON.parse(t)}const vp=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function xE(t,e,r){var i,s,d;const o=bE(e);return{colId:o,field:t.toString(),headerName:((s=(i=e.spec.annotations)==null?void 0:i["pl7.app/label"])==null?void 0:s.trim())??"Unlabeled "+e.type+" "+t.toString(),lockPosition:e.type==="axis",hide:(r==null?void 0:r.includes(o))??((d=e.spec.annotations)==null?void 0:d["pl7.app/table/visibility"])==="optional",valueFormatter:vp,cellDataType:(u=>{switch(u){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${u}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function yp(t,e){switch(e){case"Int":return t;case"Long":return typeof t=="bigint"?Number(t):t;case"Float":return t;case"Double":return t;case"String":return t;case"Bytes":return Buffer.from(t).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function bp(t){const e=[];return li(t,r=>(e.push(r),r)),e}async function CE(t,e,r){return r.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Qe.uniqWith(r.map(i=>Ol(i.spec.axesSpec).map(Qe.cloneDeep)).flat(),Qe.isEqual),strictlyCompatible:!0})).hits.filter(i=>i.spec.axesSpec.length===1):[]}async function _E(t,e,r){const o=bp(r),s=(await CE(t,e,o)).filter(d=>!Qe.find(o,u=>d.columnId===u.columnId));return s.length===0?r:{type:"outer",primary:r,secondary:s.map(d=>({type:"column",column:d}))}}async function kE(t,e,r,o){const i=r.filter(f=>f.type!=="Bytes"),s=bp(o),d=i.map(f=>[]),u=i.map(f=>null);for(let f=0;f<s.length;++f){const y=Ol(s[f].spec.axesSpec);for(let S=0;S<y.length;++S){const k=Qe.findIndex(i,D=>Qe.isEqual(D,y[S]));k===-1||u[k]||(y.length===1&&s[f].spec.name==="pl7.app/label"?(d[k]=[[f,S]],u[k]=s[f].columnId):d[k].push([f,S]))}}for(let f=i.length-1;f>=0;--f)d[f].length||(u.splice(f,1),d.splice(f,1),i.splice(f,1));const p=100,h=i.map(f=>new Set);e:for(let f=i.length-1;f>=0;--f){for(const[y,S]of d[f]){const k=await t.getUniqueValues(e,{columnId:s[y].columnId,...!u[f]&&{axis:Qe.cloneDeep(i[f])},filters:[],limit:p});if(k.overflow){u.splice(f,1),d.splice(f,1),i.splice(f,1);continue e}const D=k.values.type;for(const E of k.values.data)if(!(Ed(E,D)||E===null)&&(h[f].add(yp(E,D)),h[f].size===p)){u.splice(f,1),d.splice(f,1),i.splice(f,1);continue e}}if(!h[f].size){u.splice(f,1),d.splice(f,1),i.splice(f,1);continue e}}return i.map((f,y)=>{const S=[...h[y]].map(D=>({value:D,text:D.toString()})),k=S[0].value;return{axis:Qe.cloneDeep(f),...u[y]&&{column:u[y]},options:S,defaultValue:k}})}function SE(t,e,r){const o=e.length,i=[];for(let s=0;s<e[0].data.length;++s){const d={};for(let u=0;u<o;++u){const p=t[u].toString(),h=e[u].data[s],f=e[u].type;Am(e[u].absent,s)?d[p]=void 0:Ed(h,f)||h===null?d[p]=null:d[p]=yp(h,f)}d.id=(r++).toString(),i.push(d)}return i}const TE=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function EE(t,e,r,o){const i=await t.getSpec(e),s=[...i.keys()].filter(k=>!Qe.find(r,D=>Qe.isEqual(D.axis,i[k].id)||Qe.isEqual(D.column,i[k].id))),d=Qe.cloneDeep(s),u=mE(i,s);for(let k=s.length-1;k>=0;--k){const D=s[k];if(!TE(i[D]))continue;const E=Ol(i[D].spec.axesSpec)[0],A=Qe.findIndex(s,w=>Qe.isEqual(i[w].id,E));if(A!==-1){s[A]=D;for(const w of u)w.axisIdx===D&&(w.axisIdx=A);s.splice(k,1),d.splice(k,1)}}const p=await t.getShape(e),h=p.rows,f=d.map(k=>xE(k,i[k],o));if(u.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",u.length," transposition will not be applied."),u.length===1)return vE(u,p,f,await t.getData(e,s),d,s);let y;return{rowModelType:"serverSide",columnDefs:f,serverSideDatasource:{getRows:async k=>{try{if(h==0){k.success({rowData:[],rowCount:h}),k.api.showNoRowsOverlay(),k.api.setGridOption("loading",!1);return}if(y&&!Qe.isEqual(y.request.sortModel,k.request.sortModel)){y=void 0,k.fail(),k.api.setGridOption("loading",!0);return}y=k;let D=0,E=[];if(h>0&&k.request.startRow!==void 0&&k.request.endRow!==void 0&&(D=Math.min(h,k.request.endRow)-k.request.startRow,D>0)){const A=await t.getData(e,s,{offset:k.request.startRow,length:D});E=SE(d,A,k.request.startRow)}k.success({rowData:E,rowCount:h}),k.api.autoSizeAllColumns(),k.api.setGridOption("loading",!1)}catch{k.fail(),k.api.setGridOption("loading",!0)}}}}}const NE={class:"ap-ag-data-table-container"},AE={key:0,class:"ap-ag-data-table-sheets"},ME=As(n.defineComponent({__name:"PlAgDataTable",props:n.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:["update:modelValue"],setup(t){C.ModuleRegistry.registerModules([Ja.ClientSideRowModelModule,dd.ClipboardModule,cd.ServerSideRowModelModule,ud.RangeSelectionModule,Ul,Yd]);const e=n.useModel(t,"modelValue"),r=t,{settings:o}=n.toRefs(r);n.watch(()=>o.value,async(w,L)=>{if(w.sourceType!=="pframe"||!w.pFrame||!w.join||L&&L.sourceType==="pframe"&&Qe.isEqual(w.pFrame,L.pFrame)&&Qe.isEqual(w.join,L.join))return;const R=window.platforma;if(!R)throw Error("platforma not set");const H=R.pFrameDriver;if(!H)throw Error("platforma.pFrameDriver not set");const G=await _E(H,w.pFrame,w.join),K=e.value;K.pTableParams||(K.pTableParams={sorting:[],filters:[]}),K.pTableParams.join=G,e.value=K});const i=wp(()=>o.value.sourceType,async w=>{var R;const L=o.value.sourceType;switch(L){case"pframe":{const H=window.platforma;if(!H)throw Error("platforma not set");const G=H.pFrameDriver;if(!G)throw Error("platforma.pFrameDriver not set");if(!o.value.pFrame)return[];const K=o.value.pFrame,U=(R=e.value.pTableParams)==null?void 0:R.join;return U?await kE(G,K,o.value.sheetAxes,U):[]}case"ptable":return o.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${L}`)}});function s(w){if(!(o.value.sourceType!=="ptable"&&o.value.sourceType!=="pframe"))return(w==null?void 0:w.sortModel.map(L=>({column:wE(L.colId),ascending:L.sort==="asc",naAndAbsentAreLeastValues:!0})))??[]}const d=n.computed({get:()=>{const w=e.value;return{columnOrder:w.gridState.columnOrder,sort:w.gridState.sort,columnVisibility:w.gridState.columnVisibility}},set:w=>{const L=e.value,R=y.value.rowModelType==="clientSide"?void 0:s(w.sort);L.gridState.columnOrder=w.columnOrder,L.gridState.sort=w.sort,L.gridState.columnVisibility=w.columnVisibility,(o.value.sourceType==="ptable"||o.value.sourceType==="pframe")&&(L.pTableParams||(L.pTableParams={sorting:[],filters:[]}),L.pTableParams.sorting=R),e.value=L}}),u=w=>Po(w);function p(w){var L;if(!(o.value.sourceType!=="ptable"&&o.value.sourceType!=="pframe"))return((L=i.value)==null?void 0:L.map(R=>({type:"bySingleColumn",column:R.column?{type:"column",id:R.column}:{type:"axis",id:R.axis},predicate:{operator:"Equal",reference:w[u(R.axis)]}})))??[]}const h=n.computed({get:()=>e.value.gridState.sheets??{},set:w=>{const L=p(w),R=e.value;R.gridState.sheets=w,(o.value.sourceType==="ptable"||o.value.sourceType==="pframe")&&(R.pTableParams||(R.pTableParams={sorting:[],filters:[]}),R.pTableParams.filters=L),e.value=R}});n.watch(()=>[o.value,i.value],(w,L)=>{const[R,H]=w;if(!H)return;if(L){const[K,U]=L;if((R.sourceType==="ptable"||R.sourceType==="pframe")&&R.sourceType===(K==null?void 0:K.sourceType)&&Qe.isEqual(H,U))return}if(R.sourceType!=="ptable"&&R.sourceType!=="pframe"){h.value={};return}const G=h.value;for(const K of H){const U=u(K.axis);G[U]||(G[U]=K.defaultValue??K.options[0].value)}h.value=G},{immediate:!0});const f=n.shallowRef(),y=n.ref({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:d.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:w=>{w.api.autoSizeAllColumns()},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:w=>w.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:hp,noRowsOverlayComponent:fp,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressPivotMode:!0,suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:"columns"}}),S=w=>{const L=w.api;f.value=new Proxy(L,{get(R,H,G){switch(H){case"setGridOption":return(K,U)=>{const P=y.value;P[K]=U,y.value=P,L.updateGridOptions(P)};case"updateGridOptions":return K=>{y.value={...y.value,...K},L.updateGridOptions(K)};default:return Reflect.get(R,H,G)}}})},k=w=>{d.value={columnOrder:w.state.columnOrder,sort:w.state.sort,columnVisibility:w.state.columnVisibility??(w.state.columnOrder?{hiddenColIds:[]}:void 0)},y.value.initialState=d.value},D=()=>{const w=f.value.getState();d.value={columnOrder:w.columnOrder,sort:w.sort,columnVisibility:w.columnVisibility??(w.columnOrder?{hiddenColIds:[]}:void 0)},y.value.initialState=d.value,f.value=void 0},E=n.ref(0);n.watch(()=>[f.value,d.value],(w,L)=>{if(Qe.isEqual(w,L))return;const[R,H]=w;if(!R)return;const G=R.getState(),K={columnOrder:G.columnOrder,sort:G.sort,columnVisibility:G.columnVisibility??(G.columnOrder?{hiddenColIds:[]}:void 0)};Qe.isEqual(H,K)||(y.value.initialState=H,++E.value)}),n.watch(()=>y.value,(w,L)=>{L&&w.rowModelType!=L.rowModelType&&++E.value});const A=(w,L)=>{var H;const R=h.value;R[w]!==L&&(R[w]=L,h.value=R,(H=f.value)==null||H.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))};return n.watch(()=>[f.value,o.value,i.value],async(w,L)=>{var P,W;if(Qe.isEqual(w,L))return;const[R,H,G]=w;if(!R)return;const K=window.platforma;if(!K)throw Error("platforma not set");const U=H.sourceType;switch(U){case"pframe":case"ptable":{const F=K.pFrameDriver;if(!F)throw Error("platforma.pFrameDriver not set");const Y=H.pTable;if(!Y||!G)return R.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ue=(W=(P=d.value)==null?void 0:P.columnVisibility)==null?void 0:W.hiddenColIds,j=await EE(F,Y,G,ue);return R.updateGridOptions({loading:j.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...j})}case"xsv":{const F=K.blobDriver;if(!F)throw Error("platforma.blobDriver not set");const Y=H.xsvFile;if(!(Y!=null&&Y.ok)||!Y.value)return R.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ue=await hE(F,Y.value);return R.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...ue})}default:throw Error(`unsupported source type: ${U}`)}}),(w,L)=>(n.openBlock(),n.createElementBlock("div",NE,[n.createVNode(n.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:n.withCtx(()=>[n.unref(i).value&&n.unref(i).value.length>0?(n.openBlock(),n.createElementBlock("div",AE,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i).value,(R,H)=>(n.openBlock(),n.createBlock(n.unref(Wu),{key:H,"model-value":h.value[u(R.axis)],options:R.options,"onUpdate:modelValue":G=>A(u(R.axis),G)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):n.createCommentVNode("",!0)]),_:1}),(n.openBlock(),n.createBlock(n.unref(hf.AgGridVue),{key:E.value,theme:n.unref(uu),class:"ap-ag-data-table-grid","grid-options":y.value,onGridReady:S,onStateUpdated:k,onGridPreDestroyed:D},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-15f8c97a"]]),BE={key:1,class:"alert-error"},PE={key:2},DE=n.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,r=n.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),o=n.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),i=n.computed(()=>r.value===void 0&&o.value===void 0);return(s,d)=>(n.openBlock(),n.createElementBlock("div",null,[r.value!==void 0?n.renderSlot(s.$slots,"default",n.normalizeProps(n.mergeProps({key:0},{value:r.value}))):n.createCommentVNode("",!0),o.value?(n.openBlock(),n.createElementBlock("div",BE,n.toDisplayString(o.value),1)):n.createCommentVNode("",!0),i.value?(n.openBlock(),n.createElementBlock("div",PE,"Unresolved")):n.createCommentVNode("",!0)]))}}),VE={style:{height:"100%"}},LE=n.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,r=n.computed(()=>e.params.extensions),o=n.computed(()=>e.params.value);function i(d){e.params.setValue(d)}const s=n.computed(()=>e.params.resolveProgress?e.params.resolveProgress(o.value):void 0);return(d,u)=>(n.openBlock(),n.createElementBlock("div",VE,[n.createVNode(n.unref(cp),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${r.value?r.value[0]:""}`,extensions:r.value,"model-value":o.value,progress:s.value,"onUpdate:modelValue":i},null,8,["placeholder","extensions","model-value","progress"])]))}}),Ti=new Map;function IE(t,e){const r=n.getCurrentScope()??n.effectScope(),o=r.run(()=>(n.onScopeDispose(()=>{Ti.delete(t)}),n.reactive(e())));return o[Symbol.dispose]=()=>{r.stop()},o}function FE(t){const e=Symbol();return()=>(Ti.has(e)||Ti.set(e,IE(e,t)),Ti.get(e))}function RE(t){return n.computed(()=>{try{return gd(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function wp(t,e,r){const o=n.ref(0),i=n.reactive({loading:n.computed(()=>o.value>0),loadingRef:o,value:void 0,error:void 0}),s=vf(e);return n.watch(t,async d=>{i.error=void 0,o.value++,s(d).then(u=>{u.ok&&(i.value=u.value)}).catch(u=>{i.value=void 0,i.error=u}).finally(()=>{o.value--})},Object.assign({immediate:!0,deep:!0},r??{})),i}const co=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,xp=new Set,Ms=typeof process=="object"&&process?process:{},Cp=(t,e,r,o)=>{typeof Ms.emitWarning=="function"?Ms.emitWarning(t,e,r,o):console.error(`[${r}] ${e}: ${t}`)};let Ei=globalThis.AbortController,_p=globalThis.AbortSignal;if(typeof Ei>"u"){_p=class{constructor(){ze(this,"onabort");ze(this,"_onabort",[]);ze(this,"reason");ze(this,"aborted",!1)}addEventListener(o,i){this._onabort.push(i)}},Ei=class{constructor(){ze(this,"signal",new _p);e()}abort(o){var i,s;if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(const d of this.signal._onabort)d(o);(s=(i=this.signal).onabort)==null||s.call(i,o)}}};let t=((Sp=Ms.env)==null?void 0:Sp.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,Cp("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const OE=t=>!xp.has(t),gn=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),kp=t=>gn(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ni:null:null;class Ni extends Array{constructor(e){super(e),this.fill(0)}}const Ln=class Ln{constructor(e,r){ze(this,"heap");ze(this,"length");if(!x(Ln,uo))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}static create(e){const r=kp(e);if(!r)return[];ge(Ln,uo,!0);const o=new Ln(e,r);return ge(Ln,uo,!1),o}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};uo=new WeakMap,Re(Ln,uo,!1);let Bs=Ln;const Vs=class Vs{constructor(e){Re(this,ee);Re(this,sr);Re(this,It);Re(this,cr);Re(this,dr);Re(this,po);Re(this,go);ze(this,"ttl");ze(this,"ttlResolution");ze(this,"ttlAutopurge");ze(this,"updateAgeOnGet");ze(this,"updateAgeOnHas");ze(this,"allowStale");ze(this,"noDisposeOnSet");ze(this,"noUpdateTTL");ze(this,"maxEntrySize");ze(this,"sizeCalculation");ze(this,"noDeleteOnFetchRejection");ze(this,"noDeleteOnStaleGet");ze(this,"allowStaleOnFetchAbort");ze(this,"allowStaleOnFetchRejection");ze(this,"ignoreFetchAbort");Re(this,at);Re(this,ur);Re(this,nt);Re(this,$e);Re(this,xe);Re(this,Ct);Re(this,Ft);Re(this,vt);Re(this,ct);Re(this,pr);Re(this,dt);Re(this,gr);Re(this,hr);Re(this,Rt);Re(this,fr);Re(this,hn);Re(this,_t);Re(this,In,()=>{});Re(this,Fr,()=>{});Re(this,ka,()=>{});Re(this,Ot,()=>!1);Re(this,Fn,e=>{});Re(this,ho,(e,r,o)=>{});Re(this,Sa,(e,r,o,i)=>{if(o||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});ze(this,Tp,"LRUCache");const{max:r=0,ttl:o,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:d,updateAgeOnHas:u,allowStale:p,dispose:h,disposeAfter:f,noDisposeOnSet:y,noUpdateTTL:S,maxSize:k=0,maxEntrySize:D=0,sizeCalculation:E,fetchMethod:A,memoMethod:w,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:H,allowStaleOnFetchAbort:G,ignoreFetchAbort:K}=e;if(r!==0&&!gn(r))throw new TypeError("max option must be a nonnegative integer");const U=r?kp(r):Array;if(!U)throw new Error("invalid max value: "+r);if(ge(this,sr,r),ge(this,It,k),this.maxEntrySize=D||x(this,It),this.sizeCalculation=E,this.sizeCalculation){if(!x(this,It)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(w!==void 0&&typeof w!="function")throw new TypeError("memoMethod must be a function if defined");if(ge(this,go,w),A!==void 0&&typeof A!="function")throw new TypeError("fetchMethod must be a function if specified");if(ge(this,po,A),ge(this,hn,!!A),ge(this,nt,new Map),ge(this,$e,new Array(r).fill(void 0)),ge(this,xe,new Array(r).fill(void 0)),ge(this,Ct,new U(r)),ge(this,Ft,new U(r)),ge(this,vt,0),ge(this,ct,0),ge(this,pr,Bs.create(r)),ge(this,at,0),ge(this,ur,0),typeof h=="function"&&ge(this,cr,h),typeof f=="function"?(ge(this,dr,f),ge(this,dt,[])):(ge(this,dr,void 0),ge(this,dt,void 0)),ge(this,fr,!!x(this,cr)),ge(this,_t,!!x(this,dr)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!H,this.allowStaleOnFetchAbort=!!G,this.ignoreFetchAbort=!!K,this.maxEntrySize!==0){if(x(this,It)!==0&&!gn(x(this,It)))throw new TypeError("maxSize must be a positive integer if specified");if(!gn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");le(this,ee,sf).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!R,this.updateAgeOnGet=!!d,this.updateAgeOnHas=!!u,this.ttlResolution=gn(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=o||0,this.ttl){if(!gn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");le(this,ee,ad).call(this)}if(x(this,sr)===0&&this.ttl===0&&x(this,It)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!x(this,sr)&&!x(this,It)){const P="LRU_CACHE_UNBOUNDED";OE(P)&&(xp.add(P),Cp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,Vs))}}static unsafeExposeInternals(e){return{starts:x(e,hr),ttls:x(e,Rt),sizes:x(e,gr),keyMap:x(e,nt),keyList:x(e,$e),valList:x(e,xe),next:x(e,Ct),prev:x(e,Ft),get head(){return x(e,vt)},get tail(){return x(e,ct)},free:x(e,pr),isBackgroundFetch:r=>{var o;return le(o=e,ee,He).call(o,r)},backgroundFetch:(r,o,i,s)=>{var d;return le(d=e,ee,_l).call(d,r,o,i,s)},moveToTail:r=>{var o;return le(o=e,ee,Ya).call(o,r)},indexes:r=>{var o;return le(o=e,ee,kn).call(o,r)},rindexes:r=>{var o;return le(o=e,ee,Sn).call(o,r)},isStale:r=>{var o;return x(o=e,Ot).call(o,r)}}}get max(){return x(this,sr)}get maxSize(){return x(this,It)}get calculatedSize(){return x(this,ur)}get size(){return x(this,at)}get fetchMethod(){return x(this,po)}get memoMethod(){return x(this,go)}get dispose(){return x(this,cr)}get disposeAfter(){return x(this,dr)}getRemainingTTL(e){return x(this,nt).has(e)?1/0:0}*entries(){for(const e of le(this,ee,kn).call(this))x(this,xe)[e]!==void 0&&x(this,$e)[e]!==void 0&&!le(this,ee,He).call(this,x(this,xe)[e])&&(yield[x(this,$e)[e],x(this,xe)[e]])}*rentries(){for(const e of le(this,ee,Sn).call(this))x(this,xe)[e]!==void 0&&x(this,$e)[e]!==void 0&&!le(this,ee,He).call(this,x(this,xe)[e])&&(yield[x(this,$e)[e],x(this,xe)[e]])}*keys(){for(const e of le(this,ee,kn).call(this)){const r=x(this,$e)[e];r!==void 0&&!le(this,ee,He).call(this,x(this,xe)[e])&&(yield r)}}*rkeys(){for(const e of le(this,ee,Sn).call(this)){const r=x(this,$e)[e];r!==void 0&&!le(this,ee,He).call(this,x(this,xe)[e])&&(yield r)}}*values(){for(const e of le(this,ee,kn).call(this))x(this,xe)[e]!==void 0&&!le(this,ee,He).call(this,x(this,xe)[e])&&(yield x(this,xe)[e])}*rvalues(){for(const e of le(this,ee,Sn).call(this))x(this,xe)[e]!==void 0&&!le(this,ee,He).call(this,x(this,xe)[e])&&(yield x(this,xe)[e])}[(Ep=Symbol.iterator,Tp=Symbol.toStringTag,Ep)](){return this.entries()}find(e,r={}){for(const o of le(this,ee,kn).call(this)){const i=x(this,xe)[o],s=le(this,ee,He).call(this,i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,x(this,$e)[o],this))return this.get(x(this,$e)[o],r)}}forEach(e,r=this){for(const o of le(this,ee,kn).call(this)){const i=x(this,xe)[o],s=le(this,ee,He).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,x(this,$e)[o],this)}}rforEach(e,r=this){for(const o of le(this,ee,Sn).call(this)){const i=x(this,xe)[o],s=le(this,ee,He).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,x(this,$e)[o],this)}}purgeStale(){let e=!1;for(const r of le(this,ee,Sn).call(this,{allowStale:!0}))x(this,Ot).call(this,r)&&(le(this,ee,Tn).call(this,x(this,$e)[r],"expire"),e=!0);return e}info(e){const r=x(this,nt).get(e);if(r===void 0)return;const o=x(this,xe)[r],i=le(this,ee,He).call(this,o)?o.__staleWhileFetching:o;if(i===void 0)return;const s={value:i};if(x(this,Rt)&&x(this,hr)){const d=x(this,Rt)[r],u=x(this,hr)[r];if(d&&u){const p=d-(co.now()-u);s.ttl=p,s.start=Date.now()}}return x(this,gr)&&(s.size=x(this,gr)[r]),s}dump(){const e=[];for(const r of le(this,ee,kn).call(this,{allowStale:!0})){const o=x(this,$e)[r],i=x(this,xe)[r],s=le(this,ee,He).call(this,i)?i.__staleWhileFetching:i;if(s===void 0||o===void 0)continue;const d={value:s};if(x(this,Rt)&&x(this,hr)){d.ttl=x(this,Rt)[r];const u=co.now()-x(this,hr)[r];d.start=Math.floor(Date.now()-u)}x(this,gr)&&(d.size=x(this,gr)[r]),e.unshift([o,d])}return e}load(e){this.clear();for(const[r,o]of e){if(o.start){const i=Date.now()-o.start;o.start=co.now()-i}this.set(r,o.value,o)}}set(e,r,o={}){var S,k,D,E,A;if(r===void 0)return this.delete(e),this;const{ttl:i=this.ttl,start:s,noDisposeOnSet:d=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=o;let{noUpdateTTL:h=this.noUpdateTTL}=o;const f=x(this,Sa).call(this,e,r,o.size||0,u);if(this.maxEntrySize&&f>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),le(this,ee,Tn).call(this,e,"set"),this;let y=x(this,at)===0?void 0:x(this,nt).get(e);if(y===void 0)y=x(this,at)===0?x(this,ct):x(this,pr).length!==0?x(this,pr).pop():x(this,at)===x(this,sr)?le(this,ee,Cl).call(this,!1):x(this,at),x(this,$e)[y]=e,x(this,xe)[y]=r,x(this,nt).set(e,y),x(this,Ct)[x(this,ct)]=y,x(this,Ft)[y]=x(this,ct),ge(this,ct,y),xl(this,at)._++,x(this,ho).call(this,y,f,p),p&&(p.set="add"),h=!1;else{le(this,ee,Ya).call(this,y);const w=x(this,xe)[y];if(r!==w){if(x(this,hn)&&le(this,ee,He).call(this,w)){w.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:L}=w;L!==void 0&&!d&&(x(this,fr)&&((S=x(this,cr))==null||S.call(this,L,e,"set")),x(this,_t)&&((k=x(this,dt))==null||k.push([L,e,"set"])))}else d||(x(this,fr)&&((D=x(this,cr))==null||D.call(this,w,e,"set")),x(this,_t)&&((E=x(this,dt))==null||E.push([w,e,"set"])));if(x(this,Fn).call(this,y),x(this,ho).call(this,y,f,p),x(this,xe)[y]=r,p){p.set="replace";const L=w&&le(this,ee,He).call(this,w)?w.__staleWhileFetching:w;L!==void 0&&(p.oldValue=L)}}else p&&(p.set="update")}if(i!==0&&!x(this,Rt)&&le(this,ee,ad).call(this),x(this,Rt)&&(h||x(this,ka).call(this,y,i,s),p&&x(this,Fr).call(this,p,y)),!d&&x(this,_t)&&x(this,dt)){const w=x(this,dt);let L;for(;L=w==null?void 0:w.shift();)(A=x(this,dr))==null||A.call(this,...L)}return this}pop(){var e;try{for(;x(this,at);){const r=x(this,xe)[x(this,vt)];if(le(this,ee,Cl).call(this,!0),le(this,ee,He).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(x(this,_t)&&x(this,dt)){const r=x(this,dt);let o;for(;o=r==null?void 0:r.shift();)(e=x(this,dr))==null||e.call(this,...o)}}}has(e,r={}){const{updateAgeOnHas:o=this.updateAgeOnHas,status:i}=r,s=x(this,nt).get(e);if(s!==void 0){const d=x(this,xe)[s];if(le(this,ee,He).call(this,d)&&d.__staleWhileFetching===void 0)return!1;if(x(this,Ot).call(this,s))i&&(i.has="stale",x(this,Fr).call(this,i,s));else return o&&x(this,In).call(this,s),i&&(i.has="hit",x(this,Fr).call(this,i,s)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){const{allowStale:o=this.allowStale}=r,i=x(this,nt).get(e);if(i===void 0||!o&&x(this,Ot).call(this,i))return;const s=x(this,xe)[i];return le(this,ee,He).call(this,s)?s.__staleWhileFetching:s}async fetch(e,r={}){const{allowStale:o=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:d=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:S=this.allowStaleOnFetchRejection,ignoreFetchAbort:k=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:E,forceRefresh:A=!1,status:w,signal:L}=r;if(!x(this,hn))return w&&(w.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:w});const R={allowStale:o,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:d,noDisposeOnSet:u,size:p,sizeCalculation:h,noUpdateTTL:f,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:D,ignoreFetchAbort:k,status:w,signal:L};let H=x(this,nt).get(e);if(H===void 0){w&&(w.fetch="miss");const G=le(this,ee,_l).call(this,e,H,R,E);return G.__returned=G}else{const G=x(this,xe)[H];if(le(this,ee,He).call(this,G)){const F=o&&G.__staleWhileFetching!==void 0;return w&&(w.fetch="inflight",F&&(w.returnedStale=!0)),F?G.__staleWhileFetching:G.__returned=G}const K=x(this,Ot).call(this,H);if(!A&&!K)return w&&(w.fetch="hit"),le(this,ee,Ya).call(this,H),i&&x(this,In).call(this,H),w&&x(this,Fr).call(this,w,H),G;const U=le(this,ee,_l).call(this,e,H,R,E),W=U.__staleWhileFetching!==void 0&&o;return w&&(w.fetch=K?"stale":"refresh",W&&K&&(w.returnedStale=!0)),W?U.__staleWhileFetching:U.__returned=U}}async forceFetch(e,r={}){const o=await this.fetch(e,r);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,r={}){const o=x(this,go);if(!o)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:s,...d}=r,u=this.get(e,d);if(!s&&u!==void 0)return u;const p=o(e,u,{options:d,context:i});return this.set(e,p,d),p}get(e,r={}){const{allowStale:o=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:d}=r,u=x(this,nt).get(e);if(u!==void 0){const p=x(this,xe)[u],h=le(this,ee,He).call(this,p);return d&&x(this,Fr).call(this,d,u),x(this,Ot).call(this,u)?(d&&(d.get="stale"),h?(d&&o&&p.__staleWhileFetching!==void 0&&(d.returnedStale=!0),o?p.__staleWhileFetching:void 0):(s||le(this,ee,Tn).call(this,e,"expire"),d&&o&&(d.returnedStale=!0),o?p:void 0)):(d&&(d.get="hit"),h?p.__staleWhileFetching:(le(this,ee,Ya).call(this,u),i&&x(this,In).call(this,u),p))}else d&&(d.get="miss")}delete(e){return le(this,ee,Tn).call(this,e,"delete")}clear(){return le(this,ee,sd).call(this,"delete")}};sr=new WeakMap,It=new WeakMap,cr=new WeakMap,dr=new WeakMap,po=new WeakMap,go=new WeakMap,at=new WeakMap,ur=new WeakMap,nt=new WeakMap,$e=new WeakMap,xe=new WeakMap,Ct=new WeakMap,Ft=new WeakMap,vt=new WeakMap,ct=new WeakMap,pr=new WeakMap,dt=new WeakMap,gr=new WeakMap,hr=new WeakMap,Rt=new WeakMap,fr=new WeakMap,hn=new WeakMap,_t=new WeakMap,ee=new WeakSet,ad=function(){const e=new Ni(x(this,sr)),r=new Ni(x(this,sr));ge(this,Rt,e),ge(this,hr,r),ge(this,ka,(s,d,u=co.now())=>{if(r[s]=d!==0?u:0,e[s]=d,d!==0&&this.ttlAutopurge){const p=setTimeout(()=>{x(this,Ot).call(this,s)&&le(this,ee,Tn).call(this,x(this,$e)[s],"expire")},d+1);p.unref&&p.unref()}}),ge(this,In,s=>{r[s]=e[s]!==0?co.now():0}),ge(this,Fr,(s,d)=>{if(e[d]){const u=e[d],p=r[d];if(!u||!p)return;s.ttl=u,s.start=p,s.now=o||i();const h=s.now-p;s.remainingTTL=u-h}});let o=0;const i=()=>{const s=co.now();if(this.ttlResolution>0){o=s;const d=setTimeout(()=>o=0,this.ttlResolution);d.unref&&d.unref()}return s};this.getRemainingTTL=s=>{const d=x(this,nt).get(s);if(d===void 0)return 0;const u=e[d],p=r[d];if(!u||!p)return 1/0;const h=(o||i())-p;return u-h},ge(this,Ot,s=>{const d=r[s],u=e[s];return!!u&&!!d&&(o||i())-d>u})},In=new WeakMap,Fr=new WeakMap,ka=new WeakMap,Ot=new WeakMap,sf=function(){const e=new Ni(x(this,sr));ge(this,ur,0),ge(this,gr,e),ge(this,Fn,r=>{ge(this,ur,x(this,ur)-e[r]),e[r]=0}),ge(this,Sa,(r,o,i,s)=>{if(le(this,ee,He).call(this,o))return 0;if(!gn(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(o,r),!gn(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),ge(this,ho,(r,o,i)=>{if(e[r]=o,x(this,It)){const s=x(this,It)-e[r];for(;x(this,ur)>s;)le(this,ee,Cl).call(this,!0)}ge(this,ur,x(this,ur)+e[r]),i&&(i.entrySize=o,i.totalCalculatedSize=x(this,ur))})},Fn=new WeakMap,ho=new WeakMap,Sa=new WeakMap,kn=function*({allowStale:e=this.allowStale}={}){if(x(this,at))for(let r=x(this,ct);!(!le(this,ee,id).call(this,r)||((e||!x(this,Ot).call(this,r))&&(yield r),r===x(this,vt)));)r=x(this,Ft)[r]},Sn=function*({allowStale:e=this.allowStale}={}){if(x(this,at))for(let r=x(this,vt);!(!le(this,ee,id).call(this,r)||((e||!x(this,Ot).call(this,r))&&(yield r),r===x(this,ct)));)r=x(this,Ct)[r]},id=function(e){return e!==void 0&&x(this,nt).get(x(this,$e)[e])===e},Cl=function(e){var s,d;const r=x(this,vt),o=x(this,$e)[r],i=x(this,xe)[r];return x(this,hn)&&le(this,ee,He).call(this,i)?i.__abortController.abort(new Error("evicted")):(x(this,fr)||x(this,_t))&&(x(this,fr)&&((s=x(this,cr))==null||s.call(this,i,o,"evict")),x(this,_t)&&((d=x(this,dt))==null||d.push([i,o,"evict"]))),x(this,Fn).call(this,r),e&&(x(this,$e)[r]=void 0,x(this,xe)[r]=void 0,x(this,pr).push(r)),x(this,at)===1?(ge(this,vt,ge(this,ct,0)),x(this,pr).length=0):ge(this,vt,x(this,Ct)[r]),x(this,nt).delete(o),xl(this,at)._--,r},_l=function(e,r,o,i){const s=r===void 0?void 0:x(this,xe)[r];if(le(this,ee,He).call(this,s))return s;const d=new Ei,{signal:u}=o;u==null||u.addEventListener("abort",()=>d.abort(u.reason),{signal:d.signal});const p={signal:d.signal,options:o,context:i},h=(E,A=!1)=>{const{aborted:w}=d.signal,L=o.ignoreFetchAbort&&E!==void 0;if(o.status&&(w&&!A?(o.status.fetchAborted=!0,o.status.fetchError=d.signal.reason,L&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),w&&!L&&!A)return y(d.signal.reason);const R=k;return x(this,xe)[r]===k&&(E===void 0?R.__staleWhileFetching?x(this,xe)[r]=R.__staleWhileFetching:le(this,ee,Tn).call(this,e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,E,p.options))),E},f=E=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=E),y(E)),y=E=>{const{aborted:A}=d.signal,w=A&&o.allowStaleOnFetchAbort,L=w||o.allowStaleOnFetchRejection,R=L||o.noDeleteOnFetchRejection,H=k;if(x(this,xe)[r]===k&&(!R||H.__staleWhileFetching===void 0?le(this,ee,Tn).call(this,e,"fetch"):w||(x(this,xe)[r]=H.__staleWhileFetching)),L)return o.status&&H.__staleWhileFetching!==void 0&&(o.status.returnedStale=!0),H.__staleWhileFetching;if(H.__returned===H)throw E},S=(E,A)=>{var L;const w=(L=x(this,po))==null?void 0:L.call(this,e,s,p);w&&w instanceof Promise&&w.then(R=>E(R===void 0?void 0:R),A),d.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(E(void 0),o.allowStaleOnFetchAbort&&(E=R=>h(R,!0)))})};o.status&&(o.status.fetchDispatched=!0);const k=new Promise(S).then(h,f),D=Object.assign(k,{__abortController:d,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,D,{...p.options,status:void 0}),r=x(this,nt).get(e)):x(this,xe)[r]=D,D},He=function(e){if(!x(this,hn))return!1;const r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Ei},ld=function(e,r){x(this,Ft)[r]=e,x(this,Ct)[e]=r},Ya=function(e){e!==x(this,ct)&&(e===x(this,vt)?ge(this,vt,x(this,Ct)[e]):le(this,ee,ld).call(this,x(this,Ft)[e],x(this,Ct)[e]),le(this,ee,ld).call(this,x(this,ct),e),ge(this,ct,e))},Tn=function(e,r){var i,s,d,u;let o=!1;if(x(this,at)!==0){const p=x(this,nt).get(e);if(p!==void 0)if(o=!0,x(this,at)===1)le(this,ee,sd).call(this,r);else{x(this,Fn).call(this,p);const h=x(this,xe)[p];if(le(this,ee,He).call(this,h)?h.__abortController.abort(new Error("deleted")):(x(this,fr)||x(this,_t))&&(x(this,fr)&&((i=x(this,cr))==null||i.call(this,h,e,r)),x(this,_t)&&((s=x(this,dt))==null||s.push([h,e,r]))),x(this,nt).delete(e),x(this,$e)[p]=void 0,x(this,xe)[p]=void 0,p===x(this,ct))ge(this,ct,x(this,Ft)[p]);else if(p===x(this,vt))ge(this,vt,x(this,Ct)[p]);else{const f=x(this,Ft)[p];x(this,Ct)[f]=x(this,Ct)[p];const y=x(this,Ct)[p];x(this,Ft)[y]=x(this,Ft)[p]}xl(this,at)._--,x(this,pr).push(p)}}if(x(this,_t)&&((d=x(this,dt))!=null&&d.length)){const p=x(this,dt);let h;for(;h=p==null?void 0:p.shift();)(u=x(this,dr))==null||u.call(this,...h)}return o},sd=function(e){var r,o,i;for(const s of le(this,ee,Sn).call(this,{allowStale:!0})){const d=x(this,xe)[s];if(le(this,ee,He).call(this,d))d.__abortController.abort(new Error("deleted"));else{const u=x(this,$e)[s];x(this,fr)&&((r=x(this,cr))==null||r.call(this,d,u,e)),x(this,_t)&&((o=x(this,dt))==null||o.push([d,u,e]))}}if(x(this,nt).clear(),x(this,xe).fill(void 0),x(this,$e).fill(void 0),x(this,Rt)&&x(this,hr)&&(x(this,Rt).fill(0),x(this,hr).fill(0)),x(this,gr)&&x(this,gr).fill(0),ge(this,vt,0),ge(this,ct,0),x(this,pr).length=0,ge(this,ur,0),ge(this,at,0),x(this,_t)&&x(this,dt)){const s=x(this,dt);let d;for(;d=s==null?void 0:s.shift();)(i=x(this,dr))==null||i.call(this,...d)}};let Ps=Vs;const zE={cacheSize:15e6};class GE{constructor(e){ze(this,"_str");ze(this,"_rawJson");ze(this,"_zodSchema");ze(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const Rn=class Rn{constructor(e){ze(this,"fileDataCache");ze(this,"fileDataRefs",new Map);const r={...zE,...e??{}};this.fileDataCache=new Ps({maxSize:r.cacheSize,fetchMethod:async o=>new GE(await Bm().blobDriver.getContent(o)),sizeCalculation:o=>o.bytes.length,dispose:(o,i)=>{this.fileDataRefs.delete(i)}})}getDataRef(e){const r=this.fileDataRefs.get(e);if(r!==void 0)return r;const o=n.shallowRef();return this.fileDataRefs.set(e,o),(async()=>{try{const i=await this.fileDataCache.fetch(e);o.value=i}catch(i){console.error(i)}})(),o}getContentBytes(e){if(e===void 0)return;const r=this.getDataRef(e);return n.computed(()=>{var o;return(o=r.value)==null?void 0:o.bytes})}getContentString(e){if(e===void 0)return;const r=this.getDataRef(e);return n.computed(()=>{var o;return(o=r==null?void 0:r.value)==null?void 0:o.str})}getContentJson(e,r){if(e===void 0)return;const o=this.getDataRef(e);return n.computed(()=>{var i,s;return r===void 0?(i=o==null?void 0:o.value)==null?void 0:i.rawJson:(s=o==null?void 0:o.value)==null?void 0:s.validatedJson(r)})}static getContentBytes(e){return Rn.globalInstance.getContentBytes(e)}static getContentString(e){return Rn.globalInstance.getContentString(e)}static getContentJson(e,r){return Rn.globalInstance.getContentJson(e,r)}};ze(Rn,"globalInstance",new Rn);let Ds=Rn;V.AgGridTheme=uu,V.BlockLayout=cE,V.ContextProvider=H1,V.DataTable=Mw,V.DemoData=KT,V.DropdownListItem=aa,V.LongText=vs,V.MultiError=Tl,V.PlAgCellFile=LE,V.PlAgDataTable=ME,V.PlAgOverlayLoading=hp,V.PlAgOverlayNoRows=fp,V.PlAlert=l0,V.PlBlockPage=Hw,V.PlBtnAccent=p0,V.PlBtnDanger=h0,V.PlBtnGhost=us,V.PlBtnGroup=I0,V.PlBtnLink=y0,V.PlBtnPrimary=cs,V.PlBtnSecondary=ds,V.PlCheckbox=IC,V.PlCheckboxGroup=zC,V.PlChip=bs,V.PlContainer=Kw,V.PlCopyData=up,V.PlDialogModal=xs,V.PlDropdown=ys,V.PlDropdownLegacy=lC,V.PlDropdownLine=Wu,V.PlDropdownMulti=VC,V.PlDropdownRef=Ix,V.PlFileDialog=qu,V.PlFileInput=cp,V.PlGrid=t0,V.PlIcon16=hi,V.PlIcon24=Gu,V.PlLogView=f_,V.PlMaskIcon16=ta,V.PlMaskIcon24=Lr,V.PlNotificationAlert=dp,V.PlNumberField=bC,V.PlProgressBar=pC,V.PlRow=Jw,V.PlSlideModal=e_,V.PlSpacer=Vu,V.PlTextArea=gx,V.PlTextField=ju,V.PlToggleSwitch=n_,V.PlTooltip=Vt,V.ReactiveFileContent=Ds,V.Scrollable=Rk,V.Slider=ok,V.SliderRange=Vk,V.SliderRangeTriple=Ck,V.ThemeSwitcher=zw,V.UnresolvedError=Sl,V.ValueOrErrorsComponent=DE,V.activateAgGrid=du,V.animate=Nu,V.animateInfinite=Lw,V.call=_u,V.computedResult=RE,V.createModel=Pl,V.debounce=Au,V.defineApp=ab,V.defineStore=FE,V.delay=ku,V.detectOutside=hx,V.ensureError=Al,V.eventListener=fs,V.formatZodError=Bl,V.getElementScrollPosition=Zu,V.identity=Nl,V.isDefined=Cf,V.isElementVisible=Uu,V.isJsonEqual=El,V.isZodError=Ml,V.listToOptions=Iw,V.makeEaseInOut=Vw,V.makeEaseOut=Eu,V.maskIcons16=HT,V.maskIcons24=qT,V.normalizeListOptions=Bn,V.notEmpty=os,V.randomInt=Tu,V.randomString=Dw,V.requestTick=as,V.scrollIntoView=oa,V.showContextMenu=ts,V.throttle=Mu,V.timeout=Su,V.unwrapOptionalResult=xf,V.unwrapValueOrErrors=pd,V.useClickOutside=gi,V.useDraggable=uk,V.useEventListener=et,V.useFormState=ck,V.useHover=xu,V.useInterval=sk,V.useLabelNotch=Vr,V.useLocalStorage=Bu,V.useMouse=wu,V.useMouseCapture=nn,V.usePosition=ra,V.useQuery=dk,V.useResizeObserver=pp,V.useScroll=ak,V.useSdkPlugin=Jl,V.useSortable=lk,V.useTheme=Du,V.useWatchFetch=wp,V.wrapOptionalResult=gd,V.wrapValueOrErrors=wf,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|