diff --git a/Cargo.toml b/Cargo.toml index 17b7eeb..030f09d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,8 +48,8 @@ itoa = "1.0" # oasysdb = "0.7.3" # once_cell = "1.20" # ort = { version = "=2.0.0-rc.0", default-features = false } -paste = "1.0" -redb = "2.2" +# paste = "1.0" +redb = "2.3" regex = "1.11" reqwest = { version = "0.12", features = ["stream"] } rkyv = {version = "0.8", features = ["aligned", "alloc", "bytecheck"]} diff --git a/src/flow/rt/convertor.rs b/src/flow/rt/convertor.rs index 898914d..9198ed2 100644 --- a/src/flow/rt/convertor.rs +++ b/src/flow/rt/convertor.rs @@ -349,7 +349,7 @@ fn convert_node(main_flow_id: &str, node: &mut Node) -> Result<()> { } Node::KnowledgeBaseAnswerNode(n) => { let node = KnowledgeBaseAnswerNode { - recall_thresholds: n.recall_thresholds as f64 / 100f64, + recall_distance: 1f64 - n.recall_thresholds as f64 / 100f64, no_recall_then: n.no_answer_then.clone(), next_node_id: n.branches[0].target_node_id.clone(), }; diff --git a/src/flow/rt/node.rs b/src/flow/rt/node.rs index 9b94a0f..0afbf00 100644 --- a/src/flow/rt/node.rs +++ b/src/flow/rt/node.rs @@ -550,11 +550,32 @@ pub(crate) enum KnowledgeBaseAnswerNoRecallThen { #[derive(Archive, Clone, Deserialize, Serialize)] #[rkyv(compare(PartialEq))] pub(crate) struct KnowledgeBaseAnswerNode { - pub(super) recall_thresholds: f64, + pub(super) recall_distance: f64, pub(super) no_recall_then: KnowledgeBaseAnswerNoRecallThen, pub(super) next_node_id: String, } +impl KnowledgeBaseAnswerNode { + fn fallback_answer(&self, ctx: &mut Context, response: &mut Response) -> bool { + match &self.no_recall_then { + KnowledgeBaseAnswerNoRecallThen::GotoAnotherNode => { + add_next_node(ctx, &self.next_node_id); + false + } + KnowledgeBaseAnswerNoRecallThen::ReturnAlternateAnswerInstead(s) => { + response.answers.push(AnswerData { + text: s.clone(), + answer_type: AnswerType::TextPlain, + }); + let r = RuntimeNnodeEnum::KnowledgeBaseAnswerNode(self.clone()); + let bytes = rkyv::to_bytes::(&r).unwrap(); + ctx.node = Some(bytes.into_vec()); + true + } + } + } +} + impl RuntimeNode for KnowledgeBaseAnswerNode { fn exec(&mut self, req: &Request, ctx: &mut Context, response: &mut Response) -> bool { // log::info!("Into LlmChaKnowledgeBaseAnswerNodetNode"); @@ -565,33 +586,26 @@ impl RuntimeNode for KnowledgeBaseAnswerNode { )) }); match result { - Ok((answer, thresholds)) => { - if answer.is_some() && thresholds >= self.recall_thresholds { + Ok((answer, distance)) => { + log::info!( + "distance {} recall_distance {}", + distance, + self.recall_distance + ); + if answer.is_some() && distance <= self.recall_distance { response.answers.push(AnswerData { text: answer.unwrap().answer, answer_type: AnswerType::TextPlain, }); - true + add_next_node(ctx, &self.next_node_id); + false } else { - match &self.no_recall_then { - KnowledgeBaseAnswerNoRecallThen::GotoAnotherNode => { - add_next_node(ctx, &self.next_node_id); - false - } - KnowledgeBaseAnswerNoRecallThen::ReturnAlternateAnswerInstead(s) => { - response.answers.push(AnswerData { - text: s.clone(), - answer_type: AnswerType::TextPlain, - }); - true - } - } + self.fallback_answer(ctx, response) } } Err(e) => { log::error!("KnowledgeBaseAnswerNode answer failed: {:?}", &e); - add_next_node(ctx, &self.next_node_id); - false + self.fallback_answer(ctx, response) } } } diff --git a/src/resources/assets/assets/index-B171WFUU.js b/src/resources/assets/assets/index-B171WFUU.js new file mode 100644 index 0000000..45a9020 --- /dev/null +++ b/src/resources/assets/assets/index-B171WFUU.js @@ -0,0 +1,420 @@ +var iI=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var phe=iI((nr,or)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function e0(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Jt={},Xa=[],Rt=()=>{},lI=()=>!1,Vp=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),t0=t=>t.startsWith("onUpdate:"),kn=Object.assign,n0=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},aI=Object.prototype.hasOwnProperty,kt=(t,e)=>aI.call(t,e),Pe=Array.isArray,Za=t=>Xd(t)==="[object Map]",Bp=t=>Xd(t)==="[object Set]",c1=t=>Xd(t)==="[object Date]",Be=t=>typeof t=="function",Ye=t=>typeof t=="string",Zr=t=>typeof t=="symbol",pt=t=>t!==null&&typeof t=="object",K2=t=>(pt(t)||Be(t))&&Be(t.then)&&Be(t.catch),J2=Object.prototype.toString,Xd=t=>J2.call(t),uI=t=>Xd(t).slice(8,-1),ud=t=>Xd(t)==="[object Object]",o0=t=>Ye(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Nc=e0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fp=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},cI=/-(\w)/g,lr=Fp(t=>t.replace(cI,(e,n)=>n?n.toUpperCase():"")),dI=/\B([A-Z])/g,mi=Fp(t=>t.replace(dI,"-$1").toLowerCase()),Zd=Fp(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ic=Fp(t=>t?`on${Zd(t)}`:""),nl=(t,e)=>!Object.is(t,e),vh=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},fv=t=>{const e=parseFloat(t);return isNaN(e)?t:e},fI=t=>{const e=Ye(t)?Number(t):NaN;return isNaN(e)?t:e};let d1;const zp=()=>d1||(d1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ft(t){if(Pe(t)){const e={};for(let n=0;n{if(n){const o=n.split(pI);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function Y(t){let e="";if(Ye(t))e=t;else if(Pe(t))for(let n=0;nau(n,e))}const Q2=t=>!!(t&&t.__v_isRef===!0),Q=t=>Ye(t)?t:t==null?"":Pe(t)||pt(t)&&(t.toString===J2||!Be(t.toString))?Q2(t)?Q(t.value):JSON.stringify(t,eE,2):String(t),eE=(t,e)=>Q2(e)?eE(t,e.value):Za(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[o,r],s)=>(n[Qg(o,s)+" =>"]=r,n),{})}:Bp(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Qg(n))}:Zr(e)?Qg(e):pt(e)&&!Pe(e)&&!ud(e)?String(e):e,Qg=(t,e="")=>{var n;return Zr(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Po;class tE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Po,!e&&Po&&(this.index=(Po.scopes||(Po.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e0)return;if(Rc){let e=Rc;for(Rc=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Lc;){let e=Lc;for(Lc=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(o){t||(t=o)}e=n}}if(t)throw t}function aE(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function uE(t){let e,n=t.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),i0(o),wI(o)):e=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}t.deps=e,t.depsTail=n}function hv(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(cE(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function cE(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===cd))return;t.globalVersion=cd;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!hv(t)){t.flags&=-3;return}const n=tn,o=qr;tn=t,qr=!0;try{aE(t);const r=t.fn(t._value);(e.version===0||nl(r,t._value))&&(t._value=r,e.version++)}catch(r){throw e.version++,r}finally{tn=n,qr=o,uE(t),t.flags&=-3}}function i0(t,e=!1){const{dep:n,prevSub:o,nextSub:r}=t;if(o&&(o.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=o,t.nextSub=void 0),n.subs===t&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)i0(s,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function wI(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let qr=!0;const dE=[];function ml(){dE.push(qr),qr=!1}function vl(){const t=dE.pop();qr=t===void 0?!0:t}function f1(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=tn;tn=void 0;try{e()}finally{tn=n}}}let cd=0,CI=class{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class jp{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!tn||!qr||tn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==tn)n=this.activeLink=new CI(tn,this),tn.deps?(n.prevDep=tn.depsTail,tn.depsTail.nextDep=n,tn.depsTail=n):tn.deps=tn.depsTail=n,fE(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=tn.depsTail,n.nextDep=void 0,tn.depsTail.nextDep=n,tn.depsTail=n,tn.deps===n&&(tn.deps=o)}return n}trigger(e){this.version++,cd++,this.notify(e)}notify(e){r0();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{s0()}}}function fE(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let o=e.deps;o;o=o.nextDep)fE(o)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Vh=new WeakMap,ea=Symbol(""),pv=Symbol(""),dd=Symbol("");function bo(t,e,n){if(qr&&tn){let o=Vh.get(t);o||Vh.set(t,o=new Map);let r=o.get(n);r||(o.set(n,r=new jp),r.map=o,r.key=n),r.track()}}function Zs(t,e,n,o,r,s){const i=Vh.get(t);if(!i){cd++;return}const l=a=>{a&&a.trigger()};if(r0(),e==="clear")i.forEach(l);else{const a=Pe(t),u=a&&o0(n);if(a&&n==="length"){const c=Number(o);i.forEach((d,f)=>{(f==="length"||f===dd||!Zr(f)&&f>=c)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(dd)),e){case"add":a?u&&l(i.get("length")):(l(i.get(ea)),Za(t)&&l(i.get(pv)));break;case"delete":a||(l(i.get(ea)),Za(t)&&l(i.get(pv)));break;case"set":Za(t)&&l(i.get(ea));break}}s0()}function xI(t,e){const n=Vh.get(t);return n&&n.get(e)}function Ia(t){const e=It(t);return e===t?e:(bo(e,"iterate",dd),Tr(t)?e:e.map(yo))}function Hp(t){return bo(t=It(t),"iterate",dd),t}const SI={__proto__:null,[Symbol.iterator](){return tm(this,Symbol.iterator,yo)},concat(...t){return Ia(this).concat(...t.map(e=>Pe(e)?Ia(e):e))},entries(){return tm(this,"entries",t=>(t[1]=yo(t[1]),t))},every(t,e){return zs(this,"every",t,e,void 0,arguments)},filter(t,e){return zs(this,"filter",t,e,n=>n.map(yo),arguments)},find(t,e){return zs(this,"find",t,e,yo,arguments)},findIndex(t,e){return zs(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return zs(this,"findLast",t,e,yo,arguments)},findLastIndex(t,e){return zs(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return zs(this,"forEach",t,e,void 0,arguments)},includes(...t){return nm(this,"includes",t)},indexOf(...t){return nm(this,"indexOf",t)},join(t){return Ia(this).join(t)},lastIndexOf(...t){return nm(this,"lastIndexOf",t)},map(t,e){return zs(this,"map",t,e,void 0,arguments)},pop(){return gc(this,"pop")},push(...t){return gc(this,"push",t)},reduce(t,...e){return h1(this,"reduce",t,e)},reduceRight(t,...e){return h1(this,"reduceRight",t,e)},shift(){return gc(this,"shift")},some(t,e){return zs(this,"some",t,e,void 0,arguments)},splice(...t){return gc(this,"splice",t)},toReversed(){return Ia(this).toReversed()},toSorted(t){return Ia(this).toSorted(t)},toSpliced(...t){return Ia(this).toSpliced(...t)},unshift(...t){return gc(this,"unshift",t)},values(){return tm(this,"values",yo)}};function tm(t,e,n){const o=Hp(t),r=o[e]();return o!==t&&!Tr(t)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.value&&(s.value=n(s.value)),s}),r}const EI=Array.prototype;function zs(t,e,n,o,r,s){const i=Hp(t),l=i!==t&&!Tr(t),a=i[e];if(a!==EI[e]){const d=a.apply(t,s);return l?yo(d):d}let u=n;i!==t&&(l?u=function(d,f){return n.call(this,yo(d),f,t)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,t)}));const c=a.call(i,u,o);return l&&r?r(c):c}function h1(t,e,n,o){const r=Hp(t);let s=n;return r!==t&&(Tr(t)?n.length>3&&(s=function(i,l,a){return n.call(this,i,l,a,t)}):s=function(i,l,a){return n.call(this,i,yo(l),a,t)}),r[e](s,...o)}function nm(t,e,n){const o=It(t);bo(o,"iterate",dd);const r=o[e](...n);return(r===-1||r===!1)&&c0(n[0])?(n[0]=It(n[0]),o[e](...n)):r}function gc(t,e,n=[]){ml(),r0();const o=It(t)[e].apply(t,n);return s0(),vl(),o}const TI=e0("__proto__,__v_isRef,__isVue"),hE=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Zr));function OI(t){Zr(t)||(t=String(t));const e=It(this);return bo(e,"has",t),e.hasOwnProperty(t)}class pE{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,o){if(n==="__v_skip")return e.__v_skip;const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?$I:bE:s?vE:mE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(o)?e:void 0;const i=Pe(e);if(!r){let a;if(i&&(a=SI[n]))return a;if(n==="hasOwnProperty")return OI}const l=Reflect.get(e,n,Gt(e)?e:o);return(Zr(n)?hE.has(n):TI(n))||(r||bo(e,"get",n),s)?l:Gt(l)?i&&o0(n)?l:l.value:pt(l)?r?Qd(l):ut(l):l}}class gE extends pE{constructor(e=!1){super(!1,e)}set(e,n,o,r){let s=e[n];if(!this._isShallow){const a=da(s);if(!Tr(o)&&!da(o)&&(s=It(s),o=It(o)),!Pe(e)&&Gt(s)&&!Gt(o))return a?!1:(s.value=o,!0)}const i=Pe(e)&&o0(n)?Number(n)t,Lf=t=>Reflect.getPrototypeOf(t);function PI(t,e,n){return function(...o){const r=this.__v_raw,s=It(r),i=Za(s),l=t==="entries"||t===Symbol.iterator&&i,a=t==="keys"&&i,u=r[t](...o),c=n?gv:e?mv:yo;return!e&&bo(s,"iterate",a?pv:ea),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:l?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Rf(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function NI(t,e){const n={get(r){const s=this.__v_raw,i=It(s),l=It(r);t||(nl(r,l)&&bo(i,"get",r),bo(i,"get",l));const{has:a}=Lf(i),u=e?gv:t?mv:yo;if(a.call(i,r))return u(s.get(r));if(a.call(i,l))return u(s.get(l));s!==i&&s.get(r)},get size(){const r=this.__v_raw;return!t&&bo(It(r),"iterate",ea),Reflect.get(r,"size",r)},has(r){const s=this.__v_raw,i=It(s),l=It(r);return t||(nl(r,l)&&bo(i,"has",r),bo(i,"has",l)),r===l?s.has(r):s.has(r)||s.has(l)},forEach(r,s){const i=this,l=i.__v_raw,a=It(l),u=e?gv:t?mv:yo;return!t&&bo(a,"iterate",ea),l.forEach((c,d)=>r.call(s,u(c),u(d),i))}};return kn(n,t?{add:Rf("add"),set:Rf("set"),delete:Rf("delete"),clear:Rf("clear")}:{add(r){!e&&!Tr(r)&&!da(r)&&(r=It(r));const s=It(this);return Lf(s).has.call(s,r)||(s.add(r),Zs(s,"add",r,r)),this},set(r,s){!e&&!Tr(s)&&!da(s)&&(s=It(s));const i=It(this),{has:l,get:a}=Lf(i);let u=l.call(i,r);u||(r=It(r),u=l.call(i,r));const c=a.call(i,r);return i.set(r,s),u?nl(s,c)&&Zs(i,"set",r,s):Zs(i,"add",r,s),this},delete(r){const s=It(this),{has:i,get:l}=Lf(s);let a=i.call(s,r);a||(r=It(r),a=i.call(s,r)),l&&l.call(s,r);const u=s.delete(r);return a&&Zs(s,"delete",r,void 0),u},clear(){const r=It(this),s=r.size!==0,i=r.clear();return s&&Zs(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=PI(r,t,e)}),n}function l0(t,e){const n=NI(t,e);return(o,r,s)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?o:Reflect.get(kt(n,r)&&r in o?n:o,r,s)}const II={get:l0(!1,!1)},LI={get:l0(!1,!0)},RI={get:l0(!0,!1)},mE=new WeakMap,vE=new WeakMap,bE=new WeakMap,$I=new WeakMap;function DI(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function VI(t){return t.__v_skip||!Object.isExtensible(t)?0:DI(uI(t))}function ut(t){return da(t)?t:u0(t,!1,MI,II,mE)}function a0(t){return u0(t,!1,AI,LI,vE)}function Qd(t){return u0(t,!0,_I,RI,bE)}function u0(t,e,n,o,r){if(!pt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=r.get(t);if(s)return s;const i=VI(t);if(i===0)return t;const l=new Proxy(t,i===2?o:n);return r.set(t,l),l}function Qa(t){return da(t)?Qa(t.__v_raw):!!(t&&t.__v_isReactive)}function da(t){return!!(t&&t.__v_isReadonly)}function Tr(t){return!!(t&&t.__v_isShallow)}function c0(t){return t?!!t.__v_raw:!1}function It(t){const e=t&&t.__v_raw;return e?It(e):t}function xt(t){return!kt(t,"__v_skip")&&Object.isExtensible(t)&&Y2(t,"__v_skip",!0),t}const yo=t=>pt(t)?ut(t):t,mv=t=>pt(t)?Qd(t):t;function Gt(t){return t?t.__v_isRef===!0:!1}function R(t){return yE(t,!1)}function rr(t){return yE(t,!0)}function yE(t,e){return Gt(t)?t:new BI(t,e)}class BI{constructor(e,n){this.dep=new jp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:It(e),this._value=n?e:yo(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,o=this.__v_isShallow||Tr(e)||da(e);e=o?e:It(e),nl(e,n)&&(this._rawValue=e,this._value=o?e:yo(e),this.dep.trigger())}}function x(t){return Gt(t)?t.value:t}const FI={get:(t,e,n)=>e==="__v_raw"?t:x(Reflect.get(t,e,n)),set:(t,e,n,o)=>{const r=t[e];return Gt(r)&&!Gt(n)?(r.value=n,!0):Reflect.set(t,e,n,o)}};function wE(t){return Qa(t)?t:new Proxy(t,FI)}class zI{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new jp,{get:o,set:r}=e(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function jI(t){return new zI(t)}function Ls(t){const e=Pe(t)?new Array(t.length):{};for(const n in t)e[n]=CE(t,n);return e}class HI{constructor(e,n,o){this._object=e,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return xI(It(this._object),this._key)}}class UI{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Qo(t,e,n){return Gt(t)?t:Be(t)?new UI(t):pt(t)&&arguments.length>1?CE(t,e,n):R(t)}function CE(t,e,n){const o=t[e];return Gt(o)?o:new HI(t,e,n)}class WI{constructor(e,n,o){this.fn=e,this.setter=n,this._value=void 0,this.dep=new jp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&tn!==this)return lE(this,!0),!0}get value(){const e=this.dep.track();return cE(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function qI(t,e,n=!1){let o,r;return Be(t)?o=t:(o=t.get,r=t.set),new WI(o,r,n)}const $f={},Bh=new WeakMap;let Dl;function GI(t,e=!1,n=Dl){if(n){let o=Bh.get(n);o||Bh.set(n,o=[]),o.push(t)}}function KI(t,e,n=Jt){const{immediate:o,deep:r,once:s,scheduler:i,augmentJob:l,call:a}=n,u=b=>r?b:Tr(b)||r===!1||r===0?Qs(b,1):Qs(b);let c,d,f,h,p=!1,g=!1;if(Gt(t)?(d=()=>t.value,p=Tr(t)):Qa(t)?(d=()=>u(t),p=!0):Pe(t)?(g=!0,p=t.some(b=>Qa(b)||Tr(b)),d=()=>t.map(b=>{if(Gt(b))return b.value;if(Qa(b))return u(b);if(Be(b))return a?a(b,2):b()})):Be(t)?e?d=a?()=>a(t,2):t:d=()=>{if(f){ml();try{f()}finally{vl()}}const b=Dl;Dl=c;try{return a?a(t,3,[h]):t(h)}finally{Dl=b}}:d=Rt,e&&r){const b=d,S=r===!0?1/0:r;d=()=>Qs(b(),S)}const v=oE(),m=()=>{c.stop(),v&&v.active&&n0(v.effects,c)};if(s&&e){const b=e;e=(...S)=>{b(...S),m()}}let C=g?new Array(t.length).fill($f):$f;const y=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(e){const S=c.run();if(r||p||(g?S.some((T,O)=>nl(T,C[O])):nl(S,C))){f&&f();const T=Dl;Dl=c;try{const O=[S,C===$f?void 0:g&&C[0]===$f?[]:C,h];a?a(e,3,O):e(...O),C=S}finally{Dl=T}}}else c.run()};return l&&l(y),c=new sE(d),c.scheduler=i?()=>i(y,!1):y,h=b=>GI(b,!1,c),f=c.onStop=()=>{const b=Bh.get(c);if(b){if(a)a(b,4);else for(const S of b)S();Bh.delete(c)}},e?o?y(!0):C=c.run():i?i(y.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function Qs(t,e=1/0,n){if(e<=0||!pt(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Gt(t))Qs(t.value,e,n);else if(Pe(t))for(let o=0;o{Qs(o,e,n)});else if(ud(t)){for(const o in t)Qs(t[o],e,n);for(const o of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,o)&&Qs(t[o],e,n)}return t}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ef(t,e,n,o){try{return o?t(...o):t()}catch(r){Up(r,e,n)}}function Qr(t,e,n,o){if(Be(t)){const r=ef(t,e,n,o);return r&&K2(r)&&r.catch(s=>{Up(s,e,n)}),r}if(Pe(t)){const r=[];for(let s=0;s>>1,r=No[o],s=fd(r);s=fd(n)?No.push(t):No.splice(YI(e),0,t),t.flags|=1,SE()}}function SE(){Fh||(Fh=xE.then(TE))}function XI(t){Pe(t)?eu.push(...t):Vi&&t.id===-1?Vi.splice(Fa+1,0,t):t.flags&1||(eu.push(t),t.flags|=1),SE()}function p1(t,e,n=bs+1){for(;nfd(n)-fd(o));if(eu.length=0,Vi){Vi.push(...e);return}for(Vi=e,Fa=0;Fat.id==null?t.flags&2?-1:1/0:t.id;function TE(t){try{for(bs=0;bs{o._d&&k1(-1);const s=zh(e);let i;try{i=t(...r)}finally{zh(s),o._d&&k1(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function $e(t,e){if(Gn===null)return t;const n=Jp(Gn),o=t.dirs||(t.dirs=[]);for(let r=0;rt.__isTeleport,$c=t=>t&&(t.disabled||t.disabled===""),g1=t=>t&&(t.defer||t.defer===""),m1=t=>typeof SVGElement<"u"&&t instanceof SVGElement,v1=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,vv=(t,e)=>{const n=t&&t.to;return Ye(n)?e?e(n):null:n},_E={name:"Teleport",__isTeleport:!0,process(t,e,n,o,r,s,i,l,a,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:v}}=u,m=$c(e.props);let{shapeFlag:C,children:y,dynamicChildren:b}=e;if(t==null){const S=e.el=g(""),T=e.anchor=g("");h(S,n,o),h(T,n,o);const O=(P,I)=>{C&16&&(r&&r.isCE&&(r.ce._teleportTarget=P),c(y,P,I,r,s,i,l,a))},k=()=>{const P=e.target=vv(e.props,p),I=PE(P,e,g,h);P&&(i!=="svg"&&m1(P)?i="svg":i!=="mathml"&&v1(P)&&(i="mathml"),m||(O(P,I),bh(e,!1)))};m&&(O(n,T),bh(e,!0)),g1(e.props)?Ao(()=>{k(),e.el.__isMounted=!0},s):k()}else{if(g1(e.props)&&!t.el.__isMounted){Ao(()=>{_E.process(t,e,n,o,r,s,i,l,a,u),delete t.el.__isMounted},s);return}e.el=t.el,e.targetStart=t.targetStart;const S=e.anchor=t.anchor,T=e.target=t.target,O=e.targetAnchor=t.targetAnchor,k=$c(t.props),P=k?n:T,I=k?S:O;if(i==="svg"||m1(T)?i="svg":(i==="mathml"||v1(T))&&(i="mathml"),b?(f(t.dynamicChildren,b,P,r,s,i,l),b0(t,e,!0)):a||d(t,e,P,I,r,s,i,l,!1),m)k?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Df(e,n,S,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const M=e.target=vv(e.props,p);M&&Df(e,M,null,u,0)}else k&&Df(e,T,O,u,1);bh(e,m)}},remove(t,e,n,{um:o,o:{remove:r}},s){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:d,props:f}=t;if(d&&(r(u),r(c)),s&&r(a),i&16){const h=s||!$c(f);for(let p=0;p{t.isMounted=!0}),un(()=>{t.isUnmounting=!0}),t}const fr=[Function,Array],IE={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:fr,onEnter:fr,onAfterEnter:fr,onEnterCancelled:fr,onBeforeLeave:fr,onLeave:fr,onAfterLeave:fr,onLeaveCancelled:fr,onBeforeAppear:fr,onAppear:fr,onAfterAppear:fr,onAppearCancelled:fr},LE=t=>{const e=t.subTree;return e.component?LE(e.component):e},QI={name:"BaseTransition",props:IE,setup(t,{slots:e}){const n=gt(),o=NE();return()=>{const r=e.default&&f0(e.default(),!0);if(!r||!r.length)return;const s=RE(r),i=It(t),{mode:l}=i;if(o.isLeaving)return om(s);const a=b1(s);if(!a)return om(s);let u=hd(a,i,o,n,d=>u=d);a.type!==Un&&fa(a,u);let c=n.subTree&&b1(n.subTree);if(c&&c.type!==Un&&!Bl(a,c)&&LE(n).type!==Un){let d=hd(c,i,o,n);if(fa(c,d),l==="out-in"&&a.type!==Un)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},om(s);l==="in-out"&&a.type!==Un?d.delayLeave=(f,h,p)=>{const g=$E(o,c);g[String(c.key)]=c,f[Bi]=()=>{h(),f[Bi]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function RE(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Un){e=n;break}}return e}const e3=QI;function $E(t,e){const{leavingVNodes:n}=t;let o=n.get(e.type);return o||(o=Object.create(null),n.set(e.type,o)),o}function hd(t,e,n,o,r){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:m,onAfterAppear:C,onAppearCancelled:y}=e,b=String(t.key),S=$E(n,t),T=(P,I)=>{P&&Qr(P,o,9,I)},O=(P,I)=>{const M=I[1];T(P,I),Pe(P)?P.every(D=>D.length<=1)&&M():P.length<=1&&M()},k={mode:i,persisted:l,beforeEnter(P){let I=a;if(!n.isMounted)if(s)I=v||a;else return;P[Bi]&&P[Bi](!0);const M=S[b];M&&Bl(t,M)&&M.el[Bi]&&M.el[Bi](),T(I,[P])},enter(P){let I=u,M=c,D=d;if(!n.isMounted)if(s)I=m||u,M=C||c,D=y||d;else return;let J=!1;const oe=P[Vf]=N=>{J||(J=!0,N?T(D,[P]):T(M,[P]),k.delayedLeave&&k.delayedLeave(),P[Vf]=void 0)};I?O(I,[P,oe]):oe()},leave(P,I){const M=String(t.key);if(P[Vf]&&P[Vf](!0),n.isUnmounting)return I();T(f,[P]);let D=!1;const J=P[Bi]=oe=>{D||(D=!0,I(),oe?T(g,[P]):T(p,[P]),P[Bi]=void 0,S[M]===t&&delete S[M])};S[M]=t,h?O(h,[P,J]):J()},clone(P){const I=hd(P,e,n,o,r);return r&&r(I),I}};return k}function om(t){if(Wp(t))return t=ui(t),t.children=null,t}function b1(t){if(!Wp(t))return ME(t.type)&&t.children?RE(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Be(n.default))return n.default()}}function fa(t,e){t.shapeFlag&6&&t.component?(t.transition=e,fa(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function f0(t,e=!1,n){let o=[],r=0;for(let s=0;s1)for(let s=0;sjh(p,e&&(Pe(e)?e[g]:e),n,o,r));return}if(tu(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&jh(t,e,n,o.component.subTree);return}const s=o.shapeFlag&4?Jp(o.component):o.el,i=r?null:s,{i:l,r:a}=t,u=e&&e.r,c=l.refs===Jt?l.refs={}:l.refs,d=l.setupState,f=It(d),h=d===Jt?()=>!1:p=>kt(f,p);if(u!=null&&u!==a&&(Ye(u)?(c[u]=null,h(u)&&(d[u]=null)):Gt(u)&&(u.value=null)),Be(a))ef(a,l,12,[i,c]);else{const p=Ye(a),g=Gt(a);if(p||g){const v=()=>{if(t.f){const m=p?h(a)?d[a]:c[a]:a.value;r?Pe(m)&&n0(m,s):Pe(m)?m.includes(s)||m.push(s):p?(c[a]=[s],h(a)&&(d[a]=c[a])):(a.value=[s],t.k&&(c[t.k]=a.value))}else p?(c[a]=i,h(a)&&(d[a]=i)):g&&(a.value=i,t.k&&(c[t.k]=i))};i?(v.id=-1,Ao(v,n)):v()}}}zp().requestIdleCallback;zp().cancelIdleCallback;const tu=t=>!!t.type.__asyncLoader,Wp=t=>t.type.__isKeepAlive;function VE(t,e){FE(t,"a",e)}function BE(t,e){FE(t,"da",e)}function FE(t,e,n=uo){const o=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(qp(e,o,n),n){let r=n.parent;for(;r&&r.parent;)Wp(r.parent.vnode)&&t3(o,e,n,r),r=r.parent}}function t3(t,e,n,o){const r=qp(e,t,o,!0);Rs(()=>{n0(o[e],r)},n)}function qp(t,e,n=uo,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...i)=>{ml();const l=tf(n),a=Qr(e,n,t,i);return l(),vl(),a});return o?r.unshift(s):r.push(s),s}}const vi=t=>(e,n=uo)=>{(!gd||t==="sp")&&qp(t,(...o)=>e(...o),n)},Gp=vi("bm"),st=vi("m"),n3=vi("bu"),Sa=vi("u"),un=vi("bum"),Rs=vi("um"),o3=vi("sp"),r3=vi("rtg"),s3=vi("rtc");function i3(t,e=uo){qp("ec",t,e)}const h0="components",l3="directives";function at(t,e){return g0(h0,t,!0,e)||t}const zE=Symbol.for("v-ndc");function Ut(t){return Ye(t)?g0(h0,t,!1)||t:t||zE}function p0(t){return g0(l3,t)}function g0(t,e,n=!0,o=!1){const r=Gn||uo;if(r){const s=r.type;if(t===h0){const l=q3(s,!1);if(l&&(l===e||l===lr(e)||l===Zd(lr(e))))return s}const i=y1(r[t]||s[t],e)||y1(r.appContext[t],e);return!i&&o?s:i}}function y1(t,e){return t&&(t[e]||t[lr(e)]||t[Zd(lr(e))])}function yt(t,e,n,o){let r;const s=n,i=Pe(t);if(i||Ye(t)){const l=i&&Qa(t);let a=!1;l&&(a=!Tr(t),t=Hp(t)),r=new Array(t.length);for(let u=0,c=t.length;ue(l,a,void 0,s));else{const l=Object.keys(t);r=new Array(l.length);for(let a=0,u=l.length;a{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return t}function Se(t,e,n={},o,r){if(Gn.ce||Gn.parent&&tu(Gn.parent)&&Gn.parent.ce)return e!=="default"&&(n.name=e),_(),pe(Le,null,[w("slot",n,o&&o())],64);let s=t[e];s&&s._c&&(s._d=!1),_();const i=s&&jE(s(n)),l=n.key||i&&i.key,a=pe(Le,{key:(l&&!Zr(l)?l:`_${e}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&t._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function jE(t){return t.some(e=>Bn(e)?!(e.type===Un||e.type===Le&&!jE(e.children)):!0)?t:null}function a3(t,e){const n={};for(const o in t)n[Ic(o)]=t[o];return n}const bv=t=>t?aT(t)?Jp(t):bv(t.parent):null,Dc=kn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>bv(t.parent),$root:t=>bv(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>m0(t),$forceUpdate:t=>t.f||(t.f=()=>{d0(t.update)}),$nextTick:t=>t.n||(t.n=lt.bind(t.proxy)),$watch:t=>_3.bind(t)}),rm=(t,e)=>t!==Jt&&!t.__isScriptSetup&&kt(t,e),u3={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=t;let u;if(e[0]!=="$"){const h=i[e];if(h!==void 0)switch(h){case 1:return o[e];case 2:return r[e];case 4:return n[e];case 3:return s[e]}else{if(rm(o,e))return i[e]=1,o[e];if(r!==Jt&&kt(r,e))return i[e]=2,r[e];if((u=t.propsOptions[0])&&kt(u,e))return i[e]=3,s[e];if(n!==Jt&&kt(n,e))return i[e]=4,n[e];yv&&(i[e]=0)}}const c=Dc[e];let d,f;if(c)return e==="$attrs"&&bo(t.attrs,"get",""),c(t);if((d=l.__cssModules)&&(d=d[e]))return d;if(n!==Jt&&kt(n,e))return i[e]=4,n[e];if(f=a.config.globalProperties,kt(f,e))return f[e]},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;return rm(r,e)?(r[e]=n,!0):o!==Jt&&kt(o,e)?(o[e]=n,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||t!==Jt&&kt(t,i)||rm(e,i)||(l=s[0])&&kt(l,i)||kt(o,i)||kt(Dc,i)||kt(r.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:kt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function ls(){return UE().slots}function HE(){return UE().attrs}function UE(){const t=gt();return t.setupContext||(t.setupContext=cT(t))}function w1(t){return Pe(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let yv=!0;function c3(t){const e=m0(t),n=t.proxy,o=t.ctx;yv=!1,e.beforeCreate&&C1(e.beforeCreate,t,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:v,beforeDestroy:m,beforeUnmount:C,destroyed:y,unmounted:b,render:S,renderTracked:T,renderTriggered:O,errorCaptured:k,serverPrefetch:P,expose:I,inheritAttrs:M,components:D,directives:J,filters:oe}=e;if(u&&d3(u,o,null),i)for(const K in i){const j=i[K];Be(j)&&(o[K]=j.bind(n))}if(r){const K=r.call(n,n);pt(K)&&(t.data=ut(K))}if(yv=!0,s)for(const K in s){const j=s[K],F=Be(j)?j.bind(n,n):Be(j.get)?j.get.bind(n,n):Rt,le=!Be(j)&&Be(j.set)?j.set.bind(n):Rt,ue=V({get:F,set:le});Object.defineProperty(o,K,{enumerable:!0,configurable:!0,get:()=>ue.value,set:se=>ue.value=se})}if(l)for(const K in l)WE(l[K],o,n,K);if(a){const K=Be(a)?a.call(n):a;Reflect.ownKeys(K).forEach(j=>{Bt(j,K[j])})}c&&C1(c,t,"c");function A(K,j){Pe(j)?j.forEach(F=>K(F.bind(n))):j&&K(j.bind(n))}if(A(Gp,d),A(st,f),A(n3,h),A(Sa,p),A(VE,g),A(BE,v),A(i3,k),A(s3,T),A(r3,O),A(un,C),A(Rs,b),A(o3,P),Pe(I))if(I.length){const K=t.exposed||(t.exposed={});I.forEach(j=>{Object.defineProperty(K,j,{get:()=>n[j],set:F=>n[j]=F})})}else t.exposed||(t.exposed={});S&&t.render===Rt&&(t.render=S),M!=null&&(t.inheritAttrs=M),D&&(t.components=D),J&&(t.directives=J),P&&DE(t)}function d3(t,e,n=Rt){Pe(t)&&(t=wv(t));for(const o in t){const r=t[o];let s;pt(r)?"default"in r?s=Ve(r.from||o,r.default,!0):s=Ve(r.from||o):s=Ve(r),Gt(s)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):e[o]=s}}function C1(t,e,n){Qr(Pe(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,n)}function WE(t,e,n,o){let r=o.includes(".")?oT(n,o):()=>n[o];if(Ye(t)){const s=e[t];Be(s)&&De(r,s)}else if(Be(t))De(r,t.bind(n));else if(pt(t))if(Pe(t))t.forEach(s=>WE(s,e,n,o));else{const s=Be(t.handler)?t.handler.bind(n):e[t.handler];Be(s)&&De(r,s,t)}}function m0(t){const e=t.type,{mixins:n,extends:o}=e,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=t.appContext,l=s.get(e);let a;return l?a=l:!r.length&&!n&&!o?a=e:(a={},r.length&&r.forEach(u=>Uh(a,u,i,!0)),Uh(a,e,i)),pt(e)&&s.set(e,a),a}function Uh(t,e,n,o=!1){const{mixins:r,extends:s}=e;s&&Uh(t,s,n,!0),r&&r.forEach(i=>Uh(t,i,n,!0));for(const i in e)if(!(o&&i==="expose")){const l=f3[i]||n&&n[i];t[i]=l?l(t[i],e[i]):e[i]}return t}const f3={data:x1,props:S1,emits:S1,methods:Tc,computed:Tc,beforeCreate:Mo,created:Mo,beforeMount:Mo,mounted:Mo,beforeUpdate:Mo,updated:Mo,beforeDestroy:Mo,beforeUnmount:Mo,destroyed:Mo,unmounted:Mo,activated:Mo,deactivated:Mo,errorCaptured:Mo,serverPrefetch:Mo,components:Tc,directives:Tc,watch:p3,provide:x1,inject:h3};function x1(t,e){return e?t?function(){return kn(Be(t)?t.call(this,this):t,Be(e)?e.call(this,this):e)}:e:t}function h3(t,e){return Tc(wv(t),wv(e))}function wv(t){if(Pe(t)){const e={};for(let n=0;n1)return n&&Be(e)?e.call(o&&o.proxy):e}}const GE={},KE=()=>Object.create(GE),JE=t=>Object.getPrototypeOf(t)===GE;function v3(t,e,n,o=!1){const r={},s=KE();t.propsDefaults=Object.create(null),YE(t,e,r,s);for(const i in t.propsOptions[0])i in r||(r[i]=void 0);n?t.props=o?r:a0(r):t.type.props?t.props=r:t.props=s,t.attrs=s}function b3(t,e,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=t,l=It(r),[a]=t.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const c=t.vnode.dynamicProps;for(let d=0;d{a=!0;const[f,h]=XE(d,e,!0);kn(i,f),h&&l.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!s&&!a)return pt(t)&&o.set(t,Xa),Xa;if(Pe(s))for(let c=0;ct[0]==="_"||t==="$stable",v0=t=>Pe(t)?t.map(xs):[xs(t)],w3=(t,e,n)=>{if(e._n)return e;const o=E((...r)=>v0(e(...r)),n);return o._c=!1,o},QE=(t,e,n)=>{const o=t._ctx;for(const r in t){if(ZE(r))continue;const s=t[r];if(Be(s))e[r]=w3(r,s,o);else if(s!=null){const i=v0(s);e[r]=()=>i}}},eT=(t,e)=>{const n=v0(e);t.slots.default=()=>n},tT=(t,e,n)=>{for(const o in e)(n||o!=="_")&&(t[o]=e[o])},C3=(t,e,n)=>{const o=t.slots=KE();if(t.vnode.shapeFlag&32){const r=e._;r?(tT(o,e,n),n&&Y2(o,"_",r,!0)):QE(e,o)}else e&&eT(t,e)},x3=(t,e,n)=>{const{vnode:o,slots:r}=t;let s=!0,i=Jt;if(o.shapeFlag&32){const l=e._;l?n&&l===1?s=!1:tT(r,e,n):(s=!e.$stable,QE(e,r)),i=e}else e&&(eT(t,e),i={default:1});if(s)for(const l in r)!ZE(l)&&i[l]==null&&delete r[l]},Ao=$3;function S3(t){return E3(t)}function E3(t,e){const n=zp();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Rt,insertStaticContent:p}=t,g=($,W,re,be=null,he=null,B=null,H=void 0,te=null,ie=!!W.dynamicChildren)=>{if($===W)return;$&&!Bl($,W)&&(be=ee($),se($,he,B,!0),$=null),W.patchFlag===-2&&(ie=!1,W.dynamicChildren=null);const{type:we,ref:ge,shapeFlag:q}=W;switch(we){case Ea:v($,W,re,be);break;case Un:m($,W,re,be);break;case lm:$==null&&C(W,re,be,H);break;case Le:D($,W,re,be,he,B,H,te,ie);break;default:q&1?S($,W,re,be,he,B,H,te,ie):q&6?J($,W,re,be,he,B,H,te,ie):(q&64||q&128)&&we.process($,W,re,be,he,B,H,te,ie,ye)}ge!=null&&he&&jh(ge,$&&$.ref,B,W||$,!W)},v=($,W,re,be)=>{if($==null)o(W.el=l(W.children),re,be);else{const he=W.el=$.el;W.children!==$.children&&u(he,W.children)}},m=($,W,re,be)=>{$==null?o(W.el=a(W.children||""),re,be):W.el=$.el},C=($,W,re,be)=>{[$.el,$.anchor]=p($.children,W,re,be,$.el,$.anchor)},y=({el:$,anchor:W},re,be)=>{let he;for(;$&&$!==W;)he=f($),o($,re,be),$=he;o(W,re,be)},b=({el:$,anchor:W})=>{let re;for(;$&&$!==W;)re=f($),r($),$=re;r(W)},S=($,W,re,be,he,B,H,te,ie)=>{W.type==="svg"?H="svg":W.type==="math"&&(H="mathml"),$==null?T(W,re,be,he,B,H,te,ie):P($,W,he,B,H,te,ie)},T=($,W,re,be,he,B,H,te)=>{let ie,we;const{props:ge,shapeFlag:q,transition:ae,dirs:Ne}=$;if(ie=$.el=i($.type,B,ge&&ge.is,ge),q&8?c(ie,$.children):q&16&&k($.children,ie,null,be,he,sm($,B),H,te),Ne&&Pl($,null,be,"created"),O(ie,$,$.scopeId,H,be),ge){for(const ct in ge)ct!=="value"&&!Nc(ct)&&s(ie,ct,null,ge[ct],B,be);"value"in ge&&s(ie,"value",null,ge.value,B),(we=ge.onVnodeBeforeMount)&&gs(we,be,$)}Ne&&Pl($,null,be,"beforeMount");const We=T3(he,ae);We&&ae.beforeEnter(ie),o(ie,W,re),((we=ge&&ge.onVnodeMounted)||We||Ne)&&Ao(()=>{we&&gs(we,be,$),We&&ae.enter(ie),Ne&&Pl($,null,be,"mounted")},he)},O=($,W,re,be,he)=>{if(re&&h($,re),be)for(let B=0;B{for(let we=ie;we<$.length;we++){const ge=$[we]=te?Fi($[we]):xs($[we]);g(null,ge,W,re,be,he,B,H,te)}},P=($,W,re,be,he,B,H)=>{const te=W.el=$.el;let{patchFlag:ie,dynamicChildren:we,dirs:ge}=W;ie|=$.patchFlag&16;const q=$.props||Jt,ae=W.props||Jt;let Ne;if(re&&Nl(re,!1),(Ne=ae.onVnodeBeforeUpdate)&&gs(Ne,re,W,$),ge&&Pl(W,$,re,"beforeUpdate"),re&&Nl(re,!0),(q.innerHTML&&ae.innerHTML==null||q.textContent&&ae.textContent==null)&&c(te,""),we?I($.dynamicChildren,we,te,re,be,sm(W,he),B):H||j($,W,te,null,re,be,sm(W,he),B,!1),ie>0){if(ie&16)M(te,q,ae,re,he);else if(ie&2&&q.class!==ae.class&&s(te,"class",null,ae.class,he),ie&4&&s(te,"style",q.style,ae.style,he),ie&8){const We=W.dynamicProps;for(let ct=0;ct{Ne&&gs(Ne,re,W,$),ge&&Pl(W,$,re,"updated")},be)},I=($,W,re,be,he,B,H)=>{for(let te=0;te{if(W!==re){if(W!==Jt)for(const B in W)!Nc(B)&&!(B in re)&&s($,B,W[B],null,he,be);for(const B in re){if(Nc(B))continue;const H=re[B],te=W[B];H!==te&&B!=="value"&&s($,B,te,H,he,be)}"value"in re&&s($,"value",W.value,re.value,he)}},D=($,W,re,be,he,B,H,te,ie)=>{const we=W.el=$?$.el:l(""),ge=W.anchor=$?$.anchor:l("");let{patchFlag:q,dynamicChildren:ae,slotScopeIds:Ne}=W;Ne&&(te=te?te.concat(Ne):Ne),$==null?(o(we,re,be),o(ge,re,be),k(W.children||[],re,ge,he,B,H,te,ie)):q>0&&q&64&&ae&&$.dynamicChildren?(I($.dynamicChildren,ae,re,he,B,H,te),(W.key!=null||he&&W===he.subTree)&&b0($,W,!0)):j($,W,re,ge,he,B,H,te,ie)},J=($,W,re,be,he,B,H,te,ie)=>{W.slotScopeIds=te,$==null?W.shapeFlag&512?he.ctx.activate(W,re,be,H,ie):oe(W,re,be,he,B,H,ie):N($,W,ie)},oe=($,W,re,be,he,B,H)=>{const te=$.component=j3($,be,he);if(Wp($)&&(te.ctx.renderer=ye),H3(te,!1,H),te.asyncDep){if(he&&he.registerDep(te,A,H),!$.el){const ie=te.subTree=w(Un);m(null,ie,W,re)}}else A(te,$,W,re,he,B,H)},N=($,W,re)=>{const be=W.component=$.component;if(L3($,W,re))if(be.asyncDep&&!be.asyncResolved){K(be,W,re);return}else be.next=W,be.update();else W.el=$.el,be.vnode=W},A=($,W,re,be,he,B,H)=>{const te=()=>{if($.isMounted){let{next:q,bu:ae,u:Ne,parent:We,vnode:ct}=$;{const Ge=nT($);if(Ge){q&&(q.el=ct.el,K($,q,H)),Ge.asyncDep.then(()=>{$.isUnmounted||te()});return}}let mt=q,Ft;Nl($,!1),q?(q.el=ct.el,K($,q,H)):q=ct,ae&&vh(ae),(Ft=q.props&&q.props.onVnodeBeforeUpdate)&&gs(Ft,We,q,ct),Nl($,!0);const zt=im($),Me=$.subTree;$.subTree=zt,g(Me,zt,d(Me.el),ee(Me),$,he,B),q.el=zt.el,mt===null&&R3($,zt.el),Ne&&Ao(Ne,he),(Ft=q.props&&q.props.onVnodeUpdated)&&Ao(()=>gs(Ft,We,q,ct),he)}else{let q;const{el:ae,props:Ne}=W,{bm:We,m:ct,parent:mt,root:Ft,type:zt}=$,Me=tu(W);if(Nl($,!1),We&&vh(We),!Me&&(q=Ne&&Ne.onVnodeBeforeMount)&&gs(q,mt,W),Nl($,!0),ae&&Xe){const Ge=()=>{$.subTree=im($),Xe(ae,$.subTree,$,he,null)};Me&&zt.__asyncHydrate?zt.__asyncHydrate(ae,$,Ge):Ge()}else{Ft.ce&&Ft.ce._injectChildStyle(zt);const Ge=$.subTree=im($);g(null,Ge,re,be,$,he,B),W.el=Ge.el}if(ct&&Ao(ct,he),!Me&&(q=Ne&&Ne.onVnodeMounted)){const Ge=W;Ao(()=>gs(q,mt,Ge),he)}(W.shapeFlag&256||mt&&tu(mt.vnode)&&mt.vnode.shapeFlag&256)&&$.a&&Ao($.a,he),$.isMounted=!0,W=re=be=null}};$.scope.on();const ie=$.effect=new sE(te);$.scope.off();const we=$.update=ie.run.bind(ie),ge=$.job=ie.runIfDirty.bind(ie);ge.i=$,ge.id=$.uid,ie.scheduler=()=>d0(ge),Nl($,!0),we()},K=($,W,re)=>{W.component=$;const be=$.vnode.props;$.vnode=W,$.next=null,b3($,W.props,be,re),x3($,W.children,re),ml(),p1($),vl()},j=($,W,re,be,he,B,H,te,ie=!1)=>{const we=$&&$.children,ge=$?$.shapeFlag:0,q=W.children,{patchFlag:ae,shapeFlag:Ne}=W;if(ae>0){if(ae&128){le(we,q,re,be,he,B,H,te,ie);return}else if(ae&256){F(we,q,re,be,he,B,H,te,ie);return}}Ne&8?(ge&16&&Oe(we,he,B),q!==we&&c(re,q)):ge&16?Ne&16?le(we,q,re,be,he,B,H,te,ie):Oe(we,he,B,!0):(ge&8&&c(re,""),Ne&16&&k(q,re,be,he,B,H,te,ie))},F=($,W,re,be,he,B,H,te,ie)=>{$=$||Xa,W=W||Xa;const we=$.length,ge=W.length,q=Math.min(we,ge);let ae;for(ae=0;aege?Oe($,he,B,!0,!1,q):k(W,re,be,he,B,H,te,ie,q)},le=($,W,re,be,he,B,H,te,ie)=>{let we=0;const ge=W.length;let q=$.length-1,ae=ge-1;for(;we<=q&&we<=ae;){const Ne=$[we],We=W[we]=ie?Fi(W[we]):xs(W[we]);if(Bl(Ne,We))g(Ne,We,re,null,he,B,H,te,ie);else break;we++}for(;we<=q&&we<=ae;){const Ne=$[q],We=W[ae]=ie?Fi(W[ae]):xs(W[ae]);if(Bl(Ne,We))g(Ne,We,re,null,he,B,H,te,ie);else break;q--,ae--}if(we>q){if(we<=ae){const Ne=ae+1,We=Neae)for(;we<=q;)se($[we],he,B,!0),we++;else{const Ne=we,We=we,ct=new Map;for(we=We;we<=ae;we++){const Re=W[we]=ie?Fi(W[we]):xs(W[we]);Re.key!=null&&ct.set(Re.key,we)}let mt,Ft=0;const zt=ae-We+1;let Me=!1,Ge=0;const de=new Array(zt);for(we=0;we=zt){se(Re,he,B,!0);continue}let Ce;if(Re.key!=null)Ce=ct.get(Re.key);else for(mt=We;mt<=ae;mt++)if(de[mt-We]===0&&Bl(Re,W[mt])){Ce=mt;break}Ce===void 0?se(Re,he,B,!0):(de[Ce-We]=we+1,Ce>=Ge?Ge=Ce:Me=!0,g(Re,W[Ce],re,null,he,B,H,te,ie),Ft++)}const Ae=Me?O3(de):Xa;for(mt=Ae.length-1,we=zt-1;we>=0;we--){const Re=We+we,Ce=W[Re],z=Re+1{const{el:B,type:H,transition:te,children:ie,shapeFlag:we}=$;if(we&6){ue($.component.subTree,W,re,be);return}if(we&128){$.suspense.move(W,re,be);return}if(we&64){H.move($,W,re,ye);return}if(H===Le){o(B,W,re);for(let q=0;qte.enter(B),he);else{const{leave:q,delayLeave:ae,afterLeave:Ne}=te,We=()=>o(B,W,re),ct=()=>{q(B,()=>{We(),Ne&&Ne()})};ae?ae(B,We,ct):ct()}else o(B,W,re)},se=($,W,re,be=!1,he=!1)=>{const{type:B,props:H,ref:te,children:ie,dynamicChildren:we,shapeFlag:ge,patchFlag:q,dirs:ae,cacheIndex:Ne}=$;if(q===-2&&(he=!1),te!=null&&jh(te,null,re,$,!0),Ne!=null&&(W.renderCache[Ne]=void 0),ge&256){W.ctx.deactivate($);return}const We=ge&1&&ae,ct=!tu($);let mt;if(ct&&(mt=H&&H.onVnodeBeforeUnmount)&&gs(mt,W,$),ge&6)ve($.component,re,be);else{if(ge&128){$.suspense.unmount(re,be);return}We&&Pl($,null,W,"beforeUnmount"),ge&64?$.type.remove($,W,re,ye,be):we&&!we.hasOnce&&(B!==Le||q>0&&q&64)?Oe(we,W,re,!1,!0):(B===Le&&q&384||!he&&ge&16)&&Oe(ie,W,re),be&&Ee($)}(ct&&(mt=H&&H.onVnodeUnmounted)||We)&&Ao(()=>{mt&&gs(mt,W,$),We&&Pl($,null,W,"unmounted")},re)},Ee=$=>{const{type:W,el:re,anchor:be,transition:he}=$;if(W===Le){fe(re,be);return}if(W===lm){b($);return}const B=()=>{r(re),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if($.shapeFlag&1&&he&&!he.persisted){const{leave:H,delayLeave:te}=he,ie=()=>H(re,B);te?te($.el,B,ie):ie()}else B()},fe=($,W)=>{let re;for(;$!==W;)re=f($),r($),$=re;r(W)},ve=($,W,re)=>{const{bum:be,scope:he,job:B,subTree:H,um:te,m:ie,a:we}=$;T1(ie),T1(we),be&&vh(be),he.stop(),B&&(B.flags|=8,se(H,$,W,re)),te&&Ao(te,W),Ao(()=>{$.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Oe=($,W,re,be=!1,he=!1,B=0)=>{for(let H=B;H<$.length;H++)se($[H],W,re,be,he)},ee=$=>{if($.shapeFlag&6)return ee($.component.subTree);if($.shapeFlag&128)return $.suspense.next();const W=f($.anchor||$.el),re=W&&W[kE];return re?f(re):W};let ne=!1;const Z=($,W,re)=>{$==null?W._vnode&&se(W._vnode,null,null,!0):g(W._vnode||null,$,W,null,null,null,re),W._vnode=$,ne||(ne=!0,p1(),EE(),ne=!1)},ye={p:g,um:se,m:ue,r:Ee,mt:oe,mc:k,pc:j,pbc:I,n:ee,o:t};let ke,Xe;return{render:Z,hydrate:ke,createApp:m3(Z,ke)}}function sm({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Nl({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function T3(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function b0(t,e,n=!1){const o=t.children,r=e.children;if(Pe(o)&&Pe(r))for(let s=0;s>1,t[n[l]]0&&(e[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=e[i];return n}function nT(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:nT(e)}function T1(t){if(t)for(let e=0;eVe(k3);function Gr(t,e){return y0(t,null,e)}function De(t,e,n){return y0(t,e,n)}function y0(t,e,n=Jt){const{immediate:o,deep:r,flush:s,once:i}=n,l=kn({},n),a=e&&o||!e&&s!=="post";let u;if(gd){if(s==="sync"){const h=M3();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=Rt,h.resume=Rt,h.pause=Rt,h}}const c=uo;l.call=(h,p,g)=>Qr(h,c,p,g);let d=!1;s==="post"?l.scheduler=h=>{Ao(h,c&&c.suspense)}:s!=="sync"&&(d=!0,l.scheduler=(h,p)=>{p?h():d0(h)}),l.augmentJob=h=>{e&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=KI(t,e,l);return gd&&(u?u.push(f):a&&f()),f}function _3(t,e,n){const o=this.proxy,r=Ye(t)?t.includes(".")?oT(o,t):()=>o[t]:t.bind(o,o);let s;Be(e)?s=e:(s=e.handler,n=e);const i=tf(this),l=y0(r,s.bind(o),n);return i(),l}function oT(t,e){const n=e.split(".");return()=>{let o=t;for(let r=0;re==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${lr(e)}Modifiers`]||t[`${mi(e)}Modifiers`];function P3(t,e,...n){if(t.isUnmounted)return;const o=t.vnode.props||Jt;let r=n;const s=e.startsWith("update:"),i=s&&A3(o,e.slice(7));i&&(i.trim&&(r=n.map(c=>Ye(c)?c.trim():c)),i.number&&(r=n.map(fv)));let l,a=o[l=Ic(e)]||o[l=Ic(lr(e))];!a&&s&&(a=o[l=Ic(mi(e))]),a&&Qr(a,t,6,r);const u=o[l+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Qr(u,t,6,r)}}function rT(t,e,n=!1){const o=e.emitsCache,r=o.get(t);if(r!==void 0)return r;const s=t.emits;let i={},l=!1;if(!Be(t)){const a=u=>{const c=rT(u,e,!0);c&&(l=!0,kn(i,c))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!s&&!l?(pt(t)&&o.set(t,null),null):(Pe(s)?s.forEach(a=>i[a]=null):kn(i,s),pt(t)&&o.set(t,i),i)}function Kp(t,e){return!t||!Vp(e)?!1:(e=e.slice(2).replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,mi(e))||kt(t,e))}function im(t){const{type:e,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:p,inheritAttrs:g}=t,v=zh(t);let m,C;try{if(n.shapeFlag&4){const b=r||o,S=b;m=xs(u.call(S,b,c,d,h,f,p)),C=l}else{const b=e;m=xs(b.length>1?b(d,{attrs:l,slots:i,emit:a}):b(d,null)),C=e.props?l:N3(l)}}catch(b){Vc.length=0,Up(b,t,1),m=w(Un)}let y=m;if(C&&g!==!1){const b=Object.keys(C),{shapeFlag:S}=y;b.length&&S&7&&(s&&b.some(t0)&&(C=I3(C,s)),y=ui(y,C,!1,!0))}return n.dirs&&(y=ui(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&fa(y,n.transition),m=y,zh(v),m}const N3=t=>{let e;for(const n in t)(n==="class"||n==="style"||Vp(n))&&((e||(e={}))[n]=t[n]);return e},I3=(t,e)=>{const n={};for(const o in t)(!t0(o)||!(o.slice(9)in e))&&(n[o]=t[o]);return n};function L3(t,e,n){const{props:o,children:r,component:s}=t,{props:i,children:l,patchFlag:a}=e,u=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?O1(o,i,u):!!i;if(a&8){const c=e.dynamicProps;for(let d=0;dt.__isSuspense;function $3(t,e){e&&e.pendingBranch?Pe(t)?e.effects.push(...t):e.effects.push(t):XI(t)}const Le=Symbol.for("v-fgt"),Ea=Symbol.for("v-txt"),Un=Symbol.for("v-cmt"),lm=Symbol.for("v-stc"),Vc=[];let er=null;function _(t=!1){Vc.push(er=t?null:[])}function D3(){Vc.pop(),er=Vc[Vc.length-1]||null}let pd=1;function k1(t,e=!1){pd+=t,t<0&&er&&e&&(er.hasOnce=!0)}function iT(t){return t.dynamicChildren=pd>0?er||Xa:null,D3(),pd>0&&er&&er.push(t),t}function G(t,e,n,o,r,s){return iT(L(t,e,n,o,r,s,!0))}function pe(t,e,n,o,r){return iT(w(t,e,n,o,r,!0))}function Bn(t){return t?t.__v_isVNode===!0:!1}function Bl(t,e){return t.type===e.type&&t.key===e.key}const lT=({key:t})=>t??null,yh=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ye(t)||Gt(t)||Be(t)?{i:Gn,r:t,k:e,f:!!n}:t:null);function L(t,e=null,n=null,o=0,r=null,s=t===Le?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&lT(e),ref:e&&yh(e),scopeId:OE,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Gn};return l?(w0(a,n),s&128&&t.normalize(a)):n&&(a.shapeFlag|=Ye(n)?8:16),pd>0&&!i&&er&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&er.push(a),a}const w=V3;function V3(t,e=null,n=null,o=0,r=null,s=!1){if((!t||t===zE)&&(t=Un),Bn(t)){const l=ui(t,e,!0);return n&&w0(l,n),pd>0&&!s&&er&&(l.shapeFlag&6?er[er.indexOf(t)]=l:er.push(l)),l.patchFlag=-2,l}if(G3(t)&&(t=t.__vccOpts),e){e=B3(e);let{class:l,style:a}=e;l&&!Ye(l)&&(e.class=Y(l)),pt(a)&&(c0(a)&&!Pe(a)&&(a=kn({},a)),e.style=ft(a))}const i=Ye(t)?1:sT(t)?128:ME(t)?64:pt(t)?4:Be(t)?2:0;return L(t,e,n,o,r,i,s,!0)}function B3(t){return t?c0(t)||JE(t)?kn({},t):t:null}function ui(t,e,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:l,transition:a}=t,u=e?ho(r||{},e):r,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&lT(u),ref:e&&e.ref?n&&s?Pe(s)?s.concat(yh(e)):[s,yh(e)]:yh(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Le?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ui(t.ssContent),ssFallback:t.ssFallback&&ui(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&o&&fa(c,a.clone(c)),c}function U(t=" ",e=0){return w(Ea,null,t,e)}function me(t="",e=!1){return e?(_(),pe(Un,null,t)):w(Un,null,t)}function xs(t){return t==null||typeof t=="boolean"?w(Un):Pe(t)?w(Le,null,t.slice()):Bn(t)?Fi(t):w(Ea,null,String(t))}function Fi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ui(t)}function w0(t,e){let n=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(Pe(e))n=16;else if(typeof e=="object")if(o&65){const r=e.default;r&&(r._c&&(r._d=!1),w0(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!JE(e)?e._ctx=Gn:r===3&&Gn&&(Gn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Be(e)?(e={default:e,_ctx:Gn},n=32):(e=String(e),o&64?(n=16,e=[U(e)]):n=8);t.children=e,t.shapeFlag|=n}function ho(...t){const e={};for(let n=0;nuo||Gn;let Wh,xv;{const t=zp(),e=(n,o)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(o),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};Wh=e("__VUE_INSTANCE_SETTERS__",n=>uo=n),xv=e("__VUE_SSR_SETTERS__",n=>gd=n)}const tf=t=>{const e=uo;return Wh(t),t.scope.on(),()=>{t.scope.off(),Wh(e)}},M1=()=>{uo&&uo.scope.off(),Wh(null)};function aT(t){return t.vnode.shapeFlag&4}let gd=!1;function H3(t,e=!1,n=!1){e&&xv(e);const{props:o,children:r}=t.vnode,s=aT(t);v3(t,o,s,e),C3(t,r,n);const i=s?U3(t,e):void 0;return e&&xv(!1),i}function U3(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,u3);const{setup:o}=n;if(o){ml();const r=t.setupContext=o.length>1?cT(t):null,s=tf(t),i=ef(o,t,0,[t.props,r]),l=K2(i);if(vl(),s(),(l||t.sp)&&!tu(t)&&DE(t),l){if(i.then(M1,M1),e)return i.then(a=>{_1(t,a,e)}).catch(a=>{Up(a,t,0)});t.asyncDep=i}else _1(t,i,e)}else uT(t,e)}function _1(t,e,n){Be(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:pt(e)&&(t.setupState=wE(e)),uT(t,n)}let A1;function uT(t,e,n){const o=t.type;if(!t.render){if(!e&&A1&&!o.render){const r=o.template||m0(t).template;if(r){const{isCustomElement:s,compilerOptions:i}=t.appContext.config,{delimiters:l,compilerOptions:a}=o,u=kn(kn({isCustomElement:s,delimiters:l},i),a);o.render=A1(r,u)}}t.render=o.render||Rt}{const r=tf(t);ml();try{c3(t)}finally{vl(),r()}}}const W3={get(t,e){return bo(t,"get",""),t[e]}};function cT(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,W3),slots:t.slots,emit:t.emit,expose:e}}function Jp(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(wE(xt(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Dc)return Dc[n](t)},has(e,n){return n in e||n in Dc}})):t.proxy}function q3(t,e=!0){return Be(t)?t.displayName||t.name:t.name||e&&t.__name}function G3(t){return Be(t)&&"__vccOpts"in t}const V=(t,e)=>qI(t,e,gd);function Ue(t,e,n){const o=arguments.length;return o===2?pt(e)&&!Pe(e)?Bn(e)?w(t,null,[e]):w(t,e):w(t,null,e):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Bn(n)&&(n=[n]),w(t,e,n))}const K3="3.5.13",J3=Rt;/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Sv;const P1=typeof window<"u"&&window.trustedTypes;if(P1)try{Sv=P1.createPolicy("vue",{createHTML:t=>t})}catch{}const dT=Sv?t=>Sv.createHTML(t):t=>t,Y3="http://www.w3.org/2000/svg",X3="http://www.w3.org/1998/Math/MathML",Ks=typeof document<"u"?document:null,N1=Ks&&Ks.createElement("template"),Z3={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,o)=>{const r=e==="svg"?Ks.createElementNS(Y3,t):e==="mathml"?Ks.createElementNS(X3,t):n?Ks.createElement(t,{is:n}):Ks.createElement(t);return t==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:t=>Ks.createTextNode(t),createComment:t=>Ks.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ks.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,o,r,s){const i=n?n.previousSibling:e.lastChild;if(r&&(r===s||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{N1.innerHTML=dT(o==="svg"?`${t}`:o==="mathml"?`${t}`:t);const l=N1.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},ki="transition",mc="animation",uu=Symbol("_vtc"),fT={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hT=kn({},IE,fT),Q3=t=>(t.displayName="Transition",t.props=hT,t),Go=Q3((t,{slots:e})=>Ue(e3,pT(t),e)),Il=(t,e=[])=>{Pe(t)?t.forEach(n=>n(...e)):t&&t(...e)},I1=t=>t?Pe(t)?t.some(e=>e.length>1):t.length>1:!1;function pT(t){const e={};for(const D in t)D in fT||(e[D]=t[D]);if(t.css===!1)return e;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=eL(r),g=p&&p[0],v=p&&p[1],{onBeforeEnter:m,onEnter:C,onEnterCancelled:y,onLeave:b,onLeaveCancelled:S,onBeforeAppear:T=m,onAppear:O=C,onAppearCancelled:k=y}=e,P=(D,J,oe,N)=>{D._enterCancelled=N,Ni(D,J?c:l),Ni(D,J?u:i),oe&&oe()},I=(D,J)=>{D._isLeaving=!1,Ni(D,d),Ni(D,h),Ni(D,f),J&&J()},M=D=>(J,oe)=>{const N=D?O:C,A=()=>P(J,D,oe);Il(N,[J,A]),L1(()=>{Ni(J,D?a:s),vs(J,D?c:l),I1(N)||R1(J,o,g,A)})};return kn(e,{onBeforeEnter(D){Il(m,[D]),vs(D,s),vs(D,i)},onBeforeAppear(D){Il(T,[D]),vs(D,a),vs(D,u)},onEnter:M(!1),onAppear:M(!0),onLeave(D,J){D._isLeaving=!0;const oe=()=>I(D,J);vs(D,d),D._enterCancelled?(vs(D,f),Ev()):(Ev(),vs(D,f)),L1(()=>{D._isLeaving&&(Ni(D,d),vs(D,h),I1(b)||R1(D,o,v,oe))}),Il(b,[D,oe])},onEnterCancelled(D){P(D,!1,void 0,!0),Il(y,[D])},onAppearCancelled(D){P(D,!0,void 0,!0),Il(k,[D])},onLeaveCancelled(D){I(D),Il(S,[D])}})}function eL(t){if(t==null)return null;if(pt(t))return[am(t.enter),am(t.leave)];{const e=am(t);return[e,e]}}function am(t){return fI(t)}function vs(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[uu]||(t[uu]=new Set)).add(e)}function Ni(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const n=t[uu];n&&(n.delete(e),n.size||(t[uu]=void 0))}function L1(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let tL=0;function R1(t,e,n,o){const r=t._endId=++tL,s=()=>{r===t._endId&&o()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=gT(t,e);if(!i)return o();const u=i+"end";let c=0;const d=()=>{t.removeEventListener(u,f),s()},f=h=>{h.target===t&&++c>=a&&d()};setTimeout(()=>{c(n[p]||"").split(", "),r=o(`${ki}Delay`),s=o(`${ki}Duration`),i=$1(r,s),l=o(`${mc}Delay`),a=o(`${mc}Duration`),u=$1(l,a);let c=null,d=0,f=0;e===ki?i>0&&(c=ki,d=i,f=s.length):e===mc?u>0&&(c=mc,d=u,f=a.length):(d=Math.max(i,u),c=d>0?i>u?ki:mc:null,f=c?c===ki?s.length:a.length:0);const h=c===ki&&/\b(transform|all)(,|$)/.test(o(`${ki}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function $1(t,e){for(;t.lengthD1(n)+D1(t[o])))}function D1(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Ev(){return document.body.offsetHeight}function nL(t,e,n){const o=t[uu];o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const qh=Symbol("_vod"),mT=Symbol("_vsh"),qe={beforeMount(t,{value:e},{transition:n}){t[qh]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):vc(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:o}){!e!=!n&&(o?e?(o.beforeEnter(t),vc(t,!0),o.enter(t)):o.leave(t,()=>{vc(t,!1)}):vc(t,e))},beforeUnmount(t,{value:e}){vc(t,e)}};function vc(t,e){t.style.display=e?t[qh]:"none",t[mT]=!e}const oL=Symbol(""),rL=/(^|;)\s*display\s*:/;function sL(t,e,n){const o=t.style,r=Ye(n);let s=!1;if(n&&!r){if(e)if(Ye(e))for(const i of e.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&wh(o,l,"")}else for(const i in e)n[i]==null&&wh(o,i,"");for(const i in n)i==="display"&&(s=!0),wh(o,i,n[i])}else if(r){if(e!==n){const i=o[oL];i&&(n+=";"+i),o.cssText=n,s=rL.test(n)}}else e&&t.removeAttribute("style");qh in t&&(t[qh]=s?o.display:"",t[mT]&&(o.display="none"))}const V1=/\s*!important$/;function wh(t,e,n){if(Pe(n))n.forEach(o=>wh(t,e,o));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const o=iL(t,e);V1.test(n)?t.setProperty(mi(o),n.replace(V1,""),"important"):t[o]=n}}const B1=["Webkit","Moz","ms"],um={};function iL(t,e){const n=um[e];if(n)return n;let o=lr(e);if(o!=="filter"&&o in t)return um[e]=o;o=Zd(o);for(let r=0;rcm||(cL.then(()=>cm=0),cm=Date.now());function fL(t,e){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qr(hL(o,n.value),e,5,[o])};return n.value=t,n.attached=dL(),n}function hL(t,e){if(Pe(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(o=>r=>!r._stopped&&o&&o(r))}else return e}const W1=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pL=(t,e,n,o,r,s)=>{const i=r==="svg";e==="class"?nL(t,o,i):e==="style"?sL(t,n,o):Vp(e)?t0(e)||aL(t,e,n,o,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):gL(t,e,o,i))?(j1(t,e,o),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&z1(t,e,o,i,s,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Ye(o))?j1(t,lr(e),o,s,e):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),z1(t,e,o,i))};function gL(t,e,n,o){if(o)return!!(e==="innerHTML"||e==="textContent"||e in t&&W1(e)&&Be(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return W1(e)&&Ye(n)?!1:e in t}const vT=new WeakMap,bT=new WeakMap,Gh=Symbol("_moveCb"),q1=Symbol("_enterCb"),mL=t=>(delete t.props.mode,t),vL=mL({name:"TransitionGroup",props:kn({},hT,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=gt(),o=NE();let r,s;return Sa(()=>{if(!r.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!CL(r[0].el,n.vnode.el,i))return;r.forEach(bL),r.forEach(yL);const l=r.filter(wL);Ev(),l.forEach(a=>{const u=a.el,c=u.style;vs(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Gh]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[Gh]=null,Ni(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=It(t),l=pT(i);let a=i.tag||Le;if(r=[],s)for(let u=0;u{l.split(/\s+/).forEach(a=>a&&o.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&o.classList.add(l)),o.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(o);const{hasTransform:i}=gT(o);return s.removeChild(o),i}const cu=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Pe(e)?n=>vh(e,n):e};function xL(t){t.target.composing=!0}function G1(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const si=Symbol("_assign"),SL={created(t,{modifiers:{lazy:e,trim:n,number:o}},r){t[si]=cu(r);const s=o||r.props&&r.props.type==="number";Wi(t,e?"change":"input",i=>{if(i.target.composing)return;let l=t.value;n&&(l=l.trim()),s&&(l=fv(l)),t[si](l)}),n&&Wi(t,"change",()=>{t.value=t.value.trim()}),e||(Wi(t,"compositionstart",xL),Wi(t,"compositionend",G1),Wi(t,"change",G1))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(t[si]=cu(i),t.composing)return;const l=(s||t.type==="number")&&!/^0\d/.test(t.value)?fv(t.value):t.value,a=e??"";l!==a&&(document.activeElement===t&&t.type!=="range"&&(o&&e===n||r&&t.value.trim()===a)||(t.value=a))}},il={deep:!0,created(t,e,n){t[si]=cu(n),Wi(t,"change",()=>{const o=t._modelValue,r=CT(t),s=t.checked,i=t[si];if(Pe(o)){const l=Z2(o,r),a=l!==-1;if(s&&!a)i(o.concat(r));else if(!s&&a){const u=[...o];u.splice(l,1),i(u)}}else if(Bp(o)){const l=new Set(o);s?l.add(r):l.delete(r),i(l)}else i(xT(t,s))})},mounted:K1,beforeUpdate(t,e,n){t[si]=cu(n),K1(t,e,n)}};function K1(t,{value:e,oldValue:n},o){t._modelValue=e;let r;if(Pe(e))r=Z2(e,o.props.value)>-1;else if(Bp(e))r=e.has(o.props.value);else{if(e===n)return;r=au(e,xT(t,!0))}t.checked!==r&&(t.checked=r)}const wT={created(t,{value:e},n){t.checked=au(e,n.props.value),t[si]=cu(n),Wi(t,"change",()=>{t[si](CT(t))})},beforeUpdate(t,{value:e,oldValue:n},o){t[si]=cu(o),e!==n&&(t.checked=au(e,o.props.value))}};function CT(t){return"_value"in t?t._value:t.value}function xT(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const EL=["ctrl","shift","alt","meta"],TL={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>EL.some(n=>t[`${n}Key`]&&!e.includes(n))},At=(t,e)=>{const n=t._withMods||(t._withMods={}),o=e.join(".");return n[o]||(n[o]=(r,...s)=>{for(let i=0;i{const n=t._withKeys||(t._withKeys={}),o=e.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const s=mi(r.key);if(e.some(i=>i===s||OL[i]===s))return t(r)})},kL=kn({patchProp:pL},Z3);let J1;function ST(){return J1||(J1=S3(kL))}const ll=(...t)=>{ST().render(...t)},C0=(...t)=>{const e=ST().createApp(...t),{mount:n}=e;return e.mount=o=>{const r=_L(o);if(!r)return;const s=e._component;!Be(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,ML(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e};function ML(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function _L(t){return Ye(t)?document.querySelector(t):t}/*! + * vue-router v4.5.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const za=typeof document<"u";function ET(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function AL(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&ET(t.default)}const Ht=Object.assign;function dm(t,e){const n={};for(const o in e){const r=e[o];n[o]=es(r)?r.map(t):t(r)}return n}const Bc=()=>{},es=Array.isArray,TT=/#/g,PL=/&/g,NL=/\//g,IL=/=/g,LL=/\?/g,OT=/\+/g,RL=/%5B/g,$L=/%5D/g,kT=/%5E/g,DL=/%60/g,MT=/%7B/g,VL=/%7C/g,_T=/%7D/g,BL=/%20/g;function x0(t){return encodeURI(""+t).replace(VL,"|").replace(RL,"[").replace($L,"]")}function FL(t){return x0(t).replace(MT,"{").replace(_T,"}").replace(kT,"^")}function Tv(t){return x0(t).replace(OT,"%2B").replace(BL,"+").replace(TT,"%23").replace(PL,"%26").replace(DL,"`").replace(MT,"{").replace(_T,"}").replace(kT,"^")}function zL(t){return Tv(t).replace(IL,"%3D")}function jL(t){return x0(t).replace(TT,"%23").replace(LL,"%3F")}function HL(t){return t==null?"":jL(t).replace(NL,"%2F")}function md(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const UL=/\/$/,WL=t=>t.replace(UL,"");function fm(t,e,n="/"){let o,r={},s="",i="";const l=e.indexOf("#");let a=e.indexOf("?");return l=0&&(a=-1),a>-1&&(o=e.slice(0,a),s=e.slice(a+1,l>-1?l:e.length),r=t(s)),l>-1&&(o=o||e.slice(0,l),i=e.slice(l,e.length)),o=JL(o??e,n),{fullPath:o+(s&&"?")+s+i,path:o,query:r,hash:md(i)}}function qL(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Y1(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function GL(t,e,n){const o=e.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&du(e.matched[o],n.matched[r])&&AT(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function du(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function AT(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!KL(t[n],e[n]))return!1;return!0}function KL(t,e){return es(t)?X1(t,e):es(e)?X1(e,t):t===e}function X1(t,e){return es(e)?t.length===e.length&&t.every((n,o)=>n===e[o]):t.length===1&&t[0]===e}function JL(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),o=t.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,i,l;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(i).join("/")}const Mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var vd;(function(t){t.pop="pop",t.push="push"})(vd||(vd={}));var Fc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Fc||(Fc={}));function YL(t){if(!t)if(za){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),WL(t)}const XL=/^[^#]+#/;function ZL(t,e){return t.replace(XL,"#")+e}function QL(t,e){const n=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:e.behavior,left:o.left-n.left-(e.left||0),top:o.top-n.top-(e.top||0)}}const Yp=()=>({left:window.scrollX,top:window.scrollY});function eR(t){let e;if("el"in t){const n=t.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=QL(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Z1(t,e){return(history.state?history.state.position-e:-1)+t}const Ov=new Map;function tR(t,e){Ov.set(t,e)}function nR(t){const e=Ov.get(t);return Ov.delete(t),e}let oR=()=>location.protocol+"//"+location.host;function PT(t,e){const{pathname:n,search:o,hash:r}=e,s=t.indexOf("#");if(s>-1){let l=r.includes(t.slice(s))?t.slice(s).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),Y1(a,"")}return Y1(n,t)+o+r}function rR(t,e,n,o){let r=[],s=[],i=null;const l=({state:f})=>{const h=PT(t,location),p=n.value,g=e.value;let v=0;if(f){if(n.value=h,e.value=f,i&&i===p){i=null;return}v=g?f.position-g.position:0}else o(h);r.forEach(m=>{m(n.value,p,{delta:v,type:vd.pop,direction:v?v>0?Fc.forward:Fc.back:Fc.unknown})})};function a(){i=n.value}function u(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return s.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(Ht({},f.state,{scroll:Yp()}),"")}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:d}}function Q1(t,e,n,o=!1,r=!1){return{back:t,current:e,forward:n,replaced:o,position:window.history.length,scroll:r?Yp():null}}function sR(t){const{history:e,location:n}=window,o={value:PT(t,n)},r={value:e.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(a,u,c){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+a:oR()+t+a;try{e[c?"replaceState":"pushState"](u,"",f),r.value=u}catch{n[c?"replace":"assign"](f)}}function i(a,u){const c=Ht({},e.state,Q1(r.value.back,a,r.value.forward,!0),u,{position:r.value.position});s(a,c,!0),o.value=a}function l(a,u){const c=Ht({},r.value,e.state,{forward:a,scroll:Yp()});s(c.current,c,!0);const d=Ht({},Q1(o.value,a,null),{position:c.position+1},u);s(a,d,!1),o.value=a}return{location:o,state:r,push:l,replace:i}}function iR(t){t=YL(t);const e=sR(t),n=rR(t,e.state,e.location,e.replace);function o(s,i=!0){i||n.pauseListeners(),history.go(s)}const r=Ht({location:"",base:t,go:o,createHref:ZL.bind(null,t)},e,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function lR(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),iR(t)}function aR(t){return typeof t=="string"||t&&typeof t=="object"}function NT(t){return typeof t=="string"||typeof t=="symbol"}const IT=Symbol("");var ew;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ew||(ew={}));function fu(t,e){return Ht(new Error,{type:t,[IT]:!0},e)}function js(t,e){return t instanceof Error&&IT in t&&(e==null||!!(t.type&e))}const tw="[^/]+?",uR={sensitive:!1,strict:!1,start:!0,end:!0},cR=/[.+*?^${}()[\]/\\]/g;function dR(t,e){const n=Ht({},uR,e),o=[];let r=n.start?"^":"";const s=[];for(const u of t){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function LT(t,e){let n=0;const o=t.score,r=e.score;for(;n0&&e[e.length-1]<0}const hR={type:0,value:""},pR=/[a-zA-Z0-9_]/;function gR(t){if(!t)return[[]];if(t==="/")return[[hR]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,o=n;const r=[];let s;function i(){s&&r.push(s),s=[]}let l=0,a,u="",c="";function d(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(a==="*"||a==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):e("Invalid state to consume buffer"),u="")}function f(){u+=a}for(;l{i(y)}:Bc}function i(d){if(NT(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const f=wR(d,n);n.splice(f,0,d),d.record.name&&!sw(d)&&o.set(d.record.name,d)}function u(d,f){let h,p={},g,v;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw fu(1,{location:d});v=h.record.name,p=Ht(ow(f.params,h.keys.filter(y=>!y.optional).concat(h.parent?h.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&ow(d.params,h.keys.map(y=>y.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(y=>y.re.test(g)),h&&(p=h.parse(g),v=h.record.name);else{if(h=f.name?o.get(f.name):n.find(y=>y.re.test(f.path)),!h)throw fu(1,{location:d,currentLocation:f});v=h.record.name,p=Ht({},f.params,d.params),g=h.stringify(p)}const m=[];let C=h;for(;C;)m.unshift(C.record),C=C.parent;return{name:v,path:g,params:p,matched:m,meta:yR(m)}}t.forEach(d=>s(d));function c(){n.length=0,o.clear()}return{addRoute:s,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:r}}function ow(t,e){const n={};for(const o of e)o in t&&(n[o]=t[o]);return n}function rw(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:bR(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function bR(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const o in t.components)e[o]=typeof n=="object"?n[o]:n;return e}function sw(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function yR(t){return t.reduce((e,n)=>Ht(e,n.meta),{})}function iw(t,e){const n={};for(const o in t)n[o]=o in e?e[o]:t[o];return n}function wR(t,e){let n=0,o=e.length;for(;n!==o;){const s=n+o>>1;LT(t,e[s])<0?o=s:n=s+1}const r=CR(t);return r&&(o=e.lastIndexOf(r,o-1)),o}function CR(t){let e=t;for(;e=e.parent;)if(RT(e)&<(t,e)===0)return e}function RT({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function xR(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;rs&&Tv(s)):[o&&Tv(o)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function SR(t){const e={};for(const n in t){const o=t[n];o!==void 0&&(e[n]=es(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return e}const ER=Symbol(""),aw=Symbol(""),Xp=Symbol(""),S0=Symbol(""),kv=Symbol("");function bc(){let t=[];function e(o){return t.push(o),()=>{const r=t.indexOf(o);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function zi(t,e,n,o,r,s=i=>i()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const u=f=>{f===!1?a(fu(4,{from:n,to:e})):f instanceof Error?a(f):aR(f)?a(fu(2,{from:e,to:f})):(i&&o.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),l())},c=s(()=>t.call(o&&o.instances[r],e,n,u));let d=Promise.resolve(c);t.length<3&&(d=d.then(u)),d.catch(f=>a(f))})}function hm(t,e,n,o,r=s=>s()){const s=[];for(const i of t)for(const l in i.components){let a=i.components[l];if(!(e!=="beforeRouteEnter"&&!i.instances[l]))if(ET(a)){const c=(a.__vccOpts||a)[e];c&&s.push(zi(c,n,o,i,l,r))}else{let u=a();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=AL(c)?c.default:c;i.mods[l]=c,i.components[l]=d;const h=(d.__vccOpts||d)[e];return h&&zi(h,n,o,i,l,r)()}))}}return s}function uw(t){const e=Ve(Xp),n=Ve(S0),o=V(()=>{const a=x(t.to);return e.resolve(a)}),r=V(()=>{const{matched:a}=o.value,{length:u}=a,c=a[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(du.bind(null,c));if(f>-1)return f;const h=cw(a[u-2]);return u>1&&cw(c)===h&&d[d.length-1].path!==h?d.findIndex(du.bind(null,a[u-2])):f}),s=V(()=>r.value>-1&&_R(n.params,o.value.params)),i=V(()=>r.value>-1&&r.value===n.matched.length-1&&AT(n.params,o.value.params));function l(a={}){if(MR(a)){const u=e[x(t.replace)?"replace":"push"](x(t.to)).catch(Bc);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:o,href:V(()=>o.value.href),isActive:s,isExactActive:i,navigate:l}}function TR(t){return t.length===1?t[0]:t}const OR=ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:uw,setup(t,{slots:e}){const n=ut(uw(t)),{options:o}=Ve(Xp),r=V(()=>({[dw(t.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[dw(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&TR(e.default(n));return t.custom?s:Ue("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),kR=OR;function MR(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function _R(t,e){for(const n in e){const o=e[n],r=t[n];if(typeof o=="string"){if(o!==r)return!1}else if(!es(r)||r.length!==o.length||o.some((s,i)=>s!==r[i]))return!1}return!0}function cw(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const dw=(t,e,n)=>t??e??n,AR=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const o=Ve(kv),r=V(()=>t.route||o.value),s=Ve(aw,0),i=V(()=>{let u=x(s);const{matched:c}=r.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),l=V(()=>r.value.matched[i.value]);Bt(aw,V(()=>i.value+1)),Bt(ER,l),Bt(kv,r);const a=R();return De(()=>[a.value,l.value,t.name],([u,c,d],[f,h,p])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!du(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,c=t.name,d=l.value,f=d&&d.components[c];if(!f)return fw(n.default,{Component:f,route:u});const h=d.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=Ue(f,Ht({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[c]=null)},ref:a}));return fw(n.default,{Component:v,route:u})||v}}});function fw(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const PR=AR;function NR(t){const e=vR(t.routes,t),n=t.parseQuery||xR,o=t.stringifyQuery||lw,r=t.history,s=bc(),i=bc(),l=bc(),a=rr(Mi);let u=Mi;za&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=dm.bind(null,ee=>""+ee),d=dm.bind(null,HL),f=dm.bind(null,md);function h(ee,ne){let Z,ye;return NT(ee)?(Z=e.getRecordMatcher(ee),ye=ne):ye=ee,e.addRoute(ye,Z)}function p(ee){const ne=e.getRecordMatcher(ee);ne&&e.removeRoute(ne)}function g(){return e.getRoutes().map(ee=>ee.record)}function v(ee){return!!e.getRecordMatcher(ee)}function m(ee,ne){if(ne=Ht({},ne||a.value),typeof ee=="string"){const W=fm(n,ee,ne.path),re=e.resolve({path:W.path},ne),be=r.createHref(W.fullPath);return Ht(W,re,{params:f(re.params),hash:md(W.hash),redirectedFrom:void 0,href:be})}let Z;if(ee.path!=null)Z=Ht({},ee,{path:fm(n,ee.path,ne.path).path});else{const W=Ht({},ee.params);for(const re in W)W[re]==null&&delete W[re];Z=Ht({},ee,{params:d(W)}),ne.params=d(ne.params)}const ye=e.resolve(Z,ne),ke=ee.hash||"";ye.params=c(f(ye.params));const Xe=qL(o,Ht({},ee,{hash:FL(ke),path:ye.path})),$=r.createHref(Xe);return Ht({fullPath:Xe,hash:ke,query:o===lw?SR(ee.query):ee.query||{}},ye,{redirectedFrom:void 0,href:$})}function C(ee){return typeof ee=="string"?fm(n,ee,a.value.path):Ht({},ee)}function y(ee,ne){if(u!==ee)return fu(8,{from:ne,to:ee})}function b(ee){return O(ee)}function S(ee){return b(Ht(C(ee),{replace:!0}))}function T(ee){const ne=ee.matched[ee.matched.length-1];if(ne&&ne.redirect){const{redirect:Z}=ne;let ye=typeof Z=="function"?Z(ee):Z;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=C(ye):{path:ye},ye.params={}),Ht({query:ee.query,hash:ee.hash,params:ye.path!=null?{}:ee.params},ye)}}function O(ee,ne){const Z=u=m(ee),ye=a.value,ke=ee.state,Xe=ee.force,$=ee.replace===!0,W=T(Z);if(W)return O(Ht(C(W),{state:typeof W=="object"?Ht({},ke,W.state):ke,force:Xe,replace:$}),ne||Z);const re=Z;re.redirectedFrom=ne;let be;return!Xe&&GL(o,ye,Z)&&(be=fu(16,{to:re,from:ye}),ue(ye,ye,!0,!1)),(be?Promise.resolve(be):I(re,ye)).catch(he=>js(he)?js(he,2)?he:le(he):j(he,re,ye)).then(he=>{if(he){if(js(he,2))return O(Ht({replace:$},C(he.to),{state:typeof he.to=="object"?Ht({},ke,he.to.state):ke,force:Xe}),ne||re)}else he=D(re,ye,!0,$,ke);return M(re,ye,he),he})}function k(ee,ne){const Z=y(ee,ne);return Z?Promise.reject(Z):Promise.resolve()}function P(ee){const ne=fe.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(ee):ee()}function I(ee,ne){let Z;const[ye,ke,Xe]=IR(ee,ne);Z=hm(ye.reverse(),"beforeRouteLeave",ee,ne);for(const W of ye)W.leaveGuards.forEach(re=>{Z.push(zi(re,ee,ne))});const $=k.bind(null,ee,ne);return Z.push($),Oe(Z).then(()=>{Z=[];for(const W of s.list())Z.push(zi(W,ee,ne));return Z.push($),Oe(Z)}).then(()=>{Z=hm(ke,"beforeRouteUpdate",ee,ne);for(const W of ke)W.updateGuards.forEach(re=>{Z.push(zi(re,ee,ne))});return Z.push($),Oe(Z)}).then(()=>{Z=[];for(const W of Xe)if(W.beforeEnter)if(es(W.beforeEnter))for(const re of W.beforeEnter)Z.push(zi(re,ee,ne));else Z.push(zi(W.beforeEnter,ee,ne));return Z.push($),Oe(Z)}).then(()=>(ee.matched.forEach(W=>W.enterCallbacks={}),Z=hm(Xe,"beforeRouteEnter",ee,ne,P),Z.push($),Oe(Z))).then(()=>{Z=[];for(const W of i.list())Z.push(zi(W,ee,ne));return Z.push($),Oe(Z)}).catch(W=>js(W,8)?W:Promise.reject(W))}function M(ee,ne,Z){l.list().forEach(ye=>P(()=>ye(ee,ne,Z)))}function D(ee,ne,Z,ye,ke){const Xe=y(ee,ne);if(Xe)return Xe;const $=ne===Mi,W=za?history.state:{};Z&&(ye||$?r.replace(ee.fullPath,Ht({scroll:$&&W&&W.scroll},ke)):r.push(ee.fullPath,ke)),a.value=ee,ue(ee,ne,Z,$),le()}let J;function oe(){J||(J=r.listen((ee,ne,Z)=>{if(!ve.listening)return;const ye=m(ee),ke=T(ye);if(ke){O(Ht(ke,{replace:!0,force:!0}),ye).catch(Bc);return}u=ye;const Xe=a.value;za&&tR(Z1(Xe.fullPath,Z.delta),Yp()),I(ye,Xe).catch($=>js($,12)?$:js($,2)?(O(Ht(C($.to),{force:!0}),ye).then(W=>{js(W,20)&&!Z.delta&&Z.type===vd.pop&&r.go(-1,!1)}).catch(Bc),Promise.reject()):(Z.delta&&r.go(-Z.delta,!1),j($,ye,Xe))).then($=>{$=$||D(ye,Xe,!1),$&&(Z.delta&&!js($,8)?r.go(-Z.delta,!1):Z.type===vd.pop&&js($,20)&&r.go(-1,!1)),M(ye,Xe,$)}).catch(Bc)}))}let N=bc(),A=bc(),K;function j(ee,ne,Z){le(ee);const ye=A.list();return ye.length&&ye.forEach(ke=>ke(ee,ne,Z)),Promise.reject(ee)}function F(){return K&&a.value!==Mi?Promise.resolve():new Promise((ee,ne)=>{N.add([ee,ne])})}function le(ee){return K||(K=!ee,oe(),N.list().forEach(([ne,Z])=>ee?Z(ee):ne()),N.reset()),ee}function ue(ee,ne,Z,ye){const{scrollBehavior:ke}=t;if(!za||!ke)return Promise.resolve();const Xe=!Z&&nR(Z1(ee.fullPath,0))||(ye||!Z)&&history.state&&history.state.scroll||null;return lt().then(()=>ke(ee,ne,Xe)).then($=>$&&eR($)).catch($=>j($,ee,ne))}const se=ee=>r.go(ee);let Ee;const fe=new Set,ve={currentRoute:a,listening:!0,addRoute:h,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:v,getRoutes:g,resolve:m,options:t,push:b,replace:S,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:A.add,isReady:F,install(ee){const ne=this;ee.component("RouterLink",kR),ee.component("RouterView",PR),ee.config.globalProperties.$router=ne,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>x(a)}),za&&!Ee&&a.value===Mi&&(Ee=!0,b(r.location).catch(ke=>{}));const Z={};for(const ke in Mi)Object.defineProperty(Z,ke,{get:()=>a.value[ke],enumerable:!0});ee.provide(Xp,ne),ee.provide(S0,a0(Z)),ee.provide(kv,a);const ye=ee.unmount;fe.add(ee),ee.unmount=function(){fe.delete(ee),fe.size<1&&(u=Mi,J&&J(),J=null,a.value=Mi,Ee=!1,K=!1),ye()}}};function Oe(ee){return ee.reduce((ne,Z)=>ne.then(()=>P(Z)),Promise.resolve())}return ve}function IR(t,e){const n=[],o=[],r=[],s=Math.max(e.matched.length,t.matched.length);for(let i=0;idu(u,l))?o.push(l):n.push(l));const a=t.matched[i];a&&(e.matched.find(u=>du(u,a))||r.push(a))}return[n,o,r]}function Ko(){return Ve(Xp)}function Ir(t){return Ve(S0)}/*! + * shared v10.0.5 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const Kh=typeof window<"u",bl=(t,e=!1)=>e?Symbol.for(t):Symbol(t),LR=(t,e,n)=>RR({l:t,k:e,s:n}),RR=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Sn=t=>typeof t=="number"&&isFinite(t),$R=t=>E0(t)==="[object Date]",hu=t=>E0(t)==="[object RegExp]",Zp=t=>Mt(t)&&Object.keys(t).length===0,Vn=Object.assign,DR=Object.create,Kt=(t=null)=>DR(t);let hw;const Wl=()=>hw||(hw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Kt());function pw(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const VR=Object.prototype.hasOwnProperty;function zr(t,e){return VR.call(t,e)}const vn=Array.isArray,sn=t=>typeof t=="function",Ze=t=>typeof t=="string",Vt=t=>typeof t=="boolean",jt=t=>t!==null&&typeof t=="object",BR=t=>jt(t)&&sn(t.then)&&sn(t.catch),$T=Object.prototype.toString,E0=t=>$T.call(t),Mt=t=>E0(t)==="[object Object]",FR=t=>t==null?"":vn(t)||Mt(t)&&t.toString===$T?JSON.stringify(t,null,2):String(t);function T0(t,e=""){return t.reduce((n,o,r)=>r===0?n+o:n+e+o,"")}function zR(t,e){}const Bf=t=>!jt(t)||vn(t);function Ch(t,e){if(Bf(t)||Bf(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(s=>{s!=="__proto__"&&(jt(o[s])&&!jt(r[s])&&(r[s]=Array.isArray(o[s])?[]:Kt()),Bf(r[s])||Bf(o[s])?r[s]=o[s]:n.push({src:o[s],des:r[s]}))})}}/*! + * message-compiler v10.0.5 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function jR(t,e,n){return{line:t,column:e,offset:n}}function Mv(t,e,n){return{start:t,end:e}}const Wt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},HR=17;function Qp(t,e,n={}){const{domain:o,messages:r,args:s}=n,i=t,l=new SyntaxError(String(i));return l.code=t,e&&(l.location=e),l.domain=o,l}function UR(t){throw t}const Hs=" ",WR="\r",_o=` +`,qR="\u2028",GR="\u2029";function KR(t){const e=t;let n=0,o=1,r=1,s=0;const i=O=>e[O]===WR&&e[O+1]===_o,l=O=>e[O]===_o,a=O=>e[O]===GR,u=O=>e[O]===qR,c=O=>i(O)||l(O)||a(O)||u(O),d=()=>n,f=()=>o,h=()=>r,p=()=>s,g=O=>i(O)||a(O)||u(O)?_o:e[O],v=()=>g(n),m=()=>g(n+s);function C(){return s=0,c(n)&&(o++,r=0),i(n)&&n++,n++,r++,e[n]}function y(){return i(n+s)&&s++,s++,e[n+s]}function b(){n=0,o=1,r=1,s=0}function S(O=0){s=O}function T(){const O=n+s;for(;O!==n;)C();s=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:v,currentPeek:m,next:C,peek:y,reset:b,resetPeek:S,skipToPeek:T}}const _i=void 0,JR=".",gw="'",YR="tokenizer";function XR(t,e={}){const n=e.location!==!1,o=KR(t),r=()=>o.index(),s=()=>jR(o.line(),o.column(),o.index()),i=s(),l=r(),a={currentType:13,offset:l,startLoc:i,endLoc:i,lastType:13,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>a,{onError:c}=e;function d(B,H,te,...ie){const we=u();if(H.column+=te,H.offset+=te,c){const ge=n?Mv(we.startLoc,H):null,q=Qp(B,ge,{domain:YR,args:ie});c(q)}}function f(B,H,te){B.endLoc=s(),B.currentType=H;const ie={type:H};return n&&(ie.loc=Mv(B.startLoc,B.endLoc)),te!=null&&(ie.value=te),ie}const h=B=>f(B,13);function p(B,H){return B.currentChar()===H?(B.next(),H):(d(Wt.EXPECTED_TOKEN,s(),0,H),"")}function g(B){let H="";for(;B.currentPeek()===Hs||B.currentPeek()===_o;)H+=B.currentPeek(),B.peek();return H}function v(B){const H=g(B);return B.skipToPeek(),H}function m(B){if(B===_i)return!1;const H=B.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H===95}function C(B){if(B===_i)return!1;const H=B.charCodeAt(0);return H>=48&&H<=57}function y(B,H){const{currentType:te}=H;if(te!==2)return!1;g(B);const ie=m(B.currentPeek());return B.resetPeek(),ie}function b(B,H){const{currentType:te}=H;if(te!==2)return!1;g(B);const ie=B.currentPeek()==="-"?B.peek():B.currentPeek(),we=C(ie);return B.resetPeek(),we}function S(B,H){const{currentType:te}=H;if(te!==2)return!1;g(B);const ie=B.currentPeek()===gw;return B.resetPeek(),ie}function T(B,H){const{currentType:te}=H;if(te!==7)return!1;g(B);const ie=B.currentPeek()===".";return B.resetPeek(),ie}function O(B,H){const{currentType:te}=H;if(te!==8)return!1;g(B);const ie=m(B.currentPeek());return B.resetPeek(),ie}function k(B,H){const{currentType:te}=H;if(!(te===7||te===11))return!1;g(B);const ie=B.currentPeek()===":";return B.resetPeek(),ie}function P(B,H){const{currentType:te}=H;if(te!==9)return!1;const ie=()=>{const ge=B.currentPeek();return ge==="{"?m(B.peek()):ge==="@"||ge==="|"||ge===":"||ge==="."||ge===Hs||!ge?!1:ge===_o?(B.peek(),ie()):M(B,!1)},we=ie();return B.resetPeek(),we}function I(B){g(B);const H=B.currentPeek()==="|";return B.resetPeek(),H}function M(B,H=!0){const te=(we=!1,ge="")=>{const q=B.currentPeek();return q==="{"||q==="@"||!q?we:q==="|"?!(ge===Hs||ge===_o):q===Hs?(B.peek(),te(!0,Hs)):q===_o?(B.peek(),te(!0,_o)):!0},ie=te();return H&&B.resetPeek(),ie}function D(B,H){const te=B.currentChar();return te===_i?_i:H(te)?(B.next(),te):null}function J(B){const H=B.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36}function oe(B){return D(B,J)}function N(B){const H=B.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36||H===45}function A(B){return D(B,N)}function K(B){const H=B.charCodeAt(0);return H>=48&&H<=57}function j(B){return D(B,K)}function F(B){const H=B.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102}function le(B){return D(B,F)}function ue(B){let H="",te="";for(;H=j(B);)te+=H;return te}function se(B){let H="";for(;;){const te=B.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te===Hs||te===_o)if(M(B))H+=te,B.next();else{if(I(B))break;H+=te,B.next()}else H+=te,B.next()}return H}function Ee(B){v(B);let H="",te="";for(;H=A(B);)te+=H;return B.currentChar()===_i&&d(Wt.UNTERMINATED_CLOSING_BRACE,s(),0),te}function fe(B){v(B);let H="";return B.currentChar()==="-"?(B.next(),H+=`-${ue(B)}`):H+=ue(B),B.currentChar()===_i&&d(Wt.UNTERMINATED_CLOSING_BRACE,s(),0),H}function ve(B){return B!==gw&&B!==_o}function Oe(B){v(B),p(B,"'");let H="",te="";for(;H=D(B,ve);)H==="\\"?te+=ee(B):te+=H;const ie=B.currentChar();return ie===_o||ie===_i?(d(Wt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),ie===_o&&(B.next(),p(B,"'")),te):(p(B,"'"),te)}function ee(B){const H=B.currentChar();switch(H){case"\\":case"'":return B.next(),`\\${H}`;case"u":return ne(B,H,4);case"U":return ne(B,H,6);default:return d(Wt.UNKNOWN_ESCAPE_SEQUENCE,s(),0,H),""}}function ne(B,H,te){p(B,H);let ie="";for(let we=0;we{const ie=B.currentChar();return ie==="{"||ie==="@"||ie==="|"||ie==="("||ie===")"||!ie||ie===Hs?te:(te+=ie,B.next(),H(te))};return H("")}function $(B){v(B);const H=p(B,"|");return v(B),H}function W(B,H){let te=null;switch(B.currentChar()){case"{":return H.braceNest>=1&&d(Wt.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),B.next(),te=f(H,2,"{"),v(B),H.braceNest++,te;case"}":return H.braceNest>0&&H.currentType===2&&d(Wt.EMPTY_PLACEHOLDER,s(),0),B.next(),te=f(H,3,"}"),H.braceNest--,H.braceNest>0&&v(B),H.inLinked&&H.braceNest===0&&(H.inLinked=!1),te;case"@":return H.braceNest>0&&d(Wt.UNTERMINATED_CLOSING_BRACE,s(),0),te=re(B,H)||h(H),H.braceNest=0,te;default:{let we=!0,ge=!0,q=!0;if(I(B))return H.braceNest>0&&d(Wt.UNTERMINATED_CLOSING_BRACE,s(),0),te=f(H,1,$(B)),H.braceNest=0,H.inLinked=!1,te;if(H.braceNest>0&&(H.currentType===4||H.currentType===5||H.currentType===6))return d(Wt.UNTERMINATED_CLOSING_BRACE,s(),0),H.braceNest=0,be(B,H);if(we=y(B,H))return te=f(H,4,Ee(B)),v(B),te;if(ge=b(B,H))return te=f(H,5,fe(B)),v(B),te;if(q=S(B,H))return te=f(H,6,Oe(B)),v(B),te;if(!we&&!ge&&!q)return te=f(H,12,ye(B)),d(Wt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,te.value),v(B),te;break}}return te}function re(B,H){const{currentType:te}=H;let ie=null;const we=B.currentChar();switch((te===7||te===8||te===11||te===9)&&(we===_o||we===Hs)&&d(Wt.INVALID_LINKED_FORMAT,s(),0),we){case"@":return B.next(),ie=f(H,7,"@"),H.inLinked=!0,ie;case".":return v(B),B.next(),f(H,8,".");case":":return v(B),B.next(),f(H,9,":");default:return I(B)?(ie=f(H,1,$(B)),H.braceNest=0,H.inLinked=!1,ie):T(B,H)||k(B,H)?(v(B),re(B,H)):O(B,H)?(v(B),f(H,11,ke(B))):P(B,H)?(v(B),we==="{"?W(B,H)||ie:f(H,10,Xe(B))):(te===7&&d(Wt.INVALID_LINKED_FORMAT,s(),0),H.braceNest=0,H.inLinked=!1,be(B,H))}}function be(B,H){let te={type:13};if(H.braceNest>0)return W(B,H)||h(H);if(H.inLinked)return re(B,H)||h(H);switch(B.currentChar()){case"{":return W(B,H)||h(H);case"}":return d(Wt.UNBALANCED_CLOSING_BRACE,s(),0),B.next(),f(H,3,"}");case"@":return re(B,H)||h(H);default:{if(I(B))return te=f(H,1,$(B)),H.braceNest=0,H.inLinked=!1,te;if(M(B))return f(H,0,se(B));break}}return te}function he(){const{currentType:B,offset:H,startLoc:te,endLoc:ie}=a;return a.lastType=B,a.lastOffset=H,a.lastStartLoc=te,a.lastEndLoc=ie,a.offset=r(),a.startLoc=s(),o.currentChar()===_i?f(a,13):be(o,a)}return{nextToken:he,currentOffset:r,currentPosition:s,context:u}}const ZR="parser",QR=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function e$(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(e||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function t$(t={}){const e=t.location!==!1,{onError:n}=t;function o(m,C,y,b,...S){const T=m.currentPosition();if(T.offset+=b,T.column+=b,n){const O=e?Mv(y,T):null,k=Qp(C,O,{domain:ZR,args:S});n(k)}}function r(m,C,y){const b={type:m};return e&&(b.start=C,b.end=C,b.loc={start:y,end:y}),b}function s(m,C,y,b){e&&(m.end=C,m.loc&&(m.loc.end=y))}function i(m,C){const y=m.context(),b=r(3,y.offset,y.startLoc);return b.value=C,s(b,m.currentOffset(),m.currentPosition()),b}function l(m,C){const y=m.context(),{lastOffset:b,lastStartLoc:S}=y,T=r(5,b,S);return T.index=parseInt(C,10),m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function a(m,C){const y=m.context(),{lastOffset:b,lastStartLoc:S}=y,T=r(4,b,S);return T.key=C,m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function u(m,C){const y=m.context(),{lastOffset:b,lastStartLoc:S}=y,T=r(9,b,S);return T.value=C.replace(QR,e$),m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function c(m){const C=m.nextToken(),y=m.context(),{lastOffset:b,lastStartLoc:S}=y,T=r(8,b,S);return C.type!==11?(o(m,Wt.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),T.value="",s(T,b,S),{nextConsumeToken:C,node:T}):(C.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ms(C)),T.value=C.value||"",s(T,m.currentOffset(),m.currentPosition()),{node:T})}function d(m,C){const y=m.context(),b=r(7,y.offset,y.startLoc);return b.value=C,s(b,m.currentOffset(),m.currentPosition()),b}function f(m){const C=m.context(),y=r(6,C.offset,C.startLoc);let b=m.nextToken();if(b.type===8){const S=c(m);y.modifier=S.node,b=S.nextConsumeToken||m.nextToken()}switch(b.type!==9&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(b)),b=m.nextToken(),b.type===2&&(b=m.nextToken()),b.type){case 10:b.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(b)),y.key=d(m,b.value||"");break;case 4:b.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(b)),y.key=a(m,b.value||"");break;case 5:b.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(b)),y.key=l(m,b.value||"");break;case 6:b.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(b)),y.key=u(m,b.value||"");break;default:{o(m,Wt.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const S=m.context(),T=r(7,S.offset,S.startLoc);return T.value="",s(T,S.offset,S.startLoc),y.key=T,s(y,S.offset,S.startLoc),{nextConsumeToken:b,node:y}}}return s(y,m.currentOffset(),m.currentPosition()),{node:y}}function h(m){const C=m.context(),y=C.currentType===1?m.currentOffset():C.offset,b=C.currentType===1?C.endLoc:C.startLoc,S=r(2,y,b);S.items=[];let T=null;do{const P=T||m.nextToken();switch(T=null,P.type){case 0:P.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(P)),S.items.push(i(m,P.value||""));break;case 5:P.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(P)),S.items.push(l(m,P.value||""));break;case 4:P.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(P)),S.items.push(a(m,P.value||""));break;case 6:P.value==null&&o(m,Wt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ms(P)),S.items.push(u(m,P.value||""));break;case 7:{const I=f(m);S.items.push(I.node),T=I.nextConsumeToken||null;break}}}while(C.currentType!==13&&C.currentType!==1);const O=C.currentType===1?C.lastOffset:m.currentOffset(),k=C.currentType===1?C.lastEndLoc:m.currentPosition();return s(S,O,k),S}function p(m,C,y,b){const S=m.context();let T=b.items.length===0;const O=r(1,C,y);O.cases=[],O.cases.push(b);do{const k=h(m);T||(T=k.items.length===0),O.cases.push(k)}while(S.currentType!==13);return T&&o(m,Wt.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),s(O,m.currentOffset(),m.currentPosition()),O}function g(m){const C=m.context(),{offset:y,startLoc:b}=C,S=h(m);return C.currentType===13?S:p(m,y,b,S)}function v(m){const C=XR(m,Vn({},t)),y=C.context(),b=r(0,y.offset,y.startLoc);return e&&b.loc&&(b.loc.source=m),b.body=g(C),t.onCacheKey&&(b.cacheKey=t.onCacheKey(m)),y.currentType!==13&&o(C,Wt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,m[y.offset]||""),s(b,C.currentOffset(),C.currentPosition()),b}return{parse:v}}function ms(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function n$(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function mw(t,e){for(let n=0;nvw(n)),t}function vw(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;nl;function u(v,m){l.code+=v}function c(v,m=!0){const C=m?r:"";u(s?C+" ".repeat(v):C)}function d(v=!0){const m=++l.indentLevel;v&&c(m)}function f(v=!0){const m=--l.indentLevel;v&&c(m)}function h(){c(l.indentLevel)}return{context:a,push:u,indent:d,deindent:f,newline:h,helper:v=>`_${v}`,needIndent:()=>l.needIndent}}function i$(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),pu(t,e.key),e.modifier?(t.push(", "),pu(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function l$(t,e){const{helper:n,needIndent:o}=t;t.push(`${n("normalize")}([`),t.indent(o());const r=e.items.length;for(let s=0;s1){t.push(`${n("plural")}([`),t.indent(o());const r=e.cases.length;for(let s=0;s{const n=Ze(e.mode)?e.mode:"normal",o=Ze(e.filename)?e.filename:"message.intl",r=!!e.sourceMap,s=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` +`,i=e.needIndent?e.needIndent:n!=="arrow",l=t.helpers||[],a=s$(t,{mode:n,filename:o,sourceMap:r,breakLineCode:s,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),l.length>0&&(a.push(`const { ${T0(l.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),pu(a,t),a.deindent(i),a.push("}"),delete t.helpers;const{code:u,map:c}=a.context();return{ast:t,code:u,map:c?c.toJSON():void 0}};function d$(t,e={}){const n=Vn({},e),o=!!n.jit,r=!!n.minify,s=n.optimize==null?!0:n.optimize,l=t$(n).parse(t);return o?(s&&r$(l),r&&ja(l),{ast:l,code:""}):(o$(l,n),c$(l,n))}/*! + * core-base v10.0.5 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function f$(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Wl().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Wl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function pm(t){return n=>h$(n,t)}function h$(t,e){const n=g$(e);if(n==null)throw bd(0);if(k0(n)===1){const s=v$(n);return t.plural(s.reduce((i,l)=>[...i,bw(t,l)],[]))}else return bw(t,n)}const p$=["b","body"];function g$(t){return yl(t,p$)}const m$=["c","cases"];function v$(t){return yl(t,m$,[])}function bw(t,e){const n=y$(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const o=C$(e).reduce((r,s)=>[...r,_v(t,s)],[]);return t.normalize(o)}}const b$=["s","static"];function y$(t){return yl(t,b$)}const w$=["i","items"];function C$(t){return yl(t,w$,[])}function _v(t,e){const n=k0(e);switch(n){case 3:return Ff(e,n);case 9:return Ff(e,n);case 4:{const o=e;if(zr(o,"k")&&o.k)return t.interpolate(t.named(o.k));if(zr(o,"key")&&o.key)return t.interpolate(t.named(o.key));throw bd(n)}case 5:{const o=e;if(zr(o,"i")&&Sn(o.i))return t.interpolate(t.list(o.i));if(zr(o,"index")&&Sn(o.index))return t.interpolate(t.list(o.index));throw bd(n)}case 6:{const o=e,r=T$(o),s=k$(o);return t.linked(_v(t,s),r?_v(t,r):void 0,t.type)}case 7:return Ff(e,n);case 8:return Ff(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const x$=["t","type"];function k0(t){return yl(t,x$)}const S$=["v","value"];function Ff(t,e){const n=yl(t,S$);if(n)return n;throw bd(e)}const E$=["m","modifier"];function T$(t){return yl(t,E$)}const O$=["k","key"];function k$(t){const e=yl(t,O$);if(e)return e;throw bd(6)}function yl(t,e,n){for(let o=0;ot;let zf=Kt();function gu(t){return jt(t)&&k0(t)===0&&(zr(t,"b")||zr(t,"body"))}function _$(t,e={}){let n=!1;const o=e.onError||UR;return e.onError=r=>{n=!0,o(r)},{...d$(t,e),detectError:n}}function A$(t,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ze(t)){Vt(e.warnHtmlMessage)&&e.warnHtmlMessage;const o=(e.onCacheKey||M$)(t),r=zf[o];if(r)return r;const{ast:s,detectError:i}=_$(t,{...e,location:!1,jit:!0}),l=pm(s);return i?l:zf[o]=l}else{const n=t.cacheKey;if(n){const o=zf[n];return o||(zf[n]=pm(t))}else return pm(t)}}let yd=null;function P$(t){yd=t}function N$(t,e,n){yd&&yd.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const I$=L$("function:translate");function L$(t){return e=>yd&&yd.emit(t,e)}const ei={INVALID_ARGUMENT:HR,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},R$=24;function ti(t){return Qp(t,null,void 0)}function M0(t,e){return e.locale!=null?yw(e.locale):yw(t.locale)}let gm;function yw(t){if(Ze(t))return t;if(sn(t)){if(t.resolvedOnce&&gm!=null)return gm;if(t.constructor.name==="Function"){const e=t();if(BR(e))throw ti(ei.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return gm=e}else throw ti(ei.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ti(ei.NOT_SUPPORT_LOCALE_TYPE)}function $$(t,e,n){return[...new Set([n,...vn(e)?e:jt(e)?Object.keys(e):Ze(e)?[e]:[n]])]}function DT(t,e,n){const o=Ze(n)?n:wd,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(o);if(!s){s=[];let i=[n];for(;vn(i);)i=ww(s,i,e);const l=vn(e)||!Mt(e)?e:e.default?e.default:null;i=Ze(l)?[l]:l,vn(i)&&ww(s,i,!1),r.__localeChainCache.set(o,s)}return s}function ww(t,e,n){let o=!0;for(let r=0;r{i===void 0?i=l:i+=l},f[1]=()=>{i!==void 0&&(e.push(i),i=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,o=4,f[0]();else{if(r=0,i===void 0||(i=H$(i),i===!1))return!1;f[1]()}};function h(){const p=t[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,l="\\"+p,f[0](),!0}for(;o!==null;)if(n++,s=t[n],!(s==="\\"&&h())){if(a=j$(s),d=wl[o],u=d[a]||d.l||8,u===8||(o=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(l=s,c()===!1))))return;if(o===7)return e}}const Cw=new Map;function W$(t,e){return jt(t)?t[e]:null}function q$(t,e){if(!jt(t))return null;let n=Cw.get(e);if(n||(n=U$(e),n&&Cw.set(e,n)),!n)return null;const o=n.length;let r=t,s=0;for(;s`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function K$(){return{upper:(t,e)=>e==="text"&&Ze(t)?t.toUpperCase():e==="vnode"&&jt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Ze(t)?t.toLowerCase():e==="vnode"&&jt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Ze(t)?Sw(t):e==="vnode"&&jt(t)&&"__v_isVNode"in t?Sw(t.children):t}}let VT;function J$(t){VT=t}let BT;function Y$(t){BT=t}let FT;function X$(t){FT=t}let zT=null;const Z$=t=>{zT=t},Q$=()=>zT;let jT=null;const Ew=t=>{jT=t},e4=()=>jT;let Tw=0;function t4(t={}){const e=sn(t.onWarn)?t.onWarn:zR,n=Ze(t.version)?t.version:G$,o=Ze(t.locale)||sn(t.locale)?t.locale:wd,r=sn(o)?wd:o,s=vn(t.fallbackLocale)||Mt(t.fallbackLocale)||Ze(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,i=Mt(t.messages)?t.messages:mm(r),l=Mt(t.datetimeFormats)?t.datetimeFormats:mm(r),a=Mt(t.numberFormats)?t.numberFormats:mm(r),u=Vn(Kt(),t.modifiers,K$()),c=t.pluralRules||Kt(),d=sn(t.missing)?t.missing:null,f=Vt(t.missingWarn)||hu(t.missingWarn)?t.missingWarn:!0,h=Vt(t.fallbackWarn)||hu(t.fallbackWarn)?t.fallbackWarn:!0,p=!!t.fallbackFormat,g=!!t.unresolving,v=sn(t.postTranslation)?t.postTranslation:null,m=Mt(t.processor)?t.processor:null,C=Vt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,y=!!t.escapeParameter,b=sn(t.messageCompiler)?t.messageCompiler:VT,S=sn(t.messageResolver)?t.messageResolver:BT||W$,T=sn(t.localeFallbacker)?t.localeFallbacker:FT||$$,O=jt(t.fallbackContext)?t.fallbackContext:void 0,k=t,P=jt(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,I=jt(k.__numberFormatters)?k.__numberFormatters:new Map,M=jt(k.__meta)?k.__meta:{};Tw++;const D={version:n,cid:Tw,locale:o,fallbackLocale:s,messages:i,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:v,processor:m,warnHtmlMessage:C,escapeParameter:y,messageCompiler:b,messageResolver:S,localeFallbacker:T,fallbackContext:O,onWarn:e,__meta:M};return D.datetimeFormats=l,D.numberFormats=a,D.__datetimeFormatters=P,D.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&N$(D,n,M),D}const mm=t=>({[t]:Kt()});function _0(t,e,n,o,r){const{missing:s,onWarn:i}=t;if(s!==null){const l=s(t,n,e,r);return Ze(l)?l:e}else return e}function yc(t,e,n){const o=t;o.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function n4(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function o4(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let o=n+1;o{HT.includes(a)?i[a]=n[a]:s[a]=n[a]}),Ze(o)?s.locale=o:Mt(o)&&(i=o),Mt(r)&&(i=r),[s.key||"",l,s,i]}function kw(t,e,n){const o=t;for(const r in n){const s=`${e}__${r}`;o.__datetimeFormatters.has(s)&&o.__datetimeFormatters.delete(s)}}function Mw(t,...e){const{numberFormats:n,unresolving:o,fallbackLocale:r,onWarn:s,localeFallbacker:i}=t,{__numberFormatters:l}=t,[a,u,c,d]=Pv(...e),f=Vt(c.missingWarn)?c.missingWarn:t.missingWarn;Vt(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn;const h=!!c.part,p=M0(t,c),g=i(t,r,p);if(!Ze(a)||a==="")return new Intl.NumberFormat(p,d).format(u);let v={},m,C=null;const y="number format";for(let T=0;T{UT.includes(a)?i[a]=n[a]:s[a]=n[a]}),Ze(o)?s.locale=o:Mt(o)&&(i=o),Mt(r)&&(i=r),[s.key||"",l,s,i]}function _w(t,e,n){const o=t;for(const r in n){const s=`${e}__${r}`;o.__numberFormatters.has(s)&&o.__numberFormatters.delete(s)}}const r4=t=>t,s4=t=>"",i4="text",l4=t=>t.length===0?"":T0(t),a4=FR;function Aw(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function u4(t){const e=Sn(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Sn(t.named.count)||Sn(t.named.n))?Sn(t.named.count)?t.named.count:Sn(t.named.n)?t.named.n:e:e}function c4(t,e){e.count||(e.count=t),e.n||(e.n=t)}function d4(t={}){const e=t.locale,n=u4(t),o=jt(t.pluralRules)&&Ze(e)&&sn(t.pluralRules[e])?t.pluralRules[e]:Aw,r=jt(t.pluralRules)&&Ze(e)&&sn(t.pluralRules[e])?Aw:void 0,s=m=>m[o(n,m.length,r)],i=t.list||[],l=m=>i[m],a=t.named||Kt();Sn(t.pluralIndex)&&c4(n,a);const u=m=>a[m];function c(m,C){const y=sn(t.messages)?t.messages(m,!!C):jt(t.messages)?t.messages[m]:!1;return y||(t.parent?t.parent.message(m):s4)}const d=m=>t.modifiers?t.modifiers[m]:r4,f=Mt(t.processor)&&sn(t.processor.normalize)?t.processor.normalize:l4,h=Mt(t.processor)&&sn(t.processor.interpolate)?t.processor.interpolate:a4,p=Mt(t.processor)&&Ze(t.processor.type)?t.processor.type:i4,v={list:l,named:u,plural:s,linked:(m,...C)=>{const[y,b]=C;let S="text",T="";C.length===1?jt(y)?(T=y.modifier||T,S=y.type||S):Ze(y)&&(T=y||T):C.length===2&&(Ze(y)&&(T=y||T),Ze(b)&&(S=b||S));const O=c(m,!0)(v),k=S==="vnode"&&vn(O)&&T?O[0]:O;return T?d(T)(k,S):k},message:c,type:p,interpolate:h,normalize:f,values:Vn(Kt(),i,a)};return v}const Pw=()=>"",br=t=>sn(t);function Nw(t,...e){const{fallbackFormat:n,postTranslation:o,unresolving:r,messageCompiler:s,fallbackLocale:i,messages:l}=t,[a,u]=Nv(...e),c=Vt(u.missingWarn)?u.missingWarn:t.missingWarn,d=Vt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,f=Vt(u.escapeParameter)?u.escapeParameter:t.escapeParameter,h=!!u.resolvedMessage,p=Ze(u.default)||Vt(u.default)?Vt(u.default)?s?a:()=>a:u.default:n?s?a:()=>a:null,g=n||p!=null&&(Ze(p)||sn(p)),v=M0(t,u);f&&f4(u);let[m,C,y]=h?[a,v,l[v]||Kt()]:WT(t,a,v,i,d,c),b=m,S=a;if(!h&&!(Ze(b)||gu(b)||br(b))&&g&&(b=p,S=b),!h&&(!(Ze(b)||gu(b)||br(b))||!Ze(C)))return r?eg:a;let T=!1;const O=()=>{T=!0},k=br(b)?b:qT(t,a,C,b,S,O);if(T)return b;const P=g4(t,C,y,u),I=d4(P),M=h4(t,k,I),D=o?o(M,a):M;if(__INTLIFY_PROD_DEVTOOLS__){const J={timestamp:Date.now(),key:Ze(a)?a:br(b)?b.key:"",locale:C||(br(b)?b.locale:""),format:Ze(b)?b:br(b)?b.source:"",message:D};J.meta=Vn({},t.__meta,Q$()||{}),I$(J)}return D}function f4(t){vn(t.list)?t.list=t.list.map(e=>Ze(e)?pw(e):e):jt(t.named)&&Object.keys(t.named).forEach(e=>{Ze(t.named[e])&&(t.named[e]=pw(t.named[e]))})}function WT(t,e,n,o,r,s){const{messages:i,onWarn:l,messageResolver:a,localeFallbacker:u}=t,c=u(t,o,n);let d=Kt(),f,h=null;const p="translate";for(let g=0;go;return u.locale=n,u.key=e,u}const a=i(o,p4(t,n,r,o,l,s));return a.locale=n,a.key=e,a.source=o,a}function h4(t,e,n){return e(n)}function Nv(...t){const[e,n,o]=t,r=Kt();if(!Ze(e)&&!Sn(e)&&!br(e)&&!gu(e))throw ti(ei.INVALID_ARGUMENT);const s=Sn(e)?String(e):(br(e),e);return Sn(n)?r.plural=n:Ze(n)?r.default=n:Mt(n)&&!Zp(n)?r.named=n:vn(n)&&(r.list=n),Sn(o)?r.plural=o:Ze(o)?r.default=o:Mt(o)&&Vn(r,o),[s,r]}function p4(t,e,n,o,r,s){return{locale:e,key:n,warnHtmlMessage:r,onError:i=>{throw s&&s(i),i},onCacheKey:i=>LR(e,n,i)}}function g4(t,e,n,o){const{modifiers:r,pluralRules:s,messageResolver:i,fallbackLocale:l,fallbackWarn:a,missingWarn:u,fallbackContext:c}=t,f={locale:e,modifiers:r,pluralRules:s,messages:(h,p)=>{let g=i(n,h);if(g==null&&(c||p)){const[,,v]=WT(c||t,h,e,l,a,u);g=i(v,h)}if(Ze(g)||gu(g)){let v=!1;const C=qT(t,h,e,g,h,()=>{v=!0});return v?Pw:C}else return br(g)?g:Pw}};return t.processor&&(f.processor=t.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),Sn(o.plural)&&(f.pluralIndex=o.plural),f}f$();/*! + * vue-i18n v10.0.5 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const m4="10.0.5";function v4(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Wl().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Wl().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Wl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Wl().__INTLIFY_PROD_DEVTOOLS__=!1)}const Lo={UNEXPECTED_RETURN_TYPE:R$,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function qo(t,...e){return Qp(t,null,void 0)}const Iv=bl("__translateVNode"),Lv=bl("__datetimeParts"),Rv=bl("__numberParts"),GT=bl("__setPluralRules"),KT=bl("__injectWithOption"),$v=bl("__dispose");function Cd(t){if(!jt(t))return t;for(const e in t)if(zr(t,e))if(!e.includes("."))jt(t[e])&&Cd(t[e]);else{const n=e.split("."),o=n.length-1;let r=t,s=!1;for(let i=0;i{if("locale"in l&&"resource"in l){const{locale:a,resource:u}=l;a?(i[a]=i[a]||Kt(),Ch(u,i[a])):Ch(u,i)}else Ze(l)&&Ch(JSON.parse(l),i)}),r==null&&s)for(const l in i)zr(i,l)&&Cd(i[l]);return i}function JT(t){return t.type}function YT(t,e,n){let o=jt(e.messages)?e.messages:Kt();"__i18nGlobal"in n&&(o=A0(t.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);r.length&&r.forEach(s=>{t.mergeLocaleMessage(s,o[s])});{if(jt(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(i=>{t.mergeDateTimeFormat(i,e.datetimeFormats[i])})}if(jt(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(i=>{t.mergeNumberFormat(i,e.numberFormats[i])})}}}function Iw(t){return w(Ea,null,t,0)}const Lw="__INTLIFY_META__",Rw=()=>[],b4=()=>!1;let $w=0;function Dw(t){return(e,n,o,r)=>t(n,o,gt()||void 0,r)}const y4=()=>{const t=gt();let e=null;return t&&(e=JT(t)[Lw])?{[Lw]:e}:null};function P0(t={}){const{__root:e,__injectWithOption:n}=t,o=e===void 0,r=t.flatJson,s=Kh?R:rr;let i=Vt(t.inheritLocale)?t.inheritLocale:!0;const l=s(e&&i?e.locale.value:Ze(t.locale)?t.locale:wd),a=s(e&&i?e.fallbackLocale.value:Ze(t.fallbackLocale)||vn(t.fallbackLocale)||Mt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:l.value),u=s(A0(l.value,t)),c=s(Mt(t.datetimeFormats)?t.datetimeFormats:{[l.value]:{}}),d=s(Mt(t.numberFormats)?t.numberFormats:{[l.value]:{}});let f=e?e.missingWarn:Vt(t.missingWarn)||hu(t.missingWarn)?t.missingWarn:!0,h=e?e.fallbackWarn:Vt(t.fallbackWarn)||hu(t.fallbackWarn)?t.fallbackWarn:!0,p=e?e.fallbackRoot:Vt(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,v=sn(t.missing)?t.missing:null,m=sn(t.missing)?Dw(t.missing):null,C=sn(t.postTranslation)?t.postTranslation:null,y=e?e.warnHtmlMessage:Vt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter;const S=e?e.modifiers:Mt(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,O;O=(()=>{o&&Ew(null);const q={version:m4,locale:l.value,fallbackLocale:a.value,messages:u.value,modifiers:S,pluralRules:T,missing:m===null?void 0:m,missingWarn:f,fallbackWarn:h,fallbackFormat:g,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:y,escapeParameter:b,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};q.datetimeFormats=c.value,q.numberFormats=d.value,q.__datetimeFormatters=Mt(O)?O.__datetimeFormatters:void 0,q.__numberFormatters=Mt(O)?O.__numberFormatters:void 0;const ae=t4(q);return o&&Ew(ae),ae})(),yc(O,l.value,a.value);function P(){return[l.value,a.value,u.value,c.value,d.value]}const I=V({get:()=>l.value,set:q=>{l.value=q,O.locale=l.value}}),M=V({get:()=>a.value,set:q=>{a.value=q,O.fallbackLocale=a.value,yc(O,l.value,q)}}),D=V(()=>u.value),J=V(()=>c.value),oe=V(()=>d.value);function N(){return sn(C)?C:null}function A(q){C=q,O.postTranslation=q}function K(){return v}function j(q){q!==null&&(m=Dw(q)),v=q,O.missing=m}const F=(q,ae,Ne,We,ct,mt)=>{P();let Ft;try{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=e?e4():void 0),Ft=q(O)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=void 0)}if(Ne!=="translate exists"&&Sn(Ft)&&Ft===eg||Ne==="translate exists"&&!Ft){const[zt,Me]=ae();return e&&p?We(e):ct(zt)}else{if(mt(Ft))return Ft;throw qo(Lo.UNEXPECTED_RETURN_TYPE)}};function le(...q){return F(ae=>Reflect.apply(Nw,null,[ae,...q]),()=>Nv(...q),"translate",ae=>Reflect.apply(ae.t,ae,[...q]),ae=>ae,ae=>Ze(ae))}function ue(...q){const[ae,Ne,We]=q;if(We&&!jt(We))throw qo(Lo.INVALID_ARGUMENT);return le(ae,Ne,Vn({resolvedMessage:!0},We||{}))}function se(...q){return F(ae=>Reflect.apply(Ow,null,[ae,...q]),()=>Av(...q),"datetime format",ae=>Reflect.apply(ae.d,ae,[...q]),()=>xw,ae=>Ze(ae))}function Ee(...q){return F(ae=>Reflect.apply(Mw,null,[ae,...q]),()=>Pv(...q),"number format",ae=>Reflect.apply(ae.n,ae,[...q]),()=>xw,ae=>Ze(ae))}function fe(q){return q.map(ae=>Ze(ae)||Sn(ae)||Vt(ae)?Iw(String(ae)):ae)}const Oe={normalize:fe,interpolate:q=>q,type:"vnode"};function ee(...q){return F(ae=>{let Ne;const We=ae;try{We.processor=Oe,Ne=Reflect.apply(Nw,null,[We,...q])}finally{We.processor=null}return Ne},()=>Nv(...q),"translate",ae=>ae[Iv](...q),ae=>[Iw(ae)],ae=>vn(ae))}function ne(...q){return F(ae=>Reflect.apply(Mw,null,[ae,...q]),()=>Pv(...q),"number format",ae=>ae[Rv](...q),Rw,ae=>Ze(ae)||vn(ae))}function Z(...q){return F(ae=>Reflect.apply(Ow,null,[ae,...q]),()=>Av(...q),"datetime format",ae=>ae[Lv](...q),Rw,ae=>Ze(ae)||vn(ae))}function ye(q){T=q,O.pluralRules=T}function ke(q,ae){return F(()=>{if(!q)return!1;const Ne=Ze(ae)?ae:l.value,We=W(Ne),ct=O.messageResolver(We,q);return gu(ct)||br(ct)||Ze(ct)},()=>[q],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[q,ae]),b4,Ne=>Vt(Ne))}function Xe(q){let ae=null;const Ne=DT(O,a.value,l.value);for(let We=0;We{i&&(l.value=q,O.locale=q,yc(O,l.value,a.value))}),De(e.fallbackLocale,q=>{i&&(a.value=q,O.fallbackLocale=q,yc(O,l.value,a.value))}));const ge={id:$w,locale:I,fallbackLocale:M,get inheritLocale(){return i},set inheritLocale(q){i=q,q&&e&&(l.value=e.locale.value,a.value=e.fallbackLocale.value,yc(O,l.value,a.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:D,get modifiers(){return S},get pluralRules(){return T||{}},get isGlobal(){return o},get missingWarn(){return f},set missingWarn(q){f=q,O.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(q){h=q,O.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(q){p=q},get fallbackFormat(){return g},set fallbackFormat(q){g=q,O.fallbackFormat=g},get warnHtmlMessage(){return y},set warnHtmlMessage(q){y=q,O.warnHtmlMessage=q},get escapeParameter(){return b},set escapeParameter(q){b=q,O.escapeParameter=q},t:le,getLocaleMessage:W,setLocaleMessage:re,mergeLocaleMessage:be,getPostTranslationHandler:N,setPostTranslationHandler:A,getMissingHandler:K,setMissingHandler:j,[GT]:ye};return ge.datetimeFormats=J,ge.numberFormats=oe,ge.rt=ue,ge.te=ke,ge.tm=$,ge.d=se,ge.n=Ee,ge.getDateTimeFormat=he,ge.setDateTimeFormat=B,ge.mergeDateTimeFormat=H,ge.getNumberFormat=te,ge.setNumberFormat=ie,ge.mergeNumberFormat=we,ge[KT]=n,ge[Iv]=ee,ge[Lv]=Z,ge[Rv]=ne,ge}function w4(t){const e=Ze(t.locale)?t.locale:wd,n=Ze(t.fallbackLocale)||vn(t.fallbackLocale)||Mt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,o=sn(t.missing)?t.missing:void 0,r=Vt(t.silentTranslationWarn)||hu(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,s=Vt(t.silentFallbackWarn)||hu(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,i=Vt(t.fallbackRoot)?t.fallbackRoot:!0,l=!!t.formatFallbackMessages,a=Mt(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,c=sn(t.postTranslation)?t.postTranslation:void 0,d=Ze(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,f=!!t.escapeParameterHtml,h=Vt(t.sync)?t.sync:!0;let p=t.messages;if(Mt(t.sharedMessages)){const S=t.sharedMessages;p=Object.keys(S).reduce((O,k)=>{const P=O[k]||(O[k]={});return Vn(P,S[k]),O},p||{})}const{__i18n:g,__root:v,__injectWithOption:m}=t,C=t.datetimeFormats,y=t.numberFormats,b=t.flatJson;return{locale:e,fallbackLocale:n,messages:p,flatJson:b,datetimeFormats:C,numberFormats:y,missing:o,missingWarn:r,fallbackWarn:s,fallbackRoot:i,fallbackFormat:l,modifiers:a,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:t.messageResolver,inheritLocale:h,__i18n:g,__root:v,__injectWithOption:m}}function Dv(t={}){const e=P0(w4(t)),{__extender:n}=t,o={id:e.id,get locale(){return e.locale.value},set locale(r){e.locale.value=r},get fallbackLocale(){return e.fallbackLocale.value},set fallbackLocale(r){e.fallbackLocale.value=r},get messages(){return e.messages.value},get datetimeFormats(){return e.datetimeFormats.value},get numberFormats(){return e.numberFormats.value},get availableLocales(){return e.availableLocales},get missing(){return e.getMissingHandler()},set missing(r){e.setMissingHandler(r)},get silentTranslationWarn(){return Vt(e.missingWarn)?!e.missingWarn:e.missingWarn},set silentTranslationWarn(r){e.missingWarn=Vt(r)?!r:r},get silentFallbackWarn(){return Vt(e.fallbackWarn)?!e.fallbackWarn:e.fallbackWarn},set silentFallbackWarn(r){e.fallbackWarn=Vt(r)?!r:r},get modifiers(){return e.modifiers},get formatFallbackMessages(){return e.fallbackFormat},set formatFallbackMessages(r){e.fallbackFormat=r},get postTranslation(){return e.getPostTranslationHandler()},set postTranslation(r){e.setPostTranslationHandler(r)},get sync(){return e.inheritLocale},set sync(r){e.inheritLocale=r},get warnHtmlInMessage(){return e.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){e.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return e.escapeParameter},set escapeParameterHtml(r){e.escapeParameter=r},get pluralizationRules(){return e.pluralRules||{}},__composer:e,t(...r){return Reflect.apply(e.t,e,[...r])},rt(...r){return Reflect.apply(e.rt,e,[...r])},tc(...r){const[s,i,l]=r,a={plural:1};let u=null,c=null;if(!Ze(s))throw qo(Lo.INVALID_ARGUMENT);const d=s;return Ze(i)?a.locale=i:Sn(i)?a.plural=i:vn(i)?u=i:Mt(i)&&(c=i),Ze(l)?a.locale=l:vn(l)?u=l:Mt(l)&&(c=l),Reflect.apply(e.t,e,[d,u||c||{},a])},te(r,s){return e.te(r,s)},tm(r){return e.tm(r)},getLocaleMessage(r){return e.getLocaleMessage(r)},setLocaleMessage(r,s){e.setLocaleMessage(r,s)},mergeLocaleMessage(r,s){e.mergeLocaleMessage(r,s)},d(...r){return Reflect.apply(e.d,e,[...r])},getDateTimeFormat(r){return e.getDateTimeFormat(r)},setDateTimeFormat(r,s){e.setDateTimeFormat(r,s)},mergeDateTimeFormat(r,s){e.mergeDateTimeFormat(r,s)},n(...r){return Reflect.apply(e.n,e,[...r])},getNumberFormat(r){return e.getNumberFormat(r)},setNumberFormat(r,s){e.setNumberFormat(r,s)},mergeNumberFormat(r,s){e.mergeNumberFormat(r,s)}};return o.__extender=n,o}function C4(t,e,n){return{beforeCreate(){const o=gt();if(!o)throw qo(Lo.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=e,this===this.$root)this.$i18n=Vw(t,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Dv(s);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Vw(t,r);else{this.$i18n=Dv({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:e});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=t;r.__i18nGlobal&&YT(e,r,r),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,i)=>this.$i18n.te(s,i),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=gt();if(!o)throw qo(Lo.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(o),delete this.$i18n}}}function Vw(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[GT](e.pluralizationRules||t.pluralizationRules);const n=A0(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(o=>t.mergeLocaleMessage(o,n[o])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(o=>t.mergeDateTimeFormat(o,e.datetimeFormats[o])),e.numberFormats&&Object.keys(e.numberFormats).forEach(o=>t.mergeNumberFormat(o,e.numberFormats[o])),t}const N0={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function x4({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((o,r)=>[...o,...r.type===Le?r.children:[r]],[]):e.reduce((n,o)=>{const r=t[o];return r&&(n[o]=r()),n},Kt())}function XT(){return Le}const S4=ce({name:"i18n-t",props:Vn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Sn(t)||!isNaN(t)}},N0),setup(t,e){const{slots:n,attrs:o}=e,r=t.i18n||cn({useScope:t.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(d=>d!=="_"),i=Kt();t.locale&&(i.locale=t.locale),t.plural!==void 0&&(i.plural=Ze(t.plural)?+t.plural:t.plural);const l=x4(e,s),a=r[Iv](t.keypath,l,i),u=Vn(Kt(),o),c=Ze(t.tag)||jt(t.tag)?t.tag:XT();return Ue(c,u,a)}}}),Bw=S4;function E4(t){return vn(t)&&!Ze(t[0])}function ZT(t,e,n,o){const{slots:r,attrs:s}=e;return()=>{const i={part:!0};let l=Kt();t.locale&&(i.locale=t.locale),Ze(t.format)?i.key=t.format:jt(t.format)&&(Ze(t.format.key)&&(i.key=t.format.key),l=Object.keys(t.format).reduce((f,h)=>n.includes(h)?Vn(Kt(),f,{[h]:t.format[h]}):f,Kt()));const a=o(t.value,i,l);let u=[i.key];vn(a)?u=a.map((f,h)=>{const p=r[f.type],g=p?p({[f.type]:f.value,index:h,parts:a}):[f.value];return E4(g)&&(g[0].key=`${f.type}-${h}`),g}):Ze(a)&&(u=[a]);const c=Vn(Kt(),s),d=Ze(t.tag)||jt(t.tag)?t.tag:XT();return Ue(d,c,u)}}const T4=ce({name:"i18n-n",props:Vn({value:{type:Number,required:!0},format:{type:[String,Object]}},N0),setup(t,e){const n=t.i18n||cn({useScope:t.scope,__useComponent:!0});return ZT(t,e,UT,(...o)=>n[Rv](...o))}}),Fw=T4,O4=ce({name:"i18n-d",props:Vn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},N0),setup(t,e){const n=t.i18n||cn({useScope:t.scope,__useComponent:!0});return ZT(t,e,HT,(...o)=>n[Lv](...o))}}),zw=O4;function k4(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const o=n.__getInstance(e);return o!=null?o.__composer:t.global.__composer}}function M4(t){const e=i=>{const{instance:l,value:a}=i;if(!l||!l.$)throw qo(Lo.UNEXPECTED_ERROR);const u=k4(t,l.$),c=jw(a);return[Reflect.apply(u.t,u,[...Hw(c)]),u]};return{created:(i,l)=>{const[a,u]=e(l);Kh&&t.global===u&&(i.__i18nWatcher=De(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=u,i.textContent=a},unmounted:i=>{Kh&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:l})=>{if(i.__composer){const a=i.__composer,u=jw(l);i.textContent=Reflect.apply(a.t,a,[...Hw(u)])}},getSSRProps:i=>{const[l]=e(i);return{textContent:l}}}}function jw(t){if(Ze(t))return{path:t};if(Mt(t)){if(!("path"in t))throw qo(Lo.REQUIRED_VALUE,"path");return t}else throw qo(Lo.INVALID_VALUE)}function Hw(t){const{path:e,locale:n,args:o,choice:r,plural:s}=t,i={},l=o||{};return Ze(n)&&(i.locale=n),Sn(r)&&(i.plural=r),Sn(s)&&(i.plural=s),[e,l,i]}function _4(t,e,...n){const o=Mt(n[0])?n[0]:{};(Vt(o.globalInstall)?o.globalInstall:!0)&&([Bw.name,"I18nT"].forEach(s=>t.component(s,Bw)),[Fw.name,"I18nN"].forEach(s=>t.component(s,Fw)),[zw.name,"I18nD"].forEach(s=>t.component(s,zw))),t.directive("t",M4(e))}const A4=bl("global-vue-i18n");function P4(t={},e){const n=__VUE_I18N_LEGACY_API__&&Vt(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,o=Vt(t.globalInjection)?t.globalInjection:!0,r=new Map,[s,i]=N4(t,n),l=bl("");function a(f){return r.get(f)||null}function u(f,h){r.set(f,h)}function c(f){r.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=l,f.provide(f.__VUE_I18N_SYMBOL__,d),Mt(h[0])){const v=h[0];d.__composerExtend=v.__composerExtend,d.__vueI18nExtend=v.__vueI18nExtend}let p=null;!n&&o&&(p=F4(f,d.global)),__VUE_I18N_FULL_INSTALL__&&_4(f,d,...h),__VUE_I18N_LEGACY_API__&&n&&f.mixin(C4(i,i.__composer,d));const g=f.unmount;f.unmount=()=>{p&&p(),d.dispose(),g()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:u,__deleteInstance:c};return d}function cn(t={}){const e=gt();if(e==null)throw qo(Lo.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw qo(Lo.NOT_INSTALLED);const n=I4(e),o=R4(n),r=JT(e),s=L4(t,r);if(s==="global")return YT(o,t,r),o;if(s==="parent"){let a=$4(n,e,t.__useComponent);return a==null&&(a=o),a}const i=n;let l=i.__getInstance(e);if(l==null){const a=Vn({},t);"__i18n"in r&&(a.__i18n=r.__i18n),o&&(a.__root=o),l=P0(a),i.__composerExtend&&(l[$v]=i.__composerExtend(l)),V4(i,e,l),i.__setInstance(e,l)}return l}function N4(t,e,n){const o=nE(),r=__VUE_I18N_LEGACY_API__&&e?o.run(()=>Dv(t)):o.run(()=>P0(t));if(r==null)throw qo(Lo.UNEXPECTED_ERROR);return[o,r]}function I4(t){const e=Ve(t.isCE?A4:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw qo(t.isCE?Lo.NOT_INSTALLED_WITH_PROVIDE:Lo.UNEXPECTED_ERROR);return e}function L4(t,e){return Zp(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function R4(t){return t.mode==="composition"?t.global:t.global.__composer}function $4(t,e,n=!1){let o=null;const r=e.root;let s=D4(e,n);for(;s!=null;){const i=t;if(t.mode==="composition")o=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(s);l!=null&&(o=l.__composer,n&&o&&!o[KT]&&(o=null))}if(o!=null||r===s)break;s=s.parent}return o}function D4(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function V4(t,e,n){st(()=>{},e),Rs(()=>{const o=n;t.__deleteInstance(e);const r=o[$v];r&&(r(),delete o[$v])},e)}const B4=["locale","fallbackLocale","availableLocales"],Uw=["t","rt","d","n","tm","te"];function F4(t,e){const n=Object.create(null);return B4.forEach(r=>{const s=Object.getOwnPropertyDescriptor(e,r);if(!s)throw qo(Lo.UNEXPECTED_ERROR);const i=Gt(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,Uw.forEach(r=>{const s=Object.getOwnPropertyDescriptor(e,r);if(!s||!s.value)throw qo(Lo.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,s)}),()=>{delete t.config.globalProperties.$i18n,Uw.forEach(r=>{delete t.config.globalProperties[`$${r}`]})}}v4();J$(A$);Y$(q$);X$(DT);if(__INTLIFY_PROD_DEVTOOLS__){const t=Wl();t.__INTLIFY__=!0,P$(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const z4={lang:{common:{add:"新增",back:"返回",save:"保存",saved:"保存成功",cancel:"取消",edit:"编辑",del:"删除",deleted:"删除成功",insert:"插入",nodeName:"节点名称",else:"否则",successTip:"成功提示",errTip:"错误提示",toDetail:"查看详情"},err:{},mainflow:{title:"主流程列表",add:"增加主流程",table:["主流程名称","是否启用","操作"],form:{title:"新增主流程",name:"主流程名称"},delConfirm:"确认要删除该主流程吗?"},flow:{nodes:["话术节点","条件节点","采集节点","跳转节点"],nodesDesc:["返回话术给用户","设置条件,控制流程走向","采集用户输入的信息,并保存到变量中","流程之间跳转,或跳转至外部"],title:"绘制对话流程",steps:["第一步:发布流程","第二步:开始测试"],save:"保存当前流程",pub:"发布所有流程",test:"测试流程",addSubFlow:"新增子流程",form:{name:"子流程名"},subFlowReleased:"发布成功",needOne:"最少保留一个子流程",delConfirm:"确认要删除该子流程吗?",send:"发送",reset:"重置",changeSaveTip:"流程已经修改,需要保存并切换吗?",guideReset:"流程结束,如需重新开始请点下方重来按钮"},dialogNode:{nodeName:"话术节点",nextSteps:["等待用户回复","执行下一个节点"],errors:["未填写节点名称","未填写话术信息","话术信息超长, 需少于200字"],form:{label:"节点话术",addVar:"插入变量",nextStep:"下一步",choose:"选择执行的操作"},var:{title:"选择需要插入的变量",choose:"选择变量"}},conditionNode:{types:["用户意图","用户输入","流程变量"],compares:["等于","不等于","包含","用户输入超时"],nodeName:"条件节点",errors:["请输入条件名称","输入的条件名称重复","未填写节点名称","未设置条件分支"],newBranch:"添加分支",condName:"名称",condType:"条件类型",condTypePH:"请选择条件类型",comparedPH:"请选择被比较数据",compareTypePH:"请选择比较类型",targetPH:"请选择比较的值",andCond:'"与"条件',orCond:'添加"或"条件',newCond:"添加条件"},collectNode:{nodeName:"采集节点",cTypes:["用户输入","数字","自定义正则"],branches:["采集成功","采集失败"],errors:["未填写节点名称","未选择采集类型","未选择保存变量","未添加分支信息"],cTypeName:"采集类型",varName:"保存的变量",labels:["采集类型","请选择采集类型","自定义正则","赋值变量","请选择变量"]},gotoNode:{types:["结束对话","主流程","子流程","外部链接"],nodeName:"跳转节点",errors:["未填写节点名称","未选择跳转类型","未选择跳转的子流程","未填写跳转的外部链接"],briefs:["执行动作","结束流程","跳转到子流程","跳转到外部链接","跳转到主流程"],gotoType:"跳转类型",gotoTypePH:"请选择跳转类型",gotoMainFlow:"跳转的主流程",gotoMainFlowPH:"选择跳转的主流程",gotoSubFlow:"跳转的子流程",gotoSubFlowPH:"选择跳转的子流程",externalLink:"外部链接"},intent:{title:"意图管理",add:"新增意图",delConfirm:"确认要删除该意图吗?",table:["意图名","关键词数量","正则数量","相似问数量","操作"],form:{title:"新增意图",name:"意图名"},detail:{edit:"编辑意图",kw:"关键词",addKw:"新增关键词",re:"正则表达式",addRe:"新增正则",sp:"相似表达句子",addSp:"新增相似问"}},settings:{title:"配置管理",ipNote:"如果配置的IP地址错误导致应用启动失败, 请在启动是, 加上 -rs 来重置配置参数",prompt2:"应用端口",prompt2_2:"当指定端口被占用, 随机选择一个可用的端口",prompt3:"会话时长",prompt4:"分钟",note:"修改了IP地址, 端口或会话时长,需要重启应用才能生效",invalidIp:"设置的IP地址不正确"},var:{types:["字符串","数字"],sources:["外部导入","流程采集","远程HTTP接口(正式版)"],title:"变量管理",add:"新增变量",table:["变量名","变量类型","变量取值来源","操作"],form:{title:"流程变量",name:"变量名称",type:"变量类型",choose1:"请选择变量类型",source:"变量取值来源",choose2:"请选择变量取值来源"}},home:{title:"Dialog Flow 对话流程可视化编辑器",subTitle:"低代码流程应答系统",btn1:"立即使用",btn2:"查看文档",btn3:"查看演示Demo",dlTitle:"下载",dl1:"您可以从Github上下载到最新版",dl2:'如果您有任何意见或建议, 请发邮件到: dialogflow(AT)yeah.net 或者创建一个 帖子',introTitle:"这是什么软件?",intro1:"它类似 Google 的 Dialogflow, 但是多了一个流程画布编辑器,可以更好的设计流程. 它也像 Typebot, 但是多了一个完整的应答后端.",intro2:"它拥有一个可视化的流程编辑器, 编辑完成后,可以测试流程, 并最终发布流程.",intro3:"目前,它可以返回话术给用户,并采集用户输入,还可以通过条件判断,执行不同的节点.",intro4:"它很轻量。整个软件,包含了前端和后端,只有不到 6M 大小,非常易于分发和部署.",intro5:"你可以修改软件的监听端口,这样就可以在同一台服务器上,同时运行多个实例,解决不同的用户场景.",intro6:"它下载后,就可以直接使用,不用安装任何依赖。而且数据是存放在本地,可以保护数据营隐私.",midTitle:"我们的优势",adv1Title:"易用",adv1:"简便、直观的编辑界面。
人人都会使用
只需简单的鼠标拖拽和点击
就可以绘制出一个对话流程",demo:"演示",demo1:"电话催收",demo2:"用户信息收集",demo3:"一句话通知",demoUnvailableTitle:"演示在Github上不可用Demos are not available on Github",demoUnvailableContent:'由于目前没有服务器来托管后台.
但是可以下载该软件, 它包含了3个演示对话流程',adv2Title:"小巧、快速",adv2:"只有两个文件(程序和数据库),部署非常方便。
依托AoT编译技术
可提供超高的并发数和超快的响应",adv3Title:"解决各种问题",adv3:"使用不同的流程节点组合
满足不同场景业务需求
解决不同人群遇到的问题",adv4Title:"兼容性",adv4:"前端支持 Firefox、Chrome、Microsoft Edge、Safari、Opera 等主流浏览器

该应用支持部署在 Linux、Windows Server、macOS Server 等操作系统",adv5Title:"易于集成",adv5:"提供了基于HTTP协议的应答接口
还可以集成 FreeSwitch 以实现智能语言机器人",adv5Doc:"查看文档"},guide:{title1:"创建对话流程",nav1:"开始绘制",title2:"我们内置了“肯定”、“否定”意图。若不够,可自行添加",nav2:"意图管理",desc2:"意图,是指用户说的话,符合某种想法。",title3:"需要储存用户输入,或获取外部数据?",nav3:"创建变量",desc3:"变量用于保存一些不确定的数据,它用在流程的答案、条件判断里。",title4:"机器人设置",nav4:"修改配置",desc4:"修改监听端口、会话长度等",title5:"操作手册和对接文档",nav5:"查看文档",desc5:"了解如何通过画布,快速的构建出流程。了解如何通过代码,对接应答接口"}}},j4={lang:{common:{add:"Add",back:"Back",save:"Save",saved:"Successfully saved",cancel:"Cancel",edit:"Edit",del:"Delete",deleted:"Successfully deleted",insert:"Insert",nodeName:"Node name",else:"Otherwise",successTip:"Success",errTip:"Error",toDetail:"View detail"},err:{},mainflow:{title:"Dialog flow list",add:"Add a new dialog flow",table:["Dialog flow name","Enabled","Operations"],form:{title:"Add a new dialog flow",name:"Dialog flow name"},delConfirm:"Are you sure you want to delete this dialog flow?"},flow:{nodes:["DialogNode","ConditionNode","CollectNode","GotoNode"],nodesDesc:["Returns the dialog text to the user","Setting up conditions to control where the dialog flow goes","Capture user input and save it to a variable","Jumping between dialog flows, or to an external link"],title:"Compose dialog flow",steps:["First step: publish flows","Second step: testing"],save:"Save current sub-flow",pub:"Publish all sub-flows",test:"Testing dialog flow",addSubFlow:"Add sub-flow",form:{name:"Sub-flow name"},subFlowReleased:"Successfully released",needOne:"Keep at least one sub-flow",delConfirm:"Are you sure you want to delete this sub-flow?",send:"Send",reset:"Reset",changeSaveTip:"The flow has been modified, do you need to save it and switch?",guideReset:"The conversation is over, if you want to start over, please click the button below to restart"},dialogNode:{nodeName:"Dialog node",nextSteps:["Waiting for user response","Goto next node"],errors:["Node name not filled in","Text not filled in","Text was too long"],form:{label:"Text",addVar:"Insert a variable",nextStep:"Next step",choose:"Select the action to be performed"},var:{title:"Select a variable to be inserted",choose:"Select a variable"}},conditionNode:{types:["User intent","User input","Variable"],compares:["Equals","NotEquals","Contains","Timeout"],nodeName:"Condition node",errors:["Condition name not filled in","Duplicate condition name","Node name not filled in","Branches were missing"],newBranch:"Add a new branch",condName:"Name",condType:"Condition",condTypePH:"Select a condition type",comparedPH:"Select the data to be compared",compareTypePH:"Select the type of comparison",targetPH:"Select a value for comparison",andCond:'"AND" condition',orCond:'"OR" condition',newCond:"Conditions"},collectNode:{nodeName:"Collection node",cTypes:["User input","Number","Customize Regular Expression"],branches:["Successful","Failure"],errors:["Node name not filled in","Collection type not choosed","Saving variable not choosed","Branches were missing"],cTypeName:"Collection type",varName:"Assignment variable",labels:["Collection type","Choose a collection type","Customize Regular Expression","Assignment variable","Choose a variable"]},gotoNode:{types:["Conclusion of dialogues","Goto another flow","Goto sub-flow","External link"],nodeName:"Goto node",errors:["Node name not filled in","No goto type selected","Sub-flow not selected for jumping","No external link to fill in"],briefs:["Goto type","Conclusion of dialogues","Goto sub-flow","External link","Goto another dialog flow"],gotoType:"Goto type",gotoTypePH:"Select a goto type",gotoMainFlow:"Goto dialog flow",gotoMainFlowPH:"Select a go-to dialog flow",gotoSubFlow:"Goto sub-flow",gotoSubFlowPH:"Select a goto sub-flow",externalLink:"External link"},intent:{title:"Intent management",add:"Add new intent",delConfirm:"Are you sure you want to delete this intent?",table:["Name","Number of keywords","Number of regex","Number of similar sentences","Operations"],form:{title:"Add new intent",name:"Name"},detail:{edit:"Edit intent",kw:"Keywords",addKw:"Add keyword",re:"Regular expressions",addRe:"Add regex",sp:"Similar sentences",addSp:"Add sentence"}},settings:{title:"Settings",ipNote:"If the configured IP address is wrong and the application fails to start, please reset the configuration parameters by adding the startup parameter: -rs.",prompt2:"Listening port",prompt2_2:"When the set port is occupied, automatically randomly select other available ports",prompt3:"Max session idle",prompt4:"Minutes",note:"Modified IP address or ports require a reboot to take effect",invalidIp:"Incorrectly set IP address"},var:{types:["String","Number"],sources:["Import","Collect","External HTTP"],title:"Variables management",add:"Add new variable",table:["Name","Type","Source of variable value","Operations"],form:{title:"New Variable",name:"Name",type:"Type",choose1:"Please choose a type",source:"Value source",choose2:"Please choose a source"}},home:{title:"Dialog Flow Visual Editor and Responsing System",subTitle:"Low code dialog flow responsing system",btn1:"Getting Started",btn2:"View docs",btn3:"Try demos",dlTitle:"Download",dl1:"You can download the latest releases on Github",dl2:'If you have any issues or feedback, please email to: dialogflow(AT)yeah.net or create an issue',introTitle:"What is this?",intro1:"It's similar to Google's Dialogflow, but with an additional canvas for editing processes. It's also similar to Typebot, but it includes a full answering backend.",intro2:"It has a feature called flow canvas that allows you to visually edit a conversation flow, test it, and finally publish it to the public.",intro3:"Currently, it can return discourse to the user and capture user input, and can also execute different nodes through conditional judgment .",intro4:"It is very small. The entire software, including front-end and back-end, is less than 6M in size, very easy to distribute and deploy.",intro5:"You can modify the listening port of the software so that you can run multiple instances on the same server at the same time to handle different user scenarios.",intro6:"Once it is downloaded, it can be used directly without installing any dependencies. And the data is stored locally, which can protect the data camp privacy.",midTitle:"Advantages",adv1Title:"Easy to use",adv1:"Simple and intuitive.
Everybody can use it
Just few drag drop and clicks
A dialog flow can then be mapped out",demo:"Try Demos",demo1:"Notification of loan repayment",demo2:"Information collection",demo3:"Notification",demoUnvailableTitle:"Demos are not available on Github",demoUnvailableContent:'Since there is currently no server to host the backend.
But you can download this software and try these 3 demonstration dialog flows',adv2Title:"Tiny fast and portable",adv2:"Only ONE executable file (database is generated automatically)
pretty easy for deployment
Relying on AoT compilation technology
Program provides high concurrency and blazingly fast responses",adv3Title:"Deal with various issues",adv3:"Use different combinations of flow nodes
Meet the business requirements of different scenarios
Solve problems encountered by different groups of people",adv4Title:"Compatibilities",adv4:"Front-end support for Firefox, Chrome, Microsoft Edge, Safari, Opera
and other major browsers

The application supports deployment on Linux, Windows Server, macOS Server
and other operating systems.",adv5Title:"Easy to integrate",adv5:"Provides a response interface based on the HTTP protocol

FreeSwitch can also be integrated to enable intelligent speech robots",adv5Doc:"View docs"},guide:{title1:"Dialog flows",nav1:"Click here to create new dialog flow or edit existing flow",title2:"Intentions",nav2:"Intents management",desc2:"Intent, used to summarize user input, what purpose does it belong to.",title3:"Variables",nav3:"Variables management",desc3:"Variables are used to store user input, or external data from HTTP, which is used in the answer of the dialog flow, conditional judgment.",title4:"Robot settings",nav4:"Modify Configurations",desc4:"Modify the listening IP and port.",title5:"Operation manual and integration documentation",nav5:"View documents",desc5:"Understand how to quickly build a dialog flow through the canvas. Learn how to connect to the answering interface through code"}}},H4={zh:z4,en:j4},U4=((navigator.language?navigator.language:navigator.userLanguage)||"zh").toLowerCase(),W4=P4({fallbackLocale:"zh",globalInjection:!0,legacy:!1,locale:U4.split("-")[0]||"zh",messages:H4}),q4={__name:"App",setup(t){return(e,n)=>{const o=at("router-view");return _(),pe(o)}}},QT=Symbol(),zc="el",G4="is-",Ll=(t,e,n,o,r)=>{let s=`${t}-${e}`;return n&&(s+=`-${n}`),o&&(s+=`__${o}`),r&&(s+=`--${r}`),s},eO=Symbol("namespaceContextKey"),I0=t=>{const e=t||(gt()?Ve(eO,R(zc)):R(zc));return V(()=>x(e)||zc)},Fe=(t,e)=>{const n=I0(e);return{namespace:n,b:(g="")=>Ll(n.value,t,g,"",""),e:g=>g?Ll(n.value,t,"",g,""):"",m:g=>g?Ll(n.value,t,"","",g):"",be:(g,v)=>g&&v?Ll(n.value,t,g,v,""):"",em:(g,v)=>g&&v?Ll(n.value,t,"",g,v):"",bm:(g,v)=>g&&v?Ll(n.value,t,g,"",v):"",bem:(g,v,m)=>g&&v&&m?Ll(n.value,t,g,v,m):"",is:(g,...v)=>{const m=v.length>=1?v[0]:!0;return g&&m?`${G4}${g}`:""},cssVar:g=>{const v={};for(const m in g)g[m]&&(v[`--${n.value}-${m}`]=g[m]);return v},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const v={};for(const m in g)g[m]&&(v[`--${n.value}-${t}-${m}`]=g[m]);return v},cssVarBlockName:g=>`--${n.value}-${t}-${g}`}};var tO=typeof global=="object"&&global&&global.Object===Object&&global,K4=typeof self=="object"&&self&&self.Object===Object&&self,as=tO||K4||Function("return this")(),Mr=as.Symbol,nO=Object.prototype,J4=nO.hasOwnProperty,Y4=nO.toString,wc=Mr?Mr.toStringTag:void 0;function X4(t){var e=J4.call(t,wc),n=t[wc];try{t[wc]=void 0;var o=!0}catch{}var r=Y4.call(t);return o&&(e?t[wc]=n:delete t[wc]),r}var Z4=Object.prototype,Q4=Z4.toString;function e8(t){return Q4.call(t)}var t8="[object Null]",n8="[object Undefined]",Ww=Mr?Mr.toStringTag:void 0;function Cl(t){return t==null?t===void 0?n8:t8:Ww&&Ww in Object(t)?X4(t):e8(t)}function ts(t){return t!=null&&typeof t=="object"}var o8="[object Symbol]";function ks(t){return typeof t=="symbol"||ts(t)&&Cl(t)==o8}function jc(t,e){for(var n=-1,o=t==null?0:t.length,r=Array(o);++n0){if(++e>=P8)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function R8(t){return function(){return t}}var Jh=function(){try{var t=Oa(Object,"defineProperty");return t({},"",{}),t}catch{}}(),$8=Jh?function(t,e){return Jh(t,"toString",{configurable:!0,enumerable:!1,value:R8(e),writable:!0})}:ec,iO=L8($8);function D8(t,e){for(var n=-1,o=t==null?0:t.length;++n-1}var z8=9007199254740991,j8=/^(?:0|[1-9]\d*)$/;function tg(t,e){var n=typeof t;return e=e??z8,!!e&&(n=="number"||n!="symbol"&&j8.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=W8}function ka(t){return t!=null&&$0(t.length)&&!L0(t)}function Yh(t,e,n){if(!bn(n))return!1;var o=typeof e;return(o=="number"?ka(n)&&tg(e,n.length):o=="string"&&e in n)?tc(n[e],t):!1}function cO(t){return nc(function(e,n){var o=-1,r=n.length,s=r>1?n[r-1]:void 0,i=r>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(r--,s):void 0,i&&Yh(n[0],n[1],i)&&(s=r<3?void 0:s,r=1),e=Object(e);++o-1}function eV(t,e){var n=this.__data__,o=ig(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}function bi(t){var e=-1,n=t==null?0:t.length;for(this.clear();++er?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o=o?t:xV(t,e,n)}var EV="\\ud800-\\udfff",TV="\\u0300-\\u036f",OV="\\ufe20-\\ufe2f",kV="\\u20d0-\\u20ff",MV=TV+OV+kV,_V="\\ufe0e\\ufe0f",AV="\\u200d",PV=RegExp("["+AV+EV+MV+_V+"]");function bO(t){return PV.test(t)}function NV(t){return t.split("")}var yO="\\ud800-\\udfff",IV="\\u0300-\\u036f",LV="\\ufe20-\\ufe2f",RV="\\u20d0-\\u20ff",$V=IV+LV+RV,DV="\\ufe0e\\ufe0f",VV="["+yO+"]",Bv="["+$V+"]",Fv="\\ud83c[\\udffb-\\udfff]",BV="(?:"+Bv+"|"+Fv+")",wO="[^"+yO+"]",CO="(?:\\ud83c[\\udde6-\\uddff]){2}",xO="[\\ud800-\\udbff][\\udc00-\\udfff]",FV="\\u200d",SO=BV+"?",EO="["+DV+"]?",zV="(?:"+FV+"(?:"+[wO,CO,xO].join("|")+")"+EO+SO+")*",jV=EO+SO+zV,HV="(?:"+[wO+Bv+"?",Bv,CO,xO,VV].join("|")+")",UV=RegExp(Fv+"(?="+Fv+")|"+HV+jV,"g");function WV(t){return t.match(UV)||[]}function qV(t){return bO(t)?WV(t):NV(t)}function TO(t){return function(e){e=rf(e);var n=bO(e)?qV(e):void 0,o=n?n[0]:e.charAt(0),r=n?SV(n,1).join(""):e.slice(1);return o[t]()+r}}var Xh=TO("toUpperCase");function GV(t){return Xh(rf(t).toLowerCase())}function KV(t,e,n,o){for(var r=-1,s=t==null?0:t.length;++r=e?t:e)),t}function xr(t,e,n){return n===void 0&&(n=e,e=void 0),n!==void 0&&(n=Hc(n),n=n===n?n:0),e!==void 0&&(e=Hc(e),e=e===e?e:0),$5(Hc(t),e,n)}function D5(){this.__data__=new bi,this.size=0}function V5(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function B5(t){return this.__data__.get(t)}function F5(t){return this.__data__.has(t)}var z5=200;function j5(t,e){var n=this.__data__;if(n instanceof bi){var o=n.__data__;if(!Sd||o.lengthl))return!1;var u=s.get(t),c=s.get(e);if(u&&c)return u==e&&c==t;var d=-1,f=!0,h=n&bB?new yu:void 0;for(s.set(t,e),s.set(e,t);++d=e||O<0||d&&k>=s}function m(){var T=wm();if(v(T))return C(T);l=setTimeout(m,g(T))}function C(T){return l=void 0,f&&o?h(T):(o=r=void 0,i)}function y(){l!==void 0&&clearTimeout(l),u=0,o=a=r=l=void 0}function b(){return l===void 0?i:C(wm())}function S(){var T=wm(),O=v(T);if(o=arguments,r=this,a=T,O){if(l===void 0)return p(a);if(d)return clearTimeout(l),l=setTimeout(m,e),h(a)}return l===void 0&&(l=setTimeout(m,e)),i}return S.cancel=y,S.flush=b,S}var ok=Object.prototype,aF=ok.hasOwnProperty,uF=nc(function(t,e){t=Object(t);var n=-1,o=e.length,r=o>2?e[2]:void 0;for(r&&Yh(e[0],e[1],r)&&(o=1);++n=hF&&(s=H0,i=!1,e=new yu(e));e:for(;++re}var xF=Object.prototype,SF=xF.hasOwnProperty;function EF(t,e){return t!=null&&SF.call(t,e)}function Hf(t,e){return t!=null&&QO(t,e,EF)}var TF="[object Map]",OF="[object Set]",kF=Object.prototype,MF=kF.hasOwnProperty;function lk(t){if(t==null)return!0;if(ka(t)&&(Xn(t)||typeof t=="string"||typeof t.splice=="function"||vu(t)||sg(t)||mu(t)))return!t.length;var e=yr(t);if(e==TF||e==OF)return!t.size;if(og(t))return!mO(t).length;for(var n in t)if(MF.call(t,n))return!1;return!0}function Eo(t,e){return dg(t,e)}var _F="[object Number]";function TC(t){return typeof t=="number"||ts(t)&&Cl(t)==_F}function jo(t){return t==null}function ak(t){return t===void 0}var AF=TO("toLowerCase");function PF(t,e,n){for(var o=-1,r=t.length;++oe||s&&i&&a&&!l&&!u||o&&i&&a||!n&&a||!r)return 1;if(!o&&!s&&!u&&t=l)return a;var u=n[o];return a*(u=="desc"?-1:1)}}return t.index-e.index}function DF(t,e,n){e.length?e=jc(e,function(s){return Xn(s)?function(i){return ug(i,s.length===1?s[0]:s)}:s}):e=[ec];var o=-1;e=jc(e,rg(af));var r=ik(t,function(s,i,l){var a=jc(e,function(u){return u(s)});return{criteria:a,index:++o,value:s}});return LF(r,function(s,i){return $F(s,i,n)})}function VF(t,e){return IF(t,e,function(n,o){return ek(t,o)})}var ck=mV(function(t,e){return t==null?{}:VF(t,e)});function BF(t,e,n){return t==null?t:uk(t,e,n)}var FF=nc(function(t,e){if(t==null)return[];var n=e.length;return n>1&&Yh(t,e[0],e[1])?e=[]:n>2&&Yh(e[0],e[1],e[2])&&(e=[e[0]]),DF(t,lf(e),[])}),zF=4294967295,jF=zF-1,HF=Math.floor,UF=Math.min;function dk(t,e,n,o){var r=0,s=t==null?0:t.length;if(s===0)return 0;e=n(e);for(var i=e!==e,l=e===null,a=ks(e),u=e===void 0;r>>1;function GF(t,e,n){var o=0,r=t==null?o:t.length;if(typeof e=="number"&&e===e&&r<=qF){for(;o>>1,i=t[s];i!==null&&!ks(i)&&i=ez){var u=QF(t);if(u)return U0(u);i=!1,r=H0,a=new yu}else a=l;e:for(;++ot===void 0,Pn=t=>typeof t=="boolean",bt=t=>typeof t=="number",sr=t=>typeof Element>"u"?!1:t instanceof Element,Od=t=>jo(t),tz=t=>Ye(t)?!Number.isNaN(Number(t)):!1;var nz=Object.defineProperty,oz=Object.defineProperties,rz=Object.getOwnPropertyDescriptors,kC=Object.getOwnPropertySymbols,sz=Object.prototype.hasOwnProperty,iz=Object.prototype.propertyIsEnumerable,MC=(t,e,n)=>e in t?nz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lz=(t,e)=>{for(var n in e||(e={}))sz.call(e,n)&&MC(t,n,e[n]);if(kC)for(var n of kC(e))iz.call(e,n)&&MC(t,n,e[n]);return t},az=(t,e)=>oz(t,rz(e));function qv(t,e){var n;const o=rr();return Gr(()=>{o.value=t()},az(lz({},e),{flush:(n=void 0)!=null?n:"sync"})),Qd(o)}var _C;const Tt=typeof window<"u",uz=t=>typeof t<"u",cz=t=>typeof t=="function",dz=t=>typeof t=="string",Cu=()=>{},Gv=Tt&&((_C=window==null?void 0:window.navigator)==null?void 0:_C.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function xu(t){return typeof t=="function"?t():x(t)}function pk(t,e){function n(...o){return new Promise((r,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(s)})}return n}function fz(t,e={}){let n,o,r=Cu;const s=l=>{clearTimeout(l),r(),r=Cu};return l=>{const a=xu(t),u=xu(e.maxWait);return n&&s(n),a<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((c,d)=>{r=e.rejectOnCancel?d:c,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,c(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,c(l())},a)})}}function hz(t,e=!0,n=!0,o=!1){let r=0,s,i=!0,l=Cu,a;const u=()=>{s&&(clearTimeout(s),s=void 0,l(),l=Cu)};return d=>{const f=xu(t),h=Date.now()-r,p=()=>a=d();return u(),f<=0?(r=Date.now(),p()):(h>f&&(n||!i)?(r=Date.now(),p()):e&&(a=new Promise((g,v)=>{l=o?v:g,s=setTimeout(()=>{r=Date.now(),i=!0,g(p()),u()},Math.max(0,f-h))})),!n&&!s&&(s=setTimeout(()=>i=!0,f)),i=!1,a)}}function pz(t){return t}function uf(t){return oE()?(rE(t),!0):!1}function gz(t,e=200,n={}){return pk(fz(e,n),t)}function mz(t,e=200,n={}){const o=R(t.value),r=gz(()=>{o.value=t.value},e,n);return De(t,()=>r()),o}function vz(t,e=200,n=!1,o=!0,r=!1){return pk(hz(e,n,o,r),t)}function bz(t,e=!0){gt()?st(t):e?t():lt(t)}function Su(t,e,n={}){const{immediate:o=!0}=n,r=R(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){r.value=!1,i()}function a(...u){i(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,t(...u)},xu(e))}return o&&(r.value=!0,Tt&&a()),uf(l),{isPending:Qd(r),start:a,stop:l}}function ni(t){var e;const n=xu(t);return(e=n==null?void 0:n.$el)!=null?e:n}const cf=Tt?window:void 0,yz=Tt?window.document:void 0;function yn(...t){let e,n,o,r;if(dz(t[0])||Array.isArray(t[0])?([n,o,r]=t,e=cf):[e,n,o,r]=t,!e)return Cu;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(c=>c()),s.length=0},l=(c,d,f,h)=>(c.addEventListener(d,f,h),()=>c.removeEventListener(d,f,h)),a=De(()=>[ni(e),xu(r)],([c,d])=>{i(),c&&s.push(...n.flatMap(f=>o.map(h=>l(c,f,h,d))))},{immediate:!0,flush:"post"}),u=()=>{a(),i()};return uf(u),u}let AC=!1;function wz(t,e,n={}){const{window:o=cf,ignore:r=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return;Gv&&!AC&&(AC=!0,Array.from(o.document.body.children).forEach(f=>f.addEventListener("click",Cu)));let l=!0;const a=f=>r.some(h=>{if(typeof h=="string")return Array.from(o.document.querySelectorAll(h)).some(p=>p===f.target||f.composedPath().includes(p));{const p=ni(h);return p&&(f.target===p||f.composedPath().includes(p))}}),c=[yn(o,"click",f=>{const h=ni(t);if(!(!h||h===f.target||f.composedPath().includes(h))){if(f.detail===0&&(l=!a(f)),!l){l=!0;return}e(f)}},{passive:!0,capture:s}),yn(o,"pointerdown",f=>{const h=ni(t);h&&(l=!f.composedPath().includes(h)&&!a(f))},{passive:!0}),i&&yn(o,"blur",f=>{var h;const p=ni(t);((h=o.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&e(f)})].filter(Boolean);return()=>c.forEach(f=>f())}function gk(t,e=!1){const n=R(),o=()=>n.value=!!t();return o(),bz(o,e),n}function Cz(t){return JSON.parse(JSON.stringify(t))}const PC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},NC="__vueuse_ssr_handlers__";PC[NC]=PC[NC]||{};function xz({document:t=yz}={}){if(!t)return R("visible");const e=R(t.visibilityState);return yn(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var IC=Object.getOwnPropertySymbols,Sz=Object.prototype.hasOwnProperty,Ez=Object.prototype.propertyIsEnumerable,Tz=(t,e)=>{var n={};for(var o in t)Sz.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&IC)for(var o of IC(t))e.indexOf(o)<0&&Ez.call(t,o)&&(n[o]=t[o]);return n};function so(t,e,n={}){const o=n,{window:r=cf}=o,s=Tz(o,["window"]);let i;const l=gk(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=De(()=>ni(t),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(e),i.observe(d,s))},{immediate:!0,flush:"post"}),c=()=>{a(),u()};return uf(c),{isSupported:l,stop:c}}var LC=Object.getOwnPropertySymbols,Oz=Object.prototype.hasOwnProperty,kz=Object.prototype.propertyIsEnumerable,Mz=(t,e)=>{var n={};for(var o in t)Oz.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&LC)for(var o of LC(t))e.indexOf(o)<0&&kz.call(t,o)&&(n[o]=t[o]);return n};function _z(t,e,n={}){const o=n,{window:r=cf}=o,s=Mz(o,["window"]);let i;const l=gk(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=De(()=>ni(t),d=>{a(),l.value&&r&&d&&(i=new MutationObserver(e),i.observe(d,s))},{immediate:!0}),c=()=>{a(),u()};return uf(c),{isSupported:l,stop:c}}var RC;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(RC||(RC={}));var Az=Object.defineProperty,$C=Object.getOwnPropertySymbols,Pz=Object.prototype.hasOwnProperty,Nz=Object.prototype.propertyIsEnumerable,DC=(t,e,n)=>e in t?Az(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Iz=(t,e)=>{for(var n in e||(e={}))Pz.call(e,n)&&DC(t,n,e[n]);if($C)for(var n of $C(e))Nz.call(e,n)&&DC(t,n,e[n]);return t};const Lz={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Iz({linear:pz},Lz);function Rz(t,e,n,o={}){var r,s,i;const{clone:l=!1,passive:a=!1,eventName:u,deep:c=!1,defaultValue:d}=o,f=gt(),h=(f==null?void 0:f.emit)||((r=f==null?void 0:f.$emit)==null?void 0:r.bind(f))||((i=(s=f==null?void 0:f.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(f==null?void 0:f.proxy));let p=u;p=u||p||`update:${e.toString()}`;const g=m=>l?cz(l)?l(m):Cz(m):m,v=()=>uz(t[e])?g(t[e]):d;if(a){const m=v(),C=R(m);return De(()=>t[e],y=>C.value=g(y)),De(C,y=>{(y!==t[e]||c)&&h(p,y)},{deep:c}),C}else return V({get(){return v()},set(m){h(p,m)}})}function $z({window:t=cf}={}){if(!t)return R(!1);const e=R(t.document.hasFocus());return yn(t,"blur",()=>{e.value=!1}),yn(t,"focus",()=>{e.value=!0}),e}class Dz extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function Ro(t,e){throw new Dz(`[${t}] ${e}`)}const VC={current:0},BC=R(0),mk=2e3,FC=Symbol("elZIndexContextKey"),vk=Symbol("zIndexContextKey"),hg=t=>{const e=gt()?Ve(FC,VC):VC,n=t||(gt()?Ve(vk,void 0):void 0),o=V(()=>{const i=x(n);return bt(i)?i:mk}),r=V(()=>o.value+BC.value),s=()=>(e.current++,BC.value=e.current,r.value);return!Tt&&Ve(FC),{initialZIndex:o,currentZIndex:r,nextZIndex:s}};var Vz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Bz=t=>(e,n)=>Fz(e,n,x(t)),Fz=(t,e,n)=>jr(n,t,t).replace(/\{(\w+)\}/g,(o,r)=>{var s;return`${(s=e==null?void 0:e[r])!=null?s:`{${r}}`}`}),zz=t=>{const e=V(()=>x(t).name),n=Gt(t)?t:R(t);return{lang:e,locale:n,t:Bz(t)}},bk=Symbol("localeContextKey"),us=t=>{const e=t||Ve(bk,R());return zz(V(()=>e.value||Vz))},yk="__epPropKey",_e=t=>t,jz=t=>pt(t)&&!!t[yk],pg=(t,e)=>{if(!pt(t)||jz(t))return t;const{values:n,required:o,default:r,type:s,validator:i}=t,a={type:s,required:!!o,validator:n||i?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),kt(t,"default")&&d.push(r),c||(c=d.includes(u))),i&&(c||(c=i(u))),!c&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");J3(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[yk]:!0};return kt(t,"default")&&(a.default=r),a},tt=t=>Td(Object.entries(t).map(([e,n])=>[e,pg(n,e)])),Ma=["","default","small","large"],wi=pg({type:String,values:Ma,required:!1}),wk=Symbol("size"),Hz=()=>{const t=Ve(wk,{});return V(()=>x(t.size)||"")},Ck=Symbol("emptyValuesContextKey"),Uz=["",void 0,null],Wz=void 0,qz=tt({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Be(t)?!t():!t}}),Gz=(t,e)=>{const n=gt()?Ve(Ck,R({})):R({}),o=V(()=>t.emptyValues||n.value.emptyValues||Uz),r=V(()=>Be(t.valueOnClear)?t.valueOnClear():t.valueOnClear!==void 0?t.valueOnClear:Be(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:Wz),s=i=>o.value.includes(i);return o.value.includes(r.value),{emptyValues:o,valueOnClear:r,isEmptyValue:s}},ep=t=>Object.keys(t),Kz=t=>Object.entries(t),Sh=(t,e,n)=>({get value(){return jr(t,e,n)},set value(o){BF(t,e,o)}}),tp=R();function gg(t,e=void 0){const n=gt()?Ve(QT,tp):tp;return t?V(()=>{var o,r;return(r=(o=n.value)==null?void 0:o[t])!=null?r:e}):n}function mg(t,e){const n=gg(),o=Fe(t,V(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||zc})),r=us(V(()=>{var l;return(l=n.value)==null?void 0:l.locale})),s=hg(V(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||mk})),i=V(()=>{var l;return x(e)||((l=n.value)==null?void 0:l.size)||""});return Jz(V(()=>x(n)||{})),{ns:o,locale:r,zIndex:s,size:i}}const Jz=(t,e,n=!1)=>{var o;const r=!!gt(),s=r?gg():void 0,i=(o=void 0)!=null?o:r?Bt:void 0;if(!i)return;const l=V(()=>{const a=x(t);return s!=null&&s.value?Yz(s.value,a):a});return i(QT,l),i(bk,V(()=>l.value.locale)),i(eO,V(()=>l.value.namespace)),i(vk,V(()=>l.value.zIndex)),i(wk,{size:V(()=>l.value.size||"")}),i(Ck,V(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!tp.value)&&(tp.value=l.value),l},Yz=(t,e)=>{const n=[...new Set([...ep(t),...ep(e)])],o={};for(const r of n)o[r]=e[r]!==void 0?e[r]:t[r];return o},on="update:modelValue",df="change",Eh="input";var et=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n};const Xz=t=>Tt?window.requestAnimationFrame(t):setTimeout(t,16),xk=(t="")=>t.split(" ").filter(e=>!!e.trim()),Ji=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},Hr=(t,e)=>{!t||!e.trim()||t.classList.add(...xk(e))},ir=(t,e)=>{!t||!e.trim()||t.classList.remove(...xk(e))},Fl=(t,e)=>{var n;if(!Tt||!t||!e)return"";let o=lr(e);o==="float"&&(o="cssFloat");try{const r=t.style[o];if(r)return r;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return s?s[o]:""}catch{return t.style[o]}};function _r(t,e="px"){if(!t)return"";if(bt(t)||tz(t))return`${t}${e}`;if(Ye(t))return t}const Zz=(t,e)=>{if(!Tt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],o=Fl(t,n);return["scroll","auto","overlay"].some(r=>o.includes(r))},Qz=(t,e)=>{if(!Tt)return;let n=t;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Zz(n,e))return n;n=n.parentNode}return n};let Uf;const ej=t=>{var e;if(!Tt)return 0;if(Uf!==void 0)return Uf;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const s=r.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),Uf=o-s,Uf};function tj(t,e){if(!Tt)return;if(!e){t.scrollTop=0;return}const n=[];let o=e.offsetParent;for(;o!==null&&t!==o&&t.contains(o);)n.push(o),o=o.offsetParent;const r=e.offsetTop+n.reduce((a,u)=>a+u.offsetTop,0),s=r+e.offsetHeight,i=t.scrollTop,l=i+t.clientHeight;rl&&(t.scrollTop=s-t.clientHeight)}const $t=(t,e)=>{if(t.install=n=>{for(const o of[t,...Object.values(e??{})])n.component(o.name,o)},e)for(const[n,o]of Object.entries(e))t[n]=o;return t},Sk=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t},t),nj=(t,e)=>(t.install=n=>{n.directive(e,t)},t),po=t=>(t.install=Rt,t),oj=tt({size:{type:_e([Number,String])},color:{type:String}}),rj=ce({name:"ElIcon",inheritAttrs:!1}),sj=ce({...rj,props:oj,setup(t){const e=t,n=Fe("icon"),o=V(()=>{const{size:r,color:s}=e;return!r&&!s?{}:{fontSize:En(r)?void 0:_r(r),"--color":s}});return(r,s)=>(_(),G("i",ho({class:x(n).b(),style:x(o)},r.$attrs),[Se(r.$slots,"default")],16))}});var ij=et(sj,[["__file","icon.vue"]]);const rt=$t(ij);/*! Element Plus Icons Vue v2.3.1 */var lj=ce({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),vg=lj,aj=ce({name:"ArrowLeft",__name:"arrow-left",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Ek=aj,uj=ce({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),ff=uj,cj=ce({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Tk=cj,dj=ce({name:"Back",__name:"back",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),L("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),fj=dj,hj=ce({name:"Check",__name:"check",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Ok=hj,pj=ce({name:"CircleCheckFilled",__name:"circle-check-filled",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),gj=pj,mj=ce({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),L("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),W0=mj,vj=ce({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),q0=vj,bj=ce({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),bg=bj,yj=ce({name:"Close",__name:"close",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ci=yj,wj=ce({name:"Delete",__name:"delete",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Cj=wj,xj=ce({name:"Document",__name:"document",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Sj=xj,Ej=ce({name:"FullScreen",__name:"full-screen",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Tj=Ej,Oj=ce({name:"Hide",__name:"hide",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),L("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),kj=Oj,Mj=ce({name:"InfoFilled",__name:"info-filled",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),G0=Mj,_j=ce({name:"Loading",__name:"loading",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),kd=_j,Aj=ce({name:"Minus",__name:"minus",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Pj=Aj,Nj=ce({name:"More",__name:"more",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Ij=Nj,Lj=ce({name:"Plus",__name:"plus",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),kk=Lj,Rj=ce({name:"RefreshLeft",__name:"refresh-left",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),$j=Rj,Dj=ce({name:"RefreshRight",__name:"refresh-right",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Vj=Dj,Bj=ce({name:"ScaleToOriginal",__name:"scale-to-original",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Fj=Bj,zj=ce({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Mk=zj,jj=ce({name:"UploadFilled",__name:"upload-filled",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),Hj=jj,Uj=ce({name:"View",__name:"view",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Wj=Uj,qj=ce({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),yg=qj,Gj=ce({name:"ZoomIn",__name:"zoom-in",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),_k=Gj,Kj=ce({name:"ZoomOut",__name:"zoom-out",setup(t){return(e,n)=>(_(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Jj=Kj;const co=_e([String,Object,Function]),Ak={Close:ci},K0={Close:ci,SuccessFilled:Mk,InfoFilled:G0,WarningFilled:yg,CircleCloseFilled:q0},al={success:Mk,warning:yg,error:q0,info:G0},Pk={validating:kd,success:W0,error:bg},Yj=["light","dark"],Xj=tt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ep(al),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Yj,default:"light"}}),Zj={close:t=>t instanceof MouseEvent},Qj=ce({name:"ElAlert"}),eH=ce({...Qj,props:Xj,emits:Zj,setup(t,{emit:e}){const n=t,{Close:o}=K0,r=ls(),s=Fe("alert"),i=R(!0),l=V(()=>al[n.type]),a=V(()=>[s.e("icon"),{[s.is("big")]:!!n.description||!!r.default}]),u=V(()=>({"with-description":n.description||r.default})),c=d=>{i.value=!1,e("close",d)};return(d,f)=>(_(),pe(Go,{name:x(s).b("fade"),persisted:""},{default:E(()=>[$e(L("div",{class:Y([x(s).b(),x(s).m(d.type),x(s).is("center",d.center),x(s).is(d.effect)]),role:"alert"},[d.showIcon&&x(l)?(_(),pe(x(rt),{key:0,class:Y(x(a))},{default:E(()=>[(_(),pe(Ut(x(l))))]),_:1},8,["class"])):me("v-if",!0),L("div",{class:Y(x(s).e("content"))},[d.title||d.$slots.title?(_(),G("span",{key:0,class:Y([x(s).e("title"),x(u)])},[Se(d.$slots,"title",{},()=>[U(Q(d.title),1)])],2)):me("v-if",!0),d.$slots.default||d.description?(_(),G("p",{key:1,class:Y(x(s).e("description"))},[Se(d.$slots,"default",{},()=>[U(Q(d.description),1)])],2)):me("v-if",!0),d.closable?(_(),G(Le,{key:2},[d.closeText?(_(),G("div",{key:0,class:Y([x(s).e("close-btn"),x(s).is("customed")]),onClick:c},Q(d.closeText),3)):(_(),pe(x(rt),{key:1,class:Y(x(s).e("close-btn")),onClick:c},{default:E(()=>[w(x(o))]),_:1},8,["class"]))],64)):me("v-if",!0)],2)],2),[[qe,i.value]])]),_:3},8,["name"]))}});var tH=et(eH,[["__file","alert.vue"]]);const J0=$t(tH),Nk=()=>Tt&&/firefox/i.test(window.navigator.userAgent);let $r;const nH=` + height:0 !important; + visibility:hidden !important; + ${Nk()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,oH=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function rH(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),o=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),r=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:oH.map(i=>`${i}:${e.getPropertyValue(i)}`).join(";"),paddingSize:o,borderSize:r,boxSizing:n}}function zC(t,e=1,n){var o;$r||($r=document.createElement("textarea"),document.body.appendChild($r));const{paddingSize:r,borderSize:s,boxSizing:i,contextStyle:l}=rH(t);$r.setAttribute("style",`${l};${nH}`),$r.value=t.value||t.placeholder||"";let a=$r.scrollHeight;const u={};i==="border-box"?a=a+s:i==="content-box"&&(a=a-r),$r.value="";const c=$r.scrollHeight-r;if(bt(e)){let d=c*e;i==="border-box"&&(d=d+r+s),a=Math.max(d,a),u.minHeight=`${d}px`}if(bt(n)){let d=c*n;i==="border-box"&&(d=d+r+s),a=Math.min(d,a)}return u.height=`${a}px`,(o=$r.parentNode)==null||o.removeChild($r),$r=void 0,u}const Io=t=>t,sH=tt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Ci=t=>ck(sH,t),iH=tt({id:{type:String,default:void 0},size:wi,disabled:Boolean,modelValue:{type:_e([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:_e([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:co},prefixIcon:{type:co},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:_e([Object,Array,String]),default:()=>Io({})},autofocus:Boolean,rows:{type:Number,default:2},...Ci(["ariaLabel"])}),lH={[on]:t=>Ye(t),input:t=>Ye(t),change:t=>Ye(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},aH=["class","style"],uH=/^on[A-Z]/,Ik=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,o=V(()=>((n==null?void 0:n.value)||[]).concat(aH)),r=gt();return V(r?()=>{var s;return Td(Object.entries((s=r.proxy)==null?void 0:s.$attrs).filter(([i])=>!o.value.includes(i)&&!(e&&uH.test(i))))}:()=>({}))},rc=Symbol("formContextKey"),pa=Symbol("formItemContextKey"),jC={prefix:Math.floor(Math.random()*1e4),current:0},cH=Symbol("elIdInjection"),Lk=()=>gt()?Ve(cH,jC):jC,Ms=t=>{const e=Lk(),n=I0();return qv(()=>x(t)||`${n.value}-id-${e.prefix}-${e.current++}`)},xl=()=>{const t=Ve(rc,void 0),e=Ve(pa,void 0);return{form:t,formItem:e}},hf=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=R(!1)),o||(o=R(!1));const r=R();let s;const i=V(()=>{var l;return!!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((l=e.inputIds)==null?void 0:l.length)<=1)});return st(()=>{s=De([Qo(t,"id"),n],([l,a])=>{const u=l??(a?void 0:Ms().value);u!==r.value&&(e!=null&&e.removeInputId&&(r.value&&e.removeInputId(r.value),!(o!=null&&o.value)&&!a&&u&&e.addInputId(u)),r.value=u)},{immediate:!0})}),Rs(()=>{s&&s(),e!=null&&e.removeInputId&&r.value&&e.removeInputId(r.value)}),{isLabeledByFormItem:i,inputId:r}},Rk=t=>{const e=gt();return V(()=>{var n,o;return(o=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:o[t]})},Ar=(t,e={})=>{const n=R(void 0),o=e.prop?n:Rk("size"),r=e.global?n:Hz(),s=e.form?{size:void 0}:Ve(rc,void 0),i=e.formItem?{size:void 0}:Ve(pa,void 0);return V(()=>o.value||x(t)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||r.value||"")},Ds=t=>{const e=Rk("disabled"),n=Ve(rc,void 0);return V(()=>e.value||x(t)||(n==null?void 0:n.disabled)||!1)};function $k(t,{beforeFocus:e,afterFocus:n,beforeBlur:o,afterBlur:r}={}){const s=gt(),{emit:i}=s,l=rr(),a=R(!1),u=f=>{Be(e)&&e(f)||a.value||(a.value=!0,i("focus",f),n==null||n())},c=f=>{var h;Be(o)&&o(f)||f.relatedTarget&&((h=l.value)!=null&&h.contains(f.relatedTarget))||(a.value=!1,i("blur",f),r==null||r())},d=()=>{var f,h;(f=l.value)!=null&&f.contains(document.activeElement)&&l.value!==document.activeElement||(h=t.value)==null||h.focus()};return De(l,f=>{f&&f.setAttribute("tabindex","-1")}),yn(l,"focus",u,!0),yn(l,"blur",c,!0),yn(l,"click",d,!0),{isFocused:a,wrapperRef:l,handleFocus:u,handleBlur:c}}const dH=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t);function Dk({afterComposition:t,emit:e}){const n=R(!1),o=l=>{e==null||e("compositionstart",l),n.value=!0},r=l=>{var a;e==null||e("compositionupdate",l);const u=(a=l.target)==null?void 0:a.value,c=u[u.length-1]||"";n.value=!dH(c)},s=l=>{e==null||e("compositionend",l),n.value&&(n.value=!1,lt(()=>t(l)))};return{isComposing:n,handleComposition:l=>{l.type==="compositionend"?s(l):r(l)},handleCompositionStart:o,handleCompositionUpdate:r,handleCompositionEnd:s}}function fH(t){let e;function n(){if(t.value==null)return;const{selectionStart:r,selectionEnd:s,value:i}=t.value;if(r==null||s==null)return;const l=i.slice(0,Math.max(0,r)),a=i.slice(Math.max(0,s));e={selectionStart:r,selectionEnd:s,value:i,beforeTxt:l,afterTxt:a}}function o(){if(t.value==null||e==null)return;const{value:r}=t.value,{beforeTxt:s,afterTxt:i,selectionStart:l}=e;if(s==null||i==null||l==null)return;let a=r.length;if(r.endsWith(i))a=r.length-i.length;else if(r.startsWith(s))a=s.length;else{const u=s[l-1],c=r.indexOf(u,l-1);c!==-1&&(a=c+1)}t.value.setSelectionRange(a,a)}return[n,o]}const hH=ce({name:"ElInput",inheritAttrs:!1}),pH=ce({...hH,props:iH,emits:lH,setup(t,{expose:e,emit:n}){const o=t,r=HE(),s=Ik(),i=ls(),l=V(()=>[o.type==="textarea"?g.b():p.b(),p.m(f.value),p.is("disabled",h.value),p.is("exceed",se.value),{[p.b("group")]:i.prepend||i.append,[p.m("prefix")]:i.prefix||o.prefixIcon,[p.m("suffix")]:i.suffix||o.suffixIcon||o.clearable||o.showPassword,[p.bm("suffix","password-clear")]:j.value&&F.value,[p.b("hidden")]:o.type==="hidden"},r.class]),a=V(()=>[p.e("wrapper"),p.is("focus",k.value)]),{form:u,formItem:c}=xl(),{inputId:d}=hf(o,{formItemContext:c}),f=Ar(),h=Ds(),p=Fe("input"),g=Fe("textarea"),v=rr(),m=rr(),C=R(!1),y=R(!1),b=R(),S=rr(o.inputStyle),T=V(()=>v.value||m.value),{wrapperRef:O,isFocused:k,handleFocus:P,handleBlur:I}=$k(T,{beforeFocus(){return h.value},afterBlur(){var q;o.validateEvent&&((q=c==null?void 0:c.validate)==null||q.call(c,"blur").catch(ae=>void 0))}}),M=V(()=>{var q;return(q=u==null?void 0:u.statusIcon)!=null?q:!1}),D=V(()=>(c==null?void 0:c.validateState)||""),J=V(()=>D.value&&Pk[D.value]),oe=V(()=>y.value?Wj:kj),N=V(()=>[r.style]),A=V(()=>[o.inputStyle,S.value,{resize:o.resize}]),K=V(()=>jo(o.modelValue)?"":String(o.modelValue)),j=V(()=>o.clearable&&!h.value&&!o.readonly&&!!K.value&&(k.value||C.value)),F=V(()=>o.showPassword&&!h.value&&!!K.value&&(!!K.value||k.value)),le=V(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!h.value&&!o.readonly&&!o.showPassword),ue=V(()=>K.value.length),se=V(()=>!!le.value&&ue.value>Number(o.maxlength)),Ee=V(()=>!!i.suffix||!!o.suffixIcon||j.value||o.showPassword||le.value||!!D.value&&M.value),[fe,ve]=fH(v);so(m,q=>{if(ne(),!le.value||o.resize!=="both")return;const ae=q[0],{width:Ne}=ae.contentRect;b.value={right:`calc(100% - ${Ne+15+6}px)`}});const Oe=()=>{const{type:q,autosize:ae}=o;if(!(!Tt||q!=="textarea"||!m.value))if(ae){const Ne=pt(ae)?ae.minRows:void 0,We=pt(ae)?ae.maxRows:void 0,ct=zC(m.value,Ne,We);S.value={overflowY:"hidden",...ct},lt(()=>{m.value.offsetHeight,S.value=ct})}else S.value={minHeight:zC(m.value).minHeight}},ne=(q=>{let ae=!1;return()=>{var Ne;if(ae||!o.autosize)return;((Ne=m.value)==null?void 0:Ne.offsetParent)===null||(q(),ae=!0)}})(Oe),Z=()=>{const q=T.value,ae=o.formatter?o.formatter(K.value):K.value;!q||q.value===ae||(q.value=ae)},ye=async q=>{fe();let{value:ae}=q.target;if(o.formatter&&(ae=o.parser?o.parser(ae):ae),!Xe.value){if(ae===K.value){Z();return}n(on,ae),n("input",ae),await lt(),Z(),ve()}},ke=q=>{n("change",q.target.value)},{isComposing:Xe,handleCompositionStart:$,handleCompositionUpdate:W,handleCompositionEnd:re}=Dk({emit:n,afterComposition:ye}),be=()=>{fe(),y.value=!y.value,setTimeout(ve)},he=()=>{var q;return(q=T.value)==null?void 0:q.focus()},B=()=>{var q;return(q=T.value)==null?void 0:q.blur()},H=q=>{C.value=!1,n("mouseleave",q)},te=q=>{C.value=!0,n("mouseenter",q)},ie=q=>{n("keydown",q)},we=()=>{var q;(q=T.value)==null||q.select()},ge=()=>{n(on,""),n("change",""),n("clear"),n("input","")};return De(()=>o.modelValue,()=>{var q;lt(()=>Oe()),o.validateEvent&&((q=c==null?void 0:c.validate)==null||q.call(c,"change").catch(ae=>void 0))}),De(K,()=>Z()),De(()=>o.type,async()=>{await lt(),Z(),Oe()}),st(()=>{!o.formatter&&o.parser,Z(),lt(Oe)}),e({input:v,textarea:m,ref:T,textareaStyle:A,autosize:Qo(o,"autosize"),isComposing:Xe,focus:he,blur:B,select:we,clear:ge,resizeTextarea:Oe}),(q,ae)=>(_(),G("div",{class:Y([x(l),{[x(p).bm("group","append")]:q.$slots.append,[x(p).bm("group","prepend")]:q.$slots.prepend}]),style:ft(x(N)),onMouseenter:te,onMouseleave:H},[me(" input "),q.type!=="textarea"?(_(),G(Le,{key:0},[me(" prepend slot "),q.$slots.prepend?(_(),G("div",{key:0,class:Y(x(p).be("group","prepend"))},[Se(q.$slots,"prepend")],2)):me("v-if",!0),L("div",{ref_key:"wrapperRef",ref:O,class:Y(x(a))},[me(" prefix slot "),q.$slots.prefix||q.prefixIcon?(_(),G("span",{key:0,class:Y(x(p).e("prefix"))},[L("span",{class:Y(x(p).e("prefix-inner"))},[Se(q.$slots,"prefix"),q.prefixIcon?(_(),pe(x(rt),{key:0,class:Y(x(p).e("icon"))},{default:E(()=>[(_(),pe(Ut(q.prefixIcon)))]),_:1},8,["class"])):me("v-if",!0)],2)],2)):me("v-if",!0),L("input",ho({id:x(d),ref_key:"input",ref:v,class:x(p).e("inner")},x(s),{minlength:q.minlength,maxlength:q.maxlength,type:q.showPassword?y.value?"text":"password":q.type,disabled:x(h),readonly:q.readonly,autocomplete:q.autocomplete,tabindex:q.tabindex,"aria-label":q.ariaLabel,placeholder:q.placeholder,style:q.inputStyle,form:q.form,autofocus:q.autofocus,role:q.containerRole,onCompositionstart:x($),onCompositionupdate:x(W),onCompositionend:x(re),onInput:ye,onChange:ke,onKeydown:ie}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),me(" suffix slot "),x(Ee)?(_(),G("span",{key:1,class:Y(x(p).e("suffix"))},[L("span",{class:Y(x(p).e("suffix-inner"))},[!x(j)||!x(F)||!x(le)?(_(),G(Le,{key:0},[Se(q.$slots,"suffix"),q.suffixIcon?(_(),pe(x(rt),{key:0,class:Y(x(p).e("icon"))},{default:E(()=>[(_(),pe(Ut(q.suffixIcon)))]),_:1},8,["class"])):me("v-if",!0)],64)):me("v-if",!0),x(j)?(_(),pe(x(rt),{key:1,class:Y([x(p).e("icon"),x(p).e("clear")]),onMousedown:At(x(Rt),["prevent"]),onClick:ge},{default:E(()=>[w(x(bg))]),_:1},8,["class","onMousedown"])):me("v-if",!0),x(F)?(_(),pe(x(rt),{key:2,class:Y([x(p).e("icon"),x(p).e("password")]),onClick:be},{default:E(()=>[(_(),pe(Ut(x(oe))))]),_:1},8,["class"])):me("v-if",!0),x(le)?(_(),G("span",{key:3,class:Y(x(p).e("count"))},[L("span",{class:Y(x(p).e("count-inner"))},Q(x(ue))+" / "+Q(q.maxlength),3)],2)):me("v-if",!0),x(D)&&x(J)&&x(M)?(_(),pe(x(rt),{key:4,class:Y([x(p).e("icon"),x(p).e("validateIcon"),x(p).is("loading",x(D)==="validating")])},{default:E(()=>[(_(),pe(Ut(x(J))))]),_:1},8,["class"])):me("v-if",!0)],2)],2)):me("v-if",!0)],2),me(" append slot "),q.$slots.append?(_(),G("div",{key:1,class:Y(x(p).be("group","append"))},[Se(q.$slots,"append")],2)):me("v-if",!0)],64)):(_(),G(Le,{key:1},[me(" textarea "),L("textarea",ho({id:x(d),ref_key:"textarea",ref:m,class:[x(g).e("inner"),x(p).is("focus",x(k))]},x(s),{minlength:q.minlength,maxlength:q.maxlength,tabindex:q.tabindex,disabled:x(h),readonly:q.readonly,autocomplete:q.autocomplete,style:x(A),"aria-label":q.ariaLabel,placeholder:q.placeholder,form:q.form,autofocus:q.autofocus,rows:q.rows,role:q.containerRole,onCompositionstart:x($),onCompositionupdate:x(W),onCompositionend:x(re),onInput:ye,onFocus:x(P),onBlur:x(I),onChange:ke,onKeydown:ie}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),x(le)?(_(),G("span",{key:0,style:ft(b.value),class:Y(x(p).e("count"))},Q(x(ue))+" / "+Q(q.maxlength),7)):me("v-if",!0)],64))],38))}});var gH=et(pH,[["__file","input.vue"]]);const Cn=$t(gH),La=4,mH={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},vH=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),Y0=Symbol("scrollbarContextKey"),bH=tt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),yH="Thumb",wH=ce({__name:"thumb",props:bH,setup(t){const e=t,n=Ve(Y0),o=Fe("scrollbar");n||Ro(yH,"can not inject scrollbar context");const r=R(),s=R(),i=R({}),l=R(!1);let a=!1,u=!1,c=Tt?document.onselectstart:null;const d=V(()=>mH[e.vertical?"vertical":"horizontal"]),f=V(()=>vH({size:e.size,move:e.move,bar:d.value})),h=V(()=>r.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/e.ratio/s.value[d.value.offset]),p=T=>{var O;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(O=window.getSelection())==null||O.removeAllRanges(),v(T);const k=T.currentTarget;k&&(i.value[d.value.axis]=k[d.value.offset]-(T[d.value.client]-k.getBoundingClientRect()[d.value.direction]))},g=T=>{if(!s.value||!r.value||!n.wrapElement)return;const O=Math.abs(T.target.getBoundingClientRect()[d.value.direction]-T[d.value.client]),k=s.value[d.value.offset]/2,P=(O-k)*100*h.value/r.value[d.value.offset];n.wrapElement[d.value.scroll]=P*n.wrapElement[d.value.scrollSize]/100},v=T=>{T.stopImmediatePropagation(),a=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",C),c=document.onselectstart,document.onselectstart=()=>!1},m=T=>{if(!r.value||!s.value||a===!1)return;const O=i.value[d.value.axis];if(!O)return;const k=(r.value.getBoundingClientRect()[d.value.direction]-T[d.value.client])*-1,P=s.value[d.value.offset]-O,I=(k-P)*100*h.value/r.value[d.value.offset];n.wrapElement[d.value.scroll]=I*n.wrapElement[d.value.scrollSize]/100},C=()=>{a=!1,i.value[d.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",C),S(),u&&(l.value=!1)},y=()=>{u=!1,l.value=!!e.size},b=()=>{u=!0,l.value=a};un(()=>{S(),document.removeEventListener("mouseup",C)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return yn(Qo(n,"scrollbarElement"),"mousemove",y),yn(Qo(n,"scrollbarElement"),"mouseleave",b),(T,O)=>(_(),pe(Go,{name:x(o).b("fade"),persisted:""},{default:E(()=>[$e(L("div",{ref_key:"instance",ref:r,class:Y([x(o).e("bar"),x(o).is(x(d).key)]),onMousedown:g},[L("div",{ref_key:"thumb",ref:s,class:Y(x(o).e("thumb")),style:ft(x(f)),onMousedown:p},null,38)],34),[[qe,T.always||l.value]])]),_:1},8,["name"]))}});var HC=et(wH,[["__file","thumb.vue"]]);const CH=tt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),xH=ce({__name:"bar",props:CH,setup(t,{expose:e}){const n=t,o=Ve(Y0),r=R(0),s=R(0),i=R(""),l=R(""),a=R(1),u=R(1);return e({handleScroll:f=>{if(f){const h=f.offsetHeight-La,p=f.offsetWidth-La;s.value=f.scrollTop*100/h*a.value,r.value=f.scrollLeft*100/p*u.value}},update:()=>{const f=o==null?void 0:o.wrapElement;if(!f)return;const h=f.offsetHeight-La,p=f.offsetWidth-La,g=h**2/f.scrollHeight,v=p**2/f.scrollWidth,m=Math.max(g,n.minSize),C=Math.max(v,n.minSize);a.value=g/(h-g)/(m/(h-m)),u.value=v/(p-v)/(C/(p-C)),l.value=m+La(_(),G(Le,null,[w(HC,{move:r.value,ratio:u.value,size:i.value,always:f.always},null,8,["move","ratio","size","always"]),w(HC,{move:s.value,ratio:a.value,size:l.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var SH=et(xH,[["__file","bar.vue"]]);const EH=tt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:_e([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Ci(["ariaLabel","ariaOrientation"])}),TH={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(bt)},OH="ElScrollbar",kH=ce({name:OH}),MH=ce({...kH,props:EH,emits:TH,setup(t,{expose:e,emit:n}){const o=t,r=Fe("scrollbar");let s,i,l=0,a=0;const u=R(),c=R(),d=R(),f=R(),h=V(()=>{const S={};return o.height&&(S.height=_r(o.height)),o.maxHeight&&(S.maxHeight=_r(o.maxHeight)),[o.wrapStyle,S]}),p=V(()=>[o.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!o.native}]),g=V(()=>[r.e("view"),o.viewClass]),v=()=>{var S;c.value&&((S=f.value)==null||S.handleScroll(c.value),l=c.value.scrollTop,a=c.value.scrollLeft,n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function m(S,T){pt(S)?c.value.scrollTo(S):bt(S)&&bt(T)&&c.value.scrollTo(S,T)}const C=S=>{bt(S)&&(c.value.scrollTop=S)},y=S=>{bt(S)&&(c.value.scrollLeft=S)},b=()=>{var S;(S=f.value)==null||S.update()};return De(()=>o.noresize,S=>{S?(s==null||s(),i==null||i()):({stop:s}=so(d,b),i=yn("resize",b))},{immediate:!0}),De(()=>[o.maxHeight,o.height],()=>{o.native||lt(()=>{var S;b(),c.value&&((S=f.value)==null||S.handleScroll(c.value))})}),Bt(Y0,ut({scrollbarElement:u,wrapElement:c})),VE(()=>{c.value&&(c.value.scrollTop=l,c.value.scrollLeft=a)}),st(()=>{o.native||lt(()=>{b()})}),Sa(()=>b()),e({wrapRef:c,update:b,scrollTo:m,setScrollTop:C,setScrollLeft:y,handleScroll:v}),(S,T)=>(_(),G("div",{ref_key:"scrollbarRef",ref:u,class:Y(x(r).b())},[L("div",{ref_key:"wrapRef",ref:c,class:Y(x(p)),style:ft(x(h)),tabindex:S.tabindex,onScroll:v},[(_(),pe(Ut(S.tag),{id:S.id,ref_key:"resizeRef",ref:d,class:Y(x(g)),style:ft(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:E(()=>[Se(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),S.native?me("v-if",!0):(_(),pe(SH,{key:0,ref_key:"barRef",ref:f,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var _H=et(MH,[["__file","scrollbar.vue"]]);const wg=$t(_H),X0=Symbol("popper"),Vk=Symbol("popperContent"),AH=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Bk=tt({role:{type:String,values:AH,default:"tooltip"}}),PH=ce({name:"ElPopper",inheritAttrs:!1}),NH=ce({...PH,props:Bk,setup(t,{expose:e}){const n=t,o=R(),r=R(),s=R(),i=R(),l=V(()=>n.role),a={triggerRef:o,popperInstanceRef:r,contentRef:s,referenceRef:i,role:l};return e(a),Bt(X0,a),(u,c)=>Se(u.$slots,"default")}});var IH=et(NH,[["__file","popper.vue"]]);const Fk=tt({arrowOffset:{type:Number,default:5}}),LH=ce({name:"ElPopperArrow",inheritAttrs:!1}),RH=ce({...LH,props:Fk,setup(t,{expose:e}){const n=t,o=Fe("popper"),{arrowOffset:r,arrowRef:s,arrowStyle:i}=Ve(Vk,void 0);return De(()=>n.arrowOffset,l=>{r.value=l}),un(()=>{s.value=void 0}),e({arrowRef:s}),(l,a)=>(_(),G("span",{ref_key:"arrowRef",ref:s,class:Y(x(o).e("arrow")),style:ft(x(i)),"data-popper-arrow":""},null,6))}});var $H=et(RH,[["__file","arrow.vue"]]);const zk=tt({virtualRef:{type:_e(Object)},virtualTriggering:Boolean,onMouseenter:{type:_e(Function)},onMouseleave:{type:_e(Function)},onClick:{type:_e(Function)},onKeydown:{type:_e(Function)},onFocus:{type:_e(Function)},onBlur:{type:_e(Function)},onContextmenu:{type:_e(Function)},id:String,open:Boolean}),jk=Symbol("elForwardRef"),DH=t=>{Bt(jk,{setForwardRef:n=>{t.value=n}})},VH=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),BH='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',FH=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,UC=t=>Array.from(t.querySelectorAll(BH)).filter(e=>Kv(e)&&FH(e)),Kv=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.tabIndex<0||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true")return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Th=function(t,e,...n){let o;e.includes("mouse")||e.includes("click")?o="MouseEvents":e.includes("key")?o="KeyboardEvent":o="HTMLEvents";const r=document.createEvent(o);return r.initEvent(e,...n),t.dispatchEvent(r),t},zH="ElOnlyChild",jH=ce({name:zH,setup(t,{slots:e,attrs:n}){var o;const r=Ve(jk),s=VH((o=r==null?void 0:r.setForwardRef)!=null?o:Rt);return()=>{var i;const l=(i=e.default)==null?void 0:i.call(e,n);if(!l||l.length>1)return null;const a=Hk(l);return a?$e(ui(a,n),[[s]]):null}}});function Hk(t){if(!t)return null;const e=t;for(const n of e){if(pt(n))switch(n.type){case Un:continue;case Ea:case"svg":return WC(n);case Le:return Hk(n.children);default:return n}return WC(n)}return null}function WC(t){const e=Fe("only-child");return w("span",{class:e.e("content")},[t])}const HH=ce({name:"ElPopperTrigger",inheritAttrs:!1}),UH=ce({...HH,props:zk,setup(t,{expose:e}){const n=t,{role:o,triggerRef:r}=Ve(X0,void 0);DH(r);const s=V(()=>l.value?n.id:void 0),i=V(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=V(()=>{if(o&&o.value!=="tooltip")return o.value}),a=V(()=>l.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return st(()=>{De(()=>n.virtualRef,d=>{d&&(r.value=ni(d))},{immediate:!0}),De(r,(d,f)=>{u==null||u(),u=void 0,sr(d)&&(c.forEach(h=>{var p;const g=n[h];g&&(d.addEventListener(h.slice(2).toLowerCase(),g),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,h.slice(2).toLowerCase(),g))}),Kv(d)&&(u=De([s,i,l,a],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{jo(h[g])?d.removeAttribute(p):d.setAttribute(p,h[g])})},{immediate:!0}))),sr(f)&&Kv(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>f.removeAttribute(h))},{immediate:!0})}),un(()=>{if(u==null||u(),u=void 0,r.value&&sr(r.value)){const d=r.value;c.forEach(f=>{const h=n[f];h&&d.removeEventListener(f.slice(2).toLowerCase(),h)}),r.value=void 0}}),e({triggerRef:r}),(d,f)=>d.virtualTriggering?me("v-if",!0):(_(),pe(x(jH),ho({key:0},d.$attrs,{"aria-controls":x(s),"aria-describedby":x(i),"aria-expanded":x(a),"aria-haspopup":x(l)}),{default:E(()=>[Se(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var WH=et(UH,[["__file","trigger.vue"]]);const Cm="focus-trap.focus-after-trapped",xm="focus-trap.focus-after-released",qH="focus-trap.focusout-prevented",qC={cancelable:!0,bubbles:!1},GH={cancelable:!0,bubbles:!1},GC="focusAfterTrapped",KC="focusAfterReleased",Uk=Symbol("elFocusTrap"),Z0=R(),Cg=R(0),Q0=R(0);let Wf=0;const Wk=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},JC=(t,e)=>{for(const n of t)if(!KH(n,e))return n},KH=(t,e)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},JH=t=>{const e=Wk(t),n=JC(e,t),o=JC(e.reverse(),t);return[n,o]},YH=t=>t instanceof HTMLInputElement&&"select"in t,Ii=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),Q0.value=window.performance.now(),t!==n&&YH(t)&&e&&t.select()}};function YC(t,e){const n=[...t],o=t.indexOf(e);return o!==-1&&n.splice(o,1),n}const XH=()=>{let t=[];return{push:o=>{const r=t[0];r&&o!==r&&r.pause(),t=YC(t,o),t.unshift(o)},remove:o=>{var r,s;t=YC(t,o),(s=(r=t[0])==null?void 0:r.resume)==null||s.call(r)}}},ZH=(t,e=!1)=>{const n=document.activeElement;for(const o of t)if(Ii(o,e),document.activeElement!==n)return},XC=XH(),QH=()=>Cg.value>Q0.value,qf=()=>{Z0.value="pointer",Cg.value=window.performance.now()},ZC=()=>{Z0.value="keyboard",Cg.value=window.performance.now()},e7=()=>(st(()=>{Wf===0&&(document.addEventListener("mousedown",qf),document.addEventListener("touchstart",qf),document.addEventListener("keydown",ZC)),Wf++}),un(()=>{Wf--,Wf<=0&&(document.removeEventListener("mousedown",qf),document.removeEventListener("touchstart",qf),document.removeEventListener("keydown",ZC))}),{focusReason:Z0,lastUserFocusTimestamp:Cg,lastAutomatedFocusTimestamp:Q0}),Gf=t=>new CustomEvent(qH,{...GH,detail:t}),Nt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let Ua=[];const QC=t=>{t.code===Nt.esc&&Ua.forEach(e=>e(t))},t7=t=>{st(()=>{Ua.length===0&&document.addEventListener("keydown",QC),Tt&&Ua.push(t)}),un(()=>{Ua=Ua.filter(e=>e!==t),Ua.length===0&&Tt&&document.removeEventListener("keydown",QC)})},n7=ce({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[GC,KC,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=R();let o,r;const{focusReason:s}=e7();t7(p=>{t.trapped&&!i.paused&&e("release-requested",p)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=p=>{if(!t.loop&&!t.trapped||i.paused)return;const{code:g,altKey:v,ctrlKey:m,metaKey:C,currentTarget:y,shiftKey:b}=p,{loop:S}=t,T=g===Nt.tab&&!v&&!m&&!C,O=document.activeElement;if(T&&O){const k=y,[P,I]=JH(k);if(P&&I){if(!b&&O===I){const D=Gf({focusReason:s.value});e("focusout-prevented",D),D.defaultPrevented||(p.preventDefault(),S&&Ii(P,!0))}else if(b&&[P,k].includes(O)){const D=Gf({focusReason:s.value});e("focusout-prevented",D),D.defaultPrevented||(p.preventDefault(),S&&Ii(I,!0))}}else if(O===k){const D=Gf({focusReason:s.value});e("focusout-prevented",D),D.defaultPrevented||p.preventDefault()}}};Bt(Uk,{focusTrapRef:n,onKeydown:l}),De(()=>t.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),De([n],([p],[g])=>{p&&(p.addEventListener("keydown",l),p.addEventListener("focusin",c),p.addEventListener("focusout",d)),g&&(g.removeEventListener("keydown",l),g.removeEventListener("focusin",c),g.removeEventListener("focusout",d))});const a=p=>{e(GC,p)},u=p=>e(KC,p),c=p=>{const g=x(n);if(!g)return;const v=p.target,m=p.relatedTarget,C=v&&g.contains(v);t.trapped||m&&g.contains(m)||(o=m),C&&e("focusin",p),!i.paused&&t.trapped&&(C?r=v:Ii(r,!0))},d=p=>{const g=x(n);if(!(i.paused||!g))if(t.trapped){const v=p.relatedTarget;!jo(v)&&!g.contains(v)&&setTimeout(()=>{if(!i.paused&&t.trapped){const m=Gf({focusReason:s.value});e("focusout-prevented",m),m.defaultPrevented||Ii(r,!0)}},0)}else{const v=p.target;v&&g.contains(v)||e("focusout",p)}};async function f(){await lt();const p=x(n);if(p){XC.push(i);const g=p.contains(document.activeElement)?o:document.activeElement;if(o=g,!p.contains(g)){const m=new Event(Cm,qC);p.addEventListener(Cm,a),p.dispatchEvent(m),m.defaultPrevented||lt(()=>{let C=t.focusStartEl;Ye(C)||(Ii(C),document.activeElement!==C&&(C="first")),C==="first"&&ZH(Wk(p),!0),(document.activeElement===g||C==="container")&&Ii(p)})}}}function h(){const p=x(n);if(p){p.removeEventListener(Cm,a);const g=new CustomEvent(xm,{...qC,detail:{focusReason:s.value}});p.addEventListener(xm,u),p.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!QH()||p.contains(document.activeElement))&&Ii(o??document.body),p.removeEventListener(xm,u),XC.remove(i)}}return st(()=>{t.trapped&&f(),De(()=>t.trapped,p=>{p?f():h()})}),un(()=>{t.trapped&&h(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",d),n.value=void 0)}),{onKeydown:l}}});function o7(t,e,n,o,r,s){return Se(t.$slots,"default",{handleKeydown:t.onKeydown})}var pf=et(n7,[["render",o7],["__file","focus-trap.vue"]]),Ho="top",Pr="bottom",Nr="right",Uo="left",ey="auto",gf=[Ho,Pr,Nr,Uo],Eu="start",Md="end",r7="clippingParents",qk="viewport",Cc="popper",s7="reference",ex=gf.reduce(function(t,e){return t.concat([e+"-"+Eu,e+"-"+Md])},[]),xg=[].concat(gf,[ey]).reduce(function(t,e){return t.concat([e,e+"-"+Eu,e+"-"+Md])},[]),i7="beforeRead",l7="read",a7="afterRead",u7="beforeMain",c7="main",d7="afterMain",f7="beforeWrite",h7="write",p7="afterWrite",g7=[i7,l7,a7,u7,c7,d7,f7,h7,p7];function _s(t){return t?(t.nodeName||"").toLowerCase():null}function cs(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Tu(t){var e=cs(t).Element;return t instanceof e||t instanceof Element}function Or(t){var e=cs(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ty(t){if(typeof ShadowRoot>"u")return!1;var e=cs(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function m7(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Or(s)||!_s(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(i){var l=r[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function v7(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],s=e.attributes[o]||{},i=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=i.reduce(function(a,u){return a[u]="",a},{});!Or(r)||!_s(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(a){r.removeAttribute(a)}))})}}var ny={name:"applyStyles",enabled:!0,phase:"write",fn:m7,effect:v7,requires:["computeStyles"]};function Ts(t){return t.split("-")[0]}var ta=Math.max,np=Math.min,Ou=Math.round;function ku(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),o=1,r=1;if(Or(t)&&e){var s=t.offsetHeight,i=t.offsetWidth;i>0&&(o=Ou(n.width)/i||1),s>0&&(r=Ou(n.height)/s||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function oy(t){var e=ku(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Gk(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ty(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function di(t){return cs(t).getComputedStyle(t)}function b7(t){return["table","td","th"].indexOf(_s(t))>=0}function Sl(t){return((Tu(t)?t.ownerDocument:t.document)||window.document).documentElement}function Sg(t){return _s(t)==="html"?t:t.assignedSlot||t.parentNode||(ty(t)?t.host:null)||Sl(t)}function tx(t){return!Or(t)||di(t).position==="fixed"?null:t.offsetParent}function y7(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Or(t)){var o=di(t);if(o.position==="fixed")return null}var r=Sg(t);for(ty(r)&&(r=r.host);Or(r)&&["html","body"].indexOf(_s(r))<0;){var s=di(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function mf(t){for(var e=cs(t),n=tx(t);n&&b7(n)&&di(n).position==="static";)n=tx(n);return n&&(_s(n)==="html"||_s(n)==="body"&&di(n).position==="static")?e:n||y7(t)||e}function ry(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function qc(t,e,n){return ta(t,np(e,n))}function w7(t,e,n){var o=qc(t,e,n);return o>n?n:o}function Kk(){return{top:0,right:0,bottom:0,left:0}}function Jk(t){return Object.assign({},Kk(),t)}function Yk(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}var C7=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Jk(typeof t!="number"?t:Yk(t,gf))};function x7(t){var e,n=t.state,o=t.name,r=t.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ts(n.placement),a=ry(l),u=[Uo,Nr].indexOf(l)>=0,c=u?"height":"width";if(!(!s||!i)){var d=C7(r.padding,n),f=oy(s),h=a==="y"?Ho:Uo,p=a==="y"?Pr:Nr,g=n.rects.reference[c]+n.rects.reference[a]-i[a]-n.rects.popper[c],v=i[a]-n.rects.reference[a],m=mf(s),C=m?a==="y"?m.clientHeight||0:m.clientWidth||0:0,y=g/2-v/2,b=d[h],S=C-f[c]-d[p],T=C/2-f[c]/2+y,O=qc(b,T,S),k=a;n.modifiersData[o]=(e={},e[k]=O,e.centerOffset=O-T,e)}}function S7(t){var e=t.state,n=t.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||!Gk(e.elements.popper,r)||(e.elements.arrow=r))}var E7={name:"arrow",enabled:!0,phase:"main",fn:x7,effect:S7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mu(t){return t.split("-")[1]}var T7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O7(t){var e=t.x,n=t.y,o=window,r=o.devicePixelRatio||1;return{x:Ou(e*r)/r||0,y:Ou(n*r)/r||0}}function nx(t){var e,n=t.popper,o=t.popperRect,r=t.placement,s=t.variation,i=t.offsets,l=t.position,a=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,f=i.x,h=f===void 0?0:f,p=i.y,g=p===void 0?0:p,v=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),y=Uo,b=Ho,S=window;if(u){var T=mf(n),O="clientHeight",k="clientWidth";if(T===cs(n)&&(T=Sl(n),di(T).position!=="static"&&l==="absolute"&&(O="scrollHeight",k="scrollWidth")),T=T,r===Ho||(r===Uo||r===Nr)&&s===Md){b=Pr;var P=d&&T===S&&S.visualViewport?S.visualViewport.height:T[O];g-=P-o.height,g*=a?1:-1}if(r===Uo||(r===Ho||r===Pr)&&s===Md){y=Nr;var I=d&&T===S&&S.visualViewport?S.visualViewport.width:T[k];h-=I-o.width,h*=a?1:-1}}var M=Object.assign({position:l},u&&T7),D=c===!0?O7({x:h,y:g}):{x:h,y:g};if(h=D.x,g=D.y,a){var J;return Object.assign({},M,(J={},J[b]=C?"0":"",J[y]=m?"0":"",J.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",J))}return Object.assign({},M,(e={},e[b]=C?g+"px":"",e[y]=m?h+"px":"",e.transform="",e))}function k7(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:Ts(e.placement),variation:Mu(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,nx(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,nx(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Xk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k7,data:{}},Kf={passive:!0};function M7(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,i=o.resize,l=i===void 0?!0:i,a=cs(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,Kf)}),l&&a.addEventListener("resize",n.update,Kf),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Kf)}),l&&a.removeEventListener("resize",n.update,Kf)}}var Zk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M7,data:{}},_7={left:"right",right:"left",bottom:"top",top:"bottom"};function Oh(t){return t.replace(/left|right|bottom|top/g,function(e){return _7[e]})}var A7={start:"end",end:"start"};function ox(t){return t.replace(/start|end/g,function(e){return A7[e]})}function sy(t){var e=cs(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function iy(t){return ku(Sl(t)).left+sy(t).scrollLeft}function P7(t){var e=cs(t),n=Sl(t),o=e.visualViewport,r=n.clientWidth,s=n.clientHeight,i=0,l=0;return o&&(r=o.width,s=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=o.offsetLeft,l=o.offsetTop)),{width:r,height:s,x:i+iy(t),y:l}}function N7(t){var e,n=Sl(t),o=sy(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=ta(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=ta(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+iy(t),a=-o.scrollTop;return di(r||n).direction==="rtl"&&(l+=ta(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function ly(t){var e=di(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Qk(t){return["html","body","#document"].indexOf(_s(t))>=0?t.ownerDocument.body:Or(t)&&ly(t)?t:Qk(Sg(t))}function Gc(t,e){var n;e===void 0&&(e=[]);var o=Qk(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=cs(o),i=r?[s].concat(s.visualViewport||[],ly(o)?o:[]):o,l=e.concat(i);return r?l:l.concat(Gc(Sg(i)))}function Jv(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function I7(t){var e=ku(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function rx(t,e){return e===qk?Jv(P7(t)):Tu(e)?I7(e):Jv(N7(Sl(t)))}function L7(t){var e=Gc(Sg(t)),n=["absolute","fixed"].indexOf(di(t).position)>=0,o=n&&Or(t)?mf(t):t;return Tu(o)?e.filter(function(r){return Tu(r)&&Gk(r,o)&&_s(r)!=="body"}):[]}function R7(t,e,n){var o=e==="clippingParents"?L7(t):[].concat(e),r=[].concat(o,[n]),s=r[0],i=r.reduce(function(l,a){var u=rx(t,a);return l.top=ta(u.top,l.top),l.right=np(u.right,l.right),l.bottom=np(u.bottom,l.bottom),l.left=ta(u.left,l.left),l},rx(t,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function eM(t){var e=t.reference,n=t.element,o=t.placement,r=o?Ts(o):null,s=o?Mu(o):null,i=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,a;switch(r){case Ho:a={x:i,y:e.y-n.height};break;case Pr:a={x:i,y:e.y+e.height};break;case Nr:a={x:e.x+e.width,y:l};break;case Uo:a={x:e.x-n.width,y:l};break;default:a={x:e.x,y:e.y}}var u=r?ry(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Eu:a[u]=a[u]-(e[c]/2-n[c]/2);break;case Md:a[u]=a[u]+(e[c]/2-n[c]/2);break}}return a}function _d(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,s=n.boundary,i=s===void 0?r7:s,l=n.rootBoundary,a=l===void 0?qk:l,u=n.elementContext,c=u===void 0?Cc:u,d=n.altBoundary,f=d===void 0?!1:d,h=n.padding,p=h===void 0?0:h,g=Jk(typeof p!="number"?p:Yk(p,gf)),v=c===Cc?s7:Cc,m=t.rects.popper,C=t.elements[f?v:c],y=R7(Tu(C)?C:C.contextElement||Sl(t.elements.popper),i,a),b=ku(t.elements.reference),S=eM({reference:b,element:m,strategy:"absolute",placement:r}),T=Jv(Object.assign({},m,S)),O=c===Cc?T:b,k={top:y.top-O.top+g.top,bottom:O.bottom-y.bottom+g.bottom,left:y.left-O.left+g.left,right:O.right-y.right+g.right},P=t.modifiersData.offset;if(c===Cc&&P){var I=P[r];Object.keys(k).forEach(function(M){var D=[Nr,Pr].indexOf(M)>=0?1:-1,J=[Ho,Pr].indexOf(M)>=0?"y":"x";k[M]+=I[J]*D})}return k}function $7(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?xg:a,c=Mu(o),d=c?l?ex:ex.filter(function(p){return Mu(p)===c}):gf,f=d.filter(function(p){return u.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=_d(t,{placement:g,boundary:r,rootBoundary:s,padding:i})[Ts(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function D7(t){if(Ts(t)===ey)return[];var e=Oh(t);return[ox(t),e,ox(e)]}function V7(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,g=n.allowedAutoPlacements,v=e.options.placement,m=Ts(v),C=m===v,y=a||(C||!p?[Oh(v)]:D7(v)),b=[v].concat(y).reduce(function(fe,ve){return fe.concat(Ts(ve)===ey?$7(e,{placement:ve,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:g}):ve)},[]),S=e.rects.reference,T=e.rects.popper,O=new Map,k=!0,P=b[0],I=0;I=0,N=oe?"width":"height",A=_d(e,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),K=oe?J?Nr:Uo:J?Pr:Ho;S[N]>T[N]&&(K=Oh(K));var j=Oh(K),F=[];if(s&&F.push(A[D]<=0),l&&F.push(A[K]<=0,A[j]<=0),F.every(function(fe){return fe})){P=M,k=!1;break}O.set(M,F)}if(k)for(var le=p?3:1,ue=function(fe){var ve=b.find(function(Oe){var ee=O.get(Oe);if(ee)return ee.slice(0,fe).every(function(ne){return ne})});if(ve)return P=ve,"break"},se=le;se>0;se--){var Ee=ue(se);if(Ee==="break")break}e.placement!==P&&(e.modifiersData[o]._skip=!0,e.placement=P,e.reset=!0)}}var B7={name:"flip",enabled:!0,phase:"main",fn:V7,requiresIfExists:["offset"],data:{_skip:!1}};function sx(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ix(t){return[Ho,Nr,Pr,Uo].some(function(e){return t[e]>=0})}function F7(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,i=_d(e,{elementContext:"reference"}),l=_d(e,{altBoundary:!0}),a=sx(i,o),u=sx(l,r,s),c=ix(a),d=ix(u);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var z7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F7};function j7(t,e,n){var o=Ts(t),r=[Uo,Ho].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*r,[Uo,Nr].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}function H7(t){var e=t.state,n=t.options,o=t.name,r=n.offset,s=r===void 0?[0,0]:r,i=xg.reduce(function(c,d){return c[d]=j7(d,e.rects,s),c},{}),l=i[e.placement],a=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=u),e.modifiersData[o]=i}var U7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H7};function W7(t){var e=t.state,n=t.name;e.modifiersData[n]=eM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var tM={name:"popperOffsets",enabled:!0,phase:"read",fn:W7,data:{}};function q7(t){return t==="x"?"y":"x"}function G7(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,s=r===void 0?!0:r,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,g=p===void 0?0:p,v=_d(e,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),m=Ts(e.placement),C=Mu(e.placement),y=!C,b=ry(m),S=q7(b),T=e.modifiersData.popperOffsets,O=e.rects.reference,k=e.rects.popper,P=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,I=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(T){if(s){var J,oe=b==="y"?Ho:Uo,N=b==="y"?Pr:Nr,A=b==="y"?"height":"width",K=T[b],j=K+v[oe],F=K-v[N],le=h?-k[A]/2:0,ue=C===Eu?O[A]:k[A],se=C===Eu?-k[A]:-O[A],Ee=e.elements.arrow,fe=h&&Ee?oy(Ee):{width:0,height:0},ve=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Kk(),Oe=ve[oe],ee=ve[N],ne=qc(0,O[A],fe[A]),Z=y?O[A]/2-le-ne-Oe-I.mainAxis:ue-ne-Oe-I.mainAxis,ye=y?-O[A]/2+le+ne+ee+I.mainAxis:se+ne+ee+I.mainAxis,ke=e.elements.arrow&&mf(e.elements.arrow),Xe=ke?b==="y"?ke.clientTop||0:ke.clientLeft||0:0,$=(J=M==null?void 0:M[b])!=null?J:0,W=K+Z-$-Xe,re=K+ye-$,be=qc(h?np(j,W):j,K,h?ta(F,re):F);T[b]=be,D[b]=be-K}if(l){var he,B=b==="x"?Ho:Uo,H=b==="x"?Pr:Nr,te=T[S],ie=S==="y"?"height":"width",we=te+v[B],ge=te-v[H],q=[Ho,Uo].indexOf(m)!==-1,ae=(he=M==null?void 0:M[S])!=null?he:0,Ne=q?we:te-O[ie]-k[ie]-ae+I.altAxis,We=q?te+O[ie]+k[ie]-ae-I.altAxis:ge,ct=h&&q?w7(Ne,te,We):qc(h?Ne:we,te,h?We:ge);T[S]=ct,D[S]=ct-te}e.modifiersData[o]=D}}var K7={name:"preventOverflow",enabled:!0,phase:"main",fn:G7,requiresIfExists:["offset"]};function J7(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Y7(t){return t===cs(t)||!Or(t)?sy(t):J7(t)}function X7(t){var e=t.getBoundingClientRect(),n=Ou(e.width)/t.offsetWidth||1,o=Ou(e.height)/t.offsetHeight||1;return n!==1||o!==1}function Z7(t,e,n){n===void 0&&(n=!1);var o=Or(e),r=Or(e)&&X7(e),s=Sl(e),i=ku(t,r),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!n)&&((_s(e)!=="body"||ly(s))&&(l=Y7(e)),Or(e)?(a=ku(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):s&&(a.x=iy(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Q7(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function r(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var a=e.get(l);a&&r(a)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||r(s)}),o}function e9(t){var e=Q7(t);return g7.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function t9(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function n9(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}var lx={placement:"bottom",modifiers:[],strategy:"absolute"};function ax(){for(var t=arguments.length,e=new Array(t),n=0;n({})},strategy:{type:String,values:s9,default:"absolute"}}),oM=tt({...i9,id:String,style:{type:_e([String,Array,Object])},className:{type:_e([String,Array,Object])},effect:{type:_e(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:_e([String,Array,Object])},popperStyle:{type:_e([String,Array,Object])},referenceEl:{type:_e(Object)},triggerTargetEl:{type:_e(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Ci(["ariaLabel"])}),l9={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},a9=(t,e)=>{const n=R(!1),o=R();return{focusStartRef:o,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(o.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(o.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},u9=(t,e=[])=>{const{placement:n,strategy:o,popperOptions:r}=t,s={placement:n,strategy:o,...r,modifiers:[...d9(t),...e]};return f9(s,r==null?void 0:r.modifiers),s},c9=t=>{if(Tt)return ni(t)};function d9(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:o}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function f9(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const h9=(t,e,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:a})=>{const u=p9(a);Object.assign(i.value,u)},requires:["computeStyles"]},r=V(()=>{const{onFirstUpdate:a,placement:u,strategy:c,modifiers:d}=x(n);return{onFirstUpdate:a,placement:u||"bottom",strategy:c||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),s=rr(),i=R({styles:{popper:{position:x(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return De(r,a=>{const u=x(s);u&&u.setOptions(a)},{deep:!0}),De([t,e],([a,u])=>{l(),!(!a||!u)&&(s.value=nM(a,u,x(r)))}),un(()=>{l()}),{state:V(()=>{var a;return{...((a=x(s))==null?void 0:a.state)||{}}}),styles:V(()=>x(i).styles),attributes:V(()=>x(i).attributes),update:()=>{var a;return(a=x(s))==null?void 0:a.update()},forceUpdate:()=>{var a;return(a=x(s))==null?void 0:a.forceUpdate()},instanceRef:V(()=>x(s))}};function p9(t){const e=Object.keys(t.elements),n=Td(e.map(r=>[r,t.styles[r]||{}])),o=Td(e.map(r=>[r,t.attributes[r]]));return{styles:n,attributes:o}}const g9=0,m9=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:o,role:r}=Ve(X0,void 0),s=R(),i=R(),l=V(()=>({name:"eventListeners",enabled:!!t.visible})),a=V(()=>{var m;const C=x(s),y=(m=x(i))!=null?m:g9;return{name:"arrow",enabled:!ak(C),options:{element:C,padding:y}}}),u=V(()=>({onFirstUpdate:()=>{p()},...u9(t,[x(a),x(l)])})),c=V(()=>c9(t.referenceEl)||x(o)),{attributes:d,state:f,styles:h,update:p,forceUpdate:g,instanceRef:v}=h9(c,n,u);return De(v,m=>e.value=m),st(()=>{De(()=>{var m;return(m=x(c))==null?void 0:m.getBoundingClientRect()},()=>{p()})}),{attributes:d,arrowRef:s,contentRef:n,instanceRef:v,state:f,styles:h,role:r,forceUpdate:g,update:p}},v9=(t,{attributes:e,styles:n,role:o})=>{const{nextZIndex:r}=hg(),s=Fe("popper"),i=V(()=>x(e).popper),l=R(bt(t.zIndex)?t.zIndex:r()),a=V(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),u=V(()=>[{zIndex:x(l)},x(n).popper,t.popperStyle||{}]),c=V(()=>o.value==="dialog"?"false":void 0),d=V(()=>x(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:i,contentClass:a,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=bt(t.zIndex)?t.zIndex:r()}}},b9=ce({name:"ElPopperContent"}),y9=ce({...b9,props:oM,emits:l9,setup(t,{expose:e,emit:n}){const o=t,{focusStartRef:r,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:a,onFocusoutPrevented:u,onReleaseRequested:c}=a9(o,n),{attributes:d,arrowRef:f,contentRef:h,styles:p,instanceRef:g,role:v,update:m}=m9(o),{ariaModal:C,arrowStyle:y,contentAttrs:b,contentClass:S,contentStyle:T,updateZIndex:O}=v9(o,{styles:p,attributes:d,role:v}),k=Ve(pa,void 0),P=R();Bt(Vk,{arrowStyle:y,arrowRef:f,arrowOffset:P}),k&&Bt(pa,{...k,addInputId:Rt,removeInputId:Rt});let I;const M=(J=!0)=>{m(),J&&O()},D=()=>{M(!1),o.visible&&o.focusOnShow?s.value=!0:o.visible===!1&&(s.value=!1)};return st(()=>{De(()=>o.triggerTargetEl,(J,oe)=>{I==null||I(),I=void 0;const N=x(J||h.value),A=x(oe||h.value);sr(N)&&(I=De([v,()=>o.ariaLabel,C,()=>o.id],K=>{["role","aria-label","aria-modal","id"].forEach((j,F)=>{jo(K[F])?N.removeAttribute(j):N.setAttribute(j,K[F])})},{immediate:!0})),A!==N&&sr(A)&&["role","aria-label","aria-modal","id"].forEach(K=>{A.removeAttribute(K)})},{immediate:!0}),De(()=>o.visible,D,{immediate:!0})}),un(()=>{I==null||I(),I=void 0}),e({popperContentRef:h,popperInstanceRef:g,updatePopper:M,contentStyle:T}),(J,oe)=>(_(),G("div",ho({ref_key:"contentRef",ref:h},x(b),{style:x(T),class:x(S),tabindex:"-1",onMouseenter:N=>J.$emit("mouseenter",N),onMouseleave:N=>J.$emit("mouseleave",N)}),[w(x(pf),{trapped:x(s),"trap-on-focus-in":!0,"focus-trap-el":x(h),"focus-start-el":x(r),onFocusAfterTrapped:x(l),onFocusAfterReleased:x(i),onFocusin:x(a),onFocusoutPrevented:x(u),onReleaseRequested:x(c)},{default:E(()=>[Se(J.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var w9=et(y9,[["__file","content.vue"]]);const C9=$t(IH),uy=Symbol("elTooltip");function ux(){let t;const e=(o,r)=>{n(),t=window.setTimeout(o,r)},n=()=>window.clearTimeout(t);return uf(()=>n()),{registerTimeout:e,cancelTimeout:n}}const x9=tt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),S9=({showAfter:t,hideAfter:e,autoClose:n,open:o,close:r})=>{const{registerTimeout:s}=ux(),{registerTimeout:i,cancelTimeout:l}=ux();return{onOpen:c=>{s(()=>{o(c);const d=x(n);bt(d)&&d>0&&i(()=>{r(c)},d)},x(t))},onClose:c=>{l(),s(()=>{r(c)},x(e))}}},Xo=tt({...x9,...oM,appendTo:{type:_e([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:_e(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Ci(["ariaLabel"])}),Ad=tt({...zk,disabled:Boolean,trigger:{type:_e([String,Array]),default:"hover"},triggerKeys:{type:_e(Array),default:()=>[Nt.enter,Nt.numpadEnter,Nt.space]}}),E9=pg({type:_e(Boolean),default:null}),T9=pg({type:_e(Function)}),O9=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,o=[e],r={[t]:E9,[n]:T9};return{useModelToggle:({indicator:i,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:u,onShow:c,onHide:d})=>{const f=gt(),{emit:h}=f,p=f.props,g=V(()=>Be(p[n])),v=V(()=>p[t]===null),m=O=>{i.value!==!0&&(i.value=!0,l&&(l.value=O),Be(c)&&c(O))},C=O=>{i.value!==!1&&(i.value=!1,l&&(l.value=O),Be(d)&&d(O))},y=O=>{if(p.disabled===!0||Be(u)&&!u())return;const k=g.value&&Tt;k&&h(e,!0),(v.value||!k)&&m(O)},b=O=>{if(p.disabled===!0||!Tt)return;const k=g.value&&Tt;k&&h(e,!1),(v.value||!k)&&C(O)},S=O=>{Pn(O)&&(p.disabled&&O?g.value&&h(e,!1):i.value!==O&&(O?m():C()))},T=()=>{i.value?b():y()};return De(()=>p[t],S),a&&f.appContext.config.globalProperties.$route!==void 0&&De(()=>({...f.proxy.$route}),()=>{a.value&&i.value&&b()}),st(()=>{S(p[t])}),{hide:b,show:y,toggle:T,hasUpdateHandler:g}},useModelToggleProps:r,useModelToggleEmits:o}},{useModelToggleProps:k9,useModelToggleEmits:M9,useModelToggle:_9}=O9("visible"),A9=tt({...Bk,...k9,...Xo,...Ad,...Fk,showArrow:{type:Boolean,default:!0}}),P9=[...M9,"before-show","before-hide","show","hide","open","close"],N9=(t,e)=>Pe(t)?t.includes(e):t===e,Ra=(t,e,n)=>o=>{N9(x(t),e)&&n(o)},Js=(t,e,{checkForDefaultPrevented:n=!0}={})=>r=>{const s=t==null?void 0:t(r);if(n===!1||!s)return e==null?void 0:e(r)},I9=ce({name:"ElTooltipTrigger"}),L9=ce({...I9,props:Ad,setup(t,{expose:e}){const n=t,o=Fe("tooltip"),{controlled:r,id:s,open:i,onOpen:l,onClose:a,onToggle:u}=Ve(uy,void 0),c=R(null),d=()=>{if(x(r)||n.disabled)return!0},f=Qo(n,"trigger"),h=Js(d,Ra(f,"hover",l)),p=Js(d,Ra(f,"hover",a)),g=Js(d,Ra(f,"click",b=>{b.button===0&&u(b)})),v=Js(d,Ra(f,"focus",l)),m=Js(d,Ra(f,"focus",a)),C=Js(d,Ra(f,"contextmenu",b=>{b.preventDefault(),u(b)})),y=Js(d,b=>{const{code:S}=b;n.triggerKeys.includes(S)&&(b.preventDefault(),u(b))});return e({triggerRef:c}),(b,S)=>(_(),pe(x(WH),{id:x(s),"virtual-ref":b.virtualRef,open:x(i),"virtual-triggering":b.virtualTriggering,class:Y(x(o).e("trigger")),onBlur:x(m),onClick:x(g),onContextmenu:x(C),onFocus:x(v),onMouseenter:x(h),onMouseleave:x(p),onKeydown:x(y)},{default:E(()=>[Se(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var R9=et(L9,[["__file","trigger.vue"]]);const $9=tt({to:{type:_e([String,Object]),required:!0},disabled:Boolean}),D9=ce({__name:"teleport",props:$9,setup(t){return(e,n)=>e.disabled?Se(e.$slots,"default",{key:0}):(_(),pe(AE,{key:1,to:e.to},[Se(e.$slots,"default")],8,["to"]))}});var V9=et(D9,[["__file","teleport.vue"]]);const Eg=$t(V9),rM=()=>{const t=I0(),e=Lk(),n=V(()=>`${t.value}-popper-container-${e.prefix}`),o=V(()=>`#${n.value}`);return{id:n,selector:o}},B9=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},F9=()=>{const{id:t,selector:e}=rM();return Gp(()=>{Tt&&(document.body.querySelector(e.value)||B9(t.value))}),{id:t,selector:e}},z9=ce({name:"ElTooltipContent",inheritAttrs:!1}),j9=ce({...z9,props:Xo,setup(t,{expose:e}){const n=t,{selector:o}=rM(),r=Fe("tooltip"),s=R();let i;const{controlled:l,id:a,open:u,trigger:c,onClose:d,onOpen:f,onShow:h,onHide:p,onBeforeShow:g,onBeforeHide:v}=Ve(uy,void 0),m=V(()=>n.transition||`${r.namespace.value}-fade-in-linear`),C=V(()=>n.persistent);un(()=>{i==null||i()});const y=V(()=>x(C)?!0:x(u)),b=V(()=>n.disabled?!1:x(u)),S=V(()=>n.appendTo||o.value),T=V(()=>{var A;return(A=n.style)!=null?A:{}}),O=R(!0),k=()=>{p(),O.value=!0},P=()=>{if(x(l))return!0},I=Js(P,()=>{n.enterable&&x(c)==="hover"&&f()}),M=Js(P,()=>{x(c)==="hover"&&d()}),D=()=>{var A,K;(K=(A=s.value)==null?void 0:A.updatePopper)==null||K.call(A),g==null||g()},J=()=>{v==null||v()},oe=()=>{h(),i=wz(V(()=>{var A;return(A=s.value)==null?void 0:A.popperContentRef}),()=>{if(x(l))return;x(c)!=="hover"&&d()})},N=()=>{n.virtualTriggering||d()};return De(()=>x(u),A=>{A?O.value=!1:i==null||i()},{flush:"post"}),De(()=>n.content,()=>{var A,K;(K=(A=s.value)==null?void 0:A.updatePopper)==null||K.call(A)}),e({contentRef:s}),(A,K)=>(_(),pe(x(Eg),{disabled:!A.teleported,to:x(S)},{default:E(()=>[w(Go,{name:x(m),onAfterLeave:k,onBeforeEnter:D,onAfterEnter:oe,onBeforeLeave:J},{default:E(()=>[x(y)?$e((_(),pe(x(w9),ho({key:0,id:x(a),ref_key:"contentRef",ref:s},A.$attrs,{"aria-label":A.ariaLabel,"aria-hidden":O.value,"boundaries-padding":A.boundariesPadding,"fallback-placements":A.fallbackPlacements,"gpu-acceleration":A.gpuAcceleration,offset:A.offset,placement:A.placement,"popper-options":A.popperOptions,strategy:A.strategy,effect:A.effect,enterable:A.enterable,pure:A.pure,"popper-class":A.popperClass,"popper-style":[A.popperStyle,x(T)],"reference-el":A.referenceEl,"trigger-target-el":A.triggerTargetEl,visible:x(b),"z-index":A.zIndex,onMouseenter:x(I),onMouseleave:x(M),onBlur:N,onClose:x(d)}),{default:E(()=>[Se(A.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[qe,x(b)]]):me("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var H9=et(j9,[["__file","content.vue"]]);const U9=ce({name:"ElTooltip"}),W9=ce({...U9,props:A9,emits:P9,setup(t,{expose:e,emit:n}){const o=t;F9();const r=Ms(),s=R(),i=R(),l=()=>{var m;const C=x(s);C&&((m=C.popperInstanceRef)==null||m.update())},a=R(!1),u=R(),{show:c,hide:d,hasUpdateHandler:f}=_9({indicator:a,toggleReason:u}),{onOpen:h,onClose:p}=S9({showAfter:Qo(o,"showAfter"),hideAfter:Qo(o,"hideAfter"),autoClose:Qo(o,"autoClose"),open:c,close:d}),g=V(()=>Pn(o.visible)&&!f.value);Bt(uy,{controlled:g,id:r,open:Qd(a),trigger:Qo(o,"trigger"),onOpen:m=>{h(m)},onClose:m=>{p(m)},onToggle:m=>{x(a)?p(m):h(m)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:l}),De(()=>o.disabled,m=>{m&&a.value&&(a.value=!1)});const v=m=>{var C,y;const b=(y=(C=i.value)==null?void 0:C.contentRef)==null?void 0:y.popperContentRef,S=(m==null?void 0:m.relatedTarget)||document.activeElement;return b&&b.contains(S)};return BE(()=>a.value&&d()),e({popperRef:s,contentRef:i,isFocusInsideContent:v,updatePopper:l,onOpen:h,onClose:p,hide:d}),(m,C)=>(_(),pe(x(C9),{ref_key:"popperRef",ref:s,role:m.role},{default:E(()=>[w(R9,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:E(()=>[m.$slots.default?Se(m.$slots,"default",{key:0}):me("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),w(H9,{ref_key:"contentRef",ref:i,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:E(()=>[Se(m.$slots,"content",{},()=>[m.rawContent?(_(),G("span",{key:0,innerHTML:m.content},null,8,["innerHTML"])):(_(),G("span",{key:1},Q(m.content),1))]),m.showArrow?(_(),pe(x($H),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):me("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var q9=et(W9,[["__file","tooltip.vue"]]);const go=$t(q9),G9=tt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:_e([String,Object,Array])},offset:{type:_e(Array),default:[0,0]},badgeClass:{type:String}}),K9=ce({name:"ElBadge"}),J9=ce({...K9,props:G9,setup(t,{expose:e}){const n=t,o=Fe("badge"),r=V(()=>n.isDot?"":bt(n.value)&&bt(n.max)?n.max{var i,l,a,u,c;return[{backgroundColor:n.color,marginRight:_r(-((l=(i=n.offset)==null?void 0:i[0])!=null?l:0)),marginTop:_r((u=(a=n.offset)==null?void 0:a[1])!=null?u:0)},(c=n.badgeStyle)!=null?c:{}]});return e({content:r}),(i,l)=>(_(),G("div",{class:Y(x(o).b())},[Se(i.$slots,"default"),w(Go,{name:`${x(o).namespace.value}-zoom-in-center`,persisted:""},{default:E(()=>[$e(L("sup",{class:Y([x(o).e("content"),x(o).em("content",i.type),x(o).is("fixed",!!i.$slots.default),x(o).is("dot",i.isDot),x(o).is("hide-zero",!i.showZero&&n.value===0),i.badgeClass]),style:ft(x(s)),textContent:Q(x(r))},null,14,["textContent"]),[[qe,!i.hidden&&(x(r)||i.isDot)]])]),_:1},8,["name"])],2))}});var Y9=et(J9,[["__file","badge.vue"]]);const X9=$t(Y9),sM=Symbol("buttonGroupContextKey"),na=({from:t,replacement:e,scope:n,version:o,ref:r,type:s="API"},i)=>{De(()=>x(i),l=>{},{immediate:!0})},Z9=(t,e)=>{na({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},V(()=>t.type==="text"));const n=Ve(sM,void 0),o=gg("button"),{form:r}=xl(),s=Ar(V(()=>n==null?void 0:n.size)),i=Ds(),l=R(),a=ls(),u=V(()=>t.type||(n==null?void 0:n.type)||""),c=V(()=>{var p,g,v;return(v=(g=t.autoInsertSpace)!=null?g:(p=o.value)==null?void 0:p.autoInsertSpace)!=null?v:!1}),d=V(()=>t.tag==="button"?{ariaDisabled:i.value||t.loading,disabled:i.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),f=V(()=>{var p;const g=(p=a.default)==null?void 0:p.call(a);if(c.value&&(g==null?void 0:g.length)===1){const v=g[0];if((v==null?void 0:v.type)===Ea){const m=v.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(m.trim())}}return!1});return{_disabled:i,_size:s,_type:u,_ref:l,_props:d,shouldAddSpace:f,handleClick:p=>{if(i.value||t.loading){p.stopPropagation();return}t.nativeType==="reset"&&(r==null||r.resetFields()),e("click",p)}}},Q9=["default","primary","success","warning","info","danger","text",""],eU=["button","submit","reset"],Yv=tt({size:wi,disabled:Boolean,type:{type:String,values:Q9,default:""},icon:{type:co},nativeType:{type:String,values:eU,default:"button"},loading:Boolean,loadingIcon:{type:co,default:()=>kd},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:_e([String,Object]),default:"button"}}),tU={click:t=>t instanceof MouseEvent};function fo(t,e){nU(t)&&(t="100%");var n=oU(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Jf(t){return Math.min(1,Math.max(0,t))}function nU(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function oU(t){return typeof t=="string"&&t.indexOf("%")!==-1}function iM(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Yf(t){return t<=1?"".concat(Number(t)*100,"%"):t}function ql(t){return t.length===1?"0"+t:String(t)}function rU(t,e,n){return{r:fo(t,255)*255,g:fo(e,255)*255,b:fo(n,255)*255}}function cx(t,e,n){t=fo(t,255),e=fo(e,255),n=fo(n,255);var o=Math.max(t,e,n),r=Math.min(t,e,n),s=0,i=0,l=(o+r)/2;if(o===r)i=0,s=0;else{var a=o-r;switch(i=l>.5?a/(2-o-r):a/(o+r),o){case t:s=(e-n)/a+(e1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function sU(t,e,n){var o,r,s;if(t=fo(t,360),e=fo(e,100),n=fo(n,100),e===0)r=n,s=n,o=n;else{var i=n<.5?n*(1+e):n+e-n*e,l=2*n-i;o=Sm(l,i,t+1/3),r=Sm(l,i,t),s=Sm(l,i,t-1/3)}return{r:o*255,g:r*255,b:s*255}}function dx(t,e,n){t=fo(t,255),e=fo(e,255),n=fo(n,255);var o=Math.max(t,e,n),r=Math.min(t,e,n),s=0,i=o,l=o-r,a=o===0?0:l/o;if(o===r)s=0;else{switch(o){case t:s=(e-n)/l+(e>16,g:(t&65280)>>8,b:t&255}}var Xv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function cU(t){var e={r:0,g:0,b:0},n=1,o=null,r=null,s=null,i=!1,l=!1;return typeof t=="string"&&(t=hU(t)),typeof t=="object"&&(Us(t.r)&&Us(t.g)&&Us(t.b)?(e=rU(t.r,t.g,t.b),i=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Us(t.h)&&Us(t.s)&&Us(t.v)?(o=Yf(t.s),r=Yf(t.v),e=iU(t.h,o,r),i=!0,l="hsv"):Us(t.h)&&Us(t.s)&&Us(t.l)&&(o=Yf(t.s),s=Yf(t.l),e=sU(t.h,o,s),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=iM(n),{ok:i,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var dU="[-\\+]?\\d+%?",fU="[-\\+]?\\d*\\.\\d+%?",Yi="(?:".concat(fU,")|(?:").concat(dU,")"),Em="[\\s|\\(]+(".concat(Yi,")[,|\\s]+(").concat(Yi,")[,|\\s]+(").concat(Yi,")\\s*\\)?"),Tm="[\\s|\\(]+(".concat(Yi,")[,|\\s]+(").concat(Yi,")[,|\\s]+(").concat(Yi,")[,|\\s]+(").concat(Yi,")\\s*\\)?"),Dr={CSS_UNIT:new RegExp(Yi),rgb:new RegExp("rgb"+Em),rgba:new RegExp("rgba"+Tm),hsl:new RegExp("hsl"+Em),hsla:new RegExp("hsla"+Tm),hsv:new RegExp("hsv"+Em),hsva:new RegExp("hsva"+Tm),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function hU(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(Xv[t])t=Xv[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Dr.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Dr.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Dr.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Dr.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Dr.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Dr.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Dr.hex8.exec(t),n?{r:Yo(n[1]),g:Yo(n[2]),b:Yo(n[3]),a:hx(n[4]),format:e?"name":"hex8"}:(n=Dr.hex6.exec(t),n?{r:Yo(n[1]),g:Yo(n[2]),b:Yo(n[3]),format:e?"name":"hex"}:(n=Dr.hex4.exec(t),n?{r:Yo(n[1]+n[1]),g:Yo(n[2]+n[2]),b:Yo(n[3]+n[3]),a:hx(n[4]+n[4]),format:e?"name":"hex8"}:(n=Dr.hex3.exec(t),n?{r:Yo(n[1]+n[1]),g:Yo(n[2]+n[2]),b:Yo(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Us(t){return!!Dr.CSS_UNIT.exec(String(t))}var lM=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var o;if(e instanceof t)return e;typeof e=="number"&&(e=uU(e)),this.originalInput=e;var r=cU(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,o,r,s=e.r/255,i=e.g/255,l=e.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=iM(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=dx(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=dx(this.r,this.g,this.b),n=Math.round(e.h*360),o=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=cx(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=cx(this.r,this.g,this.b),n=Math.round(e.h*360),o=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),fx(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),lU(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(o,")"):"rgba(".concat(e,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(fo(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(fo(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+fx(this.r,this.g,this.b,!1),n=0,o=Object.entries(Xv);n=0,s=!n&&r&&(e.startsWith("hex")||e==="name");return s?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(o=this.toRgbString()),e==="prgb"&&(o=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(o=this.toHexString()),e==="hex3"&&(o=this.toHexString(!0)),e==="hex4"&&(o=this.toHex8String(!0)),e==="hex8"&&(o=this.toHex8String()),e==="name"&&(o=this.toName()),e==="hsl"&&(o=this.toHslString()),e==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Jf(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Jf(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Jf(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Jf(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),o=(n.h+e)%360;return n.h=o<0?360+o:o,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var o=this.toRgb(),r=new t(e).toRgb(),s=n/100,i={r:(r.r-o.r)*s+o.r,g:(r.g-o.g)*s+o.g,b:(r.b-o.b)*s+o.b,a:(r.a-o.a)*s+o.a};return new t(i)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,s=[this];for(o.h=(o.h-(r*e>>1)+720)%360;--e;)o.h=(o.h+r)%360,s.push(new t(o));return s},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),o=n.h,r=n.s,s=n.v,i=[],l=1/e;e--;)i.push(new t({h:o,s:r,v:s})),s=(s+l)%1;return i},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),o=new t(e).toRgb(),r=n.a+o.a*(1-n.a);return new t({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),o=n.h,r=[this],s=360/e,i=1;i{let o={},r=t.color;if(r){const s=r.match(/var\((.*?)\)/);s&&(r=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const i=new lM(r),l=t.dark?i.tint(20).toString():Ai(i,20);if(t.plain)o=n.cssVarBlock({"bg-color":t.dark?Ai(i,90):i.tint(90).toString(),"text-color":r,"border-color":t.dark?Ai(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),e.value&&(o[n.cssVarBlockName("disabled-bg-color")]=t.dark?Ai(i,90):i.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=t.dark?Ai(i,50):i.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=t.dark?Ai(i,80):i.tint(80).toString());else{const a=t.dark?Ai(i,30):i.tint(30).toString(),u=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":a,"hover-text-color":u,"hover-border-color":a,"active-bg-color":l,"active-border-color":l}),e.value){const c=t.dark?Ai(i,50):i.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const gU=ce({name:"ElButton"}),mU=ce({...gU,props:Yv,emits:tU,setup(t,{expose:e,emit:n}){const o=t,r=pU(o),s=Fe("button"),{_ref:i,_size:l,_type:a,_disabled:u,_props:c,shouldAddSpace:d,handleClick:f}=Z9(o,n),h=V(()=>[s.b(),s.m(a.value),s.m(l.value),s.is("disabled",u.value),s.is("loading",o.loading),s.is("plain",o.plain),s.is("round",o.round),s.is("circle",o.circle),s.is("text",o.text),s.is("link",o.link),s.is("has-bg",o.bg)]);return e({ref:i,size:l,type:a,disabled:u,shouldAddSpace:d}),(p,g)=>(_(),pe(Ut(p.tag),ho({ref_key:"_ref",ref:i},x(c),{class:x(h),style:x(r),onClick:x(f)}),{default:E(()=>[p.loading?(_(),G(Le,{key:0},[p.$slots.loading?Se(p.$slots,"loading",{key:0}):(_(),pe(x(rt),{key:1,class:Y(x(s).is("loading"))},{default:E(()=>[(_(),pe(Ut(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(_(),pe(x(rt),{key:1},{default:E(()=>[p.icon?(_(),pe(Ut(p.icon),{key:0})):Se(p.$slots,"icon",{key:1})]),_:3})):me("v-if",!0),p.$slots.default?(_(),G("span",{key:2,class:Y({[x(s).em("text","expand")]:x(d)})},[Se(p.$slots,"default")],2)):me("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var vU=et(mU,[["__file","button.vue"]]);const bU={size:Yv.size,type:Yv.type},yU=ce({name:"ElButtonGroup"}),wU=ce({...yU,props:bU,setup(t){const e=t;Bt(sM,ut({size:Qo(e,"size"),type:Qo(e,"type")}));const n=Fe("button");return(o,r)=>(_(),G("div",{class:Y(x(n).b("group"))},[Se(o.$slots,"default")],2))}});var aM=et(wU,[["__file","button-group.vue"]]);const xn=$t(vU,{ButtonGroup:aM}),cy=po(aM);var gr=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(gr||{});function Zv(t){return Bn(t)&&t.type===Le}function CU(t){return Bn(t)&&t.type===Un}function xU(t){return Bn(t)&&!Zv(t)&&!CU(t)}const Kc=t=>{const e=Pe(t)?t:[t],n=[];return e.forEach(o=>{var r;Pe(o)?n.push(...Kc(o)):Bn(o)&&((r=o.component)!=null&&r.subTree)?n.push(o,...Kc(o.component.subTree)):Bn(o)&&Pe(o.children)?n.push(...Kc(o.children)):n.push(o)}),n},SU=(t,e,n)=>Kc(t.subTree).filter(s=>{var i;return Bn(s)&&((i=s.type)==null?void 0:i.name)===e&&!!s.component}).map(s=>s.component.uid).map(s=>n[s]).filter(s=>!!s),EU=(t,e)=>{const n={},o=rr([]);return{children:o,addChild:i=>{n[i.uid]=i,o.value=SU(t,e,n)},removeChild:i=>{delete n[i],o.value=o.value.filter(l=>l.uid!==i)}}},uM={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:wi,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Ci(["ariaControls"])},cM={[on]:t=>Ye(t)||bt(t)||Pn(t),change:t=>Ye(t)||bt(t)||Pn(t)},sc=Symbol("checkboxGroupContextKey"),TU=({model:t,isChecked:e})=>{const n=Ve(sc,void 0),o=V(()=>{var s,i;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,a=(i=n==null?void 0:n.min)==null?void 0:i.value;return!En(l)&&t.value.length>=l&&!e.value||!En(a)&&t.value.length<=a&&e.value});return{isDisabled:Ds(V(()=>(n==null?void 0:n.disabled.value)||o.value)),isLimitDisabled:o}},OU=(t,{model:e,isLimitExceeded:n,hasOwnLabel:o,isDisabled:r,isLabeledByFormItem:s})=>{const i=Ve(sc,void 0),{formItem:l}=xl(),{emit:a}=gt();function u(p){var g,v,m,C;return[!0,t.trueValue,t.trueLabel].includes(p)?(v=(g=t.trueValue)!=null?g:t.trueLabel)!=null?v:!0:(C=(m=t.falseValue)!=null?m:t.falseLabel)!=null?C:!1}function c(p,g){a("change",u(p),g)}function d(p){if(n.value)return;const g=p.target;a("change",u(g.checked),p)}async function f(p){n.value||!o.value&&!r.value&&s.value&&(p.composedPath().some(m=>m.tagName==="LABEL")||(e.value=u([!1,t.falseValue,t.falseLabel].includes(e.value)),await lt(),c(e.value,p)))}const h=V(()=>(i==null?void 0:i.validateEvent)||t.validateEvent);return De(()=>t.modelValue,()=>{h.value&&(l==null||l.validate("change").catch(p=>void 0))}),{handleChange:d,onClickRoot:f}},kU=t=>{const e=R(!1),{emit:n}=gt(),o=Ve(sc,void 0),r=V(()=>En(o)===!1),s=R(!1),i=V({get(){var l,a;return r.value?(l=o==null?void 0:o.modelValue)==null?void 0:l.value:(a=t.modelValue)!=null?a:e.value},set(l){var a,u;r.value&&Pe(l)?(s.value=((a=o==null?void 0:o.max)==null?void 0:a.value)!==void 0&&l.length>(o==null?void 0:o.max.value)&&l.length>i.value.length,s.value===!1&&((u=o==null?void 0:o.changeEvent)==null||u.call(o,l))):(n(on,l),e.value=l)}});return{model:i,isGroup:r,isLimitExceeded:s}},MU=(t,e,{model:n})=>{const o=Ve(sc,void 0),r=R(!1),s=V(()=>Od(t.value)?t.label:t.value),i=V(()=>{const c=n.value;return Pn(c)?c:Pe(c)?pt(s.value)?c.map(It).some(d=>Eo(d,s.value)):c.map(It).includes(s.value):c!=null?c===t.trueValue||c===t.trueLabel:!!c}),l=Ar(V(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value}),{prop:!0}),a=Ar(V(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value})),u=V(()=>!!e.default||!Od(s.value));return{checkboxButtonSize:l,isChecked:i,isFocused:r,checkboxSize:a,hasOwnLabel:u,actualValue:s}},dM=(t,e)=>{const{formItem:n}=xl(),{model:o,isGroup:r,isLimitExceeded:s}=kU(t),{isFocused:i,isChecked:l,checkboxButtonSize:a,checkboxSize:u,hasOwnLabel:c,actualValue:d}=MU(t,e,{model:o}),{isDisabled:f}=TU({model:o,isChecked:l}),{inputId:h,isLabeledByFormItem:p}=hf(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:r}),{handleChange:g,onClickRoot:v}=OU(t,{model:o,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:p});return(()=>{function C(){var y,b;Pe(o.value)&&!o.value.includes(d.value)?o.value.push(d.value):o.value=(b=(y=t.trueValue)!=null?y:t.trueLabel)!=null?b:!0}t.checked&&C()})(),na({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},V(()=>r.value&&Od(t.value))),na({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},V(()=>!!t.trueLabel)),na({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},V(()=>!!t.falseLabel)),{inputId:h,isLabeledByFormItem:p,isChecked:l,isDisabled:f,isFocused:i,checkboxButtonSize:a,checkboxSize:u,hasOwnLabel:c,model:o,actualValue:d,handleChange:g,onClickRoot:v}},_U=ce({name:"ElCheckbox"}),AU=ce({..._U,props:uM,emits:cM,setup(t){const e=t,n=ls(),{inputId:o,isLabeledByFormItem:r,isChecked:s,isDisabled:i,isFocused:l,checkboxSize:a,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:h}=dM(e,n),p=Fe("checkbox"),g=V(()=>[p.b(),p.m(a.value),p.is("disabled",i.value),p.is("bordered",e.border),p.is("checked",s.value)]),v=V(()=>[p.e("input"),p.is("disabled",i.value),p.is("checked",s.value),p.is("indeterminate",e.indeterminate),p.is("focus",l.value)]);return(m,C)=>(_(),pe(Ut(!x(u)&&x(r)?"span":"label"),{class:Y(x(g)),"aria-controls":m.indeterminate?m.ariaControls:null,onClick:x(h)},{default:E(()=>{var y,b,S,T;return[L("span",{class:Y(x(v))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?$e((_(),G("input",{key:0,id:x(o),"onUpdate:modelValue":O=>Gt(c)?c.value=O:null,class:Y(x(p).e("original")),type:"checkbox",indeterminate:m.indeterminate,name:m.name,tabindex:m.tabindex,disabled:x(i),"true-value":(b=(y=m.trueValue)!=null?y:m.trueLabel)!=null?b:!0,"false-value":(T=(S=m.falseValue)!=null?S:m.falseLabel)!=null?T:!1,onChange:x(f),onFocus:O=>l.value=!0,onBlur:O=>l.value=!1,onClick:At(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[il,x(c)]]):$e((_(),G("input",{key:1,id:x(o),"onUpdate:modelValue":O=>Gt(c)?c.value=O:null,class:Y(x(p).e("original")),type:"checkbox",indeterminate:m.indeterminate,disabled:x(i),value:x(d),name:m.name,tabindex:m.tabindex,onChange:x(f),onFocus:O=>l.value=!0,onBlur:O=>l.value=!1,onClick:At(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[il,x(c)]]),L("span",{class:Y(x(p).e("inner"))},null,2)],2),x(u)?(_(),G("span",{key:0,class:Y(x(p).e("label"))},[Se(m.$slots,"default"),m.$slots.default?me("v-if",!0):(_(),G(Le,{key:0},[U(Q(m.label),1)],64))],2)):me("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var PU=et(AU,[["__file","checkbox.vue"]]);const NU=ce({name:"ElCheckboxButton"}),IU=ce({...NU,props:uM,emits:cM,setup(t){const e=t,n=ls(),{isFocused:o,isChecked:r,isDisabled:s,checkboxButtonSize:i,model:l,actualValue:a,handleChange:u}=dM(e,n),c=Ve(sc,void 0),d=Fe("checkbox"),f=V(()=>{var p,g,v,m;const C=(g=(p=c==null?void 0:c.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:C,borderColor:C,color:(m=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?m:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),h=V(()=>[d.b("button"),d.bm("button",i.value),d.is("disabled",s.value),d.is("checked",r.value),d.is("focus",o.value)]);return(p,g)=>{var v,m,C,y;return _(),G("label",{class:Y(x(h))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?$e((_(),G("input",{key:0,"onUpdate:modelValue":b=>Gt(l)?l.value=b:null,class:Y(x(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:x(s),"true-value":(m=(v=p.trueValue)!=null?v:p.trueLabel)!=null?m:!0,"false-value":(y=(C=p.falseValue)!=null?C:p.falseLabel)!=null?y:!1,onChange:x(u),onFocus:b=>o.value=!0,onBlur:b=>o.value=!1,onClick:At(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[il,x(l)]]):$e((_(),G("input",{key:1,"onUpdate:modelValue":b=>Gt(l)?l.value=b:null,class:Y(x(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:x(s),value:x(a),onChange:x(u),onFocus:b=>o.value=!0,onBlur:b=>o.value=!1,onClick:At(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[il,x(l)]]),p.$slots.default||p.label?(_(),G("span",{key:2,class:Y(x(d).be("button","inner")),style:ft(x(r)?x(f):void 0)},[Se(p.$slots,"default",{},()=>[U(Q(p.label),1)])],6)):me("v-if",!0)],2)}}});var fM=et(IU,[["__file","checkbox-button.vue"]]);const LU=tt({modelValue:{type:_e(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:wi,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Ci(["ariaLabel"])}),RU={[on]:t=>Pe(t),change:t=>Pe(t)},$U=ce({name:"ElCheckboxGroup"}),DU=ce({...$U,props:LU,emits:RU,setup(t,{emit:e}){const n=t,o=Fe("checkbox"),{formItem:r}=xl(),{inputId:s,isLabeledByFormItem:i}=hf(n,{formItemContext:r}),l=async u=>{e(on,u),await lt(),e("change",u)},a=V({get(){return n.modelValue},set(u){l(u)}});return Bt(sc,{...ck(Ls(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:a,changeEvent:l}),De(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(u=>void 0))}),(u,c)=>{var d;return _(),pe(Ut(u.tag),{id:x(s),class:Y(x(o).b("group")),role:"group","aria-label":x(i)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":x(i)?(d=x(r))==null?void 0:d.labelId:void 0},{default:E(()=>[Se(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var hM=et(DU,[["__file","checkbox-group.vue"]]);const fi=$t(PU,{CheckboxButton:fM,CheckboxGroup:hM});po(fM);po(hM);const pM=tt({modelValue:{type:[String,Number,Boolean],default:void 0},size:wi,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),VU=tt({...pM,border:Boolean}),gM={[on]:t=>Ye(t)||bt(t)||Pn(t),[df]:t=>Ye(t)||bt(t)||Pn(t)},mM=Symbol("radioGroupKey"),vM=(t,e)=>{const n=R(),o=Ve(mM,void 0),r=V(()=>!!o),s=V(()=>Od(t.value)?t.label:t.value),i=V({get(){return r.value?o.modelValue:t.modelValue},set(d){r.value?o.changeEvent(d):e&&e(on,d),n.value.checked=t.modelValue===s.value}}),l=Ar(V(()=>o==null?void 0:o.size)),a=Ds(V(()=>o==null?void 0:o.disabled)),u=R(!1),c=V(()=>a.value||r.value&&i.value!==s.value?-1:0);return na({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},V(()=>r.value&&Od(t.value))),{radioRef:n,isGroup:r,radioGroup:o,focus:u,size:l,disabled:a,tabIndex:c,modelValue:i,actualValue:s}},BU=ce({name:"ElRadio"}),FU=ce({...BU,props:VU,emits:gM,setup(t,{emit:e}){const n=t,o=Fe("radio"),{radioRef:r,radioGroup:s,focus:i,size:l,disabled:a,modelValue:u,actualValue:c}=vM(n,e);function d(){lt(()=>e("change",u.value))}return(f,h)=>{var p;return _(),G("label",{class:Y([x(o).b(),x(o).is("disabled",x(a)),x(o).is("focus",x(i)),x(o).is("bordered",f.border),x(o).is("checked",x(u)===x(c)),x(o).m(x(l))])},[L("span",{class:Y([x(o).e("input"),x(o).is("disabled",x(a)),x(o).is("checked",x(u)===x(c))])},[$e(L("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":g=>Gt(u)?u.value=g:null,class:Y(x(o).e("original")),value:x(c),name:f.name||((p=x(s))==null?void 0:p.name),disabled:x(a),checked:x(u)===x(c),type:"radio",onFocus:g=>i.value=!0,onBlur:g=>i.value=!1,onChange:d,onClick:At(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[wT,x(u)]]),L("span",{class:Y(x(o).e("inner"))},null,2)],2),L("span",{class:Y(x(o).e("label")),onKeydown:At(()=>{},["stop"])},[Se(f.$slots,"default",{},()=>[U(Q(f.label),1)])],42,["onKeydown"])],2)}}});var zU=et(FU,[["__file","radio.vue"]]);const jU=tt({...pM}),HU=ce({name:"ElRadioButton"}),UU=ce({...HU,props:jU,setup(t){const e=t,n=Fe("radio"),{radioRef:o,focus:r,size:s,disabled:i,modelValue:l,radioGroup:a,actualValue:u}=vM(e),c=V(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(d,f)=>{var h;return _(),G("label",{class:Y([x(n).b("button"),x(n).is("active",x(l)===x(u)),x(n).is("disabled",x(i)),x(n).is("focus",x(r)),x(n).bm("button",x(s))])},[$e(L("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":p=>Gt(l)?l.value=p:null,class:Y(x(n).be("button","original-radio")),value:x(u),type:"radio",name:d.name||((h=x(a))==null?void 0:h.name),disabled:x(i),onFocus:p=>r.value=!0,onBlur:p=>r.value=!1,onClick:At(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[wT,x(l)]]),L("span",{class:Y(x(n).be("button","inner")),style:ft(x(l)===x(u)?x(c):{}),onKeydown:At(()=>{},["stop"])},[Se(d.$slots,"default",{},()=>[U(Q(d.label),1)])],46,["onKeydown"])],2)}}});var bM=et(UU,[["__file","radio-button.vue"]]);const WU=tt({id:{type:String,default:void 0},size:wi,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...Ci(["ariaLabel"])}),qU=gM,GU=ce({name:"ElRadioGroup"}),KU=ce({...GU,props:WU,emits:qU,setup(t,{emit:e}){const n=t,o=Fe("radio"),r=Ms(),s=R(),{formItem:i}=xl(),{inputId:l,isLabeledByFormItem:a}=hf(n,{formItemContext:i}),u=d=>{e(on,d),lt(()=>e("change",d))};st(()=>{const d=s.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(h=>h.checked)&&f&&(f.tabIndex=0)});const c=V(()=>n.name||r.value);return Bt(mM,ut({...Ls(n),changeEvent:u,name:c})),De(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(d=>void 0))}),(d,f)=>(_(),G("div",{id:x(l),ref_key:"radioGroupRef",ref:s,class:Y(x(o).b("group")),role:"radiogroup","aria-label":x(a)?void 0:d.ariaLabel||"radio-group","aria-labelledby":x(a)?x(i).labelId:void 0},[Se(d.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var yM=et(KU,[["__file","radio-group.vue"]]);const Tg=$t(zU,{RadioButton:bM,RadioGroup:yM}),vf=po(yM),JU=po(bM),YU=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),qi=t=>Zd(t),Qv=tt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ma},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),XU={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},ZU=ce({name:"ElTag"}),QU=ce({...ZU,props:Qv,emits:XU,setup(t,{emit:e}){const n=t,o=Ar(),r=Fe("tag"),s=V(()=>{const{type:u,hit:c,effect:d,closable:f,round:h}=n;return[r.b(),r.is("closable",f),r.m(u||"primary"),r.m(o.value),r.m(d),r.is("hit",c),r.is("round",h)]}),i=u=>{e("close",u)},l=u=>{e("click",u)},a=u=>{var c,d,f;(f=(d=(c=u==null?void 0:u.component)==null?void 0:c.subTree)==null?void 0:d.component)!=null&&f.bum&&(u.component.subTree.component.bum=null)};return(u,c)=>u.disableTransitions?(_(),G("span",{key:0,class:Y(x(s)),style:ft({backgroundColor:u.color}),onClick:l},[L("span",{class:Y(x(r).e("content"))},[Se(u.$slots,"default")],2),u.closable?(_(),pe(x(rt),{key:0,class:Y(x(r).e("close")),onClick:At(i,["stop"])},{default:E(()=>[w(x(ci))]),_:1},8,["class","onClick"])):me("v-if",!0)],6)):(_(),pe(Go,{key:1,name:`${x(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:a},{default:E(()=>[L("span",{class:Y(x(s)),style:ft({backgroundColor:u.color}),onClick:l},[L("span",{class:Y(x(r).e("content"))},[Se(u.$slots,"default")],2),u.closable?(_(),pe(x(rt),{key:0,class:Y(x(r).e("close")),onClick:At(i,["stop"])},{default:E(()=>[w(x(ci))]),_:1},8,["class","onClick"])):me("v-if",!0)],6)]),_:3},8,["name"]))}});var eW=et(QU,[["__file","tag.vue"]]);const wM=$t(eW),Li=new Map;if(Tt){let t;document.addEventListener("mousedown",e=>t=e),document.addEventListener("mouseup",e=>{if(t){for(const n of Li.values())for(const{documentHandler:o}of n)o(e,t);t=void 0}})}function px(t,e){let n=[];return Pe(e.arg)?n=e.arg:sr(e.arg)&&n.push(e.arg),function(o,r){const s=e.instance.popperRef,i=o.target,l=r==null?void 0:r.target,a=!e||!e.instance,u=!i||!l,c=t.contains(i)||t.contains(l),d=t===i,f=n.length&&n.some(p=>p==null?void 0:p.contains(i))||n.length&&n.includes(l),h=s&&(s.contains(i)||s.contains(l));a||u||c||d||f||h||e.value(o,r)}}const dy={beforeMount(t,e){Li.has(t)||Li.set(t,[]),Li.get(t).push({documentHandler:px(t,e),bindingFn:e.value})},updated(t,e){Li.has(t)||Li.set(t,[]);const n=Li.get(t),o=n.findIndex(s=>s.bindingFn===e.oldValue),r={documentHandler:px(t,e),bindingFn:e.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted(t){Li.delete(t)}},tW=tt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:_e([Number,Object]),default:()=>Io({})},sm:{type:_e([Number,Object]),default:()=>Io({})},md:{type:_e([Number,Object]),default:()=>Io({})},lg:{type:_e([Number,Object]),default:()=>Io({})},xl:{type:_e([Number,Object]),default:()=>Io({})}}),CM=Symbol("rowContextKey"),nW=ce({name:"ElCol"}),oW=ce({...nW,props:tW,setup(t){const e=t,{gutter:n}=Ve(CM,{gutter:V(()=>0)}),o=Fe("col"),r=V(()=>{const i={};return n.value&&(i.paddingLeft=i.paddingRight=`${n.value/2}px`),i}),s=V(()=>{const i=[];return["span","offset","pull","push"].forEach(u=>{const c=e[u];bt(c)&&(u==="span"?i.push(o.b(`${e[u]}`)):c>0&&i.push(o.b(`${u}-${e[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{bt(e[u])?i.push(o.b(`${u}-${e[u]}`)):pt(e[u])&&Object.entries(e[u]).forEach(([c,d])=>{i.push(c!=="span"?o.b(`${u}-${c}-${d}`):o.b(`${u}-${d}`))})}),n.value&&i.push(o.is("guttered")),[o.b(),i]});return(i,l)=>(_(),pe(Ut(i.tag),{class:Y(x(s)),style:ft(x(r))},{default:E(()=>[Se(i.$slots,"default")]),_:3},8,["class","style"]))}});var rW=et(oW,[["__file","col.vue"]]);const Og=$t(rW),sW=ce({name:"ElCollapseTransition"}),iW=ce({...sW,setup(t){const e=Fe("collapse-transition"),n=r=>{r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom},o={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.height&&(r.dataset.elExistsHeight=r.style.height),r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){requestAnimationFrame(()=>{r.dataset.oldOverflow=r.style.overflow,r.dataset.elExistsHeight?r.style.maxHeight=r.dataset.elExistsHeight:r.scrollHeight!==0?r.style.maxHeight=`${r.scrollHeight}px`:r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom,r.style.overflow="hidden"})},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},enterCancelled(r){n(r)},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){n(r)},leaveCancelled(r){n(r)}};return(r,s)=>(_(),pe(Go,ho({name:x(e).b()},a3(o)),{default:E(()=>[Se(r.$slots,"default")]),_:3},16,["name"]))}});var lW=et(iW,[["__file","collapse-transition.vue"]]);const aW=$t(lW),uW=(t,e)=>{if(!Tt||!t||!e)return!1;const n=t.getBoundingClientRect();let o;return e instanceof Element?o=e.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topo.top&&n.right>o.left&&n.lefte.direction==="vertical"?!0:e.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const l=i.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(s,i)=>(_(),G("section",{class:Y([x(o).b(),x(o).is("vertical",x(r))])},[Se(s.$slots,"default")],2))}});var fW=et(dW,[["__file","container.vue"]]);const hW=ce({name:"ElAside"}),pW=ce({...hW,props:{width:{type:String,default:null}},setup(t){const e=t,n=Fe("aside"),o=V(()=>e.width?n.cssVarBlock({width:e.width}):{});return(r,s)=>(_(),G("aside",{class:Y(x(n).b()),style:ft(x(o))},[Se(r.$slots,"default")],6))}});var xM=et(pW,[["__file","aside.vue"]]);const gW=ce({name:"ElFooter"}),mW=ce({...gW,props:{height:{type:String,default:null}},setup(t){const e=t,n=Fe("footer"),o=V(()=>e.height?n.cssVarBlock({height:e.height}):{});return(r,s)=>(_(),G("footer",{class:Y(x(n).b()),style:ft(x(o))},[Se(r.$slots,"default")],6))}});var SM=et(mW,[["__file","footer.vue"]]);const vW=ce({name:"ElHeader"}),bW=ce({...vW,props:{height:{type:String,default:null}},setup(t){const e=t,n=Fe("header"),o=V(()=>e.height?n.cssVarBlock({height:e.height}):{});return(r,s)=>(_(),G("header",{class:Y(x(n).b()),style:ft(x(o))},[Se(r.$slots,"default")],6))}});var EM=et(bW,[["__file","header.vue"]]);const yW=ce({name:"ElMain"}),wW=ce({...yW,setup(t){const e=Fe("main");return(n,o)=>(_(),G("main",{class:Y(x(e).b())},[Se(n.$slots,"default")],2))}});var TM=et(wW,[["__file","main.vue"]]);const OM=$t(fW,{Aside:xM,Footer:SM,Header:EM,Main:TM}),kM=po(xM);po(SM);const CW=po(EM),MM=po(TM),xW=100,SW=600,gx={beforeMount(t,e){const n=e.value,{interval:o=xW,delay:r=SW}=Be(n)?{}:n;let s,i;const l=()=>Be(n)?n():n.handler(),a=()=>{i&&(clearTimeout(i),i=void 0),s&&(clearInterval(s),s=void 0)};t.addEventListener("mousedown",u=>{u.button===0&&(a(),l(),document.addEventListener("mouseup",()=>a(),{once:!0}),i=setTimeout(()=>{s=setInterval(()=>{l()},o)},r))})}},fy=t=>{if(!t)return{onClick:Rt,onMousedown:Rt,onMouseup:Rt};let e=!1,n=!1;return{onClick:i=>{e&&n&&t(i),e=n=!1},onMousedown:i=>{e=i.target===i.currentTarget},onMouseup:i=>{n=i.target===i.currentTarget}}},EW=tt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:_e([String,Array,Object])},zIndex:{type:_e([String,Number])}}),TW={click:t=>t instanceof MouseEvent},OW="overlay";var kW=ce({name:"ElOverlay",props:EW,emits:TW,setup(t,{slots:e,emit:n}){const o=Fe(OW),r=a=>{n("click",a)},{onClick:s,onMousedown:i,onMouseup:l}=fy(t.customMaskEvent?void 0:r);return()=>t.mask?w("div",{class:[o.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:s,onMousedown:i,onMouseup:l},[Se(e,"default")],gr.STYLE|gr.CLASS|gr.PROPS,["onClick","onMouseup","onMousedown"]):Ue("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Se(e,"default")])}});const hy=kW,_M=Symbol("dialogInjectionKey"),AM=tt({center:Boolean,alignCenter:Boolean,closeIcon:{type:co},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),MW={close:()=>!0},PM=(t,e,n,o)=>{let r={offsetX:0,offsetY:0};const s=u=>{const c=u.clientX,d=u.clientY,{offsetX:f,offsetY:h}=r,p=t.value.getBoundingClientRect(),g=p.left,v=p.top,m=p.width,C=p.height,y=document.documentElement.clientWidth,b=document.documentElement.clientHeight,S=-g+f,T=-v+h,O=y-g-m+f,k=b-v-C+h,P=M=>{let D=f+M.clientX-c,J=h+M.clientY-d;o!=null&&o.value||(D=Math.min(Math.max(D,S),O),J=Math.min(Math.max(J,T),k)),r={offsetX:D,offsetY:J},t.value&&(t.value.style.transform=`translate(${_r(D)}, ${_r(J)})`)},I=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",I)},i=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",s)},l=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",s)},a=()=>{r={offsetX:0,offsetY:0},t.value&&(t.value.style.transform="none")};return st(()=>{Gr(()=>{n.value?i():l()})}),un(()=>{l()}),{resetPosition:a}},_W=(...t)=>e=>{t.forEach(n=>{Be(n)?n(e):n.value=e})},AW=ce({name:"ElDialogContent"}),PW=ce({...AW,props:AM,emits:MW,setup(t,{expose:e}){const n=t,{t:o}=us(),{Close:r}=Ak,{dialogRef:s,headerRef:i,bodyId:l,ns:a,style:u}=Ve(_M),{focusTrapRef:c}=Ve(Uk),d=V(()=>[a.b(),a.is("fullscreen",n.fullscreen),a.is("draggable",n.draggable),a.is("align-center",n.alignCenter),{[a.m("center")]:n.center}]),f=_W(c,s),h=V(()=>n.draggable),p=V(()=>n.overflow),{resetPosition:g}=PM(s,i,h,p);return e({resetPosition:g}),(v,m)=>(_(),G("div",{ref:x(f),class:Y(x(d)),style:ft(x(u)),tabindex:"-1"},[L("header",{ref_key:"headerRef",ref:i,class:Y([x(a).e("header"),{"show-close":v.showClose}])},[Se(v.$slots,"header",{},()=>[L("span",{role:"heading","aria-level":v.ariaLevel,class:Y(x(a).e("title"))},Q(v.title),11,["aria-level"])]),v.showClose?(_(),G("button",{key:0,"aria-label":x(o)("el.dialog.close"),class:Y(x(a).e("headerbtn")),type:"button",onClick:C=>v.$emit("close")},[w(x(rt),{class:Y(x(a).e("close"))},{default:E(()=>[(_(),pe(Ut(v.closeIcon||x(r))))]),_:1},8,["class"])],10,["aria-label","onClick"])):me("v-if",!0)],2),L("div",{id:x(l),class:Y(x(a).e("body"))},[Se(v.$slots,"default")],10,["id"]),v.$slots.footer?(_(),G("footer",{key:0,class:Y(x(a).e("footer"))},[Se(v.$slots,"footer")],2)):me("v-if",!0)],6))}});var NW=et(PW,[["__file","dialog-content.vue"]]);const NM=tt({...AM,appendToBody:Boolean,appendTo:{type:_e([String,Object]),default:"body"},beforeClose:{type:_e(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),IM={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[on]:t=>Pn(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},LM=(t,e={})=>{Gt(t)||Ro("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||Fe("popup"),o=V(()=>n.bm("parent","hidden"));if(!Tt||Ji(document.body,o.value))return;let r=0,s=!1,i="0";const l=()=>{setTimeout(()=>{typeof document>"u"||(ir(document==null?void 0:document.body,o.value),s&&document&&(document.body.style.width=i))},200)};De(t,a=>{if(!a){l();return}s=!Ji(document.body,o.value),s&&(i=document.body.style.width),r=ej(n.namespace.value);const u=document.documentElement.clientHeight0&&(u||c==="scroll")&&s&&(document.body.style.width=`calc(100% - ${r}px)`),Hr(document.body,o.value)}),rE(()=>l())},RM=(t,e)=>{var n;const r=gt().emit,{nextZIndex:s}=hg();let i="";const l=Ms(),a=Ms(),u=R(!1),c=R(!1),d=R(!1),f=R((n=t.zIndex)!=null?n:s());let h,p;const g=gg("namespace",zc),v=V(()=>{const N={},A=`--${g.value}-dialog`;return t.fullscreen||(t.top&&(N[`${A}-margin-top`]=t.top),t.width&&(N[`${A}-width`]=_r(t.width))),N}),m=V(()=>t.alignCenter?{display:"flex"}:{});function C(){r("opened")}function y(){r("closed"),r(on,!1),t.destroyOnClose&&(d.value=!1)}function b(){r("close")}function S(){p==null||p(),h==null||h(),t.openDelay&&t.openDelay>0?{stop:h}=Su(()=>P(),t.openDelay):P()}function T(){h==null||h(),p==null||p(),t.closeDelay&&t.closeDelay>0?{stop:p}=Su(()=>I(),t.closeDelay):I()}function O(){function N(A){A||(c.value=!0,u.value=!1)}t.beforeClose?t.beforeClose(N):T()}function k(){t.closeOnClickModal&&O()}function P(){Tt&&(u.value=!0)}function I(){u.value=!1}function M(){r("openAutoFocus")}function D(){r("closeAutoFocus")}function J(N){var A;((A=N.detail)==null?void 0:A.focusReason)==="pointer"&&N.preventDefault()}t.lockScroll&&LM(u);function oe(){t.closeOnPressEscape&&O()}return De(()=>t.modelValue,N=>{N?(c.value=!1,S(),d.value=!0,f.value=ak(t.zIndex)?s():f.value++,lt(()=>{r("open"),e.value&&(e.value.scrollTop=0)})):u.value&&T()}),De(()=>t.fullscreen,N=>{e.value&&(N?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),st(()=>{t.modelValue&&(u.value=!0,d.value=!0,S())}),{afterEnter:C,afterLeave:y,beforeLeave:b,handleClose:O,onModalClick:k,close:T,doClose:I,onOpenAutoFocus:M,onCloseAutoFocus:D,onCloseRequested:oe,onFocusoutPrevented:J,titleId:l,bodyId:a,closed:c,style:v,overlayDialogStyle:m,rendered:d,visible:u,zIndex:f}},IW=ce({name:"ElDialog",inheritAttrs:!1}),LW=ce({...IW,props:NM,emits:IM,setup(t,{expose:e}){const n=t,o=ls();na({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},V(()=>!!o.title));const r=Fe("dialog"),s=R(),i=R(),l=R(),{visible:a,titleId:u,bodyId:c,style:d,overlayDialogStyle:f,rendered:h,zIndex:p,afterEnter:g,afterLeave:v,beforeLeave:m,handleClose:C,onModalClick:y,onOpenAutoFocus:b,onCloseAutoFocus:S,onCloseRequested:T,onFocusoutPrevented:O}=RM(n,s);Bt(_M,{dialogRef:s,headerRef:i,bodyId:c,ns:r,rendered:h,style:d});const k=fy(y),P=V(()=>n.draggable&&!n.fullscreen);return e({visible:a,dialogContentRef:l,resetPosition:()=>{var M;(M=l.value)==null||M.resetPosition()}}),(M,D)=>(_(),pe(x(Eg),{to:M.appendTo,disabled:M.appendTo!=="body"?!1:!M.appendToBody},{default:E(()=>[w(Go,{name:"dialog-fade",onAfterEnter:x(g),onAfterLeave:x(v),onBeforeLeave:x(m),persisted:""},{default:E(()=>[$e(w(x(hy),{"custom-mask-event":"",mask:M.modal,"overlay-class":M.modalClass,"z-index":x(p)},{default:E(()=>[L("div",{role:"dialog","aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:x(u),"aria-describedby":x(c),class:Y(`${x(r).namespace.value}-overlay-dialog`),style:ft(x(f)),onClick:x(k).onClick,onMousedown:x(k).onMousedown,onMouseup:x(k).onMouseup},[w(x(pf),{loop:"",trapped:x(a),"focus-start-el":"container",onFocusAfterTrapped:x(b),onFocusAfterReleased:x(S),onFocusoutPrevented:x(O),onReleaseRequested:x(T)},{default:E(()=>[x(h)?(_(),pe(NW,ho({key:0,ref_key:"dialogContentRef",ref:l},M.$attrs,{center:M.center,"align-center":M.alignCenter,"close-icon":M.closeIcon,draggable:x(P),overflow:M.overflow,fullscreen:M.fullscreen,"show-close":M.showClose,title:M.title,"aria-level":M.headerAriaLevel,onClose:x(C)}),Hh({header:E(()=>[M.$slots.title?Se(M.$slots,"title",{key:1}):Se(M.$slots,"header",{key:0,close:x(C),titleId:x(u),titleClass:x(r).e("title")})]),default:E(()=>[Se(M.$slots,"default")]),_:2},[M.$slots.footer?{name:"footer",fn:E(()=>[Se(M.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):me("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[qe,x(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var RW=et(LW,[["__file","dialog.vue"]]);const xi=$t(RW),$W=tt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:_e(String),default:"solid"}}),DW=ce({name:"ElDivider"}),VW=ce({...DW,props:$W,setup(t){const e=t,n=Fe("divider"),o=V(()=>n.cssVar({"border-style":e.borderStyle}));return(r,s)=>(_(),G("div",{class:Y([x(n).b(),x(n).m(r.direction)]),style:ft(x(o)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(_(),G("div",{key:0,class:Y([x(n).e("text"),x(n).is(r.contentPosition)])},[Se(r.$slots,"default")],2)):me("v-if",!0)],6))}});var BW=et(VW,[["__file","divider.vue"]]);const bf=$t(BW),FW=tt({...NM,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),zW=IM,jW=ce({name:"ElDrawer",inheritAttrs:!1}),HW=ce({...jW,props:FW,emits:zW,setup(t,{expose:e}){const n=t,o=ls();na({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},V(()=>!!o.title));const r=R(),s=R(),i=Fe("drawer"),{t:l}=us(),{afterEnter:a,afterLeave:u,beforeLeave:c,visible:d,rendered:f,titleId:h,bodyId:p,zIndex:g,onModalClick:v,onOpenAutoFocus:m,onCloseAutoFocus:C,onFocusoutPrevented:y,onCloseRequested:b,handleClose:S}=RM(n,r),T=V(()=>n.direction==="rtl"||n.direction==="ltr"),O=V(()=>_r(n.size));return e({handleClose:S,afterEnter:a,afterLeave:u}),(k,P)=>(_(),pe(x(Eg),{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},{default:E(()=>[w(Go,{name:x(i).b("fade"),onAfterEnter:x(a),onAfterLeave:x(u),onBeforeLeave:x(c),persisted:""},{default:E(()=>[$e(w(x(hy),{mask:k.modal,"overlay-class":k.modalClass,"z-index":x(g),onClick:x(v)},{default:E(()=>[w(x(pf),{loop:"",trapped:x(d),"focus-trap-el":r.value,"focus-start-el":s.value,onFocusAfterTrapped:x(m),onFocusAfterReleased:x(C),onFocusoutPrevented:x(y),onReleaseRequested:x(b)},{default:E(()=>[L("div",ho({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:x(h),"aria-describedby":x(p)},k.$attrs,{class:[x(i).b(),k.direction,x(d)&&"open"],style:x(T)?"width: "+x(O):"height: "+x(O),role:"dialog",onClick:At(()=>{},["stop"])}),[L("span",{ref_key:"focusStartRef",ref:s,class:Y(x(i).e("sr-focus")),tabindex:"-1"},null,2),k.withHeader?(_(),G("header",{key:0,class:Y(x(i).e("header"))},[k.$slots.title?Se(k.$slots,"title",{key:1},()=>[me(" DEPRECATED SLOT ")]):Se(k.$slots,"header",{key:0,close:x(S),titleId:x(h),titleClass:x(i).e("title")},()=>[k.$slots.title?me("v-if",!0):(_(),G("span",{key:0,id:x(h),role:"heading","aria-level":k.headerAriaLevel,class:Y(x(i).e("title"))},Q(k.title),11,["id","aria-level"]))]),k.showClose?(_(),G("button",{key:2,"aria-label":x(l)("el.drawer.close"),class:Y(x(i).e("close-btn")),type:"button",onClick:x(S)},[w(x(rt),{class:Y(x(i).e("close"))},{default:E(()=>[w(x(ci))]),_:1},8,["class"])],10,["aria-label","onClick"])):me("v-if",!0)],2)):me("v-if",!0),x(f)?(_(),G("div",{key:1,id:x(p),class:Y(x(i).e("body"))},[Se(k.$slots,"default")],10,["id"])):me("v-if",!0),k.$slots.footer?(_(),G("div",{key:2,class:Y(x(i).e("footer"))},[Se(k.$slots,"footer")],2)):me("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[qe,x(d)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var UW=et(HW,[["__file","drawer.vue"]]);const cr=$t(UW),WW=ce({inheritAttrs:!1});function qW(t,e,n,o,r,s){return Se(t.$slots,"default")}var GW=et(WW,[["render",qW],["__file","collection.vue"]]);const KW=ce({name:"ElCollectionItem",inheritAttrs:!1});function JW(t,e,n,o,r,s){return Se(t.$slots,"default")}var YW=et(KW,[["render",JW],["__file","collection-item.vue"]]);const XW="data-el-collection-item",ZW=t=>{const e=`El${t}Collection`,n=`${e}Item`,o=Symbol(e),r=Symbol(n),s={...GW,name:e,setup(){const l=R(null),a=new Map;Bt(o,{itemMap:a,getItems:()=>{const c=x(l);if(!c)return[];const d=Array.from(c.querySelectorAll(`[${XW}]`));return[...a.values()].sort((h,p)=>d.indexOf(h.ref)-d.indexOf(p.ref))},collectionRef:l})}},i={...YW,name:n,setup(l,{attrs:a}){const u=R(null),c=Ve(o,void 0);Bt(r,{collectionItemRef:u}),st(()=>{const d=x(u);d&&c.itemMap.set(d,{ref:d,...a})}),un(()=>{const d=x(u);c.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:s,ElCollectionItem:i}},Om=tt({trigger:Ad.trigger,effect:{...Xo.effect,default:"light"},type:{type:_e(String)},placement:{type:_e(String),default:"bottom"},popperOptions:{type:_e(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:_e([Number,String]),default:0},maxHeight:{type:_e([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:_e(Object)},teleported:Xo.teleported});tt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:co}});tt({onKeydown:{type:_e(Function)}});ZW("Dropdown");const QW=tt({size:{type:String,values:Ma},disabled:Boolean}),eq=tt({...QW,model:Object,rules:{type:_e(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),tq={validate:(t,e,n)=>(Pe(t)||Ye(t))&&Pn(e)&&Ye(n)};function nq(){const t=R([]),e=V(()=>{if(!t.value.length)return"0";const s=Math.max(...t.value);return s?`${s}px`:""});function n(s){const i=t.value.indexOf(s);return i===-1&&e.value,i}function o(s,i){if(s&&i){const l=n(i);t.value.splice(l,1,s)}else s&&t.value.push(s)}function r(s){const i=n(s);i>-1&&t.value.splice(i,1)}return{autoLabelWidth:e,registerLabelWidth:o,deregisterLabelWidth:r}}const Xf=(t,e)=>{const n=Br(e);return n.length>0?t.filter(o=>o.prop&&n.includes(o.prop)):t},oq="ElForm",rq=ce({name:oq}),sq=ce({...rq,props:eq,emits:tq,setup(t,{expose:e,emit:n}){const o=t,r=[],s=Ar(),i=Fe("form"),l=V(()=>{const{labelPosition:y,inline:b}=o;return[i.b(),i.m(s.value||"default"),{[i.m(`label-${y}`)]:y,[i.m("inline")]:b}]}),a=y=>r.find(b=>b.prop===y),u=y=>{r.push(y)},c=y=>{y.prop&&r.splice(r.indexOf(y),1)},d=(y=[])=>{o.model&&Xf(r,y).forEach(b=>b.resetField())},f=(y=[])=>{Xf(r,y).forEach(b=>b.clearValidate())},h=V(()=>!!o.model),p=y=>{if(r.length===0)return[];const b=Xf(r,y);return b.length?b:[]},g=async y=>m(void 0,y),v=async(y=[])=>{if(!h.value)return!1;const b=p(y);if(b.length===0)return!0;let S={};for(const T of b)try{await T.validate("")}catch(O){S={...S,...O}}return Object.keys(S).length===0?!0:Promise.reject(S)},m=async(y=[],b)=>{const S=!Be(b);try{const T=await v(y);return T===!0&&await(b==null?void 0:b(T)),T}catch(T){if(T instanceof Error)throw T;const O=T;return o.scrollToError&&C(Object.keys(O)[0]),await(b==null?void 0:b(!1,O)),S&&Promise.reject(O)}},C=y=>{var b;const S=Xf(r,y)[0];S&&((b=S.$el)==null||b.scrollIntoView(o.scrollIntoViewOptions))};return De(()=>o.rules,()=>{o.validateOnRuleChange&&g().catch(y=>void 0)},{deep:!0}),Bt(rc,ut({...Ls(o),emit:n,resetFields:d,clearValidate:f,validateField:m,getField:a,addField:u,removeField:c,...nq()})),e({validate:g,validateField:m,resetFields:d,clearValidate:f,scrollToField:C,fields:r}),(y,b)=>(_(),G("form",{class:Y(x(l))},[Se(y.$slots,"default")],2))}});var iq=et(sq,[["__file","form.vue"]]);function Gl(){return Gl=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kh(t,e,n){return aq()?kh=Reflect.construct.bind():kh=function(r,s,i){var l=[null];l.push.apply(l,s);var a=Function.bind.apply(r,l),u=new a;return i&&Pd(u,i.prototype),u},kh.apply(null,arguments)}function uq(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function tb(t){var e=typeof Map=="function"?new Map:void 0;return tb=function(o){if(o===null||!uq(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(o))return e.get(o);e.set(o,r)}function r(){return kh(o,arguments,eb(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Pd(r,o)},tb(t)}var cq=/%[sdj%]/g,dq=function(){};function nb(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var o=n.field;e[o]=e[o]||[],e[o].push(n)}),e}function tr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o=s)return l;switch(l){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return l}});return i}return t}function fq(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Fn(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||fq(e)&&typeof t=="string"&&!t)}function hq(t,e,n){var o=[],r=0,s=t.length;function i(l){o.push.apply(o,l||[]),r++,r===s&&n(o)}t.forEach(function(l){e(l,i)})}function mx(t,e,n){var o=0,r=t.length;function s(i){if(i&&i.length){n(i);return}var l=o;o=o+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Oc={integer:function(e){return Oc.number(e)&&parseInt(e,10)===e},float:function(e){return Oc.number(e)&&!Oc.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Oc.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(wx.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(yq())},hex:function(e){return typeof e=="string"&&!!e.match(wx.hex)}},wq=function(e,n,o,r,s){if(e.required&&n===void 0){$M(e,n,o,r,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;i.indexOf(l)>-1?Oc[l](n)||r.push(tr(s.messages.types[l],e.fullField,e.type)):l&&typeof n!==e.type&&r.push(tr(s.messages.types[l],e.fullField,e.type))},Cq=function(e,n,o,r,s){var i=typeof e.len=="number",l=typeof e.min=="number",a=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(f?d="number":h?d="string":p&&(d="array"),!d)return!1;p&&(c=n.length),h&&(c=n.replace(u,"_").length),i?c!==e.len&&r.push(tr(s.messages[d].len,e.fullField,e.len)):l&&!a&&ce.max?r.push(tr(s.messages[d].max,e.fullField,e.max)):l&&a&&(ce.max)&&r.push(tr(s.messages[d].range,e.fullField,e.min,e.max))},$a="enum",xq=function(e,n,o,r,s){e[$a]=Array.isArray(e[$a])?e[$a]:[],e[$a].indexOf(n)===-1&&r.push(tr(s.messages[$a],e.fullField,e[$a].join(", ")))},Sq=function(e,n,o,r,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||r.push(tr(s.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(n)||r.push(tr(s.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Lt={required:$M,whitespace:bq,type:wq,range:Cq,enum:xq,pattern:Sq},Eq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n,"string")&&!e.required)return o();Lt.required(e,n,r,i,s,"string"),Fn(n,"string")||(Lt.type(e,n,r,i,s),Lt.range(e,n,r,i,s),Lt.pattern(e,n,r,i,s),e.whitespace===!0&&Lt.whitespace(e,n,r,i,s))}o(i)},Tq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),n!==void 0&&Lt.type(e,n,r,i,s)}o(i)},Oq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),n!==void 0&&(Lt.type(e,n,r,i,s),Lt.range(e,n,r,i,s))}o(i)},kq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),n!==void 0&&Lt.type(e,n,r,i,s)}o(i)},Mq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),Fn(n)||Lt.type(e,n,r,i,s)}o(i)},_q=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),n!==void 0&&(Lt.type(e,n,r,i,s),Lt.range(e,n,r,i,s))}o(i)},Aq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),n!==void 0&&(Lt.type(e,n,r,i,s),Lt.range(e,n,r,i,s))}o(i)},Pq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(n==null&&!e.required)return o();Lt.required(e,n,r,i,s,"array"),n!=null&&(Lt.type(e,n,r,i,s),Lt.range(e,n,r,i,s))}o(i)},Nq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),n!==void 0&&Lt.type(e,n,r,i,s)}o(i)},Iq="enum",Lq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s),n!==void 0&&Lt[Iq](e,n,r,i,s)}o(i)},Rq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n,"string")&&!e.required)return o();Lt.required(e,n,r,i,s),Fn(n,"string")||Lt.pattern(e,n,r,i,s)}o(i)},$q=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n,"date")&&!e.required)return o();if(Lt.required(e,n,r,i,s),!Fn(n,"date")){var a;n instanceof Date?a=n:a=new Date(n),Lt.type(e,a,r,i,s),a&&Lt.range(e,a.getTime(),r,i,s)}}o(i)},Dq=function(e,n,o,r,s){var i=[],l=Array.isArray(n)?"array":typeof n;Lt.required(e,n,r,i,s,l),o(i)},km=function(e,n,o,r,s){var i=e.type,l=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fn(n,i)&&!e.required)return o();Lt.required(e,n,r,l,s,i),Fn(n,i)||Lt.type(e,n,r,l,s)}o(l)},Vq=function(e,n,o,r,s){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(Fn(n)&&!e.required)return o();Lt.required(e,n,r,i,s)}o(i)},Jc={string:Eq,method:Tq,number:Oq,boolean:kq,regexp:Mq,integer:_q,float:Aq,array:Pq,object:Nq,enum:Lq,pattern:Rq,date:$q,url:km,hex:km,email:km,required:Dq,any:Vq};function ob(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var rb=ob(),yf=function(){function t(n){this.rules=null,this._messages=rb,this.define(n)}var e=t.prototype;return e.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(s){var i=o[s];r.rules[s]=Array.isArray(i)?i:[i]})},e.messages=function(o){return o&&(this._messages=yx(ob(),o)),this._messages},e.validate=function(o,r,s){var i=this;r===void 0&&(r={}),s===void 0&&(s=function(){});var l=o,a=r,u=s;if(typeof a=="function"&&(u=a,a={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function c(g){var v=[],m={};function C(b){if(Array.isArray(b)){var S;v=(S=v).concat.apply(S,b)}else v.push(b)}for(var y=0;y");const r=Fe("form"),s=R(),i=R(0),l=()=>{var c;if((c=s.value)!=null&&c.firstElementChild){const d=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},a=(c="update")=>{lt(()=>{e.default&&t.isAutoWidth&&(c==="update"?i.value=l():c==="remove"&&(n==null||n.deregisterLabelWidth(i.value)))})},u=()=>a("update");return st(()=>{u()}),un(()=>{a("remove")}),Sa(()=>u()),De(i,(c,d)=>{t.updateAll&&(n==null||n.registerLabelWidth(c,d))}),so(V(()=>{var c,d;return(d=(c=s.value)==null?void 0:c.firstElementChild)!=null?d:null}),u),()=>{var c,d;if(!e)return null;const{isAutoWidth:f}=t;if(f){const h=n==null?void 0:n.autoLabelWidth,p=o==null?void 0:o.hasLabel,g={};if(p&&h&&h!=="auto"){const v=Math.max(0,Number.parseInt(h,10)-i.value),C=(o.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";v&&(g[C]=`${v}px`)}return w("div",{ref:s,class:[r.be("item","label-wrap")],style:g},[(c=e.default)==null?void 0:c.call(e)])}else return w(Le,{ref:s},[(d=e.default)==null?void 0:d.call(e)])}}});const jq=ce({name:"ElFormItem"}),Hq=ce({...jq,props:Fq,setup(t,{expose:e}){const n=t,o=ls(),r=Ve(rc,void 0),s=Ve(pa,void 0),i=Ar(void 0,{formItem:!1}),l=Fe("form-item"),a=Ms().value,u=R([]),c=R(""),d=mz(c,100),f=R(""),h=R();let p,g=!1;const v=V(()=>n.labelPosition||(r==null?void 0:r.labelPosition)),m=V(()=>{if(v.value==="top")return{};const ne=_r(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return ne?{width:ne}:{}}),C=V(()=>{if(v.value==="top"||r!=null&&r.inline)return{};if(!n.label&&!n.labelWidth&&I)return{};const ne=_r(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!o.label?{marginLeft:ne}:{}}),y=V(()=>[l.b(),l.m(i.value),l.is("error",c.value==="error"),l.is("validating",c.value==="validating"),l.is("success",c.value==="success"),l.is("required",N.value||n.required),l.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:r==null?void 0:r.statusIcon,[l.m(`label-${v.value}`)]:v.value}]),b=V(()=>Pn(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),S=V(()=>[l.e("error"),{[l.em("error","inline")]:b.value}]),T=V(()=>n.prop?Ye(n.prop)?n.prop:n.prop.join("."):""),O=V(()=>!!(n.label||o.label)),k=V(()=>n.for||(u.value.length===1?u.value[0]:void 0)),P=V(()=>!k.value&&O.value),I=!!s,M=V(()=>{const ne=r==null?void 0:r.model;if(!(!ne||!n.prop))return Sh(ne,n.prop).value}),D=V(()=>{const{required:ne}=n,Z=[];n.rules&&Z.push(...Br(n.rules));const ye=r==null?void 0:r.rules;if(ye&&n.prop){const ke=Sh(ye,n.prop).value;ke&&Z.push(...Br(ke))}if(ne!==void 0){const ke=Z.map((Xe,$)=>[Xe,$]).filter(([Xe])=>Object.keys(Xe).includes("required"));if(ke.length>0)for(const[Xe,$]of ke)Xe.required!==ne&&(Z[$]={...Xe,required:ne});else Z.push({required:ne})}return Z}),J=V(()=>D.value.length>0),oe=ne=>D.value.filter(ye=>!ye.trigger||!ne?!0:Pe(ye.trigger)?ye.trigger.includes(ne):ye.trigger===ne).map(({trigger:ye,...ke})=>ke),N=V(()=>D.value.some(ne=>ne.required)),A=V(()=>{var ne;return d.value==="error"&&n.showMessage&&((ne=r==null?void 0:r.showMessage)!=null?ne:!0)}),K=V(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),j=ne=>{c.value=ne},F=ne=>{var Z,ye;const{errors:ke,fields:Xe}=ne;j("error"),f.value=ke?(ye=(Z=ke==null?void 0:ke[0])==null?void 0:Z.message)!=null?ye:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,f.value)},le=()=>{j("success"),r==null||r.emit("validate",n.prop,!0,"")},ue=async ne=>{const Z=T.value;return new yf({[Z]:ne}).validate({[Z]:M.value},{firstFields:!0}).then(()=>(le(),!0)).catch(ke=>(F(ke),Promise.reject(ke)))},se=async(ne,Z)=>{if(g||!n.prop)return!1;const ye=Be(Z);if(!J.value)return Z==null||Z(!1),!1;const ke=oe(ne);return ke.length===0?(Z==null||Z(!0),!0):(j("validating"),ue(ke).then(()=>(Z==null||Z(!0),!0)).catch(Xe=>{const{fields:$}=Xe;return Z==null||Z(!1,$),ye?!1:Promise.reject($)}))},Ee=()=>{j(""),f.value="",g=!1},fe=async()=>{const ne=r==null?void 0:r.model;if(!ne||!n.prop)return;const Z=Sh(ne,n.prop);g=!0,Z.value=Ed(p),await lt(),Ee(),g=!1},ve=ne=>{u.value.includes(ne)||u.value.push(ne)},Oe=ne=>{u.value=u.value.filter(Z=>Z!==ne)};De(()=>n.error,ne=>{f.value=ne||"",j(ne?"error":"")},{immediate:!0}),De(()=>n.validateStatus,ne=>j(ne||""));const ee=ut({...Ls(n),$el:h,size:i,validateState:c,labelId:a,inputIds:u,isGroup:P,hasLabel:O,fieldValue:M,addInputId:ve,removeInputId:Oe,resetField:fe,clearValidate:Ee,validate:se});return Bt(pa,ee),st(()=>{n.prop&&(r==null||r.addField(ee),p=Ed(M.value))}),un(()=>{r==null||r.removeField(ee)}),e({size:i,validateMessage:f,validateState:c,validate:se,clearValidate:Ee,resetField:fe}),(ne,Z)=>{var ye;return _(),G("div",{ref_key:"formItemRef",ref:h,class:Y(x(y)),role:x(P)?"group":void 0,"aria-labelledby":x(P)?x(a):void 0},[w(x(zq),{"is-auto-width":x(m).width==="auto","update-all":((ye=x(r))==null?void 0:ye.labelWidth)==="auto"},{default:E(()=>[x(O)?(_(),pe(Ut(x(k)?"label":"div"),{key:0,id:x(a),for:x(k),class:Y(x(l).e("label")),style:ft(x(m))},{default:E(()=>[Se(ne.$slots,"label",{label:x(K)},()=>[U(Q(x(K)),1)])]),_:3},8,["id","for","class","style"])):me("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),L("div",{class:Y(x(l).e("content")),style:ft(x(C))},[Se(ne.$slots,"default"),w(yT,{name:`${x(l).namespace.value}-zoom-in-top`},{default:E(()=>[x(A)?Se(ne.$slots,"error",{key:0,error:f.value},()=>[L("div",{class:Y(x(S))},Q(f.value),3)]):me("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var DM=et(Hq,[["__file","form-item.vue"]]);const zn=$t(iq,{FormItem:DM}),jn=po(DM),Uq=tt({urlList:{type:_e(Array),default:()=>Io([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:_e(String)}}),Wq={close:()=>!0,switch:t=>bt(t),rotate:t=>bt(t)},qq=ce({name:"ElImageViewer"}),Gq=ce({...qq,props:Uq,emits:Wq,setup(t,{expose:e,emit:n}){var o;const r=t,s={CONTAIN:{name:"contain",icon:xt(Tj)},ORIGINAL:{name:"original",icon:xt(Fj)}},{t:i}=us(),l=Fe("image-viewer"),{nextZIndex:a}=hg(),u=R(),c=R([]),d=nE(),f=R(!0),h=R(r.initialIndex),p=rr(s.CONTAIN),g=R({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=R((o=r.zIndex)!=null?o:a()),m=V(()=>{const{urlList:se}=r;return se.length<=1}),C=V(()=>h.value===0),y=V(()=>h.value===r.urlList.length-1),b=V(()=>r.urlList[h.value]),S=V(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!r.infinite&&C.value)]),T=V(()=>[l.e("btn"),l.e("next"),l.is("disabled",!r.infinite&&y.value)]),O=V(()=>{const{scale:se,deg:Ee,offsetX:fe,offsetY:ve,enableTransition:Oe}=g.value;let ee=fe/se,ne=ve/se;const Z=Ee*Math.PI/180,ye=Math.cos(Z),ke=Math.sin(Z);ee=ee*ye+ne*ke,ne=ne*ye-fe/se*ke;const Xe={transform:`scale(${se}) rotate(${Ee}deg) translate(${ee}px, ${ne}px)`,transition:Oe?"transform .3s":""};return p.value.name===s.CONTAIN.name&&(Xe.maxWidth=Xe.maxHeight="100%"),Xe});function k(){I(),n("close")}function P(){const se=xh(fe=>{switch(fe.code){case Nt.esc:r.closeOnPressEscape&&k();break;case Nt.space:N();break;case Nt.left:K();break;case Nt.up:F("zoomIn");break;case Nt.right:j();break;case Nt.down:F("zoomOut");break}}),Ee=xh(fe=>{const ve=fe.deltaY||fe.deltaX;F(ve<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});d.run(()=>{yn(document,"keydown",se),yn(document,"wheel",Ee)})}function I(){d.stop()}function M(){f.value=!1}function D(se){f.value=!1,se.target.alt=i("el.image.error")}function J(se){if(f.value||se.button!==0||!u.value)return;g.value.enableTransition=!1;const{offsetX:Ee,offsetY:fe}=g.value,ve=se.pageX,Oe=se.pageY,ee=xh(Z=>{g.value={...g.value,offsetX:Ee+Z.pageX-ve,offsetY:fe+Z.pageY-Oe}}),ne=yn(document,"mousemove",ee);yn(document,"mouseup",()=>{ne()}),se.preventDefault()}function oe(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function N(){if(f.value)return;const se=ep(s),Ee=Object.values(s),fe=p.value.name,Oe=(Ee.findIndex(ee=>ee.name===fe)+1)%se.length;p.value=s[se[Oe]],oe()}function A(se){const Ee=r.urlList.length;h.value=(se+Ee)%Ee}function K(){C.value&&!r.infinite||A(h.value-1)}function j(){y.value&&!r.infinite||A(h.value+1)}function F(se,Ee={}){if(f.value)return;const{minScale:fe,maxScale:ve}=r,{zoomRate:Oe,rotateDeg:ee,enableTransition:ne}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...Ee};switch(se){case"zoomOut":g.value.scale>fe&&(g.value.scale=Number.parseFloat((g.value.scale/Oe).toFixed(3)));break;case"zoomIn":g.value.scale{lt(()=>{const se=c.value[0];se!=null&&se.complete||(f.value=!0)})}),De(h,se=>{oe(),n("switch",se)}),st(()=>{P()}),e({setActiveItem:A}),(se,Ee)=>(_(),pe(x(Eg),{to:"body",disabled:!se.teleported},{default:E(()=>[w(Go,{name:"viewer-fade",appear:""},{default:E(()=>[L("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:Y(x(l).e("wrapper")),style:ft({zIndex:v.value})},[w(x(pf),{loop:"",trapped:"","focus-trap-el":u.value,"focus-start-el":"container",onFocusoutPrevented:le,onReleaseRequested:ue},{default:E(()=>[L("div",{class:Y(x(l).e("mask")),onClick:At(fe=>se.hideOnClickModal&&k(),["self"])},null,10,["onClick"]),me(" CLOSE "),L("span",{class:Y([x(l).e("btn"),x(l).e("close")]),onClick:k},[w(x(rt),null,{default:E(()=>[w(x(ci))]),_:1})],2),me(" ARROW "),x(m)?me("v-if",!0):(_(),G(Le,{key:0},[L("span",{class:Y(x(S)),onClick:K},[w(x(rt),null,{default:E(()=>[w(x(Ek))]),_:1})],2),L("span",{class:Y(x(T)),onClick:j},[w(x(rt),null,{default:E(()=>[w(x(ff))]),_:1})],2)],64)),me(" ACTIONS "),L("div",{class:Y([x(l).e("btn"),x(l).e("actions")])},[L("div",{class:Y(x(l).e("actions__inner"))},[w(x(rt),{onClick:fe=>F("zoomOut")},{default:E(()=>[w(x(Jj))]),_:1},8,["onClick"]),w(x(rt),{onClick:fe=>F("zoomIn")},{default:E(()=>[w(x(_k))]),_:1},8,["onClick"]),L("i",{class:Y(x(l).e("actions__divider"))},null,2),w(x(rt),{onClick:N},{default:E(()=>[(_(),pe(Ut(x(p).icon)))]),_:1}),L("i",{class:Y(x(l).e("actions__divider"))},null,2),w(x(rt),{onClick:fe=>F("anticlockwise")},{default:E(()=>[w(x($j))]),_:1},8,["onClick"]),w(x(rt),{onClick:fe=>F("clockwise")},{default:E(()=>[w(x(Vj))]),_:1},8,["onClick"])],2)],2),me(" CANVAS "),L("div",{class:Y(x(l).e("canvas"))},[(_(!0),G(Le,null,yt(se.urlList,(fe,ve)=>$e((_(),G("img",{ref_for:!0,ref:Oe=>c.value[ve]=Oe,key:fe,src:fe,style:ft(x(O)),class:Y(x(l).e("img")),crossorigin:se.crossorigin,onLoad:M,onError:D,onMousedown:J},null,46,["src","crossorigin"])),[[qe,ve===h.value]])),128))],2),Se(se.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var Kq=et(Gq,[["__file","image-viewer.vue"]]);const Jq=$t(Kq),Yq=tt({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:_e([String,Object])},previewSrcList:{type:_e(Array),default:()=>Io([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:_e(String)}}),Xq={load:t=>t instanceof Event,error:t=>t instanceof Event,switch:t=>bt(t),close:()=>!0,show:()=>!0},Zq=ce({name:"ElImage",inheritAttrs:!1}),Qq=ce({...Zq,props:Yq,emits:Xq,setup(t,{emit:e}){const n=t;let o="";const{t:r}=us(),s=Fe("image"),i=HE(),l=V(()=>Td(Object.entries(i).filter(([j])=>/^(data-|on[A-Z])/i.test(j)||["id","style"].includes(j)))),a=Ik({excludeListeners:!0,excludeKeys:V(()=>Object.keys(l.value))}),u=R(),c=R(!1),d=R(!0),f=R(!1),h=R(),p=R(),g=Tt&&"loading"in HTMLImageElement.prototype;let v,m;const C=V(()=>[s.e("inner"),b.value&&s.e("preview"),d.value&&s.is("loading")]),y=V(()=>{const{fit:j}=n;return Tt&&j?{objectFit:j}:{}}),b=V(()=>{const{previewSrcList:j}=n;return Pe(j)&&j.length>0}),S=V(()=>{const{previewSrcList:j,initialIndex:F}=n;let le=F;return F>j.length-1&&(le=0),le}),T=V(()=>n.loading==="eager"?!1:!g&&n.loading==="lazy"||n.lazy),O=()=>{Tt&&(d.value=!0,c.value=!1,u.value=n.src)};function k(j){d.value=!1,c.value=!1,e("load",j)}function P(j){d.value=!1,c.value=!0,e("error",j)}function I(){uW(h.value,p.value)&&(O(),J())}const M=vz(I,200,!0);async function D(){var j;if(!Tt)return;await lt();const{scrollContainer:F}=n;sr(F)?p.value=F:Ye(F)&&F!==""?p.value=(j=document.querySelector(F))!=null?j:void 0:h.value&&(p.value=Qz(h.value)),p.value&&(v=yn(p,"scroll",M),setTimeout(()=>I(),100))}function J(){!Tt||!p.value||!M||(v==null||v(),p.value=void 0)}function oe(j){if(j.ctrlKey){if(j.deltaY<0)return j.preventDefault(),!1;if(j.deltaY>0)return j.preventDefault(),!1}}function N(){b.value&&(m=yn("wheel",oe,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,e("show"))}function A(){m==null||m(),document.body.style.overflow=o,f.value=!1,e("close")}function K(j){e("switch",j)}return De(()=>n.src,()=>{T.value?(d.value=!0,c.value=!1,J(),D()):O()}),st(()=>{T.value?D():O()}),(j,F)=>(_(),G("div",ho({ref_key:"container",ref:h},x(l),{class:[x(s).b(),j.$attrs.class]}),[c.value?Se(j.$slots,"error",{key:0},()=>[L("div",{class:Y(x(s).e("error"))},Q(x(r)("el.image.error")),3)]):(_(),G(Le,{key:1},[u.value!==void 0?(_(),G("img",ho({key:0},x(a),{src:u.value,loading:j.loading,style:x(y),class:x(C),crossorigin:j.crossorigin,onClick:N,onLoad:k,onError:P}),null,16,["src","loading","crossorigin"])):me("v-if",!0),d.value?(_(),G("div",{key:1,class:Y(x(s).e("wrapper"))},[Se(j.$slots,"placeholder",{},()=>[L("div",{class:Y(x(s).e("placeholder"))},null,2)])],2)):me("v-if",!0)],64)),x(b)?(_(),G(Le,{key:2},[f.value?(_(),pe(x(Jq),{key:0,"z-index":j.zIndex,"initial-index":x(S),infinite:j.infinite,"zoom-rate":j.zoomRate,"min-scale":j.minScale,"max-scale":j.maxScale,"url-list":j.previewSrcList,crossorigin:j.crossorigin,"hide-on-click-modal":j.hideOnClickModal,teleported:j.previewTeleported,"close-on-press-escape":j.closeOnPressEscape,onClose:A,onSwitch:K},{default:E(()=>[j.$slots.viewer?(_(),G("div",{key:0},[Se(j.$slots,"viewer")])):me("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):me("v-if",!0)],64)):me("v-if",!0)],16))}});var eG=et(Qq,[["__file","image.vue"]]);const VM=$t(eG),tG=tt({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:wi,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||bt(t)||["min","max"].includes(t),default:null},name:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0},...Ci(["ariaLabel"])}),nG={[df]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[Eh]:t=>bt(t)||jo(t),[on]:t=>bt(t)||jo(t)},oG=ce({name:"ElInputNumber"}),rG=ce({...oG,props:tG,emits:nG,setup(t,{expose:e,emit:n}){const o=t,{t:r}=us(),s=Fe("input-number"),i=R(),l=ut({currentValue:o.modelValue,userInput:null}),{formItem:a}=xl(),u=V(()=>bt(o.modelValue)&&o.modelValue<=o.min),c=V(()=>bt(o.modelValue)&&o.modelValue>=o.max),d=V(()=>{const N=m(o.step);return En(o.precision)?Math.max(m(o.modelValue),N):(N>o.precision,o.precision)}),f=V(()=>o.controls&&o.controlsPosition==="right"),h=Ar(),p=Ds(),g=V(()=>{if(l.userInput!==null)return l.userInput;let N=l.currentValue;if(jo(N))return"";if(bt(N)){if(Number.isNaN(N))return"";En(o.precision)||(N=N.toFixed(o.precision))}return N}),v=(N,A)=>{if(En(A)&&(A=d.value),A===0)return Math.round(N);let K=String(N);const j=K.indexOf(".");if(j===-1||!K.replace(".","").split("")[j+A])return N;const ue=K.length;return K.charAt(ue-1)==="5"&&(K=`${K.slice(0,Math.max(0,ue-1))}6`),Number.parseFloat(Number(K).toFixed(A))},m=N=>{if(jo(N))return 0;const A=N.toString(),K=A.indexOf(".");let j=0;return K!==-1&&(j=A.length-K-1),j},C=(N,A=1)=>bt(N)?v(N+o.step*A):l.currentValue,y=()=>{if(o.readonly||p.value||c.value)return;const N=Number(g.value)||0,A=C(N);T(A),n(Eh,l.currentValue),J()},b=()=>{if(o.readonly||p.value||u.value)return;const N=Number(g.value)||0,A=C(N,-1);T(A),n(Eh,l.currentValue),J()},S=(N,A)=>{const{max:K,min:j,step:F,precision:le,stepStrictly:ue,valueOnClear:se}=o;KK||EeK?K:j,A&&n(on,Ee)),Ee},T=(N,A=!0)=>{var K;const j=l.currentValue,F=S(N);if(!A){n(on,F);return}j===F&&N||(l.userInput=null,n(on,F),j!==F&&n(df,F,j),o.validateEvent&&((K=a==null?void 0:a.validate)==null||K.call(a,"change").catch(le=>void 0)),l.currentValue=F)},O=N=>{l.userInput=N;const A=N===""?null:Number(N);n(Eh,A),T(A,!1)},k=N=>{const A=N!==""?Number(N):"";(bt(A)&&!Number.isNaN(A)||N==="")&&T(A),J(),l.userInput=null},P=()=>{var N,A;(A=(N=i.value)==null?void 0:N.focus)==null||A.call(N)},I=()=>{var N,A;(A=(N=i.value)==null?void 0:N.blur)==null||A.call(N)},M=N=>{n("focus",N)},D=N=>{var A,K;l.userInput=null,Nk()&&l.currentValue===null&&((A=i.value)!=null&&A.input)&&(i.value.input.value=""),n("blur",N),o.validateEvent&&((K=a==null?void 0:a.validate)==null||K.call(a,"blur").catch(j=>void 0))},J=()=>{l.currentValue!==o.modelValue&&(l.currentValue=o.modelValue)},oe=N=>{document.activeElement===N.target&&N.preventDefault()};return De(()=>o.modelValue,(N,A)=>{const K=S(N,!0);l.userInput===null&&K!==A&&(l.currentValue=K)},{immediate:!0}),st(()=>{var N;const{min:A,max:K,modelValue:j}=o,F=(N=i.value)==null?void 0:N.input;if(F.setAttribute("role","spinbutton"),Number.isFinite(K)?F.setAttribute("aria-valuemax",String(K)):F.removeAttribute("aria-valuemax"),Number.isFinite(A)?F.setAttribute("aria-valuemin",String(A)):F.removeAttribute("aria-valuemin"),F.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),F.setAttribute("aria-disabled",String(p.value)),!bt(j)&&j!=null){let le=Number(j);Number.isNaN(le)&&(le=null),n(on,le)}F.addEventListener("wheel",oe,{passive:!1})}),Sa(()=>{var N,A;const K=(N=i.value)==null?void 0:N.input;K==null||K.setAttribute("aria-valuenow",`${(A=l.currentValue)!=null?A:""}`)}),e({focus:P,blur:I}),(N,A)=>(_(),G("div",{class:Y([x(s).b(),x(s).m(x(h)),x(s).is("disabled",x(p)),x(s).is("without-controls",!N.controls),x(s).is("controls-right",x(f))]),onDragstart:At(()=>{},["prevent"])},[N.controls?$e((_(),G("span",{key:0,role:"button","aria-label":x(r)("el.inputNumber.decrease"),class:Y([x(s).e("decrease"),x(s).is("disabled",x(u))]),onKeydown:Wn(b,["enter"])},[Se(N.$slots,"decrease-icon",{},()=>[w(x(rt),null,{default:E(()=>[x(f)?(_(),pe(x(vg),{key:0})):(_(),pe(x(Pj),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[x(gx),b]]):me("v-if",!0),N.controls?$e((_(),G("span",{key:1,role:"button","aria-label":x(r)("el.inputNumber.increase"),class:Y([x(s).e("increase"),x(s).is("disabled",x(c))]),onKeydown:Wn(y,["enter"])},[Se(N.$slots,"increase-icon",{},()=>[w(x(rt),null,{default:E(()=>[x(f)?(_(),pe(x(Tk),{key:0})):(_(),pe(x(kk),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[x(gx),y]]):me("v-if",!0),w(x(Cn),{id:N.id,ref_key:"input",ref:i,type:"number",step:N.step,"model-value":x(g),placeholder:N.placeholder,readonly:N.readonly,disabled:x(p),size:x(h),max:N.max,min:N.min,name:N.name,"aria-label":N.ariaLabel,"validate-event":!1,onKeydown:[Wn(At(y,["prevent"]),["up"]),Wn(At(b,["prevent"]),["down"])],onBlur:D,onFocus:M,onInput:O,onChange:k},Hh({_:2},[N.$slots.prefix?{name:"prefix",fn:E(()=>[Se(N.$slots,"prefix")])}:void 0,N.$slots.suffix?{name:"suffix",fn:E(()=>[Se(N.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var sG=et(rG,[["__file","input-number.vue"]]);const wf=$t(sG),iG=tt({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:co}}),lG={click:t=>t instanceof MouseEvent},aG=ce({name:"ElLink"}),uG=ce({...aG,props:iG,emits:lG,setup(t,{emit:e}){const n=t,o=Fe("link"),r=V(()=>[o.b(),o.m(n.type),o.is("disabled",n.disabled),o.is("underline",n.underline&&!n.disabled)]);function s(i){n.disabled||e("click",i)}return(i,l)=>(_(),G("a",{class:Y(x(r)),href:i.disabled||!i.href?void 0:i.href,target:i.disabled||!i.href?void 0:i.target,onClick:s},[i.icon?(_(),pe(x(rt),{key:0},{default:E(()=>[(_(),pe(Ut(i.icon)))]),_:1})):me("v-if",!0),i.$slots.default?(_(),G("span",{key:1,class:Y(x(o).e("inner"))},[Se(i.$slots,"default")],2)):me("v-if",!0),i.$slots.icon?Se(i.$slots,"icon",{key:2}):me("v-if",!0)],10,["href","target"]))}});var cG=et(uG,[["__file","link.vue"]]);const dG=$t(cG);let fG=class{constructor(e,n){this.parent=e,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let r=!1;switch(o.code){case Nt.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case Nt.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case Nt.tab:{Th(e,"mouseleave");break}case Nt.enter:case Nt.numpadEnter:case Nt.space:{r=!0,o.currentTarget.click();break}}return r&&(o.preventDefault(),o.stopPropagation()),!1})})}},hG=class{constructor(e,n){this.domNode=e,this.submenu=null,this.submenu=null,this.init(n)}init(e){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${e}-menu`);n&&(this.submenu=new fG(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let n=!1;switch(e.code){case Nt.down:{Th(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Nt.up:{Th(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Nt.tab:{Th(e.currentTarget,"mouseleave");break}case Nt.enter:case Nt.numpadEnter:case Nt.space:{n=!0,e.currentTarget.click();break}}n&&e.preventDefault()})}},pG=class{constructor(e,n){this.domNode=e,this.init(n)}init(e){const n=this.domNode.childNodes;Array.from(n).forEach(o=>{o.nodeType===1&&new hG(o,e)})}};const gG=ce({name:"ElMenuCollapseTransition",setup(){const t=Fe("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,o){Hr(n,`${t.namespace.value}-opacity-transition`),n.style.opacity="1",o()},onAfterEnter(n){ir(n,`${t.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Ji(n,t.m("collapse"))?(ir(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Hr(n,t.m("collapse"))):(Hr(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ir(n,t.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Hr(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function mG(t,e,n,o,r,s){return _(),pe(Go,ho({mode:"out-in"},t.listeners),{default:E(()=>[Se(t.$slots,"default")]),_:3},16)}var vG=et(gG,[["render",mG],["__file","menu-collapse-transition.vue"]]);function BM(t,e){const n=V(()=>{let r=t.parent;const s=[e.value];for(;r.type.name!=="ElMenu";)r.props.index&&s.unshift(r.props.index),r=r.parent;return s});return{parentMenu:V(()=>{let r=t.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:n}}function bG(t){return V(()=>{const n=t.backgroundColor;return n?new lM(n).shade(20).toString():""})}const FM=(t,e)=>{const n=Fe("menu");return V(()=>n.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":bG(t).value||"","active-color":t.activeTextColor||"",level:`${e}`}))},yG=tt({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:co},expandOpenIcon:{type:co},collapseCloseIcon:{type:co},collapseOpenIcon:{type:co}}),Mm="ElSubMenu";var py=ce({name:Mm,props:yG,setup(t,{slots:e,expose:n}){const o=gt(),{indexPath:r,parentMenu:s}=BM(o,V(()=>t.index)),i=Fe("menu"),l=Fe("sub-menu"),a=Ve("rootMenu");a||Ro(Mm,"can not inject root menu");const u=Ve(`subMenu:${s.value.uid}`);u||Ro(Mm,"can not inject sub menu");const c=R({}),d=R({});let f;const h=R(!1),p=R(),g=R(null),v=V(()=>k.value==="horizontal"&&C.value?"bottom-start":"right-start"),m=V(()=>k.value==="horizontal"&&C.value||k.value==="vertical"&&!a.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?T.value?t.expandOpenIcon:t.expandCloseIcon:vg:t.collapseCloseIcon&&t.collapseOpenIcon?T.value?t.collapseOpenIcon:t.collapseCloseIcon:ff),C=V(()=>u.level===0),y=V(()=>{const le=t.teleported;return le===void 0?C.value:le}),b=V(()=>a.props.collapse?`${i.namespace.value}-zoom-in-left`:`${i.namespace.value}-zoom-in-top`),S=V(()=>k.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),T=V(()=>a.openedMenus.includes(t.index)),O=V(()=>{let le=!1;return Object.values(c.value).forEach(ue=>{ue.active&&(le=!0)}),Object.values(d.value).forEach(ue=>{ue.active&&(le=!0)}),le}),k=V(()=>a.props.mode),P=ut({index:t.index,indexPath:r,active:O}),I=FM(a.props,u.level+1),M=V(()=>{var le;return(le=t.popperOffset)!=null?le:a.props.popperOffset}),D=V(()=>{var le;return(le=t.popperClass)!=null?le:a.props.popperClass}),J=V(()=>{var le;return(le=t.showTimeout)!=null?le:a.props.showTimeout}),oe=V(()=>{var le;return(le=t.hideTimeout)!=null?le:a.props.hideTimeout}),N=()=>{var le,ue,se;return(se=(ue=(le=g.value)==null?void 0:le.popperRef)==null?void 0:ue.popperInstanceRef)==null?void 0:se.destroy()},A=le=>{le||N()},K=()=>{a.props.menuTrigger==="hover"&&a.props.mode==="horizontal"||a.props.collapse&&a.props.mode==="vertical"||t.disabled||a.handleSubMenuClick({index:t.index,indexPath:r.value,active:O.value})},j=(le,ue=J.value)=>{var se;if(le.type!=="focus"){if(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||t.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,f==null||f(),{stop:f}=Su(()=>{a.openMenu(t.index,r.value)},ue),y.value&&((se=s.value.vnode.el)==null||se.dispatchEvent(new MouseEvent("mouseenter")))}},F=(le=!1)=>{var ue;if(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"){u.mouseInChild.value=!1;return}f==null||f(),u.mouseInChild.value=!1,{stop:f}=Su(()=>!h.value&&a.closeMenu(t.index,r.value),oe.value),y.value&&le&&((ue=u.handleMouseleave)==null||ue.call(u,!0))};De(()=>a.props.collapse,le=>A(!!le));{const le=se=>{d.value[se.index]=se},ue=se=>{delete d.value[se.index]};Bt(`subMenu:${o.uid}`,{addSubMenu:le,removeSubMenu:ue,handleMouseleave:F,mouseInChild:h,level:u.level+1})}return n({opened:T}),st(()=>{a.addSubMenu(P),u.addSubMenu(P)}),un(()=>{u.removeSubMenu(P),a.removeSubMenu(P)}),()=>{var le;const ue=[(le=e.title)==null?void 0:le.call(e),Ue(rt,{class:l.e("icon-arrow"),style:{transform:T.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&a.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ye(m.value)?Ue(o.appContext.components[m.value]):Ue(m.value)})],se=a.isMenuPopup?Ue(go,{ref:g,visible:T.value,effect:"light",pure:!0,offset:M.value,showArrow:!1,persistent:!0,popperClass:D.value,placement:v.value,teleported:y.value,fallbackPlacements:S.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var Ee;return Ue("div",{class:[i.m(k.value),i.m("popup-container"),D.value],onMouseenter:fe=>j(fe,100),onMouseleave:()=>F(!0),onFocus:fe=>j(fe,100)},[Ue("ul",{class:[i.b(),i.m("popup"),i.m(`popup-${v.value}`)],style:I.value},[(Ee=e.default)==null?void 0:Ee.call(e)])])},default:()=>Ue("div",{class:l.e("title"),onClick:K},ue)}):Ue(Le,{},[Ue("div",{class:l.e("title"),ref:p,onClick:K},ue),Ue(aW,{},{default:()=>{var Ee;return $e(Ue("ul",{role:"menu",class:[i.b(),i.m("inline")],style:I.value},[(Ee=e.default)==null?void 0:Ee.call(e)]),[[qe,T.value]])}})]);return Ue("li",{class:[l.b(),l.is("active",O.value),l.is("opened",T.value),l.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:j,onMouseleave:()=>F(),onFocus:j},[se])}}});const wG=tt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:_e(Array),default:()=>Io([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:co,default:()=>Ij},popperEffect:{type:_e(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),_m=t=>Pe(t)&&t.every(e=>Ye(e)),CG={close:(t,e)=>Ye(t)&&_m(e),open:(t,e)=>Ye(t)&&_m(e),select:(t,e,n,o)=>Ye(t)&&_m(e)&&pt(n)&&(o===void 0||o instanceof Promise)};var xG=ce({name:"ElMenu",props:wG,emits:CG,setup(t,{emit:e,slots:n,expose:o}){const r=gt(),s=r.appContext.config.globalProperties.$router,i=R(),l=Fe("menu"),a=Fe("sub-menu"),u=R(-1),c=R(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),d=R(t.defaultActive),f=R({}),h=R({}),p=V(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),g=()=>{const N=d.value&&f.value[d.value];if(!N||t.mode==="horizontal"||t.collapse)return;N.indexPath.forEach(K=>{const j=h.value[K];j&&v(K,j.indexPath)})},v=(N,A)=>{c.value.includes(N)||(t.uniqueOpened&&(c.value=c.value.filter(K=>A.includes(K))),c.value.push(N),e("open",N,A))},m=N=>{const A=c.value.indexOf(N);A!==-1&&c.value.splice(A,1)},C=(N,A)=>{m(N),e("close",N,A)},y=({index:N,indexPath:A})=>{c.value.includes(N)?C(N,A):v(N,A)},b=N=>{(t.mode==="horizontal"||t.collapse)&&(c.value=[]);const{index:A,indexPath:K}=N;if(!(jo(A)||jo(K)))if(t.router&&s){const j=N.route||A,F=s.push(j).then(le=>(le||(d.value=A),le));e("select",A,K,{index:A,indexPath:K,route:j},F)}else d.value=A,e("select",A,K,{index:A,indexPath:K})},S=N=>{const A=f.value,K=A[N]||d.value&&A[d.value]||A[t.defaultActive];K?d.value=K.index:d.value=N},T=N=>{const A=getComputedStyle(N),K=Number.parseInt(A.marginLeft,10),j=Number.parseInt(A.marginRight,10);return N.offsetWidth+K+j||0},O=()=>{var N,A;if(!i.value)return-1;const K=Array.from((A=(N=i.value)==null?void 0:N.childNodes)!=null?A:[]).filter(ve=>ve.nodeName!=="#comment"&&(ve.nodeName!=="#text"||ve.nodeValue)),j=64,F=getComputedStyle(i.value),le=Number.parseInt(F.paddingLeft,10),ue=Number.parseInt(F.paddingRight,10),se=i.value.clientWidth-le-ue;let Ee=0,fe=0;return K.forEach((ve,Oe)=>{Ee+=T(ve),Ee<=se-j&&(fe=Oe+1)}),fe===K.length?-1:fe},k=N=>h.value[N].indexPath,P=(N,A=33.34)=>{let K;return()=>{K&&clearTimeout(K),K=setTimeout(()=>{N()},A)}};let I=!0;const M=()=>{if(u.value===O())return;const N=()=>{u.value=-1,lt(()=>{u.value=O()})};I?N():P(N)(),I=!1};De(()=>t.defaultActive,N=>{f.value[N]||(d.value=""),S(N)}),De(()=>t.collapse,N=>{N&&(c.value=[])}),De(f.value,g);let D;Gr(()=>{t.mode==="horizontal"&&t.ellipsis?D=so(i,M).stop:D==null||D()});const J=R(!1);{const N=F=>{h.value[F.index]=F},A=F=>{delete h.value[F.index]};Bt("rootMenu",ut({props:t,openedMenus:c,items:f,subMenus:h,activeIndex:d,isMenuPopup:p,addMenuItem:F=>{f.value[F.index]=F},removeMenuItem:F=>{delete f.value[F.index]},addSubMenu:N,removeSubMenu:A,openMenu:v,closeMenu:C,handleMenuItemClick:b,handleSubMenuClick:y})),Bt(`subMenu:${r.uid}`,{addSubMenu:N,removeSubMenu:A,mouseInChild:J,level:0})}st(()=>{t.mode==="horizontal"&&new pG(r.vnode.el,l.namespace.value)}),o({open:A=>{const{indexPath:K}=h.value[A];K.forEach(j=>v(j,K))},close:m,handleResize:M});const oe=FM(t,0);return()=>{var N,A;let K=(A=(N=n.default)==null?void 0:N.call(n))!=null?A:[];const j=[];if(t.mode==="horizontal"&&i.value){const ue=Kc(K),se=u.value===-1?ue:ue.slice(0,u.value),Ee=u.value===-1?[]:ue.slice(u.value);Ee!=null&&Ee.length&&t.ellipsis&&(K=se,j.push(Ue(py,{index:"sub-menu-more",class:a.e("hide-arrow"),popperOffset:t.popperOffset},{title:()=>Ue(rt,{class:a.e("icon-more")},{default:()=>Ue(t.ellipsisIcon)}),default:()=>Ee})))}const F=t.closeOnClickOutside?[[dy,()=>{c.value.length&&(J.value||(c.value.forEach(ue=>e("close",ue,k(ue))),c.value=[]))}]]:[],le=$e(Ue("ul",{key:String(t.collapse),role:"menubar",ref:i,style:oe.value,class:{[l.b()]:!0,[l.m(t.mode)]:!0,[l.m("collapse")]:t.collapse}},[...K,...j]),F);return t.collapseTransition&&t.mode==="vertical"?Ue(vG,()=>le):le}}});const SG=tt({index:{type:_e([String,null]),default:null},route:{type:_e([String,Object])},disabled:Boolean}),EG={click:t=>Ye(t.index)&&Pe(t.indexPath)},Am="ElMenuItem",TG=ce({name:Am,components:{ElTooltip:go},props:SG,emits:EG,setup(t,{emit:e}){const n=gt(),o=Ve("rootMenu"),r=Fe("menu"),s=Fe("menu-item");o||Ro(Am,"can not inject root menu");const{parentMenu:i,indexPath:l}=BM(n,Qo(t,"index")),a=Ve(`subMenu:${i.value.uid}`);a||Ro(Am,"can not inject sub menu");const u=V(()=>t.index===o.activeIndex),c=ut({index:t.index,indexPath:l,active:u}),d=()=>{t.disabled||(o.handleMenuItemClick({index:t.index,indexPath:l.value,route:t.route}),e("click",c))};return st(()=>{a.addSubMenu(c),o.addMenuItem(c)}),un(()=>{a.removeSubMenu(c),o.removeMenuItem(c)}),{parentMenu:i,rootMenu:o,active:u,nsMenu:r,nsMenuItem:s,handleClick:d}}});function OG(t,e,n,o,r,s){const i=at("el-tooltip");return _(),G("li",{class:Y([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:t.handleClick},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(_(),pe(i,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:E(()=>[Se(t.$slots,"title")]),default:E(()=>[L("div",{class:Y(t.nsMenu.be("tooltip","trigger"))},[Se(t.$slots,"default")],2)]),_:3},8,["effect"])):(_(),G(Le,{key:1},[Se(t.$slots,"default"),Se(t.$slots,"title")],64))],10,["onClick"])}var zM=et(TG,[["render",OG],["__file","menu-item.vue"]]);const kG={title:String},MG="ElMenuItemGroup",_G=ce({name:MG,props:kG,setup(){return{ns:Fe("menu-item-group")}}});function AG(t,e,n,o,r,s){return _(),G("li",{class:Y(t.ns.b())},[L("div",{class:Y(t.ns.e("title"))},[t.$slots.title?Se(t.$slots,"title",{key:1}):(_(),G(Le,{key:0},[U(Q(t.title),1)],64))],2),L("ul",null,[Se(t.$slots,"default")])],2)}var jM=et(_G,[["render",AG],["__file","menu-item-group.vue"]]);const PG=$t(xG,{MenuItem:zM,MenuItemGroup:jM,SubMenu:py}),NG=po(zM);po(jM);const IG=po(py),LG=tt({icon:{type:co,default:()=>fj},title:String,content:{type:String,default:""}}),RG={back:()=>!0},$G=ce({name:"ElPageHeader"}),DG=ce({...$G,props:LG,emits:RG,setup(t,{emit:e}){const n=ls(),{t:o}=us(),r=Fe("page-header"),s=V(()=>[r.b(),{[r.m("has-breadcrumb")]:!!n.breadcrumb,[r.m("has-extra")]:!!n.extra,[r.is("contentful")]:!!n.default}]);function i(){e("back")}return(l,a)=>(_(),G("div",{class:Y(x(s))},[l.$slots.breadcrumb?(_(),G("div",{key:0,class:Y(x(r).e("breadcrumb"))},[Se(l.$slots,"breadcrumb")],2)):me("v-if",!0),L("div",{class:Y(x(r).e("header"))},[L("div",{class:Y(x(r).e("left"))},[L("div",{class:Y(x(r).e("back")),role:"button",tabindex:"0",onClick:i},[l.icon||l.$slots.icon?(_(),G("div",{key:0,"aria-label":l.title||x(o)("el.pageHeader.title"),class:Y(x(r).e("icon"))},[Se(l.$slots,"icon",{},()=>[l.icon?(_(),pe(x(rt),{key:0},{default:E(()=>[(_(),pe(Ut(l.icon)))]),_:1})):me("v-if",!0)])],10,["aria-label"])):me("v-if",!0),L("div",{class:Y(x(r).e("title"))},[Se(l.$slots,"title",{},()=>[U(Q(l.title||x(o)("el.pageHeader.title")),1)])],2)],2),w(x(bf),{direction:"vertical"}),L("div",{class:Y(x(r).e("content"))},[Se(l.$slots,"content",{},()=>[U(Q(l.content),1)])],2)],2),l.$slots.extra?(_(),G("div",{key:0,class:Y(x(r).e("extra"))},[Se(l.$slots,"extra")],2)):me("v-if",!0)],2),l.$slots.default?(_(),G("div",{key:1,class:Y(x(r).e("main"))},[Se(l.$slots,"default")],2)):me("v-if",!0)],2))}});var VG=et(DG,[["__file","page-header.vue"]]);const Cf=$t(VG),HM=Symbol("ElSelectGroup"),kg=Symbol("ElSelect");function BG(t,e){const n=Ve(kg),o=Ve(HM,{disabled:!1}),r=V(()=>c(Br(n.props.modelValue),t.value)),s=V(()=>{var h;if(n.props.multiple){const p=Br((h=n.props.modelValue)!=null?h:[]);return!r.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),i=V(()=>t.label||(pt(t.value)?"":t.value)),l=V(()=>t.value||t.label||""),a=V(()=>t.disabled||e.groupDisabled||s.value),u=gt(),c=(h=[],p)=>{if(pt(t.value)){const g=n.props.valueKey;return h&&h.some(v=>It(jr(v,g))===jr(p,g))}else return h&&h.includes(p)},d=()=>{!t.disabled&&!o.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},f=h=>{const p=new RegExp(YU(h),"i");e.visible=p.test(i.value)||t.created};return De(()=>i.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),De(()=>t.value,(h,p)=>{const{remote:g,valueKey:v}=n.props;if(h!==p&&(n.onOptionDestroy(p,u.proxy),n.onOptionCreate(u.proxy)),!t.created&&!g){if(v&&pt(h)&&pt(p)&&h[v]===p[v])return;n.setSelected()}}),De(()=>o.disabled,()=>{e.groupDisabled=o.disabled},{immediate:!0}),{select:n,currentLabel:i,currentValue:l,itemSelected:r,isDisabled:a,hoverItem:d,updateOption:f}}const FG=ce({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const e=Fe("select"),n=Ms(),o=V(()=>[e.be("dropdown","item"),e.is("disabled",x(l)),e.is("selected",x(i)),e.is("hovering",x(f))]),r=ut({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:i,isDisabled:l,select:a,hoverItem:u,updateOption:c}=BG(t,r),{visible:d,hover:f}=Ls(r),h=gt().proxy;a.onOptionCreate(h),un(()=>{const g=h.value,{selected:v}=a.states,m=v.some(C=>C.value===h.value);lt(()=>{a.states.cachedOptions.get(g)===h&&!m&&a.states.cachedOptions.delete(g)}),a.onOptionDestroy(g,h)});function p(){l.value||a.handleOptionSelect(h)}return{ns:e,id:n,containerKls:o,currentLabel:s,itemSelected:i,isDisabled:l,select:a,hoverItem:u,updateOption:c,visible:d,hover:f,selectOptionClick:p,states:r}}});function zG(t,e,n,o,r,s){return $e((_(),G("li",{id:t.id,class:Y(t.containerKls),role:"option","aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMousemove:t.hoverItem,onClick:At(t.selectOptionClick,["stop"])},[Se(t.$slots,"default",{},()=>[L("span",null,Q(t.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[qe,t.visible]])}var gy=et(FG,[["render",zG],["__file","option.vue"]]);const jG=ce({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=Ve(kg),e=Fe("select"),n=V(()=>t.props.popperClass),o=V(()=>t.props.multiple),r=V(()=>t.props.fitInputWidth),s=R("");function i(){var l;s.value=`${(l=t.selectRef)==null?void 0:l.offsetWidth}px`}return st(()=>{i(),so(t.selectRef,i)}),{ns:e,minWidth:s,popperClass:n,isMultiple:o,isFitInputWidth:r}}});function HG(t,e,n,o,r,s){return _(),G("div",{class:Y([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:ft({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[t.$slots.header?(_(),G("div",{key:0,class:Y(t.ns.be("dropdown","header"))},[Se(t.$slots,"header")],2)):me("v-if",!0),Se(t.$slots,"default"),t.$slots.footer?(_(),G("div",{key:1,class:Y(t.ns.be("dropdown","footer"))},[Se(t.$slots,"footer")],2)):me("v-if",!0)],6)}var UG=et(jG,[["render",HG],["__file","select-dropdown.vue"]]);const WG=11,qG=(t,e)=>{const{t:n}=us(),o=Ms(),r=Fe("select"),s=Fe("input"),i=ut({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=R(null),a=R(null),u=R(null),c=R(null),d=R(null),f=R(null),h=R(null),p=R(null),g=R(null),v=R(null),m=R(null),C=R(null),{isComposing:y,handleCompositionStart:b,handleCompositionUpdate:S,handleCompositionEnd:T}=Dk({afterComposition:xe=>mt(xe)}),{wrapperRef:O,isFocused:k,handleBlur:P}=$k(d,{beforeFocus(){return K.value},afterFocus(){t.automaticDropdown&&!I.value&&(I.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(xe){var je,Ot;return((je=u.value)==null?void 0:je.isFocusInsideContent(xe))||((Ot=c.value)==null?void 0:Ot.isFocusInsideContent(xe))},afterBlur(){I.value=!1,i.menuVisibleOnFocus=!1}}),I=R(!1),M=R(),{form:D,formItem:J}=xl(),{inputId:oe}=hf(t,{formItemContext:J}),{valueOnClear:N,isEmptyValue:A}=Gz(t),K=V(()=>t.disabled||(D==null?void 0:D.disabled)),j=V(()=>Pe(t.modelValue)?t.modelValue.length>0:!A(t.modelValue)),F=V(()=>{var xe;return(xe=D==null?void 0:D.statusIcon)!=null?xe:!1}),le=V(()=>t.clearable&&!K.value&&i.inputHovering&&j.value),ue=V(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),se=V(()=>r.is("reverse",ue.value&&I.value)),Ee=V(()=>(J==null?void 0:J.validateState)||""),fe=V(()=>Pk[Ee.value]),ve=V(()=>t.remote?300:0),Oe=V(()=>t.loading?t.loadingText||n("el.select.loading"):t.remote&&!i.inputValue&&i.options.size===0?!1:t.filterable&&i.inputValue&&i.options.size>0&&ee.value===0?t.noMatchText||n("el.select.noMatch"):i.options.size===0?t.noDataText||n("el.select.noData"):null),ee=V(()=>ne.value.filter(xe=>xe.visible).length),ne=V(()=>{const xe=Array.from(i.options.values()),je=[];return i.optionValues.forEach(Ot=>{const Ln=xe.findIndex(Jo=>Jo.value===Ot);Ln>-1&&je.push(xe[Ln])}),je.length>=xe.length?je:xe}),Z=V(()=>Array.from(i.cachedOptions.values())),ye=V(()=>{const xe=ne.value.filter(je=>!je.created).some(je=>je.currentLabel===i.inputValue);return t.filterable&&t.allowCreate&&i.inputValue!==""&&!xe}),ke=()=>{t.filterable&&Be(t.filterMethod)||t.filterable&&t.remote&&Be(t.remoteMethod)||ne.value.forEach(xe=>{var je;(je=xe.updateOption)==null||je.call(xe,i.inputValue)})},Xe=Ar(),$=V(()=>["small"].includes(Xe.value)?"small":"default"),W=V({get(){return I.value&&Oe.value!==!1},set(xe){I.value=xe}}),re=V(()=>{if(t.multiple&&!En(t.modelValue))return Br(t.modelValue).length===0&&!i.inputValue;const xe=Pe(t.modelValue)?t.modelValue[0]:t.modelValue;return t.filterable||En(xe)?!i.inputValue:!0}),be=V(()=>{var xe;const je=(xe=t.placeholder)!=null?xe:n("el.select.placeholder");return t.multiple||!j.value?je:i.selectedLabel}),he=V(()=>Gv?null:"mouseenter");De(()=>t.modelValue,(xe,je)=>{t.multiple&&t.filterable&&!t.reserveKeyword&&(i.inputValue="",B("")),te(),!Eo(xe,je)&&t.validateEvent&&(J==null||J.validate("change").catch(Ot=>void 0))},{flush:"post",deep:!0}),De(()=>I.value,xe=>{xe?B(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0),e("visible-change",xe)}),De(()=>i.options.entries(),()=>{var xe;if(!Tt)return;const je=((xe=l.value)==null?void 0:xe.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!En(t.modelValue)||!Array.from(je).includes(document.activeElement))&&te(),t.defaultFirstOption&&(t.filterable||t.remote)&&ee.value&&H()},{flush:"post"}),De(()=>i.hoveringIndex,xe=>{bt(xe)&&xe>-1?M.value=ne.value[xe]||{}:M.value={},ne.value.forEach(je=>{je.hover=M.value===je})}),Gr(()=>{i.isBeforeHide||ke()});const B=xe=>{i.previousQuery===xe||y.value||(i.previousQuery=xe,t.filterable&&Be(t.filterMethod)?t.filterMethod(xe):t.filterable&&t.remote&&Be(t.remoteMethod)&&t.remoteMethod(xe),t.defaultFirstOption&&(t.filterable||t.remote)&&ee.value?lt(H):lt(we))},H=()=>{const xe=ne.value.filter(Jo=>Jo.visible&&!Jo.disabled&&!Jo.states.groupDisabled),je=xe.find(Jo=>Jo.created),Ot=xe[0],Ln=ne.value.map(Jo=>Jo.value);i.hoveringIndex=Ce(Ln,je||Ot)},te=()=>{if(t.multiple)i.selectedLabel="";else{const je=Pe(t.modelValue)?t.modelValue[0]:t.modelValue,Ot=ie(je);i.selectedLabel=Ot.currentLabel,i.selected=[Ot];return}const xe=[];En(t.modelValue)||Br(t.modelValue).forEach(je=>{xe.push(ie(je))}),i.selected=xe},ie=xe=>{let je;const Ot=ud(xe);for(let Na=i.cachedOptions.size-1;Na>=0;Na--){const Oi=Z.value[Na];if(Ot?jr(Oi.value,t.valueKey)===jr(xe,t.valueKey):Oi.value===xe){je={value:xe,currentLabel:Oi.currentLabel,get isDisabled(){return Oi.isDisabled}};break}}if(je)return je;const Ln=Ot?xe.label:xe??"";return{value:xe,currentLabel:Ln}},we=()=>{i.hoveringIndex=ne.value.findIndex(xe=>i.selected.some(je=>Ti(je)===Ti(xe)))},ge=()=>{i.selectionWidth=a.value.getBoundingClientRect().width},q=()=>{i.calculatorWidth=f.value.getBoundingClientRect().width},ae=()=>{i.collapseItemWidth=m.value.getBoundingClientRect().width},Ne=()=>{var xe,je;(je=(xe=u.value)==null?void 0:xe.updatePopper)==null||je.call(xe)},We=()=>{var xe,je;(je=(xe=c.value)==null?void 0:xe.updatePopper)==null||je.call(xe)},ct=()=>{i.inputValue.length>0&&!I.value&&(I.value=!0),B(i.inputValue)},mt=xe=>{if(i.inputValue=xe.target.value,t.remote)Ft();else return ct()},Ft=wu(()=>{ct()},ve.value),zt=xe=>{Eo(t.modelValue,xe)||e(df,xe)},Me=xe=>mF(xe,je=>{const Ot=i.cachedOptions.get(je);return Ot&&!Ot.disabled&&!Ot.states.groupDisabled}),Ge=xe=>{if(t.multiple&&xe.code!==Nt.delete&&xe.target.value.length<=0){const je=Br(t.modelValue).slice(),Ot=Me(je);if(Ot<0)return;const Ln=je[Ot];je.splice(Ot,1),e(on,je),zt(je),e("remove-tag",Ln)}},de=(xe,je)=>{const Ot=i.selected.indexOf(je);if(Ot>-1&&!K.value){const Ln=Br(t.modelValue).slice();Ln.splice(Ot,1),e(on,Ln),zt(Ln),e("remove-tag",je.value)}xe.stopPropagation(),fn()},Ae=xe=>{xe.stopPropagation();const je=t.multiple?[]:N.value;if(t.multiple)for(const Ot of i.selected)Ot.isDisabled&&je.push(Ot.value);e(on,je),zt(je),i.hoveringIndex=-1,I.value=!1,e("clear"),fn()},Re=xe=>{var je;if(t.multiple){const Ot=Br((je=t.modelValue)!=null?je:[]).slice(),Ln=Ce(Ot,xe);Ln>-1?Ot.splice(Ln,1):(t.multipleLimit<=0||Ot.length{z(xe)})},Ce=(xe=[],je)=>En(je)?-1:pt(je.value)?xe.findIndex(Ot=>Eo(jr(Ot,t.valueKey),Ti(je))):xe.indexOf(je.value),z=xe=>{var je,Ot,Ln,Jo,Na;const Oi=Pe(xe)?xe[0]:xe;let If=null;if(Oi!=null&&Oi.value){const pc=ne.value.filter(sI=>sI.value===Oi.value);pc.length>0&&(If=pc[0].$el)}if(u.value&&If){const pc=(Jo=(Ln=(Ot=(je=u.value)==null?void 0:je.popperRef)==null?void 0:Ot.contentRef)==null?void 0:Ln.querySelector)==null?void 0:Jo.call(Ln,`.${r.be("dropdown","wrap")}`);pc&&tj(pc,If)}(Na=C.value)==null||Na.handleScroll()},Ke=xe=>{i.options.set(xe.value,xe),i.cachedOptions.set(xe.value,xe)},He=(xe,je)=>{i.options.get(xe)===je&&i.options.delete(xe)},St=V(()=>{var xe,je;return(je=(xe=u.value)==null?void 0:xe.popperRef)==null?void 0:je.contentRef}),An=()=>{i.isBeforeHide=!1,lt(()=>z(i.selected))},fn=()=>{var xe;(xe=d.value)==null||xe.focus()},Lr=()=>{var xe;if(I.value){I.value=!1,lt(()=>{var je;return(je=d.value)==null?void 0:je.blur()});return}(xe=d.value)==null||xe.blur()},Rr=xe=>{Ae(xe)},dr=xe=>{if(I.value=!1,k.value){const je=new FocusEvent("focus",xe);lt(()=>P(je))}},Al=()=>{i.inputValue.length>0?i.inputValue="":I.value=!1},hn=()=>{K.value||(Gv&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:I.value=!I.value)},ps=()=>{if(!I.value)hn();else{const xe=ne.value[i.hoveringIndex];xe&&!xe.disabled&&!xe.states.groupDisabled&&Re(xe)}},Ti=xe=>pt(xe.value)?jr(xe.value,t.valueKey):xe.value,fc=V(()=>ne.value.filter(xe=>xe.visible).every(xe=>xe.disabled)),hc=V(()=>t.multiple?t.collapseTags?i.selected.slice(0,t.maxCollapseTags):i.selected:[]),Nf=V(()=>t.multiple?t.collapseTags?i.selected.slice(t.maxCollapseTags):[]:[]),Te=xe=>{if(!I.value){I.value=!0;return}if(!(i.options.size===0||ee.value===0||y.value)&&!fc.value){xe==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):xe==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const je=ne.value[i.hoveringIndex];(je.disabled===!0||je.states.groupDisabled===!0||!je.visible)&&Te(xe),lt(()=>z(M.value))}},tI=()=>{if(!a.value)return 0;const xe=window.getComputedStyle(a.value);return Number.parseFloat(xe.gap||"6px")},nI=V(()=>{const xe=tI();return{maxWidth:`${m.value&&t.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-xe:i.selectionWidth}px`}}),oI=V(()=>({maxWidth:`${i.selectionWidth}px`})),rI=V(()=>({width:`${Math.max(i.calculatorWidth,WG)}px`}));return so(a,ge),so(f,q),so(g,Ne),so(O,Ne),so(v,We),so(m,ae),st(()=>{te()}),{inputId:oe,contentId:o,nsSelect:r,nsInput:s,states:i,isFocused:k,expanded:I,optionsArray:ne,hoverOption:M,selectSize:Xe,filteredOptionsCount:ee,resetCalculatorWidth:q,updateTooltip:Ne,updateTagTooltip:We,debouncedOnInputChange:Ft,onInput:mt,deletePrevTag:Ge,deleteTag:de,deleteSelected:Ae,handleOptionSelect:Re,scrollToOption:z,hasModelValue:j,shouldShowPlaceholder:re,currentPlaceholder:be,mouseEnterEventName:he,needStatusIcon:F,showClose:le,iconComponent:ue,iconReverse:se,validateState:Ee,validateIcon:fe,showNewOption:ye,updateOptions:ke,collapseTagSize:$,setSelected:te,selectDisabled:K,emptyText:Oe,handleCompositionStart:b,handleCompositionUpdate:S,handleCompositionEnd:T,onOptionCreate:Ke,onOptionDestroy:He,handleMenuEnter:An,focus:fn,blur:Lr,handleClearClick:Rr,handleClickOutside:dr,handleEsc:Al,toggleMenu:hn,selectOption:ps,getValueKey:Ti,navigateOptions:Te,dropdownMenuVisible:W,showTagList:hc,collapseTagList:Nf,tagStyle:nI,collapseTagStyle:oI,inputStyle:rI,popperRef:St,inputRef:d,tooltipRef:u,tagTooltipRef:c,calculatorRef:f,prefixRef:h,suffixRef:p,selectRef:l,wrapperRef:O,selectionRef:a,scrollbarRef:C,menuRef:g,tagMenuRef:v,collapseItemRef:m}};var GG=ce({name:"ElOptions",setup(t,{slots:e}){const n=Ve(kg);let o=[];return()=>{var r,s;const i=(r=e.default)==null?void 0:r.call(e),l=[];function a(u){Pe(u)&&u.forEach(c=>{var d,f,h,p;const g=(d=(c==null?void 0:c.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?a(!Ye(c.children)&&!Pe(c.children)&&Be((f=c.children)==null?void 0:f.default)?(h=c.children)==null?void 0:h.default():c.children):g==="ElOption"?l.push((p=c.props)==null?void 0:p.value):Pe(c.children)&&a(c.children)})}return i.length&&a((s=i[0])==null?void 0:s.children),Eo(l,o)||(o=l,n&&(n.states.optionValues=l)),i}}});const KG=tt({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:wi,effect:{type:_e(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:_e(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Xo.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:co,default:bg},fitInputWidth:Boolean,suffixIcon:{type:co,default:vg},tagType:{...Qv.type,default:"info"},tagEffect:{...Qv.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:_e(String),values:xg,default:"bottom-start"},fallbackPlacements:{type:_e(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...qz,...Ci(["ariaLabel"])}),xx="ElSelect",JG=ce({name:xx,componentName:xx,components:{ElSelectMenu:UG,ElOption:gy,ElOptions:GG,ElTag:wM,ElScrollbar:wg,ElTooltip:go,ElIcon:rt},directives:{ClickOutside:dy},props:KG,emits:[on,df,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:e}){const n=V(()=>{const{modelValue:i,multiple:l}=t,a=l?[]:void 0;return Pe(i)?l?i:a:l?a:i}),o=ut({...Ls(t),modelValue:n}),r=qG(o,e);Bt(kg,ut({props:o,states:r.states,optionsArray:r.optionsArray,handleOptionSelect:r.handleOptionSelect,onOptionCreate:r.onOptionCreate,onOptionDestroy:r.onOptionDestroy,selectRef:r.selectRef,setSelected:r.setSelected}));const s=V(()=>t.multiple?r.states.selected.map(i=>i.currentLabel):r.states.selectedLabel);return{...r,modelValue:n,selectedLabel:s}}});function YG(t,e,n,o,r,s){const i=at("el-tag"),l=at("el-tooltip"),a=at("el-icon"),u=at("el-option"),c=at("el-options"),d=at("el-scrollbar"),f=at("el-select-menu"),h=p0("click-outside");return $e((_(),G("div",{ref:"selectRef",class:Y([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),[Ic(t.mouseEnterEventName)]:p=>t.states.inputHovering=!0,onMouseleave:p=>t.states.inputHovering=!1},[w(l,{ref:"tooltipRef",visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":t.fallbackPlacements,effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,"append-to":t.appendTo,"show-arrow":t.showArrow,offset:t.offset,onBeforeShow:t.handleMenuEnter,onHide:p=>t.states.isBeforeHide=!1},{default:E(()=>{var p;return[L("div",{ref:"wrapperRef",class:Y([t.nsSelect.e("wrapper"),t.nsSelect.is("focused",t.isFocused),t.nsSelect.is("hovering",t.states.inputHovering),t.nsSelect.is("filterable",t.filterable),t.nsSelect.is("disabled",t.selectDisabled)]),onClick:At(t.toggleMenu,["prevent"])},[t.$slots.prefix?(_(),G("div",{key:0,ref:"prefixRef",class:Y(t.nsSelect.e("prefix"))},[Se(t.$slots,"prefix")],2)):me("v-if",!0),L("div",{ref:"selectionRef",class:Y([t.nsSelect.e("selection"),t.nsSelect.is("near",t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?Se(t.$slots,"tag",{key:0},()=>[(_(!0),G(Le,null,yt(t.showTagList,g=>(_(),G("div",{key:t.getValueKey(g),class:Y(t.nsSelect.e("selected-item"))},[w(i,{closable:!t.selectDisabled&&!g.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",style:ft(t.tagStyle),onClose:v=>t.deleteTag(v,g)},{default:E(()=>[L("span",{class:Y(t.nsSelect.e("tags-text"))},[Se(t.$slots,"label",{label:g.currentLabel,value:g.value},()=>[U(Q(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(_(),pe(l,{key:0,ref:"tagTooltipRef",disabled:t.dropdownMenuVisible||!t.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:E(()=>[L("div",{ref:"collapseItemRef",class:Y(t.nsSelect.e("selected-item"))},[w(i,{closable:!1,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",style:ft(t.collapseTagStyle)},{default:E(()=>[L("span",{class:Y(t.nsSelect.e("tags-text"))}," + "+Q(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:E(()=>[L("div",{ref:"tagMenuRef",class:Y(t.nsSelect.e("selection"))},[(_(!0),G(Le,null,yt(t.collapseTagList,g=>(_(),G("div",{key:t.getValueKey(g),class:Y(t.nsSelect.e("selected-item"))},[w(i,{class:"in-tooltip",closable:!t.selectDisabled&&!g.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",onClose:v=>t.deleteTag(v,g)},{default:E(()=>[L("span",{class:Y(t.nsSelect.e("tags-text"))},[Se(t.$slots,"label",{label:g.currentLabel,value:g.value},()=>[U(Q(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):me("v-if",!0)]):me("v-if",!0),L("div",{class:Y([t.nsSelect.e("selected-item"),t.nsSelect.e("input-wrapper"),t.nsSelect.is("hidden",!t.filterable)])},[$e(L("input",{id:t.inputId,ref:"inputRef","onUpdate:modelValue":g=>t.states.inputValue=g,type:"text",name:t.name,class:Y([t.nsSelect.e("input"),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:ft(t.inputStyle),tabindex:t.tabindex,role:"combobox",readonly:!t.filterable,spellcheck:"false","aria-activedescendant":((p=t.hoverOption)==null?void 0:p.id)||"","aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Wn(At(g=>t.navigateOptions("next"),["stop","prevent"]),["down"]),Wn(At(g=>t.navigateOptions("prev"),["stop","prevent"]),["up"]),Wn(At(t.handleEsc,["stop","prevent"]),["esc"]),Wn(At(t.selectOption,["stop","prevent"]),["enter"]),Wn(At(t.deletePrevTag,["stop"]),["delete"])],onCompositionstart:t.handleCompositionStart,onCompositionupdate:t.handleCompositionUpdate,onCompositionend:t.handleCompositionEnd,onInput:t.onInput,onClick:At(t.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[SL,t.states.inputValue]]),t.filterable?(_(),G("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Y(t.nsSelect.e("input-calculator")),textContent:Q(t.states.inputValue)},null,10,["textContent"])):me("v-if",!0)],2),t.shouldShowPlaceholder?(_(),G("div",{key:1,class:Y([t.nsSelect.e("selected-item"),t.nsSelect.e("placeholder"),t.nsSelect.is("transparent",!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[t.hasModelValue?Se(t.$slots,"label",{key:0,label:t.currentPlaceholder,value:t.modelValue},()=>[L("span",null,Q(t.currentPlaceholder),1)]):(_(),G("span",{key:1},Q(t.currentPlaceholder),1))],2)):me("v-if",!0)],2),L("div",{ref:"suffixRef",class:Y(t.nsSelect.e("suffix"))},[t.iconComponent&&!t.showClose?(_(),pe(a,{key:0,class:Y([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:E(()=>[(_(),pe(Ut(t.iconComponent)))]),_:1},8,["class"])):me("v-if",!0),t.showClose&&t.clearIcon?(_(),pe(a,{key:1,class:Y([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.nsSelect.e("clear")]),onClick:t.handleClearClick},{default:E(()=>[(_(),pe(Ut(t.clearIcon)))]),_:1},8,["class","onClick"])):me("v-if",!0),t.validateState&&t.validateIcon&&t.needStatusIcon?(_(),pe(a,{key:2,class:Y([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:E(()=>[(_(),pe(Ut(t.validateIcon)))]),_:1},8,["class"])):me("v-if",!0)],2)],10,["onClick"])]}),content:E(()=>[w(f,{ref:"menuRef"},{default:E(()=>[t.$slots.header?(_(),G("div",{key:0,class:Y(t.nsSelect.be("dropdown","header")),onClick:At(()=>{},["stop"])},[Se(t.$slots,"header")],10,["onClick"])):me("v-if",!0),$e(w(d,{id:t.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:Y([t.nsSelect.is("empty",t.filteredOptionsCount===0)]),role:"listbox","aria-label":t.ariaLabel,"aria-orientation":"vertical"},{default:E(()=>[t.showNewOption?(_(),pe(u,{key:0,value:t.states.inputValue,created:!0},null,8,["value"])):me("v-if",!0),w(c,null,{default:E(()=>[Se(t.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[qe,t.states.options.size>0&&!t.loading]]),t.$slots.loading&&t.loading?(_(),G("div",{key:1,class:Y(t.nsSelect.be("dropdown","loading"))},[Se(t.$slots,"loading")],2)):t.loading||t.filteredOptionsCount===0?(_(),G("div",{key:2,class:Y(t.nsSelect.be("dropdown","empty"))},[Se(t.$slots,"empty",{},()=>[L("span",null,Q(t.emptyText),1)])],2)):me("v-if",!0),t.$slots.footer?(_(),G("div",{key:3,class:Y(t.nsSelect.be("dropdown","footer")),onClick:At(()=>{},["stop"])},[Se(t.$slots,"footer")],10,["onClick"])):me("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[h,t.handleClickOutside,t.popperRef]])}var XG=et(JG,[["render",YG],["__file","select.vue"]]);const ZG=ce({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=Fe("select"),n=R(null),o=gt(),r=R([]);Bt(HM,ut({...Ls(t)}));const s=V(()=>r.value.some(u=>u.visible===!0)),i=u=>{var c,d;return((c=u.type)==null?void 0:c.name)==="ElOption"&&!!((d=u.component)!=null&&d.proxy)},l=u=>{const c=Br(u),d=[];return c.forEach(f=>{var h,p;i(f)?d.push(f.component.proxy):(h=f.children)!=null&&h.length?d.push(...l(f.children)):(p=f.component)!=null&&p.subTree&&d.push(...l(f.component.subTree))}),d},a=()=>{r.value=l(o.subTree)};return st(()=>{a()}),_z(n,a,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:s,ns:e}}});function QG(t,e,n,o,r,s){return $e((_(),G("ul",{ref:"groupRef",class:Y(t.ns.be("group","wrap"))},[L("li",{class:Y(t.ns.be("group","title"))},Q(t.label),3),L("li",null,[L("ul",{class:Y(t.ns.b("group"))},[Se(t.$slots,"default")],2)])],2)),[[qe,t.visible]])}var UM=et(ZG,[["render",QG],["__file","option-group.vue"]]);const Vs=$t(XG,{Option:gy,OptionGroup:UM}),Bs=po(gy);po(UM);const eK=tt({trigger:Ad.trigger,placement:Om.placement,disabled:Ad.disabled,visible:Xo.visible,transition:Xo.transition,popperOptions:Om.popperOptions,tabindex:Om.tabindex,content:Xo.content,popperStyle:Xo.popperStyle,popperClass:Xo.popperClass,enterable:{...Xo.enterable,default:!0},effect:{...Xo.effect,default:"light"},teleported:Xo.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),tK={"update:visible":t=>Pn(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},nK="onUpdate:visible",oK=ce({name:"ElPopover"}),rK=ce({...oK,props:eK,emits:tK,setup(t,{expose:e,emit:n}){const o=t,r=V(()=>o[nK]),s=Fe("popover"),i=R(),l=V(()=>{var v;return(v=x(i))==null?void 0:v.popperRef}),a=V(()=>[{width:_r(o.width)},o.popperStyle]),u=V(()=>[s.b(),o.popperClass,{[s.m("plain")]:!!o.content}]),c=V(()=>o.transition===`${s.namespace.value}-fade-in-linear`),d=()=>{var v;(v=i.value)==null||v.hide()},f=()=>{n("before-enter")},h=()=>{n("before-leave")},p=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:l,hide:d}),(v,m)=>(_(),pe(x(go),ho({ref_key:"tooltipRef",ref:i},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":x(u),"popper-style":x(a),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":x(c),"onUpdate:visible":x(r),onBeforeShow:f,onBeforeHide:h,onShow:p,onHide:g}),{content:E(()=>[v.title?(_(),G("div",{key:0,class:Y(x(s).e("title")),role:"title"},Q(v.title),3)):me("v-if",!0),Se(v.$slots,"default",{},()=>[U(Q(v.content),1)])]),default:E(()=>[v.$slots.reference?Se(v.$slots,"reference",{key:0}):me("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var sK=et(rK,[["__file","popover.vue"]]);const Sx=(t,e)=>{const n=e.arg||e.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=t)};var iK={mounted(t,e){Sx(t,e)},updated(t,e){Sx(t,e)}};const lK="popover",aK=nj(iK,lK),uK=$t(sK,{directive:aK}),cK=tt({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:_e(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:_e([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:_e(Function),default:t=>`${t}%`}}),dK=ce({name:"ElProgress"}),fK=ce({...dK,props:cK,setup(t){const e=t,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=Fe("progress"),r=V(()=>{const y={width:`${e.percentage}%`,animationDuration:`${e.duration}s`},b=C(e.percentage);return b.includes("gradient")?y.background=b:y.backgroundColor=b,y}),s=V(()=>(e.strokeWidth/e.width*100).toFixed(1)),i=V(()=>["circle","dashboard"].includes(e.type)?Number.parseInt(`${50-Number.parseFloat(s.value)/2}`,10):0),l=V(()=>{const y=i.value,b=e.type==="dashboard";return` + M 50 50 + m 0 ${b?"":"-"}${y} + a ${y} ${y} 0 1 1 0 ${b?"-":""}${y*2} + a ${y} ${y} 0 1 1 0 ${b?"":"-"}${y*2} + `}),a=V(()=>2*Math.PI*i.value),u=V(()=>e.type==="dashboard"?.75:1),c=V(()=>`${-1*a.value*(1-u.value)/2}px`),d=V(()=>({strokeDasharray:`${a.value*u.value}px, ${a.value}px`,strokeDashoffset:c.value})),f=V(()=>({strokeDasharray:`${a.value*u.value*(e.percentage/100)}px, ${a.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=V(()=>{let y;return e.color?y=C(e.percentage):y=n[e.status]||n.default,y}),p=V(()=>e.status==="warning"?yg:e.type==="line"?e.status==="success"?W0:bg:e.status==="success"?Ok:ci),g=V(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),v=V(()=>e.format(e.percentage));function m(y){const b=100/y.length;return y.map((T,O)=>Ye(T)?{color:T,percentage:(O+1)*b}:T).sort((T,O)=>T.percentage-O.percentage)}const C=y=>{var b;const{color:S}=e;if(Be(S))return S(y);if(Ye(S))return S;{const T=m(S);for(const O of T)if(O.percentage>y)return O.color;return(b=T[T.length-1])==null?void 0:b.color}};return(y,b)=>(_(),G("div",{class:Y([x(o).b(),x(o).m(y.type),x(o).is(y.status),{[x(o).m("without-text")]:!y.showText,[x(o).m("text-inside")]:y.textInside}]),role:"progressbar","aria-valuenow":y.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[y.type==="line"?(_(),G("div",{key:0,class:Y(x(o).b("bar"))},[L("div",{class:Y(x(o).be("bar","outer")),style:ft({height:`${y.strokeWidth}px`})},[L("div",{class:Y([x(o).be("bar","inner"),{[x(o).bem("bar","inner","indeterminate")]:y.indeterminate},{[x(o).bem("bar","inner","striped")]:y.striped},{[x(o).bem("bar","inner","striped-flow")]:y.stripedFlow}]),style:ft(x(r))},[(y.showText||y.$slots.default)&&y.textInside?(_(),G("div",{key:0,class:Y(x(o).be("bar","innerText"))},[Se(y.$slots,"default",{percentage:y.percentage},()=>[L("span",null,Q(x(v)),1)])],2)):me("v-if",!0)],6)],6)],2)):(_(),G("div",{key:1,class:Y(x(o).b("circle")),style:ft({height:`${y.width}px`,width:`${y.width}px`})},[(_(),G("svg",{viewBox:"0 0 100 100"},[L("path",{class:Y(x(o).be("circle","track")),d:x(l),stroke:`var(${x(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":y.strokeLinecap,"stroke-width":x(s),fill:"none",style:ft(x(d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),L("path",{class:Y(x(o).be("circle","path")),d:x(l),stroke:x(h),fill:"none",opacity:y.percentage?1:0,"stroke-linecap":y.strokeLinecap,"stroke-width":x(s),style:ft(x(f))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(y.showText||y.$slots.default)&&!y.textInside?(_(),G("div",{key:2,class:Y(x(o).e("text")),style:ft({fontSize:`${x(g)}px`})},[Se(y.$slots,"default",{percentage:y.percentage},()=>[y.status?(_(),pe(x(rt),{key:1},{default:E(()=>[(_(),pe(Ut(x(p))))]),_:1})):(_(),G("span",{key:0},Q(x(v)),1))])],6)):me("v-if",!0)],10,["aria-valuenow"]))}});var hK=et(fK,[["__file","progress.vue"]]);const pK=$t(hK),Ka={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Ex={[Ka.success]:gj,[Ka.warning]:yg,[Ka.error]:q0,[Ka.info]:G0},gK=tt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),mK=ce({name:"ElResult"}),vK=ce({...mK,props:gK,setup(t){const e=t,n=Fe("result"),o=V(()=>{const r=e.icon,s=r&&Ka[r]?Ka[r]:"icon-info",i=Ex[s]||Ex["icon-info"];return{class:s,component:i}});return(r,s)=>(_(),G("div",{class:Y(x(n).b())},[L("div",{class:Y(x(n).e("icon"))},[Se(r.$slots,"icon",{},()=>[x(o).component?(_(),pe(Ut(x(o).component),{key:0,class:Y(x(o).class)},null,8,["class"])):me("v-if",!0)])],2),r.title||r.$slots.title?(_(),G("div",{key:0,class:Y(x(n).e("title"))},[Se(r.$slots,"title",{},()=>[L("p",null,Q(r.title),1)])],2)):me("v-if",!0),r.subTitle||r.$slots["sub-title"]?(_(),G("div",{key:1,class:Y(x(n).e("subtitle"))},[Se(r.$slots,"sub-title",{},()=>[L("p",null,Q(r.subTitle),1)])],2)):me("v-if",!0),r.$slots.extra?(_(),G("div",{key:2,class:Y(x(n).e("extra"))},[Se(r.$slots,"extra")],2)):me("v-if",!0)],2))}});var bK=et(vK,[["__file","result.vue"]]);const yK=$t(bK),wK=["start","center","end","space-around","space-between","space-evenly"],CK=["top","middle","bottom"],xK=tt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:wK,default:"start"},align:{type:String,values:CK}}),SK=ce({name:"ElRow"}),EK=ce({...SK,props:xK,setup(t){const e=t,n=Fe("row"),o=V(()=>e.gutter);Bt(CM,{gutter:o});const r=V(()=>{const i={};return e.gutter&&(i.marginRight=i.marginLeft=`-${e.gutter/2}px`),i}),s=V(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(i,l)=>(_(),pe(Ut(i.tag),{class:Y(x(s)),style:ft(x(r))},{default:E(()=>[Se(i.$slots,"default")]),_:3},8,["class","style"]))}});var TK=et(EK,[["__file","row.vue"]]);const Mg=$t(TK),OK=tt({prefixCls:{type:String}}),Tx=ce({name:"ElSpaceItem",props:OK,setup(t,{slots:e}){const n=Fe("space"),o=V(()=>`${t.prefixCls||n.b()}__item`);return()=>Ue("div",{class:o.value},Se(e,"default"))}}),Ox={small:8,default:12,large:16};function kK(t){const e=Fe("space"),n=V(()=>[e.b(),e.m(t.direction),t.class]),o=R(0),r=R(0),s=V(()=>{const l=t.wrap||t.fill?{flexWrap:"wrap"}:{},a={alignItems:t.alignment},u={rowGap:`${r.value}px`,columnGap:`${o.value}px`};return[l,a,u,t.style]}),i=V(()=>t.fill?{flexGrow:1,minWidth:`${t.fillRatio}%`}:{});return Gr(()=>{const{size:l="small",wrap:a,direction:u,fill:c}=t;if(Pe(l)){const[d=0,f=0]=l;o.value=d,r.value=f}else{let d;bt(l)?d=l:d=Ox[l||"small"]||Ox.small,(a||c)&&u==="horizontal"?o.value=r.value=d:u==="horizontal"?(o.value=d,r.value=0):(r.value=d,o.value=0)}}),{classes:n,containerStyle:s,itemStyle:i}}const MK=tt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:_e([String,Object,Array]),default:""},style:{type:_e([String,Array,Object]),default:""},alignment:{type:_e(String),default:"center"},prefixCls:{type:String},spacer:{type:_e([Object,String,Number,Array]),default:null,validator:t=>Bn(t)||bt(t)||Ye(t)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Ma,validator:t=>bt(t)||Pe(t)&&t.length===2&&t.every(bt)}}),_K=ce({name:"ElSpace",props:MK,setup(t,{slots:e}){const{classes:n,containerStyle:o,itemStyle:r}=kK(t);function s(i,l="",a=[]){const{prefixCls:u}=t;return i.forEach((c,d)=>{Zv(c)?Pe(c.children)&&c.children.forEach((f,h)=>{Zv(f)&&Pe(f.children)?s(f.children,`${l+h}-`,a):a.push(w(Tx,{style:r.value,prefixCls:u,key:`nested-${l+h}`},{default:()=>[f]},gr.PROPS|gr.STYLE,["style","prefixCls"]))}):xU(c)&&a.push(w(Tx,{style:r.value,prefixCls:u,key:`LoopKey${l+d}`},{default:()=>[c]},gr.PROPS|gr.STYLE,["style","prefixCls"]))}),a}return()=>{var i;const{spacer:l,direction:a}=t,u=Se(e,"default",{key:0},()=>[]);if(((i=u.children)!=null?i:[]).length===0)return null;if(Pe(u.children)){let c=s(u.children);if(l){const d=c.length-1;c=c.reduce((f,h,p)=>{const g=[...f,h];return p!==d&&g.push(w("span",{style:[r.value,a==="vertical"?"width: 100%":null],key:p},[Bn(l)?l:U(l,gr.TEXT)],gr.STYLE)),g},[])}return w("div",{class:n.value,style:o.value},c,gr.STYLE|gr.CLASS)}return u.children}}}),WM=$t(_K),AK=t=>["",...Ma].includes(t),Pm=function(t){var e;return(e=t.target)==null?void 0:e.closest("td")},PK=function(t,e,n,o,r){if(!e&&!o&&(!r||Pe(r)&&!r.length))return t;Ye(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=o?null:function(l,a){return r?(Pe(r)||(r=[r]),r.map(u=>Ye(u)?jr(l,u):u(l,a,t))):(e!=="$key"&&pt(l)&&"$value"in l&&(l=l.$value),[pt(l)?jr(l,e):l])},i=function(l,a){if(o)return o(l.value,a.value);for(let u=0,c=l.key.length;ua.key[u])return 1}return 0};return t.map((l,a)=>({value:l,index:a,key:s?s(l,a):null})).sort((l,a)=>{let u=i(l,a);return u||(u=l.index-a.index),u*+n}).map(l=>l.value)},qM=function(t,e){let n=null;return t.columns.forEach(o=>{o.id===e&&(n=o)}),n},NK=function(t,e){let n=null;for(let o=0;o{if(!t)throw new Error("Row is required when get row identity");if(Ye(e)){if(!e.includes("."))return`${t[e]}`;const n=e.split(".");let o=t;for(const r of n)o=o[r];return`${o}`}else if(Be(e))return e.call(null,t)},Kl=function(t,e){const n={};return(t||[]).forEach((o,r)=>{n[wo(o,e)]={row:o,index:r}}),n};function IK(t,e){const n={};let o;for(o in t)n[o]=t[o];for(o in e)if(kt(e,o)){const r=e[o];typeof r<"u"&&(n[o]=r)}return n}function my(t){return t===""||t!==void 0&&(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function GM(t){return t===""||t!==void 0&&(t=my(t),Number.isNaN(t)&&(t=80)),t}function LK(t){return bt(t)?t:Ye(t)?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function RK(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...o)=>e(n(...o)))}function op(t,e,n,o,r,s){let i=s??0,l=!1;const a=t.indexOf(e),u=a!==-1,c=r==null?void 0:r.call(null,e,s),d=h=>{h==="add"?t.push(e):t.splice(a,1),l=!0},f=h=>{let p=0;const g=(o==null?void 0:o.children)&&h[o.children];return g&&Pe(g)&&(p+=g.length,g.forEach(v=>{p+=f(v)})),p};return(!r||c)&&(Pn(n)?n&&!u?d("add"):!n&&u&&d("remove"):d(u?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o!=null&&o.children)&&Pe(e[o.children])&&e[o.children].forEach(h=>{op(t,h,n??!u,o,r,i+1),i+=f(h)+1}),l}function $K(t,e,n="children",o="hasChildren"){const r=i=>!(Pe(i)&&i.length);function s(i,l,a){e(i,l,a),l.forEach(u=>{if(u[o]){e(u,null,a+1);return}const c=u[n];r(c)||s(u,c,a+1)})}t.forEach(i=>{if(i[o]){e(i,null,0);return}const l=i[n];r(l)||s(i,l,0)})}const Mx=(t,e)=>({content:e,...t,popperOptions:{strategy:"fixed",...t.popperOptions}});let hr=null;function DK(t,e,n,o){if((hr==null?void 0:hr.trigger)===n){pn(hr.vm.component.props,Mx(t,e));return}hr==null||hr();const r=o==null?void 0:o.refs.tableWrapper,s=r==null?void 0:r.dataset.prefix,i=w(go,{virtualTriggering:!0,virtualRef:n,appendTo:r,placement:"top",transition:"none",offset:0,hideAfter:0,...Mx(t,e)});i.appContext={...o.appContext,...o};const l=document.createElement("div");ll(i,l),i.component.exposed.onOpen();const a=r==null?void 0:r.querySelector(`.${s}-scrollbar__wrap`);hr=()=>{ll(null,l),a==null||a.removeEventListener("scroll",hr),hr=null},hr.trigger=n,hr.vm=i,a==null||a.addEventListener("scroll",hr)}function KM(t){return t.children?bF(t.children,KM):[t]}function _x(t,e){return t+e.colSpan}const JM=(t,e,n,o)=>{let r=0,s=t;const i=n.states.columns.value;if(o){const a=KM(o[t]);r=i.slice(0,i.indexOf(a[0])).reduce(_x,0),s=r+a.reduce(_x,0)-1}else r=t;let l;switch(e){case"left":s=i.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:s=i.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:r,after:s}:{}},vy=(t,e,n,o,r,s=0)=>{const i=[],{direction:l,start:a,after:u}=JM(e,n,o,r);if(l){const c=l==="left";i.push(`${t}-fixed-column--${l}`),c&&u+s===o.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!c&&a-s===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&i.push("is-first-column")}return i};function Ax(t,e){return t+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const by=(t,e,n,o)=>{const{direction:r,start:s=0,after:i=0}=JM(t,e,n,o);if(!r)return;const l={},a=r==="left",u=n.states.columns.value;return a?l.left=u.slice(0,s).reduce(Ax,0):l.right=u.slice(i+1).reverse().reduce(Ax,0),l},_u=(t,e)=>{t&&(Number.isNaN(t[e])||(t[e]=`${t[e]}px`))};function VK(t){const e=gt(),n=R(!1),o=R([]);return{updateExpandRows:()=>{const a=t.data.value||[],u=t.rowKey.value;if(n.value)o.value=a.slice();else if(u){const c=Kl(o.value,u);o.value=a.reduce((d,f)=>{const h=wo(f,u);return c[h]&&d.push(f),d},[])}else o.value=[]},toggleRowExpansion:(a,u)=>{op(o.value,a,u)&&e.emit("expand-change",a,o.value.slice())},setExpandRowKeys:a=>{e.store.assertRowKey();const u=t.data.value||[],c=t.rowKey.value,d=Kl(u,c);o.value=a.reduce((f,h)=>{const p=d[h];return p&&f.push(p.row),f},[])},isRowExpanded:a=>{const u=t.rowKey.value;return u?!!Kl(o.value,u)[wo(a,u)]:o.value.includes(a)},states:{expandRows:o,defaultExpandAll:n}}}function BK(t){const e=gt(),n=R(null),o=R(null),r=u=>{e.store.assertRowKey(),n.value=u,i(u)},s=()=>{n.value=null},i=u=>{const{data:c,rowKey:d}=t;let f=null;d.value&&(f=(x(c)||[]).find(h=>wo(h,d.value)===u)),o.value=f,e.emit("current-change",o.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:s,setCurrentRowByKey:i,updateCurrentRow:u=>{const c=o.value;if(u&&u!==c){o.value=u,e.emit("current-change",o.value,c);return}!u&&c&&(o.value=null,e.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=t.rowKey.value,c=t.data.value||[],d=o.value;if(!c.includes(d)&&d){if(u){const f=wo(d,u);i(f)}else o.value=null;o.value===null&&e.emit("current-change",null,d)}else n.value&&(i(n.value),s())},states:{_currentRowKey:n,currentRow:o}}}function FK(t){const e=R([]),n=R({}),o=R(16),r=R(!1),s=R({}),i=R("hasChildren"),l=R("children"),a=R(!1),u=gt(),c=V(()=>{if(!t.rowKey.value)return{};const y=t.data.value||[];return f(y)}),d=V(()=>{const y=t.rowKey.value,b=Object.keys(s.value),S={};return b.length&&b.forEach(T=>{if(s.value[T].length){const O={children:[]};s.value[T].forEach(k=>{const P=wo(k,y);O.children.push(P),k[i.value]&&!S[P]&&(S[P]={children:[]})}),S[T]=O}}),S}),f=y=>{const b=t.rowKey.value,S={};return $K(y,(T,O,k)=>{const P=wo(T,b);Pe(O)?S[P]={children:O.map(I=>wo(I,b)),level:k}:r.value&&(S[P]={children:[],lazy:!0,level:k})},l.value,i.value),S},h=(y=!1,b=(S=>(S=u.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const T=c.value,O=d.value,k=Object.keys(T),P={};if(k.length){const I=x(n),M=[],D=(oe,N)=>{if(y)return e.value?b||e.value.includes(N):!!(b||oe!=null&&oe.expanded);{const A=b||e.value&&e.value.includes(N);return!!(oe!=null&&oe.expanded||A)}};k.forEach(oe=>{const N=I[oe],A={...T[oe]};if(A.expanded=D(N,oe),A.lazy){const{loaded:K=!1,loading:j=!1}=N||{};A.loaded=!!K,A.loading=!!j,M.push(oe)}P[oe]=A});const J=Object.keys(O);r.value&&J.length&&M.length&&J.forEach(oe=>{const N=I[oe],A=O[oe].children;if(M.includes(oe)){if(P[oe].children.length!==0)throw new Error("[ElTable]children must be an empty array.");P[oe].children=A}else{const{loaded:K=!1,loading:j=!1}=N||{};P[oe]={lazy:!0,loaded:!!K,loading:!!j,expanded:D(N,oe),children:A,level:""}}})}n.value=P,(S=u.store)==null||S.updateTableScrollY()};De(()=>e.value,()=>{h(!0)}),De(()=>c.value,()=>{h()}),De(()=>d.value,()=>{h()});const p=y=>{e.value=y,h()},g=(y,b)=>{u.store.assertRowKey();const S=t.rowKey.value,T=wo(y,S),O=T&&n.value[T];if(T&&O&&"expanded"in O){const k=O.expanded;b=En(b)?!O.expanded:b,n.value[T].expanded=b,k!==b&&u.emit("expand-change",y,b),u.store.updateTableScrollY()}},v=y=>{u.store.assertRowKey();const b=t.rowKey.value,S=wo(y,b),T=n.value[S];r.value&&T&&"loaded"in T&&!T.loaded?m(y,S,T):g(y,void 0)},m=(y,b,S)=>{const{load:T}=u.props;T&&!n.value[b].loaded&&(n.value[b].loading=!0,T(y,S,O=>{if(!Pe(O))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,O.length&&(s.value[b]=O),u.emit("expand-change",y,!0)}))};return{loadData:m,loadOrToggle:v,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,updateKeyChildren:(y,b)=>{const{lazy:S,rowKey:T}=u.props;if(S){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");s.value[y]&&(s.value[y]=b)}},normalize:f,states:{expandRowKeys:e,treeData:n,indent:o,lazy:r,lazyTreeNodeMap:s,lazyColumnIdentifier:i,childrenColumnName:l,checkStrictly:a}}}const zK=(t,e)=>{const n=e.sortingColumn;return!n||Ye(n.sortable)?t:PK(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy)},Mh=t=>{const e=[];return t.forEach(n=>{n.children&&n.children.length>0?e.push.apply(e,Mh(n.children)):e.push(n)}),e};function jK(){var t;const e=gt(),{size:n}=Ls((t=e.proxy)==null?void 0:t.$props),o=R(null),r=R([]),s=R([]),i=R(!1),l=R([]),a=R([]),u=R([]),c=R([]),d=R([]),f=R([]),h=R([]),p=R([]),g=[],v=R(0),m=R(0),C=R(0),y=R(!1),b=R([]),S=R(!1),T=R(!1),O=R(null),k=R({}),P=R(null),I=R(null),M=R(null),D=R(null),J=R(null);De(r,()=>{var Me;e.state&&(j(!1),e.props.tableLayout==="auto"&&((Me=e.refs.tableHeaderRef)==null||Me.updateFixedColumnStyle()))},{deep:!0});const oe=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},N=Me=>{var Ge;(Ge=Me.children)==null||Ge.forEach(de=>{de.fixed=Me.fixed,N(de)})};let A;const K=()=>{l.value.forEach(Re=>{N(Re)}),c.value=l.value.filter(Re=>Re.fixed===!0||Re.fixed==="left"),d.value=l.value.filter(Re=>Re.fixed==="right"),En(A)&&l.value[0]&&l.value[0].type==="selection"&&(A=!!l.value[0].fixed),c.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&(l.value[0].fixed?c.value.some(Ce=>Ce.type!=="selection")?A=void 0:(l.value[0].fixed=A,A||c.value.shift()):(l.value[0].fixed=!0,c.value.unshift(l.value[0])));const Me=l.value.filter(Re=>!Re.fixed);a.value=[].concat(c.value).concat(Me).concat(d.value);const Ge=Mh(Me),de=Mh(c.value),Ae=Mh(d.value);v.value=Ge.length,m.value=de.length,C.value=Ae.length,u.value=[].concat(de).concat(Ge).concat(Ae),i.value=c.value.length>0||d.value.length>0},j=(Me,Ge=!1)=>{Me&&K(),Ge?e.state.doLayout():e.state.debouncedUpdateLayout()},F=Me=>b.value.some(Ge=>Eo(Ge,Me)),le=()=>{y.value=!1;const Me=b.value;b.value=[],Me.length&&e.emit("selection-change",[])},ue=()=>{let Me;if(o.value){Me=[];const Ge=Kl(b.value,o.value),de=Kl(r.value,o.value);for(const Ae in Ge)kt(Ge,Ae)&&!de[Ae]&&Me.push(Ge[Ae].row)}else Me=b.value.filter(Ge=>!r.value.includes(Ge));if(Me.length){const Ge=b.value.filter(de=>!Me.includes(de));b.value=Ge,e.emit("selection-change",Ge.slice())}},se=()=>(b.value||[]).slice(),Ee=(Me,Ge,de=!0,Ae=!1)=>{var Re,Ce,z,Ke;const He={children:(Ce=(Re=e==null?void 0:e.store)==null?void 0:Re.states)==null?void 0:Ce.childrenColumnName.value,checkStrictly:(Ke=(z=e==null?void 0:e.store)==null?void 0:z.states)==null?void 0:Ke.checkStrictly.value};if(op(b.value,Me,Ge,He,Ae?void 0:O.value)){const An=(b.value||[]).slice();de&&e.emit("select",An,Me),e.emit("selection-change",An)}},fe=()=>{var Me,Ge;const de=T.value?!y.value:!(y.value||b.value.length);y.value=de;let Ae=!1,Re=0;const Ce=(Ge=(Me=e==null?void 0:e.store)==null?void 0:Me.states)==null?void 0:Ge.rowKey.value,{childrenColumnName:z}=e.store.states,Ke={children:z.value,checkStrictly:!1};r.value.forEach((He,St)=>{const An=St+Re;op(b.value,He,de,Ke,O.value,An)&&(Ae=!0),Re+=ee(wo(He,Ce))}),Ae&&e.emit("selection-change",b.value?b.value.slice():[]),e.emit("select-all",(b.value||[]).slice())},ve=()=>{const Me=Kl(b.value,o.value);r.value.forEach(Ge=>{const de=wo(Ge,o.value),Ae=Me[de];Ae&&(b.value[Ae.index]=Ge)})},Oe=()=>{var Me;if(((Me=r.value)==null?void 0:Me.length)===0){y.value=!1;return}const{childrenColumnName:Ge}=e.store.states,de=o.value?Kl(b.value,o.value):void 0;let Ae=0,Re=0;const Ce=He=>de?!!de[wo(He,o.value)]:b.value.includes(He),z=He=>{var St;for(const An of He){const fn=O.value&&O.value.call(null,An,Ae);if(Ce(An))Re++;else if(!O.value||fn)return!1;if(Ae++,(St=An[Ge.value])!=null&&St.length&&!z(An[Ge.value]))return!1}return!0},Ke=z(r.value||[]);y.value=Re===0?!1:Ke},ee=Me=>{var Ge;if(!e||!e.store)return 0;const{treeData:de}=e.store.states;let Ae=0;const Re=(Ge=de.value[Me])==null?void 0:Ge.children;return Re&&(Ae+=Re.length,Re.forEach(Ce=>{Ae+=ee(Ce)})),Ae},ne=(Me,Ge)=>{Pe(Me)||(Me=[Me]);const de={};return Me.forEach(Ae=>{k.value[Ae.id]=Ge,de[Ae.columnKey||Ae.id]=Ge}),de},Z=(Me,Ge,de)=>{I.value&&I.value!==Me&&(I.value.order=null),I.value=Me,M.value=Ge,D.value=de},ye=()=>{let Me=x(s);Object.keys(k.value).forEach(Ge=>{const de=k.value[Ge];if(!de||de.length===0)return;const Ae=qM({columns:u.value},Ge);Ae&&Ae.filterMethod&&(Me=Me.filter(Re=>de.some(Ce=>Ae.filterMethod.call(null,Ce,Re,Ae))))}),P.value=Me},ke=()=>{r.value=zK(P.value,{sortingColumn:I.value,sortProp:M.value,sortOrder:D.value})},Xe=(Me=void 0)=>{Me&&Me.filter||ye(),ke()},$=Me=>{const{tableHeaderRef:Ge}=e.refs;if(!Ge)return;const de=Object.assign({},Ge.filterPanels),Ae=Object.keys(de);if(Ae.length)if(Ye(Me)&&(Me=[Me]),Pe(Me)){const Re=Me.map(Ce=>NK({columns:u.value},Ce));Ae.forEach(Ce=>{const z=Re.find(Ke=>Ke.id===Ce);z&&(z.filteredValue=[])}),e.store.commit("filterChange",{column:Re,values:[],silent:!0,multi:!0})}else Ae.forEach(Re=>{const Ce=u.value.find(z=>z.id===Re);Ce&&(Ce.filteredValue=[])}),k.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},W=()=>{I.value&&(Z(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:re,toggleRowExpansion:be,updateExpandRows:he,states:B,isRowExpanded:H}=VK({data:r,rowKey:o}),{updateTreeExpandKeys:te,toggleTreeExpansion:ie,updateTreeData:we,updateKeyChildren:ge,loadOrToggle:q,states:ae}=FK({data:r,rowKey:o}),{updateCurrentRowData:Ne,updateCurrentRow:We,setCurrentRowKey:ct,states:mt}=BK({data:r,rowKey:o});return{assertRowKey:oe,updateColumns:K,scheduleLayout:j,isSelected:F,clearSelection:le,cleanSelection:ue,getSelectionRows:se,toggleRowSelection:Ee,_toggleAllSelection:fe,toggleAllSelection:null,updateSelectionByRowKey:ve,updateAllSelected:Oe,updateFilters:ne,updateCurrentRow:We,updateSort:Z,execFilter:ye,execSort:ke,execQuery:Xe,clearFilter:$,clearSort:W,toggleRowExpansion:be,setExpandRowKeysAdapter:Me=>{re(Me),te(Me)},setCurrentRowKey:ct,toggleRowExpansionAdapter:(Me,Ge)=>{u.value.some(({type:Ae})=>Ae==="expand")?be(Me,Ge):ie(Me,Ge)},isRowExpanded:H,updateExpandRows:he,updateCurrentRowData:Ne,loadOrToggle:q,updateTreeData:we,updateKeyChildren:ge,states:{tableSize:n,rowKey:o,data:r,_data:s,isComplex:i,_columns:l,originColumns:a,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:g,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:C,isAllSelected:y,selection:b,reserveSelection:S,selectOnIndeterminate:T,selectable:O,filters:k,filteredData:P,sortingColumn:I,sortProp:M,sortOrder:D,hoverRow:J,...B,...ae,...mt}}}function sb(t,e){return t.map(n=>{var o;return n.id===e.id?e:((o=n.children)!=null&&o.length&&(n.children=sb(n.children,e)),n)})}function ib(t){t.forEach(e=>{var n,o;e.no=(n=e.getColumnIndex)==null?void 0:n.call(e),(o=e.children)!=null&&o.length&&ib(e.children)}),t.sort((e,n)=>e.no-n.no)}function HK(){const t=gt(),e=jK();return{ns:Fe("table"),...e,mutations:{setData(i,l){const a=x(i._data)!==l;i.data.value=l,i._data.value=l,t.store.execQuery(),t.store.updateCurrentRowData(),t.store.updateExpandRows(),t.store.updateTreeData(t.store.states.defaultExpandAll.value),x(i.reserveSelection)?(t.store.assertRowKey(),t.store.updateSelectionByRowKey()):a?t.store.clearSelection():t.store.cleanSelection(),t.store.updateAllSelected(),t.$ready&&t.store.scheduleLayout()},insertColumn(i,l,a,u){const c=x(i._columns);let d=[];a?(a&&!a.children&&(a.children=[]),a.children.push(l),d=sb(c,a)):(c.push(l),d=c),ib(d),i._columns.value=d,i.updateOrderFns.push(u),l.type==="selection"&&(i.selectable.value=l.selectable,i.reserveSelection.value=l.reserveSelection),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},updateColumnOrder(i,l){var a;((a=l.getColumnIndex)==null?void 0:a.call(l))!==l.no&&(ib(i._columns.value),t.$ready&&t.store.updateColumns())},removeColumn(i,l,a,u){const c=x(i._columns)||[];if(a)a.children.splice(a.children.findIndex(f=>f.id===l.id),1),lt(()=>{var f;((f=a.children)==null?void 0:f.length)===0&&delete a.children}),i._columns.value=sb(c,a);else{const f=c.indexOf(l);f>-1&&(c.splice(f,1),i._columns.value=c)}const d=i.updateOrderFns.indexOf(u);d>-1&&i.updateOrderFns.splice(d,1),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},sort(i,l){const{prop:a,order:u,init:c}=l;if(a){const d=x(i.columns).find(f=>f.property===a);d&&(d.order=u,t.store.updateSort(d,a,u),t.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(i,l){const{sortingColumn:a,sortProp:u,sortOrder:c}=i,d=x(a),f=x(u),h=x(c);h===null&&(i.sortingColumn.value=null,i.sortProp.value=null);const p={filter:!0};t.store.execQuery(p),(!l||!(l.silent||l.init))&&t.emit("sort-change",{column:d,prop:f,order:h}),t.store.updateTableScrollY()},filterChange(i,l){const{column:a,values:u,silent:c}=l,d=t.store.updateFilters(a,u);t.store.execQuery(),c||t.emit("filter-change",d),t.store.updateTableScrollY()},toggleAllSelection(){t.store.toggleAllSelection()},rowSelectedChanged(i,l){t.store.toggleRowSelection(l),t.store.updateAllSelected()},setHoverRow(i,l){i.hoverRow.value=l},setCurrentRow(i,l){t.store.updateCurrentRow(l)}},commit:function(i,...l){const a=t.store.mutations;if(a[i])a[i].apply(t,[t.store.states].concat(l));else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){lt(()=>t.layout.updateScrollY.apply(t.layout))}}}const Yc={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function UK(t,e){if(!t)throw new Error("Table is required.");const n=HK();return n.toggleAllSelection=wu(n._toggleAllSelection,10),Object.keys(Yc).forEach(o=>{YM(XM(e,o),o,n)}),WK(n,e),n}function WK(t,e){Object.keys(Yc).forEach(n=>{De(()=>XM(e,n),o=>{YM(o,n,t)})})}function YM(t,e,n){let o=t,r=Yc[e];typeof Yc[e]=="object"&&(r=r.key,o=o||Yc[e].default),n.states[r].value=o}function XM(t,e){if(e.includes(".")){const n=e.split(".");let o=t;return n.forEach(r=>{o=o[r]}),o}else return t[e]}class qK{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=R(null),this.scrollX=R(!1),this.scrollY=R(!1),this.bodyWidth=R(null),this.fixedWidth=R(null),this.rightFixedWidth=R(null),this.gutterWidth=0;for(const n in e)kt(e,n)&&(Gt(this[n])?this[n].value=e[n]:this[n]=e[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let o=!0;const r=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,r!==o}return!1}setHeight(e,n="height"){if(!Tt)return;const o=this.table.vnode.el;if(e=LK(e),this.height.value=Number(e),!o&&(e||e===0))return lt(()=>this.setHeight(e,n));bt(e)?(o.style[n]=`${e}px`,this.updateElsHeight()):Ye(e)&&(o.style[n]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?e.push.apply(e,o.columns):e.push(o)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let n=e;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Tt)return;const e=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const r=this.getFlattenColumns(),s=r.filter(a=>!bt(a.width));if(r.forEach(a=>{bt(a.width)&&a.realWidth&&(a.realWidth=null)}),s.length>0&&e){if(r.forEach(a=>{o+=Number(a.width||a.minWidth||80)}),o<=n){this.scrollX.value=!1;const a=n-o;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+a;else{const u=s.reduce((f,h)=>f+Number(h.minWidth||80),0),c=a/u;let d=0;s.forEach((f,h)=>{if(h===0)return;const p=Math.floor(Number(f.minWidth||80)*c);d+=p,f.realWidth=Number(f.minWidth||80)+p}),s[0].realWidth=Number(s[0].minWidth||80)+a-d}}else this.scrollX.value=!0,s.forEach(a=>{a.realWidth=Number(a.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(a=>{!a.width&&!a.minWidth?a.realWidth=80:a.realWidth=Number(a.width||a.minWidth),o+=a.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const i=this.store.states.fixedColumns.value;if(i.length>0){let a=0;i.forEach(u=>{a+=Number(u.realWidth||u.width)}),this.fixedWidth.value=a}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let a=0;l.forEach(u=>{a+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=a}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const n=this.observers.indexOf(e);n!==-1&&this.observers.splice(n,1)}notifyObservers(e){this.observers.forEach(o=>{var r,s;switch(e){case"columns":(r=o.state)==null||r.onColumnsChange(this);break;case"scrollable":(s=o.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}}const{CheckboxGroup:GK}=fi,KK=ce({name:"ElTableFilterPanel",components:{ElCheckbox:fi,ElCheckboxGroup:GK,ElScrollbar:wg,ElTooltip:go,ElIcon:rt,ArrowDown:vg,ArrowUp:Tk},directives:{ClickOutside:dy},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(t){const e=gt(),{t:n}=us(),o=Fe("table-filter"),r=e==null?void 0:e.parent;r.filterPanels.value[t.column.id]||(r.filterPanels.value[t.column.id]=e);const s=R(!1),i=R(null),l=V(()=>t.column&&t.column.filters),a=V(()=>t.column.filterClassName?`${o.b()} ${t.column.filterClassName}`:o.b()),u=V({get:()=>{var S;return(((S=t.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{c.value&&(typeof S<"u"&&S!==null?c.value.splice(0,1,S):c.value.splice(0,1))}}),c=V({get(){return t.column?t.column.filteredValue||[]:[]},set(S){t.column&&t.upDataColumn("filteredValue",S)}}),d=V(()=>t.column?t.column.filterMultiple:!0),f=S=>S.value===u.value,h=()=>{s.value=!1},p=S=>{S.stopPropagation(),s.value=!s.value},g=()=>{s.value=!1},v=()=>{y(c.value),h()},m=()=>{c.value=[],y(c.value),h()},C=S=>{u.value=S,y(typeof S<"u"&&S!==null?c.value:[]),h()},y=S=>{t.store.commit("filterChange",{column:t.column,values:S}),t.store.updateAllSelected()};De(s,S=>{t.column&&t.upDataColumn("filterOpened",S)},{immediate:!0});const b=V(()=>{var S,T;return(T=(S=i.value)==null?void 0:S.popperRef)==null?void 0:T.contentRef});return{tooltipVisible:s,multiple:d,filterClassName:a,filteredValue:c,filterValue:u,filters:l,handleConfirm:v,handleReset:m,handleSelect:C,isActive:f,t:n,ns:o,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:b,tooltip:i}}});function JK(t,e,n,o,r,s){const i=at("el-checkbox"),l=at("el-checkbox-group"),a=at("el-scrollbar"),u=at("arrow-up"),c=at("arrow-down"),d=at("el-icon"),f=at("el-tooltip"),h=p0("click-outside");return _(),pe(f,{ref:"tooltip",visible:t.tooltipVisible,offset:0,placement:t.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":t.filterClassName,persistent:"","append-to":t.appendTo},{content:E(()=>[t.multiple?(_(),G("div",{key:0},[L("div",{class:Y(t.ns.e("content"))},[w(a,{"wrap-class":t.ns.e("wrap")},{default:E(()=>[w(l,{modelValue:t.filteredValue,"onUpdate:modelValue":p=>t.filteredValue=p,class:Y(t.ns.e("checkbox-group"))},{default:E(()=>[(_(!0),G(Le,null,yt(t.filters,p=>(_(),pe(i,{key:p.value,value:p.value},{default:E(()=>[U(Q(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),L("div",{class:Y(t.ns.e("bottom"))},[L("button",{class:Y({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:t.handleConfirm},Q(t.t("el.table.confirmFilter")),11,["disabled","onClick"]),L("button",{type:"button",onClick:t.handleReset},Q(t.t("el.table.resetFilter")),9,["onClick"])],2)])):(_(),G("ul",{key:1,class:Y(t.ns.e("list"))},[L("li",{class:Y([t.ns.e("list-item"),{[t.ns.is("active")]:t.filterValue===void 0||t.filterValue===null}]),onClick:p=>t.handleSelect(null)},Q(t.t("el.table.clearFilter")),11,["onClick"]),(_(!0),G(Le,null,yt(t.filters,p=>(_(),G("li",{key:p.value,class:Y([t.ns.e("list-item"),t.ns.is("active",t.isActive(p))]),label:p.value,onClick:g=>t.handleSelect(p.value)},Q(p.text),11,["label","onClick"]))),128))],2))]),default:E(()=>[$e((_(),G("span",{class:Y([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:t.showFilterPanel},[w(d,null,{default:E(()=>[Se(t.$slots,"filter-icon",{},()=>[t.column.filterOpened?(_(),pe(u,{key:0})):(_(),pe(c,{key:1}))])]),_:3})],10,["onClick"])),[[h,t.hideFilterPanel,t.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var YK=et(KK,[["render",JK],["__file","filter-panel.vue"]]);function ZM(t){const e=gt();Gp(()=>{n.value.addObserver(e)}),st(()=>{o(n.value),r(n.value)}),Sa(()=>{o(n.value),r(n.value)}),Rs(()=>{n.value.removeObserver(e)});const n=V(()=>{const s=t.layout;if(!s)throw new Error("Can not find table layout.");return s}),o=s=>{var i;const l=((i=t.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const a=s.getFlattenColumns(),u={};a.forEach(c=>{u[c.id]=c});for(let c=0,d=l.length;c{var i,l;const a=((i=t.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,d=a.length;c{g.stopPropagation()},s=(g,v)=>{!v.filters&&v.sortable?p(g,v,!1):v.filterable&&!v.sortable&&r(g),o==null||o.emit("header-click",v,g)},i=(g,v)=>{o==null||o.emit("header-contextmenu",v,g)},l=R(null),a=R(!1),u=R({}),c=(g,v)=>{if(Tt&&!(v.children&&v.children.length>0)&&l.value&&t.border){a.value=!0;const m=o;e("set-drag-visible",!0);const y=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,b=n.vnode.el.querySelector(`th.${v.id}`),S=b.getBoundingClientRect(),T=S.left-y+30;Hr(b,"noclick"),u.value={startMouseLeft:g.clientX,startLeft:S.right-y,startColumnLeft:S.left-y,tableLeft:y};const O=m==null?void 0:m.refs.resizeProxy;O.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const k=I=>{const M=I.clientX-u.value.startMouseLeft,D=u.value.startLeft+M;O.style.left=`${Math.max(T,D)}px`},P=()=>{if(a.value){const{startColumnLeft:I,startLeft:M}=u.value,J=Number.parseInt(O.style.left,10)-I;v.width=v.realWidth=J,m==null||m.emit("header-dragend",v.width,M-I,v,g),requestAnimationFrame(()=>{t.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",a.value=!1,l.value=null,u.value={},e("set-drag-visible",!1)}document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",P),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ir(b,"noclick")},0)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",P)}},d=(g,v)=>{var m;if(v.children&&v.children.length>0)return;const C=g.target;if(!sr(C))return;const y=C==null?void 0:C.closest("th");if(!(!v||!v.resizable||!y)&&!a.value&&t.border){const b=y.getBoundingClientRect(),S=document.body.style,T=((m=y.parentNode)==null?void 0:m.lastElementChild)===y;b.width>12&&b.right-g.pageX<8&&!T?(S.cursor="col-resize",Ji(y,"is-sortable")&&(y.style.cursor="col-resize"),l.value=v):a.value||(S.cursor="",Ji(y,"is-sortable")&&(y.style.cursor="pointer"),l.value=null)}},f=()=>{Tt&&(document.body.style.cursor="")},h=({order:g,sortOrders:v})=>{if(g==="")return v[0];const m=v.indexOf(g||null);return v[m>v.length-2?0:m+1]},p=(g,v,m)=>{var C;g.stopPropagation();const y=v.order===m?null:m||h(v),b=(C=g.target)==null?void 0:C.closest("th");if(b&&Ji(b,"noclick")){ir(b,"noclick");return}if(!v.sortable)return;const S=g.currentTarget;if(["ascending","descending"].some(I=>Ji(S,I)&&!v.sortOrders.includes(I)))return;const T=t.store.states;let O=T.sortProp.value,k;const P=T.sortingColumn.value;(P!==v||P===v&&P.order===null)&&(P&&(P.order=null),T.sortingColumn.value=v,O=v.property),y?k=v.order=y:k=v.order=null,T.sortProp.value=O,T.sortOrder.value=k,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:i,handleMouseDown:c,handleMouseMove:d,handleMouseOut:f,handleSortClick:p,handleFilterClick:r}}function ZK(t){const e=Ve(Fs),n=Fe("table");return{getHeaderRowStyle:l=>{const a=e==null?void 0:e.props.headerRowStyle;return Be(a)?a.call(null,{rowIndex:l}):a},getHeaderRowClass:l=>{const a=[],u=e==null?void 0:e.props.headerRowClassName;return Ye(u)?a.push(u):Be(u)&&a.push(u.call(null,{rowIndex:l})),a.join(" ")},getHeaderCellStyle:(l,a,u,c)=>{var d;let f=(d=e==null?void 0:e.props.headerCellStyle)!=null?d:{};Be(f)&&(f=f.call(null,{rowIndex:l,columnIndex:a,row:u,column:c}));const h=by(a,c.fixed,t.store,u);return _u(h,"left"),_u(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(l,a,u,c)=>{const d=vy(n.b(),a,c.fixed,t.store,u),f=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...d];c.children||f.push("is-leaf"),c.sortable&&f.push("is-sortable");const h=e==null?void 0:e.props.headerCellClassName;return Ye(h)?f.push(h):Be(h)&&f.push(h.call(null,{rowIndex:l,columnIndex:a,row:u,column:c})),f.push(n.e("cell")),f.filter(p=>!!p).join(" ")}}}const QM=t=>{const e=[];return t.forEach(n=>{n.children?(e.push(n),e.push.apply(e,QM(n.children))):e.push(n)}),e},e_=t=>{let e=1;const n=(s,i)=>{if(i&&(s.level=i.level+1,e{n(a,s),l+=a.colSpan}),s.colSpan=l}else s.colSpan=1};t.forEach(s=>{s.level=1,n(s,void 0)});const o=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(i=>i.isSubColumn=!0)):s.rowSpan=e-s.level+1,o[s.level-1].push(s)}),o};function QK(t){const e=Ve(Fs),n=V(()=>e_(t.store.states.originColumns.value));return{isGroup:V(()=>{const s=n.value.length>1;return s&&e&&(e.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),e==null||e.store.commit("toggleAllSelection")},columnRows:n}}var eJ=ce({name:"ElTableHeader",components:{ElCheckbox:fi},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String}},setup(t,{emit:e}){const n=gt(),o=Ve(Fs),r=Fe("table"),s=R({}),{onColumnsChange:i,onScrollableChange:l}=ZM(o),a=(o==null?void 0:o.props.tableLayout)==="auto",u=ut(new Map),c=R(),d=()=>{setTimeout(()=>{u.size>0&&(u.forEach((I,M)=>{const D=c.value.querySelector(`.${M.replace(/\s/g,".")}`);if(D){const J=D.getBoundingClientRect().width;I.width=J}}),u.clear())})};De(u,d),st(async()=>{await lt(),await lt();const{prop:I,order:M}=t.defaultSort;o==null||o.store.commit("sort",{prop:I,order:M,init:!0}),d()});const{handleHeaderClick:f,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:g,handleMouseOut:v,handleSortClick:m,handleFilterClick:C}=XK(t,e),{getHeaderRowStyle:y,getHeaderRowClass:b,getHeaderCellStyle:S,getHeaderCellClass:T}=ZK(t),{isGroup:O,toggleAllSelection:k,columnRows:P}=QK(t);return n.state={onColumnsChange:i,onScrollableChange:l},n.filterPanels=s,{ns:r,filterPanels:s,onColumnsChange:i,onScrollableChange:l,columnRows:P,getHeaderRowClass:b,getHeaderRowStyle:y,getHeaderCellClass:T,getHeaderCellStyle:S,handleHeaderClick:f,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:g,handleMouseOut:v,handleSortClick:m,handleFilterClick:C,isGroup:O,toggleAllSelection:k,saveIndexSelection:u,isTableLayoutAuto:a,theadRef:c,updateFixedColumnStyle:d}},render(){const{ns:t,isGroup:e,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:r,getHeaderRowClass:s,getHeaderRowStyle:i,handleHeaderClick:l,handleHeaderContextMenu:a,handleMouseDown:u,handleMouseMove:c,handleSortClick:d,handleMouseOut:f,store:h,$parent:p,saveIndexSelection:g,isTableLayoutAuto:v}=this;let m=1;return Ue("thead",{ref:"theadRef",class:{[t.is("group")]:e}},n.map((C,y)=>Ue("tr",{class:s(y),key:y,style:i(y)},C.map((b,S)=>{b.rowSpan>m&&(m=b.rowSpan);const T=r(y,S,C,b);return v&&b.fixed&&g.set(T,b),Ue("th",{class:T,colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:o(y,S,C,b),onClick:O=>{O.currentTarget.classList.contains("noclick")||l(O,b)},onContextmenu:O=>a(O,b),onMousedown:O=>u(O,b),onMousemove:O=>c(O,b),onMouseout:f},[Ue("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:S,store:h,_self:p}):b.label,b.sortable&&Ue("span",{onClick:O=>d(O,b),class:"caret-wrapper"},[Ue("i",{onClick:O=>d(O,b,"ascending"),class:"sort-caret ascending"}),Ue("i",{onClick:O=>d(O,b,"descending"),class:"sort-caret descending"})]),b.filterable&&Ue(YK,{store:h,placement:b.filterPlacement||"bottom-start",appendTo:p.appendFilterPanelTo,column:b,upDataColumn:(O,k)=>{b[O]=k}},{"filter-icon":()=>b.renderFilterIcon?b.renderFilterIcon({filterOpened:b.filterOpened}):null})])])}))))}});function Nm(t,e,n=.03){return t-e>n}function tJ(t){const e=Ve(Fs),n=R(""),o=R(Ue("div")),r=(p,g,v)=>{var m;const C=e,y=Pm(p);let b;const S=(m=C==null?void 0:C.vnode.el)==null?void 0:m.dataset.prefix;y&&(b=kx({columns:t.store.states.columns.value},y,S),b&&(C==null||C.emit(`cell-${v}`,g,b,y,p))),C==null||C.emit(`row-${v}`,g,b,p)},s=(p,g)=>{r(p,g,"dblclick")},i=(p,g)=>{t.store.commit("setCurrentRow",g),r(p,g,"click")},l=(p,g)=>{r(p,g,"contextmenu")},a=wu(p=>{t.store.commit("setHoverRow",p)},30),u=wu(()=>{t.store.commit("setHoverRow",null)},30),c=p=>{const g=window.getComputedStyle(p,null),v=Number.parseInt(g.paddingLeft,10)||0,m=Number.parseInt(g.paddingRight,10)||0,C=Number.parseInt(g.paddingTop,10)||0,y=Number.parseInt(g.paddingBottom,10)||0;return{left:v,right:m,top:C,bottom:y}},d=(p,g,v)=>{let m=g.target.parentNode;for(;p>1&&(m=m==null?void 0:m.nextSibling,!(!m||m.nodeName!=="TR"));)v(m,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:s,handleClick:i,handleContextMenu:l,handleMouseEnter:a,handleMouseLeave:u,handleCellMouseEnter:(p,g,v)=>{var m;const C=e,y=Pm(p),b=(m=C==null?void 0:C.vnode.el)==null?void 0:m.dataset.prefix;if(y){const K=kx({columns:t.store.states.columns.value},y,b);y.rowSpan>1&&d(y.rowSpan,p,Hr);const j=C.hoverState={cell:y,column:K,row:g};C==null||C.emit("cell-mouse-enter",j.row,j.column,j.cell,p)}if(!v)return;const S=p.target.querySelector(".cell");if(!(Ji(S,`${b}-tooltip`)&&S.childNodes.length))return;const T=document.createRange();T.setStart(S,0),T.setEnd(S,S.childNodes.length);const{width:O,height:k}=T.getBoundingClientRect(),{width:P,height:I}=S.getBoundingClientRect(),{top:M,left:D,right:J,bottom:oe}=c(S),N=D+J,A=M+oe;(Nm(O+N,P)||Nm(k+A,I)||Nm(S.scrollWidth,P))&&DK(v,y.innerText||y.textContent,y,C)},handleCellMouseLeave:p=>{const g=Pm(p);if(!g)return;g.rowSpan>1&&d(g.rowSpan,p,ir);const v=e==null?void 0:e.hoverState;e==null||e.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,p)},tooltipContent:n,tooltipTrigger:o}}function nJ(t){const e=Ve(Fs),n=Fe("table");return{getRowStyle:(u,c)=>{const d=e==null?void 0:e.props.rowStyle;return Be(d)?d.call(null,{row:u,rowIndex:c}):d||null},getRowClass:(u,c)=>{const d=[n.e("row")];e!=null&&e.props.highlightCurrentRow&&u===t.store.states.currentRow.value&&d.push("current-row"),t.stripe&&c%2===1&&d.push(n.em("row","striped"));const f=e==null?void 0:e.props.rowClassName;return Ye(f)?d.push(f):Be(f)&&d.push(f.call(null,{row:u,rowIndex:c})),d},getCellStyle:(u,c,d,f)=>{const h=e==null?void 0:e.props.cellStyle;let p=h??{};Be(h)&&(p=h.call(null,{rowIndex:u,columnIndex:c,row:d,column:f}));const g=by(c,t==null?void 0:t.fixed,t.store);return _u(g,"left"),_u(g,"right"),Object.assign({},p,g)},getCellClass:(u,c,d,f,h)=>{const p=vy(n.b(),c,t==null?void 0:t.fixed,t.store,void 0,h),g=[f.id,f.align,f.className,...p],v=e==null?void 0:e.props.cellClassName;return Ye(v)?g.push(v):Be(v)&&g.push(v.call(null,{rowIndex:u,columnIndex:c,row:d,column:f})),g.push(n.e("cell")),g.filter(m=>!!m).join(" ")},getSpan:(u,c,d,f)=>{let h=1,p=1;const g=e==null?void 0:e.props.spanMethod;if(Be(g)){const v=g({row:u,column:c,rowIndex:d,columnIndex:f});Pe(v)?(h=v[0],p=v[1]):typeof v=="object"&&(h=v.rowspan,p=v.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(u,c,d)=>{if(c<1)return u[d].realWidth;const f=u.map(({realWidth:h,width:p})=>h||p).slice(d,d+c);return Number(f.reduce((h,p)=>Number(h)+Number(p),-1))}}}const oJ=ce({name:"TableTdWrapper"}),rJ=ce({...oJ,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(t){return(e,n)=>(_(),G("td",{colspan:t.colspan,rowspan:t.rowspan},[Se(e.$slots,"default")],8,["colspan","rowspan"]))}});var sJ=et(rJ,[["__file","td-wrapper.vue"]]);function iJ(t){const e=Ve(Fs),n=Fe("table"),{handleDoubleClick:o,handleClick:r,handleContextMenu:s,handleMouseEnter:i,handleMouseLeave:l,handleCellMouseEnter:a,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:d}=tJ(t),{getRowStyle:f,getRowClass:h,getCellStyle:p,getCellClass:g,getSpan:v,getColspanRealWidth:m}=nJ(t),C=V(()=>t.store.states.columns.value.findIndex(({type:O})=>O==="default")),y=(O,k)=>{const P=e.props.rowKey;return P?wo(O,P):k},b=(O,k,P,I=!1)=>{const{tooltipEffect:M,tooltipOptions:D,store:J}=t,{indent:oe,columns:N}=J.states,A=h(O,k);let K=!0;return P&&(A.push(n.em("row",`level-${P.level}`)),K=P.display),Ue("tr",{style:[K?null:{display:"none"},f(O,k)],class:A,key:y(O,k),onDblclick:F=>o(F,O),onClick:F=>r(F,O),onContextmenu:F=>s(F,O),onMouseenter:()=>i(k),onMouseleave:l},N.value.map((F,le)=>{const{rowspan:ue,colspan:se}=v(O,F,k,le);if(!ue||!se)return null;const Ee=Object.assign({},F);Ee.realWidth=m(N.value,se,le);const fe={store:t.store,_self:t.context||e,column:Ee,row:O,$index:k,cellIndex:le,expanded:I};le===C.value&&P&&(fe.treeNode={indent:P.level*oe.value,level:P.level},Pn(P.expanded)&&(fe.treeNode.expanded=P.expanded,"loading"in P&&(fe.treeNode.loading=P.loading),"noLazyChildren"in P&&(fe.treeNode.noLazyChildren=P.noLazyChildren)));const ve=`${y(O,k)},${le}`,Oe=Ee.columnKey||Ee.rawColumnKey||"",ee=F.showOverflowTooltip&&pn({effect:M},D,F.showOverflowTooltip);return Ue(sJ,{style:p(k,le,O,F),class:g(k,le,O,F,se-1),key:`${Oe}${ve}`,rowspan:ue,colspan:se,onMouseenter:ne=>a(ne,O,ee),onMouseleave:u},{default:()=>S(le,F,fe)})}))},S=(O,k,P)=>k.renderCell(P);return{wrappedRowRender:(O,k)=>{const P=t.store,{isRowExpanded:I,assertRowKey:M}=P,{treeData:D,lazyTreeNodeMap:J,childrenColumnName:oe,rowKey:N}=P.states,A=P.states.columns.value;if(A.some(({type:j})=>j==="expand")){const j=I(O),F=b(O,k,void 0,j),le=e.renderExpanded;return j?le?[[F,Ue("tr",{key:`expanded-row__${F.key}`},[Ue("td",{colspan:A.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[le({row:O,$index:k,store:P,expanded:j})])])]]:F:[[F]]}else if(Object.keys(D.value).length){M();const j=wo(O,N.value);let F=D.value[j],le=null;F&&(le={expanded:F.expanded,level:F.level,display:!0},Pn(F.lazy)&&(Pn(F.loaded)&&F.loaded&&(le.noLazyChildren=!(F.children&&F.children.length)),le.loading=F.loading));const ue=[b(O,k,le)];if(F){let se=0;const Ee=(ve,Oe)=>{ve&&ve.length&&Oe&&ve.forEach(ee=>{const ne={display:Oe.display&&Oe.expanded,level:Oe.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Z=wo(ee,N.value);if(Z==null)throw new Error("For nested data item, row-key is required.");if(F={...D.value[Z]},F&&(ne.expanded=F.expanded,F.level=F.level||ne.level,F.display=!!(F.expanded&&ne.display),Pn(F.lazy)&&(Pn(F.loaded)&&F.loaded&&(ne.noLazyChildren=!(F.children&&F.children.length)),ne.loading=F.loading)),se++,ue.push(b(ee,k+se,ne)),F){const ye=J.value[Z]||ee[oe.value];Ee(ye,F)}})};F.display=!0;const fe=J.value[j]||O[oe.value];Ee(fe,F)}return ue}else return b(O,k,void 0)},tooltipContent:c,tooltipTrigger:d}}const lJ={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var aJ=ce({name:"ElTableBody",props:lJ,setup(t){const e=gt(),n=Ve(Fs),o=Fe("table"),{wrappedRowRender:r,tooltipContent:s,tooltipTrigger:i}=iJ(t),{onColumnsChange:l,onScrollableChange:a}=ZM(n),u=[];return De(t.store.states.hoverRow,(c,d)=>{var f;const h=e==null?void 0:e.vnode.el,p=Array.from((h==null?void 0:h.children)||[]).filter(m=>m==null?void 0:m.classList.contains(`${o.e("row")}`));let g=c;const v=(f=p[g])==null?void 0:f.childNodes;if(v!=null&&v.length){let m=0;Array.from(v).reduce((y,b,S)=>{var T,O;return((T=v[S])==null?void 0:T.colSpan)>1&&(m=(O=v[S])==null?void 0:O.colSpan),b.nodeName!=="TD"&&m===0&&y.push(S),m>0&&m--,y},[]).forEach(y=>{var b;for(g=c;g>0;){const S=(b=p[g-1])==null?void 0:b.childNodes;if(S[y]&&S[y].nodeName==="TD"&&S[y].rowSpan>1){Hr(S[y],"hover-cell"),u.push(S[y]);break}g--}})}else u.forEach(m=>ir(m,"hover-cell")),u.length=0;!t.store.states.isComplex.value||!Tt||Xz(()=>{const m=p[d],C=p[c];m&&!m.classList.contains("hover-fixed-row")&&ir(m,"hover-row"),C&&Hr(C,"hover-row")})}),Rs(()=>{var c;(c=hr)==null||c()}),{ns:o,onColumnsChange:l,onScrollableChange:a,wrappedRowRender:r,tooltipContent:s,tooltipTrigger:i}},render(){const{wrappedRowRender:t,store:e}=this,n=e.states.data.value||[];return Ue("tbody",{tabIndex:-1},[n.reduce((o,r)=>o.concat(t(r,o.length)),[])])}});function uJ(){const t=Ve(Fs),e=t==null?void 0:t.store,n=V(()=>e.states.fixedLeafColumnsLength.value),o=V(()=>e.states.rightFixedColumns.value.length),r=V(()=>e.states.columns.value.length),s=V(()=>e.states.fixedColumns.value.length),i=V(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:r,leftFixedCount:s,rightFixedCount:i,columns:e.states.columns}}function cJ(t){const{columns:e}=uJ(),n=Fe("table");return{getCellClasses:(s,i)=>{const l=s[i],a=[n.e("cell"),l.id,l.align,l.labelClassName,...vy(n.b(),i,l.fixed,t.store)];return l.className&&a.push(l.className),l.children||a.push(n.is("leaf")),a},getCellStyles:(s,i)=>{const l=by(i,s.fixed,t.store);return _u(l,"left"),_u(l,"right"),l},columns:e}}var dJ=ce({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t){const{getCellClasses:e,getCellStyles:n,columns:o}=cJ(t);return{ns:Fe("table"),getCellClasses:e,getCellStyles:n,columns:o}},render(){const{columns:t,getCellStyles:e,getCellClasses:n,summaryMethod:o,sumText:r}=this,s=this.store.states.data.value;let i=[];return o?i=o({columns:t,data:s}):t.forEach((l,a)=>{if(a===0){i[a]=r;return}const u=s.map(h=>Number(h[l.property])),c=[];let d=!0;u.forEach(h=>{if(!Number.isNaN(+h)){d=!1;const p=`${h}`.split(".")[1];c.push(p?p.length:0)}});const f=Math.max.apply(null,c);d?i[a]="":i[a]=u.reduce((h,p)=>{const g=Number(p);return Number.isNaN(+g)?h:Number.parseFloat((h+p).toFixed(Math.min(f,20)))},0)}),Ue(Ue("tfoot",[Ue("tr",{},[...t.map((l,a)=>Ue("td",{key:a,colspan:l.colSpan,rowspan:l.rowSpan,class:n(t,a),style:e(l,a)},[Ue("div",{class:["cell",l.labelClassName]},[i[a]])]))])]))}});function fJ(t){return{setCurrentRow:d=>{t.commit("setCurrentRow",d)},getSelectionRows:()=>t.getSelectionRows(),toggleRowSelection:(d,f,h=!0)=>{t.toggleRowSelection(d,f,!1,h),t.updateAllSelected()},clearSelection:()=>{t.clearSelection()},clearFilter:d=>{t.clearFilter(d)},toggleAllSelection:()=>{t.commit("toggleAllSelection")},toggleRowExpansion:(d,f)=>{t.toggleRowExpansionAdapter(d,f)},clearSort:()=>{t.clearSort()},sort:(d,f)=>{t.commit("sort",{prop:d,order:f})},updateKeyChildren:(d,f)=>{t.updateKeyChildren(d,f)}}}function hJ(t,e,n,o){const r=R(!1),s=R(null),i=R(!1),l=j=>{i.value=j},a=R({width:null,height:null,headerHeight:null}),u=R(!1),c={display:"inline-block",verticalAlign:"middle"},d=R(),f=R(0),h=R(0),p=R(0),g=R(0),v=R(0);Gr(()=>{e.setHeight(t.height)}),Gr(()=>{e.setMaxHeight(t.maxHeight)}),De(()=>[t.currentRowKey,n.states.rowKey],([j,F])=>{!x(F)||!x(j)||n.setCurrentRowKey(`${j}`)},{immediate:!0}),De(()=>t.data,j=>{o.store.commit("setData",j)},{immediate:!0,deep:!0}),Gr(()=>{t.expandRowKeys&&n.setExpandRowKeysAdapter(t.expandRowKeys)});const m=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},C=(j,F)=>{const{pixelX:le,pixelY:ue}=F;Math.abs(le)>=Math.abs(ue)&&(o.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},y=V(()=>t.height||t.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),b=V(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),S=()=>{y.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(P)};st(async()=>{await lt(),n.updateColumns(),I(),requestAnimationFrame(S);const j=o.vnode.el,F=o.refs.headerWrapper;t.flexible&&j&&j.parentElement&&(j.parentElement.style.minWidth="0"),a.value={width:d.value=j.offsetWidth,height:j.offsetHeight,headerHeight:t.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(le=>{le.filteredValue&&le.filteredValue.length&&o.store.commit("filterChange",{column:le,values:le.filteredValue,silent:!0})}),o.$ready=!0});const T=(j,F)=>{if(!j)return;const le=Array.from(j.classList).filter(ue=>!ue.startsWith("is-scrolling-"));le.push(e.scrollX.value?F:"is-scrolling-none"),j.className=le.join(" ")},O=j=>{const{tableWrapper:F}=o.refs;T(F,j)},k=j=>{const{tableWrapper:F}=o.refs;return!!(F&&F.classList.contains(j))},P=function(){if(!o.refs.scrollBarRef)return;if(!e.scrollX.value){const ve="is-scrolling-none";k(ve)||O(ve);return}const j=o.refs.scrollBarRef.wrapRef;if(!j)return;const{scrollLeft:F,offsetWidth:le,scrollWidth:ue}=j,{headerWrapper:se,footerWrapper:Ee}=o.refs;se&&(se.scrollLeft=F),Ee&&(Ee.scrollLeft=F);const fe=ue-le-1;F>=fe?O("is-scrolling-right"):O(F===0?"is-scrolling-left":"is-scrolling-middle")},I=()=>{o.refs.scrollBarRef&&(o.refs.scrollBarRef.wrapRef&&yn(o.refs.scrollBarRef.wrapRef,"scroll",P,{passive:!0}),t.fit?so(o.vnode.el,M):yn(window,"resize",M),so(o.refs.bodyWrapper,()=>{var j,F;M(),(F=(j=o.refs)==null?void 0:j.scrollBarRef)==null||F.update()}))},M=()=>{var j,F,le,ue;const se=o.vnode.el;if(!o.$ready||!se)return;let Ee=!1;const{width:fe,height:ve,headerHeight:Oe}=a.value,ee=d.value=se.offsetWidth;fe!==ee&&(Ee=!0);const ne=se.offsetHeight;(t.height||y.value)&&ve!==ne&&(Ee=!0);const Z=t.tableLayout==="fixed"?o.refs.headerWrapper:(j=o.refs.tableHeaderRef)==null?void 0:j.$el;t.showHeader&&(Z==null?void 0:Z.offsetHeight)!==Oe&&(Ee=!0),f.value=((F=o.refs.tableWrapper)==null?void 0:F.scrollHeight)||0,p.value=(Z==null?void 0:Z.scrollHeight)||0,g.value=((le=o.refs.footerWrapper)==null?void 0:le.offsetHeight)||0,v.value=((ue=o.refs.appendWrapper)==null?void 0:ue.offsetHeight)||0,h.value=f.value-p.value-g.value-v.value,Ee&&(a.value={width:ee,height:ne,headerHeight:t.showHeader&&(Z==null?void 0:Z.offsetHeight)||0},S())},D=Ar(),J=V(()=>{const{bodyWidth:j,scrollY:F,gutterWidth:le}=e;return j.value?`${j.value-(F.value?le:0)}px`:""}),oe=V(()=>t.maxHeight?"fixed":t.tableLayout),N=V(()=>{if(t.data&&t.data.length)return null;let j="100%";t.height&&h.value&&(j=`${h.value}px`);const F=d.value;return{width:F?`${F}px`:"",height:j}}),A=V(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${p.value+g.value}px)`}:{maxHeight:`${t.maxHeight-p.value-g.value}px`}:{});return{isHidden:r,renderExpanded:s,setDragVisible:l,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:C,tableSize:D,emptyBlockStyle:N,handleFixedMousewheel:(j,F)=>{const le=o.refs.bodyWrapper;if(Math.abs(F.spinY)>0){const ue=le.scrollTop;F.pixelY<0&&ue!==0&&j.preventDefault(),F.pixelY>0&&le.scrollHeight-le.clientHeight>ue&&j.preventDefault(),le.scrollTop+=Math.ceil(F.pixelY/5)}else le.scrollLeft+=Math.ceil(F.pixelX/5)},resizeProxyVisible:i,bodyWidth:J,resizeState:a,doLayout:S,tableBodyStyles:b,tableLayout:oe,scrollbarViewStyle:c,scrollbarStyle:A}}function pJ(t){const e=R(),n=()=>{const r=t.vnode.el.querySelector(".hidden-columns"),s={childList:!0,subtree:!0},i=t.store.states.updateOrderFns;e.value=new MutationObserver(()=>{i.forEach(l=>l())}),e.value.observe(r,s)};st(()=>{n()}),Rs(()=>{var o;(o=e.value)==null||o.disconnect()})}var gJ={data:{type:Array,default:()=>[]},size:wi,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0}};function t_(t){const e=t.tableLayout==="auto";let n=t.columns||[];e&&n.every(r=>r.width===void 0)&&(n=[]);const o=r=>{const s={key:`${t.tableLayout}_${r.id}`,style:{},name:void 0};return e?s.style={width:`${r.width}px`}:s.name=r.id,s};return Ue("colgroup",{},n.map(r=>Ue("col",o(r))))}t_.props=["columns","tableLayout"];const mJ=()=>{const t=R(),e=(s,i)=>{const l=t.value;l&&l.scrollTo(s,i)},n=(s,i)=>{const l=t.value;l&&bt(i)&&["Top","Left"].includes(s)&&l[`setScroll${s}`](i)};return{scrollBarRef:t,scrollTo:e,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};var Px=!1,zl,lb,ab,_h,Ah,n_,Ph,ub,cb,db,o_,fb,hb,r_,s_;function zo(){if(!Px){Px=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(fb=/\b(iPhone|iP[ao]d)/.exec(t),hb=/\b(iP[ao]d)/.exec(t),db=/Android/i.exec(t),r_=/FBAN\/\w+;/i.exec(t),s_=/Mobile/i.exec(t),o_=!!/Win64/.exec(t),e){zl=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,zl&&document&&document.documentMode&&(zl=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(t);n_=o?parseFloat(o[1])+4:zl,lb=e[2]?parseFloat(e[2]):NaN,ab=e[3]?parseFloat(e[3]):NaN,_h=e[4]?parseFloat(e[4]):NaN,_h?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),Ah=e&&e[1]?parseFloat(e[1]):NaN):Ah=NaN}else zl=lb=ab=Ah=_h=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);Ph=r?parseFloat(r[1].replace("_",".")):!0}else Ph=!1;ub=!!n[2],cb=!!n[3]}else Ph=ub=cb=!1}}var pb={ie:function(){return zo()||zl},ieCompatibilityMode:function(){return zo()||n_>zl},ie64:function(){return pb.ie()&&o_},firefox:function(){return zo()||lb},opera:function(){return zo()||ab},webkit:function(){return zo()||_h},safari:function(){return pb.webkit()},chrome:function(){return zo()||Ah},windows:function(){return zo()||ub},osx:function(){return zo()||Ph},linux:function(){return zo()||cb},iphone:function(){return zo()||fb},mobile:function(){return zo()||fb||hb||db||s_},nativeApp:function(){return zo()||r_},android:function(){return zo()||db},ipad:function(){return zo()||hb}},vJ=pb,Qf=!!(typeof window<"u"&&window.document&&window.document.createElement),bJ={canUseDOM:Qf,canUseWorkers:typeof Worker<"u",canUseEventListeners:Qf&&!!(window.addEventListener||window.attachEvent),canUseViewport:Qf&&!!window.screen,isInWorker:!Qf},i_=bJ,l_;i_.canUseDOM&&(l_=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function yJ(t,e){if(!i_.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var r=document.createElement("div");r.setAttribute(n,"return;"),o=typeof r[n]=="function"}return!o&&l_&&t==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var wJ=yJ,Nx=10,Ix=40,Lx=800;function a_(t){var e=0,n=0,o=0,r=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),o=e*Nx,r=n*Nx,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(o=t.deltaX),(o||r)&&t.deltaMode&&(t.deltaMode==1?(o*=Ix,r*=Ix):(o*=Lx,r*=Lx)),o&&!e&&(e=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:e,spinY:n,pixelX:o,pixelY:r}}a_.getEventType=function(){return vJ.firefox()?"DOMMouseScroll":wJ("wheel")?"wheel":"mousewheel"};var CJ=a_;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const xJ=function(t,e){if(t&&t.addEventListener){const n=function(o){const r=CJ(o);e&&Reflect.apply(e,this,[o,r])};t.addEventListener("wheel",n,{passive:!0})}},SJ={beforeMount(t,e){xJ(t,e.value)}};let EJ=1;const TJ=ce({name:"ElTable",directives:{Mousewheel:SJ},components:{TableHeader:eJ,TableBody:aJ,TableFooter:dJ,ElScrollbar:wg,hColgroup:t_},props:gJ,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(t){const{t:e}=us(),n=Fe("table"),o=gt();Bt(Fs,o);const r=UK(o,t);o.store=r;const s=new qK({store:o.store,table:o,fit:t.fit,showHeader:t.showHeader});o.layout=s;const i=V(()=>(r.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:a,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,sort:g,updateKeyChildren:v}=fJ(r),{isHidden:m,renderExpanded:C,setDragVisible:y,isGroup:b,handleMouseLeave:S,handleHeaderFooterMousewheel:T,tableSize:O,emptyBlockStyle:k,handleFixedMousewheel:P,resizeProxyVisible:I,bodyWidth:M,resizeState:D,doLayout:J,tableBodyStyles:oe,tableLayout:N,scrollbarViewStyle:A,scrollbarStyle:K}=hJ(t,s,r,o),{scrollBarRef:j,scrollTo:F,setScrollLeft:le,setScrollTop:ue}=mJ(),se=wu(J,50),Ee=`${n.namespace.value}-table_${EJ++}`;o.tableId=Ee,o.state={isGroup:b,resizeState:D,doLayout:J,debouncedUpdateLayout:se};const fe=V(()=>{var ee;return(ee=t.sumText)!=null?ee:e("el.table.sumText")}),ve=V(()=>{var ee;return(ee=t.emptyText)!=null?ee:e("el.table.emptyText")}),Oe=V(()=>e_(r.states.originColumns.value)[0]);return pJ(o),un(()=>{se.cancel()}),{ns:n,layout:s,store:r,columns:Oe,handleHeaderFooterMousewheel:T,handleMouseLeave:S,tableId:Ee,tableSize:O,isHidden:m,isEmpty:i,renderExpanded:C,resizeProxyVisible:I,resizeState:D,isGroup:b,bodyWidth:M,tableBodyStyles:oe,emptyBlockStyle:k,debouncedUpdateLayout:se,handleFixedMousewheel:P,setCurrentRow:l,getSelectionRows:a,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,doLayout:J,sort:g,updateKeyChildren:v,t:e,setDragVisible:y,context:o,computedSumText:fe,computedEmptyText:ve,tableLayout:N,scrollbarViewStyle:A,scrollbarStyle:K,scrollBarRef:j,scrollTo:F,setScrollLeft:le,setScrollTop:ue}}});function OJ(t,e,n,o,r,s){const i=at("hColgroup"),l=at("table-header"),a=at("table-body"),u=at("table-footer"),c=at("el-scrollbar"),d=p0("mousewheel");return _(),G("div",{ref:"tableWrapper",class:Y([{[t.ns.m("fit")]:t.fit,[t.ns.m("striped")]:t.stripe,[t.ns.m("border")]:t.border||t.isGroup,[t.ns.m("hidden")]:t.isHidden,[t.ns.m("group")]:t.isGroup,[t.ns.m("fluid-height")]:t.maxHeight,[t.ns.m("scrollable-x")]:t.layout.scrollX.value,[t.ns.m("scrollable-y")]:t.layout.scrollY.value,[t.ns.m("enable-row-hover")]:!t.store.states.isComplex.value,[t.ns.m("enable-row-transition")]:(t.store.states.data.value||[]).length!==0&&(t.store.states.data.value||[]).length<100,"has-footer":t.showSummary},t.ns.m(t.tableSize),t.className,t.ns.b(),t.ns.m(`layout-${t.tableLayout}`)]),style:ft(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:t.handleMouseLeave},[L("div",{class:Y(t.ns.e("inner-wrapper"))},[L("div",{ref:"hiddenColumns",class:"hidden-columns"},[Se(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?$e((_(),G("div",{key:0,ref:"headerWrapper",class:Y(t.ns.e("header-wrapper"))},[L("table",{ref:"tableHeader",class:Y(t.ns.e("header")),style:ft(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[w(i,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),w(l,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,"append-filter-panel-to":t.appendFilterPanelTo,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","onSetDragVisible"])],6)],2)),[[d,t.handleHeaderFooterMousewheel]]):me("v-if",!0),L("div",{ref:"bodyWrapper",class:Y(t.ns.e("body-wrapper"))},[w(c,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn,tabindex:t.scrollbarTabindex,onScroll:f=>t.$emit("scroll",f)},{default:E(()=>[L("table",{ref:"tableBody",class:Y(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:ft({width:t.bodyWidth,tableLayout:t.tableLayout})},[w(i,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(_(),pe(l,{key:0,ref:"tableHeaderRef",class:Y(t.ns.e("body-header")),border:t.border,"default-sort":t.defaultSort,store:t.store,"append-filter-panel-to":t.appendFilterPanelTo,onSetDragVisible:t.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):me("v-if",!0),w(a,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),t.showSummary&&t.tableLayout==="auto"?(_(),pe(u,{key:1,class:Y(t.ns.e("body-footer")),border:t.border,"default-sort":t.defaultSort,store:t.store,"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):me("v-if",!0)],6),t.isEmpty?(_(),G("div",{key:0,ref:"emptyBlock",style:ft(t.emptyBlockStyle),class:Y(t.ns.e("empty-block"))},[L("span",{class:Y(t.ns.e("empty-text"))},[Se(t.$slots,"empty",{},()=>[U(Q(t.computedEmptyText),1)])],2)],6)):me("v-if",!0),t.$slots.append?(_(),G("div",{key:1,ref:"appendWrapper",class:Y(t.ns.e("append-wrapper"))},[Se(t.$slots,"append")],2)):me("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),t.showSummary&&t.tableLayout==="fixed"?$e((_(),G("div",{key:1,ref:"footerWrapper",class:Y(t.ns.e("footer-wrapper"))},[L("table",{class:Y(t.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:ft(t.tableBodyStyles)},[w(i,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),w(u,{border:t.border,"default-sort":t.defaultSort,store:t.store,"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[qe,!t.isEmpty],[d,t.handleHeaderFooterMousewheel]]):me("v-if",!0),t.border||t.isGroup?(_(),G("div",{key:2,class:Y(t.ns.e("border-left-patch"))},null,2)):me("v-if",!0)],2),$e(L("div",{ref:"resizeProxy",class:Y(t.ns.e("column-resize-proxy"))},null,2),[[qe,t.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var kJ=et(TJ,[["render",OJ],["__file","table.vue"]]);const MJ={selection:"table-column--selection",expand:"table__expand-column"},_J={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},AJ=t=>MJ[t]||"",PJ={selection:{renderHeader({store:t,column:e}){function n(){return t.states.data.value&&t.states.data.value.length===0}return Ue(fi,{disabled:n(),size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:e.label})},renderCell({row:t,column:e,store:n,$index:o}){return Ue(fi,{disabled:e.selectable?!e.selectable.call(null,t,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",t)},onClick:r=>r.stopPropagation(),modelValue:n.isSelected(t),ariaLabel:e.label})},sortable:!1,resizable:!1},index:{renderHeader({column:t}){return t.label||"#"},renderCell({column:t,$index:e}){let n=e+1;const o=t.index;return bt(o)?n=e+o:Be(o)&&(n=o(e)),Ue("div",{},[n])},sortable:!1},expand:{renderHeader({column:t}){return t.label||""},renderCell({row:t,store:e,expanded:n}){const{ns:o}=e,r=[o.e("expand-icon")];return n&&r.push(o.em("expand-icon","expanded")),Ue("div",{class:r,onClick:function(i){i.stopPropagation(),e.toggleRowExpansion(t)}},{default:()=>[Ue(rt,null,{default:()=>[Ue(ff)]})]})},sortable:!1,resizable:!1}};function NJ({row:t,column:e,$index:n}){var o;const r=e.property,s=r&&Sh(t,r).value;return e&&e.formatter?e.formatter(t,e,s,n):((o=s==null?void 0:s.toString)==null?void 0:o.call(s))||""}function IJ({row:t,treeNode:e,store:n},o=!1){const{ns:r}=n;if(!e)return o?[Ue("span",{class:r.e("placeholder")})]:null;const s=[],i=function(l){l.stopPropagation(),!e.loading&&n.loadOrToggle(t)};if(e.indent&&s.push(Ue("span",{class:r.e("indent"),style:{"padding-left":`${e.indent}px`}})),Pn(e.expanded)&&!e.noLazyChildren){const l=[r.e("expand-icon"),e.expanded?r.em("expand-icon","expanded"):""];let a=ff;e.loading&&(a=kd),s.push(Ue("div",{class:l,onClick:i},{default:()=>[Ue(rt,{class:{[r.is("loading")]:e.loading}},{default:()=>[Ue(a)]})]}))}else s.push(Ue("span",{class:r.e("placeholder")}));return s}function Rx(t,e){return t.reduce((n,o)=>(n[o]=o,n),e)}function LJ(t,e){const n=gt();return{registerComplexWatchers:()=>{const s=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},l=Rx(s,i);Object.keys(l).forEach(a=>{const u=i[a];kt(e,u)&&De(()=>e[u],c=>{let d=c;u==="width"&&a==="realWidth"&&(d=my(c)),u==="minWidth"&&a==="realMinWidth"&&(d=GM(c)),n.columnConfig.value[u]=d,n.columnConfig.value[a]=d;const f=u==="fixed";t.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=Rx(s,i);Object.keys(l).forEach(a=>{const u=i[a];kt(e,u)&&De(()=>e[u],c=>{n.columnConfig.value[a]=c})})}}}function RJ(t,e,n){const o=gt(),r=R(""),s=R(!1),i=R(),l=R(),a=Fe("table");Gr(()=>{i.value=t.align?`is-${t.align}`:null,i.value}),Gr(()=>{l.value=t.headerAlign?`is-${t.headerAlign}`:i.value,l.value});const u=V(()=>{let b=o.vnode.vParent||o.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),c=V(()=>{const{store:b}=o.parent;if(!b)return!1;const{treeData:S}=b.states,T=S.value;return T&&Object.keys(T).length>0}),d=R(my(t.width)),f=R(GM(t.minWidth)),h=b=>(d.value&&(b.width=d.value),f.value&&(b.minWidth=f.value),!d.value&&f.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(b.width===void 0?b.minWidth:b.width),b),p=b=>{const S=b.type,T=PJ[S]||{};Object.keys(T).forEach(k=>{const P=T[k];k!=="className"&&P!==void 0&&(b[k]=P)});const O=AJ(S);if(O){const k=`${x(a.namespace)}-${O}`;b.className=b.className?`${b.className} ${k}`:k}return b},g=b=>{Pe(b)?b.forEach(T=>S(T)):S(b);function S(T){var O;((O=T==null?void 0:T.type)==null?void 0:O.name)==="ElTableColumn"&&(T.vParent=o)}};return{columnId:r,realAlign:i,isSubColumn:s,realHeaderAlign:l,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:b=>{t.renderHeader||b.type!=="selection"&&(b.renderHeader=T=>(o.columnConfig.value.label,Se(e,"header",T,()=>[b.label]))),e["filter-icon"]&&(b.renderFilterIcon=T=>Se(e,"filter-icon",T));let S=b.renderCell;return b.type==="expand"?(b.renderCell=T=>Ue("div",{class:"cell"},[S(T)]),n.value.renderExpanded=T=>e.default?e.default(T):e.default):(S=S||NJ,b.renderCell=T=>{let O=null;if(e.default){const J=e.default(T);O=J.some(oe=>oe.type!==Un)?J:S(T)}else O=S(T);const{columns:k}=n.value.store.states,P=k.value.findIndex(J=>J.type==="default"),I=c.value&&T.cellIndex===P,M=IJ(T,I),D={class:"cell",style:{}};return b.showOverflowTooltip&&(D.class=`${D.class} ${x(a.namespace)}-tooltip`,D.style={width:`${(T.column.realWidth||Number(T.column.width))-1}px`}),g(O),Ue("div",D,[M,O])}),b},getPropsData:(...b)=>b.reduce((S,T)=>(Pe(T)&&T.forEach(O=>{S[O]=t[O]}),S),{}),getColumnElIndex:(b,S)=>Array.prototype.indexOf.call(b,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var $J={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:t=>t.every(e=>["ascending","descending",null].includes(e))}};let DJ=1;var u_=ce({name:"ElTableColumn",components:{ElCheckbox:fi},props:$J,setup(t,{slots:e}){const n=gt(),o=R({}),r=V(()=>{let y=n.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:s,registerComplexWatchers:i}=LJ(r,t),{columnId:l,isSubColumn:a,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:h,getPropsData:p,getColumnElIndex:g,realAlign:v,updateColumnOrder:m}=RJ(t,e,r),C=c.value;l.value=`${C.tableId||C.columnId}_column_${DJ++}`,Gp(()=>{a.value=r.value!==C;const y=t.type||"default",b=t.sortable===""?!0:t.sortable,S=En(t.showOverflowTooltip)?C.props.showOverflowTooltip:t.showOverflowTooltip,T={..._J[y],id:l.value,type:y,property:t.prop||t.property,align:v,headerAlign:u,showOverflowTooltip:S,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:b,index:t.index,rawColumnKey:n.vnode.key};let M=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);M=IK(T,M),M=RK(h,d,f)(M),o.value=M,s(),i()}),st(()=>{var y;const b=c.value,S=a.value?b.vnode.el.children:(y=b.refs.hiddenColumns)==null?void 0:y.children,T=()=>g(S||[],n.vnode.el);o.value.getColumnIndex=T,T()>-1&&r.value.store.commit("insertColumn",o.value,a.value?b.columnConfig.value:null,m)}),un(()=>{const y=o.value.getColumnIndex;(y?y():-1)>-1&&r.value.store.commit("removeColumn",o.value,a.value?C.columnConfig.value:null,m)}),n.columnId=l.value,n.columnConfig=o},render(){var t,e,n;try{const o=(e=(t=this.$slots).default)==null?void 0:e.call(t,{row:{},column:{},$index:-1}),r=[];if(Pe(o))for(const i of o)((n=i.type)==null?void 0:n.name)==="ElTableColumn"||i.shapeFlag&2?r.push(i):i.type===Le&&Pe(i.children)&&i.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!Ye(l==null?void 0:l.children)&&r.push(l)});return Ue("div",r)}catch{return Ue("div",[])}}});const _a=$t(kJ,{TableColumn:u_}),Aa=po(u_),_g=Symbol("tabsRootContextKey"),VJ=tt({tabs:{type:_e(Array),default:()=>Io([])}}),c_="ElTabBar",BJ=ce({name:c_}),FJ=ce({...BJ,props:VJ,setup(t,{expose:e}){const n=t,o=gt(),r=Ve(_g);r||Ro(c_,"");const s=Fe("tabs"),i=R(),l=R(),a=()=>{let h=0,p=0;const g=["top","bottom"].includes(r.props.tabPosition)?"width":"height",v=g==="width"?"x":"y",m=v==="x"?"left":"top";return n.tabs.every(C=>{var y,b;const S=(b=(y=o.parent)==null?void 0:y.refs)==null?void 0:b[`tab-${C.uid}`];if(!S)return!1;if(!C.active)return!0;h=S[`offset${qi(m)}`],p=S[`client${qi(g)}`];const T=window.getComputedStyle(S);return g==="width"&&(p-=Number.parseFloat(T.paddingLeft)+Number.parseFloat(T.paddingRight),h+=Number.parseFloat(T.paddingLeft)),!1}),{[g]:`${p}px`,transform:`translate${qi(v)}(${h}px)`}},u=()=>l.value=a(),c=[],d=()=>{var h;c.forEach(g=>g.stop()),c.length=0;const p=(h=o.parent)==null?void 0:h.refs;if(p){for(const g in p)if(g.startsWith("tab-")){const v=p[g];v&&c.push(so(v,u))}}};De(()=>n.tabs,async()=>{await lt(),u(),d()},{immediate:!0});const f=so(i,()=>u());return un(()=>{c.forEach(h=>h.stop()),c.length=0,f.stop()}),e({ref:i,update:u}),(h,p)=>(_(),G("div",{ref_key:"barRef",ref:i,class:Y([x(s).e("active-bar"),x(s).is(x(r).props.tabPosition)]),style:ft(l.value)},null,6))}});var zJ=et(FJ,[["__file","tab-bar.vue"]]);const jJ=tt({panes:{type:_e(Array),default:()=>Io([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),HJ={tabClick:(t,e,n)=>n instanceof Event,tabRemove:(t,e)=>e instanceof Event},$x="ElTabNav",UJ=ce({name:$x,props:jJ,emits:HJ,setup(t,{expose:e,emit:n}){const o=Ve(_g);o||Ro($x,"");const r=Fe("tabs"),s=xz(),i=$z(),l=R(),a=R(),u=R(),c=R(),d=R(!1),f=R(0),h=R(!1),p=R(!0),g=V(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),v=V(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${f.value}px)`})),m=()=>{if(!l.value)return;const k=l.value[`offset${qi(g.value)}`],P=f.value;if(!P)return;const I=P>k?P-k:0;f.value=I},C=()=>{if(!l.value||!a.value)return;const k=a.value[`offset${qi(g.value)}`],P=l.value[`offset${qi(g.value)}`],I=f.value;if(k-I<=P)return;const M=k-I>P*2?I+P:k-P;f.value=M},y=async()=>{const k=a.value;if(!d.value||!u.value||!l.value||!k)return;await lt();const P=u.value.querySelector(".is-active");if(!P)return;const I=l.value,M=["top","bottom"].includes(o.props.tabPosition),D=P.getBoundingClientRect(),J=I.getBoundingClientRect(),oe=M?k.offsetWidth-J.width:k.offsetHeight-J.height,N=f.value;let A=N;M?(D.leftJ.right&&(A=N+D.right-J.right)):(D.topJ.bottom&&(A=N+(D.bottom-J.bottom))),A=Math.max(A,0),f.value=Math.min(A,oe)},b=()=>{var k;if(!a.value||!l.value)return;t.stretch&&((k=c.value)==null||k.update());const P=a.value[`offset${qi(g.value)}`],I=l.value[`offset${qi(g.value)}`],M=f.value;I0&&(f.value=0))},S=k=>{let P=0;switch(k.code){case Nt.left:case Nt.up:P=-1;break;case Nt.right:case Nt.down:P=1;break;default:return}const I=Array.from(k.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let D=I.indexOf(k.target)+P;D<0?D=I.length-1:D>=I.length&&(D=0),I[D].focus({preventScroll:!0}),I[D].click(),T()},T=()=>{p.value&&(h.value=!0)},O=()=>h.value=!1;return De(s,k=>{k==="hidden"?p.value=!1:k==="visible"&&setTimeout(()=>p.value=!0,50)}),De(i,k=>{k?setTimeout(()=>p.value=!0,50):p.value=!1}),so(u,b),st(()=>setTimeout(()=>y(),0)),Sa(()=>b()),e({scrollToActiveTab:y,removeFocus:O}),()=>{const k=d.value?[w("span",{class:[r.e("nav-prev"),r.is("disabled",!d.value.prev)],onClick:m},[w(rt,null,{default:()=>[w(Ek,null,null)]})]),w("span",{class:[r.e("nav-next"),r.is("disabled",!d.value.next)],onClick:C},[w(rt,null,{default:()=>[w(ff,null,null)]})])]:null,P=t.panes.map((I,M)=>{var D,J,oe,N;const A=I.uid,K=I.props.disabled,j=(J=(D=I.props.name)!=null?D:I.index)!=null?J:`${M}`,F=!K&&(I.isClosable||t.editable);I.index=`${M}`;const le=F?w(rt,{class:"is-icon-close",onClick:Ee=>n("tabRemove",I,Ee)},{default:()=>[w(ci,null,null)]}):null,ue=((N=(oe=I.slots).label)==null?void 0:N.call(oe))||I.props.label,se=!K&&I.active?0:-1;return w("div",{ref:`tab-${A}`,class:[r.e("item"),r.is(o.props.tabPosition),r.is("active",I.active),r.is("disabled",K),r.is("closable",F),r.is("focus",h.value)],id:`tab-${j}`,key:`tab-${A}`,"aria-controls":`pane-${j}`,role:"tab","aria-selected":I.active,tabindex:se,onFocus:()=>T(),onBlur:()=>O(),onClick:Ee=>{O(),n("tabClick",I,j,Ee)},onKeydown:Ee=>{F&&(Ee.code===Nt.delete||Ee.code===Nt.backspace)&&n("tabRemove",I,Ee)}},[ue,le])});return w("div",{ref:u,class:[r.e("nav-wrap"),r.is("scrollable",!!d.value),r.is(o.props.tabPosition)]},[k,w("div",{class:r.e("nav-scroll"),ref:l},[w("div",{class:[r.e("nav"),r.is(o.props.tabPosition),r.is("stretch",t.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:a,style:v.value,role:"tablist",onKeydown:S},[t.type?null:w(zJ,{ref:c,tabs:[...t.panes]},null),P])])])}}}),WJ=tt({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:_e(Function),default:()=>!0},stretch:Boolean}),Im=t=>Ye(t)||bt(t),qJ={[on]:t=>Im(t),tabClick:(t,e)=>e instanceof Event,tabChange:t=>Im(t),edit:(t,e)=>["remove","add"].includes(e),tabRemove:t=>Im(t),tabAdd:()=>!0},GJ=ce({name:"ElTabs",props:WJ,emits:qJ,setup(t,{emit:e,slots:n,expose:o}){var r;const s=Fe("tabs"),i=V(()=>["left","right"].includes(t.tabPosition)),{children:l,addChild:a,removeChild:u}=EU(gt(),"ElTabPane"),c=R(),d=R((r=t.modelValue)!=null?r:"0"),f=async(m,C=!1)=>{var y,b,S;if(!(d.value===m||En(m)))try{await((y=t.beforeLeave)==null?void 0:y.call(t,m,d.value))!==!1&&(d.value=m,C&&(e(on,m),e("tabChange",m)),(S=(b=c.value)==null?void 0:b.removeFocus)==null||S.call(b))}catch{}},h=(m,C,y)=>{m.props.disabled||(f(C,!0),e("tabClick",m,y))},p=(m,C)=>{m.props.disabled||En(m.props.name)||(C.stopPropagation(),e("edit",m.props.name,"remove"),e("tabRemove",m.props.name))},g=()=>{e("edit",void 0,"add"),e("tabAdd")};De(()=>t.modelValue,m=>f(m)),De(d,async()=>{var m;await lt(),(m=c.value)==null||m.scrollToActiveTab()}),Bt(_g,{props:t,currentName:d,registerPane:m=>{l.value.push(m)},sortPane:a,unregisterPane:u}),o({currentName:d});const v=({render:m})=>m();return()=>{const m=n["add-icon"],C=t.editable||t.addable?w("div",{class:[s.e("new-tab"),i.value&&s.e("new-tab-vertical")],tabindex:"0",onClick:g,onKeydown:S=>{[Nt.enter,Nt.numpadEnter].includes(S.code)&&g()}},[m?Se(n,"add-icon"):w(rt,{class:s.is("icon-plus")},{default:()=>[w(kk,null,null)]})]):null,y=w("div",{class:[s.e("header"),i.value&&s.e("header-vertical"),s.is(t.tabPosition)]},[w(v,{render:()=>{const S=l.value.some(T=>T.slots.label);return w(UJ,{ref:c,currentName:d.value,editable:t.editable,type:t.type,panes:l.value,stretch:t.stretch,onTabClick:h,onTabRemove:p},{$stable:!S})}},null),C]),b=w("div",{class:s.e("content")},[Se(n,"default")]);return w("div",{class:[s.b(),s.m(t.tabPosition),{[s.m("card")]:t.type==="card",[s.m("border-card")]:t.type==="border-card"}]},[b,y])}}});var KJ=GJ;const JJ=tt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),d_="ElTabPane",YJ=ce({name:d_}),XJ=ce({...YJ,props:JJ,setup(t){const e=t,n=gt(),o=ls(),r=Ve(_g);r||Ro(d_,"usage: ");const s=Fe("tab-pane"),i=R(),l=V(()=>e.closable||r.props.closable),a=qv(()=>{var h;return r.currentName.value===((h=e.name)!=null?h:i.value)}),u=R(a.value),c=V(()=>{var h;return(h=e.name)!=null?h:i.value}),d=qv(()=>!e.lazy||u.value||a.value);De(a,h=>{h&&(u.value=!0)});const f=ut({uid:n.uid,slots:o,props:e,paneName:c,active:a,index:i,isClosable:l});return r.registerPane(f),st(()=>{r.sortPane(f)}),Rs(()=>{r.unregisterPane(f.uid)}),(h,p)=>x(d)?$e((_(),G("div",{key:0,id:`pane-${x(c)}`,class:Y(x(s).b()),role:"tabpanel","aria-hidden":!x(a),"aria-labelledby":`tab-${x(c)}`},[Se(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[qe,x(a)]]):me("v-if",!0)}});var f_=et(XJ,[["__file","tab-pane.vue"]]);const ZJ=$t(KJ,{TabPane:f_}),QJ=po(f_),eY=tt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Ma,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),tY=ce({name:"ElText"}),nY=ce({...tY,props:eY,setup(t){const e=t,n=Ar(),o=Fe("text"),r=V(()=>[o.b(),o.m(e.type),o.m(n.value),o.is("truncated",e.truncated),o.is("line-clamp",!En(e.lineClamp))]);return(s,i)=>(_(),pe(Ut(s.tag),{class:Y(x(r)),style:ft({"-webkit-line-clamp":s.lineClamp})},{default:E(()=>[Se(s.$slots,"default")]),_:3},8,["class","style"]))}});var oY=et(nY,[["__file","text.vue"]]);const yy=$t(oY),h_=Symbol("uploadContextKey"),rY="ElUpload";class sY extends Error{constructor(e,n,o,r){super(e),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=r}}function Dx(t,e,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${e.method} ${t} ${n.status}`,new sY(o,n.status,e.method,t)}function iY(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}const lY=t=>{typeof XMLHttpRequest>"u"&&Ro(rY,"XMLHttpRequest is undefined");const e=new XMLHttpRequest,n=t.action;e.upload&&e.upload.addEventListener("progress",s=>{const i=s;i.percent=s.total>0?s.loaded/s.total*100:0,t.onProgress(i)});const o=new FormData;if(t.data)for(const[s,i]of Object.entries(t.data))Pe(i)&&i.length?o.append(s,...i):o.append(s,i);o.append(t.filename,t.file,t.file.name),e.addEventListener("error",()=>{t.onError(Dx(n,t,e))}),e.addEventListener("load",()=>{if(e.status<200||e.status>=300)return t.onError(Dx(n,t,e));t.onSuccess(iY(e))}),e.open(t.method,n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);const r=t.headers||{};if(r instanceof Headers)r.forEach((s,i)=>e.setRequestHeader(i,s));else for(const[s,i]of Object.entries(r))jo(i)||e.setRequestHeader(s,String(i));return e.send(o),e},p_=["text","picture","picture-card"];let aY=1;const gb=()=>Date.now()+aY++,g_=tt({action:{type:String,default:"#"},headers:{type:_e(Object)},method:{type:String,default:"post"},data:{type:_e([Object,Function,Promise]),default:()=>Io({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:_e(Array),default:()=>Io([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:p_,default:"text"},httpRequest:{type:_e(Function),default:lY},disabled:Boolean,limit:Number}),uY=tt({...g_,beforeUpload:{type:_e(Function),default:Rt},beforeRemove:{type:_e(Function)},onRemove:{type:_e(Function),default:Rt},onChange:{type:_e(Function),default:Rt},onPreview:{type:_e(Function),default:Rt},onSuccess:{type:_e(Function),default:Rt},onProgress:{type:_e(Function),default:Rt},onError:{type:_e(Function),default:Rt},onExceed:{type:_e(Function),default:Rt},crossorigin:{type:_e(String)}}),cY=tt({files:{type:_e(Array),default:()=>Io([])},disabled:{type:Boolean,default:!1},handlePreview:{type:_e(Function),default:Rt},listType:{type:String,values:p_,default:"text"},crossorigin:{type:_e(String)}}),dY={remove:t=>!!t},fY=ce({name:"ElUploadList"}),hY=ce({...fY,props:cY,emits:dY,setup(t,{emit:e}){const n=t,{t:o}=us(),r=Fe("upload"),s=Fe("icon"),i=Fe("list"),l=Ds(),a=R(!1),u=V(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",n.disabled)]),c=d=>{e("remove",d)};return(d,f)=>(_(),pe(yT,{tag:"ul",class:Y(x(u)),name:x(i).b()},{default:E(()=>[(_(!0),G(Le,null,yt(d.files,(h,p)=>(_(),G("li",{key:h.uid||h.name,class:Y([x(r).be("list","item"),x(r).is(h.status),{focusing:a.value}]),tabindex:"0",onKeydown:Wn(g=>!x(l)&&c(h),["delete"]),onFocus:g=>a.value=!0,onBlur:g=>a.value=!1,onClick:g=>a.value=!1},[Se(d.$slots,"default",{file:h,index:p},()=>[d.listType==="picture"||h.status!=="uploading"&&d.listType==="picture-card"?(_(),G("img",{key:0,class:Y(x(r).be("list","item-thumbnail")),src:h.url,crossorigin:d.crossorigin,alt:""},null,10,["src","crossorigin"])):me("v-if",!0),h.status==="uploading"||d.listType!=="picture-card"?(_(),G("div",{key:1,class:Y(x(r).be("list","item-info"))},[L("a",{class:Y(x(r).be("list","item-name")),onClick:At(g=>d.handlePreview(h),["prevent"])},[w(x(rt),{class:Y(x(s).m("document"))},{default:E(()=>[w(x(Sj))]),_:1},8,["class"]),L("span",{class:Y(x(r).be("list","item-file-name")),title:h.name},Q(h.name),11,["title"])],10,["onClick"]),h.status==="uploading"?(_(),pe(x(pK),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:ft(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):me("v-if",!0)],2)):me("v-if",!0),L("label",{class:Y(x(r).be("list","item-status-label"))},[d.listType==="text"?(_(),pe(x(rt),{key:0,class:Y([x(s).m("upload-success"),x(s).m("circle-check")])},{default:E(()=>[w(x(W0))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(_(),pe(x(rt),{key:1,class:Y([x(s).m("upload-success"),x(s).m("check")])},{default:E(()=>[w(x(Ok))]),_:1},8,["class"])):me("v-if",!0)],2),x(l)?me("v-if",!0):(_(),pe(x(rt),{key:2,class:Y(x(s).m("close")),onClick:g=>c(h)},{default:E(()=>[w(x(ci))]),_:2},1032,["class","onClick"])),me(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),me(" This is a bug which needs to be fixed "),me(" TODO: Fix the incorrect navigation interaction "),x(l)?me("v-if",!0):(_(),G("i",{key:3,class:Y(x(s).m("close-tip"))},Q(x(o)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(_(),G("span",{key:4,class:Y(x(r).be("list","item-actions"))},[L("span",{class:Y(x(r).be("list","item-preview")),onClick:g=>d.handlePreview(h)},[w(x(rt),{class:Y(x(s).m("zoom-in"))},{default:E(()=>[w(x(_k))]),_:1},8,["class"])],10,["onClick"]),x(l)?me("v-if",!0):(_(),G("span",{key:0,class:Y(x(r).be("list","item-delete")),onClick:g=>c(h)},[w(x(rt),{class:Y(x(s).m("delete"))},{default:E(()=>[w(x(Cj))]),_:1},8,["class"])],10,["onClick"]))],2)):me("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Se(d.$slots,"append")]),_:3},8,["class","name"]))}});var Vx=et(hY,[["__file","upload-list.vue"]]);const pY=tt({disabled:{type:Boolean,default:!1}}),gY={file:t=>Pe(t)},m_="ElUploadDrag",mY=ce({name:m_}),vY=ce({...mY,props:pY,emits:gY,setup(t,{emit:e}){Ve(h_)||Ro(m_,"usage: ");const o=Fe("upload"),r=R(!1),s=Ds(),i=a=>{if(s.value)return;r.value=!1,a.stopPropagation();const u=Array.from(a.dataTransfer.files);e("file",u)},l=()=>{s.value||(r.value=!0)};return(a,u)=>(_(),G("div",{class:Y([x(o).b("dragger"),x(o).is("dragover",r.value)]),onDrop:At(i,["prevent"]),onDragover:At(l,["prevent"]),onDragleave:At(c=>r.value=!1,["prevent"])},[Se(a.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var bY=et(vY,[["__file","upload-dragger.vue"]]);const yY=tt({...g_,beforeUpload:{type:_e(Function),default:Rt},onRemove:{type:_e(Function),default:Rt},onStart:{type:_e(Function),default:Rt},onSuccess:{type:_e(Function),default:Rt},onProgress:{type:_e(Function),default:Rt},onError:{type:_e(Function),default:Rt},onExceed:{type:_e(Function),default:Rt}}),wY=ce({name:"ElUploadContent",inheritAttrs:!1}),CY=ce({...wY,props:yY,setup(t,{expose:e}){const n=t,o=Fe("upload"),r=Ds(),s=rr({}),i=rr(),l=g=>{if(g.length===0)return;const{autoUpload:v,limit:m,fileList:C,multiple:y,onStart:b,onExceed:S}=n;if(m&&C.length+g.length>m){S(g,C);return}y||(g=g.slice(0,1));for(const T of g){const O=T;O.uid=gb(),b(O),v&&a(O)}},a=async g=>{if(i.value.value="",!n.beforeUpload)return c(g);let v,m={};try{const y=n.data,b=n.beforeUpload(g);m=ud(n.data)?dn(n.data):n.data,v=await b,ud(n.data)&&Eo(y,m)&&(m=dn(n.data))}catch{v=!1}if(v===!1){n.onRemove(g);return}let C=g;v instanceof Blob&&(v instanceof File?C=v:C=new File([v],g.name,{type:g.type})),c(Object.assign(C,{uid:g.uid}),m)},u=async(g,v)=>Be(g)?g(v):g,c=async(g,v)=>{const{headers:m,data:C,method:y,withCredentials:b,name:S,action:T,onProgress:O,onSuccess:k,onError:P,httpRequest:I}=n;try{v=await u(v??C,g)}catch{n.onRemove(g);return}const{uid:M}=g,D={headers:m||{},withCredentials:b,file:g,data:v,method:y,filename:S,action:T,onProgress:oe=>{O(oe,g)},onSuccess:oe=>{k(oe,g),delete s.value[M]},onError:oe=>{P(oe,g),delete s.value[M]}},J=I(D);s.value[M]=J,J instanceof Promise&&J.then(D.onSuccess,D.onError)},d=g=>{const v=g.target.files;v&&l(Array.from(v))},f=()=>{r.value||(i.value.value="",i.value.click())},h=()=>{f()};return e({abort:g=>{Kz(s.value).filter(g?([m])=>String(g.uid)===m:()=>!0).forEach(([m,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete s.value[m]})},upload:a}),(g,v)=>(_(),G("div",{class:Y([x(o).b(),x(o).m(g.listType),x(o).is("drag",g.drag),x(o).is("disabled",x(r))]),tabindex:x(r)?"-1":"0",onClick:f,onKeydown:Wn(At(h,["self"]),["enter","space"])},[g.drag?(_(),pe(bY,{key:0,disabled:x(r),onFile:l},{default:E(()=>[Se(g.$slots,"default")]),_:3},8,["disabled"])):Se(g.$slots,"default",{key:1}),L("input",{ref_key:"inputRef",ref:i,class:Y(x(o).e("input")),name:g.name,disabled:x(r),multiple:g.multiple,accept:g.accept,type:"file",onChange:d,onClick:At(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var Bx=et(CY,[["__file","upload-content.vue"]]);const Fx="ElUpload",zx=t=>{var e;(e=t.url)!=null&&e.startsWith("blob:")&&URL.revokeObjectURL(t.url)},xY=(t,e)=>{const n=Rz(t,"fileList",void 0,{passive:!0}),o=h=>n.value.find(p=>p.uid===h.uid);function r(h){var p;(p=e.value)==null||p.abort(h)}function s(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}function i(h){n.value=n.value.filter(p=>p!==h)}const l=(h,p)=>{const g=o(p);g&&(g.status="fail",i(g),t.onError(h,g,n.value),t.onChange(g,n.value))},a=(h,p)=>{const g=o(p);g&&(t.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},u=(h,p)=>{const g=o(p);g&&(g.status="success",g.response=h,t.onSuccess(h,g,n.value),t.onChange(g,n.value))},c=h=>{jo(h.uid)&&(h.uid=gb());const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(t.listType==="picture-card"||t.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(g){g.message,t.onError(g,p,n.value)}n.value=[...n.value,p],t.onChange(p,n.value)},d=async h=>{const p=h instanceof File?o(h):h;p||Ro(Fx,"file to be removed not found");const g=v=>{r(v),i(v),t.onRemove(v,n.value),zx(v)};t.beforeRemove?await t.beforeRemove(p,n.value)!==!1&&g(p):g(p)};function f(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=e.value)==null?void 0:p.upload(h))})}return De(()=>t.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:g,url:v}=p;if(!v&&g)try{p.url=URL.createObjectURL(g)}catch(m){t.onError(m,p,n.value)}return p}))}),De(n,h=>{for(const p of h)p.uid||(p.uid=gb()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:s,handleError:l,handleProgress:a,handleStart:c,handleSuccess:u,handleRemove:d,submit:f,revokeFileObjectURL:zx}},SY=ce({name:"ElUpload"}),EY=ce({...SY,props:uY,setup(t,{expose:e}){const n=t,o=Ds(),r=rr(),{abort:s,submit:i,clearFiles:l,uploadFiles:a,handleStart:u,handleError:c,handleRemove:d,handleSuccess:f,handleProgress:h,revokeFileObjectURL:p}=xY(n,r),g=V(()=>n.listType==="picture-card"),v=V(()=>({...n,fileList:a.value,onStart:u,onProgress:h,onSuccess:f,onError:c,onRemove:d}));return un(()=>{a.value.forEach(p)}),Bt(h_,{accept:Qo(n,"accept")}),e({abort:s,submit:i,clearFiles:l,handleStart:u,handleRemove:d}),(m,C)=>(_(),G("div",null,[x(g)&&m.showFileList?(_(),pe(Vx,{key:0,disabled:x(o),"list-type":m.listType,files:x(a),crossorigin:m.crossorigin,"handle-preview":m.onPreview,onRemove:x(d)},Hh({append:E(()=>[w(Bx,ho({ref_key:"uploadRef",ref:r},x(v)),{default:E(()=>[m.$slots.trigger?Se(m.$slots,"trigger",{key:0}):me("v-if",!0),!m.$slots.trigger&&m.$slots.default?Se(m.$slots,"default",{key:1}):me("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:E(({file:y,index:b})=>[Se(m.$slots,"file",{file:y,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):me("v-if",!0),!x(g)||x(g)&&!m.showFileList?(_(),pe(Bx,ho({key:1,ref_key:"uploadRef",ref:r},x(v)),{default:E(()=>[m.$slots.trigger?Se(m.$slots,"trigger",{key:0}):me("v-if",!0),!m.$slots.trigger&&m.$slots.default?Se(m.$slots,"default",{key:1}):me("v-if",!0)]),_:3},16)):me("v-if",!0),m.$slots.trigger?Se(m.$slots,"default",{key:2}):me("v-if",!0),Se(m.$slots,"tip"),!x(g)&&m.showFileList?(_(),pe(Vx,{key:3,disabled:x(o),"list-type":m.listType,files:x(a),crossorigin:m.crossorigin,"handle-preview":m.onPreview,onRemove:x(d)},Hh({_:2},[m.$slots.file?{name:"default",fn:E(({file:y,index:b})=>[Se(m.$slots,"file",{file:y,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):me("v-if",!0)]))}});var TY=et(EY,[["__file","upload.vue"]]);const OY=$t(TY);function kY(t){let e;const n=R(!1),o=ut({...t,originalPosition:"",originalOverflow:"",visible:!1});function r(f){o.text=f}function s(){const f=o.parent,h=d.ns;if(!f.vLoadingAddClassList){let p=f.getAttribute("loading-number");p=Number.parseInt(p)-1,p?f.setAttribute("loading-number",p.toString()):(ir(f,h.bm("parent","relative")),f.removeAttribute("loading-number")),ir(f,h.bm("parent","hidden"))}i(),c.unmount()}function i(){var f,h;(h=(f=d.$el)==null?void 0:f.parentNode)==null||h.removeChild(d.$el)}function l(){var f;t.beforeClose&&!t.beforeClose()||(n.value=!0,clearTimeout(e),e=setTimeout(a,400),o.visible=!1,(f=t.closed)==null||f.call(t))}function a(){if(!n.value)return;const f=o.parent;n.value=!1,f.vLoadingAddClassList=void 0,s()}const c=C0(ce({name:"ElLoading",setup(f,{expose:h}){const{ns:p,zIndex:g}=mg("loading");return h({ns:p,zIndex:g}),()=>{const v=o.spinner||o.svg,m=Ue("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[Ue("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=o.text?Ue("p",{class:p.b("text")},[o.text]):void 0;return Ue(Go,{name:p.b("fade"),onAfterLeave:a},{default:E(()=>[$e(w("div",{style:{backgroundColor:o.background||""},class:[p.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[Ue("div",{class:p.b("spinner")},[m,C])]),[[qe,o.visible]])])})}}})),d=c.mount(document.createElement("div"));return{...Ls(o),setText:r,removeElLoadingChild:i,close:l,handleAfterLeave:a,vm:d,get $el(){return d.$el}}}let eh;const MY=function(t={}){if(!Tt)return;const e=_Y(t);if(e.fullscreen&&eh)return eh;const n=kY({...e,closed:()=>{var r;(r=e.closed)==null||r.call(e),e.fullscreen&&(eh=void 0)}});AY(e,e.parent,n),jx(e,e.parent,n),e.parent.vLoadingAddClassList=()=>jx(e,e.parent,n);let o=e.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",e.parent.setAttribute("loading-number",o),e.parent.appendChild(n.$el),lt(()=>n.visible.value=e.visible),e.fullscreen&&(eh=n),n},_Y=t=>{var e,n,o,r;let s;return Ye(t.target)?s=(e=document.querySelector(t.target))!=null?e:document.body:s=t.target||document.body,{parent:s===document.body||t.body?document.body:s,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:s===document.body&&((n=t.fullscreen)!=null?n:!0),lock:(o=t.lock)!=null?o:!1,customClass:t.customClass||"",visible:(r=t.visible)!=null?r:!0,beforeClose:t.beforeClose,closed:t.closed,target:s}},AY=async(t,e,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(t.fullscreen)n.originalPosition.value=Fl(document.body,"position"),n.originalOverflow.value=Fl(document.body,"overflow"),r.zIndex=o();else if(t.parent===document.body){n.originalPosition.value=Fl(document.body,"position"),await lt();for(const s of["top","left"]){const i=s==="top"?"scrollTop":"scrollLeft";r[s]=`${t.target.getBoundingClientRect()[s]+document.body[i]+document.documentElement[i]-Number.parseInt(Fl(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])r[s]=`${t.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=Fl(e,"position");for(const[s,i]of Object.entries(r))n.$el.style[s]=i},jx=(t,e,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ir(e,o.bm("parent","relative")):Hr(e,o.bm("parent","relative")),t.fullscreen&&t.lock?Hr(e,o.bm("parent","hidden")):ir(e,o.bm("parent","hidden"))},Nh=Symbol("ElLoading"),Hx=(t,e)=>{var n,o,r,s;const i=e.instance,l=f=>pt(e.value)?e.value[f]:void 0,a=f=>{const h=Ye(f)&&(i==null?void 0:i[f])||f;return h&&R(h)},u=f=>a(l(f)||t.getAttribute(`element-loading-${mi(f)}`)),c=(n=l("fullscreen"))!=null?n:e.modifiers.fullscreen,d={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(o=l("target"))!=null?o:c?void 0:t,body:(r=l("body"))!=null?r:e.modifiers.body,lock:(s=l("lock"))!=null?s:e.modifiers.lock};t[Nh]={options:d,instance:MY(d)}},PY=(t,e)=>{for(const n of Object.keys(e))Gt(e[n])&&(e[n].value=t[n])},NY={mounted(t,e){e.value&&Hx(t,e)},updated(t,e){const n=t[Nh];e.oldValue!==e.value&&(e.value&&!e.oldValue?Hx(t,e):e.value&&e.oldValue?pt(e.value)&&PY(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[Nh])==null||e.instance.close(),t[Nh]=null}},v_=["success","info","warning","error"],mo=Io({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Tt?document.body:void 0}),IY=tt({customClass:{type:String,default:mo.customClass},center:{type:Boolean,default:mo.center},dangerouslyUseHTMLString:{type:Boolean,default:mo.dangerouslyUseHTMLString},duration:{type:Number,default:mo.duration},icon:{type:co,default:mo.icon},id:{type:String,default:mo.id},message:{type:_e([String,Object,Function]),default:mo.message},onClose:{type:_e(Function),default:mo.onClose},showClose:{type:Boolean,default:mo.showClose},type:{type:String,values:v_,default:mo.type},plain:{type:Boolean,default:mo.plain},offset:{type:Number,default:mo.offset},zIndex:{type:Number,default:mo.zIndex},grouping:{type:Boolean,default:mo.grouping},repeatNum:{type:Number,default:mo.repeatNum}}),LY={destroy:()=>!0},Ur=a0([]),RY=t=>{const e=Ur.findIndex(r=>r.id===t),n=Ur[e];let o;return e>0&&(o=Ur[e-1]),{current:n,prev:o}},$Y=t=>{const{prev:e}=RY(t);return e?e.vm.exposed.bottom.value:0},DY=(t,e)=>Ur.findIndex(o=>o.id===t)>0?16:e,VY=ce({name:"ElMessage"}),BY=ce({...VY,props:IY,emits:LY,setup(t,{expose:e}){const n=t,{Close:o}=K0,{ns:r,zIndex:s}=mg("message"),{currentZIndex:i,nextZIndex:l}=s,a=R(),u=R(!1),c=R(0);let d;const f=V(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=V(()=>{const O=n.type;return{[r.bm("icon",O)]:O&&al[O]}}),p=V(()=>n.icon||al[n.type]||""),g=V(()=>$Y(n.id)),v=V(()=>DY(n.id,n.offset)+g.value),m=V(()=>c.value+v.value),C=V(()=>({top:`${v.value}px`,zIndex:i.value}));function y(){n.duration!==0&&({stop:d}=Su(()=>{S()},n.duration))}function b(){d==null||d()}function S(){u.value=!1}function T({code:O}){O===Nt.esc&&S()}return st(()=>{y(),l(),u.value=!0}),De(()=>n.repeatNum,()=>{b(),y()}),yn(document,"keydown",T),so(a,()=>{c.value=a.value.getBoundingClientRect().height}),e({visible:u,bottom:m,close:S}),(O,k)=>(_(),pe(Go,{name:x(r).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:P=>O.$emit("destroy"),persisted:""},{default:E(()=>[$e(L("div",{id:O.id,ref_key:"messageRef",ref:a,class:Y([x(r).b(),{[x(r).m(O.type)]:O.type},x(r).is("center",O.center),x(r).is("closable",O.showClose),x(r).is("plain",O.plain),O.customClass]),style:ft(x(C)),role:"alert",onMouseenter:b,onMouseleave:y},[O.repeatNum>1?(_(),pe(x(X9),{key:0,value:O.repeatNum,type:x(f),class:Y(x(r).e("badge"))},null,8,["value","type","class"])):me("v-if",!0),x(p)?(_(),pe(x(rt),{key:1,class:Y([x(r).e("icon"),x(h)])},{default:E(()=>[(_(),pe(Ut(x(p))))]),_:1},8,["class"])):me("v-if",!0),Se(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(_(),G(Le,{key:1},[me(" Caution here, message could've been compromised, never use user's input as message "),L("p",{class:Y(x(r).e("content")),innerHTML:O.message},null,10,["innerHTML"])],2112)):(_(),G("p",{key:0,class:Y(x(r).e("content"))},Q(O.message),3))]),O.showClose?(_(),pe(x(rt),{key:2,class:Y(x(r).e("closeBtn")),onClick:At(S,["stop"])},{default:E(()=>[w(x(o))]),_:1},8,["class","onClick"])):me("v-if",!0)],46,["id"]),[[qe,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var FY=et(BY,[["__file","message.vue"]]);let zY=1;const b_=t=>{const e=!t||Ye(t)||Bn(t)||Be(t)?{message:t}:t,n={...mo,...e};if(!n.appendTo)n.appendTo=document.body;else if(Ye(n.appendTo)){let o=document.querySelector(n.appendTo);sr(o)||(o=document.body),n.appendTo=o}return Pn(ys.grouping)&&!n.grouping&&(n.grouping=ys.grouping),bt(ys.duration)&&n.duration===3e3&&(n.duration=ys.duration),bt(ys.offset)&&n.offset===16&&(n.offset=ys.offset),Pn(ys.showClose)&&!n.showClose&&(n.showClose=ys.showClose),n},jY=t=>{const e=Ur.indexOf(t);if(e===-1)return;Ur.splice(e,1);const{handler:n}=t;n.close()},HY=({appendTo:t,...e},n)=>{const o=`message_${zY++}`,r=e.onClose,s=document.createElement("div"),i={...e,id:o,onClose:()=>{r==null||r(),jY(c)},onDestroy:()=>{ll(null,s)}},l=w(FY,i,Be(i.message)||Bn(i.message)?{default:Be(i.message)?i.message:()=>i.message}:null);l.appContext=n||Au._context,ll(l,s),t.appendChild(s.firstElementChild);const a=l.component,c={id:o,vnode:l,vm:a,handler:{close:()=>{a.exposed.visible.value=!1}},props:l.component.props};return c},Au=(t={},e)=>{if(!Tt)return{close:()=>{}};const n=b_(t);if(n.grouping&&Ur.length){const r=Ur.find(({vnode:s})=>{var i;return((i=s.props)==null?void 0:i.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}if(bt(ys.max)&&Ur.length>=ys.max)return{close:()=>{}};const o=HY(n,e);return Ur.push(o),o.handler};v_.forEach(t=>{Au[t]=(e={},n)=>{const o=b_(e);return Au({...o,type:t},n)}});function UY(t){for(const e of Ur)(!t||t===e.props.type)&&e.handler.close()}Au.closeAll=UY;Au._context=null;const ln=Sk(Au,"$message"),mb="_trap-focus-children",Jl=[],Ux=t=>{if(Jl.length===0)return;const e=Jl[Jl.length-1][mb];if(e.length>0&&t.code===Nt.tab){if(e.length===1){t.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const n=t.shiftKey,o=t.target===e[0],r=t.target===e[e.length-1];o&&n&&(t.preventDefault(),e[e.length-1].focus()),r&&!n&&(t.preventDefault(),e[0].focus())}},WY={beforeMount(t){t[mb]=UC(t),Jl.push(t),Jl.length<=1&&document.addEventListener("keydown",Ux)},updated(t){lt(()=>{t[mb]=UC(t)})},unmounted(){Jl.shift(),Jl.length===0&&document.removeEventListener("keydown",Ux)}},qY=ce({name:"ElMessageBox",directives:{TrapFocus:WY},components:{ElButton:xn,ElFocusTrap:pf,ElInput:Cn,ElOverlay:hy,ElIcon:rt,...K0},inheritAttrs:!1,props:{buttonSize:{type:String,validator:AK},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:e}){const{locale:n,zIndex:o,ns:r,size:s}=mg("message-box",V(()=>t.buttonSize)),{t:i}=n,{nextZIndex:l}=o,a=R(!1),u=ut({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:xt(kd),cancelButtonLoadingIcon:xt(kd),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),c=V(()=>{const A=u.type;return{[r.bm("icon",A)]:A&&al[A]}}),d=Ms(),f=Ms(),h=V(()=>u.icon||al[u.type]||""),p=V(()=>!!u.message),g=R(),v=R(),m=R(),C=R(),y=R(),b=V(()=>u.confirmButtonClass);De(()=>u.inputValue,async A=>{await lt(),t.boxType==="prompt"&&A!==null&&D()},{immediate:!0}),De(()=>a.value,A=>{var K,j;A&&(t.boxType!=="prompt"&&(u.autofocus?m.value=(j=(K=y.value)==null?void 0:K.$el)!=null?j:g.value:m.value=g.value),u.zIndex=l()),t.boxType==="prompt"&&(A?lt().then(()=>{var F;C.value&&C.value.$el&&(u.autofocus?m.value=(F=J())!=null?F:g.value:m.value=g.value)}):(u.editorErrorMessage="",u.validateError=!1))});const S=V(()=>t.draggable),T=V(()=>t.overflow);PM(g,v,S,T),st(async()=>{await lt(),t.closeOnHashChange&&window.addEventListener("hashchange",O)}),un(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){a.value&&(a.value=!1,lt(()=>{u.action&&e("action",u.action)}))}const k=()=>{t.closeOnClickModal&&M(u.distinguishCancelAndClose?"close":"cancel")},P=fy(k),I=A=>{if(u.inputType!=="textarea")return A.preventDefault(),M("confirm")},M=A=>{var K;t.boxType==="prompt"&&A==="confirm"&&!D()||(u.action=A,u.beforeClose?(K=u.beforeClose)==null||K.call(u,A,u,O):O())},D=()=>{if(t.boxType==="prompt"){const A=u.inputPattern;if(A&&!A.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||i("el.messagebox.error"),u.validateError=!0,!1;const K=u.inputValidator;if(Be(K)){const j=K(u.inputValue);if(j===!1)return u.editorErrorMessage=u.inputErrorMessage||i("el.messagebox.error"),u.validateError=!0,!1;if(Ye(j))return u.editorErrorMessage=j,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},J=()=>{const A=C.value.$refs;return A.input||A.textarea},oe=()=>{M("close")},N=()=>{t.closeOnPressEscape&&oe()};return t.lockScroll&&LM(a),{...Ls(u),ns:r,overlayEvent:P,visible:a,hasMessage:p,typeClass:c,contentId:d,inputId:f,btnSize:s,iconComponent:h,confirmButtonClasses:b,rootRef:g,focusStartRef:m,headerRef:v,inputRef:C,confirmRef:y,doClose:O,handleClose:oe,onCloseRequested:N,handleWrapperClick:k,handleInputEnter:I,handleAction:M,t:i}}});function GY(t,e,n,o,r,s){const i=at("el-icon"),l=at("close"),a=at("el-input"),u=at("el-button"),c=at("el-focus-trap"),d=at("el-overlay");return _(),pe(Go,{name:"fade-in-linear",onAfterLeave:f=>t.$emit("vanish"),persisted:""},{default:E(()=>[$e(w(d,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:E(()=>[L("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:Y(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[w(c,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:E(()=>[L("div",{ref:"rootRef",class:Y([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:ft(t.customStyle),tabindex:"-1",onClick:At(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(_(),G("div",{key:0,ref:"headerRef",class:Y([t.ns.e("header"),{"show-close":t.showClose}])},[L("div",{class:Y(t.ns.e("title"))},[t.iconComponent&&t.center?(_(),pe(i,{key:0,class:Y([t.ns.e("status"),t.typeClass])},{default:E(()=>[(_(),pe(Ut(t.iconComponent)))]),_:1},8,["class"])):me("v-if",!0),L("span",null,Q(t.title),1)],2),t.showClose?(_(),G("button",{key:0,type:"button",class:Y(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:Wn(At(f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[w(i,{class:Y(t.ns.e("close"))},{default:E(()=>[w(l)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):me("v-if",!0)],2)):me("v-if",!0),L("div",{id:t.contentId,class:Y(t.ns.e("content"))},[L("div",{class:Y(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(_(),pe(i,{key:0,class:Y([t.ns.e("status"),t.typeClass])},{default:E(()=>[(_(),pe(Ut(t.iconComponent)))]),_:1},8,["class"])):me("v-if",!0),t.hasMessage?(_(),G("div",{key:1,class:Y(t.ns.e("message"))},[Se(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(_(),pe(Ut(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(_(),pe(Ut(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:E(()=>[U(Q(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):me("v-if",!0)],2),$e(L("div",{class:Y(t.ns.e("input"))},[w(a,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":f=>t.inputValue=f,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:Y({invalid:t.validateError}),onKeydown:Wn(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),L("div",{class:Y(t.ns.e("errormsg")),style:ft({visibility:t.editorErrorMessage?"visible":"hidden"})},Q(t.editorErrorMessage),7)],2),[[qe,t.showInput]])],10,["id"]),L("div",{class:Y(t.ns.e("btns"))},[t.showCancelButton?(_(),pe(u,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:Y([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:f=>t.handleAction("cancel"),onKeydown:Wn(At(f=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:E(()=>[U(Q(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):me("v-if",!0),$e(w(u,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:Y([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:f=>t.handleAction("confirm"),onKeydown:Wn(At(f=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:E(()=>[U(Q(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[qe,t.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[qe,t.visible]])]),_:3},8,["onAfterLeave"])}var KY=et(qY,[["render",GY],["__file","index.vue"]]);const Nd=new Map,JY=t=>{let e=document.body;return t.appendTo&&(Ye(t.appendTo)&&(e=document.querySelector(t.appendTo)),sr(t.appendTo)&&(e=t.appendTo),sr(e)||(e=document.body)),e},YY=(t,e,n=null)=>{const o=w(KY,t,Be(t.message)||Bn(t.message)?{default:Be(t.message)?t.message:()=>t.message}:null);return o.appContext=n,ll(o,e),JY(t).appendChild(e.firstElementChild),o.component},XY=()=>document.createElement("div"),ZY=(t,e)=>{const n=XY();t.onVanish=()=>{ll(null,n),Nd.delete(r)},t.onAction=s=>{const i=Nd.get(r);let l;t.showInput?l={value:r.inputValue,action:s}:l=s,t.callback?t.callback(l,o.proxy):s==="cancel"||s==="close"?t.distinguishCancelAndClose&&s!=="cancel"?i.reject("close"):i.reject("cancel"):i.resolve(l)};const o=YY(t,n,e),r=o.proxy;for(const s in t)kt(t,s)&&!kt(r.$props,s)&&(r[s]=t[s]);return r.visible=!0,r};function ic(t,e=null){if(!Tt)return Promise.reject();let n;return Ye(t)||Bn(t)?t={message:t}:n=t.callback,new Promise((o,r)=>{const s=ZY(t,e??ic._context);Nd.set(s,{options:t,callback:n,resolve:o,reject:r})})}const QY=["alert","confirm","prompt"],eX={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};QY.forEach(t=>{ic[t]=tX(t)});function tX(t){return(e,n,o,r)=>{let s="";return pt(n)?(o=n,s=""):En(n)?s="":s=n,ic(Object.assign({title:s,message:e,type:"",...eX[t]},o,{boxType:t}),r)}}ic.close=()=>{Nd.forEach((t,e)=>{e.doClose()}),Nd.clear()};ic._context=null;const Ri=ic;Ri.install=t=>{Ri._context=t._context,t.config.globalProperties.$msgbox=Ri,t.config.globalProperties.$messageBox=Ri,t.config.globalProperties.$alert=Ri.alert,t.config.globalProperties.$confirm=Ri.confirm,t.config.globalProperties.$prompt=Ri.prompt};const xo=Ri,y_=["success","info","warning","error"],nX=tt({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:co},id:{type:String,default:""},message:{type:_e([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:_e(Function),default:()=>{}},onClose:{type:_e(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...y_,""],default:""},zIndex:Number}),oX={destroy:()=>!0},rX=ce({name:"ElNotification"}),sX=ce({...rX,props:nX,emits:oX,setup(t,{expose:e}){const n=t,{ns:o,zIndex:r}=mg("notification"),{nextZIndex:s,currentZIndex:i}=r,{Close:l}=Ak,a=R(!1);let u;const c=V(()=>{const y=n.type;return y&&al[n.type]?o.m(y):""}),d=V(()=>n.type&&al[n.type]||n.icon),f=V(()=>n.position.endsWith("right")?"right":"left"),h=V(()=>n.position.startsWith("top")?"top":"bottom"),p=V(()=>{var y;return{[h.value]:`${n.offset}px`,zIndex:(y=n.zIndex)!=null?y:i.value}});function g(){n.duration>0&&({stop:u}=Su(()=>{a.value&&m()},n.duration))}function v(){u==null||u()}function m(){a.value=!1}function C({code:y}){y===Nt.delete||y===Nt.backspace?v():y===Nt.esc?a.value&&m():g()}return st(()=>{g(),s(),a.value=!0}),yn(document,"keydown",C),e({visible:a,close:m}),(y,b)=>(_(),pe(Go,{name:x(o).b("fade"),onBeforeLeave:y.onClose,onAfterLeave:S=>y.$emit("destroy"),persisted:""},{default:E(()=>[$e(L("div",{id:y.id,class:Y([x(o).b(),y.customClass,x(f)]),style:ft(x(p)),role:"alert",onMouseenter:v,onMouseleave:g,onClick:y.onClick},[x(d)?(_(),pe(x(rt),{key:0,class:Y([x(o).e("icon"),x(c)])},{default:E(()=>[(_(),pe(Ut(x(d))))]),_:1},8,["class"])):me("v-if",!0),L("div",{class:Y(x(o).e("group"))},[L("h2",{class:Y(x(o).e("title")),textContent:Q(y.title)},null,10,["textContent"]),$e(L("div",{class:Y(x(o).e("content")),style:ft(y.title?void 0:{margin:0})},[Se(y.$slots,"default",{},()=>[y.dangerouslyUseHTMLString?(_(),G(Le,{key:1},[me(" Caution here, message could've been compromised, never use user's input as message "),L("p",{innerHTML:y.message},null,8,["innerHTML"])],2112)):(_(),G("p",{key:0},Q(y.message),1))])],6),[[qe,y.message]]),y.showClose?(_(),pe(x(rt),{key:0,class:Y(x(o).e("closeBtn")),onClick:At(m,["stop"])},{default:E(()=>[w(x(l))]),_:1},8,["class","onClick"])):me("v-if",!0)],2)],46,["id","onClick"]),[[qe,a.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var iX=et(sX,[["__file","notification.vue"]]);const rp={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},vb=16;let lX=1;const Pu=function(t={},e){if(!Tt)return{close:()=>{}};(Ye(t)||Bn(t))&&(t={message:t});const n=t.position||"top-right";let o=t.offset||0;rp[n].forEach(({vm:c})=>{var d;o+=(((d=c.el)==null?void 0:d.offsetHeight)||0)+vb}),o+=vb;const r=`notification_${lX++}`,s=t.onClose,i={...t,offset:o,id:r,onClose:()=>{aX(r,n,s)}};let l=document.body;sr(t.appendTo)?l=t.appendTo:Ye(t.appendTo)&&(l=document.querySelector(t.appendTo)),sr(l)||(l=document.body);const a=document.createElement("div"),u=w(iX,i,Be(i.message)?i.message:()=>i.message);return u.appContext=En(e)?Pu._context:e,u.props.onDestroy=()=>{ll(null,a)},ll(u,a),rp[n].push({vm:u}),l.appendChild(a.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};y_.forEach(t=>{Pu[t]=(e={},n)=>((Ye(e)||Bn(e))&&(e={message:e}),Pu({...e,type:t},n))});function aX(t,e,n){const o=rp[e],r=o.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===t});if(r===-1)return;const{vm:s}=o[r];if(!s)return;n==null||n(s);const i=s.el.offsetHeight,l=e.split("-")[0];o.splice(r,1);const a=o.length;if(!(a<1))for(let u=r;u{e.component.exposed.visible.value=!1})}Pu.closeAll=uX;Pu._context=null;const th=Sk(Pu,"$notify");function $i(t){return JSON.parse(JSON.stringify(t))}function nt(t,e,n,o,r){const s={method:t,headers:{Accept:"application/json","Content-Type":"application/json"}};let i="/"+e;if(n){const l=new URLSearchParams(n);i+="?"+l.toString()}return r&&(s.body=JSON.stringify(r)),fetch(i,s).then(l=>l.json()).catch(l=>l)}function Dn(t,e){if(!(t==null||t==null))for(const[n,o]of Object.entries(t))o!=null&&o!=null&&(e[n]=o)}function ii(){return{branchId:"",branchName:"",branchType:"Condition",targetNodeId:"",conditionGroup:[[{conditionType:"UserInput",refOptions:[],refChoice:"",compareOptions:[],compareType:"Eq",targetOptions:[],targetValueVariant:"Const",targetValue:"",inputVariable:!1,caseSensitiveComparison:!0}]],editable:!0}}function Rl(t,e,n,o,r){let s;return r?s="No. "+(t+1)+" branch, condition: "+(n+1)+"-"+(o+1)+" "+r:s="No. "+(t+1)+" branch, "+e,{r:!1,m:s}}function cX(t){for(let e=0;e-1}function hX(t){window.sessionStorage.setItem("prd"+t.robotId,JSON.stringify(t))}function C_(t){const e=window.sessionStorage.getItem("prd"+t);return e?JSON.parse(e).robotType:""}const pX={class:"text-large font-600 mr-3"},gX=["checked"],mX={for:"_randomPortWhenConflict_"},Pi="130px",vX={__name:"GlobalSettings",setup(t){const{t:e,tm:n}=cn(),o=Ko(),r=()=>{o.push("/")},s=ut({ip:"127.0.0.1",port:"12715",selectRandomPortWhenConflict:!1,hfModelDownload:{connectTimeoutMillis:1e3,readTimeoutMillis:1e4,accessToken:""}});st(async()=>{const l=await nt("GET","management/global-settings",null,null,null);l.status==200&&Dn(l.data,s)});async function i(){let l=await nt("POST","management/global-settings",null,null,s);if(l.status==200)ln({type:"success",message:e("lang.common.saved")}),await checkHfModelFiles();else{const a=e(l.err.message);ln.error(a||l.err.message)}}return(l,a)=>{const u=Cf,c=Cn,d=jn,f=wf,h=xn,p=zn,g=Og,v=Mg;return _(),G(Le,null,[w(u,{title:l.$t("lang.common.back"),onBack:r},{content:E(()=>[L("span",pX,Q(l.$t("lang.settings.title")),1)]),_:1},8,["title"]),a[10]||(a[10]=L("h3",null,"Common settings",-1)),w(v,null,{default:E(()=>[w(g,{span:12,offset:1},{default:E(()=>[w(p,{model:s},{default:E(()=>[w(d,{label:"IP addr (v4 or v6)","label-width":Pi},{default:E(()=>[w(c,{modelValue:s.ip,"onUpdate:modelValue":a[0]||(a[0]=m=>s.ip=m),placeholder:""},null,8,["modelValue"])]),_:1}),w(d,{label:"","label-width":Pi},{default:E(()=>[U(Q(l.$t("lang.settings.ipNote")),1)]),_:1}),w(d,{label:l.$t("lang.settings.prompt2"),"label-width":Pi},{default:E(()=>[w(f,{modelValue:s.port,"onUpdate:modelValue":a[1]||(a[1]=m=>s.port=m),min:1024,max:65530,onChange:l.handleChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),w(d,{label:"","label-width":Pi},{default:E(()=>[$e(L("input",{type:"checkbox",id:"_randomPortWhenConflict_","onUpdate:modelValue":a[2]||(a[2]=m=>s.selectRandomPortWhenConflict=m),checked:s.selectRandomPortWhenConflict},null,8,gX),[[il,s.selectRandomPortWhenConflict]]),L("label",mX,Q(l.$t("lang.settings.prompt2_2")),1)]),_:1}),w(d,{"label-width":Pi},{default:E(()=>[U(Q(l.$t("lang.settings.note")),1)]),_:1}),w(d,{label:"","label-width":Pi},{default:E(()=>[w(h,{type:"primary",onClick:i},{default:E(()=>[U(Q(l.$t("lang.common.save")),1)]),_:1}),w(h,{onClick:a[3]||(a[3]=m=>r())},{default:E(()=>[U(Q(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),a[11]||(a[11]=L("h3",null,"HuggingFace model downloading settings",-1)),w(v,null,{default:E(()=>[w(g,{span:11,offset:1},{default:E(()=>[w(p,{model:s.modelDownload,"label-width":Pi,style:{"max-width":"600px"}},{default:E(()=>[w(d,{label:"Connect timeout"},{default:E(()=>[w(f,{modelValue:s.hfModelDownload.connectTimeoutMillis,"onUpdate:modelValue":a[4]||(a[4]=m=>s.hfModelDownload.connectTimeoutMillis=m),min:100,max:5e4,step:100},null,8,["modelValue"]),a[8]||(a[8]=U(" millis "))]),_:1}),w(d,{label:"Read timeout"},{default:E(()=>[w(f,{modelValue:s.hfModelDownload.readTimeoutMillis,"onUpdate:modelValue":a[5]||(a[5]=m=>s.hfModelDownload.readTimeoutMillis=m),min:1e3,max:65530,step:100},null,8,["modelValue"]),a[9]||(a[9]=U(" millis "))]),_:1}),w(d,{label:"Access token"},{default:E(()=>[w(c,{modelValue:s.hfModelDownload.accessToken,"onUpdate:modelValue":a[6]||(a[6]=m=>s.hfModelDownload.accessToken=m),placeholder:""},null,8,["modelValue"])]),_:1}),w(d,{label:"","label-width":Pi},{default:E(()=>[w(h,{type:"primary",onClick:i},{default:E(()=>[U(Q(l.$t("lang.common.save")),1)]),_:1}),w(h,{onClick:a[7]||(a[7]=m=>r())},{default:E(()=>[U(Q(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},bX="/assets/usedByLlmChatNode-Bv2Fg5P7.png",yX="/assets/usedByLlmChatNode-Bv2Fg5P7.png",wX="/assets/usedByDialogNodeTextGeneration-thumbnail-C1iQCVQO.png",CX="/assets/usedByDialogNodeTextGeneration-DrFqkTqi.png",xX="/assets/usedBySentenceEmbedding-thumbnail-DVXz_sh0.png",SX="/assets/usedBySentenceEmbedding-Dmju1hVB.png",Wx="[-\\w\\.\\+]{1,100}@[A-Za-z0-9]{1,30}[A-Za-z\\.]{2,30}",ko="150px",EX={__name:"Settings",setup(t){const{t:e,tm:n}=cn(),o=Ir(),r=Ko(),s=o.params.robotId;C_(s);const i=R(30),l=()=>{r.push({name:"robotDetail",params:{robotId:s}})},a=R(85),u=ut({version:1017e3,maxSessionIdleSec:1800,smtpHost:"",smtpUsername:"",smtpPassword:"",smtpTimeoutSec:60,emailVerificationRegex:"",chatProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",max_token_len:1e3,connectTimeoutMillis:5e3,readTimeoutMillis:1e4,maxResponseTokenLength:5e3,proxyUrl:""},textGenerationProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",max_token_len:1e3,connectTimeoutMillis:5e3,readTimeoutMillis:1e4,maxResponseTokenLength:5e3,proxyUrl:""},sentenceEmbeddingProvider:{provider:{id:"",model:""},similarityThreshold:.85,apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",connectTimeoutMillis:5e3,readTimeoutMillis:1e4,proxyUrl:""},asrProvider:{enabled:!1,provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",connectTimeoutMillis:5e3,readTimeoutMillis:1e4,proxyUrl:""},ttsProvider:{enabled:!1,provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",connectTimeoutMillis:5e3,readTimeoutMillis:1e4,proxyUrl:""}}),c=R(!1),d=R(!1),f=R(!1),h=R(""),p=R(!1),g=R(!1),v=R(""),m=R(!1),C=R(!1),y=R(""),b=R(!1),S=R(!1),T=R(""),O=R(""),k=R(""),P=R("");st(async()=>{const Ce=await nt("GET","management/settings",{robotId:s},null,null);Ce.status==200&&(Dn(Ce.data,u),i.value=u.maxSessionIdleSec/60,O.value=Ce.data.sentenceEmbeddingProvider.provider.id,be(u.chatProvider.provider.id),te(u.textGenerationProvider.provider.id),q(u.sentenceEmbeddingProvider.provider.id),Ge(u.ttsProvider.provider.id)),await I()}),Rs(()=>{J!=null&&clearTimeout(J)});async function I(){const Ce=new Map;if(u.chatProvider.provider.id=="HuggingFace"){for(let z=0;z<$.length;z++)if($[z].value==u.chatProvider.provider.model){let Ke=$[z].value;const He=Ke.lastIndexOf(" ");He>-1&&(Ke=Ke.substring(0,He)),v.value=Ke,Ce.set(m,Ke);break}}else p.value=!1;if(u.textGenerationProvider.provider.id=="HuggingFace"){for(let z=0;z-1&&(Ke=Ke.substring(0,He)),y.value=Ke,Ce.set(m,Ke);break}}else m.value=!1;if(u.sentenceEmbeddingProvider.provider.id=="HuggingFace"){for(let z=0;z-1&&(Ke=Ke.substring(0,He)),T.value=Ke,Ce.set(b,Ke);break}}else b.value=!1;if(Ce.size>0){const z=await nt("POST","management/settings/model/check/files",null,null,Array.from(Ce.values()));if(z&&z.data)for(let[Ke,He]of Ce.entries())z.data[He]==!1?Ke.value=!0:Ke.value=!1}}async function M(){O.value!=u.sentenceEmbeddingProvider.provider.id?xo.confirm("Sentence embedding model has been changed, this may cause dimension mismatch issue (You can regenerate all sentences to resolve). Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning",dangerouslyUseHTMLString:!0}).then(()=>{D()}).catch(()=>{}):D()}async function D(){u.emailVerificationRegex||(u.emailVerificationRegex=Wx),u.maxSessionIdleSec=i.value*60,u.sentenceEmbeddingProvider.similarityThreshold=a.value/100;let Ce=await nt("POST","management/settings",{robotId:s},null,u);if(Ce.status==200)ln({type:"success",message:e("lang.common.saved")}),await I();else{const z=e(Ce.err.message);ln.error(z||Ce.err.message)}}let J=null;async function oe(Ce){const z=await nt("GET","management/settings/model/download/progress",null,null,null);if(z!=null&&z.data!=null&&z.data.downloading){const Ke="Downloading: "+z.url+" ("+(z.data.downloadedLen/z.data.totalLen*100).toFixed(2)+"), please wait until it finish.";ln.error(Ke);return}nt("POST","management/settings/model/download",{robotId:s,m:Ce},null,Ce).then(Ke=>{if(Ke==null||Ke.status!=200){ln.error("Download failed: "+Ke.err.message);return}Ce=="sentenceEmbedding"?(b.value=!1,S.value=!0):(m.value=!1,C.value=!0),J=setTimeout(async()=>{await A()},1e3)})}function N(){clearTimeout(J),m.value=!1,C.value=!1,b.value=!1,S.value=!1}async function A(){const Ce=await nt("GET","management/settings/model/download/progress",null,null,null);if(Ce!=null&&Ce.data!=null)if(Ce.data.err){ln.error(Ce.data.err),clearTimeout(J),C.value=!1,S.value=!1;return}else Ce.data.downloading?(k.value=Ce.data.url,P.value=(Ce.data.downloadedLen/Ce.data.totalLen*100).toFixed(2),J=setTimeout(async()=>{await A()},1e3)):N();else N()}const K=async()=>{c.value=!0;const Ce=await nt("POST","management/settings/smtp/test",null,null,u);Ce.status==200?(d.value=!0,f.value=!1):(h.value=e(Ce.err.message),d.value=!1,f.value=!0),c.value=!1},j=[{label:"Meta Llama 3.1 8b",value:"llama3.1:8b"},{label:"Meta Llama 3.1 70b",value:"llama3.1:70b"},{label:"Meta Llama 3 8b",value:"llama3:8b"},{label:"Meta Llama 3 70b",value:"llama3:70b"},{label:"Phi-3 3.8b",value:"phi3:3.8b"},{label:"Phi-3 14b",value:"phi3:14b"},{label:"Phi-3 instruct",value:"phi3:instruct"},{label:"Gemma2 9b",value:"gemma2:9b"},{label:"Gemma2 27b",value:"gemma2:27b"},{label:"WizardLM-2 7b",value:"wizardlm2:7b"},{label:"WizardLM-2 8x22b",value:"wizardlm2:8x22b"},{label:"Mistral 7b",value:"mistral:7b"},{label:"Mixtral 8x7b",value:"mixtral:8x7b"},{label:"Mixtral 8x22b",value:"mixtral:8x22b"},{label:"Qwen 2 1.5b",value:"qwen2:1.5b"},{label:"Qwen 2 7b",value:"qwen2:7b"},{label:"Qwen 2 72b",value:"qwen2:72b"},{label:"TinyLlama 1.1b",value:"tinyllama:1.1b"},{label:"Yi 1.5 6b",value:"yi:6b"},{label:"Yi 1.5 9b",value:"yi:9b"},{label:"Yi 1.5 34b",value:"yi:34b"}];Bt("ollamaModels",{ollamaModels:j});const F=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"microsoft/Phi-3-mini-4k-instruct (7.7GB)",value:"Phi3Mini4kInstruct"},{label:"microsoft/Phi-3-mini-128k-instruct (7.7GB)",value:"Phi3Mini128kInstruct"},{label:"microsoft/Phi-3-small-8k-instruct (15GB)",value:"Phi3Small8kInstruct"},{label:"microsoft/Phi-3-small-128k-instruct (15GB)",value:"Phi3Small128kInstruct"},{label:"microsoft/Phi-3-medium-4k-instruct (30GB)",value:"Phi3Medium4kInstruct"},{label:"microsoft/Phi-3-medium-128k-instruct (30GB)",value:"Phi3Medium128kInstruct"},{label:"google/gemma-2b-it (4.9GB)",value:"Gemma2bInstruct",need_auth_header:!0},{label:"google/gemma-7b-it (12.1GB)",value:"Gemma7bInstruct",need_auth_header:!0},{label:"meta-llama/Meta-Llama-3-8B-Instruct (??GB)",value:"MetaLlama3_8bInstruct",need_auth_header:!0},{label:"upstage/SOLAR-10.7B-v1.0 (21.5GB)",value:"Solar10_7bV1_0"},{label:"Qwen/Qwen2-7B-Instruct (15.4GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"Qwen/Qwen2-72B-Instruct (144GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"TinyLlama/TinyLlama-1.1B-Chat-v1.0 (2.2GB)",value:"TinyLlama1_1bChatV1_0"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/chat/completions",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"gpt-4o",value:"gpt-4"},{label:"gpt-4o-mini",value:"gpt-4-mini"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/chat",apiUrlDisabled:!1,showApiKeyInput:!1,models:j}],le=R(!1),ue=R(!1),se=R(""),Ee=R(),fe=Ce=>{const z={label:Ce,value:Ce};$.unshift(z),F[2].models.unshift(z),Ee.value.blur(),u.chatProvider.provider.id="Ollama",u.chatProvider.provider.model=z.value,se.value=""},ve=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"microsoft/Phi-3-mini-4k-instruct (7.7GB)",value:"Phi3Mini4kInstruct"},{label:"microsoft/Phi-3-mini-128k-instruct (7.7GB)",value:"Phi3Mini128kInstruct"},{label:"microsoft/Phi-3-small-8k-instruct (15GB)",value:"Phi3Small8kInstruct"},{label:"microsoft/Phi-3-small-128k-instruct (15GB)",value:"Phi3Small128kInstruct"},{label:"microsoft/Phi-3-medium-4k-instruct (30GB)",value:"Phi3Medium4kInstruct"},{label:"microsoft/Phi-3-medium-128k-instruct (30GB)",value:"Phi3Medium128kInstruct"},{label:"google/gemma-2b-it (4.9GB)",value:"Gemma2bInstruct",need_auth_header:!0},{label:"google/gemma-7b-it (12.1GB)",value:"Gemma7bInstruct",need_auth_header:!0},{label:"meta-llama/Meta-Llama-3-8B-Instruct (??GB)",value:"MetaLlama3_8bInstruct",need_auth_header:!0},{label:"upstage/SOLAR-10.7B-v1.0 (21.5GB)",value:"Solar10_7bV1_0"},{label:"Qwen/Qwen2-7B-Instruct (15.4GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"Qwen/Qwen2-72B-Instruct (144GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"TinyLlama/TinyLlama-1.1B-Chat-v1.0 (2.2GB)",value:"TinyLlama1_1bChatV1_0"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/chat/completions",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/generate",apiUrlDisabled:!1,showApiKeyInput:!1,models:j}],Oe=R(!1),ee=R(!1),ne=R(""),Z=R(),ye=Ce=>{const z={label:Ce,value:Ce};he.unshift(z),ve[2].models.unshift(z),Z.value.blur(),u.textGenerationProvider.provider.id="Ollama",u.textGenerationProvider.provider.model=z.value,ne.value=""},ke=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"sentence-transformers/all-MiniLM-L6-v2 (91MB)",value:"AllMiniLML6V2",dimenssions:384},{label:"sentence-transformers/paraphrase-MiniLM-L12-v2 (135MB)",value:"ParaphraseMLMiniLML12V2"},{label:"sentence-transformers/paraphrase-multilingual-mpnet-base-v2 (1.11GB)",value:"ParaphraseMLMpnetBaseV2"},{label:"BAAI/bge-small-en-v1.5 (135MB)",value:"BgeSmallEnV1_5"},{label:"BAAI/bge-base-en-v1.5 (439MB)",value:"BgeBaseEnV1_5"},{label:"BAAI/bge-large-en-v1.5 (1.35GB)",value:"BgeLargeEnV1_5"},{label:"BAAI/bge-m3 (2.27GB)",value:"BgeM3"},{label:"nomic-ai/nomic-embed-text-v1.5 (550MB)",value:"NomicEmbedTextV1_5"},{label:"intfloat/multilingual-e5-small (472MB)",value:"MultilingualE5Small"},{label:"intfloat/multilingual-e5-base (1.11GB)",value:"MultilingualE5Base"},{label:"intfloat/multilingual-e5-large (2.24GB)",value:"MultilingualE5Large"},{label:"mixedbread-ai/mxbai-embed-large-v1 (1.34GB)",value:"MxbaiEmbedLargeV1"},{label:"moka-ai/m3e-base (409MB)",value:"MokaAiM3eBase"},{label:"moka-ai/m3e-large (1.3GB)",value:"MokaAiM3eLarge"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/embeddings",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"text-embedding-3-large",value:"text-embedding-3-large"},{label:"text-embedding-3-small",value:"text-embedding-3-small"},{label:"text-embedding-ada-002",value:"text-embedding-ada-002"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/embeddings",apiUrlDisabled:!1,showApiKeyInput:!1,models:[{label:"nomic-embed-text:v1.5",value:"nomic-embed-text:v1.5"},{label:"mxbai-embed-large:335m",value:"mxbai-embed-large:335m"},{label:"snowflake-arctic-embed:335m",value:"snowflake-arctic-embed:335m"},{label:"jina-embeddings-v2-base-en",value:"jina/jina-embeddings-v2-base-en:latest"}]}],Xe=R(!1),$=ut([]),W=new Map,re=R(""),be=Ce=>{re.value&&W.set(re.value,u.chatProvider.apiUrl);for(let z=0;zKe.value==u.chatProvider.provider.model)==null&&fe(u.chatProvider.provider.model),$.splice(0,$.length,...F[z].models);break}},he=ut([]),B=new Map,H=R(""),te=Ce=>{H.value&&B.set(H.value,u.textGenerationProvider.apiUrl);for(let z=0;zKe.value==u.textGenerationProvider.provider.model)==null&&ye(u.textGenerationProvider.provider.model),he.splice(0,he.length,...ve[z].models);break}},ie=ut([]),we=new Map,ge=R(""),q=Ce=>{ge.value&&we.set(ge.value,u.sentenceEmbeddingProvider.apiUrl);for(let z=0;zKe.value==u.sentenceEmbeddingProvider.provider.model)==null&&ct(u.sentenceEmbeddingProvider.provider.model),ie.splice(0,ie.length,...ke[z].models);break}},ae=R(),Ne=R(!1),We=R(""),ct=Ce=>{const z={label:Ce,value:Ce};ie.unshift(z),ke[2].models.unshift(z),ae.value.blur(),u.sentenceEmbeddingProvider.provider.id="Ollama",u.sentenceEmbeddingProvider.provider.model=z.value,We.value=""},mt=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"parler-tts/parler-tts-mini-v1 (English 3.51GB)",value:"ParlerTtsMiniV1"},{label:"parler-tts/parler-tts-large-v1 (English 9.35GB)",value:"ParlerTtsLargeV1"}]}],Ft=ut([]),zt=new Map,Me=R(""),Ge=Ce=>{Me.value&&zt.set(Me.value,u.ttsProvider.apiUrl);for(let z=0;z{const Ke=wf,He=jn,St=xn,An=zn,fn=Og,Lr=Mg,Rr=go,dr=JU,Al=vf,hn=Cn,ps=Bs,Ti=Vs,fc=fi,hc=VM,Nf=J0;return _(),G(Le,null,[L("h1",null,Q(Ce.$t("lang.settings.title")),1),z[93]||(z[93]=L("h3",null,"Common settings",-1)),w(Lr,null,{default:E(()=>[w(fn,{span:12,offset:1},{default:E(()=>[w(An,{model:u},{default:E(()=>[w(He,{label:Ce.$t("lang.settings.prompt3"),"label-width":ko},{default:E(()=>[w(Ke,{modelValue:i.value,"onUpdate:modelValue":z[0]||(z[0]=Te=>i.value=Te),min:2,max:1440,onChange:Ce.handleChange},null,8,["modelValue","onChange"]),U(" "+Q(Ce.$t("lang.settings.prompt4")),1)]),_:1},8,["label"]),w(He,{label:"","label-width":ko},{default:E(()=>[w(St,{type:"primary",onClick:M},{default:E(()=>[U(Q(Ce.$t("lang.common.save")),1)]),_:1}),w(St,{onClick:z[1]||(z[1]=Te=>l())},{default:E(()=>[U(Q(Ce.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),L("h3",null,[z[55]||(z[55]=U(" Chat bot ")),w(Rr,{effect:"light",placement:"right"},{content:E(()=>z[53]||(z[53]=[U(" You don’t need to download the large model file unless you want to use the functionalities described below. "),L("br",null,null,-1),U(" Currently, its function is merely to provide automatic response capabilities and suggested reply templates for dialogue nodes. ")])),default:E(()=>[w(St,{circle:""},{default:E(()=>z[54]||(z[54]=[U("?")])),_:1})]),_:1})]),w(Lr,null,{default:E(()=>[w(fn,{span:11,offset:1},{default:E(()=>[w(An,{model:u.chatProvider,"label-width":ko,style:{"max-width":"600px"}},{default:E(()=>[w(He,{label:"Provider"},{default:E(()=>[w(Al,{modelValue:u.chatProvider.provider.id,"onUpdate:modelValue":z[2]||(z[2]=Te=>u.chatProvider.provider.id=Te),size:"large",onChange:be},{default:E(()=>[(_(),G(Le,null,yt(F,Te=>w(dr,{id:Te.id,key:Te.id,label:Te.id,value:Te.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),w(He,{label:"Request address"},{default:E(()=>[w(hn,{modelValue:u.chatProvider.apiUrl,"onUpdate:modelValue":z[3]||(z[3]=Te=>u.chatProvider.apiUrl=Te),disabled:u.chatProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),$e(w(He,{label:"OpenAI API key"},{default:E(()=>[w(hn,{modelValue:u.chatProvider.apiKey,"onUpdate:modelValue":z[4]||(z[4]=Te=>u.chatProvider.apiKey=Te)},null,8,["modelValue"])]),_:1},512),[[qe,u.chatProvider.showApiKeyInput]]),w(He,{label:"Model"},{default:E(()=>[w(Ti,{ref_key:"chatModelSelector",ref:Ee,modelValue:u.chatProvider.provider.model,"onUpdate:modelValue":z[9]||(z[9]=Te=>u.chatProvider.provider.model=Te),placeholder:"Choose a model"},{footer:E(()=>[ue.value?(_(),G(Le,{key:1},[w(hn,{modelValue:se.value,"onUpdate:modelValue":z[6]||(z[6]=Te=>se.value=Te),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),w(St,{type:"primary",onClick:z[7]||(z[7]=Te=>fe(se.value))},{default:E(()=>z[57]||(z[57]=[U(" confirm ")])),_:1}),w(St,{onClick:z[8]||(z[8]=Te=>ue.value=!1)},{default:E(()=>z[58]||(z[58]=[U("cancel")])),_:1})],64)):(_(),pe(St,{key:0,disabled:u.chatProvider.provider.id!="Ollama",text:"",bg:"",onClick:z[5]||(z[5]=Te=>ue.value=!0)},{default:E(()=>z[56]||(z[56]=[U(" Another ollama model ")])),_:1},8,["disabled"]))]),default:E(()=>[(_(!0),G(Le,null,yt($,Te=>(_(),pe(ps,{id:Te.value,key:Te.value,label:Te.label,value:Te.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),w(He,{label:"Max response token"},{default:E(()=>[w(Ke,{modelValue:u.chatProvider.maxResponseTokenLength,"onUpdate:modelValue":z[10]||(z[10]=Te=>u.chatProvider.maxResponseTokenLength=Te),min:10,max:1e5,step:5},null,8,["modelValue"])]),_:1}),$e(w(He,{label:"Connect timeout"},{default:E(()=>[w(Ke,{modelValue:u.chatProvider.connectTimeoutMillis,"onUpdate:modelValue":z[11]||(z[11]=Te=>u.chatProvider.connectTimeoutMillis=Te),min:100,max:65500,step:100},null,8,["modelValue"]),z[59]||(z[59]=U(" millis "))]),_:1},512),[[qe,u.chatProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:"Read timeout"},{default:E(()=>[w(Ke,{modelValue:u.chatProvider.readTimeoutMillis,"onUpdate:modelValue":z[12]||(z[12]=Te=>u.chatProvider.readTimeoutMillis=Te),min:200,max:65500,step:100},null,8,["modelValue"]),z[60]||(z[60]=U(" millis "))]),_:1},512),[[qe,u.chatProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:"Proxy"},{default:E(()=>[w(fc,{modelValue:le.value,"onUpdate:modelValue":z[13]||(z[13]=Te=>le.value=Te),label:"Enable"},null,8,["modelValue"]),w(hn,{modelValue:Ce.input,"onUpdate:modelValue":z[14]||(z[14]=Te=>Ce.input=Te),placeholder:"http://127.0.0.1:9270",disabled:!le.value},null,8,["modelValue","disabled"])]),_:1},512),[[qe,u.chatProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:""},{default:E(()=>[z[62]||(z[62]=U(" HuggingFace model files were incorrect or missing, please ")),w(St,{type:"primary",text:"",onClick:z[15]||(z[15]=Te=>oe(u.chatProvider.provider.model))},{default:E(()=>z[61]||(z[61]=[U(" click here to download model files from Huggingface.co ")])),_:1}),U(", or you can download manually and put them in ./data/model/"+Q(v.value),1)]),_:1},512),[[qe,m.value]]),$e(w(He,{label:""},{default:E(()=>[U(" Downloading: "+Q(k.value)+", "+Q(P.value)+"% ",1)]),_:1},512),[[qe,g.value]]),w(He,{label:"","label-width":ko},{default:E(()=>[w(St,{type:"primary",onClick:M},{default:E(()=>[U(Q(Ce.$t("lang.common.save")),1)]),_:1}),w(St,{onClick:z[16]||(z[16]=Te=>l())},{default:E(()=>[U(Q(Ce.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),w(fn,{span:6,offset:1},{default:E(()=>[z[63]||(z[63]=L("div",null,"This is used by LLM chat node.",-1)),w(hc,{src:x(bX),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":de,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),L("h3",null,[z[66]||(z[66]=U(" Text generation ")),w(Rr,{effect:"light",placement:"right"},{content:E(()=>z[64]||(z[64]=[U(" You don’t need to download the large model file unless you want to use the functionalities described below. "),L("br",null,null,-1),U(" Currently, its function is merely to provide automatic response capabilities and suggested reply templates for dialogue nodes. ")])),default:E(()=>[w(St,{circle:""},{default:E(()=>z[65]||(z[65]=[U("?")])),_:1})]),_:1})]),w(Lr,null,{default:E(()=>[w(fn,{span:11,offset:1},{default:E(()=>[w(An,{model:u.textGenerationProvider,"label-width":ko,style:{"max-width":"600px"}},{default:E(()=>[w(He,{label:"Provider"},{default:E(()=>[w(Al,{modelValue:u.textGenerationProvider.provider.id,"onUpdate:modelValue":z[17]||(z[17]=Te=>u.textGenerationProvider.provider.id=Te),size:"large",onChange:te},{default:E(()=>[(_(),G(Le,null,yt(ve,Te=>w(dr,{id:Te.id,key:Te.id,label:Te.id,value:Te.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),w(He,{label:"Request address"},{default:E(()=>[w(hn,{modelValue:u.textGenerationProvider.apiUrl,"onUpdate:modelValue":z[18]||(z[18]=Te=>u.textGenerationProvider.apiUrl=Te),disabled:u.textGenerationProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),$e(w(He,{label:"OpenAI API key"},{default:E(()=>[w(hn,{modelValue:u.textGenerationProvider.apiKey,"onUpdate:modelValue":z[19]||(z[19]=Te=>u.textGenerationProvider.apiKey=Te)},null,8,["modelValue"])]),_:1},512),[[qe,u.textGenerationProvider.showApiKeyInput]]),w(He,{label:"Model"},{default:E(()=>[w(Ti,{ref_key:"textGenerationModelSelector",ref:Z,modelValue:u.textGenerationProvider.provider.model,"onUpdate:modelValue":z[24]||(z[24]=Te=>u.textGenerationProvider.provider.model=Te),placeholder:"Choose a model"},{footer:E(()=>[ee.value?(_(),G(Le,{key:1},[w(hn,{modelValue:ne.value,"onUpdate:modelValue":z[21]||(z[21]=Te=>ne.value=Te),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),w(St,{type:"primary",onClick:z[22]||(z[22]=Te=>ye(ne.value))},{default:E(()=>z[68]||(z[68]=[U(" confirm ")])),_:1}),w(St,{onClick:z[23]||(z[23]=Te=>ee.value=!1)},{default:E(()=>z[69]||(z[69]=[U("cancel")])),_:1})],64)):(_(),pe(St,{key:0,disabled:u.textGenerationProvider.provider.id!="Ollama",text:"",bg:"",onClick:z[20]||(z[20]=Te=>ee.value=!0)},{default:E(()=>z[67]||(z[67]=[U(" Another ollama model ")])),_:1},8,["disabled"]))]),default:E(()=>[(_(!0),G(Le,null,yt(he,Te=>(_(),pe(ps,{id:Te.value,key:Te.value,label:Te.label,value:Te.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),w(He,{label:"Max response token"},{default:E(()=>[w(Ke,{modelValue:u.textGenerationProvider.maxResponseTokenLength,"onUpdate:modelValue":z[25]||(z[25]=Te=>u.textGenerationProvider.maxResponseTokenLength=Te),min:10,max:1e5,step:5},null,8,["modelValue"])]),_:1}),$e(w(He,{label:"Connect timeout"},{default:E(()=>[w(Ke,{modelValue:u.textGenerationProvider.connectTimeoutMillis,"onUpdate:modelValue":z[26]||(z[26]=Te=>u.textGenerationProvider.connectTimeoutMillis=Te),min:100,max:65500,step:100},null,8,["modelValue"]),z[70]||(z[70]=U(" millis "))]),_:1},512),[[qe,u.textGenerationProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:"Read timeout"},{default:E(()=>[w(Ke,{modelValue:u.textGenerationProvider.readTimeoutMillis,"onUpdate:modelValue":z[27]||(z[27]=Te=>u.textGenerationProvider.readTimeoutMillis=Te),min:1e3,max:65500,step:100},null,8,["modelValue"]),z[71]||(z[71]=U(" millis "))]),_:1},512),[[qe,u.textGenerationProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:"Proxy"},{default:E(()=>[w(fc,{modelValue:Oe.value,"onUpdate:modelValue":z[28]||(z[28]=Te=>Oe.value=Te),label:"Enable"},null,8,["modelValue"]),w(hn,{modelValue:Ce.input,"onUpdate:modelValue":z[29]||(z[29]=Te=>Ce.input=Te),placeholder:"http://127.0.0.1:9270",disabled:!Oe.value},null,8,["modelValue","disabled"])]),_:1},512),[[qe,u.textGenerationProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:""},{default:E(()=>[z[73]||(z[73]=U(" HuggingFace model files were incorrect or missing, please ")),w(St,{type:"primary",text:"",onClick:z[30]||(z[30]=Te=>oe(u.textGenerationProvider.provider.model))},{default:E(()=>z[72]||(z[72]=[U(" click here to download model files from Huggingface.co ")])),_:1}),U(", or you can download manually and put them in ./data/model/"+Q(y.value),1)]),_:1},512),[[qe,m.value]]),$e(w(He,{label:""},{default:E(()=>[U(" Downloading: "+Q(k.value)+", "+Q(P.value)+"% ",1)]),_:1},512),[[qe,C.value]]),w(He,{label:"","label-width":ko},{default:E(()=>[w(St,{type:"primary",onClick:M},{default:E(()=>[U(Q(Ce.$t("lang.common.save")),1)]),_:1}),w(St,{onClick:z[31]||(z[31]=Te=>l())},{default:E(()=>[U(Q(Ce.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),w(fn,{span:6,offset:1},{default:E(()=>[z[74]||(z[74]=L("div",null,"This is used by dialog node.",-1)),w(hc,{src:x(wX),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":Ae,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),L("h3",null,[z[77]||(z[77]=U(" Sentence embedding provider ")),w(Rr,{effect:"light",placement:"right"},{content:E(()=>z[75]||(z[75]=[U(" Downloading model files is not necessary."),L("br",null,null,-1),U(" Its function is merely to enhance the accuracy of intent recognition for user inputs, and it will not affect the response functionality of the process."),L("br",null,null,-1),U(" User intent can also be recognized through the configuration of keywords and regular expressions without downloading the model. ")])),default:E(()=>[w(St,{circle:""},{default:E(()=>z[76]||(z[76]=[U("?")])),_:1})]),_:1})]),w(Lr,null,{default:E(()=>[w(fn,{span:11,offset:1},{default:E(()=>[w(An,{model:u.sentenceEmbeddingProvider,"label-width":ko,style:{"max-width":"600px"}},{default:E(()=>[w(He,{label:"Provider"},{default:E(()=>[w(Al,{modelValue:u.sentenceEmbeddingProvider.provider.id,"onUpdate:modelValue":z[32]||(z[32]=Te=>u.sentenceEmbeddingProvider.provider.id=Te),size:"large",onChange:q},{default:E(()=>[(_(),G(Le,null,yt(ke,Te=>w(dr,{id:Te.id,key:Te.id,label:Te.id,value:Te.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),w(He,{label:"Request address"},{default:E(()=>[w(hn,{modelValue:u.sentenceEmbeddingProvider.apiUrl,"onUpdate:modelValue":z[33]||(z[33]=Te=>u.sentenceEmbeddingProvider.apiUrl=Te),disabled:u.sentenceEmbeddingProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),$e(w(He,{label:"OpenAI API key"},{default:E(()=>[w(hn,{modelValue:u.sentenceEmbeddingProvider.apiKey,"onUpdate:modelValue":z[34]||(z[34]=Te=>u.sentenceEmbeddingProvider.apiKey=Te)},null,8,["modelValue"])]),_:1},512),[[qe,u.sentenceEmbeddingProvider.showApiKeyInput]]),w(He,{label:"Model"},{default:E(()=>[w(Ti,{ref_key:"sentenceEmbeddingModelSelector",ref:ae,modelValue:u.sentenceEmbeddingProvider.provider.model,"onUpdate:modelValue":z[39]||(z[39]=Te=>u.sentenceEmbeddingProvider.provider.model=Te),placeholder:"Choose a model"},{footer:E(()=>[Ne.value?(_(),G(Le,{key:1},[w(hn,{modelValue:We.value,"onUpdate:modelValue":z[36]||(z[36]=Te=>We.value=Te),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),w(St,{type:"primary",onClick:z[37]||(z[37]=Te=>ct(We.value))},{default:E(()=>z[79]||(z[79]=[U(" confirm ")])),_:1}),w(St,{onClick:z[38]||(z[38]=Te=>Ne.value=!1)},{default:E(()=>z[80]||(z[80]=[U("cancel")])),_:1})],64)):(_(),pe(St,{key:0,disabled:u.sentenceEmbeddingProvider.provider.id!="Ollama",text:"",bg:"",onClick:z[35]||(z[35]=Te=>Ne.value=!0)},{default:E(()=>z[78]||(z[78]=[U(" Another ollama model ")])),_:1},8,["disabled"]))]),default:E(()=>[(_(!0),G(Le,null,yt(ie,Te=>(_(),pe(ps,{id:Te.value,key:Te.value,label:Te.label,value:Te.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),w(He,{label:"Similarity threshold"},{default:E(()=>[z[83]||(z[83]=U(" ≥")),w(Ke,{modelValue:a.value,"onUpdate:modelValue":z[40]||(z[40]=Te=>a.value=Te),min:1,max:99,step:1},null,8,["modelValue"]),z[84]||(z[84]=U("% ")),w(Rr,{effect:"light",placement:"right"},{content:E(()=>z[81]||(z[81]=[U(" An intent is used when the expression matching similarity exceeds the threshold. ")])),default:E(()=>[w(St,{circle:""},{default:E(()=>z[82]||(z[82]=[U("?")])),_:1})]),_:1})]),_:1}),$e(w(He,{label:"Connect timeout"},{default:E(()=>[w(Ke,{modelValue:u.sentenceEmbeddingProvider.connectTimeoutMillis,"onUpdate:modelValue":z[41]||(z[41]=Te=>u.sentenceEmbeddingProvider.connectTimeoutMillis=Te),min:100,max:65500,step:100},null,8,["modelValue"]),z[85]||(z[85]=U(" millis "))]),_:1},512),[[qe,u.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:"Read timeout"},{default:E(()=>[w(Ke,{modelValue:u.sentenceEmbeddingProvider.readTimeoutMillis,"onUpdate:modelValue":z[42]||(z[42]=Te=>u.sentenceEmbeddingProvider.readTimeoutMillis=Te),min:500,max:65500,step:100},null,8,["modelValue"]),z[86]||(z[86]=U(" millis "))]),_:1},512),[[qe,u.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:"Proxy"},{default:E(()=>[w(fc,{modelValue:Xe.value,"onUpdate:modelValue":z[43]||(z[43]=Te=>Xe.value=Te),label:"Enable"},null,8,["modelValue"]),w(hn,{modelValue:Ce.input,"onUpdate:modelValue":z[44]||(z[44]=Te=>Ce.input=Te),placeholder:"http://127.0.0.1:9270",disabled:!Xe.value},null,8,["modelValue","disabled"])]),_:1},512),[[qe,u.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),$e(w(He,{label:""},{default:E(()=>[z[88]||(z[88]=U(" HuggingFace model files were incorrect or missing, please ")),w(St,{type:"primary",text:"",onClick:z[45]||(z[45]=Te=>oe(u.sentenceEmbeddingProvider.provider.model))},{default:E(()=>z[87]||(z[87]=[U(" click here to download model files from Huggingface.co ")])),_:1}),U(", or you can download manually and put them in ./data/model/"+Q(T.value),1)]),_:1},512),[[qe,b.value]]),$e(w(He,{label:""},{default:E(()=>[U(" Downloading: "+Q(k.value)+", "+Q(P.value)+"% ",1)]),_:1},512),[[qe,S.value]]),w(He,{label:"","label-width":ko},{default:E(()=>[w(St,{type:"primary",onClick:M},{default:E(()=>[U(Q(Ce.$t("lang.common.save")),1)]),_:1}),w(St,{onClick:z[46]||(z[46]=Te=>l())},{default:E(()=>[U(Q(Ce.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),w(fn,{span:6,offset:1},{default:E(()=>[z[89]||(z[89]=L("div",null,"This is used by intention similar sentences.",-1)),w(hc,{src:x(xX),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":Re,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),z[94]||(z[94]=L("h3",null,"Email settings",-1)),w(Lr,null,{default:E(()=>[w(fn,{span:11,offset:1},{default:E(()=>[w(An,{model:u},{default:E(()=>[w(He,{label:"Email SMTP","label-width":ko}),w(He,{label:"Host","label-width":ko},{default:E(()=>[w(hn,{modelValue:u.smtpHost,"onUpdate:modelValue":z[47]||(z[47]=Te=>u.smtpHost=Te),placeholder:""},null,8,["modelValue"])]),_:1}),w(He,{label:"Username","label-width":ko},{default:E(()=>[w(hn,{modelValue:u.smtpUsername,"onUpdate:modelValue":z[48]||(z[48]=Te=>u.smtpUsername=Te),placeholder:""},null,8,["modelValue"])]),_:1}),w(He,{label:"Password","label-width":ko},{default:E(()=>[w(hn,{modelValue:u.smtpPassword,"onUpdate:modelValue":z[49]||(z[49]=Te=>u.smtpPassword=Te),placeholder:"",type:"password"},null,8,["modelValue"])]),_:1}),w(He,{label:"Timeout","label-width":ko},{default:E(()=>[w(Ke,{modelValue:u.smtpTimeoutSec,"onUpdate:modelValue":z[50]||(z[50]=Te=>u.smtpTimeoutSec=Te),min:1,max:600,onChange:Ce.handleChange},null,8,["modelValue","onChange"]),z[90]||(z[90]=U(" Seconds "))]),_:1}),w(He,{label:"Email verification regex","label-width":"200px"},{default:E(()=>[w(hn,{modelValue:u.emailVerificationRegex,"onUpdate:modelValue":z[51]||(z[51]=Te=>u.emailVerificationRegex=Te),placeholder:Wx},null,8,["modelValue"])]),_:1}),w(He,{label:"","label-width":"200px"},{default:E(()=>z[91]||(z[91]=[U(" You can customize the email verification regular expression, or leave it blank and the system will automatically use the general verification rules. ")])),_:1}),w(He,{label:"","label-width":ko},{default:E(()=>[w(St,{loading:c.value,type:"info",onClick:K},{default:E(()=>z[92]||(z[92]=[U(" Test SMTP settings ")])),_:1},8,["loading"]),d.value?(_(),pe(Nf,{key:0,title:"SMTP test passed",type:"success"})):me("",!0),f.value?(_(),pe(Nf,{key:1,title:h.value,type:"error"},null,8,["title"])):me("",!0)]),_:1}),w(He,{label:"","label-width":ko},{default:E(()=>[w(St,{type:"primary",onClick:M},{default:E(()=>[U(Q(Ce.$t("lang.common.save")),1)]),_:1}),w(St,{onClick:z[52]||(z[52]=Te=>l())},{default:E(()=>[U(Q(Ce.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},TX="130px",OX={__name:"MainFlow",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir(),s=Ko(),i=r.params.robotId,l=ut({_idx:0,id:"",name:"",enabled:!0}),a=R(!1),u=R([]);st(async()=>{const C=await nt("GET","mainflow",{robotId:i},null,null);c(C)});const c=C=>{C&&C.status==200&&(u.value=C.data==null?[]:C.data)},d=(C,y)=>{s.push({name:"subflow",params:{robotId:i,id:y.id,name:w_(y.name)}})},f=()=>{l.id="",l.name="",l.enabled=!0,g()},h=(C,y)=>{l._idx=C,l.id=y.id,l.name=y.name,l.enabled=y.enabled,g()},p=async(C,y)=>{xo.confirm(e("lang.mainflow.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{l.id=y.id;const b=await nt("DELETE","mainflow",{robotId:i},null,l);u.value.splice(C,1),v(),ln({type:"success",message:b("lang.common.deleted")})}).catch(()=>{})};function g(){a.value=!0}function v(){a.value=!1}const m=async()=>{const C=l.id,y=await nt(C?"PUT":"POST","mainflow",{robotId:i},null,l);C?u.value[l._idx]={_idx:l._idx,id:l.id,name:l.name,enabled:l.enabled}:y.status==200&&u.value.push(y.data),v()};return(C,y)=>{const b=xn,S=Aa,T=_a,O=Cn,k=jn,P=zn,I=xi;return _(),G(Le,null,[L("h1",null,Q(C.$t("lang.mainflow.title")),1),w(b,{type:"primary",class:"ml-2",onClick:y[0]||(y[0]=M=>f())},{default:E(()=>[U(Q(C.$t("lang.mainflow.add")),1)]),_:1}),w(T,{data:u.value,stripe:"",style:{width:"100%"}},{default:E(()=>[w(S,{prop:"id",label:"Id",width:"240"}),w(S,{prop:"name",label:x(n)("lang.mainflow.table")[0],width:"500"},null,8,["label"]),w(S,{fixed:"right",label:x(n)("lang.mainflow.table")[2],"min-width":"40"},{default:E(M=>[w(b,{link:"",type:"primary",onClick:D=>d(M.$index,M.row)},{default:E(()=>[U(Q(C.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),y[5]||(y[5]=U(" | ")),w(b,{link:"",type:"primary",onClick:D=>h(M.$index,M.row)},{default:E(()=>[U(Q(C.$t("lang.common.edit"))+" name ",1)]),_:2},1032,["onClick"]),y[6]||(y[6]=U(" | ")),w(b,{link:"",type:"danger",onClick:D=>p(M.$index,M.row)},{default:E(()=>[U(Q(C.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),w(I,{modelValue:a.value,"onUpdate:modelValue":y[4]||(y[4]=M=>a.value=M),title:C.$t("lang.mainflow.form.title"),width:"60%"},{footer:E(()=>[w(b,{type:"primary",loading:C.loading,onClick:y[2]||(y[2]=M=>m())},{default:E(()=>[U(Q(C.$t("lang.common.save")),1)]),_:1},8,["loading"]),w(b,{onClick:y[3]||(y[3]=M=>v())},{default:E(()=>[U(Q(C.$t("lang.common.cancel")),1)]),_:1})]),default:E(()=>[w(P,{model:C.nodeData},{default:E(()=>[w(k,{label:C.$t("lang.mainflow.form.name"),"label-width":TX},{default:E(()=>[w(O,{modelValue:l.name,"onUpdate:modelValue":y[1]||(y[1]=M=>l.name=M),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}},kX={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function MX(t,e){return _(),G("svg",kX,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0a48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1)]))}const Si=xt({name:"ep-warning",render:MX}),Bo=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},_X={class:"nodeBox"},AX={class:"demo-drawer__footer"},nh="140px",PX={__name:"CollectNode",setup(t){const{t:e,tm:n,rt:o}=cn(),r=R(!1),s=ut({nodeName:e("lang.collectNode.nodeName"),collectTypeName:"",collectType:"",customizeRegex:"",collectSaveVarName:"",valid:!1,invalidMessages:[],branches:[],newNode:!0}),i=R(),l=Ve("getNode"),{robotId:a}=Ve("robotId");l().on("change:data",({current:C})=>{r.value=!0});const c=[{label:n("lang.collectNode.cTypes")[0],value:"UserInput"},{label:n("lang.collectNode.cTypes")[1],value:"Number"},{label:n("lang.collectNode.cTypes")[2],value:"CustomizeRegex"}],d=[];st(async()=>{const C=l(),y=C.getData();if(Dn(y,s),s.newNode){s.nodeName+=y.nodeCnt.toString();const S=i.value.offsetHeight+50,T=i.value.offsetWidth-15;C.addPort({group:"absolute",args:{x:T,y:S},attrs:{text:{text:n("lang.collectNode.branches")[0],fontSize:12}}}),C.addPort({group:"absolute",args:{x:T,y:S+20},attrs:{text:{text:n("lang.collectNode.branches")[1],fontSize:12}}}),s.newNode=!1}const b=await nt("GET","variable",{robotId:a},null,null);b&&b.status==200&&b.data&&(d.splice(0,d.length),b.data.forEach(function(S,T,O){this.push({label:S.varName,value:S.varName})},d)),h()});const f=n("lang.collectNode.errors");function h(){const C=s,y=C.invalidMessages;y.splice(0,y.length),C.nodeName||y.push(f[0]),C.collectType||y.push(f[1]),C.collectSaveVarName||y.push(f[2]),(C.branches==null||C.branches.length==0)&&y.push(f[3]),C.valid=y.length==0}function p(){r.value=!1}function g(){v();const C=l(),y=C.getPorts();s.branches.splice(0,s.branches.length);for(let b=0;b{const b=rt,S=go,T=Cn,O=jn,k=Bs,P=Vs,I=zn,M=xn,D=cr;return _(),G("div",_X,[L("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[U(Q(s.nodeName)+" ",1),$e(L("span",null,[w(S,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(b,{color:"red",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,s.invalidMessages.length>0]])],512),L("div",null,Q(x(e)("lang.collectNode.cTypeName"))+": "+Q(s.collectTypeName),1),L("div",null,Q(x(e)("lang.collectNode.varName"))+": "+Q(s.collectSaveVarName),1),w(D,{modelValue:r.value,"onUpdate:modelValue":y[6]||(y[6]=J=>r.value=J),title:s.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(I,{"label-position":C.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:E(()=>[w(O,{label:x(e)("lang.common.nodeName"),"label-width":nh},{default:E(()=>[w(T,{modelValue:s.nodeName,"onUpdate:modelValue":y[0]||(y[0]=J=>s.nodeName=J)},null,8,["modelValue"])]),_:1},8,["label"]),w(O,{label:x(m)[0],"label-width":nh},{default:E(()=>[w(P,{modelValue:s.collectType,"onUpdate:modelValue":y[1]||(y[1]=J=>s.collectType=J),placeholder:x(m)[1]},{default:E(()=>[(_(),G(Le,null,yt(c,J=>w(k,{key:J.label,label:J.label,value:J.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),$e(w(O,{label:x(m)[2],"label-width":nh},{default:E(()=>[w(T,{modelValue:s.customizeRegex,"onUpdate:modelValue":y[2]||(y[2]=J=>s.customizeRegex=J)},null,8,["modelValue"])]),_:1},8,["label"]),[[qe,s.collectType=="CustomizeRegex"]]),w(O,{label:x(m)[3],"label-width":nh},{default:E(()=>[w(P,{modelValue:s.collectSaveVarName,"onUpdate:modelValue":y[3]||(y[3]=J=>s.collectSaveVarName=J),placeholder:x(m)[4]},{default:E(()=>[(_(),G(Le,null,yt(d,J=>w(k,{key:J.label,label:J.label,value:J.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["label-position","model"]),L("div",AX,[w(M,{type:"primary",loading:C.loading,onClick:y[4]||(y[4]=J=>g())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),w(M,{onClick:y[5]||(y[5]=J=>p())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},NX=Bo(PX,[["__scopeId","data-v-e11d3d33"]]),IX={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function LX(t,e){return _(),G("svg",IX,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"},null,-1)]))}const Xc=xt({name:"ep-plus",render:LX}),RX={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function $X(t,e){return _(),G("svg",RX,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"},null,-1)]))}const DX=xt({name:"ep-minus",render:$X}),VX={class:"nodeBox"},BX={class:"dialog-footer"},xc="85px",FX=!1,zX={__name:"ConditionNode",setup(t){const{t:e,tm:n,rt:o}=cn(),r=new Map,s=Ve("getNode"),{robotId:i}=Ve("robotId"),l=R(!1),a=R(!1),u=ii().conditionGroup[0][0];u.conditionType="";const c=ii();c.branchName=e("lang.common.else"),c.branchType="GotoAnotherNode",c.editable=!1;const d=[[]],f=n("lang.conditionNode.types"),h=[{label:f[0],value:"UserIntent"},{label:"Zero-Shot Classification",value:"ZeroShotTextClassification"},{label:f[1],value:"UserInput"},{label:f[2],value:"FlowVariable"}],p={FlowVariable:[]},g=n("lang.conditionNode.compares"),v={UserIntent:[{label:g[0],value:"Eq",inputType:0,showCS:!1}],UserInput:[{label:g[0],value:"Eq",inputType:1,showCS:!0},{label:g[2],value:"Contains",inputType:1,showCS:!0},{label:g[3],value:"Timeout",inputType:0,showCS:!1}],FlowVariable:[{label:"Has value",value:"HasValue",inputType:0,showCS:!1,belongsTo:"StrNum"},{label:"Does not have value",value:"DoesNotHaveValue",inputType:0,showCS:!1,belongsTo:"StrNum"},{label:"Is empty string",value:"EmptyString",inputType:0,showCS:!1,belongsTo:"Str"},{label:g[0],value:"Eq",inputType:1,showCS:!0,belongsTo:"StrNum"},{label:g[1],value:"NotEq",inputType:1,showCS:!0,belongsTo:"StrNum"},{label:"Contains",value:"Contains",inputType:1,showCS:!0,belongsTo:"Str"},{label:"Not contains",value:"NotContains",inputType:1,showCS:!0,belongsTo:"Str"},{label:"Greater than",value:"NGT",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Greater than or equal to",value:"NGTE",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Less than",value:"NLT",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Less than or equal to",value:"NLTE",inputType:1,showCS:!1,belongsTo:"Num"}],ZeroShotTextClassification:[]},m={UserIntent:[]};let C=-1;const y=ut({nodeName:e("lang.conditionNode.nodeName"),branches:[c],valid:!1,invalidMessages:[],newNode:!0}),b=ii();b.conditionGroup=[];const S=ut(b),T=R();s().on("change:data",({current:fe})=>{l.value=!0}),d[0].push($i(u)),st(async()=>{let fe=await nt("GET","intent",{robotId:i},null,null);if(fe&&fe.status==200&&fe.data){const ee=m.UserIntent;ee.splice(0,ee.length),fe.data.forEach(function(ne,Z,ye){this.push({label:ne.name,value:ne.name})},ee)}if(fe=await nt("GET","variable",{robotId:i},null,null),fe&&fe.status==200&&fe.data){const ee=p.FlowVariable;ee.splice(0,ee.length),fe.data.forEach(function(ne,Z,ye){this.push({label:ne.varName,value:ne.varName,vtype:ne.varType})},ee)}const Oe=s().getData();Dn(Oe,y),y.newNode?y.nodeName+=Oe.nodeCnt.toString():y.branches.forEach(function(ee,ne){r.set(ee.branchId,ne)}),y.newNode=!1,I()});const O=n("lang.conditionNode.errors"),P=ut({branchName:[{validator:(fe,ve,Oe)=>{if(ve=="")Oe(new Error(O[0]));else{for(let ee=0;ee{y.branches.splice(fe,1),D()}).catch(()=>{})}function A(){l.value=!1}function K(){let fe=T.value.offsetHeight;const ve=s(),Oe=y.branches.length,ee=T.value.offsetWidth-15;let ne,Z;const ye=new Map;for(let ke=0;ke{ve.removePort(Xe,{silent:!1}),r.delete(Xe)});for(const[ke,Xe]of ye)r.set(ke,Xe);ve.resize(ve.size().width,20+fe,{direction:"bottom",silent:!1}),I(),ve.removeData({silent:!0}),ve.setData(y,{silent:!0}),A()}function j(fe,ve,Oe){const ee=S.conditionGroup[ve][Oe],ne=p[fe];ne?ee.refOptions=ne:ee.refOptions=[],ee.compareOptions=v[fe],ee.compareType="";const Z=m[fe];Z?ee.targetOptions=Z:ee.targetOptions=[]}function F(fe,ve,Oe,ee){const ne=S.conditionGroup[ve][Oe];if(ne.compareOptions[0].belongsTo){const Z=p.FlowVariable.filter(function(ye,ke,Xe){return ye.label===ee});Z.length==1&&(ne.compareType="",ne.compareOptions=v[fe].filter(function(ye,ke,Xe){return ye.belongsTo.indexOf(Z[0].vtype)>-1}))}}function le(fe,ve,Oe){S.conditionGroup[fe][ve].inputVariable=Oe.inputType==1,S.conditionGroup[fe][ve].showCaseSensitiveCheckBox=Oe.showCS}function ue(fe){const ve=$i(u);fe.push(ve)}function se(){S.conditionGroup.push(...$i(d))}function Ee(fe){S.conditionGroup.splice(fe,1)}return(fe,ve)=>{const Oe=rt,ee=go,ne=Cn,Z=jn,ye=Bs,ke=Vs,Xe=fi,$=xn,W=cy,re=bf,be=zn,he=xi,B=cr;return _(),G("div",VX,[L("div",{ref_key:"nodeName",ref:T,class:"nodeTitle"},[U(Q(y.nodeName)+" ",1),$e(L("span",null,[w(ee,{class:"box-item",effect:"dark",content:y.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(Oe,{color:"red",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,y.invalidMessages.length>0]])],512),w(he,{modelValue:a.value,"onUpdate:modelValue":ve[5]||(ve[5]=H=>a.value=H),title:x(e)("lang.conditionNode.newBranch"),width:"75%","append-to-body":!0,"destroy-on-close":!0},{footer:E(()=>[L("span",BX,[w($,{type:"primary",onClick:ve[2]||(ve[2]=H=>J())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1}),w($,{onClick:ve[3]||(ve[3]=H=>D())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1}),w($,{type:"danger",disabled:x(C)==-1,onClick:ve[4]||(ve[4]=H=>N(x(C)))},{default:E(()=>[U(Q(x(e)("lang.common.del")),1)]),_:1},8,["disabled"])])]),default:E(()=>[w(be,{model:S,rules:P},{default:E(()=>[w(Z,{label:x(e)("lang.conditionNode.condName"),"label-width":xc,prop:"branchName"},{default:E(()=>[w(ne,{modelValue:S.branchName,"onUpdate:modelValue":ve[0]||(ve[0]=H=>S.branchName=H),autocomplete:"off",minlength:"1",maxlength:"15"},null,8,["modelValue"])]),_:1},8,["label"]),(_(!0),G(Le,null,yt(S.conditionGroup,(H,te)=>(_(),pe(Z,{key:te,label:x(e)("lang.conditionNode.condType"),"label-width":xc},{default:E(()=>[(_(!0),G(Le,null,yt(H,(ie,we)=>(_(),G("div",{key:we},[w(ke,{modelValue:ie.conditionType,"onUpdate:modelValue":ge=>ie.conditionType=ge,placeholder:x(e)("lang.conditionNode.condTypePH"),onChange:ge=>j(ge,te,we),style:{width:"116px"}},{default:E(()=>[(_(),G(Le,null,yt(h,ge=>w(ye,{key:ge.label,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),$e(w(ke,{modelValue:ie.refChoice,"onUpdate:modelValue":ge=>ie.refChoice=ge,placeholder:x(e)("lang.conditionNode.comparedPH"),class:"optionWidth",onChange:ge=>F(ie.conditionType,te,we,ge)},{default:E(()=>[(_(!0),G(Le,null,yt(ie.refOptions,ge=>(_(),pe(ye,{key:ge.label,label:ge.label,value:ge.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),[[qe,ie.refOptions.length>0]]),$e(w(ke,{modelValue:ie.compareType,"onUpdate:modelValue":ge=>ie.compareType=ge,placeholder:x(e)("lang.conditionNode.compareTypePH"),class:"optionWidth"},{default:E(()=>[(_(!0),G(Le,null,yt(ie.compareOptions,ge=>(_(),pe(ye,{key:ge.label,label:ge.label,value:ge.value,onClick:q=>le(te,we,ge)},null,8,["label","value","onClick"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[qe,ie.compareOptions.length>0]]),$e(w(ke,{modelValue:ie.targetValue,"onUpdate:modelValue":ge=>ie.targetValue=ge,placeholder:x(e)("lang.conditionNode.targetPH"),class:"optionWidth"},{default:E(()=>[(_(!0),G(Le,null,yt(ie.targetOptions,ge=>(_(),pe(ye,{key:ge.label,label:ge.label,value:ge.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[qe,ie.targetOptions.length>0]]),$e(w(ke,{modelValue:ie.targetValueVariant,"onUpdate:modelValue":ge=>ie.targetValueVariant=ge,class:"optionWidth"},{default:E(()=>[w(ye,{label:"const value",value:"Const"}),w(ye,{label:"variable value",value:"Variable"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[qe,ie.inputVariable]]),$e(w(ke,{modelValue:ie.targetValue,"onUpdate:modelValue":ge=>ie.targetValue=ge,placeholder:"Please choose a variable",class:"optionWidth"},{default:E(()=>[(_(!0),G(Le,null,yt(p.FlowVariable,ge=>(_(),pe(ye,{key:ge.label,label:ge.label,value:ge.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[qe,ie.inputVariable&&ie.targetValueVariant=="Variable"]]),$e(w(ne,{modelValue:ie.targetValue,"onUpdate:modelValue":ge=>ie.targetValue=ge,class:"optionWidth"},null,8,["modelValue","onUpdate:modelValue"]),[[qe,ie.inputVariable&&ie.targetValueVariant=="Const"]]),$e(w(Xe,{modelValue:ie.caseSensitiveComparison,"onUpdate:modelValue":ge=>ie.caseSensitiveComparison=ge,label:"CaseSensitive"},null,8,["modelValue","onUpdate:modelValue"]),[[qe,ie.showCaseSensitiveCheckBox]]),w(W,null,{default:E(()=>[w($,{type:"primary",onClick:ge=>ue(H)},{default:E(()=>[w(Oe,null,{default:E(()=>[w(x(Xc))]),_:1})]),_:2},1032,["onClick"]),$e(w($,{type:"danger",onClick:ge=>{H.splice(we,1)}},{default:E(()=>[w(Oe,null,{default:E(()=>[w(x(DX))]),_:1})]),_:2},1032,["onClick"]),[[qe,H.length>1]])]),_:2},1024),w(re,{"border-style":"dashed"})]))),128)),w(re),$e(w($,{type:"danger",onClick:ie=>Ee(te)},{default:E(()=>ve[11]||(ve[11]=[U(" X ")])),_:2},1032,["onClick"]),[[qe,S.conditionGroup.length>1]])]),_:2},1032,["label"]))),128)),w(Z,{label:"","label-width":xc},{default:E(()=>[w($,{type:"primary",onClick:ve[1]||(ve[1]=H=>se())},{default:E(()=>[w(Oe,null,{default:E(()=>[w(x(Xc))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"]),w(B,{modelValue:l.value,"onUpdate:modelValue":ve[10]||(ve[10]=H=>l.value=H),title:y.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(be,{model:y},{default:E(()=>[w(Z,{label:x(e)("lang.common.nodeName"),"label-width":xc},{default:E(()=>[w(ne,{modelValue:y.nodeName,"onUpdate:modelValue":ve[6]||(ve[6]=H=>y.nodeName=H),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),w(Z,{label:x(e)("lang.conditionNode.newCond"),"label-width":xc},{default:E(()=>[w($,{type:"primary",onClick:ve[7]||(ve[7]=H=>M())},{default:E(()=>[w(Oe,null,{default:E(()=>[w(x(Xc))]),_:1})]),_:1}),(_(!0),G(Le,null,yt(y.branches,(H,te)=>(_(),pe($,{key:te,type:"primary",onClick:ie=>oe(te),disabled:!H.editable},{default:E(()=>[U(Q(H.branchName),1)]),_:2},1032,["onClick","disabled"]))),128))]),_:1},8,["label"])]),_:1},8,["model"]),L("div",null,[w($,{type:"primary",loading:FX,onClick:ve[8]||(ve[8]=H=>K())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1}),w($,{onClick:ve[9]||(ve[9]=H=>A())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},jX=Bo(zX,[["__scopeId","data-v-872789fa"]]),HX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function UX(t,e){return _(),G("svg",HX,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M8 11h4.5a2.5 2.5 0 0 0 0-5H8zm10 4.5a4.5 4.5 0 0 1-4.5 4.5H6V4h6.5a4.5 4.5 0 0 1 3.256 7.606A4.498 4.498 0 0 1 18 15.5M8 13v5h5.5a2.5 2.5 0 0 0 0-5z"},null,-1)]))}const WX=xt({name:"ri-bold",render:UX}),qX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function GX(t,e){return _(),G("svg",qX,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)]))}const KX=xt({name:"ri-italic",render:GX}),JX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function YX(t,e){return _(),G("svg",JX,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M17.154 14c.23.516.346 1.09.346 1.72c0 1.342-.524 2.392-1.571 3.147C14.88 19.622 13.434 20 11.586 20c-1.64 0-3.263-.381-4.87-1.145v-2.254c1.52.877 3.075 1.316 4.666 1.316c2.551 0 3.83-.732 3.839-2.197a2.21 2.21 0 0 0-.648-1.603l-.12-.117H3v-2h18v2zm-4.078-3H7.629a4.086 4.086 0 0 1-.481-.522C6.716 9.92 6.5 9.246 6.5 8.452c0-1.236.466-2.287 1.397-3.153C8.83 4.433 10.271 4 12.222 4c1.471 0 2.879.328 4.222.984v2.152c-1.2-.687-2.515-1.03-3.946-1.03c-2.48 0-3.719.782-3.719 2.346c0 .42.218.786.654 1.099c.436.313.974.563 1.613.75c.62.18 1.297.414 2.03.699"},null,-1)]))}const XX=xt({name:"ri-strikethrough",render:YX}),ZX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function QX(t,e){return _(),G("svg",ZX,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M8 3v9a4 4 0 0 0 8 0V3h2v9a6 6 0 0 1-12 0V3zM4 20h16v2H4z"},null,-1)]))}const eZ=xt({name:"ri-underline",render:QX}),tZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function nZ(t,e){return _(),G("svg",tZ,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M15.246 14H8.754l-1.6 4H5l6-15h2l6 15h-2.154zm-.8-2L12 5.885L9.554 12zM3 20h18v2H3z"},null,-1)]))}const oZ=xt({name:"ri-font-color",render:nZ}),rZ={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"};function sZ(t,e){return _(),G("svg",rZ,e[0]||(e[0]=[L("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11.096.644a2 2 0 0 1 2.791.036l1.433 1.433a2 2 0 0 1 .035 2.791l-.413.435l-8.07 8.995a.5.5 0 0 1-.372.166h-3a.5.5 0 0 1-.234-.058l-.412.412A.5.5 0 0 1 2.5 15h-2a.5.5 0 0 1-.354-.854l1.412-1.412A.5.5 0 0 1 1.5 12.5v-3a.5.5 0 0 1 .166-.372l8.995-8.07zm-.115 1.47L2.727 9.52l3.753 3.753l7.406-8.254zm3.585 2.17l.064-.068a1 1 0 0 0-.017-1.396L13.18 1.387a1 1 0 0 0-1.396-.018l-.068.065zM5.293 13.5L2.5 10.707v1.586L3.707 13.5z"},null,-1)]))}const iZ=xt({name:"bi-highlighter",render:sZ}),lZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function aZ(t,e){return _(),G("svg",lZ,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M17 11V4h2v17h-2v-8H7v8H5V4h2v7z"},null,-1)]))}const uZ=xt({name:"ri-heading",render:aZ}),cZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function dZ(t,e){return _(),G("svg",cZ,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M8 4h13v2H8zM4.5 6.5a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 7a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 6.9a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3M8 11h13v2H8zm0 7h13v2H8z"},null,-1)]))}const fZ=xt({name:"ri-list-unordered",render:dZ}),hZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function pZ(t,e){return _(),G("svg",hZ,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M8 4h13v2H8zM5 3v3h1v1H3V6h1V4H3V3zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2zM8 11h13v2H8zm0 7h13v2H8z"},null,-1)]))}const gZ=xt({name:"ri-list-ordered",render:pZ}),mZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function vZ(t,e){return _(),G("svg",mZ,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M21 3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455L2 22.5V4a1 1 0 0 1 1-1zm-1 2H4v13.385L5.763 17H20zm-9.485 2.412l.447.688c-1.668.903-1.639 2.352-1.639 2.665c.155-.022.318-.025.48-.01a1.76 1.76 0 0 1 1.613 1.745a1.75 1.75 0 0 1-1.75 1.75c-.537 0-1.05-.245-1.374-.59c-.515-.546-.792-1.16-.792-2.155c0-1.75 1.228-3.318 3.015-4.093m5 0l.447.688c-1.668.903-1.639 2.352-1.639 2.665c.155-.022.318-.025.48-.01a1.76 1.76 0 0 1 1.613 1.745a1.75 1.75 0 0 1-1.75 1.75c-.537 0-1.05-.245-1.374-.59c-.515-.546-.792-1.16-.792-2.155c0-1.75 1.228-3.318 3.015-4.093"},null,-1)]))}const bZ=xt({name:"ri-chat-quote-line",render:vZ}),yZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function wZ(t,e){return _(),G("svg",yZ,e[0]||(e[0]=[L("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4 11h16v2H4z"},null,-1)]))}const CZ=xt({name:"ic-baseline-horizontal-rule",render:wZ}),xZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function SZ(t,e){return _(),G("svg",xZ,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"},null,-1)]))}const EZ=xt({name:"ic-baseline-undo",render:SZ}),TZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function OZ(t,e){return _(),G("svg",TZ,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7z"},null,-1)]))}const kZ=xt({name:"ic-baseline-redo",render:OZ});function oo(t){this.content=t}oo.prototype={constructor:oo,find:function(t){for(var e=0;e>1}};oo.from=function(t){if(t instanceof oo)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new oo(e)};function x_(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(o),s=e.child(o);if(r==s){n+=r.nodeSize;continue}if(!r.sameMarkup(s))return n;if(r.isText&&r.text!=s.text){for(let i=0;r.text[i]==s.text[i];i++)n++;return n}if(r.content.size||s.content.size){let i=x_(r.content,s.content,n+1);if(i!=null)return i}n+=r.nodeSize}}function S_(t,e,n,o){for(let r=t.childCount,s=e.childCount;;){if(r==0||s==0)return r==s?null:{a:n,b:o};let i=t.child(--r),l=e.child(--s),a=i.nodeSize;if(i==l){n-=a,o-=a;continue}if(!i.sameMarkup(l))return{a:n,b:o};if(i.isText&&i.text!=l.text){let u=0,c=Math.min(i.text.length,l.text.length);for(;ue&&o(a,r+l,s||null,i)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,e-c),Math.min(a.content.size,n-c),o,r+c)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let s="",i=!0;return this.nodesBetween(e,n,(l,a)=>{let u=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?r?typeof r=="function"?r(l):r:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&o&&(i?i=!1:s+=o),s+=u},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),s=1);se)for(let s=0,i=0;ie&&((in)&&(l.isText?l=l.cut(Math.max(0,e-i),Math.min(l.text.length,n-i)):l=l.cut(Math.max(0,e-i-1),Math.min(l.content.size,n-i-1))),o.push(l),r+=l.nodeSize),i=a}return new Ie(o,r)}cutByIndex(e,n){return e==n?Ie.empty:e==0&&n==this.content.length?this:new Ie(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let r=this.content.slice(),s=this.size+n.nodeSize-o.nodeSize;return r[e]=n,new Ie(r,s)}addToStart(e){return new Ie([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ie(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,r=0;;o++){let s=this.child(o),i=r+s.nodeSize;if(i>=e)return i==e||n>0?oh(o+1,i):oh(o,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Ie.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ie(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ie.empty;let n,o=0;for(let r=0;rthis.type.rank&&(n||(n=e.slice(0,r)),n.push(this),o=!0),n&&n.push(s)}}return n||(n=e.slice()),o||n.push(this),n}removeFromSet(e){for(let n=0;no.type.rank-r.type.rank),n}};Xt.none=[];class ip extends Error{}class Je{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=T_(this.content,e+this.openStart,n);return o&&new Je(o,this.openStart,this.openEnd)}removeBetween(e,n){return new Je(E_(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Je.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Je(Ie.fromJSON(e,n.content),o,r)}static maxOpen(e,n=!0){let o=0,r=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)o++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)r++;return new Je(e,o,r)}}Je.empty=new Je(Ie.empty,0,0);function E_(t,e,n){let{index:o,offset:r}=t.findIndex(e),s=t.maybeChild(o),{index:i,offset:l}=t.findIndex(n);if(r==e||s.isText){if(l!=n&&!t.child(i).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=i)throw new RangeError("Removing non-flat range");return t.replaceChild(o,s.copy(E_(s.content,e-r-1,n-r-1)))}function T_(t,e,n,o){let{index:r,offset:s}=t.findIndex(e),i=t.maybeChild(r);if(s==e||i.isText)return t.cut(0,e).append(n).append(t.cut(e));let l=T_(i.content,e-s-1,n);return l&&t.replaceChild(r,i.copy(l))}function MZ(t,e,n){if(n.openStart>t.depth)throw new ip("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ip("Inconsistent open depths");return O_(t,e,n,0)}function O_(t,e,n,o){let r=t.index(o),s=t.node(o);if(r==e.index(o)&&o=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Zc(t,e,n,o){let r=(e||t).node(n),s=0,i=e?e.index(n):r.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(oa(t.nodeAfter,o),s++));for(let l=s;lr&&yb(t,e,r+1),i=o.depth>r&&yb(n,o,r+1),l=[];return Zc(null,t,r,l),s&&i&&e.index(r)==n.index(r)?(k_(s,i),oa(ra(s,M_(t,e,n,o,r+1)),l)):(s&&oa(ra(s,lp(t,e,r+1)),l),Zc(e,n,r,l),i&&oa(ra(i,lp(n,o,r+1)),l)),Zc(o,null,r,l),new Ie(l)}function lp(t,e,n){let o=[];if(Zc(null,t,n,o),t.depth>n){let r=yb(t,e,n+1);oa(ra(r,lp(t,e,n+1)),o)}return Zc(e,null,n,o),new Ie(o)}function _Z(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)r=e.node(s).copy(Ie.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class Id{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],r=e.child(n);return o?e.child(n).cut(o):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new ap(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,s=n;for(let i=e;;){let{index:l,offset:a}=i.content.findIndex(s),u=s-a;if(o.push(i,l,r+a),!u||(i=i.child(l),i.isText))break;s=u-1,r+=a+1}return new Id(n,o,s)}static resolveCached(e,n){let o=qx.get(e);if(o)for(let s=0;se&&this.nodesBetween(e,n,s=>(o.isInSet(s.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),__(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,o=Ie.empty,r=0,s=o.childCount){let i=this.contentMatchAt(e).matchFragment(o,r,s),l=i&&i.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=r;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,o)}let r=Ie.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,r,o);return s.type.checkAttrs(s.attrs),s}};sa.prototype.text=void 0;class up extends sa{constructor(e,n,o,r){if(super(e,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):__(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new up(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new up(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function __(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class ga{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new IZ(e,n);if(o.next==null)return ga.empty;let r=A_(o);o.next&&o.err("Unexpected trailing text");let s=FZ(BZ(r));return zZ(s,o),s}matchType(e){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(o){e.push(o);for(let r=0;r{let s=r+(o.validEnd?"*":" ")+" ";for(let i=0;i"+e.indexOf(o.next[i].next);return s}).join(` +`)}}ga.empty=new ga(!0);class IZ{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function A_(t){let e=[];do e.push(LZ(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function LZ(t){let e=[];do e.push(RZ(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function RZ(t){let e=VZ(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=$Z(t,e);else break;return e}function Gx(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function $Z(t,e){let n=Gx(t),o=n;return t.eat(",")&&(t.next!="}"?o=Gx(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function DZ(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let s in n){let i=n[s];i.isInGroup(e)&&r.push(i)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function VZ(t){if(t.eat("(")){let e=A_(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=DZ(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function BZ(t){let e=[[]];return r(s(t,0),n()),e;function n(){return e.push([])-1}function o(i,l,a){let u={term:a,to:l};return e[i].push(u),u}function r(i,l){i.forEach(a=>a.to=l)}function s(i,l){if(i.type=="choice")return i.exprs.reduce((a,u)=>a.concat(s(u,l)),[]);if(i.type=="seq")for(let a=0;;a++){let u=s(i.exprs[a],l);if(a==i.exprs.length-1)return u;r(u,l=n())}else if(i.type=="star"){let a=n();return o(l,a),r(s(i.expr,a),a),[o(a)]}else if(i.type=="plus"){let a=n();return r(s(i.expr,l),a),r(s(i.expr,a),a),[o(a)]}else{if(i.type=="opt")return[o(l)].concat(s(i.expr,l));if(i.type=="range"){let a=l;for(let u=0;u{t[i].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c{u||r.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=e[o.join(",")]=new ga(o.indexOf(t.length-1)>-1);for(let i=0;i-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:I_(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new sa(this,this.computeAttrs(e),Ie.from(n),Xt.setFrom(o))}createChecked(e=null,n,o){return n=Ie.from(n),this.checkContent(n),new sa(this,this.computeAttrs(e),n,Xt.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=Ie.from(n),n.size){let i=this.contentMatch.fillBefore(n);if(!i)return null;n=i.append(n)}let r=this.contentMatch.matchFragment(n),s=r&&r.fillBefore(Ie.empty,!0);return s?new sa(this,e,n.append(s),Xt.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;no[s]=new $_(s,n,i));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let s in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function jZ(t,e,n){let o=n.split("|");return r=>{let s=r===null?"null":typeof r;if(o.indexOf(s)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${s}`)}}class HZ{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?jZ(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class Ag{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=R_(e,r.attrs),this.excluded=null;let s=N_(this.attrs);this.instance=s?new Xt(this,s):null}create(e=null){return!e&&this.instance?this.instance:new Xt(this,I_(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((s,i)=>o[s]=new Ag(s,r++,n,i)),o}removeFromSet(e){for(var n=0;n-1}}class D_{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=oo.from(e.nodes),n.marks=oo.from(e.marks||{}),this.nodes=Jx.compile(this.spec.nodes,this),this.marks=Ag.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let s=this.nodes[r],i=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=o[i]||(o[i]=ga.parse(i,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?Yx(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let r in this.marks){let s=this.marks[r],i=s.spec.excludes;s.excluded=i==null?[s]:i==""?[]:Yx(this,i.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Jx){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,o,r)}text(e,n){let o=this.nodes.text;return new up(o,o.defaultAttrs,e,Xt.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return sa.fromJSON(this,e)}markFromJSON(e){return Xt.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Yx(t,e){let n=[];for(let o=0;o-1)&&n.push(i=a)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function UZ(t){return t.tag!=null}function WZ(t){return t.style!=null}let Qc=class Cb{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(UZ(r))this.tags.push(r);else if(WZ(r)){let s=/[^=]*/.exec(r.style)[0];o.indexOf(s)<0&&o.push(s),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let s=e.nodes[r.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let o=new Zx(this,n,!1);return o.addAll(e,Xt.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new Zx(this,n,!0);return o.addAll(e,Xt.none,n.from,n.to),Je.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;re.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(i.getAttrs){let a=i.getAttrs(n);if(a===!1)continue;i.attrs=a||void 0}return i}}}static schemaRules(e){let n=[];function o(r){let s=r.priority==null?50:r.priority,i=0;for(;i{o(i=Qx(i)),i.mark||i.ignore||i.clearMark||(i.mark=r)})}for(let r in e.nodes){let s=e.nodes[r].spec.parseDOM;s&&s.forEach(i=>{o(i=Qx(i)),i.node||i.ignore||i.mark||(i.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Cb(e,Cb.schemaRules(e)))}};const V_={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},qZ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},B_={ol:!0,ul:!0},cp=1,dp=2,ed=4;function Xx(t,e,n){return e!=null?(e?cp:0)|(e==="full"?dp:0):t&&t.whitespace=="pre"?cp|dp:n&~ed}class rh{constructor(e,n,o,r,s,i){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=i,this.content=[],this.activeMarks=Xt.none,this.match=s||(i&ed?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ie.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&cp)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let s=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-r[0].length))}}let n=Ie.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Ie.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!V_.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Zx{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,s,i=Xx(null,n.preserveWhitespace,0)|(o?ed:0);r?s=new rh(r.type,r.attrs,Xt.none,!0,n.topMatch||r.type.contentMatch,i):o?s=new rh(null,null,Xt.none,!0,null,i):s=new rh(e.schema.topNodeType,null,Xt.none,!0,null,i),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let o=e.nodeValue,r=this.top;if(r.options&dp||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(r.options&cp)r.options&dp?o=o.replace(/\r\n?/g,` +`):o=o.replace(/\r?\n|\r/g," ");else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let s=r.content[r.content.length-1],i=e.previousSibling;(!s||i&&i.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=e.nodeName.toLowerCase(),s;B_.hasOwnProperty(r)&&this.parser.normalizeLists&&GZ(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,o));if(i?i.ignore:qZ.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e,n);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let l,a=this.top,u=this.needsBlock;if(V_.hasOwnProperty(r))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),l=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let c=i&&i.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),l&&this.sync(a),this.needsBlock=u}else{let l=this.readStyles(e,n);l&&this.addElementByRule(e,i,l,i.consuming===!1?s:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let r=0;r!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(e,n,o,r){let s,i;if(n.node)if(i=this.parser.schema.nodes[n.node],i.isLeaf)this.insertNode(i.create(n.attrs),o)||this.leafFallback(e,o);else{let a=this.enter(i,n.attrs||null,o,n.preserveWhitespace);a&&(s=!0,o=a)}else{let a=this.parser.schema.marks[n.mark];o=o.concat(a.create(n.attrs))}let l=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,o));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,o),this.findAround(e,a,!1)}s&&this.sync(l)&&this.open--}addAll(e,n,o,r){let s=o||0;for(let i=o?e.childNodes[o]:e.firstChild,l=r==null?null:e.childNodes[r];i!=l;i=i.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(i,n);this.findAtPoint(e,s)}findPlace(e,n){let o,r;for(let s=this.open;s>=0;s--){let i=this.nodes[s],l=i.findWrapping(e);if(l&&(!o||o.length>l.length)&&(o=l,r=i,!l.length)||i.solid)break}if(!o)return null;this.sync(r);for(let s=0;s(i.type?i.type.allowsMarkType(u.type):eS(u.type,e))?(a=u.addToSet(a),!1):!0),this.nodes.push(new rh(e,n,a,r,null,l)),this.open++,o}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),s=-(o?o.depth+1:0)+(r?0:1),i=(l,a)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(i(l-1,a))return!0;return!1}else{let c=a>0||a==0&&r?this.nodes[a].type:o&&a>=s?o.node(a-s).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;a--}}return!0};return i(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let n in this.parser.schema.nodes){let o=this.parser.schema.nodes[n];if(o.isTextblock&&o.defaultAttrs)return o}}}function GZ(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&B_.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function KZ(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Qx(t){let e={};for(let n in t)e[n]=t[n];return e}function eS(t,e){let n=e.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(t))continue;let s=[],i=l=>{s.push(l);for(let a=0;a{if(s.length||i.marks.length){let l=0,a=0;for(;l=0;r--){let s=this.serializeMark(e.marks[r],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(o),o=s.dom)}return o}serializeMark(e,n,o={}){let r=this.marks[e.type.name];return r&&Ih(Rm(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return Ih(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Pa(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=tS(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return tS(e.marks)}}function tS(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Rm(t){return t.document||window.document}const nS=new WeakMap;function JZ(t){let e=nS.get(t);return e===void 0&&nS.set(t,e=YZ(t)),e}function YZ(t){let e=null;function n(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let r=0;r-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let l,a=n?t.createElementNS(n,r):t.createElement(r),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),u[d]):a.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:h,contentDOM:p}=Ih(t,f,n,o);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const F_=65535,z_=Math.pow(2,16);function XZ(t,e){return t+e*z_}function oS(t){return t&F_}function ZZ(t){return(t-(t&F_))/z_}const j_=1,H_=2,Lh=4,U_=8;class xb{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&U_)>0}get deletedBefore(){return(this.delInfo&(j_|Lh))>0}get deletedAfter(){return(this.delInfo&(H_|Lh))>0}get deletedAcross(){return(this.delInfo&Lh)>0}}class Zo{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Zo.empty)return Zo.empty}recover(e){let n=0,o=oS(e);if(!this.inverted)for(let r=0;re)break;let u=this.ranges[l+s],c=this.ranges[l+i],d=a+u;if(e<=d){let f=u?e==a?-1:e==d?1:n:n,h=a+r+(f<0?0:c);if(o)return h;let p=e==(n<0?a:d)?null:XZ(l/3,e-a),g=e==a?H_:e==d?j_:Lh;return(n<0?e!=a:e!=d)&&(g|=U_),new xb(h,g,p)}r+=c-u}return o?e+r:new xb(e+r,0,null)}touches(e,n){let o=0,r=oS(n),s=this.inverted?2:1,i=this.inverted?1:2;for(let l=0;le)break;let u=this.ranges[l+s],c=a+u;if(e<=c&&l==r*3)return!0;o+=this.ranges[l+i]-u}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,s=0;r=0;n--){let r=e.getMirror(n);this.appendMap(e.maps[n].invert(),r!=null&&r>n?o-r-1:void 0)}}invert(){let e=new ru;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let o=this.from;os&&a!i.isAtom||!l.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),r),n.openStart,n.openEnd);return Nn.fromReplace(e,this.from,this.to,s)}invert(){return new Es(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new Xi(n.pos,o.pos,this.mark)}merge(e){return e instanceof Xi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Xi(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Xi(n.from,n.to,e.markFromJSON(n.mark))}}Oo.jsonID("addMark",Xi);class Es extends Oo{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new Je(wy(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return Nn.fromReplace(e,this.from,this.to,o)}invert(){return new Xi(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new Es(n.pos,o.pos,this.mark)}merge(e){return e instanceof Es&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Es(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Es(n.from,n.to,e.markFromJSON(n.mark))}}Oo.jsonID("removeMark",Es);class Zi extends Oo{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Nn.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Nn.fromReplace(e,this.pos,this.pos+1,new Je(Ie.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let o=this.mark.addToSet(n.marks);if(o.length==n.marks.length){for(let r=0;ro.pos?null:new Jn(n.pos,o.pos,r,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Jn(n.from,n.to,n.gapFrom,n.gapTo,Je.fromJSON(e,n.slice),n.insert,!!n.structure)}}Oo.jsonID("replaceAround",Jn);function Sb(t,e,n){let o=t.resolve(e),r=n-e,s=o.depth;for(;r>0&&s>0&&o.indexAfter(s)==o.node(s).childCount;)s--,r--;if(r>0){let i=o.node(s).maybeChild(o.indexAfter(s));for(;r>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,r--}}return!1}function QZ(t,e,n,o){let r=[],s=[],i,l;t.doc.nodesBetween(e,n,(a,u,c)=>{if(!a.isInline)return;let d=a.marks;if(!o.isInSet(d)&&c.type.allowsMarkType(o.type)){let f=Math.max(u,e),h=Math.min(u+a.nodeSize,n),p=o.addToSet(d);for(let g=0;gt.step(a)),s.forEach(a=>t.step(a))}function eQ(t,e,n,o){let r=[],s=0;t.doc.nodesBetween(e,n,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(o instanceof Ag){let u=i.marks,c;for(;c=o.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u)}else o?o.isInSet(i.marks)&&(a=[o]):a=i.marks;if(a&&a.length){let u=Math.min(l+i.nodeSize,n);for(let c=0;ct.step(new Es(i.from,i.to,i.style)))}function Cy(t,e,n,o=n.contentMatch,r=!0){let s=t.doc.nodeAt(e),i=[],l=e+1;for(let a=0;a=0;a--)t.step(i[a])}function tQ(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function lc(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth;;--o){let r=t.$from.node(o),s=t.$from.index(o),i=t.$to.indexAfter(o);if(on;p--)g||o.index(p)>0?(g=!0,c=Ie.from(o.node(p).copy(c)),d++):a--;let f=Ie.empty,h=0;for(let p=s,g=!1;p>n;p--)g||r.after(p+1)=0;i--){if(o.size){let l=n[i].type.contentMatch.matchFragment(o);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=Ie.from(n[i].type.create(n[i].attrs,o))}let r=e.start,s=e.end;t.step(new Jn(r,s,r,s,new Je(o,0,0),n.length,!0))}function iQ(t,e,n,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(i,l)=>{let a=typeof r=="function"?r(i):r;if(i.isTextblock&&!i.hasMarkup(o,a)&&lQ(t.doc,t.mapping.slice(s).map(l),o)){let u=null;if(o.schema.linebreakReplacement){let h=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);h&&!p?u=!1:!h&&p&&(u=!0)}u===!1&&q_(t,i,l,s),Cy(t,t.mapping.slice(s).map(l,1),o,void 0,u===null);let c=t.mapping.slice(s),d=c.map(l,1),f=c.map(l+i.nodeSize,1);return t.step(new Jn(d,f,d+1,f-1,new Je(Ie.from(o.create(a,null,i.marks)),0,0),1,!0)),u===!0&&W_(t,i,l,s),!1}})}function W_(t,e,n,o){e.forEach((r,s)=>{if(r.isText){let i,l=/\r?\n|\r/g;for(;i=l.exec(r.text);){let a=t.mapping.slice(o).map(n+1+s+i.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function q_(t,e,n,o){e.forEach((r,s)=>{if(r.type==r.type.schema.linebreakReplacement){let i=t.mapping.slice(o).map(n+1+s);t.replaceWith(i,i+1,e.type.schema.text(` +`))}})}function lQ(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function aQ(t,e,n,o,r){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let i=n.create(o,null,r||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,i);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Jn(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new Je(Ie.from(i),0,0),1,!0))}function su(t,e,n=1,o){let r=t.resolve(e),s=r.depth-n,i=o&&o[o.length-1]||r.parent;if(s<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!i.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let u=r.depth-1,c=n-2;u>s;u--,c--){let d=r.node(u),f=r.index(u);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),p=o&&o[c+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let g=o&&o[c]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(h))return!1}let l=r.indexAfter(s),a=o&&o[0];return r.node(s).canReplaceWith(l,l,a?a.type:r.node(s+1).type)}function uQ(t,e,n=1,o){let r=t.doc.resolve(e),s=Ie.empty,i=Ie.empty;for(let l=r.depth,a=r.depth-n,u=n-1;l>a;l--,u--){s=Ie.from(r.node(l).copy(s));let c=o&&o[u];i=Ie.from(c?c.type.create(c.attrs,i):r.node(l).copy(i))}t.step(new Hn(e,e,new Je(s.append(i),n,n),!0))}function El(t,e){let n=t.resolve(e),o=n.index();return G_(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function cQ(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:o}=t.type.schema;for(let r=0;r0?(s=o.node(r+1),l++,i=o.node(r).maybeChild(l)):(s=o.node(r).maybeChild(l-1),i=o.node(r+1)),s&&!s.isTextblock&&G_(s,i)&&o.node(r).canReplace(l,l+1))return e;if(r==0)break;e=n<0?o.before(r):o.after(r)}}function dQ(t,e,n){let o=null,{linebreakReplacement:r}=t.doc.type.schema,s=t.doc.resolve(e-n),i=s.node().type;if(r&&i.inlineContent){let c=i.whitespace=="pre",d=!!i.contentMatch.matchType(r);c&&!d?o=!1:!c&&d&&(o=!0)}let l=t.steps.length;if(o===!1){let c=t.doc.resolve(e+n);q_(t,c.node(),c.before(),l)}i.inlineContent&&Cy(t,e+n-1,i,s.node().contentMatchAt(s.index()),o==null);let a=t.mapping.slice(l),u=a.map(e-n);if(t.step(new Hn(u,a.map(e+n,-1),Je.empty,!0)),o===!0){let c=t.doc.resolve(u);W_(t,c.node(),c.before(),t.steps.length)}return t}function fQ(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let s=o.index(r);if(o.node(r).canReplaceWith(s,s,n))return o.before(r+1);if(s>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let s=o.indexAfter(r);if(o.node(r).canReplaceWith(s,s,n))return o.after(r+1);if(s=0;i--){let l=i==o.depth?0:o.pos<=(o.start(i+1)+o.end(i+1))/2?-1:1,a=o.index(i)+(l>0?1:0),u=o.node(i),c=!1;if(s==1)c=u.canReplace(a,a,r);else{let d=u.contentMatchAt(a).findWrapping(r.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?o.pos:l<0?o.before(i+1):o.after(i+1)}return null}function Ng(t,e,n=e,o=Je.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),s=t.resolve(n);return J_(r,s,o)?new Hn(e,n,o):new hQ(r,s,o).fit()}function J_(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class hQ{constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=Ie.empty;for(let r=0;r<=e.depth;r++){let s=e.node(r);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Ie.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let s=this.placed,i=o.depth,l=r.depth;for(;i&&l&&s.childCount==1;)s=s.firstChild.content,i--,l--;let a=new Je(s,i,l);return e>-1?new Jn(o.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||o.pos!=this.$to.pos?new Hn(o.pos,r.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,r=this.unplaced.openEnd;o1&&(r=0),s.type.spec.isolating&&r<=o){e=o;break}n=s.content}for(let n=1;n<=2;n++)for(let o=n==1?e:this.unplaced.openStart;o>=0;o--){let r,s=null;o?(s=Dm(this.unplaced.content,o-1).firstChild,r=s.content):r=this.unplaced.content;let i=r.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,d=null;if(n==1&&(i?u.matchType(i.type)||(d=u.fillBefore(Ie.from(i),!1)):s&&a.compatibleContent(s.type)))return{sliceDepth:o,frontierDepth:l,parent:s,inject:d};if(n==2&&i&&(c=u.findWrapping(i.type)))return{sliceDepth:o,frontierDepth:l,parent:s,wrap:c};if(s&&u.matchType(s.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Dm(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Je(e,n+1,Math.max(o,r.size+n>=e.size-o?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Dm(e,n);if(r.childCount<=1&&n>0){let s=e.size-n<=n+r.size;this.unplaced=new Je(kc(e,n-1,1),n-1,s?n-1:o)}else this.unplaced=new Je(kc(e,n,1),n,o)}placeNodes({sliceDepth:e,frontierDepth:n,parent:o,inject:r,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let g=0;g1||a==0||g.content.size)&&(d=v,c.push(Y_(g.mark(f.allowedMarks(g.marks)),u==1?a:0,u==l.childCount?h:-1)))}let p=u==l.childCount;p||(h=-1),this.placed=Mc(this.placed,n,Ie.from(c)),this.frontier[n].match=d,p&&h<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=l;g1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:o,type:r}=this.frontier[n],s=n=0;l--){let{match:a,type:u}=this.frontier[l],c=Vm(e,l,u,a,!0);if(!c||c.childCount)continue e}return{depth:n,fit:i,move:s?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Mc(this.placed,n.depth,n.fit)),e=n.move;for(let o=n.depth+1;o<=e.depth;o++){let r=e.node(o),s=r.type.contentMatch.fillBefore(r.content,!0,e.index(o));this.openFrontierNode(r.type,r.attrs,s)}return e}openFrontierNode(e,n=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Mc(this.placed,this.depth,Ie.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Ie.empty,!0);n.childCount&&(this.placed=Mc(this.placed,this.frontier.length,n))}}function kc(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(kc(t.firstChild.content,e-1,n)))}function Mc(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Mc(t.lastChild.content,e-1,n)))}function Dm(t,e){for(let n=0;n1&&(o=o.replaceChild(0,Y_(o.firstChild,e-1,o.childCount==1?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(Ie.empty,!0)))),t.copy(o)}function Vm(t,e,n,o,r){let s=t.node(e),i=r?t.indexAfter(e):t.index(e);if(i==s.childCount&&!n.compatibleContent(s.type))return null;let l=o.fillBefore(s.content,!0,i);return l&&!pQ(n,s.content,i)?l:null}function pQ(t,e,n){for(let o=n;o0;f--,h--){let p=r.node(f).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;i.indexOf(f)>-1?l=f:r.before(f)==h&&i.splice(1,0,-f)}let a=i.indexOf(l),u=[],c=o.openStart;for(let f=o.content,h=0;;h++){let p=f.firstChild;if(u.push(p),h==o.openStart)break;f=p.content}for(let f=c-1;f>=0;f--){let h=u[f],p=gQ(h.type);if(p&&!h.sameMarkup(r.node(Math.abs(l)-1)))c=f;else if(p||!h.type.isTextblock)break}for(let f=o.openStart;f>=0;f--){let h=(f+c+1)%(o.openStart+1),p=u[h];if(p)for(let g=0;g=0&&(t.replace(e,n,o),!(t.steps.length>d));f--){let h=i[f];h<0||(e=r.before(h),n=s.after(h))}}function X_(t,e,n,o,r){if(eo){let s=r.contentMatchAt(0),i=s.fillBefore(t).append(t);t=i.append(s.matchFragment(i).fillBefore(Ie.empty,!0))}return t}function vQ(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=fQ(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new Je(Ie.from(o),0,0))}function bQ(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),s=Z_(o,r);for(let i=0;i0&&(a||o.node(l-1).canReplace(o.index(l-1),r.indexAfter(l-1))))return t.delete(o.before(l),r.after(l))}for(let i=1;i<=o.depth&&i<=r.depth;i++)if(e-o.start(i)==o.depth-i&&n>o.end(i)&&r.end(i)-n!=r.depth-i&&o.start(i-1)==r.start(i-1)&&o.node(i-1).canReplace(o.index(i-1),r.index(i-1)))return t.delete(o.before(i),n);t.delete(e,n)}function Z_(t,e){let n=[],o=Math.min(t.depth,e.depth);for(let r=o;r>=0;r--){let s=t.start(r);if(se.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(s==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==s-1)&&n.push(r)}return n}class iu extends Oo{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return Nn.fail("No node at attribute step's position");let o=Object.create(null);for(let s in n.attrs)o[s]=n.attrs[s];o[this.attr]=this.value;let r=n.type.create(o,null,n.marks);return Nn.fromReplace(e,this.pos,this.pos+1,new Je(Ie.from(r),0,n.isLeaf?0:1))}getMap(){return Zo.empty}invert(e){return new iu(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new iu(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new iu(n.pos,n.attr,n.value)}}Oo.jsonID("attr",iu);class Ld extends Oo{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return Nn.ok(o)}getMap(){return Zo.empty}invert(e){return new Ld(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Ld(n.attr,n.value)}}Oo.jsonID("docAttr",Ld);let Iu=class extends Error{};Iu=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};Iu.prototype=Object.create(Error.prototype);Iu.prototype.constructor=Iu;Iu.prototype.name="TransformError";class yQ{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ru}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Iu(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,o=Je.empty){let r=Ng(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new Je(Ie.from(o),0,0))}delete(e,n){return this.replace(e,n,Je.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return mQ(this,e,n,o),this}replaceRangeWith(e,n,o){return vQ(this,e,n,o),this}deleteRange(e,n){return bQ(this,e,n),this}lift(e,n){return nQ(this,e,n),this}join(e,n=1){return dQ(this,e,n),this}wrap(e,n){return sQ(this,e,n),this}setBlockType(e,n=e,o,r=null){return iQ(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return aQ(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new iu(e,n,o)),this}setDocAttribute(e,n){return this.step(new Ld(e,n)),this}addNodeMark(e,n){return this.step(new Zi(e,n)),this}removeNodeMark(e,n){if(!(n instanceof Xt)){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n=n.isInSet(o.marks),!n)return this}return this.step(new Nu(e,n)),this}split(e,n=1,o){return uQ(this,e,n,o),this}addMark(e,n,o){return QZ(this,e,n,o),this}removeMark(e,n,o){return eQ(this,e,n,o),this}clearIncompatible(e,n,o){return Cy(this,e,n,o),this}}const Bm=Object.create(null);class Et{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new wQ(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;s--){let i=n<0?Wa(e.node(0),e.node(s),e.before(s+1),e.index(s),n,o):Wa(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,n,o);if(i)return i}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Jr(e.node(0))}static atStart(e){return Wa(e,e,0,0,1)||new Jr(e)}static atEnd(e){return Wa(e,e,e.content.size,e.childCount,-1)||new Jr(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Bm[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Bm)throw new RangeError("Duplicate use of selection JSON ID "+e);return Bm[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Ct.between(this.$anchor,this.$head).getBookmark()}}Et.prototype.visible=!0;class wQ{constructor(e,n){this.$from=e,this.$to=n}}let sS=!1;function iS(t){!sS&&!t.parent.inlineContent&&(sS=!0)}class Ct extends Et{constructor(e,n=e){iS(e),iS(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let o=e.resolve(n.map(this.head));if(!o.parent.inlineContent)return Et.near(o);let r=e.resolve(n.map(this.anchor));return new Ct(r.parent.inlineContent?r:o,o)}replace(e,n=Je.empty){if(super.replace(e,n),n==Je.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof Ct&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ig(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ct(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o=n){let r=e.resolve(n);return new this(r,o==n?r:e.resolve(o))}static between(e,n,o){let r=e.pos-n.pos;if((!o||r)&&(o=r>=0?1:-1),!n.parent.inlineContent){let s=Et.findFrom(n,o,!0)||Et.findFrom(n,-o,!0);if(s)n=s.$head;else return Et.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(Et.findFrom(e,-o,!0)||Et.findFrom(e,o,!0)).$anchor,e.pos0?0:1);r>0?i=0;i+=r){let l=e.child(i);if(l.isAtom){if(!s&&dt.isSelectable(l))return dt.create(t,n-(r<0?l.nodeSize:0))}else{let a=Wa(t,l,n+r,r<0?l.childCount:0,r,s);if(a)return a}n+=l.nodeSize*r}return null}function lS(t,e,n){let o=t.steps.length-1;if(o{i==null&&(i=c)}),t.setSelection(Et.near(t.doc.resolve(i),n))}const aS=1,sh=2,uS=4;class xQ extends yQ{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=sh,this}ensureMarks(e){return Xt.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&sh)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~sh,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let o=this.selection;return n&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||Xt.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,o){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(o==null&&(o=n),o=o??n,!e)return this.deleteRange(n,o);let s=this.storedMarks;if(!s){let i=this.doc.resolve(n);s=o==n?i.marks():i.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,r.text(e,s)),this.selection.empty||this.setSelection(Et.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=uS,this}get scrolledIntoView(){return(this.updated&uS)>0}}function cS(t,e){return!e||!t?t:t.bind(e)}class _c{constructor(e,n,o){this.name=e,this.init=cS(n.init,o),this.apply=cS(n.apply,o)}}const SQ=[new _c("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new _c("selection",{init(t,e){return t.selection||Et.atStart(e.doc)},apply(t){return t.selection}}),new _c("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new _c("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Fm{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=SQ.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new _c(o.key,o.spec.state,o))})}}class Ja{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let o=0;oo.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[o],s=r.spec.state;s&&s.toJSON&&(n[o]=s.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Fm(e.schema,e.plugins),s=new Ja(r);return r.fields.forEach(i=>{if(i.name=="doc")s.doc=sa.fromJSON(e.schema,n.doc);else if(i.name=="selection")s.selection=Et.fromJSON(s.doc,n.selection);else if(i.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let l in o){let a=o[l],u=a.spec.state;if(a.key==i.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){s[i.name]=u.fromJSON.call(a,e,n[l],s);return}}s[i.name]=i.init(e,s)}}),s}}function Q_(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Q_(r,e,{})),n[o]=r}return n}class Fo{constructor(e){this.spec=e,this.props={},e.props&&Q_(e.props,this,this.props),this.key=e.key?e.key.key:eA("plugin")}getState(e){return e[this.key]}}const zm=Object.create(null);function eA(t){return t in zm?t+"$"+ ++zm[t]:(zm[t]=0,t+"$")}class ds{constructor(e="key"){this.key=eA(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const io=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Rd=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Eb=null;const Ys=function(t,e,n){let o=Eb||(Eb=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},EQ=function(){Eb=null},ma=function(t,e,n,o){return n&&(dS(t,e,n,o,-1)||dS(t,e,n,o,1))},TQ=/^(img|br|input|textarea|hr)$/i;function dS(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:Cr(t))){let s=t.parentNode;if(!s||s.nodeType!=1||xf(t)||TQ.test(t.nodeName)||t.contentEditable=="false")return!1;e=io(t)+(r<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Cr(t):0}else return!1}}function Cr(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function OQ(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Cr(t)}else if(t.parentNode&&!xf(t))e=io(t),t=t.parentNode;else return null}}function kQ(t,e){for(;;){if(t.nodeType==3&&e2),mr=Lu||(As?/Mac/.test(As.platform):!1),PQ=As?/Win/.test(As.platform):!1,Vr=/Android \d/.test(Tl),Sf=!!fS&&"webkitFontSmoothing"in fS.documentElement.style,NQ=Sf?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function IQ(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Ws(t,e){return typeof t=="number"?t:t[e]}function LQ(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function hS(t,e,n){let o=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,s=t.dom.ownerDocument;for(let i=n||t.dom;i;i=Rd(i)){if(i.nodeType!=1)continue;let l=i,a=l==s.body,u=a?IQ(s):LQ(l),c=0,d=0;if(e.topu.bottom-Ws(o,"bottom")&&(d=e.bottom-e.top>u.bottom-u.top?e.top+Ws(r,"top")-u.top:e.bottom-u.bottom+Ws(r,"bottom")),e.leftu.right-Ws(o,"right")&&(c=e.right-u.right+Ws(r,"right")),c||d)if(a)s.defaultView.scrollBy(c,d);else{let f=l.scrollLeft,h=l.scrollTop;d&&(l.scrollTop+=d),c&&(l.scrollLeft+=c);let p=l.scrollLeft-f,g=l.scrollTop-h;e={left:e.left-p,top:e.top-g,right:e.right-p,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(i).position))break}}function RQ(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),o,r;for(let s=(e.left+e.right)/2,i=n+1;i=n-20){o=l,r=a.top;break}}return{refDOM:o,refTop:r,stack:oA(t.dom)}}function oA(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Rd(o));return e}function $Q({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;rA(n,o==0?0:o-e)}function rA(t,e){for(let n=0;n=l){i=Math.max(p.bottom,i),l=Math.min(p.top,l);let g=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!a&&p.left<=e.left&&p.right>=e.left&&(a=c,u={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(s=d+1)}}return!n&&a&&(n=a,r=u,o=0),n&&n.nodeType==3?VQ(n,r):!n||o&&n.nodeType==1?{node:t,offset:s}:sA(n,r)}function VQ(t,e){let n=t.nodeValue.length,o=document.createRange();for(let r=0;r=(s.left+s.right)/2?1:0)}}return{node:t,offset:0}}function Ey(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function BQ(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(i.left+i.right)/2?1:-1}return t.docView.posFromDOM(o,r,s)}function zQ(t,e,n,o){let r=-1;for(let s=e,i=!1;s!=t.dom;){let l=t.docView.nearestDesc(s,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&(!i&&a.left>o.left||a.top>o.top?r=l.posBefore:(!i&&a.right-1?r:t.docView.posFromDOM(e,n,-1)}function iA(t,e,n){let o=t.childNodes.length;if(o&&n.tope.top&&r++}let u;Sf&&r&&o.nodeType==1&&(u=o.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(l=zQ(t,o,r,e))}l==null&&(l=FQ(t,i,e));let a=t.docView.nearestDesc(i,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function pS(t){return t.top=0&&r==o.nodeValue.length?(a--,c=1):n<0?a--:u++,Sc(Di(Ys(o,a,u),c),c<0)}if(!t.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&r&&(n<0||r==Cr(o))){let a=o.childNodes[r-1];if(a.nodeType==1)return jm(a.getBoundingClientRect(),!1)}if(s==null&&r=0)}if(s==null&&r&&(n<0||r==Cr(o))){let a=o.childNodes[r-1],u=a.nodeType==3?Ys(a,Cr(a)-(i?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(u)return Sc(Di(u,1),!1)}if(s==null&&r=0)}function Sc(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function jm(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function aA(t,e,n){let o=t.state,r=t.root.activeElement;o!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),r!=t.dom&&r&&r.focus()}}function UQ(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return aA(t,e,()=>{let{node:s}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(s,!0);if(!l)break;if(l.node.isBlock){s=l.contentDOM||l.dom;break}s=l.dom.parentNode}let i=lA(t,r.pos,1);for(let l=s.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=Ys(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?i.top-c.top>(c.bottom-i.top)*2:c.bottom-i.bottom>(i.bottom-c.top)*2))return!1}}return!0})}const WQ=/[\u0590-\u08ac]/;function qQ(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,s=!r,i=r==o.parent.content.size,l=t.domSelection();return l?!WQ.test(o.parent.textContent)||!l.modify?n=="left"||n=="backward"?s:i:aA(t,e,()=>{let{focusNode:a,focusOffset:u,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),f=l.caretBidiLevel;l.modify("move",n,"character");let h=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:g}=t.domSelectionRange(),v=p&&!h.contains(p.nodeType==1?p:p.parentNode)||a==p&&u==g;try{l.collapse(c,d),a&&(a!=c||u!=d)&&l.extend&&l.extend(a,u)}catch{}return f!=null&&(l.caretBidiLevel=f),v}):o.pos==o.start()||o.pos==o.end()}let gS=null,mS=null,vS=!1;function GQ(t,e,n){return gS==e&&mS==n?vS:(gS=e,mS=n,vS=n=="up"||n=="down"?UQ(t,e,n):qQ(t,e,n))}const kr=0,bS=1,Yl=2,Ps=3;class Ef{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=kr,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;nio(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=e;;s=s.parentNode){if(s==this.dom){r=!1;break}if(s.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){r=!0;break}if(s.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let o=!0,r=e;r;r=r.parentNode){let s=this.getDesc(r),i;if(s&&(!n||s.node))if(o&&(i=s.nodeDOM)&&!(i.nodeType==1?i.contains(e.nodeType==1?e:e.parentNode):i==e))o=!1;else return s}}getDesc(e){let n=e.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(e,n,o){for(let r=e;r;r=r.parentNode){let s=this.getDesc(r);if(s)return s.localPosFromDOM(e,n,o)}return-1}descAt(e){for(let n=0,o=0;ne||i instanceof cA){r=e-s;break}s=l}if(r)return this.children[o].domFromPos(r-this.children[o].border,n);for(let s;o&&!(s=this.children[o-1]).size&&s instanceof uA&&s.side>=0;o--);if(n<=0){let s,i=!0;for(;s=o?this.children[o-1]:null,!(!s||s.dom.parentNode==this.contentDOM);o--,i=!1);return s&&n&&i&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?io(s.dom)+1:0}}else{let s,i=!0;for(;s=o=c&&n<=u-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,n,c);e=i;for(let d=l;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){r=io(f.dom)+1;break}e-=f.size}r==-1&&(r=0)}if(r>-1&&(u>n||l==this.children.length-1)){n=u;for(let c=l+1;ch&&in){let h=l;l=a,a=h}let f=document.createRange();f.setEnd(a.node,a.offset),f.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let o=0,r=0;r=o:eo){let l=o+s.border,a=i-s.border;if(e>=l&&n<=a){this.dirty=e==o||n==i?Yl:bS,e==l&&n==a&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=Ps:s.markDirty(e-l,n-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Yl:Ps}o=i}this.dirty=Yl}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Yl:bS;n.dirty{if(!s)return r;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(i.nodeType!=1){let l=document.createElement("span");l.appendChild(i),i=l}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=n,this.widget=n,s=this}matchesWidget(e){return this.dirty==kr&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class KQ extends Ef{constructor(e,n,o,r){super(e,[],n,null),this.textDOM=o,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class va extends Ef{constructor(e,n,o,r){super(e,[],o,r),this.mark=n}static create(e,n,o,r){let s=r.nodeViews[n.type.name],i=s&&s(n,r,o);return(!i||!i.dom)&&(i=Pa.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new va(e,n,i.dom,i.contentDOM||i.dom)}parseRule(){return this.dirty&Ps||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Ps&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=kr){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty0&&(s=_b(s,0,e,o));for(let l=0;l{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)},o,r),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=Pa.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let f=c;return c=hA(c,o,n),u?a=new JQ(e,n,o,r,c,d||null,f,u,s,i+1):n.isText?new Rg(e,n,o,r,c,f,s):new rl(e,n,o,r,c,d||null,f,s,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let o=this.children[n];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Ie.empty)}return e}matchesNode(e,n,o){return this.dirty==kr&&e.eq(this.node)&&fp(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let o=this.node.inlineContent,r=n,s=e.composing?this.localCompositionInfo(e,n):null,i=s&&s.pos>-1?s:null,l=s&&s.pos<0,a=new XQ(this,i&&i.node,e);eee(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?a.syncToMarks(u.spec.marks,o,e):u.type.side>=0&&!d&&a.syncToMarks(c==this.node.childCount?Xt.none:this.node.child(c).marks,o,e),a.placeWidget(u,e,r)},(u,c,d,f)=>{a.syncToMarks(u.marks,o,e);let h;a.findNodeMatch(u,c,d,f)||l&&e.state.selection.from>r&&e.state.selection.to-1&&a.updateNodeAt(u,c,d,h,e)||a.updateNextNode(u,c,d,e,f,r)||a.addNode(u,c,d,e,r),r+=u.nodeSize}),a.syncToMarks([],o,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Yl)&&(i&&this.protectLocalComposition(e,i),dA(this.contentDOM,this.children,e),Lu&&tee(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof Ct)||on+this.node.content.size)return null;let s=e.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let i=s.nodeValue,l=nee(this.node.content,i,o-n,r-n);return l<0?null:{node:s,pos:l,text:i}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:o,text:r}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let i=new KQ(this,s,n,r);e.input.compositionNodes.push(i),this.children=_b(this.children,o,o+r.length,e,i)}update(e,n,o,r){return this.dirty==Ps||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,o,r),!0)}updateInner(e,n,o,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=kr}updateOuterDeco(e){if(fp(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=fA(this.dom,this.nodeDOM,Mb(this.outerDeco,this.node,n),Mb(e,this.node,n)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function yS(t,e,n,o,r){hA(o,e,t);let s=new rl(void 0,t,e,n,o,o,o,r,0);return s.contentDOM&&s.updateChildren(r,0),s}class Rg extends rl{constructor(e,n,o,r,s,i,l){super(e,n,o,r,s,null,i,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,o,r){return this.dirty==Ps||this.dirty!=kr&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=kr||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=kr,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,o){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,o){let r=this.node.cut(e,n),s=document.createTextNode(r.text);return new Rg(this.parent,r,this.outerDeco,this.innerDeco,s,s,o)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Ps)}get domAtom(){return!1}isText(e){return this.node.text==e}}class cA extends Ef{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==kr&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class JQ extends rl{constructor(e,n,o,r,s,i,l,a,u,c){super(e,n,o,r,s,i,l,u,c),this.spec=a}update(e,n,o,r){if(this.dirty==Ps)return!1;if(this.spec.update){let s=this.spec.update(e,n,o);return s&&this.updateInner(e,n,o,r),s}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,o,r){this.spec.setSelection?this.spec.setSelection(e,n,o):super.setSelection(e,n,o,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function dA(t,e,n){let o=t.firstChild,r=!1;for(let s=0;s>1,i=Math.min(s,e.length);for(;r-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=va.create(this.top,e[s],n,o);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,o,r){let s=-1,i;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,n,o))s=this.top.children.indexOf(i,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l0;){let l;for(;;)if(o){let u=n.children[o-1];if(u instanceof va)n=u,o=u.children.length;else{l=u,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let a=l.node;if(a){if(a!=t.child(r-1))break;--r,s.set(l,r),i.push(l)}}return{index:r,matched:s,matches:i.reverse()}}function QQ(t,e){return t.type.side-e.type.side}function eee(t,e,n,o){let r=e.locals(t),s=0;if(r.length==0){for(let u=0;us;)l.push(r[i++]);let p=s+f.nodeSize;if(f.isText){let v=p;i!v.inline):l.slice();o(f,g,e.forChild(s,f),h),s=p}}function tee(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function nee(t,e,n,o){for(let r=0,s=0;r=n){if(s>=o&&a.slice(o-e.length-l,o-l)==e)return o-e.length;let u=l=0&&u+e.length+l>=n)return l+u;if(n==o&&a.length>=o+e.length-l&&a.slice(o-l,o-l+e.length)==e)return o}}return-1}function _b(t,e,n,o,r){let s=[];for(let i=0,l=0;i=n||c<=e?s.push(a):(un&&s.push(a.slice(n-u,a.size,o)))}return s}function Ty(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),s=r&&r.size==0,i=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(i<0)return null;let l=o.resolve(i),a,u;if(Lg(n)){for(a=i;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&dt.isSelectable(d)&&r.parent&&!(d.isInline&&MQ(n.focusNode,n.focusOffset,r.dom))){let f=r.posBefore;u=new dt(i==f?l:o.resolve(f))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=i,f=i;for(let h=0;h{(n.anchorNode!=o||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!pA(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function ree(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let o=t.cursorWrapper.dom,r=o.nodeName=="IMG";r?n.setStart(o.parentNode,io(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Wo&&ol<=11&&(o.disabled=!0,o.disabled=!1)}function gA(t,e){if(e instanceof dt){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(ES(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else ES(t)}function ES(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Oy(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||Ct.between(e,n,o)}function TS(t){return t.editable&&!t.hasFocus()?!1:mA(t)}function mA(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function see(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return ma(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Ab(t,e){let{$anchor:n,$head:o}=t.selection,r=e>0?n.max(o):n.min(o),s=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return s&&Et.findFrom(s,e)}function ji(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function OS(t,e,n){let o=t.state.selection;if(o instanceof Ct)if(n.indexOf("s")>-1){let{$head:r}=o,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let i=t.state.doc.resolve(r.pos+s.nodeSize*(e<0?-1:1));return ji(t,new Ct(o.$anchor,i))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Ab(t.state,e);return r&&r instanceof dt?ji(t,r):!1}else if(!(mr&&n.indexOf("m")>-1)){let r=o.$head,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,i;if(!s||s.isText)return!1;let l=e<0?r.pos-s.nodeSize:r.pos;return s.isAtom||(i=t.docView.descAt(l))&&!i.contentDOM?dt.isSelectable(s)?ji(t,new dt(e<0?t.state.doc.resolve(r.pos-s.nodeSize):r)):Sf?ji(t,new Ct(t.state.doc.resolve(e<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(o instanceof dt&&o.node.isInline)return ji(t,new Ct(e>0?o.$to:o.$from));{let r=Ab(t.state,e);return r?ji(t,r):!1}}}function hp(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function nd(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Va(t,e){return e<0?iee(t):lee(t)}function iee(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,s,i=!1;for(ns&&n.nodeType==1&&o0){if(n.nodeType!=1)break;{let l=n.childNodes[o-1];if(nd(l,-1))r=n,s=--o;else if(l.nodeType==3)n=l,o=n.nodeValue.length;else break}}else{if(vA(n))break;{let l=n.previousSibling;for(;l&&nd(l,-1);)r=n.parentNode,s=io(l),l=l.previousSibling;if(l)n=l,o=hp(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}i?Pb(t,n,o):r&&Pb(t,r,s)}function lee(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=hp(n),s,i;for(;;)if(o{t.state==r&&li(t)},50)}function kS(t,e){let n=t.state.doc.resolve(e);if(!(So||PQ)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let s=t.coordsAtPos(e-1),i=(s.top+s.bottom)/2;if(i>r.top&&i1)return s.leftr.top&&i1)return s.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function MS(t,e,n){let o=t.state.selection;if(o instanceof Ct&&!o.empty||n.indexOf("s")>-1||mr&&n.indexOf("m")>-1)return!1;let{$from:r,$to:s}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let i=Ab(t.state,e);if(i&&i instanceof dt)return ji(t,i)}if(!r.parent.inlineContent){let i=e<0?r:s,l=o instanceof Jr?Et.near(i,e):Et.findFrom(i,e);return l?ji(t,l):!1}return!1}function _S(t,e){if(!(t.state.selection instanceof Ct))return!0;let{$head:n,$anchor:o,empty:r}=t.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let i=t.state.tr;return e<0?i.delete(n.pos-s.nodeSize,n.pos):i.delete(n.pos,n.pos+s.nodeSize),t.dispatch(i),!0}return!1}function AS(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function cee(t){if(!$o||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;AS(t,o,"true"),setTimeout(()=>AS(t,o,"false"),20)}return!1}function dee(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function fee(t,e){let n=e.keyCode,o=dee(e);if(n==8||mr&&n==72&&o=="c")return _S(t,-1)||Va(t,-1);if(n==46&&!e.shiftKey||mr&&n==68&&o=="c")return _S(t,1)||Va(t,1);if(n==13||n==27)return!0;if(n==37||mr&&n==66&&o=="c"){let r=n==37?kS(t,t.state.selection.from)=="ltr"?-1:1:-1;return OS(t,r,o)||Va(t,r)}else if(n==39||mr&&n==70&&o=="c"){let r=n==39?kS(t,t.state.selection.from)=="ltr"?1:-1:1;return OS(t,r,o)||Va(t,r)}else{if(n==38||mr&&n==80&&o=="c")return MS(t,-1,o)||Va(t,-1);if(n==40||mr&&n==78&&o=="c")return cee(t)||MS(t,1,o)||Va(t,1);if(o==(mr?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function bA(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:o,openStart:r,openEnd:s}=e;for(;r>1&&s>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,s--;let h=o.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),o=h.content}let i=t.someProp("clipboardSerializer")||Pa.fromSchema(t.state.schema),l=EA(),a=l.createElement("div");a.appendChild(i.serializeFragment(o,{document:l}));let u=a.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=SA[u.nodeName.toLowerCase()]);){for(let h=c.length-1;h>=0;h--){let p=l.createElement(c[h]);for(;a.firstChild;)p.appendChild(a.firstChild);a.appendChild(p),d++}u=a.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,` + +`);return{dom:a,text:f,slice:e}}function yA(t,e,n,o,r){let s=r.parent.type.spec.code,i,l;if(!n&&!e)return null;let a=e&&(o||s||!n);if(a){if(t.someProp("transformPastedText",f=>{e=f(e,s||o,t)}),s)return e?new Je(Ie.from(t.state.schema.text(e.replace(/\r\n?/g,` +`))),0,0):Je.empty;let d=t.someProp("clipboardTextParser",f=>f(e,r,o,t));if(d)l=d;else{let f=r.marks(),{schema:h}=t.state,p=Pa.fromSchema(h);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=i.appendChild(document.createElement("p"));g&&v.appendChild(p.serializeNode(h.text(g,f)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),i=mee(n),Sf&&vee(i);let u=i&&i.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=i.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;i=f}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||Qc.fromSchema(t.state.schema)).parseSlice(i,{preserveWhitespace:!!(a||c),context:r,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!hee.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)l=bee(PS(l,+c[1],+c[2]),c[4]);else if(l=Je.maxOpen(pee(l.content,r),!0),l.openStart||l.openEnd){let d=0,f=0;for(let h=l.content.firstChild;d{l=d(l,t)}),l}const hee=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function pee(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),s,i=[];if(t.forEach(l=>{if(!i)return;let a=r.findWrapping(l.type),u;if(!a)return i=null;if(u=i.length&&s.length&&CA(a,s,l,i[i.length-1],0))i[i.length-1]=u;else{i.length&&(i[i.length-1]=xA(i[i.length-1],s.length));let c=wA(l,a);i.push(c),r=r.matchType(c.type),s=a}}),i)return Ie.from(i)}return t}function wA(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,Ie.from(t));return t}function CA(t,e,n,o,r){if(r1&&(s=0),r=n&&(l=e<0?i.contentMatchAt(0).fillBefore(l,s<=r).append(l):l.append(i.contentMatchAt(i.childCount).fillBefore(Ie.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,i.copy(l))}function PS(t,e,n){return en}).createHTML(t):t}function mee(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=EA().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&SA[o[1].toLowerCase()])&&(t=r.map(s=>"<"+s+">").join("")+t+r.map(s=>"").reverse().join("")),n.innerHTML=gee(t),r)for(let s=0;s=0;l-=2){let a=n.nodes[o[l]];if(!a||a.hasRequiredAttrs())break;r=Ie.from(a.create(o[l+1],r)),s++,i++}return new Je(r,s,i)}const Do={},Vo={},yee={touchstart:!0,touchmove:!0};class wee{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Cee(t){for(let e in Do){let n=Do[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{See(t,o)&&!ky(t,o)&&(t.editable||!(o.type in Vo))&&n(t,o)},yee[e]?{passive:!0}:void 0)}$o&&t.dom.addEventListener("input",()=>null),Ib(t)}function Qi(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function xee(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Ib(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>ky(t,o))})}function ky(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function See(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function Eee(t,e){!ky(t,e)&&Do[e.type]&&(t.editable||!(e.type in Vo))&&Do[e.type](t,e)}Vo.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!OA(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Vr&&So&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),Lu&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();t.input.lastIOSEnter=o,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==o&&(t.someProp("handleKeyDown",r=>r(t,jl(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||fee(t,n)?n.preventDefault():Qi(t,"key")};Vo.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Vo.keypress=(t,e)=>{let n=e;if(OA(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||mr&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof Ct)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",s=>s(t,o.$from.pos,o.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function $g(t){return{left:t.clientX,top:t.clientY}}function Tee(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function My(t,e,n,o,r){if(o==-1)return!1;let s=t.state.doc.resolve(o);for(let i=s.depth+1;i>0;i--)if(t.someProp(e,l=>i>s.depth?l(t,n,s.nodeAfter,s.before(i),r,!0):l(t,n,s.node(i),s.before(i),r,!1)))return!0;return!1}function lu(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);o.setMeta("pointer",!0),t.dispatch(o)}function Oee(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&dt.isSelectable(o)?(lu(t,new dt(n)),!0):!1}function kee(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof dt&&(o=n.node);let s=t.state.doc.resolve(e);for(let i=s.depth+1;i>0;i--){let l=i>s.depth?s.nodeAfter:s.node(i);if(dt.isSelectable(l)){o&&n.$from.depth>0&&i>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?r=s.before(n.$from.depth):r=s.before(i);break}}return r!=null?(lu(t,dt.create(t.state.doc,r)),!0):!1}function Mee(t,e,n,o,r){return My(t,"handleClickOn",e,n,o)||t.someProp("handleClick",s=>s(t,e,o))||(r?kee(t,n):Oee(t,n))}function _ee(t,e,n,o){return My(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function Aee(t,e,n,o){return My(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||Pee(t,n,o)}function Pee(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(lu(t,Ct.create(o,0,o.content.size)),!0):!1;let r=o.resolve(e);for(let s=r.depth+1;s>0;s--){let i=s>r.depth?r.nodeAfter:r.node(s),l=r.before(s);if(i.inlineContent)lu(t,Ct.create(o,l+1,l+1+i.content.size));else if(dt.isSelectable(i))lu(t,dt.create(o,l));else continue;return!0}}function _y(t){return pp(t)}const TA=mr?"metaKey":"ctrlKey";Do.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=_y(t),r=Date.now(),s="singleClick";r-t.input.lastClick.time<500&&Tee(n,t.input.lastClick)&&!n[TA]&&(t.input.lastClick.type=="singleClick"?s="doubleClick":t.input.lastClick.type=="doubleClick"&&(s="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:s};let i=t.posAtCoords($g(n));i&&(s=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Nee(t,i,n,!!o)):(s=="doubleClick"?_ee:Aee)(t,i.pos,i.inside,n)?n.preventDefault():Qi(t,"pointer"))};class Nee{constructor(e,n,o,r){this.view=e,this.pos=n,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[TA],this.allowDefault=o.shiftKey;let s,i;if(n.inside>-1)s=e.state.doc.nodeAt(n.inside),i=n.inside;else{let c=e.state.doc.resolve(n.pos);s=c.parent,i=c.depth?c.before():0}const l=r?null:o.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a&&a.dom.nodeType==1?a.dom:null;let{selection:u}=e.state;(o.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||u instanceof dt&&u.from<=i&&u.to>i)&&(this.mightDrag={node:s,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ns&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Qi(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>li(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords($g(e))),this.updateAllowDefault(e),this.allowDefault||!n?Qi(this.view,"pointer"):Mee(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||$o&&this.mightDrag&&!this.mightDrag.node.isAtom||So&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(lu(this.view,Et.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Qi(this.view,"pointer")}move(e){this.updateAllowDefault(e),Qi(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Do.touchstart=t=>{t.input.lastTouch=Date.now(),_y(t),Qi(t,"pointer")};Do.touchmove=t=>{t.input.lastTouch=Date.now(),Qi(t,"pointer")};Do.contextmenu=t=>_y(t);function OA(t,e){return t.composing?!0:$o&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Iee=Vr?5e3:-1;Vo.compositionstart=Vo.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Ct&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),pp(t,!0),t.markCursor=null;else if(pp(t,!e.selection.empty),ns&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=t.domSelectionRange();for(let r=o.focusNode,s=o.focusOffset;r&&r.nodeType==1&&s!=0;){let i=s<0?r.lastChild:r.childNodes[s-1];if(!i)break;if(i.nodeType==3){let l=t.domSelection();l&&l.collapse(i,i.nodeValue.length);break}else r=i,s=-1}}t.input.composing=!0}kA(t,Iee)};Vo.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,kA(t,20))};function kA(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>pp(t),e))}function MA(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Ree());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Lee(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=OQ(e.focusNode,e.focusOffset),o=kQ(e.focusNode,e.focusOffset);if(n&&o&&n!=o){let r=o.pmViewDesc,s=t.domObserver.lastChangedTextNode;if(n==s||o==s)return s;if(!r||!r.isText(o.nodeValue))return o;if(t.input.compositionNode==o){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return o}}return n||o}function Ree(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function pp(t,e=!1){if(!(Vr&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),MA(t),e||t.docView&&t.docView.dirty){let n=Ty(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function $ee(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const $d=Wo&&ol<15||Lu&&NQ<604;Do.copy=Vo.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let s=$d?null:n.clipboardData,i=o.content(),{dom:l,text:a}=bA(t,i);s?(n.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):$ee(t,l),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Dee(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Vee(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Dd(t,o.value,null,r,e):Dd(t,o.textContent,o.innerHTML,r,e)},50)}function Dd(t,e,n,o,r){let s=yA(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,r,s||Je.empty)))return!0;if(!s)return!1;let i=Dee(s),l=i?t.state.tr.replaceSelectionWith(i,o):t.state.tr.replaceSelection(s);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function _A(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Vo.paste=(t,e)=>{let n=e;if(t.composing&&!Vr)return;let o=$d?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Dd(t,_A(o),o.getData("text/html"),r,n)?n.preventDefault():Vee(t,n)};class AA{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const PA=mr?"altKey":"ctrlKey";Do.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=t.state.selection,s=r.empty?null:t.posAtCoords($g(n)),i;if(!(s&&s.pos>=r.from&&s.pos<=(r instanceof dt?r.to-1:r.to))){if(o&&o.mightDrag)i=dt.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(i=dt.create(t.state.doc,d.posBefore))}}let l=(i||t.state.selection).content(),{dom:a,text:u,slice:c}=bA(t,l);(!n.dataTransfer.files.length||!So||nA>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData($d?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",$d||n.dataTransfer.setData("text/plain",u),t.dragging=new AA(c,!n[PA],i)};Do.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Vo.dragover=Vo.dragenter=(t,e)=>e.preventDefault();Vo.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords($g(n));if(!r)return;let s=t.state.doc.resolve(r.pos),i=o&&o.slice;i?t.someProp("transformPasted",p=>{i=p(i,t)}):i=yA(t,_A(n.dataTransfer),$d?null:n.dataTransfer.getData("text/html"),!1,s);let l=!!(o&&!n[PA]);if(t.someProp("handleDrop",p=>p(t,n,i||Je.empty,l))){n.preventDefault();return}if(!i)return;n.preventDefault();let a=i?K_(t.state.doc,s.pos,i):s.pos;a==null&&(a=s.pos);let u=t.state.tr;if(l){let{node:p}=o;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(a),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=u.doc;if(d?u.replaceRangeWith(c,c,i.content.firstChild):u.replaceRange(c,c,i),u.doc.eq(f))return;let h=u.doc.resolve(c);if(d&&dt.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))u.setSelection(new dt(h));else{let p=u.mapping.map(a);u.mapping.maps[u.mapping.maps.length-1].forEach((g,v,m,C)=>p=C),u.setSelection(Oy(t,h,u.doc.resolve(p)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))};Do.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&li(t)},20))};Do.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Do.beforeinput=(t,e)=>{if(So&&Vr&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:o}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=o||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",s=>s(t,jl(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in Vo)Do[t]=Vo[t];function Vd(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class gp{constructor(e,n){this.toDOM=e,this.spec=n||ia,this.side=this.spec.side||0}map(e,n,o,r){let{pos:s,deleted:i}=e.mapResult(n.from+r,this.side<0?-1:1);return i?null:new Sr(s-o,s-o,this)}valid(){return!0}eq(e){return this==e||e instanceof gp&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vd(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class sl{constructor(e,n){this.attrs=e,this.spec=n||ia}map(e,n,o,r){let s=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-o,i=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-o;return s>=i?null:new Sr(s,i,this)}valid(e,n){return n.from=e&&(!s||s(l.spec))&&o.push(l.copy(l.from+r,l.to+r))}for(let i=0;ie){let l=this.children[i]+1;this.children[i+2].findInner(e-l,n-l,o,r+l,s)}}map(e,n,o){return this==vo||e.maps.length==0?this:this.mapInner(e,n,0,0,o||ia)}mapInner(e,n,o,r,s){let i;for(let l=0;l{let u=a+o,c;if(c=IA(n,l,u)){for(r||(r=this.children.slice());sl&&d.to=e){this.children[l]==e&&(o=this.children[l+2]);break}let s=e+1,i=s+n.content.size;for(let l=0;ls&&a.type instanceof sl){let u=Math.max(s,a.from)-s,c=Math.min(i,a.to)-s;ur.map(e,n,ia));return Gi.from(o)}forChild(e,n){if(n.isLeaf)return $n.empty;let o=[];for(let r=0;rn instanceof $n)?e:e.reduce((n,o)=>n.concat(o instanceof $n?o:o.members),[]))}}forEachSet(e){for(let n=0;n{let v=g-p-(h-f);for(let m=0;mC+c-d)continue;let y=l[m]+c-d;h>=y?l[m+1]=f<=y?-2:-1:f>=c&&v&&(l[m]+=v,l[m+1]+=v)}d+=v}),c=n.maps[u].map(c,-1)}let a=!1;for(let u=0;u=o.content.size){a=!0;continue}let f=n.map(t[u+1]+s,-1),h=f-r,{index:p,offset:g}=o.content.findIndex(d),v=o.maybeChild(p);if(v&&g==d&&g+v.nodeSize==h){let m=l[u+2].mapInner(n,v,c+1,t[u]+s+1,i);m!=vo?(l[u]=d,l[u+1]=h,l[u+2]=m):(l[u+1]=-2,a=!0)}else a=!0}if(a){let u=Fee(l,t,e,n,r,s,i),c=mp(u,o,0,i);e=c.local;for(let d=0;dn&&i.to{let u=IA(t,l,a+n);if(u){s=!0;let c=mp(u,l,n+a+1,o);c!=vo&&r.push(a,a+l.nodeSize,c)}});let i=NA(s?LA(t):t,-n).sort(la);for(let l=0;l0;)e++;t.splice(e,0,n)}function Um(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=vo&&e.push(o)}),t.cursorWrapper&&e.push($n.create(t.state.doc,[t.cursorWrapper.deco])),Gi.from(e)}const zee={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jee=Wo&&ol<=11;class Hee{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Uee{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Hee,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let r=0;rr.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),jee&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,zee)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(TS(this.view)){if(this.suppressingSelectionUpdates)return li(this.view);if(Wo&&ol<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ma(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,o;for(let s=e.focusNode;s;s=Rd(s))n.add(s);for(let s=e.anchorNode;s;s=Rd(s))if(n.has(s)){o=s;break}let r=o&&this.view.docView.nearestDesc(o);if(r&&r.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}selectionChanged(e){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&TS(this.view)&&!this.ignoreSelectionChange(e)}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=e.domSelectionRange(),r=this.selectionChanged(o),s=-1,i=-1,l=!1,a=[];if(e.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,f]=c;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of c){let h=f.parentNode;h&&h.nodeName=="LI"&&(!d||Gee(e,d)!=h)&&f.remove()}}}let u=null;s<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||r)&&(s>-1&&(e.docView.markDirty(s,i),Wee(e)),this.handleDOMChange(s,i,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||li(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;cr;v--){let m=o.childNodes[v-1],C=m.pmViewDesc;if(m.nodeName=="BR"&&!C){s=v;break}if(!C||C.size)break}let d=t.state.doc,f=t.someProp("domParser")||Qc.fromSchema(t.state.schema),h=d.resolve(i),p=null,g=f.parse(o,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:r,to:s,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:Jee,context:h});if(u&&u[0].pos!=null){let v=u[0].pos,m=u[1]&&u[1].pos;m==null&&(m=v),p={anchor:v+i,head:m+i}}return{doc:g,sel:p,from:i,to:l}}function Jee(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if($o&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||$o&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Yee=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Xee(t,e,n,o,r){let s=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let P=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,I=Ty(t,P);if(I&&!t.state.selection.eq(I)){if(So&&Vr&&t.input.lastKeyCode===13&&Date.now()-100D(t,jl(13,"Enter"))))return;let M=t.state.tr.setSelection(I);P=="pointer"?M.setMeta("pointer",!0):P=="key"&&M.scrollIntoView(),s&&M.setMeta("composition",s),t.dispatch(M)}return}let i=t.state.doc.resolve(e),l=i.sharedDepth(n);e=i.before(l+1),n=t.state.doc.resolve(n).after(l+1);let a=t.state.selection,u=Kee(t,e,n),c=t.state.doc,d=c.slice(u.from,u.to),f,h;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Vr)&&r.some(P=>P.nodeType==1&&!Yee.test(P.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",P=>P(t,jl(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&a instanceof Ct&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:a.from,endA:a.to,endB:a.to};else{if(u.sel){let P=DS(t,t.state.doc,u.sel);if(P&&!P.eq(t.state.selection)){let I=t.state.tr.setSelection(P);s&&I.setMeta("composition",s),t.dispatch(I)}}return}t.state.selection.fromt.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?p.start=t.state.selection.from:p.endA=t.state.selection.to-2&&t.state.selection.to<=u.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Wo&&ol<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=u.doc.resolveNoCache(p.start-u.from),v=u.doc.resolveNoCache(p.endB-u.from),m=c.resolve(p.start),C=g.sameParent(v)&&g.parent.inlineContent&&m.end()>=p.endA,y;if((Lu&&t.input.lastIOSEnter>Date.now()-225&&(!C||r.some(P=>P.nodeName=="DIV"||P.nodeName=="P"))||!C&&g.posP(t,jl(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&Qee(c,p.start,p.endA,g,v)&&t.someProp("handleKeyDown",P=>P(t,jl(8,"Backspace")))){Vr&&So&&t.domObserver.suppressSelectionUpdates();return}So&&Vr&&p.endB==p.start&&(t.input.lastAndroidDelete=Date.now()),Vr&&!C&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,v=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(P){return P(t,jl(13,"Enter"))})},20));let b=p.start,S=p.endA,T,O,k;if(C){if(g.pos==v.pos)Wo&&ol<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>li(t),20)),T=t.state.tr.delete(b,S),O=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(k=Zee(g.parent.content.cut(g.parentOffset,v.parentOffset),m.parent.content.cut(m.parentOffset,p.endA-m.start()))))T=t.state.tr,k.type=="add"?T.addMark(b,S,k.mark):T.removeMark(b,S,k.mark);else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let P=g.parent.textBetween(g.parentOffset,v.parentOffset);if(t.someProp("handleTextInput",I=>I(t,b,S,P)))return;T=t.state.tr.insertText(P,b,S)}}if(T||(T=t.state.tr.replace(b,S,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let P=DS(t,T.doc,u.sel);P&&!(So&&Vr&&t.composing&&P.empty&&(p.start!=p.endB||t.input.lastAndroidDeletee.content.size?null:Oy(t,e.resolve(n.anchor),e.resolve(n.head))}function Zee(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,s=o,i,l,a;for(let c=0;cc.mark(l.addToSet(c.marks));else if(r.length==0&&s.length==1)l=s[0],i="remove",a=c=>c.mark(l.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||Wm(i,!0,!1)0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,r++,e=!1;if(n){let s=t.node(o).maybeChild(t.indexAfter(o));for(;s&&!s.isLeaf;)s=s.firstChild,r++}return r}function ete(t,e,n,o,r){let s=t.findDiffStart(e,n);if(s==null)return null;let{a:i,b:l}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let a=Math.max(0,s-Math.min(i,l));o-=i+a-s}if(i=i?s-o:0;s-=a,s&&s=l?s-o:0;s-=a,s&&s=56320&&e<=57343&&n>=55296&&n<=56319}class tte{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new wee,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(HS),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=zS(this),FS(this),this.nodeViews=jS(this),this.docView=yS(this.state.doc,BS(this),Um(this),this.dom,this),this.domObserver=new Uee(this,(o,r,s,i)=>Xee(this,o,r,s,i)),this.domObserver.start(),Cee(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Ib(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(HS),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in e)n[o]=e[o];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var o;let r=this.state,s=!1,i=!1;e.storedMarks&&this.composing&&(MA(this),i=!0),this.state=e;let l=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=jS(this);ote(h,this.nodeViews)&&(this.nodeViews=h,s=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&Ib(this),this.editable=zS(this),FS(this);let a=Um(this),u=BS(this),c=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(e.doc,u,a);(d||!e.selection.eq(r.selection))&&(i=!0);let f=c=="preserve"&&i&&this.dom.style.overflowAnchor==null&&RQ(this);if(i){this.domObserver.stop();let h=d&&(Wo||So)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&nte(r.selection,e.selection);if(d){let p=So?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Lee(this)),(s||!this.docView.update(e.doc,u,a,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=yS(e.doc,u,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&see(this))?li(this,h):(gA(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&$Q(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof dt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&hS(this,n.getBoundingClientRect(),e)}else hS(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(s))==o.node&&(r=s)}this.dragging=new AA(e.slice,e.move,r<0?void 0:dt.create(this.state.doc,r))}someProp(e,n){let o=this._props&&this._props[e],r;if(o!=null&&(r=n?n(o):o))return r;for(let i=0;in.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return jQ(this,e)}coordsAtPos(e,n=1){return lA(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,o=-1){let r=this.docView.posFromDOM(e,n,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return GQ(this,n||this.state,e)}pasteHTML(e,n){return Dd(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Dd(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(xee(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Um(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,EQ())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Eee(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?$o&&this.root.nodeType===11&&_Q(this.dom.ownerDocument)==this.dom&&qee(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function BS(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let o in n)o=="class"?e.class+=" "+n[o]:o=="style"?e.style=(e.style?e.style+";":"")+n[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(n[o]))}),e.translate||(e.translate="no"),[Sr.node(0,t.state.doc.content.size,e)]}function FS(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Sr.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function zS(t){return!t.someProp("editable",e=>e(t.state)===!1)}function nte(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function jS(t){let e=Object.create(null);function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=o[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function ote(t,e){let n=0,o=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)o++;return n!=o}function HS(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var ul={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},vp={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},rte=typeof navigator<"u"&&/Mac/.test(navigator.platform),ste=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var lo=0;lo<10;lo++)ul[48+lo]=ul[96+lo]=String(lo);for(var lo=1;lo<=24;lo++)ul[lo+111]="F"+lo;for(var lo=65;lo<=90;lo++)ul[lo]=String.fromCharCode(lo+32),vp[lo]=String.fromCharCode(lo);for(var qm in ul)vp.hasOwnProperty(qm)||(vp[qm]=ul[qm]);function ite(t){var e=rte&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||ste&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?vp:ul)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const lte=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function ate(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let o,r,s,i;for(let l=0;l127)&&(s=ul[o.keyCode])&&s!=r){let l=e[Gm(s,o)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}const dte=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function $A(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const fte=(t,e,n)=>{let o=$A(t,n);if(!o)return!1;let r=Ny(o);if(!r){let i=o.blockRange(),l=i&&lc(i);return l==null?!1:(e&&e(t.tr.lift(i,l).scrollIntoView()),!0)}let s=r.nodeBefore;if(FA(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Ru(s,"end")||dt.isSelectable(s)))for(let i=o.depth;;i--){let l=Ng(t.doc,o.before(i),o.after(i),Je.empty);if(l&&l.slice.size1)break}return s.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos-s.nodeSize,r.pos).scrollIntoView()),!0):!1},hte=(t,e,n)=>{let o=$A(t,n);if(!o)return!1;let r=Ny(o);return r?DA(t,r,e):!1},pte=(t,e,n)=>{let o=VA(t,n);if(!o)return!1;let r=Iy(o);return r?DA(t,r,e):!1};function DA(t,e,n){let o=e.nodeBefore,r=o,s=e.pos-1;for(;!r.isTextblock;s--){if(r.type.spec.isolating)return!1;let c=r.lastChild;if(!c)return!1;r=c}let i=e.nodeAfter,l=i,a=e.pos+1;for(;!l.isTextblock;a++){if(l.type.spec.isolating)return!1;let c=l.firstChild;if(!c)return!1;l=c}let u=Ng(t.doc,s,a,Je.empty);if(!u||u.from!=s||u instanceof Hn&&u.slice.size>=a-s)return!1;if(n){let c=t.tr.step(u);c.setSelection(Ct.create(c.doc,s)),n(c.scrollIntoView())}return!0}function Ru(t,e,n=!1){for(let o=t;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const gte=(t,e,n)=>{let{$head:o,empty:r}=t.selection,s=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;s=Ny(o)}let i=s&&s.nodeBefore;return!i||!dt.isSelectable(i)?!1:(e&&e(t.tr.setSelection(dt.create(t.doc,s.pos-i.nodeSize)).scrollIntoView()),!0)};function Ny(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function VA(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let o=VA(t,n);if(!o)return!1;let r=Iy(o);if(!r)return!1;let s=r.nodeAfter;if(FA(t,r,e,1))return!0;if(o.parent.content.size==0&&(Ru(s,"start")||dt.isSelectable(s))){let i=Ng(t.doc,o.before(),o.after(),Je.empty);if(i&&i.slice.size{let{$head:o,empty:r}=t.selection,s=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let n=t.selection,o=n instanceof dt,r;if(o){if(n.node.isTextblock||!El(t.doc,n.from))return!1;r=n.from}else if(r=Pg(t.doc,n.from,-1),r==null)return!1;if(e){let s=t.tr.join(r);o&&s.setSelection(dt.create(s.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},yte=(t,e)=>{let n=t.selection,o;if(n instanceof dt){if(n.node.isTextblock||!El(t.doc,n.to))return!1;o=n.to}else if(o=Pg(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},wte=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),s=r&&lc(r);return s==null?!1:(e&&e(t.tr.lift(r,s).scrollIntoView()),!0)},Cte=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(` +`).scrollIntoView()),!0)};function BA(t){for(let e=0;e{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),s=n.indexAfter(-1),i=BA(r.contentMatchAt(s));if(!i||!r.canReplaceWith(s,s,i))return!1;if(e){let l=n.after(),a=t.tr.replaceWith(l,l,i.createAndFill());a.setSelection(Et.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},Ste=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof Jr||o.parent.inlineContent||r.parent.inlineContent)return!1;let s=BA(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let i=(!o.parentOffset&&r.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(su(t.doc,s))return e&&e(t.tr.split(s).scrollIntoView()),!0}let o=n.blockRange(),r=o&&lc(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)},Tte=(t,e)=>{let{$from:n,to:o}=t.selection,r,s=n.sharedDepth(o);return s==0?!1:(r=n.before(s),e&&e(t.tr.setSelection(dt.create(t.doc,r))),!0)};function Ote(t,e,n){let o=e.nodeBefore,r=e.nodeAfter,s=e.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&e.parent.canReplace(s-1,s)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(r.isTextblock||El(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function FA(t,e,n,o){let r=e.nodeBefore,s=e.nodeAfter,i,l,a=r.type.spec.isolating||s.type.spec.isolating;if(!a&&Ote(t,e,n))return!0;let u=!a&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(l=r.contentMatchAt(r.childCount)).findWrapping(s.type))&&l.matchType(i[0]||s.type).validEnd){if(n){let h=e.pos+s.nodeSize,p=Ie.empty;for(let m=i.length-1;m>=0;m--)p=Ie.from(i[m].create(null,p));p=Ie.from(r.copy(p));let g=t.tr.step(new Jn(e.pos-1,h,e.pos,h,new Je(p,1,0),i.length,!0)),v=g.doc.resolve(h+2*i.length);v.nodeAfter&&v.nodeAfter.type==r.type&&El(g.doc,v.pos)&&g.join(v.pos),n(g.scrollIntoView())}return!0}let c=s.type.spec.isolating||o>0&&a?null:Et.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),f=d&&lc(d);if(f!=null&&f>=e.depth)return n&&n(t.tr.lift(d,f).scrollIntoView()),!0;if(u&&Ru(s,"start",!0)&&Ru(r,"end")){let h=r,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let g=s,v=1;for(;!g.isTextblock;g=g.firstChild)v++;if(h.canReplace(h.childCount,h.childCount,g.content)){if(n){let m=Ie.empty;for(let y=p.length-1;y>=0;y--)m=Ie.from(p[y].copy(m));let C=t.tr.step(new Jn(e.pos-p.length,e.pos+s.nodeSize,e.pos+v,e.pos+s.nodeSize-v,new Je(m,p.length,0),0,!0));n(C.scrollIntoView())}return!0}}return!1}function zA(t){return function(e,n){let o=e.selection,r=t<0?o.$from:o.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return r.node(s).isTextblock?(n&&n(e.tr.setSelection(Ct.create(e.doc,t<0?r.start(s):r.end(s)))),!0):!1}}const kte=zA(-1),Mte=zA(1);function _te(t,e=null){return function(n,o){let{$from:r,$to:s}=n.selection,i=r.blockRange(s),l=i&&xy(i,t,e);return l?(o&&o(n.tr.wrap(i,l).scrollIntoView()),!0):!1}}function US(t,e=null){return function(n,o){let r=!1;for(let s=0;s{if(r)return!1;if(!(!a.isTextblock||a.hasMarkup(t,e)))if(a.type==t)r=!0;else{let c=n.doc.resolve(u),d=c.index();r=c.parent.canReplaceWith(d,d+1,t)}})}if(!r)return!1;if(o){let s=n.tr;for(let i=0;i=2&&r.node(i.depth-1).type.compatibleContent(t)&&i.startIndex==0){if(r.index(i.depth-1)==0)return!1;let c=n.doc.resolve(i.start-2);a=new ap(c,c,i.depth),i.endIndex=0;c--)s=Ie.from(n[c].type.create(n[c].attrs,s));t.step(new Jn(e.start-(o?2:0),e.end,e.start,e.end,new Je(s,0,0),n.length,!0));let i=0;for(let c=0;ci.childCount>0&&i.firstChild.type==t);return s?n?o.node(s.depth-1).type==t?Ite(e,n,t,s):Lte(e,n,s):!0:!1}}function Ite(t,e,n,o){let r=t.tr,s=o.end,i=o.$to.end(o.depth);sg;p--)h-=r.child(p).nodeSize,o.delete(h-1,h+1);let s=o.doc.resolve(n.start),i=s.nodeAfter;if(o.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,a=n.endIndex==r.childCount,u=s.node(-1),c=s.index(-1);if(!u.canReplace(c+(l?0:1),c+1,i.content.append(a?Ie.empty:Ie.from(r))))return!1;let d=s.pos,f=d+i.nodeSize;return o.step(new Jn(d-(l?1:0),f+(a?1:0),d+1,f-1,new Je((l?Ie.empty:Ie.from(r.copy(Ie.empty))).append(a?Ie.empty:Ie.from(r.copy(Ie.empty))),l?0:1,a?0:1),l?0:1)),e(o.scrollIntoView()),!0}function Rte(t){return function(e,n){let{$from:o,$to:r}=e.selection,s=o.blockRange(r,u=>u.childCount>0&&u.firstChild.type==t);if(!s)return!1;let i=s.startIndex;if(i==0)return!1;let l=s.parent,a=l.child(i-1);if(a.type!=t)return!1;if(n){let u=a.lastChild&&a.lastChild.type==l.type,c=Ie.from(u?t.create():null),d=new Je(Ie.from(t.create(null,Ie.from(l.type.create(null,c)))),u?3:1,0),f=s.start,h=s.end;n(e.tr.step(new Jn(f-(u?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}function Dg(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:r}=n,{storedMarks:s}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return s},get selection(){return o},get doc(){return r},get tr(){return o=n.selection,r=n.doc,s=n.storedMarks,n}}}class Vg{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:s}=o,i=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...c)=>{const d=a(...c)(i);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(s),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:o,editor:r,state:s}=this,{view:i}=r,l=[],a=!!e,u=e||s.tr,c=()=>(!a&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(u),l.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(o).map(([f,h])=>[f,(...g)=>{const v=this.buildProps(u,n),m=h(...g)(v);return l.push(m),d}])),run:c};return d}createCan(e){const{rawCommands:n,state:o}=this,r=!1,s=e||o.tr,i=this.buildProps(s,r);return{...Object.fromEntries(Object.entries(n).map(([a,u])=>[a,(...c)=>u(...c)({...i,dispatch:void 0})])),chain:()=>this.createChain(s,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:s}=this,{view:i}=r,l={tr:e,editor:r,view:i,state:Dg({state:s,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([a,u])=>[a,(...c)=>u(...c)(l)]))}};return l}}class $te{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const o=this.callbacks[e];return o&&o.forEach(r=>r.apply(this,n)),this}off(e,n){const o=this.callbacks[e];return o&&(n?this.callbacks[e]=o.filter(r=>r!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ot(t,e,n){return t.config[e]===void 0&&t.parent?ot(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?ot(t.parent,e,n):null}):t.config[e]}function Bg(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),o=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:o}}function jA(t){const e=[],{nodeExtensions:n,markExtensions:o}=Bg(t),r=[...n,...o],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage,extensions:r},a=ot(i,"addGlobalAttributes",l);if(!a)return;a().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([f,h])=>{e.push({type:d,name:f,attribute:{...s,...h}})})})})}),r.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage},a=ot(i,"addAttributes",l);if(!a)return;const u=a();Object.entries(u).forEach(([c,d])=>{const f={...s,...d};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,e.push({type:i.name,name:c,attribute:f})})}),e}function Zn(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Qn(...t){return t.filter(e=>!!e).reduce((e,n)=>{const o={...e};return Object.entries(n).forEach(([r,s])=>{if(!o[r]){o[r]=s;return}if(r==="class"){const l=s?s.split(" "):[],a=o[r]?o[r].split(" "):[],u=l.filter(c=>!a.includes(c));o[r]=[...a,...u].join(" ")}else if(r==="style"){const l=s?s.split(";").map(c=>c.trim()).filter(Boolean):[],a=o[r]?o[r].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;a.forEach(c=>{const[d,f]=c.split(":").map(h=>h.trim());u.set(d,f)}),l.forEach(c=>{const[d,f]=c.split(":").map(h=>h.trim());u.set(d,f)}),o[r]=Array.from(u.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else o[r]=s}),o},{})}function Lb(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,o)=>Qn(n,o),{})}function HA(t){return typeof t=="function"}function _t(t,e=void 0,...n){return HA(t)?e?t.bind(e)(...n):t(...n):t}function Dte(t={}){return Object.keys(t).length===0&&t.constructor===Object}function Vte(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function WS(t,e){return"style"in t?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(o===!1)return!1;const r=e.reduce((s,i)=>{const l=i.attribute.parseHTML?i.attribute.parseHTML(n):Vte(n.getAttribute(i.name));return l==null?s:{...s,[i.name]:l}},{});return{...o,...r}}}}function qS(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&Dte(n)?!1:n!=null))}function Bte(t,e){var n;const o=jA(t),{nodeExtensions:r,markExtensions:s}=Bg(t),i=(n=r.find(u=>ot(u,"topNode")))===null||n===void 0?void 0:n.name,l=Object.fromEntries(r.map(u=>{const c=o.filter(m=>m.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},f=t.reduce((m,C)=>{const y=ot(C,"extendNodeSchema",d);return{...m,...y?y(u):{}}},{}),h=qS({...f,content:_t(ot(u,"content",d)),marks:_t(ot(u,"marks",d)),group:_t(ot(u,"group",d)),inline:_t(ot(u,"inline",d)),atom:_t(ot(u,"atom",d)),selectable:_t(ot(u,"selectable",d)),draggable:_t(ot(u,"draggable",d)),code:_t(ot(u,"code",d)),whitespace:_t(ot(u,"whitespace",d)),defining:_t(ot(u,"defining",d)),isolating:_t(ot(u,"isolating",d)),attrs:Object.fromEntries(c.map(m=>{var C;return[m.name,{default:(C=m==null?void 0:m.attribute)===null||C===void 0?void 0:C.default}]}))}),p=_t(ot(u,"parseHTML",d));p&&(h.parseDOM=p.map(m=>WS(m,c)));const g=ot(u,"renderHTML",d);g&&(h.toDOM=m=>g({node:m,HTMLAttributes:Lb(m,c)}));const v=ot(u,"renderText",d);return v&&(h.toText=v),[u.name,h]})),a=Object.fromEntries(s.map(u=>{const c=o.filter(v=>v.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},f=t.reduce((v,m)=>{const C=ot(m,"extendMarkSchema",d);return{...v,...C?C(u):{}}},{}),h=qS({...f,inclusive:_t(ot(u,"inclusive",d)),excludes:_t(ot(u,"excludes",d)),group:_t(ot(u,"group",d)),spanning:_t(ot(u,"spanning",d)),code:_t(ot(u,"code",d)),attrs:Object.fromEntries(c.map(v=>{var m;return[v.name,{default:(m=v==null?void 0:v.attribute)===null||m===void 0?void 0:m.default}]}))}),p=_t(ot(u,"parseHTML",d));p&&(h.parseDOM=p.map(v=>WS(v,c)));const g=ot(u,"renderHTML",d);return g&&(h.toDOM=v=>g({mark:v,HTMLAttributes:Lb(v,c)})),[u.name,h]}));return new D_({topNode:i,nodes:l,marks:a})}function Km(t,e){return e.nodes[t]||e.marks[t]||null}function GS(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const Fte=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,s,i,l)=>{var a,u;const c=((u=(a=r.type.spec).toText)===null||u===void 0?void 0:u.call(a,{node:r,pos:s,parent:i,index:l}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?c:c.slice(0,Math.max(0,o-s))}),n};function Ly(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Fg{constructor(e){this.find=e.find,this.handler=e.handler}}const zte=(t,e)=>{if(Ly(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith),o.push(n.replaceWith)),o};function ih(t){var e;const{editor:n,from:o,to:r,text:s,rules:i,plugin:l}=t,{view:a}=n;if(a.composing)return!1;const u=a.state.doc.resolve(o);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(f=>f.type.spec.code))return!1;let c=!1;const d=Fte(u)+s;return i.forEach(f=>{if(c)return;const h=zte(d,f.find);if(!h)return;const p=a.state.tr,g=Dg({state:a.state,transaction:p}),v={from:o-(h[0].length-s.length),to:r},{commands:m,chain:C,can:y}=new Vg({editor:n,state:g});f.handler({state:g,range:v,match:h,commands:m,chain:C,can:y})===null||!p.steps.length||(p.setMeta(l,{transform:p,from:o,to:r,text:s}),a.dispatch(p),c=!0)}),c}function jte(t){const{editor:e,rules:n}=t,o=new Fo({state:{init(){return null},apply(r,s){const i=r.getMeta(o);if(i)return i;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{const{from:u,text:c}=l,d=u+c.length;ih({editor:e,from:u,to:d,text:c,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:s}},props:{handleTextInput(r,s,i,l){return ih({editor:e,from:s,to:i,text:l,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:s}=r.state.selection;s&&ih({editor:e,from:s.pos,to:s.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(r,s){if(s.key!=="Enter")return!1;const{$cursor:i}=r.state.selection;return i?ih({editor:e,from:i.pos,to:i.pos,text:` +`,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function Hte(t){return Object.prototype.toString.call(t).slice(8,-1)}function lh(t){return Hte(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function zg(t,e){const n={...t};return lh(t)&&lh(e)&&Object.keys(e).forEach(o=>{lh(e[o])&&lh(t[o])?n[o]=zg(t[o],e[o]):n[o]=e[o]}),n}class rs{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=_t(ot(this,"addOptions",{name:this.name}))),this.storage=_t(ot(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new rs(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zg(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new rs(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,n.options=_t(ot(n,"addOptions",{name:n.name})),n.storage=_t(ot(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:o}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const i=r.marks();if(!!!i.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const a=i.find(u=>(u==null?void 0:u.type.name)===n.name);return a&&o.removeStoredMark(a),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function Ute(t){return typeof t=="number"}class Wte{constructor(e){this.find=e.find,this.handler=e.handler}}const qte=(t,e,n)=>{if(Ly(e))return[...t.matchAll(e)];const o=e(t,n);return o?o.map(r=>{const s=[r.text];return s.index=r.index,s.input=t,s.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith),s.push(r.replaceWith)),s}):[]};function Gte(t){const{editor:e,state:n,from:o,to:r,rule:s,pasteEvent:i,dropEvent:l}=t,{commands:a,chain:u,can:c}=new Vg({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(h,p)=>{if(!h.isTextblock||h.type.spec.code)return;const g=Math.max(o,p),v=Math.min(r,p+h.content.size),m=h.textBetween(g-p,v-p,void 0,"");qte(m,s.find,i).forEach(y=>{if(y.index===void 0)return;const b=g+y.index+1,S=b+y[0].length,T={from:n.tr.mapping.map(b),to:n.tr.mapping.map(S)},O=s.handler({state:n,range:T,match:y,commands:a,chain:u,can:c,pasteEvent:i,dropEvent:l});d.push(O)})}),d.every(h=>h!==null)}const Kte=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function Jte(t){const{editor:e,rules:n}=t;let o=null,r=!1,s=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l=typeof DragEvent<"u"?new DragEvent("drop"):null;const a=({state:c,from:d,to:f,rule:h,pasteEvt:p})=>{const g=c.tr,v=Dg({state:c,transaction:g});if(!(!Gte({editor:e,state:v,from:Math.max(d-1,0),to:f.b-1,rule:h,pasteEvent:p,dropEvent:l})||!g.steps.length))return l=typeof DragEvent<"u"?new DragEvent("drop"):null,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g};return n.map(c=>new Fo({view(d){const f=h=>{var p;o=!((p=d.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(s=o===d.dom.parentElement,l=f,!1),paste:(d,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return i=f,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,h)=>{const p=d[0],g=p.getMeta("uiEvent")==="paste"&&!r,v=p.getMeta("uiEvent")==="drop"&&!s,m=p.getMeta("applyPasteRules"),C=!!m;if(!g&&!v&&!C)return;if(C){const{from:S,text:T}=m,O=S+T.length,k=Kte(T);return a({rule:c,state:h,from:S,to:{b:O},pasteEvt:k})}const y=f.doc.content.findDiffStart(h.doc.content),b=f.doc.content.findDiffEnd(h.doc.content);if(!(!Ute(y)||!b||y===b.b))return a({rule:c,state:h,from:y,to:b,pasteEvt:i})}}))}function Yte(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class Ya{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Ya.resolve(e),this.schema=Bte(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Ya.sort(Ya.flatten(e));return Yte(n.map(r=>r.name)).length,n}static flatten(e){return e.map(n=>{const o={name:n.name,options:n.options,storage:n.storage},r=ot(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const s=ot(o,"priority")||100,i=ot(r,"priority")||100;return s>i?-1:s{const o={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Km(n.name,this.schema)},r=ot(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=Ya.sort([...this.extensions].reverse()),o=[],r=[],s=n.map(i=>{const l={name:i.name,options:i.options,storage:i.storage,editor:e,type:Km(i.name,this.schema)},a=[],u=ot(i,"addKeyboardShortcuts",l);let c={};if(i.type==="mark"&&ot(i,"exitable",l)&&(c.ArrowRight=()=>rs.handleExit({editor:e,mark:i})),u){const g=Object.fromEntries(Object.entries(u()).map(([v,m])=>[v,()=>m({editor:e})]));c={...c,...g}}const d=cte(c);a.push(d);const f=ot(i,"addInputRules",l);GS(i,e.options.enableInputRules)&&f&&o.push(...f());const h=ot(i,"addPasteRules",l);GS(i,e.options.enablePasteRules)&&h&&r.push(...h());const p=ot(i,"addProseMirrorPlugins",l);if(p){const g=p();a.push(...g)}return a}).flat();return[jte({editor:e,rules:o}),...Jte({editor:e,rules:r}),...s]}get attributes(){return jA(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Bg(this.extensions);return Object.fromEntries(n.filter(o=>!!ot(o,"addNodeView")).map(o=>{const r=this.attributes.filter(a=>a.type===o.name),s={name:o.name,options:o.options,storage:o.storage,editor:e,type:Zn(o.name,this.schema)},i=ot(o,"addNodeView",s);if(!i)return[];const l=(a,u,c,d,f)=>{const h=Lb(a,r);return i()({node:a,view:u,getPos:c,decorations:d,innerDecorations:f,editor:e,extension:o,HTMLAttributes:h})};return[o.name,l]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const o={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Km(e.name,this.schema)};e.type==="mark"&&(!((n=_t(ot(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=ot(e,"onBeforeCreate",o),s=ot(e,"onCreate",o),i=ot(e,"onUpdate",o),l=ot(e,"onSelectionUpdate",o),a=ot(e,"onTransaction",o),u=ot(e,"onFocus",o),c=ot(e,"onBlur",o),d=ot(e,"onDestroy",o);r&&this.editor.on("beforeCreate",r),s&&this.editor.on("create",s),i&&this.editor.on("update",i),l&&this.editor.on("selectionUpdate",l),a&&this.editor.on("transaction",a),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class eo{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=_t(ot(this,"addOptions",{name:this.name}))),this.storage=_t(ot(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new eo(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zg(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new eo({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,n.options=_t(ot(n,"addOptions",{name:n.name})),n.storage=_t(ot(n,"addStorage",{name:n.name,options:n.options})),n}}function UA(t,e,n){const{from:o,to:r}=e,{blockSeparator:s=` + +`,textSerializers:i={}}=n||{};let l="";return t.nodesBetween(o,r,(a,u,c,d)=>{var f;a.isBlock&&u>o&&(l+=s);const h=i==null?void 0:i[a.type.name];if(h)return c&&(l+=h({node:a,pos:u,parent:c,index:d,range:e})),!1;a.isText&&(l+=(f=a==null?void 0:a.text)===null||f===void 0?void 0:f.slice(Math.max(o,u)-u,r-u))}),l}function WA(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Xte=eo.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Fo({key:new ds("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:s}=r,i=Math.min(...s.map(c=>c.$from.pos)),l=Math.max(...s.map(c=>c.$to.pos)),a=WA(n);return UA(o,{from:i,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),Zte=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),Qte=(t=!1)=>({commands:e})=>e.setContent("",t),ene=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:s,$to:i})=>{t.doc.nodesBetween(s.pos,i.pos,(l,a)=>{if(l.type.isText)return;const{doc:u,mapping:c}=e,d=u.resolve(c.map(a)),f=u.resolve(c.map(a+l.nodeSize)),h=d.blockRange(f);if(!h)return;const p=lc(h);if(l.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(h.start,g)}(p||p===0)&&e.lift(h,p)})}),!0},tne=t=>e=>t(e),nne=()=>({state:t,dispatch:e})=>Ste(t,e),one=(t,e)=>({editor:n,tr:o})=>{const{state:r}=n,s=r.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const i=o.mapping.map(e);return o.insert(i,s.content),o.setSelection(new Ct(o.doc.resolve(i-1))),!0},rne=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const r=t.selection.$anchor;for(let s=r.depth;s>0;s-=1)if(r.node(s).type===o.type){if(e){const l=r.before(s),a=r.after(s);t.delete(l,a).scrollIntoView()}return!0}return!1},sne=t=>({tr:e,state:n,dispatch:o})=>{const r=Zn(t,n.schema),s=e.selection.$anchor;for(let i=s.depth;i>0;i-=1)if(s.node(i).type===r){if(o){const a=s.before(i),u=s.after(i);e.delete(a,u).scrollIntoView()}return!0}return!1},ine=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},lne=()=>({state:t,dispatch:e})=>dte(t,e),ane=()=>({commands:t})=>t.keyboardShortcut("Enter"),une=()=>({state:t,dispatch:e})=>xte(t,e);function bp(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:Ly(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Rb(t,e,n={}){return t.find(o=>o.type===e&&bp(o.attrs,n))}function cne(t,e,n={}){return!!Rb(t,e,n)}function Ry(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(u=>u.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(u=>u.type===e))return;const r=Rb([...o.node.marks],e,n);if(!r)return;let s=o.index,i=t.start()+o.offset,l=s+1,a=i+o.node.nodeSize;for(Rb([...o.node.marks],e,n);s>0&&r.isInSet(t.parent.child(s-1).marks);)s-=1,i-=t.parent.child(s).nodeSize;for(;l({tr:n,state:o,dispatch:r})=>{const s=Ol(t,o.schema),{doc:i,selection:l}=n,{$from:a,from:u,to:c}=l;if(r){const d=Ry(a,s,e);if(d&&d.from<=u&&d.to>=c){const f=Ct.create(i,d.from,d.to);n.setSelection(f)}}return!0},fne=t=>e=>{const n=typeof t=="function"?t(e):t;for(let o=0;o({editor:n,view:o,tr:r,dispatch:s})=>{e={scrollIntoView:!0,...e};const i=()=>{Dy()&&o.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(o.hasFocus()&&t===null||t===!1)return!0;if(s&&t===null&&!$y(n.state.selection))return i(),!0;const l=qA(r.doc,t)||n.state.selection,a=n.state.selection.eq(l);return s&&(a||r.setSelection(l),a&&r.storedMarks&&r.setStoredMarks(r.storedMarks),i()),!0},pne=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),gne=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),GA=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?t.removeChild(o):o.nodeType===1&&GA(o)}return t};function ah(t){const e=`${t}`,n=new window.DOMParser().parseFromString(e,"text/html").body;return GA(n)}function yp(t,e,n){n={slice:!0,parseOptions:{},...n};const o=typeof t=="object"&&t!==null,r=typeof t=="string";if(o)try{if(Array.isArray(t)&&t.length>0)return Ie.fromArray(t.map(l=>e.nodeFromJSON(l)));const i=e.nodeFromJSON(t);return n.errorOnInvalidContent&&i.check(),i}catch(s){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return yp("",e,n)}if(r){if(n.errorOnInvalidContent){let i=!1,l="";const a=new D_({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,l=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Qc.fromSchema(a).parseSlice(ah(t),n.parseOptions):Qc.fromSchema(a).parse(ah(t),n.parseOptions),n.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const s=Qc.fromSchema(e);return n.slice?s.parseSlice(ah(t),n.parseOptions).content:s.parse(ah(t),n.parseOptions)}return yp("",e,n)}function mne(t,e,n){const o=t.steps.length-1;if(o{i===0&&(i=c)}),t.setSelection(Et.near(t.doc.resolve(i),n))}const vne=t=>!("type"in t),bne=(t,e,n)=>({tr:o,dispatch:r,editor:s})=>{var i;if(r){n={parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let l;try{l=yp(e,s.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(i=n.errorOnInvalidContent)!==null&&i!==void 0?i:s.options.enableContentCheck})}catch(p){return s.emit("contentError",{editor:s,error:p,disableCollaboration:()=>{s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}}),!1}let{from:a,to:u}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,d=!0;if((vne(l)?l:[l]).forEach(p=>{p.check(),c=c?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),a===u&&d){const{parent:p}=o.doc.resolve(a);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(a-=1,u+=1)}let h;c?(Array.isArray(e)?h=e.map(p=>p.text||"").join(""):typeof e=="object"&&e&&e.text?h=e.text:h=e,o.insertText(h,a,u)):(h=l,o.replaceWith(a,u,h)),n.updateSelection&&mne(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:a,text:h}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:a,text:h})}return!0},yne=()=>({state:t,dispatch:e})=>bte(t,e),wne=()=>({state:t,dispatch:e})=>yte(t,e),Cne=()=>({state:t,dispatch:e})=>fte(t,e),xne=()=>({state:t,dispatch:e})=>mte(t,e),Sne=()=>({state:t,dispatch:e,tr:n})=>{try{const o=Pg(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Ene=()=>({state:t,dispatch:e,tr:n})=>{try{const o=Pg(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Tne=()=>({state:t,dispatch:e})=>hte(t,e),One=()=>({state:t,dispatch:e})=>pte(t,e);function KA(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function kne(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let o,r,s,i;for(let l=0;l({editor:e,view:n,tr:o,dispatch:r})=>{const s=kne(t).split(/-(?!$)/),i=s.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,l))});return a==null||a.steps.forEach(u=>{const c=u.map(o.mapping);c&&r&&o.maybeStep(c)}),!0};function Bd(t,e,n={}){const{from:o,to:r,empty:s}=t.selection,i=e?Zn(e,t.schema):null,l=[];t.doc.nodesBetween(o,r,(d,f)=>{if(d.isText)return;const h=Math.max(o,f),p=Math.min(r,f+d.nodeSize);l.push({node:d,from:h,to:p})});const a=r-o,u=l.filter(d=>i?i.name===d.node.type.name:!0).filter(d=>bp(d.node.attrs,n,{strict:!1}));return s?!!u.length:u.reduce((d,f)=>d+f.to-f.from,0)>=a}const _ne=(t,e={})=>({state:n,dispatch:o})=>{const r=Zn(t,n.schema);return Bd(n,r,e)?wte(n,o):!1},Ane=()=>({state:t,dispatch:e})=>Ete(t,e),Pne=t=>({state:e,dispatch:n})=>{const o=Zn(t,e.schema);return Nte(o)(e,n)},Nne=()=>({state:t,dispatch:e})=>Cte(t,e);function jg(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function KS(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((o,r)=>(n.includes(r)||(o[r]=t[r]),o),{})}const Ine=(t,e)=>({tr:n,state:o,dispatch:r})=>{let s=null,i=null;const l=jg(typeof t=="string"?t:t.name,o.schema);return l?(l==="node"&&(s=Zn(t,o.schema)),l==="mark"&&(i=Ol(t,o.schema)),r&&n.selection.ranges.forEach(a=>{o.doc.nodesBetween(a.$from.pos,a.$to.pos,(u,c)=>{s&&s===u.type&&n.setNodeMarkup(c,void 0,KS(u.attrs,e)),i&&u.marks.length&&u.marks.forEach(d=>{i===d.type&&n.addMark(c,c+u.nodeSize,i.create(KS(d.attrs,e)))})})}),!0):!1},Lne=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Rne=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),$ne=()=>({state:t,dispatch:e})=>gte(t,e),Dne=()=>({state:t,dispatch:e})=>vte(t,e),Vne=()=>({state:t,dispatch:e})=>Tte(t,e),Bne=()=>({state:t,dispatch:e})=>Mte(t,e),Fne=()=>({state:t,dispatch:e})=>kte(t,e);function $b(t,e,n={},o={}){return yp(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const zne=(t,e=!1,n={},o={})=>({editor:r,tr:s,dispatch:i,commands:l})=>{var a,u;const{doc:c}=s;if(n.preserveWhitespace!=="full"){const d=$b(t,r.schema,n,{errorOnInvalidContent:(a=o.errorOnInvalidContent)!==null&&a!==void 0?a:r.options.enableContentCheck});return i&&s.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!e),!0}return i&&s.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:c.content.size},t,{parseOptions:n,errorOnInvalidContent:(u=o.errorOnInvalidContent)!==null&&u!==void 0?u:r.options.enableContentCheck})};function Vy(t,e){const n=Ol(e,t.schema),{from:o,to:r,empty:s}=t.selection,i=[];s?(t.storedMarks&&i.push(...t.storedMarks),i.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,r,a=>{i.push(...a.marks)});const l=i.find(a=>a.type.name===n.name);return l?{...l.attrs}:{}}function jne(t){for(let e=0;e0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function By(t){return e=>Hne(e.$from,t)}function Une(t,e){const n=Pa.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function Wne(t,e){const n={from:0,to:t.content.size};return UA(t,n,e)}function qne(t,e){const n=Zn(e,t.schema),{from:o,to:r}=t.selection,s=[];t.doc.nodesBetween(o,r,l=>{s.push(l)});const i=s.reverse().find(l=>l.type.name===n.name);return i?{...i.attrs}:{}}function Gne(t,e){const n=jg(typeof e=="string"?e:e.name,t.schema);return n==="node"?qne(t,e):n==="mark"?Vy(t,e):{}}function JA(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const s=n.resolve(t),i=Ry(s,r.type);i&&o.push({mark:r,...i})}):n.nodesBetween(t,e,(r,s)=>{!r||(r==null?void 0:r.nodeSize)===void 0||o.push(...r.marks.map(i=>({from:s,to:s+r.nodeSize,mark:i})))}),o}function Rh(t,e,n){return Object.fromEntries(Object.entries(n).filter(([o])=>{const r=t.find(s=>s.type===e&&s.name===o);return r?r.attribute.keepOnSplit:!1}))}function Db(t,e,n={}){const{empty:o,ranges:r}=t.selection,s=e?Ol(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>bp(d.attrs,n,{strict:!1}));let i=0;const l=[];if(r.forEach(({$from:d,$to:f})=>{const h=d.pos,p=f.pos;t.doc.nodesBetween(h,p,(g,v)=>{if(!g.isText&&!g.marks.length)return;const m=Math.max(h,v),C=Math.min(p,v+g.nodeSize),y=C-m;i+=y,l.push(...g.marks.map(b=>({mark:b,from:m,to:C})))})}),i===0)return!1;const a=l.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>bp(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),u=l.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,f)=>d+f.to-f.from,0);return(a>0?a+u:a)>=i}function Kne(t,e,n={}){if(!e)return Bd(t,null,n)||Db(t,null,n);const o=jg(e,t.schema);return o==="node"?Bd(t,e,n):o==="mark"?Db(t,e,n):!1}function JS(t,e){const{nodeExtensions:n}=Bg(e),o=n.find(i=>i.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},s=_t(ot(o,"group",r));return typeof s!="string"?!1:s.split(" ").includes("list")}function Fy(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var o;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((o=t.text)!==null&&o!==void 0?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(s=>{r!==!1&&(Fy(s,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function YA(t){return t instanceof dt}function Jne(t,e,n){const r=t.state.doc.content.size,s=oi(e,0,r),i=oi(n,0,r),l=t.coordsAtPos(s),a=t.coordsAtPos(i,-1),u=Math.min(l.top,a.top),c=Math.max(l.bottom,a.bottom),d=Math.min(l.left,a.left),f=Math.max(l.right,a.right),h=f-d,p=c-u,m={top:u,bottom:c,left:d,right:f,width:h,height:p,x:d,y:u};return{...m,toJSON:()=>m}}function Yne(t,e,n){var o;const{selection:r}=e;let s=null;if($y(r)&&(s=r.$cursor),s){const l=(o=t.storedMarks)!==null&&o!==void 0?o:s.marks();return!!n.isInSet(l)||!l.some(a=>a.type.excludes(n))}const{ranges:i}=r;return i.some(({$from:l,$to:a})=>{let u=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(l.pos,a.pos,(c,d,f)=>{if(u)return!1;if(c.isInline){const h=!f||f.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(g=>g.type.excludes(n));u=h&&p}return!u}),u})}const Xne=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:s}=n,{empty:i,ranges:l}=s,a=Ol(t,o.schema);if(r)if(i){const u=Vy(o,a);n.addStoredMark(a.create({...u,...e}))}else l.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;o.doc.nodesBetween(c,d,(f,h)=>{const p=Math.max(h,c),g=Math.min(h+f.nodeSize,d);f.marks.find(m=>m.type===a)?f.marks.forEach(m=>{a===m.type&&n.addMark(p,g,a.create({...m.attrs,...e}))}):n.addMark(p,g,a.create(e))})});return Yne(o,n,a)},Zne=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Qne=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const s=Zn(t,n.schema);return s.isTextblock?r().command(({commands:i})=>US(s,e)(n)?!0:i.clearNodes()).command(({state:i})=>US(s,e)(i,o)).run():!1},eoe=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=oi(t,0,o.content.size),s=dt.create(o,r);e.setSelection(s)}return!0},toe=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:s}=typeof t=="number"?{from:t,to:t}:t,i=Ct.atStart(o).from,l=Ct.atEnd(o).to,a=oi(r,i,l),u=oi(s,i,l),c=Ct.create(o,a,u);e.setSelection(c)}return!0},noe=t=>({state:e,dispatch:n})=>{const o=Zn(t,e.schema);return Rte(o)(e,n)};function YS(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(o)}}const ooe=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:s,doc:i}=e,{$from:l,$to:a}=s,u=r.extensionManager.attributes,c=Rh(u,l.node().type.name,l.node().attrs);if(s instanceof dt&&s.node.isBlock)return!l.parentOffset||!su(i,l.pos)?!1:(o&&(t&&YS(n,r.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const d=a.parentOffset===a.parent.content.size,f=l.depth===0?void 0:jne(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=d&&f?[{type:f,attrs:c}]:void 0,p=su(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!p&&su(e.doc,e.mapping.map(l.pos),1,f?[{type:f}]:void 0)&&(p=!0,h=f?[{type:f,attrs:c}]:void 0),o){if(p&&(s instanceof Ct&&e.deleteSelection(),e.split(e.mapping.map(l.pos),1,h),f&&!d&&!l.parentOffset&&l.parent.type!==f)){const g=e.mapping.map(l.before()),v=e.doc.resolve(g);l.node(-1).canReplaceWith(v.index(),v.index()+1,f)&&e.setNodeMarkup(e.mapping.map(l.before()),f)}t&&YS(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},roe=(t,e={})=>({tr:n,state:o,dispatch:r,editor:s})=>{var i;const l=Zn(t,o.schema),{$from:a,$to:u}=o.selection,c=o.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(u))return!1;const d=a.node(-1);if(d.type!==l)return!1;const f=s.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==l||a.index(-2)!==a.node(-2).childCount-1)return!1;if(r){let m=Ie.empty;const C=a.index(-1)?1:a.index(-2)?2:3;for(let k=a.depth-C;k>=a.depth-3;k-=1)m=Ie.from(a.node(k).copy(m));const y=a.indexAfter(-1){if(O>-1)return!1;k.isTextblock&&k.content.size===0&&(O=P+1)}),O>-1&&n.setSelection(Ct.near(n.doc.resolve(O))),n.scrollIntoView()}return!0}const h=u.pos===a.end()?d.contentMatchAt(0).defaultType:null,p={...Rh(f,d.type.name,d.attrs),...e},g={...Rh(f,a.node().type.name,a.node().attrs),...e};n.delete(a.pos,u.pos);const v=h?[{type:l,attrs:p},{type:h,attrs:g}]:[{type:l,attrs:p}];if(!su(n.doc,a.pos,2))return!1;if(r){const{selection:m,storedMarks:C}=o,{splittableMarks:y}=s.extensionManager,b=C||m.$to.parentOffset&&m.$from.marks();if(n.split(a.pos,2,v).scrollIntoView(),!b||!r)return!0;const S=b.filter(T=>y.includes(T.type.name));n.ensureMarks(S)}return!0},Jm=(t,e)=>{const n=By(i=>i.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&El(t.doc,n.pos)&&t.join(n.pos),!0},Ym=(t,e)=>{const n=By(i=>i.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&El(t.doc,o)&&t.join(o),!0},soe=(t,e,n,o={})=>({editor:r,tr:s,state:i,dispatch:l,chain:a,commands:u,can:c})=>{const{extensions:d,splittableMarks:f}=r.extensionManager,h=Zn(t,i.schema),p=Zn(e,i.schema),{selection:g,storedMarks:v}=i,{$from:m,$to:C}=g,y=m.blockRange(C),b=v||g.$to.parentOffset&&g.$from.marks();if(!y)return!1;const S=By(T=>JS(T.type.name,d))(g);if(y.depth>=1&&S&&y.depth-S.depth<=1){if(S.node.type===h)return u.liftListItem(p);if(JS(S.node.type.name,d)&&h.validContent(S.node.content)&&l)return a().command(()=>(s.setNodeMarkup(S.pos,h),!0)).command(()=>Jm(s,h)).command(()=>Ym(s,h)).run()}return!n||!b||!l?a().command(()=>c().wrapInList(h,o)?!0:u.clearNodes()).wrapInList(h,o).command(()=>Jm(s,h)).command(()=>Ym(s,h)).run():a().command(()=>{const T=c().wrapInList(h,o),O=b.filter(k=>f.includes(k.type.name));return s.ensureMarks(O),T?!0:u.clearNodes()}).wrapInList(h,o).command(()=>Jm(s,h)).command(()=>Ym(s,h)).run()},ioe=(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:s=!1}=n,i=Ol(t,o.schema);return Db(o,i,e)?r.unsetMark(i,{extendEmptyMarkRange:s}):r.setMark(i,e)},loe=(t,e,n={})=>({state:o,commands:r})=>{const s=Zn(t,o.schema),i=Zn(e,o.schema),l=Bd(o,s,n);let a;return o.selection.$anchor.sameParent(o.selection.$head)&&(a=o.selection.$anchor.parent.attrs),l?r.setNode(i,a):r.setNode(s,{...a,...n})},aoe=(t,e={})=>({state:n,commands:o})=>{const r=Zn(t,n.schema);return Bd(n,r,e)?o.lift(r):o.wrapIn(r,e)},uoe=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o=0;a-=1)i.step(l.steps[a].invert(l.docs[a]));if(s.text){const a=i.doc.resolve(s.from).marks();i.replaceWith(s.from,s.to,t.schema.text(s.text,a))}else i.delete(s.from,s.to)}return!0}}return!1},coe=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:r}=n;return o||e&&r.forEach(s=>{t.removeMark(s.$from.pos,s.$to.pos)}),!0},doe=(t,e={})=>({tr:n,state:o,dispatch:r})=>{var s;const{extendEmptyMarkRange:i=!1}=e,{selection:l}=n,a=Ol(t,o.schema),{$from:u,empty:c,ranges:d}=l;if(!r)return!0;if(c&&i){let{from:f,to:h}=l;const p=(s=u.marks().find(v=>v.type===a))===null||s===void 0?void 0:s.attrs,g=Ry(u,a,p);g&&(f=g.from,h=g.to),n.removeMark(f,h,a)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,a)});return n.removeStoredMark(a),!0},foe=(t,e={})=>({tr:n,state:o,dispatch:r})=>{let s=null,i=null;const l=jg(typeof t=="string"?t:t.name,o.schema);return l?(l==="node"&&(s=Zn(t,o.schema)),l==="mark"&&(i=Ol(t,o.schema)),r&&n.selection.ranges.forEach(a=>{const u=a.$from.pos,c=a.$to.pos;o.doc.nodesBetween(u,c,(d,f)=>{s&&s===d.type&&n.setNodeMarkup(f,void 0,{...d.attrs,...e}),i&&d.marks.length&&d.marks.forEach(h=>{if(i===h.type){const p=Math.max(f,u),g=Math.min(f+d.nodeSize,c);n.addMark(p,g,i.create({...h.attrs,...e}))}})})}),!0):!1},hoe=(t,e={})=>({state:n,dispatch:o})=>{const r=Zn(t,n.schema);return _te(r,e)(n,o)},poe=(t,e={})=>({state:n,dispatch:o})=>{const r=Zn(t,n.schema);return Ate(r,e)(n,o)};var goe=Object.freeze({__proto__:null,blur:Zte,clearContent:Qte,clearNodes:ene,command:tne,createParagraphNear:nne,cut:one,deleteCurrentNode:rne,deleteNode:sne,deleteRange:ine,deleteSelection:lne,enter:ane,exitCode:une,extendMarkRange:dne,first:fne,focus:hne,forEach:pne,insertContent:gne,insertContentAt:bne,joinBackward:Cne,joinDown:wne,joinForward:xne,joinItemBackward:Sne,joinItemForward:Ene,joinTextblockBackward:Tne,joinTextblockForward:One,joinUp:yne,keyboardShortcut:Mne,lift:_ne,liftEmptyBlock:Ane,liftListItem:Pne,newlineInCode:Nne,resetAttributes:Ine,scrollIntoView:Lne,selectAll:Rne,selectNodeBackward:$ne,selectNodeForward:Dne,selectParentNode:Vne,selectTextblockEnd:Bne,selectTextblockStart:Fne,setContent:zne,setMark:Xne,setMeta:Zne,setNode:Qne,setNodeSelection:eoe,setTextSelection:toe,sinkListItem:noe,splitBlock:ooe,splitListItem:roe,toggleList:soe,toggleMark:ioe,toggleNode:loe,toggleWrap:aoe,undoInputRule:uoe,unsetAllMarks:coe,unsetMark:doe,updateAttributes:foe,wrapIn:hoe,wrapInList:poe});const moe=eo.create({name:"commands",addCommands(){return{...goe}}}),voe=eo.create({name:"drop",addProseMirrorPlugins(){return[new Fo({key:new ds("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),boe=eo.create({name:"editable",addProseMirrorPlugins(){return[new Fo({key:new ds("editable"),props:{editable:()=>this.editor.options.editable}})]}}),yoe=eo.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Fo({key:new ds("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),woe=eo.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:i})=>[()=>i.undoInputRule(),()=>i.command(({tr:l})=>{const{selection:a,doc:u}=l,{empty:c,$anchor:d}=a,{pos:f,parent:h}=d,p=d.parent.isTextblock&&f>0?l.doc.resolve(f-1):d,g=p.parent.type.spec.isolating,v=d.pos-d.parentOffset,m=g&&p.parent.childCount===1?v===d.pos:Et.atStart(u).from===f;return!c||!h.type.isTextblock||h.textContent.length||!m||m&&d.parent.type.name==="paragraph"?!1:i.clearNodes()}),()=>i.deleteSelection(),()=>i.joinBackward(),()=>i.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:i})=>[()=>i.deleteSelection(),()=>i.deleteCurrentNode(),()=>i.joinForward(),()=>i.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:i})=>[()=>i.newlineInCode(),()=>i.createParagraphNear(),()=>i.liftEmptyBlock(),()=>i.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...o},s={...o,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Dy()||KA()?s:r},addProseMirrorPlugins(){return[new Fo({key:new ds("clearDocument"),appendTransaction:(t,e,n)=>{const o=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),r=t.some(g=>g.getMeta("preventClearDocument"));if(!o||r)return;const{empty:s,from:i,to:l}=e.selection,a=Et.atStart(e.doc).from,u=Et.atEnd(e.doc).to;if(s||!(i===a&&l===u)||!Fy(n.doc))return;const f=n.tr,h=Dg({state:n,transaction:f}),{commands:p}=new Vg({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),Coe=eo.create({name:"paste",addProseMirrorPlugins(){return[new Fo({key:new ds("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),xoe=eo.create({name:"tabindex",addProseMirrorPlugins(){return[new Fo({key:new ds("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Hl{get name(){return this.node.type.name}constructor(e,n,o=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,o=this.to;if(this.isBlock){if(this.content.size===0)return;n=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:n,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Hl(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Hl(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Hl(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const r=n.isBlock&&!n.isTextblock,s=n.isAtom&&!n.isText,i=this.pos+o+(s?0:1),l=this.resolvedPos.doc.resolve(i);if(!r&&l.depth<=this.depth)return;const a=new Hl(l,this.editor,r,r?n:null);r&&(a.actualDepth=this.depth+1),e.push(new Hl(l,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let o=null,r=this.parent;for(;r&&!o;){if(r.node.type.name===e)if(Object.keys(n).length>0){const s=r.node.attrs,i=Object.keys(n);for(let l=0;l{o&&r.length>0||(i.node.type.name===e&&s.every(a=>n[a]===i.node.attrs[a])&&r.push(i),!(o&&r.length>0)&&(r=r.concat(i.querySelectorAll(e,n,o))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const Soe=`.ProseMirror { + position: relative; +} + +.ProseMirror { + word-wrap: break-word; + white-space: pre-wrap; + white-space: break-spaces; + -webkit-font-variant-ligatures: none; + font-variant-ligatures: none; + font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ +} + +.ProseMirror [contenteditable="false"] { + white-space: normal; +} + +.ProseMirror [contenteditable="false"] [contenteditable="true"] { + white-space: pre-wrap; +} + +.ProseMirror pre { + white-space: pre-wrap; +} + +img.ProseMirror-separator { + display: inline !important; + border: none !important; + margin: 0 !important; + width: 0 !important; + height: 0 !important; +} + +.ProseMirror-gapcursor { + display: none; + pointer-events: none; + position: absolute; + margin: 0; +} + +.ProseMirror-gapcursor:after { + content: ""; + display: block; + position: absolute; + top: -2px; + width: 20px; + border-top: 1px solid black; + animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; +} + +@keyframes ProseMirror-cursor-blink { + to { + visibility: hidden; + } +} + +.ProseMirror-hideselection *::selection { + background: transparent; +} + +.ProseMirror-hideselection *::-moz-selection { + background: transparent; +} + +.ProseMirror-hideselection * { + caret-color: transparent; +} + +.ProseMirror-focused .ProseMirror-gapcursor { + display: block; +} + +.tippy-box[data-animation=fade][data-state=hidden] { + opacity: 0 +}`;function Eoe(t,e,n){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}let Toe=class extends $te{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:o,moved:r})=>this.options.onDrop(n,o,r)),this.on("paste",({event:n,slice:o})=>this.options.onPaste(n,o)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Eoe(Soe,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const o=HA(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let o=n;if([].concat(e).forEach(s=>{const i=typeof s=="string"?`${s}$`:s.key;o=n.filter(l=>!l.key.startsWith(i))}),n.length===o.length)return;const r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[boe,Xte.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),moe,yoe,woe,xoe,voe,Coe].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new Ya(r,this)}createCommandManager(){this.commandManager=new Vg({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=$b(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(i=>i.name!=="collaboration"),this.createExtensionManager()}}),e=$b(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=qA(e,this.options.autofocus);this.view=new tte(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Ja.create({doc:e,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(i=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(i)});return}const n=this.state.apply(e),o=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),s=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Gne(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return Kne(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Une(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=` + +`,textSerializers:o={}}=e||{};return Wne(this.state.doc,{blockSeparator:n,textSerializers:{...WA(this.schema),...o}})}get isEmpty(){return Fy(this.state.doc)}getCharacterCount(){return this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,n))||null}$nodes(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Hl(n,this)}get $doc(){return this.$pos(0)}};function ba(t){return new Fg({find:t.find,handler:({state:e,range:n,match:o})=>{const r=_t(t.getAttributes,void 0,o);if(r===!1||r===null)return null;const{tr:s}=e,i=o[o.length-1],l=o[0];if(i){const a=l.search(/\S/),u=n.from+l.indexOf(i),c=u+i.length;if(JA(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===t.type&&g!==h.mark.type)).filter(h=>h.to>u).length)return null;cn.from&&s.delete(n.from+a,u);const f=n.from+a+i.length;s.addMark(n.from+a,f,t.type.create(r||{})),s.removeStoredMark(t.type)}}})}function Ooe(t){return new Fg({find:t.find,handler:({state:e,range:n,match:o})=>{const r=_t(t.getAttributes,void 0,o)||{},{tr:s}=e,i=n.from;let l=n.to;const a=t.type.create(r);if(o[1]){const u=o[0].lastIndexOf(o[1]);let c=i+u;c>l?c=l:l=c+o[1].length;const d=o[0][o[0].length-1];s.insertText(d,i+o[0].length-1),s.replaceWith(c,l,a)}else if(o[0]){const u=t.type.isInline?i:i-1;s.insert(u,t.type.create(r)).delete(s.mapping.map(i),s.mapping.map(l))}s.scrollIntoView()}})}function Vb(t){return new Fg({find:t.find,handler:({state:e,range:n,match:o})=>{const r=e.doc.resolve(n.from),s=_t(t.getAttributes,void 0,o)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,s)}})}function Fd(t){return new Fg({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const s=_t(t.getAttributes,void 0,o)||{},i=e.tr.delete(n.from,n.to),a=i.doc.resolve(n.from).blockRange(),u=a&&xy(a,t.type,s);if(!u)return null;if(i.wrap(a,u),t.keepMarks&&t.editor){const{selection:d,storedMarks:f}=e,{splittableMarks:h}=t.editor.extensionManager,p=f||d.$to.parentOffset&&d.$from.marks();if(p){const g=p.filter(v=>h.includes(v.type.name));i.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,s).run()}const c=i.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&El(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,c))&&i.join(n.from-1)}})}let fs=class Bb{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=_t(ot(this,"addOptions",{name:this.name}))),this.storage=_t(ot(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Bb(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zg(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Bb(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,n.options=_t(ot(n,"addOptions",{name:n.name})),n.storage=_t(ot(n,"addStorage",{name:n.name,options:n.options})),n}};function ya(t){return new Wte({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const s=_t(t.getAttributes,void 0,o,r);if(s===!1||s===null)return null;const{tr:i}=e,l=o[o.length-1],a=o[0];let u=n.to;if(l){const c=a.search(/\S/),d=n.from+a.indexOf(l),f=d+l.length;if(JA(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(v=>v===t.type&&v!==p.mark.type)).filter(p=>p.to>d).length)return null;fn.from&&i.delete(n.from+c,d),u=n.from+c+l.length,i.addMark(n.from+c,u,t.type.create(s||{})),i.removeStoredMark(t.type)}}})}var koe="tippy-box",XA="tippy-content",Moe="tippy-backdrop",ZA="tippy-arrow",QA="tippy-svg-arrow",Vl={passive:!0,capture:!0},eP=function(){return document.body};function Xm(t,e,n){if(Array.isArray(t)){var o=t[e];return o??(Array.isArray(n)?n[e]:n)}return t}function zy(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function tP(t,e){return typeof t=="function"?t.apply(void 0,e):t}function XS(t,e){if(e===0)return t;var n;return function(o){clearTimeout(n),n=setTimeout(function(){t(o)},e)}}function _oe(t){return t.split(/\s+/).filter(Boolean)}function Ga(t){return[].concat(t)}function ZS(t,e){t.indexOf(e)===-1&&t.push(e)}function Aoe(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function Poe(t){return t.split("-")[0]}function wp(t){return[].slice.call(t)}function QS(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function od(){return document.createElement("div")}function Hg(t){return["Element","Fragment"].some(function(e){return zy(t,e)})}function Noe(t){return zy(t,"NodeList")}function Ioe(t){return zy(t,"MouseEvent")}function Loe(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Roe(t){return Hg(t)?[t]:Noe(t)?wp(t):Array.isArray(t)?t:wp(document.querySelectorAll(t))}function Zm(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function e2(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function $oe(t){var e,n=Ga(t),o=n[0];return o!=null&&(e=o.ownerDocument)!=null&&e.body?o.ownerDocument:document}function Doe(t,e){var n=e.clientX,o=e.clientY;return t.every(function(r){var s=r.popperRect,i=r.popperState,l=r.props,a=l.interactiveBorder,u=Poe(i.placement),c=i.modifiersData.offset;if(!c)return!0;var d=u==="bottom"?c.top.y:0,f=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,g=s.top-o+d>a,v=o-s.bottom-f>a,m=s.left-n+h>a,C=n-s.right-p>a;return g||v||m||C})}function Qm(t,e,n){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[o](r,n)})}function t2(t,e){for(var n=e;n;){var o;if(t.contains(n))return!0;n=n.getRootNode==null||(o=n.getRootNode())==null?void 0:o.host}return!1}var Ss={isTouch:!1},n2=0;function Voe(){Ss.isTouch||(Ss.isTouch=!0,window.performance&&document.addEventListener("mousemove",nP))}function nP(){var t=performance.now();t-n2<20&&(Ss.isTouch=!1,document.removeEventListener("mousemove",nP)),n2=t}function Boe(){var t=document.activeElement;if(Loe(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Foe(){document.addEventListener("touchstart",Voe,Vl),window.addEventListener("blur",Boe)}var zoe=typeof window<"u"&&typeof document<"u",joe=zoe?!!window.msCrypto:!1,Hoe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Uoe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Wr=Object.assign({appendTo:eP,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Hoe,Uoe),Woe=Object.keys(Wr),qoe=function(e){var n=Object.keys(e);n.forEach(function(o){Wr[o]=e[o]})};function oP(t){var e=t.plugins||[],n=e.reduce(function(o,r){var s=r.name,i=r.defaultValue;if(s){var l;o[s]=t[s]!==void 0?t[s]:(l=Wr[s])!=null?l:i}return o},{});return Object.assign({},t,n)}function Goe(t,e){var n=e?Object.keys(oP(Object.assign({},Wr,{plugins:e}))):Woe,o=n.reduce(function(r,s){var i=(t.getAttribute("data-tippy-"+s)||"").trim();if(!i)return r;if(s==="content")r[s]=i;else try{r[s]=JSON.parse(i)}catch{r[s]=i}return r},{});return o}function o2(t,e){var n=Object.assign({},e,{content:tP(e.content,[t])},e.ignoreAttributes?{}:Goe(t,e.plugins));return n.aria=Object.assign({},Wr.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}var Koe=function(){return"innerHTML"};function Fb(t,e){t[Koe()]=e}function r2(t){var e=od();return t===!0?e.className=ZA:(e.className=QA,Hg(t)?e.appendChild(t):Fb(e,t)),e}function s2(t,e){Hg(e.content)?(Fb(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Fb(t,e.content):t.textContent=e.content)}function zb(t){var e=t.firstElementChild,n=wp(e.children);return{box:e,content:n.find(function(o){return o.classList.contains(XA)}),arrow:n.find(function(o){return o.classList.contains(ZA)||o.classList.contains(QA)}),backdrop:n.find(function(o){return o.classList.contains(Moe)})}}function rP(t){var e=od(),n=od();n.className=koe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=od();o.className=XA,o.setAttribute("data-state","hidden"),s2(o,t.props),e.appendChild(n),n.appendChild(o),r(t.props,t.props);function r(s,i){var l=zb(e),a=l.box,u=l.content,c=l.arrow;i.theme?a.setAttribute("data-theme",i.theme):a.removeAttribute("data-theme"),typeof i.animation=="string"?a.setAttribute("data-animation",i.animation):a.removeAttribute("data-animation"),i.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?a.setAttribute("role",i.role):a.removeAttribute("role"),(s.content!==i.content||s.allowHTML!==i.allowHTML)&&s2(u,t.props),i.arrow?c?s.arrow!==i.arrow&&(a.removeChild(c),a.appendChild(r2(i.arrow))):a.appendChild(r2(i.arrow)):c&&a.removeChild(c)}return{popper:e,onUpdate:r}}rP.$$tippy=!0;var Joe=1,uh=[],ev=[];function Yoe(t,e){var n=o2(t,Object.assign({},Wr,oP(QS(e)))),o,r,s,i=!1,l=!1,a=!1,u=!1,c,d,f,h=[],p=XS(W,n.interactiveDebounce),g,v=Joe++,m=null,C=Aoe(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:v,reference:t,popper:od(),popperInstance:m,props:n,state:y,plugins:C,clearDelayTimeouts:Ne,setProps:We,setContent:ct,show:mt,hide:Ft,hideWithInteractivity:zt,enable:q,disable:ae,unmount:Me,destroy:Ge};if(!n.render)return b;var S=n.render(b),T=S.popper,O=S.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+b.id,b.popper=T,t._tippy=b,T._tippy=b;var k=C.map(function(de){return de.fn(b)}),P=t.hasAttribute("aria-expanded");return ke(),le(),K(),j("onCreate",[b]),n.showOnCreate&&we(),T.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&oe().addEventListener("mousemove",p)}),b;function I(){var de=b.props.touch;return Array.isArray(de)?de:[de,0]}function M(){return I()[0]==="hold"}function D(){var de;return!!((de=b.props.render)!=null&&de.$$tippy)}function J(){return g||t}function oe(){var de=J().parentNode;return de?$oe(de):document}function N(){return zb(T)}function A(de){return b.state.isMounted&&!b.state.isVisible||Ss.isTouch||c&&c.type==="focus"?0:Xm(b.props.delay,de?0:1,Wr.delay)}function K(de){de===void 0&&(de=!1),T.style.pointerEvents=b.props.interactive&&!de?"":"none",T.style.zIndex=""+b.props.zIndex}function j(de,Ae,Re){if(Re===void 0&&(Re=!0),k.forEach(function(z){z[de]&&z[de].apply(z,Ae)}),Re){var Ce;(Ce=b.props)[de].apply(Ce,Ae)}}function F(){var de=b.props.aria;if(de.content){var Ae="aria-"+de.content,Re=T.id,Ce=Ga(b.props.triggerTarget||t);Ce.forEach(function(z){var Ke=z.getAttribute(Ae);if(b.state.isVisible)z.setAttribute(Ae,Ke?Ke+" "+Re:Re);else{var He=Ke&&Ke.replace(Re,"").trim();He?z.setAttribute(Ae,He):z.removeAttribute(Ae)}})}}function le(){if(!(P||!b.props.aria.expanded)){var de=Ga(b.props.triggerTarget||t);de.forEach(function(Ae){b.props.interactive?Ae.setAttribute("aria-expanded",b.state.isVisible&&Ae===J()?"true":"false"):Ae.removeAttribute("aria-expanded")})}}function ue(){oe().removeEventListener("mousemove",p),uh=uh.filter(function(de){return de!==p})}function se(de){if(!(Ss.isTouch&&(a||de.type==="mousedown"))){var Ae=de.composedPath&&de.composedPath()[0]||de.target;if(!(b.props.interactive&&t2(T,Ae))){if(Ga(b.props.triggerTarget||t).some(function(Re){return t2(Re,Ae)})){if(Ss.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,de]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||Oe())}}}function Ee(){a=!0}function fe(){a=!1}function ve(){var de=oe();de.addEventListener("mousedown",se,!0),de.addEventListener("touchend",se,Vl),de.addEventListener("touchstart",fe,Vl),de.addEventListener("touchmove",Ee,Vl)}function Oe(){var de=oe();de.removeEventListener("mousedown",se,!0),de.removeEventListener("touchend",se,Vl),de.removeEventListener("touchstart",fe,Vl),de.removeEventListener("touchmove",Ee,Vl)}function ee(de,Ae){Z(de,function(){!b.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Ae()})}function ne(de,Ae){Z(de,Ae)}function Z(de,Ae){var Re=N().box;function Ce(z){z.target===Re&&(Qm(Re,"remove",Ce),Ae())}if(de===0)return Ae();Qm(Re,"remove",d),Qm(Re,"add",Ce),d=Ce}function ye(de,Ae,Re){Re===void 0&&(Re=!1);var Ce=Ga(b.props.triggerTarget||t);Ce.forEach(function(z){z.addEventListener(de,Ae,Re),h.push({node:z,eventType:de,handler:Ae,options:Re})})}function ke(){M()&&(ye("touchstart",$,{passive:!0}),ye("touchend",re,{passive:!0})),_oe(b.props.trigger).forEach(function(de){if(de!=="manual")switch(ye(de,$),de){case"mouseenter":ye("mouseleave",re);break;case"focus":ye(joe?"focusout":"blur",be);break;case"focusin":ye("focusout",be);break}})}function Xe(){h.forEach(function(de){var Ae=de.node,Re=de.eventType,Ce=de.handler,z=de.options;Ae.removeEventListener(Re,Ce,z)}),h=[]}function $(de){var Ae,Re=!1;if(!(!b.state.isEnabled||he(de)||l)){var Ce=((Ae=c)==null?void 0:Ae.type)==="focus";c=de,g=de.currentTarget,le(),!b.state.isVisible&&Ioe(de)&&uh.forEach(function(z){return z(de)}),de.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||i)&&b.props.hideOnClick!==!1&&b.state.isVisible?Re=!0:we(de),de.type==="click"&&(i=!Re),Re&&!Ce&&ge(de)}}function W(de){var Ae=de.target,Re=J().contains(Ae)||T.contains(Ae);if(!(de.type==="mousemove"&&Re)){var Ce=ie().concat(T).map(function(z){var Ke,He=z._tippy,St=(Ke=He.popperInstance)==null?void 0:Ke.state;return St?{popperRect:z.getBoundingClientRect(),popperState:St,props:n}:null}).filter(Boolean);Doe(Ce,de)&&(ue(),ge(de))}}function re(de){var Ae=he(de)||b.props.trigger.indexOf("click")>=0&&i;if(!Ae){if(b.props.interactive){b.hideWithInteractivity(de);return}ge(de)}}function be(de){b.props.trigger.indexOf("focusin")<0&&de.target!==J()||b.props.interactive&&de.relatedTarget&&T.contains(de.relatedTarget)||ge(de)}function he(de){return Ss.isTouch?M()!==de.type.indexOf("touch")>=0:!1}function B(){H();var de=b.props,Ae=de.popperOptions,Re=de.placement,Ce=de.offset,z=de.getReferenceClientRect,Ke=de.moveTransition,He=D()?zb(T).arrow:null,St=z?{getBoundingClientRect:z,contextElement:z.contextElement||J()}:t,An={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Rr){var dr=Rr.state;if(D()){var Al=N(),hn=Al.box;["placement","reference-hidden","escaped"].forEach(function(ps){ps==="placement"?hn.setAttribute("data-placement",dr.placement):dr.attributes.popper["data-popper-"+ps]?hn.setAttribute("data-"+ps,""):hn.removeAttribute("data-"+ps)}),dr.attributes.popper={}}}},fn=[{name:"offset",options:{offset:Ce}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ke}},An];D()&&He&&fn.push({name:"arrow",options:{element:He,padding:3}}),fn.push.apply(fn,(Ae==null?void 0:Ae.modifiers)||[]),b.popperInstance=nM(St,T,Object.assign({},Ae,{placement:Re,onFirstUpdate:f,modifiers:fn}))}function H(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function te(){var de=b.props.appendTo,Ae,Re=J();b.props.interactive&&de===eP||de==="parent"?Ae=Re.parentNode:Ae=tP(de,[Re]),Ae.contains(T)||Ae.appendChild(T),b.state.isMounted=!0,B()}function ie(){return wp(T.querySelectorAll("[data-tippy-root]"))}function we(de){b.clearDelayTimeouts(),de&&j("onTrigger",[b,de]),ve();var Ae=A(!0),Re=I(),Ce=Re[0],z=Re[1];Ss.isTouch&&Ce==="hold"&&z&&(Ae=z),Ae?o=setTimeout(function(){b.show()},Ae):b.show()}function ge(de){if(b.clearDelayTimeouts(),j("onUntrigger",[b,de]),!b.state.isVisible){Oe();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(de.type)>=0&&i)){var Ae=A(!1);Ae?r=setTimeout(function(){b.state.isVisible&&b.hide()},Ae):s=requestAnimationFrame(function(){b.hide()})}}function q(){b.state.isEnabled=!0}function ae(){b.hide(),b.state.isEnabled=!1}function Ne(){clearTimeout(o),clearTimeout(r),cancelAnimationFrame(s)}function We(de){if(!b.state.isDestroyed){j("onBeforeUpdate",[b,de]),Xe();var Ae=b.props,Re=o2(t,Object.assign({},Ae,QS(de),{ignoreAttributes:!0}));b.props=Re,ke(),Ae.interactiveDebounce!==Re.interactiveDebounce&&(ue(),p=XS(W,Re.interactiveDebounce)),Ae.triggerTarget&&!Re.triggerTarget?Ga(Ae.triggerTarget).forEach(function(Ce){Ce.removeAttribute("aria-expanded")}):Re.triggerTarget&&t.removeAttribute("aria-expanded"),le(),K(),O&&O(Ae,Re),b.popperInstance&&(B(),ie().forEach(function(Ce){requestAnimationFrame(Ce._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[b,de])}}function ct(de){b.setProps({content:de})}function mt(){var de=b.state.isVisible,Ae=b.state.isDestroyed,Re=!b.state.isEnabled,Ce=Ss.isTouch&&!b.props.touch,z=Xm(b.props.duration,0,Wr.duration);if(!(de||Ae||Re||Ce)&&!J().hasAttribute("disabled")&&(j("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,D()&&(T.style.visibility="visible"),K(),ve(),b.state.isMounted||(T.style.transition="none"),D()){var Ke=N(),He=Ke.box,St=Ke.content;Zm([He,St],0)}f=function(){var fn;if(!(!b.state.isVisible||u)){if(u=!0,T.offsetHeight,T.style.transition=b.props.moveTransition,D()&&b.props.animation){var Lr=N(),Rr=Lr.box,dr=Lr.content;Zm([Rr,dr],z),e2([Rr,dr],"visible")}F(),le(),ZS(ev,b),(fn=b.popperInstance)==null||fn.forceUpdate(),j("onMount",[b]),b.props.animation&&D()&&ne(z,function(){b.state.isShown=!0,j("onShown",[b])})}},te()}}function Ft(){var de=!b.state.isVisible,Ae=b.state.isDestroyed,Re=!b.state.isEnabled,Ce=Xm(b.props.duration,1,Wr.duration);if(!(de||Ae||Re)&&(j("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,u=!1,i=!1,D()&&(T.style.visibility="hidden"),ue(),Oe(),K(!0),D()){var z=N(),Ke=z.box,He=z.content;b.props.animation&&(Zm([Ke,He],Ce),e2([Ke,He],"hidden"))}F(),le(),b.props.animation?D()&&ee(Ce,b.unmount):b.unmount()}}function zt(de){oe().addEventListener("mousemove",p),ZS(uh,p),p(de)}function Me(){b.state.isVisible&&b.hide(),b.state.isMounted&&(H(),ie().forEach(function(de){de._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),ev=ev.filter(function(de){return de!==b}),b.state.isMounted=!1,j("onHidden",[b]))}function Ge(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),Xe(),delete t._tippy,b.state.isDestroyed=!0,j("onDestroy",[b]))}}function Tf(t,e){e===void 0&&(e={});var n=Wr.plugins.concat(e.plugins||[]);Foe();var o=Object.assign({},e,{plugins:n}),r=Roe(t),s=r.reduce(function(i,l){var a=l&&Yoe(l,o);return a&&i.push(a),i},[]);return Hg(t)?s[0]:s}Tf.defaultProps=Wr;Tf.setDefaultProps=qoe;Tf.currentInput=Ss;Object.assign({},ny,{effect:function(e){var n=e.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow)}});Tf.setDefaultProps({render:rP});class Xoe{constructor({editor:e,element:n,view:o,tippyOptions:r={},updateDelay:s=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:l,state:a,from:u,to:c})=>{const{doc:d,selection:f}=a,{empty:h}=f,p=!d.textBetween(u,c).length&&$y(a.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||h||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var a;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,a)=>{const u=!(a!=null&&a.selection.eq(l.state.selection)),c=!(a!=null&&a.doc.eq(l.state.doc));!u&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,u,c,a)},this.updateDelay))},this.updateHandler=(l,a,u,c)=>{var d,f,h;const{state:p,composing:g}=l,{selection:v}=p;if(g||!a&&!u)return;this.createTooltip();const{ranges:C}=v,y=Math.min(...C.map(T=>T.$from.pos)),b=Math.max(...C.map(T=>T.$to.pos));if(!((d=this.shouldShow)===null||d===void 0?void 0:d.call(this,{editor:this.editor,view:l,state:p,oldState:c,from:y,to:b}))){this.hide();return}(f=this.tippy)===null||f===void 0||f.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(YA(p.selection)){let T=l.nodeDOM(y);const O=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(O&&(T=O.firstChild),T)return T.getBoundingClientRect()}return Jne(l,y,b)})}),this.show()},this.editor=e,this.element=n,this.view=o,this.updateDelay=s,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=Tf(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){const{state:o}=e,r=o.selection.from!==o.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,n);return}const s=!(n!=null&&n.selection.eq(e.state.selection)),i=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,s,i,n)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const sP=t=>new Fo({key:typeof t.pluginKey=="string"?new ds(t.pluginKey):t.pluginKey,view:e=>new Xoe({view:e,...t})});eo.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[sP({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});const Zoe=ce({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=R(null);return st(()=>{const{updateDelay:o,editor:r,pluginKey:s,shouldShow:i,tippyOptions:l}=t;r.registerPlugin(sP({updateDelay:o,editor:r,element:n.value,pluginKey:s,shouldShow:i,tippyOptions:l}))}),un(()=>{const{pluginKey:o,editor:r}=t;r.unregisterPlugin(o)}),()=>{var o;return Ue("div",{ref:n},(o=e.default)===null||o===void 0?void 0:o.call(e))}}});function i2(t){return jI((e,n)=>({get(){return e(),t},set(o){t=o,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class Qoe extends Toe{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=i2(this.view.state),this.reactiveExtensionStorage=i2(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),xt(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,n){const o=super.registerPlugin(e,n);return this.reactiveState&&(this.reactiveState.value=o),o}unregisterPlugin(e){const n=super.unregisterPlugin(e);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const ere=ce({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=R(),n=gt();return Gr(()=>{const o=t.editor;o&&o.options.element&&e.value&<(()=>{if(!e.value||!o.options.element.firstChild)return;const r=x(e.value);e.value.append(...o.options.element.childNodes),o.contentComponent=n.ctx._,n&&(o.appContext={...n.appContext,provides:n.provides}),o.setOptions({element:r}),o.createNodeViews()})}),un(()=>{const o=t.editor;o&&(o.contentComponent=null,o.appContext=null)}),{rootEl:e}},render(){return Ue("div",{ref:t=>{this.rootEl=t}})}}),tre=/^\s*>\s$/,nre=fs.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Fd({find:tre,type:this.type})]}}),ore=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,rre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,sre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,ire=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,lre=rs.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ba({find:ore,type:this.type}),ba({find:sre,type:this.type})]},addPasteRules(){return[ya({find:rre,type:this.type}),ya({find:ire,type:this.type})]}}),are="listItem",l2="textStyle",a2=/^\s*([-+*])\s$/,ure=fs.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(are,this.editor.getAttributes(l2)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Fd({find:a2,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Fd({find:a2,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(l2),editor:this.editor})),[t]}}),cre=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,dre=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,fre=rs.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ba({find:cre,type:this.type})]},addPasteRules(){return[ya({find:dre,type:this.type})]}}),hre=/^```([a-z]+)?[\s\n]$/,pre=/^~~~([a-z]+)?[\s\n]$/,gre=fs.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,s=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(i=>i.startsWith(n)).map(i=>i.replace(n,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Qn(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:o,empty:r}=n;if(!r||o.parent.type!==this.type)return!1;const s=o.parentOffset===o.parent.nodeSize-2,i=o.parent.textContent.endsWith(` + +`);return!s||!i?!1:t.chain().command(({tr:l})=>(l.delete(o.pos-2,o.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:o}=e,{$from:r,empty:s}=n;if(!s||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const l=r.after();return l===void 0?!1:o.nodeAt(l)?t.commands.command(({tr:u})=>(u.setSelection(Et.near(o.resolve(l))),!0)):t.commands.exitCode()}}},addInputRules(){return[Vb({find:hre,type:this.type,getAttributes:t=>({language:t[1]})}),Vb({find:pre,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new Fo({key:new ds("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),r=o?JSON.parse(o):void 0,s=r==null?void 0:r.mode;if(!n||!s)return!1;const{tr:i,schema:l}=t.state,a=l.text(n.replace(/\r\n?/g,` +`));return i.replaceSelectionWith(this.type.create({language:s},a)),i.selection.$from.parent.type!==this.type&&i.setSelection(Ct.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),t.dispatch(i),!0}}})]}}),mre=fs.create({name:"doc",topNode:!0,content:"block+"});function vre(t={}){return new Fo({view(e){return new bre(e,t)}})}class bre{constructor(e,n){var o;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=n.width)!==null&&o!==void 0?o:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let s=i=>{this[r](i)};return e.dom.addEventListener(r,s),{name:r,handler:s}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,o;if(n){let l=e.nodeBefore,a=e.nodeAfter;if(l||a){let u=this.editorView.nodeDOM(this.cursorPos-(l?l.nodeSize:0));if(u){let c=u.getBoundingClientRect(),d=l?c.bottom:c.top;l&&a&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),o={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!o){let l=this.editorView.coordsAtPos(this.cursorPos);o={left:l.left-this.width/2,right:l.left+this.width/2,top:l.top,bottom:l.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let s,i;if(!r||r==document.body&&getComputedStyle(r).position=="static")s=-pageXOffset,i=-pageYOffset;else{let l=r.getBoundingClientRect();s=l.left-r.scrollLeft,i=l.top-r.scrollTop}this.element.style.left=o.left-s+"px",this.element.style.top=o.top-i+"px",this.element.style.width=o.right-o.left+"px",this.element.style.height=o.bottom-o.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),o=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=o&&o.type.spec.disableDropCursor,s=typeof r=="function"?r(this.editorView,n,e):r;if(n&&!s){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=K_(this.editorView.state.doc,i,this.editorView.dragging.slice);l!=null&&(i=l)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const yre=eo.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[vre(this.options)]}});class mn extends Et{constructor(e){super(e,e)}map(e,n){let o=e.resolve(n.map(this.head));return mn.valid(o)?new mn(o):Et.near(o)}content(){return Je.empty}eq(e){return e instanceof mn&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new mn(e.resolve(n.pos))}getBookmark(){return new jy(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!wre(e)||!Cre(e))return!1;let o=n.type.spec.allowGapCursor;if(o!=null)return o;let r=n.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,n,o=!1){e:for(;;){if(!o&&mn.valid(e))return e;let r=e.pos,s=null;for(let i=e.depth;;i--){let l=e.node(i);if(n>0?e.indexAfter(i)0){s=l.child(n>0?e.indexAfter(i):e.index(i)-1);break}else if(i==0)return null;r+=n;let a=e.doc.resolve(r);if(mn.valid(a))return a}for(;;){let i=n>0?s.firstChild:s.lastChild;if(!i){if(s.isAtom&&!s.isText&&!dt.isSelectable(s)){e=e.doc.resolve(r+s.nodeSize*n),o=!1;continue e}break}s=i,r+=n;let l=e.doc.resolve(r);if(mn.valid(l))return l}return null}}}mn.prototype.visible=!1;mn.findFrom=mn.findGapCursorFrom;Et.jsonID("gapcursor",mn);class jy{constructor(e){this.pos=e}map(e){return new jy(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return mn.valid(n)?new mn(n):Et.near(n)}}function wre(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),o=t.node(e);if(n==0){if(o.type.spec.isolating)return!0;continue}for(let r=o.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function Cre(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),o=t.node(e);if(n==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let r=o.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function xre(){return new Fo({props:{decorations:Ore,createSelectionBetween(t,e,n){return e.pos==n.pos&&mn.valid(n)?new mn(n):null},handleClick:Ere,handleKeyDown:Sre,handleDOMEvents:{beforeinput:Tre}}})}const Sre=RA({ArrowLeft:ch("horiz",-1),ArrowRight:ch("horiz",1),ArrowUp:ch("vert",-1),ArrowDown:ch("vert",1)});function ch(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(o,r,s){let i=o.selection,l=e>0?i.$to:i.$from,a=i.empty;if(i instanceof Ct){if(!s.endOfTextblock(n)||l.depth==0)return!1;a=!1,l=o.doc.resolve(e>0?l.after():l.before())}let u=mn.findGapCursorFrom(l,e,a);return u?(r&&r(o.tr.setSelection(new mn(u))),!0):!1}}function Ere(t,e,n){if(!t||!t.editable)return!1;let o=t.state.doc.resolve(e);if(!mn.valid(o))return!1;let r=t.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&dt.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new mn(o))),!0)}function Tre(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof mn))return!1;let{$from:n}=t.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!o)return!1;let r=Ie.empty;for(let i=o.length-1;i>=0;i--)r=Ie.from(o[i].createAndFill(null,r));let s=t.state.tr.replace(n.pos,n.pos,new Je(r,0,0));return s.setSelection(Ct.near(s.doc.resolve(n.pos+1))),t.dispatch(s),!1}function Ore(t){if(!(t.selection instanceof mn))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",$n.create(t.doc,[Sr.widget(t.selection.head,e,{key:"gapcursor"})])}const kre=eo.create({name:"gapCursor",addProseMirrorPlugins(){return[xre()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=_t(ot(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),Mre=fs.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Qn(this.options.HTMLAttributes,t)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:s}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=o.extensionManager,a=s||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&a&&i){const d=a.filter(f=>l.includes(f.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),_re=fs.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Qn(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Vb({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var Cp=200,Yn=function(){};Yn.prototype.append=function(e){return e.length?(e=Yn.from(e),!this.length&&e||e.length=n?Yn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};Yn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Yn.prototype.forEach=function(e,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length),n<=o?this.forEachInner(e,n,o,0):this.forEachInvertedInner(e,n,o,0)};Yn.prototype.map=function(e,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length);var r=[];return this.forEach(function(s,i){return r.push(e(s,i))},n,o),r};Yn.from=function(e){return e instanceof Yn?e:e&&e.length?new iP(e):Yn.empty};var iP=function(t){function e(o){t.call(this),this.values=o}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,s){return r==0&&s==this.length?this:new e(this.values.slice(r,s))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,s,i,l){for(var a=s;a=i;a--)if(r(this.values[a],l+a)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=Cp)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=Cp)return new e(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Yn);Yn.empty=new iP([]);var Are=function(t){function e(n,o){t.call(this),this.left=n,this.right=o,this.length=n.length+o.length,this.depth=Math.max(n.depth,o.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return ol&&this.right.forEachInner(o,Math.max(r-l,0),Math.min(this.length,s)-l,i+l)===!1)return!1},e.prototype.forEachInvertedInner=function(o,r,s,i){var l=this.left.length;if(r>l&&this.right.forEachInvertedInner(o,r-l,Math.max(s,l)-l,i+l)===!1||s=s?this.right.slice(o-s,r-s):this.left.slice(o,s).append(this.right.slice(0,r-s))},e.prototype.leafAppend=function(o){var r=this.right.leafAppend(o);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(o){var r=this.left.leafPrepend(o);if(r)return new e(r,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e}(Yn);const Pre=500;class Fr{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let r,s;n&&(r=this.remapping(o,this.items.length),s=r.maps.length);let i=e.tr,l,a,u=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){r||(r=this.remapping(o,f+1),s=r.maps.length),s--,c.push(d);return}if(r){c.push(new ws(d.map));let h=d.step.map(r.slice(s)),p;h&&i.maybeStep(h).doc&&(p=i.mapping.maps[i.mapping.maps.length-1],u.push(new ws(p,void 0,void 0,u.length+c.length))),s--,p&&r.appendMap(p,s)}else i.maybeStep(d.step);if(d.selection)return l=r?d.selection.map(r.slice(s)):d.selection,a=new Fr(this.items.slice(0,o).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:i,selection:l}}addTransform(e,n,o,r){let s=[],i=this.eventCount,l=this.items,a=!r&&l.length?l.get(l.length-1):null;for(let c=0;cIre&&(l=Nre(l,u),i-=u),new Fr(l.append(s),i)}remapping(e,n){let o=new ru;return this.items.forEach((r,s)=>{let i=r.mirrorOffset!=null&&s-r.mirrorOffset>=e?o.maps.length-r.mirrorOffset:void 0;o.appendMap(r.map,i)},e,n),o}addMaps(e){return this.eventCount==0?this:new Fr(this.items.append(e.map(n=>new ws(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let o=[],r=Math.max(0,this.items.length-n),s=e.mapping,i=e.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--},r);let a=n;this.items.forEach(f=>{let h=s.getMirror(--a);if(h==null)return;i=Math.min(i,h);let p=s.maps[h];if(f.step){let g=e.steps[h].invert(e.docs[h]),v=f.selection&&f.selection.map(s.slice(a+1,h));v&&l++,o.push(new ws(p,g,v))}else o.push(new ws(p))},r);let u=[];for(let f=n;fPre&&(d=d.compress(this.items.length-o.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),o=n.maps.length,r=[],s=0;return this.items.forEach((i,l)=>{if(l>=e)r.push(i),i.selection&&s++;else if(i.step){let a=i.step.map(n.slice(o)),u=a&&a.getMap();if(o--,u&&n.appendMap(u,o),a){let c=i.selection&&i.selection.map(n.slice(o));c&&s++;let d=new ws(u.invert(),a,c),f,h=r.length-1;(f=r.length&&r[h].merge(d))?r[h]=f:r.push(d)}}else i.map&&o--},this.items.length,0),new Fr(Yn.from(r.reverse()),s)}}Fr.empty=new Fr(Yn.empty,0);function Nre(t,e){let n;return t.forEach((o,r)=>{if(o.selection&&e--==0)return n=r,!1}),t.slice(n)}class ws{constructor(e,n,o,r){this.map=e,this.step=n,this.selection=o,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ws(n.getMap().invert(),n,this.selection)}}}class Hi{constructor(e,n,o,r,s){this.done=e,this.undone=n,this.prevRanges=o,this.prevTime=r,this.prevComposition=s}}const Ire=20;function Lre(t,e,n,o){let r=n.getMeta(aa),s;if(r)return r.historyState;n.getMeta(Dre)&&(t=new Hi(t.done,t.undone,null,0,-1));let i=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(i&&i.getMeta(aa))return i.getMeta(aa).redo?new Hi(t.done.addTransform(n,void 0,o,$h(e)),t.undone,u2(n.mapping.maps),t.prevTime,t.prevComposition):new Hi(t.done,t.undone.addTransform(n,void 0,o,$h(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),a=t.prevTime==0||!i&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-o.newGroupDelay||!Rre(n,t.prevRanges)),u=i?tv(t.prevRanges,n.mapping):u2(n.mapping.maps);return new Hi(t.done.addTransform(n,a?e.selection.getBookmark():void 0,o,$h(e)),Fr.empty,u,n.time,l??t.prevComposition)}else return(s=n.getMeta("rebased"))?new Hi(t.done.rebased(n,s),t.undone.rebased(n,s),tv(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Hi(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),tv(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Rre(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((o,r)=>{for(let s=0;s=e[s]&&(n=!0)}),n}function u2(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((o,r,s,i)=>e.push(s,i));return e}function tv(t,e){if(!t)return null;let n=[];for(let o=0;o{let r=aa.getState(n);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(o){let s=$re(r,n,t);s&&o(e?s.scrollIntoView():s)}return!0}}const aP=lP(!1,!0),uP=lP(!0,!0),Bre=eo.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>aP(t,e),redo:()=>({state:t,dispatch:e})=>uP(t,e)}},addProseMirrorPlugins(){return[Vre(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Fre=fs.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Qn(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{selection:n}=e,{$from:o,$to:r}=n,s=t();return o.parentOffset===0?s.insertContentAt({from:Math.max(o.pos-1,0),to:r.pos},{type:this.name}):YA(n)?s.insertContentAt(r.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:i,dispatch:l})=>{var a;if(l){const{$to:u}=i.selection,c=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?i.setSelection(Ct.create(i.doc,u.pos+1)):u.nodeAfter.isBlock?i.setSelection(dt.create(i.doc,u.pos)):i.setSelection(Ct.create(i.doc,u.pos));else{const d=(a=u.parent.type.contentMatch.defaultType)===null||a===void 0?void 0:a.create();d&&(i.insert(c,d),i.setSelection(Ct.create(i.doc,c+1)))}i.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Ooe({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),zre=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,jre=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Hre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Ure=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Wre=rs.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ba({find:zre,type:this.type}),ba({find:Hre,type:this.type})]},addPasteRules(){return[ya({find:jre,type:this.type}),ya({find:Ure,type:this.type})]}}),qre=fs.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Qn(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Gre="listItem",d2="textStyle",f2=/^(\d+)\.\s$/,Kre=fs.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Qn(this.options.HTMLAttributes,n),0]:["ol",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Gre,this.editor.getAttributes(d2)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Fd({find:f2,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Fd({find:f2,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(d2)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),Jre=fs.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Yre=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Xre=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Zre=rs.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ba({find:Yre,type:this.type})]},addPasteRules(){return[ya({find:Xre,type:this.type})]}}),Qre=fs.create({name:"text",group:"inline"}),ese=eo.create({name:"starterKit",addExtensions(){var t,e,n,o,r,s,i,l,a,u,c,d,f,h,p,g,v,m;const C=[];return this.options.bold!==!1&&C.push(lre.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.blockquote!==!1&&C.push(nre.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&C.push(ure.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&C.push(fre.configure((o=this.options)===null||o===void 0?void 0:o.code)),this.options.codeBlock!==!1&&C.push(gre.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&C.push(mre.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&C.push(yre.configure((i=this.options)===null||i===void 0?void 0:i.dropcursor)),this.options.gapcursor!==!1&&C.push(kre.configure((l=this.options)===null||l===void 0?void 0:l.gapcursor)),this.options.hardBreak!==!1&&C.push(Mre.configure((a=this.options)===null||a===void 0?void 0:a.hardBreak)),this.options.heading!==!1&&C.push(_re.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&C.push(Bre.configure((c=this.options)===null||c===void 0?void 0:c.history)),this.options.horizontalRule!==!1&&C.push(Fre.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&C.push(Wre.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&C.push(qre.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&C.push(Kre.configure((p=this.options)===null||p===void 0?void 0:p.orderedList)),this.options.paragraph!==!1&&C.push(Jre.configure((g=this.options)===null||g===void 0?void 0:g.paragraph)),this.options.strike!==!1&&C.push(Zre.configure((v=this.options)===null||v===void 0?void 0:v.strike)),this.options.text!==!1&&C.push(Qre.configure((m=this.options)===null||m===void 0?void 0:m.text)),C}}),tse=rs.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),nse=rs.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=Vy(t,this.type);return Object.entries(n).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),ose=eo.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),rse=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,sse=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,ise=rs.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",Qn(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ba({find:rse,type:this.type})]},addPasteRules(){return[ya({find:sse,type:this.type})]}}),lse=eo.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),ase={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function use(t,e){return _(),G("svg",ase,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M3 21v-2h18v2zm0-4v-2h12v2zm0-4v-2h18v2zm0-4V7h12v2zm0-4V3h18v2z"},null,-1)]))}const cse=xt({name:"material-symbols-format-align-left",render:use}),dse={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function fse(t,e){return _(),G("svg",dse,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M3 21v-2h18v2zm4-4v-2h10v2zm-4-4v-2h18v2zm4-4V7h10v2zM3 5V3h18v2z"},null,-1)]))}const hse=xt({name:"material-symbols-format-align-center",render:fse}),pse={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function gse(t,e){return _(),G("svg",pse,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M3 5V3h18v2zm6 4V7h12v2zm-6 4v-2h18v2zm6 4v-2h12v2zm-6 4v-2h18v2z"},null,-1)]))}const mse=xt({name:"material-symbols-format-align-right",render:gse}),vse={viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"};function bse(t,e){return _(),G("svg",vse,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16M96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0m48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0"},null,-1)]))}const yse=xt({name:"ph-trash",render:bse}),wse=ce({name:"DialogNode",setup(){const{t,tm:e,rt:n}=cn();return{t,tm:e,rt:n}},inject:["getGraph","getNode"],data(){return{preview:"",nodeSetFormVisible:!1,varDialogVisible:!1,formLabelWidth:"90px",vars:[],selectedVar:"",nodeData:{nodeName:this.t("lang.dialogNode.nodeName"),dialogText:"",dialogTextType:"",textFromLLM:!1,branches:[],nextStep:"WaitUserResponse",valid:!1,invalidMessages:[],newNode:!0},nextSteps:[{label:this.tm("lang.dialogNode.nextSteps")[0],value:"WaitUserResponse"},{label:this.tm("lang.dialogNode.nextSteps")[1],value:"GotoNextNode"}],loading:!1,lastEditRange:null,robotId:"",robotType:"",predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#c7158577"],editor:null,activeBtnColor:"#626aef",genTextVisible:!1,genTextReq:{system:"",user:""},textGenerating:!1,genTextBtnText:"Generate text",generatedText:""}},mounted(){const t=this.getNode(),e=t.getData();if(Dn(e,this.nodeData),this.setPreview(),this.nodeData.newNode){this.nodeData.nodeName+=e.nodeCnt.toString();const o=ii();o.branchType="GotoAnotherNode",this.nodeData.branches.push(o);const r=this.$refs.nodeName.offsetHeight+this.$refs.nodeAnswer.offsetHeight+20,s=this.$refs.nodeName.offsetWidth-15;t.addPort({group:"absolute",args:{x:s,y:r},markup:[{tagName:"circle",selector:"bopdy"},{tagName:"rect",selector:"bg"}],attrs:{text:{text:this.nextSteps[0].label,fontSize:12},bg:{ref:"text",refWidth:"100%",refHeight:"110%",refX:"-100%",refX2:-15,refY:-5,fill:"rgb(235,238,245)"}}}),this.nodeData.newNode=!1,t.removeData({silent:!0}),t.setData(this.nodeData,{silent:!1})}this.validate(),t.on("change:data",({current:o})=>{this.nodeSetFormVisible=!0}),lt(()=>{this.setPortPos()});const{robotId:n}=Ve("robotId");this.robotId=n,this.robotType=C_(this.robotId),this.robotType=="TextBot"&&(this.editor=new Qoe({extensions:[ose,ise.configure({multicolor:!0}),ese,tse,nse,lse.configure({types:["heading","paragraph"]})],content:this.nodeData.dialogText,editorProps:{transformPastedText(o){return o.replace(/\u200B/g,"").replace(/[\xA0|\u3000]/g," ")},transformPastedHTML(o){return o.replace(/\u200B/g,"").replace(/[\xA0|\u3000]/g," ")}},onUpdate:()=>{this.$emit("update:modelValue",this.editor.getHTML()),this.nodeData.dialogText=this.editor.getHTML()}}),this.$emit("update:modelValue",this.nodeData.dialogText))},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{hideForm(){this.nodeSetFormVisible=!1},validate(){const t=this.nodeData,e=t.invalidMessages;e.splice(0,e.length),t.nodeName||e.push(this.tm("lang.dialogNode.errors")[0]),t.dialogText.length<1&&e.push(this.tm("lang.dialogNode.errors")[1]),t.dialogText.length>200&&e.push(this.tm("lang.dialogNode.errors")[2]),t.valid=e.length==0},getTextWidth(){return this.$refs.nodeAnswer.offsetWidth},setPreview(){let t=this.nodeData.dialogText.replace(/<[^>]+>/g,"").replace(/\r/g,"");if(t){const e=t.split(` +`);e.length>3&&e.splice(3,e.length-3,"......");const n=this.getNode();e.forEach(function(o,r,s){if(this.$refs.nodeAnswer.getBoundingClientRect().width>n.size().width){const i=(this.$refs.nodeAnswer.scrollWidth-n.size().width)/n.size().width;s[r]=o.substring(0,Math.floor(i*o.length)-5)+"..."}},this),t=e.join(` +`),lt(()=>{this.setPortPos()})}this.preview=t},setPortPos(){const t=this.getNode(),e=t.getPortAt(0),n=this.$refs.nodeName.offsetHeight+this.$refs.nodeAnswer.offsetHeight+20;t.setPortProp(e.id,["args","y"],n),t.resize(t.size().width,20+n,{direction:"bottom"})},saveForm(){let t="";for(let r=0;r0&&(this.lastEditRange=t.getRangeAt(0))},async showVarsForm(){let t=await nt("GET","variable",null,null,null);t&&t.status==200&&t.data&&(this.vars=t.data),this.varDialogVisible=!0},insertVar(){this.nodeData.dialogText+="`"+this.selectedVar+"`",this.varDialogVisible=!1},changeEditorNote(){if(this.nodeData.dialogText)if(this.textEditor=="1")xo.confirm("Switch to plain text and all styles will be lost. Whether to continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{const t=this.nodeData.dialogText.replace(/<\/p>/g,` +`).trim(),e=/(<([^>]+)>)/ig;this.nodeData.dialogText=t.replace(e,"")}).catch(()=>{this.textEditor="2"});else{const t="

"+this.nodeData.dialogText.replace(/\n/g,"

")+"

";this.$refs.editor.setContent(t)}},async genText(){const t=[{role:"user",content:this.genTextReq.user}];this.genTextReq.system&&t.push({role:"system",content:this.genTextReq.system});const e={robot_id:this.robotId,prompt:JSON.stringify(t)};this.textGenerating=!0,this.genTextBtnText="Generating",this.generatedText="";const r=(await fetch("http://localhost:12715/ai/text/generation",{method:"POST",headers:{"Content-Type":"text/event-stream"},body:JSON.stringify(e)})).body.pipeThrough(new TextDecoderStream).getReader();for(;;){const{value:s,done:i}=await r.read();if(this.processGenedText(s),i){if(this.textGenerating=!1,this.genTextVisible=!1,this.editor){const l=this.editor.state.doc.content.size;this.editor.commands.insertContentAt(l,this.generatedText)}else this.nodeData.dialogText+=this.generatedText;break}}},processGenedText(t){if(t==null||t==null)return;const e=t.split(` + +`);let n="";e.forEach((o,r,s)=>{o.split(` +`).forEach((l,a,u)=>{if(l.indexOf("data: ")==0){let c=l.substring(6);c.length>0&&(n+=c)}})}),n.length>0&&(this.generatedText+=n)},showColorPicker(){this.$refs.colorPicker.click()}},components:{EpPlus:Xc,EpWarning:Si,RiBold:WX,RiItalic:KX,RiStrikethrough:XX,RiUnderline:eZ,MaterialSymbolsFormatAlignLeft:cse,MaterialSymbolsFormatAlignCenter:hse,MaterialSymbolsFormatAlignRight:mse,BiHighlighter:iZ,RiFontColor:oZ,RiHeading:uZ,RiListUnordered:fZ,RiListOrdered:gZ,RiChatQuoteLine:bZ,IcBaselineHorizontalRule:CZ,PhTrash:yse,IcBaselineUndo:EZ,IcBaselineRedo:kZ,EditorContent:ere,BubbleMenu:Zoe},props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],watch:{modelValue(t){this.editor.getHTML()!==t&&this.editor.commands.setContent(t,!1)}}}),Cse={class:"nodeBox"},xse={ref:"nodeName",class:"nodeTitle"},Sse={key:2,class:"menubar"},Ese={class:"demo-drawer__footer"},Tse={class:"dialog-footer"},Ose={class:"dialog-footer"};function kse(t,e,n,o,r,s){const i=at("EpWarning"),l=rt,a=go,u=Cn,c=jn,d=at("bubble-menu"),f=at("RiBold"),h=xn,p=at("RiItalic"),g=at("RiStrikethrough"),v=at("RiUnderline"),m=at("MaterialSymbolsFormatAlignLeft"),C=at("MaterialSymbolsFormatAlignCenter"),y=at("MaterialSymbolsFormatAlignRight"),b=at("BiHighlighter"),S=at("RiFontColor"),T=at("RiHeading"),O=at("RiListUnordered"),k=at("RiListOrdered"),P=at("RiChatQuoteLine"),I=at("IcBaselineHorizontalRule"),M=at("PhTrash"),D=at("IcBaselineUndo"),J=at("IcBaselineRedo"),oe=cy,N=at("editor-content"),A=at("EpPlus"),K=Bs,j=Vs,F=zn,le=cr,ue=xi;return _(),G("div",Cse,[L("div",xse,[U(Q(t.nodeData.nodeName)+" ",1),$e(L("span",null,[w(a,{class:"box-item",effect:"dark",content:t.nodeData.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(l,{color:"red",size:"16"},{default:E(()=>[w(i)]),_:1})]),_:1},8,["content"])],512),[[qe,t.nodeData.invalidMessages.length>0]])],512),L("div",{ref:"nodeAnswer",style:{"white-space":"pre-wrap","font-size":"12px"}},Q(t.preview),513),w(le,{modelValue:t.nodeSetFormVisible,"onUpdate:modelValue":e[27]||(e[27]=se=>t.nodeSetFormVisible=se),title:t.nodeData.nodeName,direction:"rtl",size:"72%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(F,{model:t.nodeData},{default:E(()=>[w(c,{label:t.t("lang.common.nodeName"),"label-width":t.formLabelWidth},{default:E(()=>[w(u,{modelValue:t.nodeData.nodeName,"onUpdate:modelValue":e[0]||(e[0]=se=>t.nodeData.nodeName=se),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),w(c,{label:t.t("lang.dialogNode.form.label"),"label-width":t.formLabelWidth},{default:E(()=>[t.editor==null||t.robotType!="TextBot"?(_(),pe(u,{key:0,ref:"textArea",modelValue:t.nodeData.dialogText,"onUpdate:modelValue":e[1]||(e[1]=se=>t.nodeData.dialogText=se),type:"textarea",onBlur:t.getSel},null,8,["modelValue","onBlur"])):me("",!0),t.editor&&t.robotType=="TextBot"?(_(),pe(d,{key:1,id:"bubbleMenu",editor:t.editor,"tippy-options":{duration:100}},{default:E(()=>[L("button",{type:"button",class:Y(["inactive",{"is-active":t.editor.isActive("bold")}]),onClick:e[2]||(e[2]=se=>t.editor.chain().focus().toggleBold().run())}," bold ",2),L("button",{type:"button",class:Y(["inactive",{"is-active":t.editor.isActive("italic")}]),onClick:e[3]||(e[3]=se=>t.editor.chain().focus().toggleItalic().run())}," italic ",2),L("button",{type:"button",class:Y(["inactive",{"is-active":t.editor.isActive("strike")}]),onClick:e[4]||(e[4]=se=>t.editor.chain().focus().toggleStrike().run())}," strike ",2)]),_:1},8,["editor"])):me("",!0),t.editor&&t.robotType=="TextBot"?(_(),G("div",Sse,[w(oe,{size:"normal"},{default:E(()=>[w(h,{color:t.editor.isActive("bold")?t.activeBtnColor:"",onClick:e[5]||(e[5]=se=>t.editor.chain().focus().toggleBold().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(f)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive("italic")?t.activeBtnColor:"",onClick:e[6]||(e[6]=se=>t.editor.chain().focus().toggleItalic().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(p)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive("strike")?t.activeBtnColor:"",onClick:e[7]||(e[7]=se=>t.editor.chain().focus().toggleStrike().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(g)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive("underline")?t.activeBtnColor:"",onClick:e[8]||(e[8]=se=>t.editor.chain().focus().toggleUnderline().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(v)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive({textAlign:"left"})?t.activeBtnColor:"",onClick:e[9]||(e[9]=se=>t.editor.chain().focus().setTextAlign("left").run())},{default:E(()=>[w(l,null,{default:E(()=>[w(m)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive({textAlign:"center"})?t.activeBtnColor:"",onClick:e[10]||(e[10]=se=>t.editor.chain().focus().setTextAlign("center").run())},{default:E(()=>[w(l,null,{default:E(()=>[w(C)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive({textAlign:"right"})?t.activeBtnColor:"",onClick:e[11]||(e[11]=se=>t.editor.chain().focus().setTextAlign("right").run())},{default:E(()=>[w(l,null,{default:E(()=>[w(y)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive("highlight")?t.activeBtnColor:"",onClick:e[12]||(e[12]=se=>t.editor.chain().focus().toggleHighlight().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(b)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.getAttributes("textStyle").color,onClick:t.showColorPicker},{default:E(()=>[w(l,null,{default:E(()=>[w(S)]),_:1})]),_:1},8,["color","onClick"]),w(h,{color:t.editor.isActive("heading",{level:1})?t.activeBtnColor:"",onClick:e[13]||(e[13]=se=>t.editor.chain().focus().toggleHeading({level:1}).run())},{default:E(()=>[w(l,null,{default:E(()=>[w(T)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive("bulletList")?t.activeBtnColor:"",onClick:e[14]||(e[14]=se=>t.editor.chain().focus().toggleBulletList().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(O)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive("orderedList")?t.activeBtnColor:"",onClick:e[15]||(e[15]=se=>t.editor.chain().focus().toggleOrderedList().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(k)]),_:1})]),_:1},8,["color"]),w(h,{color:t.editor.isActive("blockquote")?t.activeBtnColor:"",onClick:e[16]||(e[16]=se=>t.editor.chain().focus().toggleBlockquote().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(P)]),_:1})]),_:1},8,["color"]),w(h,{onClick:e[17]||(e[17]=se=>t.editor.chain().focus().setHorizontalRule().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(I)]),_:1})]),_:1}),w(h,{onClick:e[18]||(e[18]=se=>t.editor.chain().focus().clearNodes().unsetAllMarks().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(M)]),_:1})]),_:1}),w(h,{onClick:e[19]||(e[19]=se=>t.editor.chain().focus().undo().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(D)]),_:1})]),_:1}),w(h,{onClick:e[20]||(e[20]=se=>t.editor.chain().focus().redo().run())},{default:E(()=>[w(l,null,{default:E(()=>[w(J)]),_:1})]),_:1})]),_:1}),L("input",{ref:"colorPicker",type:"color",style:{visibility:"hidden"},onInput:e[21]||(e[21]=se=>t.editor.chain().focus().setColor(se.target.value).run())},null,544)])):me("",!0),t.editor&&t.robotType=="TextBot"?(_(),pe(N,{key:3,editor:t.editor,style:{width:"100%",border:"#e5e9f2 1px solid"},modelValue:t.nodeData.dialogText,"onUpdate:modelValue":e[22]||(e[22]=se=>t.nodeData.dialogText=se)},null,8,["editor","modelValue"])):me("",!0)]),_:1},8,["label","label-width"]),w(c,{label:"","label-width":t.formLabelWidth},{default:E(()=>[w(h,{onClick:t.showVarsForm},{default:E(()=>[w(l,null,{default:E(()=>[w(A)]),_:1}),U(" "+Q(t.t("lang.dialogNode.form.addVar")),1)]),_:1},8,["onClick"]),w(h,{onClick:e[23]||(e[23]=se=>t.genTextVisible=!0)},{default:E(()=>e[35]||(e[35]=[U(" Generate text from LLM ")])),_:1})]),_:1},8,["label-width"]),w(c,{label:t.t("lang.dialogNode.form.nextStep"),"label-width":t.formLabelWidth},{default:E(()=>[w(j,{modelValue:t.nodeData.nextStep,"onUpdate:modelValue":e[24]||(e[24]=se=>t.nodeData.nextStep=se),placeholder:t.t("lang.dialogNode.form.choose")},{default:E(()=>[(_(!0),G(Le,null,yt(t.nextSteps,se=>(_(),pe(K,{key:se.label,label:se.label,value:se.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","label-width"])]),_:1},8,["model"]),L("div",Ese,[w(h,{type:"primary",loading:t.loading,onClick:e[25]||(e[25]=se=>t.saveForm())},{default:E(()=>[U(Q(t.t("lang.common.save")),1)]),_:1},8,["loading"]),w(h,{onClick:e[26]||(e[26]=se=>t.hideForm())},{default:E(()=>[U(Q(t.t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"]),w(ue,{modelValue:t.varDialogVisible,"onUpdate:modelValue":e[30]||(e[30]=se=>t.varDialogVisible=se),title:t.t("lang.dialogNode.var.title"),width:"30%","append-to-body":!0,"destroy-on-close":!0},{footer:E(()=>[L("span",Tse,[w(h,{type:"primary",onClick:t.insertVar},{default:E(()=>[U(Q(t.t("lang.common.insert")),1)]),_:1},8,["onClick"]),w(h,{onClick:e[29]||(e[29]=se=>t.varDialogVisible=!1)},{default:E(()=>[U(Q(t.t("lang.common.cancel")),1)]),_:1})])]),default:E(()=>[w(j,{modelValue:t.selectedVar,"onUpdate:modelValue":e[28]||(e[28]=se=>t.selectedVar=se),class:"m-2",placeholder:t.t("lang.dialogNode.var.choose"),size:"large"},{default:E(()=>[(_(!0),G(Le,null,yt(t.vars,se=>(_(),pe(K,{key:se.varName,label:se.varName,value:se.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["modelValue","title"]),w(ue,{modelValue:t.genTextVisible,"onUpdate:modelValue":e[34]||(e[34]=se=>t.genTextVisible=se),title:"Prompt",width:"70%","append-to-body":!0,"destroy-on-close":!0},{footer:E(()=>[L("span",Ose,[w(h,{type:"primary",onClick:t.genText,loading:t.textGenerating},{default:E(()=>[U(Q(t.genTextBtnText),1)]),_:1},8,["onClick","loading"]),w(h,{onClick:e[33]||(e[33]=se=>t.genTextVisible=!1)},{default:E(()=>[U(Q(t.t("lang.common.cancel")),1)]),_:1})])]),default:E(()=>[w(F,{model:t.genTextReq},{default:E(()=>[w(c,{label:"System","label-width":t.formLabelWidth},{default:E(()=>[w(u,{modelValue:t.genTextReq.system,"onUpdate:modelValue":e[31]||(e[31]=se=>t.genTextReq.system=se),autocomplete:"on"},null,8,["modelValue"])]),_:1},8,["label-width"]),w(c,{label:"User *","label-width":t.formLabelWidth},{default:E(()=>[w(u,{modelValue:t.genTextReq.user,"onUpdate:modelValue":e[32]||(e[32]=se=>t.genTextReq.user=se),autocomplete:"on",row:5,type:"textarea"},null,8,["modelValue"])]),_:1},8,["label-width"]),t.generatedText.length>0?(_(),pe(c,{key:0,label:"","label-width":t.formLabelWidth},{default:E(()=>e[36]||(e[36]=[U(" Following generated text will be inserted when finish. ")])),_:1},8,["label-width"])):me("",!0),w(c,{label:"","label-width":t.formLabelWidth},{default:E(()=>[U(Q(t.generatedText),1)]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}const Mse=Bo(wse,[["render",kse],["__scopeId","data-v-0dbd5c44"]]),_se={class:"nodeBox"},Ase={class:"demo-drawer__footer"},ov="215px",Pse={__name:"KnowledgeBaseAnswerNode",setup(t){const{t:e,tm:n,rt:o}=cn(),s=Ve("getNode")();s.on("change:data",({current:g})=>{p.value=!0});const i=ut({nodeName:"Knowledge base answer node",recallThresholds:85,noAnswerThenChoice:"GotoAnotherNode",noAnswerThen:null,alternateAnswer:"",branches:[],valid:!1,invalidMessages:[],newNode:!0}),l=R(""),a=()=>{let g="Knowledge recall thresholds: "+i.recallThresholds;g+=`% +When no knowledge is recalled then: `,i.noAnswerThenChoice=="GotoAnotherNode"?g+="Goto next node.":i.noAnswerThenChoice=="ReturnAlternateAnswerInstead"&&(g+='Return "'+i.alternateAnswer+'" instead.'),l.value=g},u=R(),c=R();st(async()=>{const g=s.getData();if(Dn(g,i),a(),i.newNode){const v=u.value.offsetHeight+100,m=u.value.offsetWidth-15;s.addPort({group:"absolute",args:{x:m,y:v},markup:[{tagName:"circle",selector:"bopdy"},{tagName:"rect",selector:"bg"}],attrs:{text:{text:"Goto next node",fontSize:12},bg:{ref:"text",refWidth:"100%",refHeight:"110%",refX:"-100%",refX2:-15,refY:-5,fill:"rgb(235,238,245)"}}}),i.nodeName+=g.nodeCnt.toString(),i.newNode=!1}d()});const d=()=>{i.noAnswerThenChoice=="ReturnAlternateAnswerInstead"&&!i.alternateAnswer&&i.invalidMessages.push("Please enter an alternate answer."),i.valid=i.invalidMessages.length==0},f=()=>{const g=s.getPorts(),v=ii();v.branchName=g[0].attrs.text.text,v.branchId=g[0].id,v.branchType="GotoAnotherNode",i.branches.splice(0,i.branches.length,v),delete i.noAnswerThen,i.noAnswerThenChoice=="GotoAnotherNode"?i.noAnswerThen=i.noAnswerThenChoice:i.noAnswerThenChoice=="ReturnAlternateAnswerInstead"&&(i.noAnswerThen={ReturnAlternateAnswerInstead:i.alternateAnswer}),d(),a(),s.removeData({silent:!0}),s.setData(i,{silent:!1}),h()},h=()=>{p.value=!1},p=R(!1);return(g,v)=>{const m=rt,C=go,y=wf,b=jn,S=Tg,T=vf,O=Cn,k=zn,P=xn,I=cr;return _(),G("div",_se,[L("div",{ref_key:"nodeName",ref:u,class:"nodeTitle"},[U(Q(i.nodeName)+" ",1),$e(L("span",null,[w(C,{class:"box-item",effect:"dark",content:i.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(m,{color:"red",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,i.invalidMessages.length>0]])],512),L("div",{ref_key:"nodeBrief",ref:c,style:{"white-space":"pre-wrap","font-size":"12px"}},Q(l.value),513),w(I,{modelValue:p.value,"onUpdate:modelValue":v[5]||(v[5]=M=>p.value=M),title:i.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(k,{"label-position":g.labelPosition,"label-width":"100px",model:i,style:{"max-width":"460px"}},{default:E(()=>[w(b,{label:"Knowledge recall thresholds","label-width":ov},{default:E(()=>[w(y,{modelValue:i.recallThresholds,"onUpdate:modelValue":v[0]||(v[0]=M=>i.recallThresholds=M),min:1,max:100},null,8,["modelValue"]),v[6]||(v[6]=U("% "))]),_:1}),w(b,{label:"When no knowledge is recalled","label-width":ov},{default:E(()=>[w(T,{modelValue:i.noAnswerThenChoice,"onUpdate:modelValue":v[1]||(v[1]=M=>i.noAnswerThenChoice=M)},{default:E(()=>[w(S,{value:"GotoAnotherNode"},{default:E(()=>v[7]||(v[7]=[U("Goto the next node")])),_:1}),w(S,{value:"ReturnAlternateAnswerInstead"},{default:E(()=>v[8]||(v[8]=[U("Return to the text below instead and stay at the current node.")])),_:1})]),_:1},8,["modelValue"])]),_:1}),$e(w(b,{label:"Alternate answer","label-width":ov},{default:E(()=>[w(O,{modelValue:i.alternateAnswer,"onUpdate:modelValue":v[2]||(v[2]=M=>i.alternateAnswer=M),placeholder:""},null,8,["modelValue"])]),_:1},512),[[qe,i.noAnswerThenChoice=="ReturnAlternateAnswerInstead"]])]),_:1},8,["label-position","model"]),L("div",Ase,[w(P,{type:"primary",loading:g.loading,onClick:v[3]||(v[3]=M=>f())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),w(P,{onClick:v[4]||(v[4]=M=>h())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Nse=Bo(Pse,[["__scopeId","data-v-6c2041fc"]]),Ise={class:"nodeBox"},Lse={class:"demo-drawer__footer"},h2="90px",Rse={__name:"EndNode",setup(t){const{t:e,tm:n,rt:o}=cn(),r=R(!1),s=ut({nodeName:"The end",endingText:"",valid:!1,invalidMessages:[],newNode:!0}),i=R(),a=Ve("getNode")();a.on("change:data",({current:h})=>{r.value=!0}),st(async()=>{const h=a.getData();Dn(h,s),s.newNode&&(s.nodeName+=h.nodeCnt.toString(),s.newNode=!1),u()});function u(){const h=s,p=h.invalidMessages;p.splice(0,p.length),h.endingText&&h.endingText.length>1e4&&p.push("The text entered cannot exceed 10,000 characters"),h.valid=p.length==0}function c(){r.value=!1}const d=R();function f(){u(),a.removeData({silent:!0}),a.setData(s,{silent:!1}),c();const h=i.value.offsetHeight+d.value.offsetHeight;a.resize(a.size().width,20+h,{direction:"bottom"})}return(h,p)=>{const g=rt,v=go,m=Cn,C=jn,y=zn,b=xn,S=cr;return _(),G("div",Ise,[L("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[U(Q(s.nodeName)+" ",1),$e(L("span",null,[w(v,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(g,{color:"red",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,s.invalidMessages.length>0]])],512),L("div",{ref_key:"nodeAnswer",ref:d,style:{"white-space":"pre-wrap","font-size":"12px"}},Q(s.endingText),513),w(S,{modelValue:r.value,"onUpdate:modelValue":p[4]||(p[4]=T=>r.value=T),title:s.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(y,{"label-position":h.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:E(()=>[w(C,{label:x(e)("lang.common.nodeName"),"label-width":h2},{default:E(()=>[w(m,{modelValue:s.nodeName,"onUpdate:modelValue":p[0]||(p[0]=T=>s.nodeName=T)},null,8,["modelValue"])]),_:1},8,["label"]),w(C,{label:"Ending text","label-width":h2},{default:E(()=>[w(m,{modelValue:s.endingText,"onUpdate:modelValue":p[1]||(p[1]=T=>s.endingText=T),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["label-position","model"]),L("div",Lse,[w(b,{type:"primary",loading:h.loading,onClick:p[2]||(p[2]=T=>f())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),w(b,{onClick:p[3]||(p[3]=T=>c())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},$se=Bo(Rse,[["__scopeId","data-v-b0afa238"]]),Dse={class:"nodeBox"},Vse={class:"nodeTitle"},Ec="110px",Bse={__name:"GotoNode",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ve("getNode"),{subflowNames:s,updateSubFlowNames:i}=Ve("subFlowNamesFn"),l=R(!1),a=R([]),u=R([]),c=n("lang.gotoNode.types"),d=[{label:c[1],value:"GotoMainFlow",disabled:!1},{label:c[2],value:"GotoSubFlow",disabled:!1},{label:c[3],value:"GotoExternalLink",disabled:!1}],f=ut({nodeName:e("lang.gotoNode.nodeName"),brief:"",gotoType:"",gotoMainFlowId:"",gotoSubFlowName:"",gotoSubFlowId:"",externalLink:"",valid:!1,invalidMessages:[],newNode:!0}),h=R(!1);r().on("change:data",({current:S})=>{l.value=!0}),st(async()=>{const T=r().getData();Dn(T,f),p(f.goToType),f.newNode&&(f.nodeName+=T.nodeCnt.toString()),f.newNode=!1,m();const O=await nt("GET","mainflow",null,null,null);O.status==200&&(a.value=O.data),T.gotoSubFlowId&&await g(T.gotoMainFlowId)});async function p(S){S=="GotoMainFlow"||S=="GotoSubFlow"&&(u.value=i(),h.value=!0)}async function g(S){if(S){const T=await nt("GET","subflow/simple",{mainFlowId:S,data:""},null,null);T.status==200&&(u.value=T.data)}else u.value=i();h.value=!0}const v=n("lang.gotoNode.errors");function m(){const S=f,T=S.invalidMessages;T.splice(0,T.length),S.nodeName||T.push(v[0]),S.gotoType||T.push(v[1]),S.gotoType=="GotoSubFlow"&&!S.gotoSubFlowId&&T.push(v[2]),S.gotoType=="GotoExternalLink"&&!S.externalLink&&T.push(v[3]),S.valid=T.length==0}function C(){l.value=!1}const y=n("lang.gotoNode.briefs");function b(){if(f.brief=y[0]+": ",f.gotoType=="Terminate")f.brief+=y[1];else if(f.gotoType=="GotoMainFlow"){f.brief+=y[4]+` +`;for(let T=0;T{const O=rt,k=go,P=Cn,I=jn,M=Bs,D=Vs,J=zn,oe=xn,N=cr;return _(),G("div",Dse,[L("div",Vse,[U(Q(f.nodeName)+" ",1),$e(L("span",null,[w(k,{class:"box-item",effect:"dark",content:f.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(O,{color:"red",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,f.invalidMessages.length>0]])]),L("div",null,Q(f.brief),1),l.value?(_(),pe(N,{key:0,modelValue:l.value,"onUpdate:modelValue":T[7]||(T[7]=A=>l.value=A),title:f.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(J,{"label-position":S.labelPosition,"label-width":"70px",model:f,style:{"max-width":"700px"}},{default:E(()=>[w(I,{label:x(e)("lang.common.nodeName"),"label-width":Ec},{default:E(()=>[w(P,{modelValue:f.nodeName,"onUpdate:modelValue":T[0]||(T[0]=A=>f.nodeName=A)},null,8,["modelValue"])]),_:1},8,["label"]),w(I,{label:x(e)("lang.gotoNode.gotoType"),"label-width":Ec},{default:E(()=>[w(D,{modelValue:f.gotoType,"onUpdate:modelValue":T[1]||(T[1]=A=>f.gotoType=A),placeholder:x(e)("lang.gotoNode.gotoTypePH"),onChange:p},{default:E(()=>[(_(),G(Le,null,yt(d,A=>w(M,{key:A.label,label:A.label,value:A.value,disabled:A.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),$e(L("div",null,[w(I,{label:x(e)("lang.gotoNode.gotoMainFlow"),"label-width":Ec},{default:E(()=>[w(D,{modelValue:f.gotoMainFlowId,"onUpdate:modelValue":T[2]||(T[2]=A=>f.gotoMainFlowId=A),placeholder:x(e)("lang.gotoNode.gotoMainFlowPH"),onChange:g},{default:E(()=>[(_(!0),G(Le,null,yt(a.value,A=>(_(),pe(M,{key:A.id,label:A.name,value:A.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[qe,f.gotoType==="GotoMainFlow"]]),$e(L("div",null,[w(I,{label:x(e)("lang.gotoNode.gotoSubFlow"),"label-width":Ec},{default:E(()=>[w(D,{modelValue:f.gotoSubFlowId,"onUpdate:modelValue":T[3]||(T[3]=A=>f.gotoSubFlowId=A),placeholder:x(e)("lang.gotoNode.gotoSubFlowPH")},{default:E(()=>[(_(!0),G(Le,null,yt(u.value,A=>(_(),pe(M,{key:A.id,label:A.name,value:A.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[qe,h.value]]),$e(L("div",null,[w(I,{label:x(e)("lang.gotoNode.externalLink"),"label-width":Ec},{default:E(()=>[w(P,{modelValue:f.externalLink,"onUpdate:modelValue":T[4]||(T[4]=A=>f.externalLink=A)},null,8,["modelValue"])]),_:1},8,["label"])],512),[[qe,f.gotoType==="GotoExternalLink"]])]),_:1},8,["label-position","model"]),L("div",null,[w(oe,{type:"primary",loading:S.loading,onClick:T[5]||(T[5]=A=>b())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),w(oe,{onClick:T[6]||(T[6]=A=>C())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):me("",!0)])}}},Fse=Bo(Bse,[["__scopeId","data-v-49c90c90"]]),zse={class:"nodeBox"},jse={class:"demo-drawer__footer"},rv="100px",Hse={__name:"ExternalHttpNode",setup(t){const{t:e,tm:n,rt:o}=cn(),r=R(!1),s=Ve("getNode"),{robotId:i}=Ve("robotId"),l=s(),a=ut([]),u=R(),c=R(),d=ut({nodeName:"ExternalHttpNode",httpApiName:"",httpApiId:"",valid:!1,invalidMessages:[],newNode:!0,branches:[]}),f=()=>{const v=d,m=v.invalidMessages;m.splice(0,m.length),(d.httpApiName==""||d.httpApiId=="")&&m.push("Please choose a HTTP interface"),s().getPortAt(0).id==""&&m.push('Please connect "Next" to another node'),v.valid=m.length==0},h=()=>{const v=s().getPortAt(0),m=d.branches[0];m.branchName="Next",m.branchId=v.id,f(),l.removeData({silent:!0}),l.setData(d,{silent:!1}),g()},p=v=>{for(var m in a)if(a[m].id==v){d.httpApiName=a[m].name;break}},g=()=>{r.value=!1};return l.on("change:data",({current:v})=>{r.value=!0}),st(async()=>{const v=await nt("GET","external/http",{robotId:i},null,null);if(v.status==200)for(var m in v.data)v.data.hasOwnProperty(m)&&a.push(v.data[m]);l.addPort({group:"absolute",args:{x:u.value.offsetWidth-15,y:u.value.offsetHeight+50},attrs:{text:{text:"Next",fontSize:12}}}),d.branches.push(ii())}),(v,m)=>{const C=rt,y=go,b=Cn,S=jn,T=Bs,O=Vs,k=yy,P=zn,I=xn,M=cr;return _(),G("div",zse,[L("div",{ref_key:"nodeName",ref:u,class:"nodeTitle"},[U(Q(d.nodeName)+" ",1),$e(L("span",null,[w(y,{class:"box-item",effect:"dark",content:d.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(C,{color:"red",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,d.invalidMessages.length>0]])],512),L("div",null,"Call Http: "+Q(d.httpApiName),1),w(M,{modelValue:r.value,"onUpdate:modelValue":m[5]||(m[5]=D=>r.value=D),title:d.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(P,{"label-position":v.labelPosition,"label-width":"70px",model:d,style:{"max-width":"850px"}},{default:E(()=>[w(S,{label:x(e)("lang.common.nodeName"),"label-width":rv},{default:E(()=>[w(b,{modelValue:d.nodeName,"onUpdate:modelValue":m[0]||(m[0]=D=>d.nodeName=D)},null,8,["modelValue"])]),_:1},8,["label"]),w(S,{label:"HTTP APIs","label-width":rv},{default:E(()=>[w(O,{ref_key:"apisRef",ref:c,modelValue:d.httpApiId,"onUpdate:modelValue":m[1]||(m[1]=D=>d.httpApiId=D),placeholder:"Choose an http interface",onChange:m[2]||(m[2]=D=>p(D))},{default:E(()=>[(_(!0),G(Le,null,yt(a,D=>(_(),pe(T,{key:D.id,label:D.name,value:D.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),w(S,{label:"","label-width":rv},{default:E(()=>[w(k,{size:"large"},{default:E(()=>m[6]||(m[6]=[L("div",null,[L("strong",null,"Please note"),U(" that this is just calling the interface, but the returned data will be ignored.")],-1),L("div",null,"If you need to obtain data, please create a variable and select a certain interface as the source of the data.",-1),L("div",null,"Checkout tutorial.",-1)])),_:1})]),_:1})]),_:1},8,["label-position","model"]),L("div",jse,[w(I,{type:"primary",loading:v.loading,onClick:m[3]||(m[3]=D=>h())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),w(I,{onClick:m[4]||(m[4]=D=>g())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Use=Bo(Hse,[["__scopeId","data-v-dc1ae126"]]),Wse={class:"nodeBox"},qse=["checked"],Gse={class:"demo-drawer__footer"},Kse={__name:"SendEmailNode",setup(t){const{t:e,tm:n}=cn(),o=ut({nodeName:"Send email node",from:"",to:"",toRecipients:[],cc:"",ccRecipients:[],bcc:"",bccRecipients:[],subject:"",content:"",contentType:"TextHtml",asyncSend:!0,valid:!1,invalidMessages:[],branches:[],newNode:!0});let r=!0;const s=R(),i=R(""),l=R(""),a=R(!1),u=Ve("getNode"),c=u(),d=[];c.on("change:data",({current:v})=>{a.value=!0}),st(async()=>{const v=c.getData();Dn(v,o),o.newNode?(o.nodeName+=v.nodeCnt.toString(),f(),o.newNode=!1):r=o.asyncSend;let m=await nt("GET","variable",null,null,null);m&&m.status==200&&m.data&&(d.splice(0,d.length),m.data.forEach(function(C,y,b){this.push({label:C.varName,value:C.varName})},d)),m=await nt("GET","management/settings",null,null,null),m&&m.status==200&&m.data&&(i.value=m.data.smtpHost,l.value=m.data.emailVerificationRegex),h()});const f=()=>{c.removePorts();const v=s.value.offsetHeight+50,m=s.value.offsetWidth-15;o.asyncSend?c.addPort({group:"absolute",args:{x:m,y:v},attrs:{text:{text:n("lang.dialogNode.nextSteps")[1],fontSize:12}}}):(c.addPort({group:"absolute",args:{x:m,y:v},attrs:{text:{text:n("lang.collectNode.branches")[0],fontSize:12}}}),c.addPort({group:"absolute",args:{x:m,y:v+20},attrs:{text:{text:n("lang.collectNode.branches")[1],fontSize:12}}}),c.resize(c.size().width,40+v,{direction:"bottom"}))},h=()=>{const v=o,m=v.invalidMessages;m.splice(0,m.length),i.value||m.push("SMTP host is not configured"),v.nodeName||m.push("Need to fill in the node name");const C=new RegExp(l.value);v.to?v.to.split(";").forEach(function(y){y.match(C)?v.toRecipients.push(y):m.push(y+" is not a valid email format")}):m.push("Need to fill in the email recipient"),v.cc&&v.cc.split(";").forEach(function(y){y.match(C)?v.ccRecipients.push(y):m.push(y+" is not a valid email format")}),v.bcc&&v.bcc.split(";").forEach(function(y){y.match(C)?v.bccRecipients.push(y):m.push(y+" is not a valid email format")}),v.subject||m.push("Need to fill in the email subject"),v.content||m.push("Need to fill in the email content"),(v.branches==null||v.branches.length==0)&&m.push("Wrong node branch information"),v.valid=m.length==0},p=()=>{r!=o.asyncSend&&(r=o.asyncSend,f());const v=u(),m=v.getPorts();o.branches.splice(0,o.branches.length);for(let C=0;C1?"EmailSentSuccessfully":"GotoAnotherNode",o.branches.push(y)}h(),v.removeData({silent:!0}),v.setData(o,{silent:!1}),g()},g=()=>{a.value=!1};return(v,m)=>{const C=rt,y=go,b=Cn,S=jn,T=Tg,O=vf,k=zn,P=xn,I=cr;return _(),G("div",Wse,[L("div",{ref_key:"nodeName",ref:s,class:"nodeTitle"},[U(Q(o.nodeName)+" ",1),$e(L("span",null,[w(y,{class:"box-item",effect:"dark",content:o.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(C,{color:"yellow",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,o.invalidMessages.length>0]])],512),L("div",null,"To: "+Q(o.to),1),L("div",null,"Subject: "+Q(o.subject),1),w(I,{modelValue:a.value,"onUpdate:modelValue":m[11]||(m[11]=M=>a.value=M),title:o.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(k,{"label-position":v.labelPosition,"label-width":"100px",model:o,style:{"max-width":"500px"}},{default:E(()=>[w(S,{label:x(e)("lang.common.nodeName")},{default:E(()=>[w(b,{modelValue:o.nodeName,"onUpdate:modelValue":m[0]||(m[0]=M=>o.nodeName=M)},null,8,["modelValue"])]),_:1},8,["label"]),w(S,{label:"From","label-width":v.formLabelWidth},{default:E(()=>[w(b,{modelValue:o.from,"onUpdate:modelValue":m[1]||(m[1]=M=>o.from=M),placeholder:""},null,8,["modelValue"])]),_:1},8,["label-width"]),w(S,{label:"To"},{default:E(()=>[w(b,{modelValue:o.to,"onUpdate:modelValue":m[2]||(m[2]=M=>o.to=M),placeholder:""},null,8,["modelValue"])]),_:1}),w(S,{label:""},{default:E(()=>m[12]||(m[12]=[U(" Separate multiple recipients with semicolons ")])),_:1}),w(S,{label:"Cc"},{default:E(()=>[w(b,{modelValue:o.cc,"onUpdate:modelValue":m[3]||(m[3]=M=>o.cc=M),placeholder:""},null,8,["modelValue"])]),_:1}),w(S,{label:"Bcc"},{default:E(()=>[w(b,{modelValue:o.bcc,"onUpdate:modelValue":m[4]||(m[4]=M=>o.bcc=M),placeholder:""},null,8,["modelValue"])]),_:1}),w(S,{label:"Subject"},{default:E(()=>[w(b,{modelValue:o.subject,"onUpdate:modelValue":m[5]||(m[5]=M=>o.subject=M),placeholder:""},null,8,["modelValue"])]),_:1}),w(S,{label:"Content"},{default:E(()=>[w(b,{modelValue:o.content,"onUpdate:modelValue":m[6]||(m[6]=M=>o.content=M),rows:2,type:"textarea",placeholder:"Please input"},null,8,["modelValue"])]),_:1}),w(S,{label:"Content type"},{default:E(()=>[w(O,{modelValue:o.contentType,"onUpdate:modelValue":m[7]||(m[7]=M=>o.contentType=M),class:"ml-4"},{default:E(()=>[w(T,{value:"TextHtml",size:"large"},{default:E(()=>m[13]||(m[13]=[U("text/html")])),_:1}),w(T,{value:"TextPlain",size:"large"},{default:E(()=>m[14]||(m[14]=[U("text/plain")])),_:1})]),_:1},8,["modelValue"])]),_:1}),w(S,{label:""},{default:E(()=>[$e(L("input",{type:"checkbox",id:"_asyncSend_","onUpdate:modelValue":m[8]||(m[8]=M=>o.asyncSend=M),checked:o.asyncSend},null,8,qse),[[il,o.asyncSend]]),m[15]||(m[15]=L("label",{for:"_asyncSend_"},"Send asynchronously",-1))]),_:1})]),_:1},8,["label-position","model"]),L("div",Gse,[w(P,{type:"primary",loading:v.loading,onClick:m[9]||(m[9]=M=>p())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),w(P,{onClick:m[10]||(m[10]=M=>g())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Jse=Bo(Kse,[["__scopeId","data-v-33ffb78d"]]),Yse={class:"nodeBox"},Xse=["innerHTML"],Zse={__name:"LlmChatNode",setup(t){const{t:e,tm:n,rt:o}=cn(),r=ut({nodeName:"Llm chat node",brief:"",prompt:"",promptText:"",nodeExitType:"exitByIntent",contextLength:5,exitCondition:{"":""},exitIntent:"",exitSpecialInputs:"",maxChatTimes:1,responseStreaming:!1,connectTimeout:1e3,readTimeout:1e4,whenTimeoutThen:null,valid:!1,invalidMessages:[],branches:[],newNode:!0}),s=ut({}),i=Ve("getNode"),{robotId:l}=Ve("robotId"),a=R(!1),u=ut([]),c=R(""),d=R(""),f=R(),h=R(!1),p=R("DoNothing"),g=R("");i().on("change:data",({current:b})=>{a.value=!0}),st(async()=>{const b=i(),S=b.getData();Dn(S,r),r.newNode&&(r.nodeName+=S.nodeCnt.toString(),b.addPort({group:"absolute",args:{x:f.value.offsetWidth-15,y:104},markup:[{tagName:"circle",selector:"bopdy"},{tagName:"rect",selector:"bg"}],attrs:{text:{text:"Next",fontSize:12},bg:{ref:"text",refWidth:"100%",refHeight:"110%",refX:"-100%",refX2:-15,refY:-5,fill:"rgb(235,238,245)"}}})),r.newNode=!1,typeof r.whenTimeoutThen=="string"?p.value=r.whenTimeoutThen:(p.value="ResponseAlternateText",g.value=r.whenTimeoutThen.ResponseAlternateText),m(),nt("GET","management/settings",{robotId:l},null,null).then(O=>{O.data&&(Dn(O.data,s),v(),r.connectTimeout>0&&r.readTimeout>0&&(h.value=!0),r.connectTimeout||(r.connectTimeout=s.chatProvider.connectTimeoutMillis),r.readTimeout||(r.readTimeout=s.chatProvider.readTimeoutMillis))});const T=await nt("GET","intent",{robotId:l},null,null);T.status==200&&u.splice(0,u.length,...T.data)});const v=()=>{c.value=s.chatProvider.provider.id,d.value=s.chatProvider.provider.model;let b="Chat model: "+s.chatProvider.provider.model+" of "+s.chatProvider.provider.id;b+="
History context length: "+r.contextLength,b+="
Exit this node by: "+r.nodeExitType,r.brief=b},m=()=>{const b=r,S=b.invalidMessages;S.splice(0,S.length),b.prompt||S.push('Please fill out "prompt" field.'),b.nodeExitType=="exitByIntent"&&!b.exitIntent&&S.push("Please select an intent to use for exiting."),b.nodeExitType=="exitBySpecialInputs"&&!b.exitSpecialInputs&&S.push("Please type some special inputs for exiting."),p.value=="ResponseAlternateText"&&!g.value&&S.push("Please enter alternate text."),b.valid=S.length==0},C=()=>{const b=i(),S=b.getPorts(),T=ii();T.branchName=S[0].attrs.text.text,T.branchId=S[0].id,T.branchType="GotoAnotherNode",r.branches.splice(0,r.branches.length,T),m(),delete r.exitCondition,r.exitCondition={};const O=r.nodeExitType.replace(/exitBy/,"");O=="Intent"?r.exitCondition[O]=r.exitIntent:O=="SpecialInputs"?r.exitCondition[O]=r.exitSpecialInputs:O=="MaxChatTimes"&&(r.exitCondition[O]=r.maxChatTimes),r.prompt=JSON.stringify([{role:"user",content:r.promptText}]),h.value||(r.connectTimeout=null,r.readTimeout=null),delete r.whenTimeoutThen,p.value=="ResponseAlternateText"?r.whenTimeoutThen={ResponseAlternateText:g}:r.whenTimeoutThen=p,b.removeData({silent:!0}),b.setData(r,{silent:!1}),v(),y()},y=()=>{a.value=!1};return(b,S)=>{const T=rt,O=go,k=Cn,P=jn,I=at("router-link"),M=wf,D=Tg,J=vf,oe=Bs,N=Vs,A=fi,K=bf,j=xn,F=zn,le=cr;return _(),G("div",Yse,[L("div",{ref_key:"nodeName",ref:f,class:"nodeTitle"},[U(Q(r.nodeName)+" ",1),$e(L("span",null,[w(O,{class:"box-item",effect:"dark",content:r.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:E(()=>[w(T,{color:"red",size:"16"},{default:E(()=>[w(x(Si))]),_:1})]),_:1},8,["content"])],512),[[qe,r.invalidMessages.length>0]])],512),L("div",{innerHTML:r.brief},null,8,Xse),a.value?(_(),pe(le,{key:0,modelValue:a.value,"onUpdate:modelValue":S[14]||(S[14]=ue=>a.value=ue),title:r.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:E(()=>[w(F,{"label-position":b.labelPosition,"label-width":"135px",model:r,style:{"max-width":"800px"}},{default:E(()=>[w(P,{label:x(e)("lang.common.nodeName"),"label-width":b.formLabelWidth},{default:E(()=>[w(k,{modelValue:r.nodeName,"onUpdate:modelValue":S[0]||(S[0]=ue=>r.nodeName=ue)},null,8,["modelValue"])]),_:1},8,["label","label-width"]),w(P,{label:"Chat model","label-width":b.formLabelWidth},{default:E(()=>[U(Q(c.value)+" - "+Q(d.value)+" (",1),w(I,{to:{name:"settings",params:{robotId:x(l)}}},{default:E(()=>S[15]||(S[15]=[U("change")])),_:1},8,["to"]),S[16]||(S[16]=U(") "))]),_:1},8,["label-width"]),w(P,{label:"Prompt","label-width":b.formLabelWidth},{default:E(()=>[w(k,{modelValue:r.promptText,"onUpdate:modelValue":S[1]||(S[1]=ue=>r.promptText=ue),rows:6,type:"textarea",placeholder:""},null,8,["modelValue"])]),_:1},8,["label-width"]),w(P,{label:"Context length","label-width":b.formLabelWidth},{default:E(()=>[w(M,{modelValue:r.contextLength,"onUpdate:modelValue":S[2]||(S[2]=ue=>r.contextLength=ue),min:0,max:50,step:5},null,8,["modelValue"]),S[17]||(S[17]=U(" How many chat history records will be added in prompt. "))]),_:1},8,["label-width"]),w(P,{label:"Exit condition","label-width":b.formLabelWidth},{default:E(()=>[w(J,{modelValue:r.nodeExitType,"onUpdate:modelValue":S[3]||(S[3]=ue=>r.nodeExitType=ue)},{default:E(()=>[w(D,{value:"exitByIntent"},{default:E(()=>S[18]||(S[18]=[U("Intent")])),_:1}),w(D,{value:"exitBySpecialInputs"},{default:E(()=>S[19]||(S[19]=[U("Special inputs")])),_:1}),w(D,{value:"exitByMaxChatTimes"},{default:E(()=>S[20]||(S[20]=[U("Max chat times")])),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width"]),w(P,{label:"","label-width":b.formLabelWidth},{default:E(()=>[$e(w(N,{modelValue:r.exitIntent,"onUpdate:modelValue":S[4]||(S[4]=ue=>r.exitIntent=ue)},{default:E(()=>[(_(!0),G(Le,null,yt(u,ue=>(_(),pe(oe,{key:ue.id,label:ue.name,value:ue.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),[[qe,r.nodeExitType=="exitByIntent"]]),$e(w(k,{modelValue:r.exitSpecialInputs,"onUpdate:modelValue":S[5]||(S[5]=ue=>r.exitSpecialInputs=ue)},null,8,["modelValue"]),[[qe,r.nodeExitType=="exitBySpecialInputs"]]),$e(w(M,{modelValue:r.maxChatTimes,"onUpdate:modelValue":S[6]||(S[6]=ue=>r.maxChatTimes=ue),min:1,max:200,step:1},null,8,["modelValue"]),[[qe,r.nodeExitType=="exitByMaxChatTimes"]])]),_:1},8,["label-width"]),w(P,{label:"Timeout","label-width":b.formLabelWidth},{default:E(()=>[w(A,{label:"Override timeout of settings",modelValue:h.value,"onUpdate:modelValue":S[7]||(S[7]=ue=>h.value=ue)},null,8,["modelValue"]),w(K,{direction:"vertical"}),U(" Current settings are: [Connect: "+Q(s.chatProvider.connectTimeoutMillis)+" millis, Read: "+Q(s.chatProvider.readTimeoutMillis)+" mills] ",1)]),_:1},8,["label-width"]),w(P,{label:"Connection","label-width":b.formLabelWidth},{default:E(()=>[w(M,{modelValue:r.connectTimeout,"onUpdate:modelValue":S[8]||(S[8]=ue=>r.connectTimeout=ue),min:100,max:65500,disabled:!h.value},null,8,["modelValue","disabled"])]),_:1},8,["label-width"]),w(P,{label:"Read","label-width":b.formLabelWidth},{default:E(()=>[w(M,{modelValue:r.readTimeout,"onUpdate:modelValue":S[9]||(S[9]=ue=>r.readTimeout=ue),min:200,max:65500,disabled:!h.value},null,8,["modelValue","disabled"])]),_:1},8,["label-width"]),w(P,{label:"When timeout then","label-width":b.formLabelWidth},{default:E(()=>[w(J,{modelValue:p.value,"onUpdate:modelValue":S[10]||(S[10]=ue=>p.value=ue)},{default:E(()=>[w(D,{value:"GotoAnotherNode"},{default:E(()=>S[21]||(S[21]=[U("Goto next node")])),_:1}),w(D,{value:"ResponseAlternateText"},{default:E(()=>S[22]||(S[22]=[U("Response alternate text")])),_:1}),w(D,{value:"DoNothing"},{default:E(()=>S[23]||(S[23]=[U("Do nothing")])),_:1}),w(O,{effect:"light",placement:"right"},{content:E(()=>S[24]||(S[24]=[U(" Stay at this node until meet one of exiting condition. ")])),default:E(()=>[w(j,{size:"small",circle:""},{default:E(()=>S[25]||(S[25]=[U("?")])),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width"]),$e(w(P,{label:"Alternate text","label-width":b.formLabelWidth},{default:E(()=>[w(k,{modelValue:g.value,"onUpdate:modelValue":S[11]||(S[11]=ue=>g.value=ue)},null,8,["modelValue"])]),_:1},8,["label-width"]),[[qe,p.value=="ResponseAlternateText"]])]),_:1},8,["label-position","model"]),L("div",null,[w(j,{type:"primary",onClick:S[12]||(S[12]=ue=>C())},{default:E(()=>[U(Q(x(e)("lang.common.save")),1)]),_:1}),w(j,{onClick:S[13]||(S[13]=ue=>y())},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):me("",!0)])}}},Qse=Bo(Zse,[["__scopeId","data-v-abd3abfe"]]);typeof window=="object"&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);typeof window<"u"&&function(t){t.forEach(e=>{Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value(...n){const o=document.createDocumentFragment();n.forEach(r=>{const s=r instanceof Node;o.appendChild(s?r:document.createTextNode(String(r)))}),this.appendChild(o)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);class hi{get disposed(){return this._disposed===!0}dispose(){this._disposed=!0}}(function(t){function e(){return(n,o,r)=>{const s=r.value,i=n.__proto__;r.value=function(...l){this.disposed||(s.call(this,...l),i.dispose.call(this))}}}t.dispose=e})(hi||(hi={}));class p2{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach(e=>{e.dispose()}),this.items.clear())}contains(e){return this.items.has(e)}add(e){this.items.add(e)}remove(e){this.items.delete(e)}clear(){this.items.clear()}}(function(t){function e(n){const o=new t;return n.forEach(r=>{o.add(r)}),o}t.from=e})(p2||(p2={}));function cP(t,e,n){if(n)switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);case 4:return t.call(e,n[0],n[1],n[2],n[3]);case 5:return t.call(e,n[0],n[1],n[2],n[3],n[4]);case 6:return t.call(e,n[0],n[1],n[2],n[3],n[4],n[5]);default:return t.apply(e,n)}return t.call(e)}function vt(t,e,...n){return cP(t,e,n)}function eie(t){return typeof t=="object"&&t.then&&typeof t.then=="function"}function g2(t){return t!=null&&(t instanceof Promise||eie(t))}function dP(...t){const e=[];if(t.forEach(o=>{Array.isArray(o)?e.push(...o):e.push(o)}),e.some(o=>g2(o))){const o=e.map(r=>g2(r)?r:Promise.resolve(r!==!1));return Promise.all(o).then(r=>r.reduce((s,i)=>i!==!1&&s,!0))}return e.every(o=>o!==!1)}function sv(t,e){const n=[];for(let o=0;o(this.off(e,r),sv([n,o],s));return this.on(e,r,this)}off(e,n,o){if(!(e||n||o))return this.listeners={},this;const r=this.listeners;return(e?[e]:Object.keys(r)).forEach(i=>{const l=r[i];if(l){if(!(n||o)){delete r[i];return}for(let a=l.length-2;a>=0;a-=2)n&&l[a]!==n||o&&l[a+1]!==o||l.splice(a,2)}}),this}trigger(e,...n){let o=!0;if(e!=="*"){const s=this.listeners[e];s!=null&&(o=sv([...s],n))}const r=this.listeners["*"];return r!=null?dP([o,sv([...r],[e,...n])]):o}emit(e,...n){return this.trigger(e,...n)}}function nie(t,...e){e.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(o=>{o!=="constructor"&&Object.defineProperty(t.prototype,o,Object.getOwnPropertyDescriptor(n.prototype,o))})})}const oie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])};function rie(t,e){oie(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}class sie{}const iie=/^\s*class\s+/.test(`${sie}`)||/^\s*class\s*\{/.test(`${class{}}`);function Hy(t,e){let n;return iie?n=class extends e{}:(n=function(){return e.apply(this,arguments)},rie(n,e)),Object.defineProperty(n,"name",{value:t}),n}function m2(t){return t==="__proto__"}function Uy(t,e,n="/"){let o;const r=Array.isArray(e)?e:e.split(n);if(r.length)for(o=t;r.length;){const s=r.shift();if(Object(o)===o&&s&&s in o)o=o[s];else return}return o}function ac(t,e,n,o="/"){const r=Array.isArray(e)?e:e.split(o),s=r.pop();if(s&&!m2(s)){let i=t;r.forEach(l=>{m2(l)||(i[l]==null&&(i[l]={}),i=i[l])}),i[s]=n}return t}function v2(t,e,n="/"){const o=Array.isArray(e)?e.slice():e.split(n),r=o.pop();if(r)if(o.length>0){const s=Uy(t,o);s&&delete s[r]}else delete t[r];return t}var lie=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class ar extends tie{dispose(){this.off()}}lie([hi.dispose()],ar.prototype,"dispose",null);(function(t){t.dispose=hi.dispose})(ar||(ar={}));nie(ar,hi);const fP=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},hP=fP(t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase()),Wy=fP(t=>YF(cg(t)).replace(/ /g,""));function iv(t){let e=2166136261,n=!1,o=t;for(let r=0,s=o.length;r127&&!n&&(o=unescape(encodeURIComponent(o)),i=o.charCodeAt(r),n=!0),e^=i,e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24)}return e>>>0}function xp(){let t="";const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let n=0,o=e.length;nn?l-n:1,c=e.length>n+l?n+l:e.length;r[0]=l;let d=l;for(let h=1;hn)return;const f=o;o=r,r=f}const i=o[e.length];return i>n?void 0:i}function pi(t){return typeof t=="string"&&t.slice(-1)==="%"}function Yr(t,e){if(t==null)return 0;let n;if(typeof t=="string"){if(n=parseFloat(t),pi(t)&&(n/=100,Number.isFinite(n)))return n*e}else n=t;return Number.isFinite(n)?n>0&&n<1?n*e:n:0}function wa(t){if(typeof t=="object"){let n=0,o=0,r=0,s=0;return t.vertical!=null&&Number.isFinite(t.vertical)&&(o=s=t.vertical),t.horizontal!=null&&Number.isFinite(t.horizontal)&&(r=n=t.horizontal),t.left!=null&&Number.isFinite(t.left)&&(n=t.left),t.top!=null&&Number.isFinite(t.top)&&(o=t.top),t.right!=null&&Number.isFinite(t.right)&&(r=t.right),t.bottom!=null&&Number.isFinite(t.bottom)&&(s=t.bottom),{top:o,right:r,bottom:s,left:n}}let e=0;return t!=null&&Number.isFinite(t)&&(e=t),{top:e,right:e,bottom:e,left:e}}let qy=!1,pP=!1,gP=!1,mP=!1,vP=!1,bP=!1,yP=!1,wP=!1,CP=!1,xP=!1,SP=!1,EP=!1,TP=!1,OP=!1,kP=!1,MP=!1;if(typeof navigator=="object"){const t=navigator.userAgent;qy=t.indexOf("Macintosh")>=0,pP=!!t.match(/(iPad|iPhone|iPod)/g),gP=t.indexOf("Windows")>=0,mP=t.indexOf("MSIE")>=0,vP=!!t.match(/Trident\/7\./),bP=!!t.match(/Edge\//),yP=t.indexOf("Mozilla/")>=0&&t.indexOf("MSIE")<0&&t.indexOf("Edge/")<0,CP=t.indexOf("Chrome/")>=0&&t.indexOf("Edge/")<0,xP=t.indexOf("Opera/")>=0||t.indexOf("OPR/")>=0,SP=t.indexOf("Firefox/")>=0,EP=t.indexOf("AppleWebKit/")>=0&&t.indexOf("Chrome/")<0&&t.indexOf("Edge/")<0,typeof document=="object"&&(MP=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||t.indexOf("Opera/")>=0)}typeof window=="object"&&(wP=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,OP=window.PointerEvent!=null&&!qy);if(typeof document=="object"){TP="ontouchstart"in document.documentElement;try{const t=Object.defineProperty({},"passive",{get(){kP=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",()=>{},t)}catch{}}var cl;(function(t){t.IS_MAC=qy,t.IS_IOS=pP,t.IS_WINDOWS=gP,t.IS_IE=mP,t.IS_IE11=vP,t.IS_EDGE=bP,t.IS_NETSCAPE=yP,t.IS_CHROME_APP=wP,t.IS_CHROME=CP,t.IS_OPERA=xP,t.IS_FIREFOX=SP,t.IS_SAFARI=EP,t.SUPPORT_TOUCH=TP,t.SUPPORT_POINTER=OP,t.SUPPORT_PASSIVE=kP,t.NO_FOREIGNOBJECT=MP,t.SUPPORT_FOREIGNOBJECT=!t.NO_FOREIGNOBJECT})(cl||(cl={}));(function(t){function e(){const s=window.module;return s!=null&&s.hot!=null&&s.hot.status!=null?s.hot.status():"unkonwn"}t.getHMRStatus=e;function n(){return e()==="apply"}t.isApplyingHMR=n;const o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function r(s){const i=document.createElement(o[s]||"div"),l=`on${s}`;let a=l in i;return a||(i.setAttribute(l,"return;"),a=typeof i[l]=="function"),a}t.isEventSupported=r})(cl||(cl={}));const Gy=/[\t\r\n\f]/g,Ky=/\S+/g,$u=t=>` ${t} `;function Du(t){return t&&t.getAttribute&&t.getAttribute("class")||""}function Of(t,e){if(t==null||e==null)return!1;const n=$u(Du(t)),o=$u(e);return t.nodeType===1?n.replace(Gy," ").includes(o):!1}function Dt(t,e){if(!(t==null||e==null)){if(typeof e=="function")return Dt(t,e(Du(t)));if(typeof e=="string"&&t.nodeType===1){const n=e.match(Ky)||[],o=$u(Du(t)).replace(Gy," ");let r=n.reduce((s,i)=>s.indexOf($u(i))<0?`${s}${i} `:s,o);r=r.trim(),o!==r&&t.setAttribute("class",r)}}}function Er(t,e){if(t!=null){if(typeof e=="function")return Er(t,e(Du(t)));if((!e||typeof e=="string")&&t.nodeType===1){const n=(e||"").match(Ky)||[],o=$u(Du(t)).replace(Gy," ");let r=n.reduce((s,i)=>{const l=$u(i);return s.indexOf(l)>-1?s.replace(l," "):s},o);r=e?r.trim():"",o!==r&&t.setAttribute("class",r)}}}function _P(t,e,n){if(!(t==null||e==null)){if(n!=null&&typeof e=="string"){n?Dt(t,e):Er(t,e);return}if(typeof e=="function")return _P(t,e(Du(t),n),n);typeof e=="string"&&(e.match(Ky)||[]).forEach(r=>{Of(t,r)?Er(t,r):Dt(t,r)})}}let b2=0;function cie(){return b2+=1,`v${b2}`}function Jy(t){return(t.id==null||t.id==="")&&(t.id=cie()),t.id}function dl(t){return t==null?!1:typeof t.getScreenCTM=="function"&&t instanceof SVGElement}const qn={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},y2="1.1";function w2(t,e=document){return e.createElement(t)}function Yy(t,e=qn.xhtml,n=document){return n.createElementNS(e,t)}function hs(t,e=document){return Yy(t,qn.svg,e)}function Sp(t){if(t){const n=`${t}`,{documentElement:o}=die(n,{async:!1});return o}const e=document.createElementNS(qn.svg,"svg");return e.setAttributeNS(qn.xmlns,"xmlns:xlink",qn.xlink),e.setAttribute("version",y2),e}function die(t,e={}){let n;try{const o=new DOMParser;if(e.async!=null){const r=o;r.async=e.async}n=o.parseFromString(t,e.mimeType||"text/xml")}catch{n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${t}`);return n}function fie(t,e=!0){const n=t.nodeName;return e?n.toLowerCase():n.toUpperCase()}function Xy(t){let e=0,n=t.previousSibling;for(;n;)n.nodeType===1&&(e+=1),n=n.previousSibling;return e}function hie(t,e){return t.querySelectorAll(e)}function pie(t,e){return t.querySelector(e)}function AP(t,e,n){const o=t.ownerSVGElement;let r=t.parentNode;for(;r&&r!==n&&r!==o;){if(Of(r,e))return r;r=r.parentNode}return null}function PP(t,e){const n=e&&e.parentNode;return t===n||!!(n&&n.nodeType===1&&t.compareDocumentPosition(n)&16)}function Vu(t){t&&(Array.isArray(t)?t:[t]).forEach(n=>{n.parentNode&&n.parentNode.removeChild(n)})}function kf(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Mf(t,e){(Array.isArray(e)?e:[e]).forEach(o=>{o!=null&&t.appendChild(o)})}function gie(t,e){const n=t.firstChild;return n?Zy(n,e):Mf(t,e)}function Zy(t,e){const n=t.parentNode;n&&(Array.isArray(e)?e:[e]).forEach(r=>{r!=null&&n.insertBefore(r,t)})}function mie(t,e){e!=null&&e.appendChild(t)}function C2(t){try{return t instanceof HTMLElement}catch{return typeof t=="object"&&t.nodeType===1&&typeof t.style=="object"&&typeof t.ownerDocument=="object"}}const NP=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function vie(t,e){return t.getAttribute(e)}function IP(t,e){const n=RP(e);n.ns?t.hasAttributeNS(n.ns,n.local)&&t.removeAttributeNS(n.ns,n.local):t.hasAttribute(e)&&t.removeAttribute(e)}function Qy(t,e,n){if(n==null)return IP(t,e);const o=RP(e);o.ns&&typeof n=="string"?t.setAttributeNS(o.ns,e,n):e==="id"?t.id=`${n}`:t.setAttribute(e,`${n}`)}function LP(t,e){Object.keys(e).forEach(n=>{Qy(t,n,e[n])})}function Qt(t,e,n){if(e==null){const o=t.attributes,r={};for(let s=0;s{const o=NP.includes(n)?n:hP(n);e[o]=t[n]}),e}function dh(t){const e={};return t.split(";").forEach(o=>{const r=o.trim();if(r){const s=r.split("=");s.length&&(e[s[0].trim()]=s[1]?s[1].trim():"")}}),e}function jb(t,e){return Object.keys(e).forEach(n=>{if(n==="class")t[n]=t[n]?`${t[n]} ${e[n]}`:e[n];else if(n==="style"){const o=typeof t[n]=="object",r=typeof e[n]=="object";let s,i;o&&r?(s=t[n],i=e[n]):o?(s=t[n],i=dh(e[n])):r?(s=dh(t[n]),i=e[n]):(s=dh(t[n]),i=dh(e[n])),t[n]=jb(s,i)}else t[n]=e[n]}),t}function bie(t,e,n={}){const o=n.offset||0,r=[],s=[];let i,l,a=null;for(let u=0;u=h&&uc(null,u));return}const d=()=>{c(new Error(`Failed to load image: ${u}`))},f=window.FileReader?p=>{if(p.status===200){const g=new FileReader;g.onload=v=>{const m=v.target.result;c(null,m)},g.onerror=d,g.readAsDataURL(p.response)}else d()}:p=>{const g=v=>{const C=[];for(let y=0;yf(h)),h.send()}t.imageToDataUri=n;function o(u){let c=u.replace(/\s/g,"");c=decodeURIComponent(c);const d=c.indexOf(","),f=c.slice(0,d),h=f.split(":")[1].split(";")[0],p=c.slice(d+1);let g;f.indexOf("base64")>=0?g=atob(p):g=unescape(encodeURIComponent(p));const v=new Uint8Array(g.length);for(let m=0;m]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return c&&c[2]?c[2].replace(/\s+/," ").split(" "):null}function l(u){const c=parseFloat(u);return Number.isNaN(c)?null:c}function a(u,c={}){let d=null;const f=y=>(d==null&&(d=i(u)),d!=null?l(d[y]):null),h=y=>{const b=u.match(y);return b&&b[2]?l(b[2]):null};let p=c.width;if(p==null&&(p=h(/]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),p==null&&(p=f(2)),p==null)throw new Error("Can not parse width from svg string");let g=c.height;if(g==null&&(g=h(/]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),g==null&&(g=f(3)),g==null)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(u).replace(/'/g,"%27").replace(/"/g,"%22")}`}t.svgToDataUrl=a})(x2||(x2={}));let Ul;const wie={px(t){return t},mm(t){return Ul*t},cm(t){return Ul*t*10},in(t){return Ul*t*25.4},pt(t){return Ul*(25.4*t/72)},pc(t){return Ul*(25.4*t/6)}};var S2;(function(t){function e(o,r,s){const i=document.createElement("div"),l=i.style;l.display="inline-block",l.position="absolute",l.left="-15000px",l.top="-15000px",l.width=o+(s||"px"),l.height=r+(s||"px"),document.body.appendChild(i);const a=i.getBoundingClientRect(),u={width:a.width||0,height:a.height||0};return document.body.removeChild(i),u}t.measure=e;function n(o,r){Ul==null&&(Ul=e("1","1","mm").width);const s=r?wie[r]:null;return s?s(o):o}t.toPx=n})(S2||(S2={}));const Cie=/-(.)/g;function xie(t){return t.replace(Cie,(e,n)=>n.toUpperCase())}const lv={},E2=["webkit","ms","moz","o"],$P=typeof document<"u"?document.createElement("div").style:{};function Sie(t){for(let e=0;e{o[r]=O2(t,r)}),o}if(typeof e=="string"){if(n===void 0)return O2(t,e);_ie(t,e,n);return}for(const o in e)Ca(t,o,e[o])}class ht{get[Symbol.toStringTag](){return ht.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}constructor(e,n,o){if(!e)throw new TypeError("Invalid element to create vector");let r;if(ht.isVector(e))r=e.node;else if(typeof e=="string")if(e.toLowerCase()==="svg")r=Sp();else if(e[0]==="<"){const s=Sp(e);r=document.importNode(s.firstChild,!0)}else r=document.createElementNS(qn.svg,e);else r=e;this.node=r,n&&this.setAttributes(n),o&&this.append(o)}transform(e,n){return e==null?Bu(this.node):(Bu(this.node,e,n),this)}translate(e,n=0,o={}){return e==null?M2(this.node):(M2(this.node,e,n,o),this)}rotate(e,n,o,r={}){return e==null?Wb(this.node):(Wb(this.node,e,n,o,r),this)}scale(e,n){return e==null?qb(this.node):(qb(this.node,e,n),this)}getTransformToElement(e){const n=ht.toNode(e);return sd(this.node,n)}removeAttribute(e){return IP(this.node,e),this}getAttribute(e){return vie(this.node,e)}setAttribute(e,n){return Qy(this.node,e,n),this}setAttributes(e){return LP(this.node,e),this}attr(e,n){return e==null?Qt(this.node):typeof e=="string"&&n===void 0?Qt(this.node,e):(typeof e=="object"?Qt(this.node,e):Qt(this.node,e,n),this)}svg(){return this.node instanceof SVGSVGElement?this:ht.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,n=e.node.getElementsByTagName("defs")[0];return n?ht.create(n):ht.create("defs").appendTo(e)}text(e,n={}){return VP(this.node,e,n),this}tagName(){return fie(this.node)}clone(){return ht.create(this.node.cloneNode(!0))}remove(){return Vu(this.node),this}empty(){return kf(this.node),this}append(e){return Mf(this.node,ht.toNodes(e)),this}appendTo(e){return mie(this.node,ht.isVector(e)?e.node:e),this}prepend(e){return gie(this.node,ht.toNodes(e)),this}before(e){return Zy(this.node,ht.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(ht.toNode(e),this.node),ht.create(e)}first(){return this.node.firstChild?ht.create(this.node.firstChild):null}last(){return this.node.lastChild?ht.create(this.node.lastChild):null}get(e){const n=this.node.childNodes[e];return n?ht.create(n):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(ht.toNode(e))}find(e){const n=[],o=hie(this.node,e);if(o)for(let r=0,s=o.length;rr(l)):[r(i)]}t.toNodes=s})(ht||(ht={}));function Aie(t,e){const n=ht.create(e),o=ht.create("textPath"),r=t.d;if(r&&t["xlink:href"]===void 0){const s=ht.create("path").attr("d",r).appendTo(n.defs());o.attr("xlink:href",`#${s.id}`)}return typeof t=="object"&&o.attr(t),o.node}function Pie(t,e,n){const o=n.eol,r=n.baseSize,s=n.lineHeight;let i=0,l;const a={},u=e.length-1;for(let c=0;c<=u;c+=1){let d=e[c],f=null;if(typeof d=="object"){const h=d.attrs,p=ht.create("tspan",h);l=p.node;let g=d.t;o&&c===u&&(g+=o),l.textContent=g;const v=h.class;v&&p.addClass(v),n.includeAnnotationIndices&&p.attr("annotations",d.annotations.join(",")),f=parseFloat(h["font-size"]),f===void 0&&(f=r),f&&f>i&&(i=f)}else o&&c===u&&(d+=o),l=document.createTextNode(d||" "),r&&r>i&&(i=r);t.appendChild(l)}return i&&(a.maxFontSize=i),s?a.lineHeight=s:i&&(a.lineHeight=i*1.2),a}const DP=/em$/;function fh(t,e){const n=parseFloat(t);return DP.test(t)?n*e:n}function Nie(t,e,n,o){if(!Array.isArray(e))return 0;const r=e.length;if(!r)return 0;let s=e[0];const i=fh(s.maxFontSize,n)||n;let l=0;const a=fh(o,n);for(let d=1;d0&&M.setAttribute("dy",C),(P>0||r)&&M.setAttribute("x",l),M.className.baseVal=I,m.appendChild(M),y+=J.length+1}if(i)if(u)C=Nie(s,T,v,f);else if(s==="top")C="0.8em";else{let P;switch(O>0?(P=parseFloat(f)||1,P*=O,DP.test(f)||(P/=v)):P=0,s){case"middle":C=`${.3-P/2}em`;break;case"bottom":C=`${-P-.3}em`;break}}else s===0?C="0em":s?C=s:(C=0,t.getAttribute("y")==null&&t.setAttribute("y",`${b||"0.8em"}`));m.firstChild.setAttribute("dy",C),t.appendChild(m)}function rd(t,e={}){const n=document.createElement("canvas").getContext("2d");if(!t)return{width:0};const o=[],r=e["font-size"]?`${parseFloat(e["font-size"])}px`:"14px";return o.push(e["font-style"]||"normal"),o.push(e["font-variant"]||"normal"),o.push(e["font-weight"]||400),o.push(r),o.push(e["font-family"]||"sans-serif"),n.font=o.join(" "),n.measureText(t)}function k2(t,e,n,o={}){if(e>=n)return[t,""];const r=t.length,s={};let i=Math.round(e/n*r-1);for(i<0&&(i=0);i>=0&&ie)i-=1;else if(c<=e)i+=1;else break}return[t.slice(0,i),t.slice(i)]}function BP(t,e,n={},o={}){const r=e.width,s=e.height,i=o.eol||` +`,l=n.fontSize||14,a=n.lineHeight?parseFloat(n.lineHeight):Math.ceil(l*1.4),u=Math.floor(s/a);if(t.indexOf(i)>-1){const v=xp(),m=[];return t.split(i).map(C=>{const y=BP(C,Object.assign(Object.assign({},e),{height:Number.MAX_SAFE_INTEGER}),n,Object.assign(Object.assign({},o),{eol:v}));y&&m.push(...y.split(v))}),m.slice(0,u).join(i)}const{width:c}=rd(t,n);if(cr)if(v===u-1){const[C]=k2(f,r-g,h,n);d.push(p?`${C}${p}`:C)}else{const[C,y]=k2(f,r,h,n);d.push(C),f=y,h=rd(f,n).width}else{d.push(f);break}return d.join(i)}const Hb=.551784;function ao(t,e,n=NaN){const o=t.getAttribute(e);if(o==null)return n;const r=parseFloat(o);return Number.isNaN(r)?n:r}function Iie(t,e=1){const n=t.getTotalLength(),o=[];let r=0,s;for(;r`${n.x} ${n.y}`).join(" L")}`}function Tp(t){const e=[],n=t.points;if(n)for(let o=0,r=n.numberOfItems;o=0){const i=jd(t),l=Uie(i);e=[l.translateX,l.translateY],n=[l.rotation],o=[l.scaleX,l.scaleY];const a=[];(e[0]!==0||e[1]!==0)&&a.push(`translate(${e.join(",")})`),(o[0]!==1||o[1]!==1)&&a.push(`scale(${o.join(",")})`),n[0]!==0&&a.push(`rotate(${n[0]})`),t=a.join(" ")}else{const i=t.match(/translate\((.*?)\)/);i&&(e=i[1].split(s));const l=t.match(/rotate\((.*?)\)/);l&&(n=l[1].split(s));const a=t.match(/scale\((.*?)\)/);a&&(o=a[1].split(s))}}const r=o&&o[0]?parseFloat(o[0]):1;return{raw:t||"",translation:{tx:e&&e[0]?parseInt(e[0],10):0,ty:e&&e[1]?parseInt(e[1],10):0},rotation:{angle:n&&n[0]?parseInt(n[0],10):0,cx:n&&n[1]?parseInt(n[1],10):void 0,cy:n&&n[2]?parseInt(n[2],10):void 0},scale:{sx:r,sy:o&&o[1]?parseFloat(o[1]):r}}}function Ub(t,e){const n=e.x*t.a+e.y*t.c+0,o=e.x*t.b+e.y*t.d+0;return{x:n,y:o}}function Uie(t){const e=Ub(t,{x:0,y:1}),n=Ub(t,{x:1,y:0}),o=180/Math.PI*Math.atan2(e.y,e.x)-90,r=180/Math.PI*Math.atan2(n.y,n.x);return{skewX:o,skewY:r,translateX:t.e,translateY:t.f,scaleX:Math.sqrt(t.a*t.a+t.b*t.b),scaleY:Math.sqrt(t.c*t.c+t.d*t.d),rotation:o}}function Wie(t){let e,n,o,r;return t?(e=t.a==null?1:t.a,r=t.d==null?1:t.d,n=t.b,o=t.c):e=r=1,{sx:n?Math.sqrt(e*e+n*n):e,sy:o?Math.sqrt(o*o+r*r):r}}function qie(t){let e={x:0,y:1};t&&(e=Ub(t,e));const n=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:n%360+(n<0?360:0)}}function Gie(t){return{tx:t&&t.e||0,ty:t&&t.f||0}}function Bu(t,e,n={}){if(e==null)return jd(Qt(t,"transform"));if(n.absolute){t.setAttribute("transform",uc(e));return}const o=t.transform,r=Ac(e);o.baseVal.appendItem(r)}function M2(t,e,n=0,o={}){let r=Qt(t,"transform");const s=Ug(r);if(e==null)return s.translation;r=s.raw,r=r.replace(/translate\([^)]*\)/g,"").trim();const i=o.absolute?e:s.translation.tx+e,l=o.absolute?n:s.translation.ty+n,a=`translate(${i},${l})`;t.setAttribute("transform",`${a} ${r}`.trim())}function Wb(t,e,n,o,r={}){let s=Qt(t,"transform");const i=Ug(s);if(e==null)return i.rotation;s=i.raw,s=s.replace(/rotate\([^)]*\)/g,"").trim(),e%=360;const l=r.absolute?e:i.rotation.angle+e,a=n!=null&&o!=null?`,${n},${o}`:"",u=`rotate(${l}${a})`;t.setAttribute("transform",`${s} ${u}`.trim())}function qb(t,e,n){let o=Qt(t,"transform");const r=Ug(o);if(e==null)return r.scale;n=n??e,o=r.raw,o=o.replace(/scale\([^)]*\)/g,"").trim();const s=`scale(${e},${n})`;t.setAttribute("transform",`${o} ${s}`.trim())}function sd(t,e){if(dl(e)&&dl(t)){const n=e.getScreenCTM(),o=t.getScreenCTM();if(n&&o)return n.inverse().multiply(o)}return to()}function Kie(t,e){let n=to();if(dl(e)&&dl(t)){let o=t;const r=[];for(;o&&o!==e;){const s=o.getAttribute("transform")||null,i=jd(s);r.push(i),o=o.parentNode}r.reverse().forEach(s=>{n=n.multiply(s)})}return n}function Jie(t,e,n){const o=t instanceof SVGSVGElement?t:t.ownerSVGElement,r=o.createSVGPoint();r.x=e,r.y=n;try{const s=o.getScreenCTM(),i=r.matrixTransform(s.inverse()),l=sd(t,o).inverse();return i.matrixTransform(l)}catch{return r}}var wr;(function(t){const e={};function n(s){return e[s]||{}}t.get=n;function o(s,i){e[s]=i}t.register=o;function r(s){delete e[s]}t.unregister=r})(wr||(wr={}));var Zl;(function(t){const e=new WeakMap;function n(s){return e.has(s)||e.set(s,{events:Object.create(null)}),e.get(s)}t.ensure=n;function o(s){return e.get(s)}t.get=o;function r(s){return e.delete(s)}t.remove=r})(Zl||(Zl={}));var wt;(function(t){t.returnTrue=()=>!0,t.returnFalse=()=>!1;function e(r){r.stopPropagation()}t.stopPropagationCallback=e;function n(r,s,i){r.addEventListener!=null&&r.addEventListener(s,i)}t.addEventListener=n;function o(r,s,i){r.removeEventListener!=null&&r.removeEventListener(s,i)}t.removeEventListener=o})(wt||(wt={}));(function(t){const e=/[^\x20\t\r\n\f]+/g,n=/^([^.]*)(?:\.(.+)|)/;function o(l){return(l||"").match(e)||[""]}t.splitType=o;function r(l){const a=n.exec(l)||[];return{originType:a[1]?a[1].trim():a[1],namespaces:a[2]?a[2].split(".").map(u=>u.trim()).sort():[]}}t.normalizeType=r;function s(l){return l.nodeType===1||l.nodeType===9||!+l.nodeType}t.isValidTarget=s;function i(l,a){if(a){const u=l;return u.querySelector!=null&&u.querySelector(a)!=null}return!0}t.isValidSelector=i})(wt||(wt={}));(function(t){let e=0;const n=new WeakMap;function o(l){return n.has(l)||(n.set(l,e),e+=1),n.get(l)}t.ensureHandlerId=o;function r(l){return n.get(l)}t.getHandlerId=r;function s(l){return n.delete(l)}t.removeHandlerId=s;function i(l,a){return n.set(l,a)}t.setHandlerId=i})(wt||(wt={}));(function(t){function e(n,o){const r=[],s=Zl.get(n),i=s&&s.events&&s.events[o.type],l=i&&i.handlers||[],a=i?i.delegateCount:0;if(a>0&&!(o.type==="click"&&typeof o.button=="number"&&o.button>=1)){for(let u=o.target;u!==n;u=u.parentNode||n)if(u.nodeType===1&&!(o.type==="click"&&u.disabled===!0)){const c=[],d={};for(let f=0;f{v.push(m)}),d[p]=v.includes(u)}d[p]&&c.push(h)}c.length&&r.push({elem:u,handlers:c})}}return a{const o=this.originalEvent;this.isDefaultPrevented=wt.returnTrue,o&&!this.isSimulated&&o.preventDefault()},this.stopPropagation=()=>{const o=this.originalEvent;this.isPropagationStopped=wt.returnTrue,o&&!this.isSimulated&&o.stopPropagation()},this.stopImmediatePropagation=()=>{const o=this.originalEvent;this.isImmediatePropagationStopped=wt.returnTrue,o&&!this.isSimulated&&o.stopImmediatePropagation(),this.stopPropagation()},typeof e=="string"?this.type=e:e.type&&(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?wt.returnTrue:wt.returnFalse,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.timeStamp=e.timeStamp),n&&Object.assign(this,n),this.timeStamp||(this.timeStamp=Date.now())}}(function(t){function e(n){return n instanceof t?n:new t(n)}t.create=e})(Os||(Os={}));(function(t){function e(n,o){Object.defineProperty(t.prototype,n,{enumerable:!0,configurable:!0,get:typeof o=="function"?function(){if(this.originalEvent)return o(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set(r){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:r})}})}t.addProperty=e})(Os||(Os={}));(function(t){const e={bubbles:!0,cancelable:!0,eventPhase:!0,detail:!0,view:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pageX:!0,pageY:!0,screenX:!0,screenY:!0,toElement:!0,pointerId:!0,pointerType:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,touches:!0,changedTouches:!0,targetTouches:!0,which:!0,altKey:!0,ctrlKey:!0,metaKey:!0,shiftKey:!0};Object.keys(e).forEach(n=>t.addProperty(n,e[n]))})(Os||(Os={}));(function(t){wr.register("load",{noBubble:!0})})();(function(t){wr.register("beforeunload",{postDispatch(e,n){n.result!==void 0&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}})})();(function(t){wr.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(e,n){let o;const r=n.relatedTarget,s=n.handleObj;return(!r||r!==e&&!wt.contains(e,r))&&(n.type=s.originType,o=s.handler.call(e,n),n.type="mouseover"),o}}),wr.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(e,n){let o;const r=n.relatedTarget,s=n.handleObj;return(!r||r!==e&&!wt.contains(e,r))&&(n.type=s.originType,o=s.handler.call(e,n),n.type="mouseout"),o}})})();var Yie=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{const{originType:v,namespaces:m}=wt.normalizeType(g);if(!v)return;let C=v,y=wr.get(C);C=(c?y.delegateType:y.bindType)||C,y=wr.get(C);const b=Object.assign({type:C,originType:v,data:u,selector:c,guid:p,handler:a,namespace:m.join(".")},d),S=f.events;let T=S[C];T||(T=S[C]={handlers:[],delegateCount:0},(!y.setup||y.setup(i,u,m,h)===!1)&&wt.addEventListener(i,C,h)),y.add&&(wt.removeHandlerId(b.handler),y.add(i,b),wt.setHandlerId(b.handler,p)),c?(T.handlers.splice(T.delegateCount,0,b),T.delegateCount+=1):T.handlers.push(b)})}t.on=n;function o(i,l,a,u,c){const d=Zl.get(i);if(!d)return;const f=d.events;f&&(wt.splitType(l).forEach(h=>{const{originType:p,namespaces:g}=wt.normalizeType(h);if(!p){Object.keys(f).forEach(S=>{o(i,S+h,a,u,!0)});return}let v=p;const m=wr.get(v);v=(u?m.delegateType:m.bindType)||v;const C=f[v];if(!C)return;const y=g.length>0?new RegExp(`(^|\\.)${g.join("\\.(?:.*\\.|)")}(\\.|$)`):null,b=C.handlers.length;for(let S=C.handlers.length-1;S>=0;S-=1){const T=C.handlers[S];(c||p===T.originType)&&(!a||wt.getHandlerId(a)===T.guid)&&(y==null||T.namespace&&y.test(T.namespace))&&(u==null||u===T.selector||u==="**"&&T.selector)&&(C.handlers.splice(S,1),T.selector&&(C.delegateCount-=1),m.remove&&m.remove(i,T))}b&&C.handlers.length===0&&((!m.teardown||m.teardown(i,g,d.handler)===!1)&&wt.removeEventListener(i,v,d.handler),delete f[v])}),Object.keys(f).length===0&&Zl.remove(i))}t.off=o;function r(i,l,...a){const u=Os.create(l);u.delegateTarget=i;const c=wr.get(u.type);if(c.preDispatch&&c.preDispatch(i,u)===!1)return;const d=wt.getHandlerQueue(i,u);for(let f=0,h=d.length;f-1&&(f=d.split("."),d=f.shift(),f.sort());const p=d.indexOf(":")<0&&`on${d}`;c=i instanceof Os?i:new Os(d,typeof i=="object"?i:null),c.namespace=f.join("."),c.rnamespace=c.namespace?new RegExp(`(^|\\.)${f.join("\\.(?:.*\\.|)")}(\\.|$)`):null,c.result=void 0,c.target||(c.target=h);const g=[c];Array.isArray(l)?g.push(...l):g.push(l);const v=wr.get(d);if(!u&&v.trigger&&v.trigger(h,c,l)===!1)return;let m;const C=[h];if(!u&&!v.noBubble&&!wt.isWindow(h)){m=v.delegateType||d;let b=h,S=h.parentNode;for(;S!=null;)C.push(S),b=S,S=S.parentNode;const T=h.ownerDocument||document;if(b===T){const O=b.defaultView||b.parentWindow||window;C.push(O)}}let y=h;for(let b=0,S=C.length;b1?m:v.bindType||d;const O=Zl.get(T);O&&O.events[c.type]&&O.handler&&O.handler.call(T,...g);const k=p&&T[p]||null;k&&wt.isValidTarget(T)&&(c.result=k.call(T,...g),c.result===!1&&c.preventDefault())}if(c.type=d,!u&&!c.isDefaultPrevented()){const b=v.preventDefault;if((b==null||b(C.pop(),c,l)===!1)&&wt.isValidTarget(h)&&p&&typeof h[d]=="function"&&!wt.isWindow(h)){const S=h[p];S&&(h[p]=null),e=d,c.isPropagationStopped()&&y.addEventListener(d,wt.stopPropagationCallback),h[d](),c.isPropagationStopped()&&y.removeEventListener(d,wt.stopPropagationCallback),e=void 0,S&&(h[p]=S)}}return c.result}t.trigger=s})(Hd||(Hd={}));var ro;(function(t){function e(s,i,l,a,u){return id.on(s,i,l,a,u),s}t.on=e;function n(s,i,l,a,u){return id.on(s,i,l,a,u,!0),s}t.once=n;function o(s,i,l,a){return id.off(s,i,l,a),s}t.off=o;function r(s,i,l,a){return Hd.trigger(i,l,s,a),s}t.trigger=r})(ro||(ro={}));var id;(function(t){function e(o,r,s,i,l,a){if(typeof r=="object"){typeof s!="string"&&(i=i||s,s=void 0),Object.keys(r).forEach(u=>e(o,u,s,i,r[u],a));return}if(i==null&&l==null?(l=s,i=s=void 0):l==null&&(typeof s=="string"?(l=i,i=void 0):(l=i,i=s,s=void 0)),l===!1)l=wt.returnFalse;else if(!l)return;if(a){const u=l;l=function(c,...d){return t.off(o,c),u.call(this,c,...d)},wt.setHandlerId(l,wt.ensureHandlerId(u))}Hd.on(o,r,l,i,s)}t.on=e;function n(o,r,s,i){const l=r;if(l&&l.preventDefault!=null&&l.handleObj!=null){const a=l.handleObj;n(l.delegateTarget,a.namespace?`${a.originType}.${a.namespace}`:a.originType,a.selector,a.handler);return}if(typeof r=="object"){const a=r;Object.keys(a).forEach(u=>n(o,u,s,a[u]));return}(s===!1||typeof s=="function")&&(i=s,s=void 0),i===!1&&(i=wt.returnFalse),Hd.off(o,r,i,s)}t.off=n})(id||(id={}));class UP{constructor(e,n,o){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=cl.isEventSupported("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=n,this.onWheelGuard=o,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){this.target.addEventListener(this.eventName,this.onWheel,{passive:!1})}disable(){this.target.removeEventListener(this.eventName,this.onWheel)}onWheel(e){if(this.onWheelGuard!=null&&!this.onWheelGuard(e))return;this.deltaX+=e.deltaX,this.deltaY+=e.deltaY,e.preventDefault();let n;(this.deltaX!==0||this.deltaY!==0)&&(e.stopPropagation(),n=!0),n===!0&&this.animationFrameId===0&&(this.animationFrameId=requestAnimationFrame(()=>{this.didWheel(e)}))}didWheel(e){this.animationFrameId=0,this.onWheelCallback(e,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}function WP(t,e=60){let n=null;return(...o)=>{n&&clearTimeout(n),n=window.setTimeout(()=>{t.apply(this,o)},e)}}function Xie(t){let e=null,n=[];const o=()=>{if(getComputedStyle(t).position==="static"){const u=t.style;u.position="relative"}const a=document.createElement("object");return a.onload=()=>{a.contentDocument.defaultView.addEventListener("resize",r),r()},a.style.display="block",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.height="100%",a.style.width="100%",a.style.overflow="hidden",a.style.pointerEvents="none",a.style.zIndex="-1",a.style.opacity="0",a.setAttribute("tabindex","-1"),a.type="text/html",t.appendChild(a),a.data="about:blank",a},r=WP(()=>{n.forEach(a=>a(t))}),s=a=>{e||(e=o()),n.indexOf(a)===-1&&n.push(a)},i=()=>{e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",r),e.parentNode.removeChild(e),e=null,n=[])};return{element:t,bind:s,destroy:i,unbind:a=>{const u=n.indexOf(a);u!==-1&&n.splice(u,1),n.length===0&&e&&i()}}}function Zie(t){let e=null,n=[];const o=WP(()=>{n.forEach(a=>{a(t)})}),r=()=>{const a=new ResizeObserver(o);return a.observe(t),o(),a},s=a=>{e||(e=r()),n.indexOf(a)===-1&&n.push(a)},i=()=>{e&&(e.disconnect(),n=[],e=null)};return{element:t,bind:s,destroy:i,unbind:a=>{const u=n.indexOf(a);u!==-1&&n.splice(u,1),n.length===0&&e&&i()}}}const Qie=typeof ResizeObserver<"u"?Zie:Xie;var Op;(function(t){const e=new WeakMap;function n(r){let s=e.get(r);return s||(s=Qie(r),e.set(r,s),s)}function o(r){r.destroy(),e.delete(r.element)}t.bind=(r,s)=>{const i=n(r);return i.bind(s),()=>i.unbind(s)},t.clear=r=>{const s=n(r);o(s)}})(Op||(Op={}));class Ud{constructor(e={}){this.comparator=e.comparator||Ud.defaultComparator,this.index={},this.data=e.data||[],this.heapify()}isEmpty(){return this.data.length===0}insert(e,n,o){const r={priority:e,value:n},s=this.data.length;return o&&(r.id=o,this.index[o]=s),this.data.push(r),this.bubbleUp(s),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(e,n){const o=this.index[e];if(typeof o>"u")throw new Error(`Node with id '${e}' was not found in the heap.`);const r=this.data,s=r[o].priority,i=this.comparator(n,s);i<0?(r[o].priority=n,this.bubbleUp(o)):i>0&&(r[o].priority=n,this.bubbleDown(o))}remove(){const e=this.data,n=e[0],o=e.pop();return n.id&&delete this.index[n.id],e.length>0&&(e[0]=o,o.id&&(this.index[o.id]=0),this.bubbleDown(0)),n?n.value:null}heapify(){for(let e=0;e0&&(r=s-1>>>1,this.comparator(n[s].priority,n[r].priority)<0);){o=n[r],n[r]=n[s];let i=n[s].id;i!=null&&(this.index[i]=r),n[s]=o,i=n[s].id,i!=null&&(this.index[i]=s),s=r}}bubbleDown(e){const n=this.data,o=n.length-1;let r=e;for(;;){const s=(r<<1)+1,i=s+1;let l=r;if(s<=o&&this.comparator(n[s].priority,n[l].priority)<0&&(l=s),i<=o&&this.comparator(n[i].priority,n[l].priority)<0&&(l=i),l!==r){const a=n[l];n[l]=n[r];let u=n[r].id;u!=null&&(this.index[u]=l),n[r]=a,u=n[r].id,u!=null&&(this.index[u]=r),r=l}else break}}}(function(t){t.defaultComparator=(e,n)=>e-n})(Ud||(Ud={}));var Gb;(function(t){function e(n,o,r=(s,i)=>1){const s={},i={},l={},a=new Ud;for(s[o]=0,Object.keys(n).forEach(u=>{u!==o&&(s[u]=1/0),a.insert(s[u],u,u)});!a.isEmpty();){const u=a.remove();l[u]=!0;const c=n[u]||[];for(let d=0;d{const o=this[n].toString(16);return o.length<2?`0${o}`:o}).join("")}`}toRGBA(){return this.toArray()}toHSLA(){return ri.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(e){const n=`${this.r},${this.g},${this.b},`;return e?`rgb(${n})`:`rgba(${n},${this.a})`}toGrey(){return ri.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}(function(t){function e(y){return new t(y)}t.fromArray=e;function n(y){return new t([...p(y),1])}t.fromHex=n;function o(y){const b=y.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(b){const S=b[1].split(/\s*,\s*/).map(T=>parseInt(T,10));return new t(S)}return null}t.fromRGBA=o;function r(y,b,S){S<0&&++S,S>1&&--S;const T=6*S;return T<1?y+(b-y)*T:2*S<1?b:3*S<2?y+(b-y)*(2/3-S)*6:y}function s(y){const b=y.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(b){const S=b[2].split(/\s*,\s*/),T=(parseFloat(S[0])%360+360)%360/360,O=parseFloat(S[1])/100,k=parseFloat(S[2])/100,P=S[3]==null?1:parseInt(S[3],10);return new t(u(T,O,k,P))}return null}t.fromHSLA=s;function i(y){if(y.startsWith("#"))return n(y);if(y.startsWith("rgb"))return o(y);const b=t.named[y];return b?n(b):s(y)}t.fromString=i;function l(y,b){return t.fromArray([y,y,y,b])}t.makeGrey=l;function a(y,b,S,T){const O=Array.isArray(y)?y[0]:y,k=Array.isArray(y)?y[1]:b,P=Array.isArray(y)?y[2]:S,I=Array.isArray(y)?y[3]:T,M=Math.max(O,k,P),D=Math.min(O,k,P),J=(M+D)/2;let oe=0,N=0;if(D!==M){const A=M-D;switch(N=J>.5?A/(2-M-D):A/(M+D),M){case O:oe=(k-P)/A+(k186?"#000000":"#ffffff":`${P?"#":""}${g(255-I,255-M,255-D)}`}const S=y[0],T=y[1],O=y[2],k=y[3];return b?S*.299+T*.587+O*.114>186?[0,0,0,k]:[255,255,255,k]:[255-S,255-T,255-O,k]}t.invert=h;function p(y){const b=y.indexOf("#")===0?y:`#${y}`;let S=+`0x${b.substr(1)}`;if(!(b.length===4||b.length===7)||Number.isNaN(S))throw new Error("Invalid hex color.");const T=b.length===4?4:8,O=(1<{const P=S&O;return S>>=T,T===4?17*P:P});return[k[2],k[1],k[0]]}function g(y,b,S){const T=O=>O.length<2?`0${O}`:O;return`${T(y.toString(16))}${T(b.toString(16))}${T(S.toString(16))}`}function v(y,b){return C(y,b)}t.lighten=v;function m(y,b){return C(y,-b)}t.darken=m;function C(y,b){if(typeof y=="string"){const O=y[0]==="#",k=parseInt(O?y.substr(1):y,16),P=xr((k>>16)+b,0,255),I=xr((k>>8&255)+b,0,255),M=xr((k&255)+b,0,255);return`${O?"#":""}${(M|I<<8|P<<16).toString(16)}`}const S=g(y[0],y[1],y[2]),T=p(C(S,b));return[T[0],T[1],T[2],y[3]]}})(ri||(ri={}));(function(t){t.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}})(ri||(ri={}));class Kb{constructor(){this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(e){return this.map.has(e)}get(e){return this.map.get(e)}set(e,n){this.map.set(e,n),this.arr.push(e)}delete(e){const n=this.arr.indexOf(e);n>=0&&this.arr.splice(n,1);const o=this.map.get(e);return this.map.delete(e),o}each(e){this.arr.forEach(n=>{const o=this.map.get(n);e(o,n)})}dispose(){this.clear()}}var Fu;(function(t){function e(r){const s=[],i=[];return Array.isArray(r)?s.push(...r):r.split("|").forEach(l=>{l.indexOf("&")===-1?s.push(l):i.push(...l.split("&"))}),{or:s,and:i}}t.parse=e;function n(r,s){if(r!=null&&s!=null){const i=e(r),l=e(s),a=i.or.sort(),u=l.or.sort(),c=i.and.sort(),d=l.and.sort(),f=(h,p)=>h.length===p.length&&(h.length===0||h.every((g,v)=>g===p[v]));return f(a,u)&&f(c,d)}return r==null&&s==null}t.equals=n;function o(r,s,i){if(s==null||Array.isArray(s)&&s.length===0)return i?r.altKey!==!0&&r.ctrlKey!==!0&&r.metaKey!==!0&&r.shiftKey!==!0:!0;const{or:l,and:a}=e(s),u=c=>{const d=`${c.toLowerCase()}Key`;return r[d]===!0};return l.some(c=>u(c))&&a.every(c=>u(c))}t.isMatch=o})(Fu||(Fu={}));var xa;(function(t){t.linear=e=>e,t.quad=e=>e*e,t.cubic=e=>e*e*e,t.inout=e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*e,o=n*e;return 4*(e<.5?o:3*(e-n)+o-.75)},t.exponential=e=>Math.pow(2,10*(e-1)),t.bounce=e=>{for(let n=0,o=1;;n+=o,o/=2)if(e>=(7-4*n)/11){const r=(11-6*n-11*e)/4;return-r*r+o*o}}})(xa||(xa={}));(function(t){t.decorators={reverse(e){return n=>1-e(1-n)},reflect(e){return n=>.5*(n<.5?e(2*n):2-e(2-2*n))},clamp(e,n=0,o=1){return r=>{const s=e(r);return so?o:s}},back(e=1.70158){return n=>n*n*((e+1)*n-e)},elastic(e=1.5){return n=>Math.pow(2,10*(n-1))*Math.cos(20*Math.PI*e/3*n)}}})(xa||(xa={}));(function(t){function e(N){return-1*Math.cos(N*(Math.PI/2))+1}t.easeInSine=e;function n(N){return Math.sin(N*(Math.PI/2))}t.easeOutSine=n;function o(N){return-.5*(Math.cos(Math.PI*N)-1)}t.easeInOutSine=o;function r(N){return N*N}t.easeInQuad=r;function s(N){return N*(2-N)}t.easeOutQuad=s;function i(N){return N<.5?2*N*N:-1+(4-2*N)*N}t.easeInOutQuad=i;function l(N){return N*N*N}t.easeInCubic=l;function a(N){const A=N-1;return A*A*A+1}t.easeOutCubic=a;function u(N){return N<.5?4*N*N*N:(N-1)*(2*N-2)*(2*N-2)+1}t.easeInOutCubic=u;function c(N){return N*N*N*N}t.easeInQuart=c;function d(N){const A=N-1;return 1-A*A*A*A}t.easeOutQuart=d;function f(N){const A=N-1;return N<.5?8*N*N*N*N:1-8*A*A*A*A}t.easeInOutQuart=f;function h(N){return N*N*N*N*N}t.easeInQuint=h;function p(N){const A=N-1;return 1+A*A*A*A*A}t.easeOutQuint=p;function g(N){const A=N-1;return N<.5?16*N*N*N*N*N:1+16*A*A*A*A*A}t.easeInOutQuint=g;function v(N){return N===0?0:Math.pow(2,10*(N-1))}t.easeInExpo=v;function m(N){return N===1?1:-Math.pow(2,-10*N)+1}t.easeOutExpo=m;function C(N){if(N===0||N===1)return N;const A=N*2,K=A-1;return A<1?.5*Math.pow(2,10*K):.5*(-Math.pow(2,-10*K)+2)}t.easeInOutExpo=C;function y(N){const A=N/1;return-1*(Math.sqrt(1-A*N)-1)}t.easeInCirc=y;function b(N){const A=N-1;return Math.sqrt(1-A*A)}t.easeOutCirc=b;function S(N){const A=N*2,K=A-2;return A<1?-.5*(Math.sqrt(1-A*A)-1):.5*(Math.sqrt(1-K*K)+1)}t.easeInOutCirc=S;function T(N,A=1.70158){return N*N*((A+1)*N-A)}t.easeInBack=T;function O(N,A=1.70158){const K=N/1-1;return K*K*((A+1)*K+A)+1}t.easeOutBack=O;function k(N,A=1.70158){const K=N*2,j=K-2,F=A*1.525;return K<1?.5*K*K*((F+1)*K-F):.5*(j*j*((F+1)*j+F)+2)}t.easeInOutBack=k;function P(N,A=.7){if(N===0||N===1)return N;const j=N/1-1,F=1-A,le=F/(2*Math.PI)*Math.asin(1);return-(Math.pow(2,10*j)*Math.sin((j-le)*(2*Math.PI)/F))}t.easeInElastic=P;function I(N,A=.7){const K=1-A,j=N*2;if(N===0||N===1)return N;const F=K/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*j)*Math.sin((j-F)*(2*Math.PI)/K)+1}t.easeOutElastic=I;function M(N,A=.65){const K=1-A;if(N===0||N===1)return N;const j=N*2,F=j-1,le=K/(2*Math.PI)*Math.asin(1);return j<1?-.5*(Math.pow(2,10*F)*Math.sin((F-le)*(2*Math.PI)/K)):Math.pow(2,-10*F)*Math.sin((F-le)*(2*Math.PI)/K)*.5+1}t.easeInOutElastic=M;function D(N){const A=N/1;if(A<1/2.75)return 7.5625*A*A;if(A<2/2.75){const K=A-.5454545454545454;return 7.5625*K*K+.75}if(A<2.5/2.75){const K=A-.8181818181818182;return 7.5625*K*K+.9375}{const K=A-.9545454545454546;return 7.5625*K*K+.984375}}t.easeOutBounce=D;function J(N){return 1-D(1-N)}t.easeInBounce=J;function oe(N){return N<.5?J(N*2)*.5:D(N*2-1)*.5+.5}t.easeInOutBounce=oe})(xa||(xa={}));var Ql;(function(t){t.number=(e,n)=>{const o=n-e;return r=>e+o*r},t.object=(e,n)=>{const o=Object.keys(e);return r=>{const s={};for(let i=o.length-1;i!==-1;i-=1){const l=o[i];s[l]=e[l]+(n[l]-e[l])*r}return s}},t.unit=(e,n)=>{const o=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,r=o.exec(e),s=o.exec(n),i=s?s[1]:"",l=r?+r[1]:0,a=s?+s[1]:0,u=i.indexOf("."),c=u>0?i[1].length-u-1:0,d=a-l,f=r?r[2]:"";return h=>(l+d*h).toFixed(c)+f},t.color=(e,n)=>{const o=parseInt(e.slice(1),16),r=parseInt(n.slice(1),16),s=o&255,i=(r&255)-s,l=o&65280,a=(r&65280)-l,u=o&16711680,c=(r&16711680)-u;return d=>{const f=s+i*d&255,h=l+a*d&65280,p=u+c*d&16711680;return`#${(1<<24|f|h|p).toString(16).slice(1)}`}}})(Ql||(Ql={}));const ld=[];function ele(t,e){const n=ld.find(o=>o.name===t);if(!(n&&(n.loadTimes+=1,n.loadTimes>1))&&!cl.isApplyingHMR()){const o=document.createElement("style");o.setAttribute("type","text/css"),o.textContent=e;const r=document.querySelector("head");r&&r.insertBefore(o,r.firstChild),ld.push({name:t,loadTimes:1,styleElement:o})}}function tle(t){const e=ld.findIndex(n=>n.name===t);if(e>-1){const n=ld[e];if(n.loadTimes-=1,n.loadTimes>0)return;let o=n.styleElement;o&&o.parentNode&&o.parentNode.removeChild(o),o=null,ld.splice(e,1)}}var Zt;(function(t){function e(o){return 180*o/Math.PI%360}t.toDeg=e,t.toRad=function(o,r=!1){return(r?o:o%360)*Math.PI/180};function n(o){return o%360+(o<0?360:0)}t.normalize=n})(Zt||(Zt={}));var Yt;(function(t){function e(l,a=0){return Number.isInteger(l)?l:+l.toFixed(a)}t.round=e;function n(l,a){let u,c;if(a==null?(c=l??1,u=0):(c=a,u=l??0),cu?u:l:la?a:l}t.clamp=o;function r(l,a){return a*Math.round(l/a)}t.snapToGrid=r;function s(l,a){return a!=null&&l!=null&&a.x>=l.x&&a.x<=l.x+l.width&&a.y>=l.y&&a.y<=l.y+l.height}t.containsPoint=s;function i(l,a){const u=l.x-a.x,c=l.y-a.y;return u*u+c*c}t.squaredLength=i})(Yt||(Yt={}));class kl{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class X extends kl{constructor(e,n){super(),this.x=e??0,this.y=n??0}round(e=0){return this.x=Yt.round(this.x,e),this.y=Yt.round(this.y,e),this}add(e,n){const o=X.create(e,n);return this.x+=o.x,this.y+=o.y,this}update(e,n){const o=X.create(e,n);return this.x=o.x,this.y=o.y,this}translate(e,n){const o=X.create(e,n);return this.x+=o.x,this.y+=o.y,this}rotate(e,n){const o=X.rotate(this,e,n);return this.x=o.x,this.y=o.y,this}scale(e,n,o=new X){const r=X.create(o);return this.x=r.x+e*(this.x-r.x),this.y=r.y+n*(this.y-r.y),this}closest(e){if(e.length===1)return X.create(e[0]);let n=null,o=1/0;return e.forEach(r=>{const s=this.squaredDistance(r);sr&&(l=(this.x+this.width-r)/(g.x-r)),g.y>s&&(d=(this.y+this.height-s)/(g.y-s));const v=o.topRight;v.x>r&&(a=(this.x+this.width-r)/(v.x-r)),v.ys&&(h=(this.y+this.height-s)/(m.y-s)),{sx:Math.min(i,l,a,u),sy:Math.min(c,d,f,h)}}getMaxUniformScaleToFit(e,n=this.center){const o=this.getMaxScaleToFit(e,n);return Math.min(o.sx,o.sy)}containsPoint(e,n){return Yt.containsPoint(this,X.create(e,n))}containsRect(e,n,o,r){const s=ze.create(e,n,o,r),i=this.x,l=this.y,a=this.width,u=this.height,c=s.x,d=s.y,f=s.width,h=s.height;return a===0||u===0||f===0||h===0?!1:c>=i&&d>=l&&c+f<=i+a&&d+h<=l+u}intersectsWithLine(e){const n=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],o=[],r=[];return n.forEach(s=>{const i=e.intersectsWithLine(s);i!==null&&r.indexOf(i.toString())<0&&(o.push(i),r.push(i.toString()))}),o.length>0?o:null}intersectsWithLineFromCenterToPoint(e,n){const o=X.clone(e),r=this.center;let s=null;n!=null&&n!==0&&o.rotate(n,r);const i=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],l=new Qe(r,o);for(let a=i.length-1;a>=0;a-=1){const u=i[a].intersectsWithLine(l);if(u!==null){s=u;break}}return s&&n!=null&&n!==0&&s.rotate(-n,r),s}intersectsWithRect(e,n,o,r){const s=ze.create(e,n,o,r);if(!this.isIntersectWithRect(s))return null;const i=this.origin,l=this.corner,a=s.origin,u=s.corner,c=Math.max(i.x,a.x),d=Math.max(i.y,a.y);return new ze(c,d,Math.min(l.x,u.x)-c,Math.min(l.y,u.y)-d)}isIntersectWithRect(e,n,o,r){const s=ze.create(e,n,o,r),i=this.origin,l=this.corner,a=s.origin,u=s.corner;return!(u.x<=i.x||u.y<=i.y||a.x>=l.x||a.y>=l.y)}normalize(){let e=this.x,n=this.y,o=this.width,r=this.height;return this.width<0&&(e=this.x+this.width,o=-this.width),this.height<0&&(n=this.y+this.height,r=-this.height),this.x=e,this.y=n,this.width=o,this.height=r,this}union(e){const n=ze.clone(e),o=this.origin,r=this.corner,s=n.origin,i=n.corner,l=Math.min(o.x,s.x),a=Math.min(o.y,s.y),u=Math.max(r.x,i.x),c=Math.max(r.y,i.y);return new ze(l,a,u-l,c-a)}getNearestSideToPoint(e){const n=X.clone(e),o=n.x-this.x,r=this.x+this.width-n.x,s=n.y-this.y,i=this.y+this.height-n.y;let l=o,a="left";return r=1?o.clone():n.lerp(o,e)}pointAtLength(e){const n=this.start,o=this.end;let r=!0;e<0&&(r=!1,e=-e);const s=this.length();if(e>=s)return r?o.clone():n.clone();const i=(r?e:s-e)/s;return this.pointAt(i)}divideAt(e){const n=this.pointAt(e);return[new Qe(this.start,n),new Qe(n,this.end)]}divideAtLength(e){const n=this.pointAtLength(e);return[new Qe(this.start,n),new Qe(n,this.end)]}containsPoint(e){const n=this.start,o=this.end;if(n.cross(e,o)!==0)return!1;const r=this.length();return!(new Qe(n,e).length()>r||new Qe(e,o).length()>r)}intersect(e,n){const o=e.intersectsWithLine(this,n);return o?Array.isArray(o)?o:[o]:null}intersectsWithLine(e){const n=new X(this.end.x-this.start.x,this.end.y-this.start.y),o=new X(e.end.x-e.start.x,e.end.y-e.start.y),r=n.x*o.y-n.y*o.x,s=new X(e.start.x-this.start.x,e.start.y-this.start.y),i=s.x*o.y-s.y*o.x,l=s.x*n.y-s.y*n.x;if(r===0||i*r<0||l*r<0)return null;if(r>0){if(i>r||l>r)return null}else if(i0&&(r-=i,s-=l,a=r*i+s*l,a<0&&(a=0))),a<0?-1:a>0?1:0}equals(e){return e!=null&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}clone(){return new Qe(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(t){function e(n){return n!=null&&n instanceof t}t.isLine=e})(Qe||(Qe={}));class ss extends kl{get center(){return new X(this.x,this.y)}constructor(e,n,o,r){super(),this.x=e??0,this.y=n??0,this.a=o??0,this.b=r??0}bbox(){return ze.fromEllipse(this)}getCenter(){return this.center}inflate(e,n){const o=e,r=n??e;return this.a+=2*o,this.b+=2*r,this}normalizedDistance(e,n){const o=X.create(e,n),r=o.x-this.x,s=o.y-this.y,i=this.a,l=this.b;return r*r/(i*i)+s*s/(l*l)}containsPoint(e,n){return this.normalizedDistance(e,n)<=1}intersectsWithLine(e){const n=[],o=this.a,r=this.b,s=e.start,i=e.end,l=e.vector(),a=s.diff(new X(this.x,this.y)),u=new X(l.x/(o*o),l.y/(r*r)),c=new X(a.x/(o*o),a.y/(r*r)),d=l.dot(u),f=l.dot(c),h=a.dot(c)-1,p=f*f-d*h;if(p<0)return null;if(p>0){const g=Math.sqrt(p),v=(-f-g)/d,m=(-f+g)/d;if((v<0||v>1)&&(m<0||m>1))return null;v>=0&&v<=1&&n.push(s.lerp(i,v)),m>=0&&m<=1&&n.push(s.lerp(i,m))}else{const g=-f/d;if(g>=0&&g<=1)n.push(s.lerp(i,g));else return null}return n}intersectsWithLineFromCenterToPoint(e,n=0){const o=X.clone(e);n&&o.rotate(n,this.getCenter());const r=o.x-this.x,s=o.y-this.y;let i;if(r===0)return i=this.bbox().getNearestPointToPoint(o),n?i.rotate(-n,this.getCenter()):i;const l=s/r,a=l*l,u=this.a*this.a,c=this.b*this.b;let d=Math.sqrt(1/(1/u+a/c));d=r<0?-d:d;const f=l*d;return i=new X(this.x+d,this.y+f),n?i.rotate(-n,this.getCenter()):i}tangentTheta(e){const n=X.clone(e),o=n.x,r=n.y,s=this.a,i=this.b,l=this.bbox().center,a=l.x,u=l.y,c=30,d=o>l.x+s/2,f=ol.x?r-c:r+c,h=s*s/(o-a)-s*s*(r-u)*(p-u)/(i*i*(o-a))+a):(h=r>l.y?o+c:o-c,p=i*i/(r-u)-i*i*(o-a)*(h-a)/(s*s*(r-u))+u),new X(h,p).theta(n)}scale(e,n){return this.a*=e,this.b*=n,this}rotate(e,n){const o=ze.fromEllipse(this);o.rotate(e,n);const r=ss.fromRect(o);return this.a=r.a,this.b=r.b,this.x=r.x,this.y=r.y,this}translate(e,n){const o=X.create(e,n);return this.x+=o.x,this.y+=o.y,this}equals(e){return e!=null&&e.x===this.x&&e.y===this.y&&e.a===this.a&&e.b===this.b}clone(){return new ss(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}(function(t){function e(n){return n!=null&&n instanceof t}t.isEllipse=e})(ss||(ss={}));(function(t){function e(r,s,i,l){return r==null||typeof r=="number"?new t(r,s,i,l):n(r)}t.create=e;function n(r){return t.isEllipse(r)?r.clone():Array.isArray(r)?new t(r[0],r[1],r[2],r[3]):new t(r.x,r.y,r.a,r.b)}t.parse=n;function o(r){const s=r.center;return new t(s.x,s.y,r.width/2,r.height/2)}t.fromRect=o})(ss||(ss={}));const nle=new RegExp("^[\\s\\dLMCZz,.]*$");function ole(t){return typeof t!="string"?!1:nle.test(t)}function av(t,e){return(t%e+e)%e}function rle(t,e,n,o,r){const s=[],i=t[t.length-1],l=e!=null&&e>0,a=e||0;if(o&&l){t=t.slice();const d=t[0],f=new X(i.x+(d.x-i.x)/2,i.y+(d.y-i.y)/2);t.splice(0,0,f)}let u=t[0],c=1;for(n?s.push("M",u.x,u.y):s.push("L",u.x,u.y);c<(o?t.length:t.length-1);){let d=t[av(c,t.length)],f=u.x-d.x,h=u.y-d.y;if(l&&(f!==0||h!==0)&&(r==null||r.indexOf(c-1)<0)){let p=Math.sqrt(f*f+h*h);const g=f*Math.min(a,p/2)/p,v=h*Math.min(a,p/2)/p,m=d.x+g,C=d.y+v;s.push("L",m,C);let y=t[av(c+1,t.length)];for(;ctypeof d=="string"?d:+d.toFixed(3)).join(" ")}function qP(t,e={}){const n=[];return t&&t.length&&t.forEach(o=>{Array.isArray(o)?n.push({x:o[0],y:o[1]}):n.push({x:o.x,y:o.y})}),rle(n,e.round,e.initialMove==null||e.initialMove,e.close,e.exclude)}function kp(t,e,n,o,r=0,s=0,i=0,l,a){if(n===0||o===0)return[];l-=t,a-=e,n=Math.abs(n),o=Math.abs(o);const u=-l/2,c=-a/2,d=Math.cos(r*Math.PI/180),f=Math.sin(r*Math.PI/180),h=d*u+f*c,p=-1*f*u+d*c,g=h*h,v=p*p,m=n*n,C=o*o,y=g/m+v/C;let b;if(y>1)n=Math.sqrt(y)*n,o=Math.sqrt(y)*o,b=0;else{let ee=1;s===i&&(ee=-1),b=ee*Math.sqrt((m*C-m*v-C*g)/(m*v+C*g))}const S=b*n*p/o,T=-1*b*o*h/n,O=d*S-f*T+l/2,k=f*S+d*T+a/2;let P=Math.atan2((p-T)/o,(h-S)/n)-Math.atan2(0,1),I=P>=0?P:2*Math.PI+P;P=Math.atan2((-p-T)/o,(-h-S)/n)-Math.atan2((p-T)/o,(h-S)/n);let M=P>=0?P:2*Math.PI+P;i===0&&M>0?M-=2*Math.PI:i!==0&&M<0&&(M+=2*Math.PI);const D=M*2/Math.PI,J=Math.ceil(D<0?-1*D:D),oe=M/J,N=8/3*Math.sin(oe/4)*Math.sin(oe/4)/Math.sin(oe/2),A=d*n,K=d*o,j=f*n,F=f*o;let le=Math.cos(I),ue=Math.sin(I),se=-N*(A*ue+F*le),Ee=-N*(j*ue-K*le),fe=0,ve=0;const Oe=[];for(let ee=0;ee+ee.toFixed(2))}function sle(t,e,n,o,r=0,s=0,i=0,l,a){const u=[],c=kp(t,e,n,o,r,s,i,l,a);if(c!=null)for(let d=0,f=c.length;dX.create(n))}else this.points=[]}scale(e,n,o=new X){return this.points.forEach(r=>r.scale(e,n,o)),this}rotate(e,n){return this.points.forEach(o=>o.rotate(e,n)),this}translate(e,n){const o=X.create(e,n);return this.points.forEach(r=>r.translate(o.x,o.y)),this}round(e=0){return this.points.forEach(n=>n.round(e)),this}bbox(){if(this.points.length===0)return new ze;let e=1/0,n=-1/0,o=1/0,r=-1/0;const s=this.points;for(let i=0,l=s.length;in&&(n=u),cr&&(r=c)}return new ze(e,o,n-e,r-o)}closestPoint(e){const n=this.closestPointLength(e);return this.pointAtLength(n)}closestPointLength(e){const n=this.points,o=n.length;if(o===0||o===1)return 0;let r=0,s=0,i=1/0;for(let l=0,a=o-1;ld.y||r>c.y&&r<=d.y){const h=c.x-o>d.x-o?c.x-o:d.x-o;if(h>=0){const p=new X(o+h,r),g=new Qe(e,p);f.intersectsWithLine(g)&&(a+=1)}}l=u}return a%2===1}intersectsWithLine(e){const n=[];for(let o=0,r=this.points.length-1;o0?n:null}isDifferentiable(){for(let e=0,n=this.points.length-1;e=1)return n[o-1].clone();const s=this.length()*e;return this.pointAtLength(s)}pointAtLength(e){const n=this.points,o=n.length;if(o===0)return null;if(o===1)return n[0].clone();let r=!0;e<0&&(r=!1,e=-e);let s=0;for(let l=0,a=o-1;l1&&(e=1);const s=this.length()*e;return this.tangentAtLength(s)}tangentAtLength(e){const n=this.points,o=n.length;if(o===0||o===1)return null;let r=!0;e<0&&(r=!1,e=-e);let s,i=0;for(let l=0,a=o-1;lo.x)&&(o=e[f]);const r=[];for(let f=0;f{let p=f[2]-h[2];return p===0&&(p=h[1]-f[1]),p}),r.length>2){const f=r[r.length-1];r.unshift(f)}const s={},i=[],l=f=>`${f[0].toString()}@${f[1]}`;for(;r.length!==0;){const f=r.pop(),h=f[0];if(s[l(f)])continue;let p=!1;for(;!p;)if(i.length<2)i.push(f),p=!0;else{const g=i.pop(),v=g[0],m=i.pop(),C=m[0],y=C.cross(v,h);if(y<0)i.push(m),i.push(g),i.push(f),p=!0;else if(y===0){const S=v.angleBetween(C,h);Math.abs(S-180)<1e-10||v.equals(h)||C.equals(v)?(s[l(g)]=v,i.push(m)):Math.abs((S+1)%360-1)<1e-10&&(i.push(m),r.push(g))}else s[l(g)]=v,i.push(m)}}i.length>2&&i.pop();let a,u=-1;for(let f=0,h=i.length;f0){const f=i.slice(u),h=i.slice(0,u);c=f.concat(h)}else c=i;const d=[];for(let f=0,h=c.length;fn.equals(this.points[o]))}clone(){return new Tn(this.points.map(e=>e.clone()))}toJSON(){return this.points.map(e=>e.toJSON())}serialize(){return this.points.map(e=>`${e.serialize()}`).join(" ")}}(function(t){function e(n){return n!=null&&n instanceof t}t.isPolyline=e})(Tn||(Tn={}));(function(t){function e(n){const o=n.trim();if(o==="")return new t;const r=[],s=o.split(/\s*,\s*|\s+/);for(let i=0,l=s.length;i0&&C<1&&h.push(C);continue}S=v*v-4*m*g,T=Math.sqrt(S),!(S<0)&&(y=(-v+T)/(2*g),y>0&&y<1&&h.push(y),b=(-v-T)/(2*g),b>0&&b<1&&h.push(b))}let O,k,P,I=h.length;const M=I;for(;I;)I-=1,C=h[I],P=1-C,O=P*P*P*s+3*P*P*C*l+3*P*C*C*u+C*C*C*d,p[0][I]=O,k=P*P*P*i+3*P*P*C*a+3*P*C*C*c+C*C*C*f,p[1][I]=k;h[M]=0,h[M+1]=1,p[0][M]=s,p[1][M]=i,p[0][M+1]=d,p[1][M+1]=f,h.length=M+2,p[0].length=M+2,p[1].length=M+2;const D=Math.min.apply(null,p[0]),J=Math.min.apply(null,p[1]),oe=Math.max.apply(null,p[0]),N=Math.max.apply(null,p[1]);return new ze(D,J,oe-D,N-J)}closestPoint(e,n={}){return this.pointAtT(this.closestPointT(e,n))}closestPointLength(e,n={}){const o=this.getOptions(n);return this.lengthAtT(this.closestPointT(e,o),o)}closestPointNormalizedLength(e,n={}){const o=this.getOptions(n),r=this.closestPointLength(e,o);if(!r)return 0;const s=this.length(o);return s===0?0:r/s}closestPointT(e,n={}){const o=this.getPrecision(n),r=this.getDivisions(n),s=Math.pow(10,-o);let i=null,l=0,a=0,u=0,c=0,d=0,f=null;const h=r.length;let p=h>0?1/h:0;for(r.forEach((g,v)=>{const m=g.start.distance(e),C=g.end.distance(e),y=m+C;(f==null||y=1)return this.divideAtT(1);const o=this.tAt(e,n);return this.divideAtT(o)}divideAtLength(e,n={}){const o=this.tAtLength(e,n);return this.divideAtT(o)}divide(e){return this.divideAtT(e)}divideAtT(e){const n=this.start,o=this.controlPoint1,r=this.controlPoint2,s=this.end;if(e<=0)return[new gn(n,n,n,n),new gn(n,o,r,s)];if(e>=1)return[new gn(n,o,r,s),new gn(s,s,s,s)];const i=this.getSkeletonPoints(e),l=i.startControlPoint1,a=i.startControlPoint2,u=i.divider,c=i.dividerControlPoint1,d=i.dividerControlPoint2;return[new gn(n,l,a,u),new gn(u,c,d,s)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const n=this.start,o=this.controlPoint1,r=this.controlPoint2,s=this.end;if(e<=0)return{startControlPoint1:n.clone(),startControlPoint2:n.clone(),divider:n.clone(),dividerControlPoint1:o.clone(),dividerControlPoint2:r.clone()};if(e>=1)return{startControlPoint1:o.clone(),startControlPoint2:r.clone(),divider:s.clone(),dividerControlPoint1:s.clone(),dividerControlPoint2:s.clone()};const i=new Qe(n,o).pointAt(e),l=new Qe(o,r).pointAt(e),a=new Qe(r,s).pointAt(e),u=new Qe(i,l).pointAt(e),c=new Qe(l,a).pointAt(e),d=new Qe(u,c).pointAt(e);return{startControlPoint1:i,startControlPoint2:u,divider:d,dividerControlPoint1:c,dividerControlPoint2:a}}getSubdivisions(e={}){const n=this.getPrecision(e);let o=[new gn(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(n===0)return o;let r=this.endpointDistance();const s=Math.pow(10,-n);let i=0;for(;;){i+=1;const l=[];o.forEach(c=>{const d=c.divide(.5);l.push(d[0],d[1])});const a=l.reduce((c,d)=>c+d.endpointDistance(),0),u=a!==0?(a-r)/a:0;if(i>1&&uo+r.endpointDistance(),0)}lengthAtT(e,n={}){if(e<=0)return 0;const o=n.precision===void 0?this.PRECISION:n.precision;return this.divide(e)[0].length({precision:o})}pointAt(e,n={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const o=this.tAt(e,n);return this.pointAtT(o)}pointAtLength(e,n={}){const o=this.tAtLength(e,n);return this.pointAtT(o)}pointAtT(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}isDifferentiable(){const e=this.start,n=this.controlPoint1,o=this.controlPoint2,r=this.end;return!(e.equals(n)&&n.equals(o)&&o.equals(r))}tangentAt(e,n={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const o=this.tAt(e,n);return this.tangentAtT(o)}tangentAtLength(e,n={}){if(!this.isDifferentiable())return null;const o=this.tAtLength(e,n);return this.tangentAtT(o)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const n=this.getSkeletonPoints(e),o=n.startControlPoint2,r=n.dividerControlPoint1,s=n.divider,i=new Qe(o,r);return i.translate(s.x-o.x,s.y-o.y),i}getPrecision(e={}){return e.precision==null?this.PRECISION:e.precision}getDivisions(e={}){if(e.subdivisions!=null)return e.subdivisions;const n=this.getPrecision(e);return this.getSubdivisions({precision:n})}getOptions(e={}){const n=this.getPrecision(e),o=this.getDivisions(e);return{precision:n,subdivisions:o}}tAt(e,n={}){if(e<=0)return 0;if(e>=1)return 1;const o=this.getOptions(n),s=this.length(o)*e;return this.tAtLength(s,o)}tAtLength(e,n={}){let o=!0;e<0&&(o=!1,e=-e);const r=this.getPrecision(n),s=this.getDivisions(n),i={precision:r,subdivisions:s};let l=null,a,u,c=0,d=0,f=0;const h=s.length;let p=h>0?1/h:0;for(let m=0;mo.push(r.end.clone())),o}toPolyline(e={}){return new Tn(this.toPoints(e))}scale(e,n,o){return this.start.scale(e,n,o),this.controlPoint1.scale(e,n,o),this.controlPoint2.scale(e,n,o),this.end.scale(e,n,o),this}rotate(e,n){return this.start.rotate(e,n),this.controlPoint1.rotate(e,n),this.controlPoint2.rotate(e,n),this.end.rotate(e,n),this}translate(e,n){return typeof e=="number"?(this.start.translate(e,n),this.controlPoint1.translate(e,n),this.controlPoint2.translate(e,n),this.end.translate(e,n)):(this.start.translate(e),this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return e!=null&&this.start.equals(e.start)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)&&this.end.equals(e.end)}clone(){return new gn(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}(function(t){function e(n){return n!=null&&n instanceof t}t.isCurve=e})(gn||(gn={}));(function(t){function e(r){const s=r.length,i=[],l=[];let a=2;i[0]=r[0]/a;for(let u=1;uX.clone(f)),i=[],l=[],a=s.length-1;if(a===1)return i[0]=new X((2*s[0].x+s[1].x)/3,(2*s[0].y+s[1].y)/3),l[0]=new X(2*i[0].x-s[0].x,2*i[0].y-s[0].y),[i,l];const u=[];for(let f=1;f=1?o:o*e}divideAtT(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class Co extends Wg{constructor(e,n){super(),Qe.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=X.create(e,n).round(2)}get type(){return"L"}get line(){return new Qe(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const n=this.line.divideAt(e);return[new Co(n[0]),new Co(n[1])]}divideAtLength(e){const n=this.line.divideAtLength(e);return[new Co(n[0]),new Co(n[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return this.previousSegment==null?!1:!this.start.equals(this.end)}clone(){return new Co(this.end)}scale(e,n,o){return this.end.scale(e,n,o),this}rotate(e,n){return this.end.rotate(e,n),this}translate(e,n){return typeof e=="number"?this.end.translate(e,n):this.end.translate(e),this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}(function(t){function e(...n){const o=n.length,r=n[0];if(Qe.isLine(r))return new t(r);if(X.isPointLike(r))return o===1?new t(r):n.map(i=>new t(i));if(o===2)return new t(+n[0],+n[1]);const s=[];for(let i=0;i1&&(A=Math.sqrt(A),n=A*n,o=A*o);const K=n*n,j=o*o,F=(s===i?-1:1)*Math.sqrt(Math.abs((K*j-K*N*N-j*oe*oe)/(K*N*N+j*oe*oe)));v=F*n*N/o+(t+l)/2,m=F*-o*oe/n+(e+a)/2,p=Math.asin((e-m)/o),g=Math.asin((a-m)/o),p=tg&&(p-=Math.PI*2),!i&&g>p&&(g-=Math.PI*2)}let C=g-p;if(Math.abs(C)>c){const oe=g,N=l,A=a;g=p+c*(i&&g>p?1:-1),l=v+n*Math.cos(g),a=m+o*Math.sin(g),f=GP(l,a,n,o,r,0,i,N,A,[g,oe,v,m])}C=g-p;const y=Math.cos(p),b=Math.sin(p),S=Math.cos(g),T=Math.sin(g),O=Math.tan(C/4),k=4/3*(n*O),P=4/3*(o*O),I=[t,e],M=[t+k*b,e-P*y],D=[l+k*T,a-P*S],J=[l,a];if(M[0]=2*I[0]-M[0],M[1]=2*I[1]-M[1],u)return[M,D,J].concat(f);{f=[M,D,J].concat(f).join().split(",");const oe=[],N=f.length;for(let A=0;A{const u=[];let c=l.toLowerCase();a.replace(o,(f,h)=>(h&&u.push(+h),f)),c==="m"&&u.length>2&&(s.push([l,...u.splice(0,2)]),c="l",l=l==="m"?"l":"L");const d=r[c];for(;u.length>=d&&(s.push([l,...u.splice(0,d)]),!!d););return i}),s}function lle(t){const e=ile(t);if(!e||!e.length)return[["M",0,0]];let n=0,o=0,r=0,s=0;const i=[];for(let l=0,a=e.length;l7){a[u].shift();const c=a[u];for(;c.length;)s[u]="A",u+=1,a.splice(u,0,["C"].concat(c.splice(0,6)));a.splice(u,1),l=e.length}}const s=[];let i="",l=e.length;for(let a=0;a0&&(i=s[a-1])),e[a]=o(e[a],n,i),s[a]!=="A"&&u==="C"&&(s[a]="C"),r(e,a);const c=e[a],d=c.length;n.x=c[d-2],n.y=c[d-1],n.bx=parseFloat(c[d-4])||n.x,n.by=parseFloat(c[d-3])||n.y}return(!e[0][0]||e[0][0]!=="M")&&e.unshift(["M",0,0]),e}function ule(t){return ale(t).map(e=>e.map(n=>typeof n=="string"?n:Yt.round(n,2))).join(",").split(",").join(" ")}class it extends kl{constructor(e){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(e))if(Qe.isLine(e[0])||gn.isCurve(e[0])){let n=null;e.forEach((r,s)=>{s===0&&this.appendSegment(it.createSegment("M",r.start)),n!=null&&!n.end.equals(r.start)&&this.appendSegment(it.createSegment("M",r.start)),Qe.isLine(r)?this.appendSegment(it.createSegment("L",r.end)):gn.isCurve(r)&&this.appendSegment(it.createSegment("C",r.controlPoint1,r.controlPoint2,r.end)),n=r})}else e.forEach(o=>{o.isSegment&&this.appendSegment(o)});else e!=null&&(Qe.isLine(e)?(this.appendSegment(it.createSegment("M",e.start)),this.appendSegment(it.createSegment("L",e.end))):gn.isCurve(e)?(this.appendSegment(it.createSegment("M",e.start)),this.appendSegment(it.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):Tn.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((n,o)=>{const r=o===0?it.createSegment("M",n):it.createSegment("L",n);this.appendSegment(r)}):e.isSegment&&this.appendSegment(e))}get start(){const e=this.segments,n=e.length;if(n===0)return null;for(let o=0;o=0;o-=1){const r=e[o];if(r.isVisible)return r.end}return e[n-1].end}moveTo(...e){return this.appendSegment(ju.create.call(null,...e))}lineTo(...e){return this.appendSegment(Co.create.call(null,...e))}curveTo(...e){return this.appendSegment(vr.create.call(null,...e))}arcTo(e,n,o,r,s,i,l){const a=this.end||new X,u=typeof i=="number"?kp(a.x,a.y,e,n,o,r,s,i,l):kp(a.x,a.y,e,n,o,r,s,i.x,i.y);if(u!=null)for(let c=0,d=u.length;co||e<0)throw new Error("Index out of range.");let r,s=null,i=null;if(o!==0&&(e>=1?(s=this.segments[e-1],i=s.nextSegment):(s=null,i=this.segments[0])),!Array.isArray(n))r=this.prepareSegment(n,s,i),this.segments.splice(e,0,r);else for(let l=0,a=n.length;l=n||o<0)throw new Error("Index out of range.");return o}segmentAt(e,n={}){const o=this.segmentIndexAt(e,n);return o?this.getSegment(o):null}segmentAtLength(e,n={}){const o=this.segmentIndexAtLength(e,n);return o?this.getSegment(o):null}segmentIndexAt(e,n={}){if(this.segments.length===0)return null;const o=Yt.clamp(e,0,1),r=this.getOptions(n),i=this.length(r)*o;return this.segmentIndexAtLength(i,r)}segmentIndexAtLength(e,n={}){const o=this.segments.length;if(o===0)return null;let r=!0;e<0&&(r=!1,e=-e);const s=this.getPrecision(n),i=this.getSubdivisions(n);let l=0,a=null;for(let u=0;u=1)return this.end.clone();const o=this.getOptions(n),s=this.length(o)*e;return this.pointAtLength(s,o)}pointAtLength(e,n={}){if(this.segments.length===0)return null;if(e===0)return this.start.clone();let o=!0;e<0&&(o=!1,e=-e);const r=this.getPrecision(n),s=this.getSubdivisions(n);let i,l=0;for(let u=0,c=this.segments.length;u=o)return n[o-1].pointAtT(1);const s=Yt.clamp(e.value,0,1);return n[r].pointAtT(s)}divideAt(e,n={}){if(this.segments.length===0)return null;const o=Yt.clamp(e,0,1),r=this.getOptions(n),i=this.length(r)*o;return this.divideAtLength(i,r)}divideAtLength(e,n={}){if(this.segments.length===0)return null;let o=!0;e<0&&(o=!1,e=-e);const r=this.getPrecision(n),s=this.getSubdivisions(n);let i=0,l,a,u,c,d;for(let S=0,T=this.segments.length;S=o&&(r=o-1,s=1);const i=this.getPrecision(n),l=this.getSubdivisions(n);let a=0;for(let d=0;d=n)return this.segments[n-1].tangentAtT(1);const r=Yt.clamp(e.value,0,1);return this.segments[o].tangentAtT(r)}getPrecision(e={}){return e.precision==null?this.PRECISION:e.precision}getSubdivisions(e={}){if(e.segmentSubdivisions==null){const n=this.getPrecision(e);return this.getSegmentSubdivisions({precision:n})}return e.segmentSubdivisions}getOptions(e={}){const n=this.getPrecision(e),o=this.getSubdivisions(e);return{precision:n,segmentSubdivisions:o}}toPoints(e={}){const n=this.segments,o=n.length;if(o===0)return null;const r=this.getSubdivisions(e),s=[];let i=[];for(let l=0;l0?u.forEach(c=>i.push(c.start)):i.push(a.start)}else i.length>0&&(i.push(n[l-1].end),s.push(i),i=[])}return i.length>0&&(i.push(this.end),s.push(i)),s}toPolylines(e={}){const n=this.toPoints(e);return n?n.map(o=>new Tn(o)):null}scale(e,n,o){return this.segments.forEach(r=>r.scale(e,n,o)),this}rotate(e,n){return this.segments.forEach(o=>o.rotate(e,n)),this}translate(e,n){return typeof e=="number"?this.segments.forEach(o=>o.translate(e,n)):this.segments.forEach(o=>o.translate(e)),this}clone(){const e=new it;return this.segments.forEach(n=>e.appendSegment(n.clone())),e}equals(e){if(e==null)return!1;const n=this.segments,o=e.segments,r=n.length;if(o.length!==r)return!1;for(let s=0;se.toJSON())}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map(e=>e.serialize()).join(" ")}toString(){return this.serialize()}}(function(t){function e(n){return n!=null&&n instanceof t}t.isPath=e})(it||(it={}));(function(t){function e(o){if(!o)return new t;const r=new t,s=/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g,i=t.normalize(o).match(s);if(i!=null)for(let l=0,a=i.length;l+g),p=n.call(null,f,...h);r.appendSegment(p)}}return r}t.parse=e;function n(o,...r){if(o==="M")return ju.create.call(null,...r);if(o==="L")return Co.create.call(null,...r);if(o==="C")return vr.create.call(null,...r);if(o==="z"||o==="Z")return zu.create();throw new Error(`Invalid path segment type "${o}"`)}t.createSegment=n})(it||(it={}));(function(t){t.normalize=ule,t.isValid=ole,t.drawArc=sle,t.drawPoints=qP,t.arcToCurves=kp})(it||(it={}));class Mn{constructor(e){this.options=Object.assign({},e),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}get names(){return Object.keys(this.data)}register(e,n,o=!1){if(typeof e=="object"){Object.entries(e).forEach(([i,l])=>{this.register(i,l,n)});return}this.exist(e)&&!o&&!cl.isApplyingHMR()&&this.onDuplicated(e);const r=this.options.process,s=r?vt(r,this,e,n):n;return this.data[e]=s,s}unregister(e){const n=e?this.data[e]:null;return delete this.data[e],n}get(e){return e?this.data[e]:null}exist(e){return e?this.data[e]!=null:!1}onDuplicated(e){try{throw this.options.onConflict&&vt(this.options.onConflict,this,e),new Error(`${Xh(this.options.type)} with name '${e}' already registered.`)}catch(n){throw n}}onNotFound(e,n){throw new Error(this.getSpellingSuggestion(e,n))}getSpellingSuggestion(e,n){const o=this.getSpellingSuggestionForName(e),r=n?`${n} ${AF(this.options.type)}`:this.options.type;return`${Xh(r)} with name '${e}' does not exist.${o?` Did you mean '${o}'?`:""}`}getSpellingSuggestionForName(e){return aie(e,Object.keys(this.data),n=>n)}}(function(t){function e(n){return new t(n)}t.create=e})(Mn||(Mn={}));const cle={color:"#aaaaaa",thickness:1,markup:"rect",update(t,e){const n=e.thickness*e.sx,o=e.thickness*e.sy;Qt(t,{width:n,height:o,rx:n,ry:o,fill:e.color})}},dle={color:"#aaaaaa",thickness:1,markup:"rect",update(t,e){const n=e.sx<=1?e.thickness*e.sx:e.thickness;Qt(t,{width:n,height:n,rx:n,ry:n,fill:e.color})}},fle={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(t,e){let n;const o=e.width,r=e.height,s=e.thickness;o-s>=0&&r-s>=0?n=["M",o,0,"H0 M0 0 V0",r].join(" "):n="M 0 0 0 0",Qt(t,{d:n,stroke:e.color,"stroke-width":e.thickness})}},hle=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(t,e){let n;const o=e.width,r=e.height,s=e.thickness;o-s>=0&&r-s>=0?n=["M",o,0,"H0 M0 0 V0",r].join(" "):n="M 0 0 0 0",Qt(t,{d:n,stroke:e.color,"stroke-width":e.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(t,e){let n;const o=e.factor||1,r=e.width*o,s=e.height*o,i=e.thickness;r-i>=0&&s-i>=0?n=["M",r,0,"H0 M0 0 V0",s].join(" "):n="M 0 0 0 0",e.width=r,e.height=s,Qt(t,{d:n,stroke:e.color,"stroke-width":e.thickness})}}],ple=Object.freeze(Object.defineProperty({__proto__:null,dot:cle,doubleMesh:hle,fixedDot:dle,mesh:fle},Symbol.toStringTag,{value:"Module"}));class el{constructor(){this.patterns={},this.root=ht.create(Sp(),{width:"100%",height:"100%"},[hs("defs")]).node}add(e,n){const o=this.root.childNodes[0];o&&o.appendChild(n),this.patterns[e]=n,ht.create("rect",{width:"100%",height:"100%",fill:`url(#${e})`}).appendTo(this.root)}get(e){return this.patterns[e]}has(e){return this.patterns[e]!=null}}(function(t){t.presets=ple,t.registry=Mn.create({type:"grid"}),t.registry.register(t.presets,!0)})(el||(el={}));const KP=function(t){const e=document.createElement("canvas"),n=t.width,o=t.height;e.width=n*2,e.height=o;const r=e.getContext("2d");return r.drawImage(t,0,0,n,o),r.translate(2*n,0),r.scale(-1,1),r.drawImage(t,0,0,n,o),e},JP=function(t){const e=document.createElement("canvas"),n=t.width,o=t.height;e.width=n,e.height=o*2;const r=e.getContext("2d");return r.drawImage(t,0,0,n,o),r.translate(0,2*o),r.scale(1,-1),r.drawImage(t,0,0,n,o),e},YP=function(t){const e=document.createElement("canvas"),n=t.width,o=t.height;e.width=2*n,e.height=2*o;const r=e.getContext("2d");return r.drawImage(t,0,0,n,o),r.setTransform(-1,0,0,-1,e.width,e.height),r.drawImage(t,0,0,n,o),r.setTransform(-1,0,0,1,e.width,0),r.drawImage(t,0,0,n,o),r.setTransform(1,0,0,-1,0,e.height),r.drawImage(t,0,0,n,o),e},gle=function(t,e){const n=t.width,o=t.height,r=document.createElement("canvas");r.width=n*3,r.height=o*3;const s=r.getContext("2d"),i=e.angle!=null?-e.angle:-20,l=Zt.toRad(i),a=r.width/4,u=r.height/4;for(let c=0;c<4;c+=1)for(let d=0;d<4;d+=1)(c+d)%2>0&&(s.setTransform(1,0,0,1,(2*c-1)*a,(2*d-1)*u),s.rotate(l),s.drawImage(t,-n/2,-o/2,n,o));return r},mle=Object.freeze(Object.defineProperty({__proto__:null,flipX:KP,flipXY:YP,flipY:JP,watermark:gle},Symbol.toStringTag,{value:"Module"}));var Wd;(function(t){t.presets=Object.assign({},mle),t.presets["flip-x"]=KP,t.presets["flip-y"]=JP,t.presets["flip-xy"]=YP,t.registry=Mn.create({type:"background pattern"}),t.registry.register(t.presets,!0)})(Wd||(Wd={}));function e1(t,e){return t??e}function Kn(t,e){return t!=null&&Number.isFinite(t)?t:e}function vle(t={}){const e=e1(t.color,"blue"),n=Kn(t.width,1),o=Kn(t.margin,2),r=Kn(t.opacity,1),s=o,i=o+n;return` + + + + + + + + + + + + `.trim()}function ble(t={}){const e=e1(t.color,"red"),n=Kn(t.blur,0),o=Kn(t.width,1),r=Kn(t.opacity,1);return` + + + + + + + + `.trim()}function yle(t={}){const e=Kn(t.x,2);return` + + + + `.trim()}function wle(t={}){const e=Kn(t.dx,0),n=Kn(t.dy,0),o=e1(t.color,"black"),r=Kn(t.blur,4),s=Kn(t.opacity,1);return"SVGFEDropShadowElement"in window?` + + `.trim():` + + + + + + + + + + + + `.trim()}function Cle(t={}){const e=Kn(t.amount,1),n=.2126+.7874*(1-e),o=.7152-.7152*(1-e),r=.0722-.0722*(1-e),s=.2126-.2126*(1-e),i=.7152+.2848*(1-e),l=.0722-.0722*(1-e),a=.2126-.2126*(1-e),u=.0722+.9278*(1-e);return` + + + + `.trim()}function xle(t={}){const e=Kn(t.amount,1),n=.393+.607*(1-e),o=.769-.769*(1-e),r=.189-.189*(1-e),s=.349-.349*(1-e),i=.686+.314*(1-e),l=.168-.168*(1-e),a=.272-.272*(1-e),u=.534-.534*(1-e),c=.131+.869*(1-e);return` + + + + `.trim()}function Sle(t={}){return` + + + + `.trim()}function Ele(t={}){return` + + + + `.trim()}function Tle(t={}){const e=Kn(t.amount,1),n=1-e;return` + + + + + + + + `.trim()}function Ole(t={}){const e=Kn(t.amount,1);return` + + + + + + + + `.trim()}function kle(t={}){const e=Kn(t.amount,1),n=.5-e/2;return` + + + + + + + + `.trim()}const Mle=Object.freeze(Object.defineProperty({__proto__:null,blur:yle,brightness:Ole,contrast:kle,dropShadow:wle,grayScale:Cle,highlight:ble,hueRotate:Ele,invert:Tle,outline:vle,saturate:Sle,sepia:xle},Symbol.toStringTag,{value:"Module"}));var Hu;(function(t){t.presets=Mle,t.registry=Mn.create({type:"filter"}),t.registry.register(t.presets,!0)})(Hu||(Hu={}));const _le={xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"},Ale={},XP={position:qg("x","width","origin")},ZP={position:qg("y","height","origin")},Ple={position:qg("x","width","corner")},Nle={position:qg("y","height","corner")},QP={set:fl("width","width")},eN={set:fl("height","height")},Ile={set:fl("rx","width")},Lle={set:fl("ry","height")},tN={set:(t=>{const e=fl(t,"width"),n=fl(t,"height");return function(o,r){const s=r.refBBox,i=s.height>s.width?e:n;return vt(i,this,o,r)}})("r")},Rle={set(t,{refBBox:e}){let n=parseFloat(t);const o=pi(t);o&&(n/=100);const r=Math.sqrt(e.height*e.height+e.width*e.width);let s;return Number.isFinite(n)&&(o||n>=0&&n<=1?s=n*r:s=Math.max(n+r,0)),{r:s}}},$le={set:fl("cx","width")},Dle={set:fl("cy","height")},nN={set:sN({resetOffset:!0})},Vle={set:sN({resetOffset:!1})},oN={set:iN({resetOffset:!0})},Ble={set:iN({resetOffset:!1})},Fle=tN,zle=nN,jle=oN,Hle=XP,Ule=ZP,Wle=QP,qle=eN;function qg(t,e,n){return(o,{refBBox:r})=>{if(o==null)return null;let s=parseFloat(o);const i=pi(o);i&&(s/=100);let l;if(Number.isFinite(s)){const u=r[n];i||s>0&&s<1?l=u[t]+r[e]*s:l=u[t]+s}const a=new X;return a[t]=l||0,a}}function fl(t,e){return function(n,{refBBox:o}){let r=parseFloat(n);const s=pi(n);s&&(r/=100);const i={};if(Number.isFinite(r)){const l=s||r>=0&&r<=1?r*o[e]:Math.max(r+o[e],0);i[t]=l}return i}}function rN(t,e){const n="x6-shape",o=e&&e.resetOffset;return function(r,{elem:s,refBBox:i}){let l=Ca(s,n);if(!l||l.value!==r){const g=t(r);l={value:r,shape:g,shapeBBox:g.bbox()},Ca(s,n,l)}const a=l.shape.clone(),u=l.shapeBBox.clone(),c=u.getOrigin(),d=i.getOrigin();u.x=d.x,u.y=d.y;const f=i.getMaxScaleToFit(u,d),h=u.width===0||i.width===0?1:f.sx,p=u.height===0||i.height===0?1:f.sy;return a.scale(h,p,c),o&&a.translate(-c.x,-c.y),a}}function sN(t){function e(o){return it.parse(o)}const n=rN(e,t);return(o,r)=>({d:n(o,r).serialize()})}function iN(t){const e=rN(n=>new Tn(n),t);return(n,o)=>({points:e(n,o).serialize()})}const Gle={qualify:$s,set(t,{view:e}){return`url(#${e.graph.defineGradient(t)})`}},Kle={qualify:$s,set(t,{view:e}){const n=e.cell,o=Object.assign({},t);if(n.isEdge()&&o.type==="linearGradient"){const r=e,s=r.sourcePoint,i=r.targetPoint;o.id=`gradient-${o.type}-${n.id}`,o.attrs=Object.assign(Object.assign({},o.attrs),{x1:s.x,y1:s.y,x2:i.x,y2:i.y,gradientUnits:"userSpaceOnUse"}),e.graph.defs.remove(o.id)}return`url(#${e.graph.defineGradient(o)})`}},lN={qualify(t,{attrs:e}){return e.textWrap==null||!$s(e.textWrap)},set(t,{view:e,elem:n,attrs:o}){const r="x6-text",s=Ca(n,r),i=c=>{try{return JSON.parse(c)}catch{return c}},l={x:o.x,eol:o.eol,annotations:i(o.annotations),textPath:i(o["text-path"]||o.textPath),textVerticalAnchor:o["text-vertical-anchor"]||o.textVerticalAnchor,displayEmpty:(o["display-empty"]||o.displayEmpty)==="true",lineHeight:o["line-height"]||o.lineHeight},a=o["font-size"]||o.fontSize,u=JSON.stringify([t,l]);if(a&&n.setAttribute("font-size",a),s==null||s!==u){const c=l.textPath;if(c!=null&&typeof c=="object"){const d=c.selector;if(typeof d=="string"){const f=e.find(d)[0];f instanceof SVGPathElement&&(Jy(f),l.textPath=Object.assign({"xlink:href":`#${f.id}`},c))}}VP(n,`${t}`,l),Ca(n,r,u)}}},Jle={qualify:$s,set(t,{view:e,elem:n,attrs:o,refBBox:r}){const s=t,i=s.width||0;pi(i)?r.width*=parseFloat(i)/100:i<=0?r.width+=i:r.width=i;const l=s.height||0;pi(l)?r.height*=parseFloat(l)/100:l<=0?r.height+=l:r.height=l;let a,u=s.text;u==null&&(u=o.text||(n==null?void 0:n.textContent)),u!=null?a=BP(`${u}`,r,{"font-weight":o["font-weight"]||o.fontWeight,"font-size":o["font-size"]||o.fontSize,"font-family":o["font-family"]||o.fontFamily,lineHeight:o.lineHeight},{ellipsis:s.ellipsis}):a="",vt(lN.set,this,a,{view:e,elem:n,attrs:o,refBBox:r,cell:e.cell})}},cc=(t,{attrs:e})=>e.text!==void 0,Yle={qualify:cc},Xle={qualify:cc},Zle={qualify:cc},Qle={qualify:cc},eae={qualify:cc},tae={qualify:cc},nae={qualify(t,{elem:e}){return e instanceof SVGElement},set(t,{elem:e}){const n="x6-title",o=`${t}`,r=Ca(e,n);if(r==null||r!==o){Ca(e,n,o);const s=e.firstChild;if(s&&s.tagName.toUpperCase()==="TITLE"){const i=s;i.textContent=o}else{const i=document.createElementNS(e.namespaceURI,"title");i.textContent=o,e.insertBefore(i,s)}}}},oae={offset:aN("x","width","right")},rae={offset:aN("y","height","bottom")},sae={offset(t,{refBBox:e}){return t?{x:-e.x,y:-e.y}:{x:0,y:0}}};function aN(t,e,n){return(o,{refBBox:r})=>{const s=new X;let i;return o==="middle"?i=r[e]/2:o===n?i=r[e]:typeof o=="number"&&Number.isFinite(o)?i=o>-1&&o<1?-r[e]*o:-o:pi(o)?i=r[e]*parseFloat(o)/100:i=0,s[t]=-(r[t]+i),s}}const iae={qualify:$s,set(t,{elem:e}){_f(e,t)}},lae={set(t,{elem:e}){e.innerHTML=`${t}`}},aae={qualify:$s,set(t,{view:e}){return`url(#${e.graph.defineFilter(t)})`}},uae={set(t){return t!=null&&typeof t=="object"&&t.id?t.id:t}};function Ml(t,e,n){let o,r;typeof e=="object"?(o=e.x,r=e.y):(o=e,r=n);const s=it.parse(t),i=s.bbox();if(i){let l=-i.height/2-i.y,a=-i.width/2-i.x;typeof o=="number"&&(a-=o),typeof r=="number"&&(l-=r),s.translate(a,l)}return s.serialize()}var uN=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var{size:e,width:n,height:o,offset:r,open:s}=t,i=uN(t,["size","width","height","offset","open"]);return cN({size:e,width:n,height:o,offset:r},s===!0,!0,void 0,i)},dae=t=>{var{size:e,width:n,height:o,offset:r,factor:s}=t,i=uN(t,["size","width","height","offset","factor"]);return cN({size:e,width:n,height:o,offset:r},!1,!1,s,i)};function cN(t,e,n,o=3/4,r={}){const s=t.size||10,i=t.width||s,l=t.height||s,a=new it,u={};if(e)a.moveTo(i,0).lineTo(0,l/2).lineTo(i,l),u.fill="none";else{if(a.moveTo(0,l/2),a.lineTo(i,0),!n){const c=xr(o,0,1);a.lineTo(i*c,l/2)}a.lineTo(i,l),a.close()}return Object.assign(Object.assign(Object.assign({},u),r),{tagName:"path",d:Ml(a.serialize(),{x:t.offset!=null?t.offset:-i/2})})}var fae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var{size:e,width:n,height:o,offset:r}=t,s=fae(t,["size","width","height","offset"]);const i=e||10,l=n||i,a=o||i,u=new it;return u.moveTo(0,a/2).lineTo(l/2,0).lineTo(l,a/2).lineTo(l/2,a).close(),Object.assign(Object.assign({},s),{tagName:"path",d:Ml(u.serialize(),r??-l/2)})};var pae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var{d:e,offsetX:n,offsetY:o}=t,r=pae(t,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},r),{tagName:"path",d:Ml(e,n,o)})};var mae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var{size:e,width:n,height:o,offset:r}=t,s=mae(t,["size","width","height","offset"]);const i=e||10,l=n||i,a=o||i,u=new it;return u.moveTo(0,0).lineTo(l,a).moveTo(0,a).lineTo(l,0),Object.assign(Object.assign({},s),{tagName:"path",fill:"none",d:Ml(u.serialize(),r||-l/2)})};var bae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var{width:e,height:n,offset:o,open:r,flip:s}=t,i=bae(t,["width","height","offset","open","flip"]);let l=n||6;const a=e||10,u=r===!0,c=s===!0,d=Object.assign(Object.assign({},i),{tagName:"path"});c&&(l=-l);const f=new it;return f.moveTo(0,l).lineTo(a,0),u?d.fill="none":(f.lineTo(a,l),f.close()),d.d=Ml(f.serialize(),{x:o||-a/2,y:l/2}),d};var dN=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var{r:e}=t,n=dN(t,["r"]);const o=e||5;return Object.assign(Object.assign({cx:o},n),{tagName:"circle",r:o})},wae=t=>{var{r:e}=t,n=dN(t,["r"]);const o=e||5,r=new it;return r.moveTo(o,0).lineTo(o,o*2),r.moveTo(0,o).lineTo(o*2,o),{children:[Object.assign(Object.assign({},fN({r:o})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:Ml(r.serialize(),-o)})]}};var Cae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var{rx:e,ry:n}=t,o=Cae(t,["rx","ry"]);const r=e||5,s=n||5;return Object.assign(Object.assign({cx:r},o),{tagName:"ellipse",rx:r,ry:s})},Sae=Object.freeze(Object.defineProperty({__proto__:null,async:yae,block:cae,circle:fN,circlePlus:wae,classic:dae,cross:vae,diamond:hae,ellipse:xae,path:gae},Symbol.toStringTag,{value:"Module"}));var hl;(function(t){t.presets=Sae,t.registry=Mn.create({type:"marker"}),t.registry.register(t.presets,!0)})(hl||(hl={}));(function(t){t.normalize=Ml})(hl||(hl={}));var Eae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r1){const i=Math.ceil(s/2);n.refX=e==="marker-start"?i:-i}}return n}const Af=(t,{view:e})=>e.cell.isEdge(),_ae={qualify:Af,set(t,e){var n,o,r,s;const i=e.view,l=t.reverse||!1,a=t.stubs||0;let u;if(Number.isFinite(a)&&a!==0)if(l){let c,d;const f=i.getConnectionLength()||0;a<0?(c=(f+a)/2,d=-a):(c=a,d=f-a*2);const h=i.getConnection();u=(s=(r=(o=(n=h==null?void 0:h.divideAtLength(c))===null||n===void 0?void 0:n[1])===null||o===void 0?void 0:o.divideAtLength(d))===null||r===void 0?void 0:r[0])===null||s===void 0?void 0:s.serialize()}else{let c;a<0?c=((i.getConnectionLength()||0)+a)/2:c=a;const d=i.getConnection();if(d){const f=d.divideAtLength(c),h=d.divideAtLength(-c);f&&h&&(u=`${f[0].serialize()} ${h[1].serialize()}`)}}return{d:u||i.getConnectionPathData()}}},hN={qualify:Af,set:Gg("getTangentAtLength",{rotate:!0})},Aae={qualify:Af,set:Gg("getTangentAtLength",{rotate:!1})},pN={qualify:Af,set:Gg("getTangentAtRatio",{rotate:!0})},Pae={qualify:Af,set:Gg("getTangentAtRatio",{rotate:!1})},Nae=hN,Iae=pN;function Gg(t,e){const n={x:1,y:0};return(o,r)=>{let s,i;const l=r.view,a=l[t](Number(o));return a?(i=e.rotate?a.vector().vectorAngle(n):0,s=a.start):(s=l.path.start,i=0),i===0?{transform:`translate(${s.x},${s.y}')`}:{transform:`translate(${s.x},${s.y}') rotate(${i})`}}}const Lae=Object.freeze(Object.defineProperty({__proto__:null,annotations:Qle,atConnectionLength:Nae,atConnectionLengthIgnoreGradient:Aae,atConnectionLengthKeepGradient:hN,atConnectionRatio:Iae,atConnectionRatioIgnoreGradient:Pae,atConnectionRatioKeepGradient:pN,connection:_ae,displayEmpty:tae,eol:eae,fill:Gle,filter:aae,html:lae,lineHeight:Yle,port:uae,ref:Ale,refCx:$le,refCy:Dle,refD:zle,refDKeepOffset:Vle,refDResetOffset:nN,refDx:Ple,refDy:Nle,refHeight:eN,refHeight2:qle,refPoints:jle,refPointsKeepOffset:Ble,refPointsResetOffset:oN,refR:Fle,refRCircumscribed:Rle,refRInscribed:tN,refRx:Ile,refRy:Lle,refWidth:QP,refWidth2:Wle,refX:XP,refX2:Hle,refY:ZP,refY2:Ule,resetOffset:sae,sourceMarker:Tae,stroke:Kle,style:iae,targetMarker:Oae,text:lN,textPath:Zle,textVerticalAnchor:Xle,textWrap:Jle,title:nae,vertexMarker:kae,xAlign:oae,yAlign:rae},Symbol.toStringTag,{value:"Module"}));var Ns;(function(t){function e(n,o,r){return!!(n!=null&&(typeof n=="string"||typeof n.qualify!="function"||vt(n.qualify,this,o,r)))}t.isValidDefinition=e})(Ns||(Ns={}));(function(t){t.presets=Object.assign(Object.assign({},_le),Lae),t.registry=Mn.create({type:"attribute definition"}),t.registry.register(t.presets,!0)})(Ns||(Ns={}));const is={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,prefix(t){return`${is.prefixCls}-${t}`}},A2=is.prefix("highlighted"),Rae={highlight(t,e,n){const o=n&&n.className||A2;Dt(e,o)},unhighlight(t,e,n){const o=n&&n.className||A2;Er(e,o)}},P2=is.prefix("highlight-opacity"),$ae={highlight(t,e){Dt(e,P2)},unhighlight(t,e){Er(e,P2)}};var qt;(function(t){t.normalizeMarker=Ml;function e(f,h){const p=Hie(f.x,f.y).matrixTransform(h);return new X(p.x,p.y)}t.transformPoint=e;function n(f,h){return new Qe(e(f.start,h),e(f.end,h))}t.transformLine=n;function o(f,h){let p=f instanceof Tn?f.points:f;return Array.isArray(p)||(p=[]),new Tn(p.map(g=>e(g,h)))}t.transformPolyline=o;function r(f,h){const g=hs("svg").createSVGPoint();g.x=f.x,g.y=f.y;const v=g.matrixTransform(h);g.x=f.x+f.width,g.y=f.y;const m=g.matrixTransform(h);g.x=f.x+f.width,g.y=f.y+f.height;const C=g.matrixTransform(h);g.x=f.x,g.y=f.y+f.height;const y=g.matrixTransform(h),b=Math.min(v.x,m.x,C.x,y.x),S=Math.max(v.x,m.x,C.x,y.x),T=Math.min(v.y,m.y,C.y,y.y),O=Math.max(v.y,m.y,C.y,y.y);return new ze(b,T,S-b,O-T)}t.transformRectangle=r;function s(f,h,p){let g;const v=f.ownerSVGElement;if(!v)return new ze(0,0,0,0);try{g=f.getBBox()}catch{g={x:f.clientLeft,y:f.clientTop,width:f.clientWidth,height:f.clientHeight}}if(h)return ze.create(g);const m=sd(f,p||v);return r(g,m)}t.bbox=s;function i(f,h={}){let p;if(!f.ownerSVGElement||!dl(f)){if(C2(f)){const{left:C,top:y,width:b,height:S}=l(f);return new ze(C,y,b,S)}return new ze(0,0,0,0)}let v=h.target;if(!h.recursive){try{p=f.getBBox()}catch{p={x:f.clientLeft,y:f.clientTop,width:f.clientWidth,height:f.clientHeight}}if(!v)return ze.create(p);const C=sd(f,v);return r(p,C)}{const C=f.childNodes,y=C.length;if(y===0)return i(f,{target:v});v||(v=f);for(let b=0;b{const g=f.getAttribute(p),v=g?parseFloat(g):0;return Number.isNaN(v)?0:v};switch(f instanceof SVGElement&&f.nodeName.toLowerCase()){case"rect":return new ze(h("x"),h("y"),h("width"),h("height"));case"circle":return new ss(h("cx"),h("cy"),h("r"),h("r"));case"ellipse":return new ss(h("cx"),h("cy"),h("rx"),h("ry"));case"polyline":{const p=Tp(f);return new Tn(p)}case"polygon":{const p=Tp(f);return p.length>1&&p.push(p[0]),new Tn(p)}case"path":{let p=f.getAttribute("d");return it.isValid(p)||(p=it.normalize(p)),it.parse(p)}case"line":return new Qe(h("x1"),h("y1"),h("x2"),h("y2"))}return i(f)}t.toGeometryShape=a;function u(f,h,p,g){const v=X.create(h),m=X.create(p);g||(g=f instanceof SVGSVGElement?f:f.ownerSVGElement);const C=qb(f);f.setAttribute("transform","");const y=i(f,{target:g}).scale(C.sx,C.sy),b=Ac();b.setTranslate(-y.x-y.width/2,-y.y-y.height/2);const S=Ac(),T=v.angleBetween(m,v.clone().translate(1,0));T&&S.setRotate(T,0,0);const O=Ac(),k=v.clone().move(m,y.width/2);O.setTranslate(2*v.x-k.x,2*v.y-k.y);const P=sd(f,g),I=Ac();I.setMatrix(O.matrix.multiply(S.matrix.multiply(b.matrix.multiply(P.scale(C.sx,C.sy))))),f.setAttribute("transform",uc(I.matrix))}t.translateAndAutoOrient=u;function c(f){if(f==null)return null;let h=f;do{let p=h.tagName;if(typeof p!="string")return null;if(p=p.toUpperCase(),Of(h,"x6-port"))h=h.nextElementSibling;else if(p==="G")h=h.firstElementChild;else if(p==="TITLE")h=h.nextElementSibling;else break}while(h);return h}t.findShapeNode=c;function d(f){const h=c(f);if(!dl(h)){if(C2(f)){const{left:v,top:m,width:C,height:y}=l(f);return new ze(v,m,C,y)}return new ze(0,0,0,0)}return a(h).bbox()||ze.create()}t.getBBoxV2=d})(qt||(qt={}));const Dae={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},Vae={highlight(t,e,n){const o=Ui.getHighlighterId(e,n);if(Ui.hasCache(o))return;n=sk({},n,Dae);const r=ht.create(e);let s,i;try{s=r.toPathData()}catch{i=qt.bbox(r.node,!0),s=zP(Object.assign(Object.assign({},n),i))}const l=hs("path");if(Qt(l,Object.assign({d:s,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?zd(n.attrs):null)),t.isEdgeElement(e))Qt(l,"d",t.getConnectionPathData());else{let c=r.getTransformToElement(t.container);const d=n.padding;if(d){i==null&&(i=qt.bbox(r.node,!0));const f=i.x+i.width/2,h=i.y+i.height/2;i=qt.transformRectangle(i,c);const p=Math.max(i.width,1),g=Math.max(i.height,1),v=(p+d)/p,m=(g+d)/g,C=to({a:v,b:0,c:0,d:m,e:f-v*f,f:h-m*h});c=c.multiply(C)}Bu(l,c)}Dt(l,is.prefix("highlight-stroke"));const a=t.cell,u=()=>Ui.removeHighlighter(o);a.on("removed",u),a.model&&a.model.on("reseted",u),t.container.appendChild(l),Ui.setCache(o,l)},unhighlight(t,e,n){Ui.removeHighlighter(Ui.getHighlighterId(e,n))}};var Ui;(function(t){function e(i,l){return Jy(i),i.id+JSON.stringify(l)}t.getHighlighterId=e;const n={};function o(i,l){n[i]=l}t.setCache=o;function r(i){return n[i]!=null}t.hasCache=r;function s(i){const l=n[i];l&&(Vu(l),delete n[i])}t.removeHighlighter=s})(Ui||(Ui={}));const Bae=Object.freeze(Object.defineProperty({__proto__:null,className:Rae,opacity:$ae,stroke:Vae},Symbol.toStringTag,{value:"Module"}));var ai;(function(t){function e(n,o){if(typeof o.highlight!="function")throw new Error(`Highlighter '${n}' is missing required \`highlight()\` method`);if(typeof o.unhighlight!="function")throw new Error(`Highlighter '${n}' is missing required \`unhighlight()\` method`)}t.check=e})(ai||(ai={}));(function(t){t.presets=Bae,t.registry=Mn.create({type:"highlighter"}),t.registry.register(t.presets,!0)})(ai||(ai={}));function Jb(t,e={}){return new X(Yr(e.x,t.width),Yr(e.y,t.height))}function o1(t,e,n){return Object.assign({angle:e,position:t.toJSON()},n)}const Fae=(t,e)=>t.map(({x:n,y:o,angle:r})=>o1(Jb(e,{x:n,y:o}),r||0)),zae=(t,e,n)=>{const o=n.start||0,r=n.step||20;return gN(t,e,o,(s,i)=>(s+.5-i/2)*r)},jae=(t,e,n)=>{const o=n.start||0,r=n.step||360/t.length;return gN(t,e,o,s=>s*r)};function gN(t,e,n,o){const r=e.getCenter(),s=e.getTopCenter(),i=e.width/e.height,l=ss.fromRect(e),a=t.length;return t.map((u,c)=>{const d=n+o(c,a),f=s.clone().rotate(-d,r).scale(i,1,r),h=u.compensateRotate?-l.tangentTheta(f):0;return(u.dx||u.dy)&&f.translate(u.dx||0,u.dy||0),u.dr&&f.move(r,u.dr),o1(f.round(),h,u)})}var Hae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{const o=Jb(e,n.start||e.getOrigin()),r=Jb(e,n.end||e.getCorner());return Pf(t,o,r,n)},Wae=(t,e,n)=>Pf(t,e.getTopLeft(),e.getBottomLeft(),n),qae=(t,e,n)=>Pf(t,e.getTopRight(),e.getBottomRight(),n),Gae=(t,e,n)=>Pf(t,e.getTopLeft(),e.getTopRight(),n),Kae=(t,e,n)=>Pf(t,e.getBottomLeft(),e.getBottomRight(),n);function Pf(t,e,n,o){const r=new Qe(e,n),s=t.length;return t.map((i,l)=>{var{strict:a}=i,u=Hae(i,["strict"]);const c=a||o.strict?(l+1)/(s+1):(l+.5)/s,d=r.pointAt(c);return(u.dx||u.dy)&&d.translate(u.dx||0,u.dy||0),o1(d.round(),0,u)})}const Jae=Object.freeze(Object.defineProperty({__proto__:null,absolute:Fae,bottom:Kae,ellipse:zae,ellipseSpread:jae,left:Wae,line:Uae,right:qae,top:Gae},Symbol.toStringTag,{value:"Module"}));var ua;(function(t){t.presets=Jae,t.registry=Mn.create({type:"port layout"}),t.registry.register(t.presets,!0)})(ua||(ua={}));const Yae={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function _l(t,e){const{x:n,y:o,angle:r,attrs:s}=e||{};return sk({},{angle:r,attrs:s,position:{x:n,y:o}},t,Yae)}const Xae=(t,e,n)=>_l({position:e.getTopLeft()},n),Zae=(t,e,n)=>_l({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n),Qae=(t,e,n)=>_l({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n),eue=(t,e,n)=>_l({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n),tue=(t,e,n)=>_l({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n),nue=(t,e,n)=>mN(t,e,!1,n),oue=(t,e,n)=>mN(t,e,!0,n),rue=(t,e,n)=>vN(t,e,!1,n),sue=(t,e,n)=>vN(t,e,!0,n);function mN(t,e,n,o){const r=o.offset!=null?o.offset:15,s=e.getCenter().theta(t),i=bN(e);let l,a,u,c,d=0;return si[2]?(l=".3em",a=r,u=0,c="start"):si[2]?(l=".3em",a=-r,u=0,c="end"):syN(t.diff(e.getCenter()),!1,n),lue=(t,e,n)=>yN(t.diff(e.getCenter()),!0,n);function yN(t,e,n){const o=n.offset!=null?n.offset:20,r=new X(0,0),s=-t.theta(r),i=t.clone().move(r,o).diff(t).round();let l=".3em",a,u=s;return(s+90)%180===0?(a=e?"end":"middle",!e&&s===-270&&(l="0em")):s>-270&&s<-90?(a="start",u=s-180):a="end",_l({position:i.round().toJSON(),angle:e?u:0,attrs:{".":{y:l,"text-anchor":a}}},n)}const aue=Object.freeze(Object.defineProperty({__proto__:null,bottom:tue,inside:rue,insideOriented:sue,left:Zae,manual:Xae,outside:nue,outsideOriented:oue,radial:iue,radialOriented:lue,right:Qae,top:eue},Symbol.toStringTag,{value:"Module"}));var Uu;(function(t){t.presets=aue,t.registry=Mn.create({type:"port label layout"}),t.registry.register(t.presets,!0)})(Uu||(Uu={}));var uue=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class an extends ar{get priority(){return 2}get disposeContainer(){return!0}constructor(){super(),this.cid=Yb.uniqueId(),an.views[this.cid]=this}confirmUpdate(e,n){return 0}empty(e=this.container){return kf(e),this}unmount(e=this.container){return Vu(e),this}remove(e=this.container){return e===this.container?(this.removeEventListeners(document),this.onRemove(),delete an.views[this.cid],this.disposeContainer&&this.unmount(e)):this.unmount(e),this}onRemove(){}setClass(e,n=this.container){n.classList.value=Array.isArray(e)?e.join(" "):e}addClass(e,n=this.container){return Dt(n,Array.isArray(e)?e.join(" "):e),this}removeClass(e,n=this.container){return Er(n,Array.isArray(e)?e.join(" "):e),this}setStyle(e,n=this.container){return _f(n,e),this}setAttrs(e,n=this.container){return e!=null&&n!=null&&Qt(n,e),this}findAttr(e,n=this.container){let o=n;for(;o&&o.nodeType===1;){const r=o.getAttribute(e);if(r!=null)return r;if(o===this.container)return null;o=o.parentNode}return null}find(e,n=this.container,o=this.selectors){return an.find(e,n,o).elems}findOne(e,n=this.container,o=this.selectors){const r=this.find(e,n,o);return r.length>0?r[0]:null}findByAttr(e,n=this.container){let o=n;for(;o&&o.getAttribute;){const r=o.getAttribute(e);if((r!=null||o===this.container)&&r!=="false")return o;o=o.parentNode}return null}getSelector(e,n){let o;if(e===this.container)return typeof n=="string"&&(o=`> ${n}`),o;if(e){const r=Xy(e)+1;o=`${e.tagName.toLowerCase()}:nth-child(${r})`,n&&(o+=` > ${n}`),o=this.getSelector(e.parentNode,o)}return o}prefixClassName(e){return is.prefix(e)}delegateEvents(e,n){if(e==null)return this;n||this.undelegateEvents();const o=/^(\S+)\s*(.*)$/;return Object.keys(e).forEach(r=>{const s=r.match(o);if(s==null)return;const i=this.getEventHandler(e[r]);typeof i=="function"&&this.delegateEvent(s[1],s[2],i)}),this}undelegateEvents(){return ro.off(this.container,this.getEventNamespace()),this}delegateDocumentEvents(e,n){return this.addEventListeners(document,e,n),this}undelegateDocumentEvents(){return this.removeEventListeners(document),this}delegateEvent(e,n,o){return ro.on(this.container,e+this.getEventNamespace(),n,o),this}undelegateEvent(e,n,o){const r=e+this.getEventNamespace();return n==null?ro.off(this.container,r):typeof n=="string"?ro.off(this.container,r,n,o):ro.off(this.container,r,n),this}addEventListeners(e,n,o){if(n==null)return this;const r=this.getEventNamespace();return Object.keys(n).forEach(s=>{const i=this.getEventHandler(n[s]);typeof i=="function"&&ro.on(e,s+r,o,i)}),this}removeEventListeners(e){return e!=null&&ro.off(e,this.getEventNamespace()),this}getEventNamespace(){return`.${is.prefixCls}-event-${this.cid}`}getEventHandler(e){let n;if(typeof e=="string"){const o=this[e];typeof o=="function"&&(n=(...r)=>o.call(this,...r))}else n=(...o)=>e.call(this,...o);return n}getEventTarget(e,n={}){const{target:o,type:r,clientX:s=0,clientY:i=0}=e;return n.fromPoint||r==="touchmove"||r==="touchend"?document.elementFromPoint(s,i):o}stopPropagation(e){return this.setEventData(e,{propagationStopped:!0}),this}isPropagationStopped(e){return this.getEventData(e).propagationStopped===!0}getEventData(e){return this.eventData(e)}setEventData(e,n){return this.eventData(e,n)}eventData(e,n){if(e==null)throw new TypeError("Event object required");let o=e.data;const r=`__${this.cid}__`;return n==null?o==null?{}:o[r]||{}:(o==null&&(o=e.data={}),o[r]==null?o[r]=Object.assign({},n):o[r]=Object.assign(Object.assign({},o[r]),n),o[r])}normalizeEvent(e){return an.normalizeEvent(e)}dispose(){this.remove()}}uue([an.dispose()],an.prototype,"dispose",null);(function(t){function e(r,s){return s?hs(r||"g"):Yy(r||"div")}t.createElement=e;function n(r,s,i){if(!r||r===".")return{elems:[s]};if(i){const l=i[r];if(l)return{elems:Array.isArray(l)?l:[l]}}{const l=r.includes(">")?`:scope ${r}`:r;return{isCSSSelector:!0,elems:Array.prototype.slice.call(s.querySelectorAll(l))}}}t.find=n;function o(r){let s=r;const i=r.originalEvent,l=i&&i.changedTouches&&i.changedTouches[0];if(l){for(const a in r)l[a]===void 0&&(l[a]=r[a]);s=l}return s}t.normalizeEvent=o})(an||(an={}));(function(t){t.views={};function e(n){return t.views[n]||null}t.getView=e})(an||(an={}));var Yb;(function(t){let e=0;function n(){const o=`v${e}`;return e+=1,o}t.uniqueId=n})(Yb||(Yb={}));class cue{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new Kb,this.pathCache={}}get(e){return this.elemCache.has(e)||this.elemCache.set(e,{}),this.elemCache.get(e)}getData(e){const n=this.get(e);return n.data||(n.data={}),n.data}getMatrix(e){const n=this.get(e);if(n.matrix==null){const o=this.view.container;n.matrix=Kie(e,o)}return to(n.matrix)}getShape(e){const n=this.get(e);return n.shape==null&&(n.shape=qt.toGeometryShape(e)),n.shape.clone()}getBoundingRect(e){const n=this.get(e);return n.boundingRect==null&&(n.boundingRect=qt.getBBoxV2(e)),n.boundingRect.clone()}}var nn;(function(t){function e(u){return u!=null&&!n(u)}t.isJSONMarkup=e;function n(u){return u!=null&&typeof u=="string"}t.isStringMarkup=n;function o(u){return u==null||n(u)?u:dn(u)}t.clone=o;function r(u){return`${u}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")}t.sanitize=r;function s(u,c={ns:qn.svg}){const d=document.createDocumentFragment(),f={},h={},p=[{markup:Array.isArray(u)?u:[u],parent:d,ns:c.ns}];for(;p.length>0;){const g=p.pop();let v=g.ns||qn.svg;const m=g.markup,C=g.parent;m.forEach(y=>{const b=y.tagName;if(!b)throw new TypeError("Invalid tagName");y.ns&&(v=y.ns);const S=v?Yy(b,v):w2(b),T=y.attrs;T&&Qt(S,zd(T));const O=y.style;O&&_f(S,O);const k=y.className;k!=null&&S.setAttribute("class",Array.isArray(k)?k.join(" "):k),y.textContent&&(S.textContent=y.textContent);const P=y.selector;if(P!=null){if(h[P])throw new TypeError("Selector must be unique");h[P]=S}if(y.groupSelector){let M=y.groupSelector;Array.isArray(M)||(M=[M]),M.forEach(D=>{f[D]||(f[D]=[]),f[D].push(S)})}C.appendChild(S);const I=y.children;Array.isArray(I)&&p.push({ns:v,markup:I,parent:S})})}return Object.keys(f).forEach(g=>{if(h[g])throw new Error("Ambiguous group selector");h[g]=f[g]}),{fragment:d,selectors:h,groups:f}}t.parseJSONMarkup=s;function i(u){return u instanceof SVGElement?hs("g"):w2("div")}function l(u){if(n(u)){const h=ht.createVectors(u),p=h.length;if(p===1)return{elem:h[0].node};if(p>1){const g=i(h[0].node);return h.forEach(v=>{g.appendChild(v.node)}),{elem:g}}return{}}const c=s(u),d=c.fragment;let f=null;return d.childNodes.length>1?(f=i(d.firstChild),f.appendChild(d)):f=d.firstChild,{elem:f,selectors:c.selectors}}t.renderMarkup=l;function a(u){const c=ht.createVectors(u),d=document.createDocumentFragment();for(let f=0,h=c.length;f ${i} > ${r}`:s=`> ${i}`,s;const l=n.parentNode;if(l&&l.childNodes.length>1){const a=Xy(n)+1;s=`${i}:nth-child(${a})`}else s=i;return r&&(s+=` > ${r}`),e(n.parentNode,o,s)}return r}t.getSelector=e})(nn||(nn={}));(function(t){function e(){return"g"}t.getPortContainerMarkup=e;function n(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}}t.getPortMarkup=n;function o(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}t.getPortLabelMarkup=o})(nn||(nn={}));(function(t){function e(){return[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}]}t.getEdgeMarkup=e})(nn||(nn={}));(function(t){function e(n=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:qn.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:qn.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:n?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}t.getForeignObjectMarkup=e})(nn||(nn={}));class wN{constructor(e){this.view=e}get cell(){return this.view.cell}getDefinition(e){return this.cell.getAttrDefinition(e)}processAttrs(e,n){let o,r,s,i;const l=[];return Object.keys(n).forEach(a=>{const u=n[a],c=this.getDefinition(a),d=vt(Ns.isValidDefinition,this.view,c,u,{elem:e,attrs:n,cell:this.cell,view:this.view});if(c&&d)typeof c=="string"?(o==null&&(o={}),o[c]=u):u!==null&&l.push({name:a,definition:c});else{o==null&&(o={});const f=NP.includes(a)?a:hP(a);o[f]=u}}),l.forEach(({name:a,definition:u})=>{const c=n[a];typeof u.set=="function"&&(r==null&&(r={}),r[a]=c),typeof u.offset=="function"&&(s==null&&(s={}),s[a]=c),typeof u.position=="function"&&(i==null&&(i={}),i[a]=c)}),{raw:n,normal:o,set:r,offset:s,position:i}}mergeProcessedAttrs(e,n){e.set=Object.assign(Object.assign({},e.set),n.set),e.position=Object.assign(Object.assign({},e.position),n.position),e.offset=Object.assign(Object.assign({},e.offset),n.offset);const o=e.normal&&e.normal.transform;o!=null&&n.normal&&(n.normal.transform=o),e.normal=n.normal}findAttrs(e,n,o,r){const s=[],i=new Kb;return Object.keys(e).forEach(l=>{const a=e[l];if(!$s(a))return;const{isCSSSelector:u,elems:c}=an.find(l,n,r);o[l]=c;for(let d=0,f=c.length;d{const a=i.get(l),u=a.attrs;a.attrs=u.reduceRight((c,d)=>pn(c,d),{})}),i}updateRelativeAttrs(e,n,o){const r=n.raw||{};let s=n.normal||{};const i=n.set,l=n.position,a=n.offset,u=()=>({elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:o.clone()});if(i!=null&&Object.keys(i).forEach(v=>{const m=i[v],C=this.getDefinition(v);if(C!=null){const y=vt(C.set,this.view,m,u());typeof y=="object"?s=Object.assign(Object.assign({},s),y):y!=null&&(s[v]=y)}}),e instanceof HTMLElement){this.view.setAttrs(s,e);return}const c=s.transform,d=c?`${c}`:null,f=jd(d),h=new X(f.e,f.f);c&&(delete s.transform,f.e=0,f.f=0);let p=!1;l!=null&&Object.keys(l).forEach(v=>{const m=l[v],C=this.getDefinition(v);if(C!=null){const y=vt(C.position,this.view,m,u());y!=null&&(p=!0,h.translate(X.create(y)))}}),this.view.setAttrs(s,e);let g=!1;if(a!=null){const v=this.view.getBoundingRectOfElement(e);if(v.width>0&&v.height>0){const m=qt.transformRectangle(v,f);Object.keys(a).forEach(C=>{const y=a[C],b=this.getDefinition(C);if(b!=null){const S=vt(b.offset,this.view,y,{elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:m});S!=null&&(g=!0,h.translate(X.create(S)))}})}}(c!=null||p||g)&&(h.round(1),f.e=h.x,f.f=h.y,e.setAttribute("transform",uc(f)))}update(e,n,o){const r={},s=this.findAttrs(o.attrs||n,e,r,o.selectors),i=o.attrs?this.findAttrs(n,e,r,o.selectors):s,l=[];s.each(c=>{const d=c.elem,f=c.attrs,h=this.processAttrs(d,f);if(h.set==null&&h.position==null&&h.offset==null)this.view.setAttrs(h.normal,d);else{const p=i.get(d),g=p?p.attrs:null,v=g&&f.ref==null?g.ref:f.ref;let m;if(v){if(m=(r[v]||this.view.find(v,e,o.selectors))[0],!m)throw new Error(`"${v}" reference does not exist.`)}else m=null;const C={node:d,refNode:m,attributes:g,processedAttributes:h},y=l.findIndex(b=>b.refNode===d);y>-1?l.splice(y,0,C):l.push(C)}});const a=new Kb;let u;l.forEach(c=>{const d=c.node,f=c.refNode;let h;const p=f!=null&&o.rotatableNode!=null&&PP(o.rotatableNode,f);if(f&&(h=a.get(f)),!h){const m=p?o.rotatableNode:e;h=f?qt.getBBox(f,{target:m}):o.rootBBox,f&&a.set(f,h)}let g;o.attrs&&c.attributes?(g=this.processAttrs(d,c.attributes),this.mergeProcessedAttrs(g,c.processedAttributes)):g=c.processedAttributes;let v=h;p&&o.rotatableNode!=null&&!o.rotatableNode.contains(d)&&(u||(u=jd(Qt(o.rotatableNode,"transform"))),v=qt.transformRectangle(h,u)),this.updateRelativeAttrs(d,g,v)})}}class CN{get cell(){return this.view.cell}constructor(e,n,o=[]){this.view=e;const r={},s={};let i=0;Object.keys(n).forEach(a=>{let u=n[a];Array.isArray(u)||(u=[u]),u.forEach(c=>{let d=r[c];d||(i+=1,d=r[c]=1<{r[a]||(i+=1,r[a]=1<25)throw new Error("Maximum number of flags exceeded.");this.flags=r,this.attrs=s,this.bootstrap=o}getFlag(e){const n=this.flags;return n==null?0:Array.isArray(e)?e.reduce((o,r)=>o|n[r],0):n[e]|0}hasAction(e,n){return e&this.getFlag(n)}removeAction(e,n){return e^e&this.getFlag(n)}getBootstrapFlag(){return this.getFlag(this.bootstrap)}getChangedFlag(){let e=0;return this.attrs&&Object.keys(this.attrs).forEach(n=>{this.cell.hasChanged(n)&&(e|=this.attrs[n])}),e}}var due=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},fue=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);rc!=null?hk([...Array.isArray(u)?u:[u],...Array.isArray(c)?c:[c]]):Array.isArray(u)?[...u]:[u],o=dn(this.getDefaults()),{bootstrap:r,actions:s,events:i,documentEvents:l}=e,a=fue(e,["bootstrap","actions","events","documentEvents"]);return r&&(o.bootstrap=n(o.bootstrap,r)),s&&Object.entries(s).forEach(([u,c])=>{const d=o.actions[u];c&&d?o.actions[u]=n(d,c):c&&(o.actions[u]=n(c))}),i&&(o.events=Object.assign(Object.assign({},o.events),i)),e.documentEvents&&(o.documentEvents=Object.assign(Object.assign({},o.documentEvents),l)),pn(o,a)}get[Symbol.toStringTag](){return On.toStringTag}constructor(e,n={}){super(),this.cell=e,this.options=this.ensureOptions(n),this.graph=this.options.graph,this.attr=new wN(this),this.flag=new CN(this,this.options.actions,this.options.bootstrap),this.cache=new cue(this),this.setContainer(this.ensureContainer()),this.setup(),this.init()}init(){}onRemove(){this.removeTools()}get priority(){return this.options.priority}get rootSelector(){return this.options.rootSelector}getConstructor(){return this.constructor}ensureOptions(e){return this.getConstructor().getOptions(e)}getContainerTagName(){return this.options.isSvgElement?"g":"div"}getContainerStyle(){}getContainerAttrs(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}getContainerClassName(){return this.prefixClassName("cell")}ensureContainer(){return an.createElement(this.getContainerTagName(),this.options.isSvgElement)}setContainer(e){if(this.container!==e){this.undelegateEvents(),this.container=e,this.options.events!=null&&this.delegateEvents(this.options.events);const n=this.getContainerAttrs();n!=null&&this.setAttrs(n,e);const o=this.getContainerStyle();o!=null&&this.setStyle(o,e);const r=this.getContainerClassName();r!=null&&this.addClass(r,e)}return this}isNodeView(){return!1}isEdgeView(){return!1}render(){return this}confirmUpdate(e,n={}){return 0}getBootstrapFlag(){return this.flag.getBootstrapFlag()}getFlag(e){return this.flag.getFlag(e)}hasAction(e,n){return this.flag.hasAction(e,n)}removeAction(e,n){return this.flag.removeAction(e,n)}handleAction(e,n,o,r){if(this.hasAction(e,n)){o();const s=[n];return r&&(typeof r=="string"?s.push(r):s.push(...r)),this.removeAction(e,s)}return e}setup(){this.cell.on("changed",this.onCellChanged,this)}onCellChanged({options:e}){this.onAttrsChange(e)}onAttrsChange(e){let n=this.flag.getChangedFlag();e.updated||!n||(e.dirty&&this.hasAction(n,"update")&&(n|=this.getFlag("render")),e.toolId&&(e.async=!1),this.graph!=null&&this.graph.renderer.requestViewUpdate(this,n,e))}parseJSONMarkup(e,n){const o=nn.parseJSONMarkup(e),r=o.selectors,s=this.rootSelector;if(n&&s){if(r[s])throw new Error("Invalid root selector");r[s]=n}return o}can(e){let n=this.graph.options.interacting;if(typeof n=="function"&&(n=vt(n,this.graph,this)),typeof n=="object"){let o=n[e];return typeof o=="function"&&(o=vt(o,this.graph,this)),o!==!1}return typeof n=="boolean"?n:!1}cleanCache(){return this.cache.clean(),this}getCache(e){return this.cache.get(e)}getDataOfElement(e){return this.cache.getData(e)}getMatrixOfElement(e){return this.cache.getMatrix(e)}getShapeOfElement(e){return this.cache.getShape(e)}getBoundingRectOfElement(e){return this.cache.getBoundingRect(e)}getBBoxOfElement(e){const n=this.getBoundingRectOfElement(e),o=this.getMatrixOfElement(e),r=this.getRootRotatedMatrix(),s=this.getRootTranslatedMatrix();return qt.transformRectangle(n,s.multiply(r).multiply(o))}getUnrotatedBBoxOfElement(e){const n=this.getBoundingRectOfElement(e),o=this.getMatrixOfElement(e),r=this.getRootTranslatedMatrix();return qt.transformRectangle(n,r.multiply(o))}getBBox(e={}){let n;if(e.useCellGeometry){const o=this.cell,r=o.isNode()?o.getAngle():0;n=o.getBBox().bbox(r)}else n=this.getBBoxOfElement(this.container);return this.graph.coord.localToGraphRect(n)}getRootTranslatedMatrix(){const e=this.cell,n=e.isNode()?e.getPosition():{x:0,y:0};return to().translate(n.x,n.y)}getRootRotatedMatrix(){let e=to();const n=this.cell,o=n.isNode()?n.getAngle():0;if(o){const r=n.getBBox(),s=r.width/2,i=r.height/2;e=e.translate(s,i).rotate(o).translate(-s,-i)}return e}findMagnet(e=this.container){return this.findByAttr("magnet",e)}updateAttrs(e,n,o={}){o.rootBBox==null&&(o.rootBBox=new ze),o.selectors==null&&(o.selectors=this.selectors),this.attr.update(e,n,o)}isEdgeElement(e){return this.cell.isEdge()&&(e==null||e===this.container)}prepareHighlight(e,n={}){const o=e||this.container;return n.partial=o===this.container,o}highlight(e,n={}){const o=this.prepareHighlight(e,n);return this.notify("cell:highlight",{magnet:o,options:n,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:o,options:n,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:o,options:n,view:this,node:this.cell,cell:this.cell}),this}unhighlight(e,n={}){const o=this.prepareHighlight(e,n);return this.notify("cell:unhighlight",{magnet:o,options:n,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:o,options:n,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:o,options:n,view:this,edge:this.cell,cell:this.cell}),this}notifyUnhighlight(e,n){}getEdgeTerminal(e,n,o,r,s){const i=this.cell,l=this.findAttr("port",e),a=e.getAttribute("data-selector"),u={cell:i.id};return a!=null&&(u.magnet=a),l!=null?(u.port=l,i.isNode()&&!i.hasPort(l)&&a==null&&(u.selector=this.getSelector(e))):a==null&&this.container!==e&&(u.selector=this.getSelector(e)),u}getMagnetFromEdgeTerminal(e){const n=this.cell,o=this.container,r=e.port;let s=e.magnet,i;return r!=null&&n.isNode()&&n.hasPort(r)?i=this.findPortElem(r,s)||o:(s||(s=e.selector),!s&&r!=null&&(s=`[port="${r}"]`),i=this.findOne(s,o,this.selectors)),i}hasTools(e){const n=this.tools;return n==null?!1:e==null?!0:n.name===e}addTools(e){if(this.removeTools(),e){if(!this.can("toolsAddable"))return this;const n=In.isToolsView(e)?e:new In(e);this.tools=n,n.config({view:this}),n.mount()}return this}updateTools(e={}){return this.tools&&this.tools.update(e),this}removeTools(){return this.tools&&(this.tools.remove(),this.tools=null),this}hideTools(){return this.tools&&this.tools.hide(),this}showTools(){return this.tools&&this.tools.show(),this}renderTools(){const e=this.cell.getTools();return this.addTools(e),this}notify(e,n){return this.trigger(e,n),this.graph.trigger(e,n),this}getEventArgs(e,n,o){const r=this,s=r.cell;return n==null||o==null?{e,view:r,cell:s}:{e,x:n,y:o,view:r,cell:s}}onClick(e,n,o){this.notify("cell:click",this.getEventArgs(e,n,o))}onDblClick(e,n,o){this.notify("cell:dblclick",this.getEventArgs(e,n,o))}onContextMenu(e,n,o){this.notify("cell:contextmenu",this.getEventArgs(e,n,o))}onMouseDown(e,n,o){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,n,o))}onMouseUp(e,n,o){this.notify("cell:mouseup",this.getEventArgs(e,n,o)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(e,n,o){this.notify("cell:mousemove",this.getEventArgs(e,n,o))}onMouseOver(e){this.notify("cell:mouseover",this.getEventArgs(e))}onMouseOut(e){this.notify("cell:mouseout",this.getEventArgs(e))}onMouseEnter(e){this.notify("cell:mouseenter",this.getEventArgs(e))}onMouseLeave(e){this.notify("cell:mouseleave",this.getEventArgs(e))}onMouseWheel(e,n,o,r){this.notify("cell:mousewheel",Object.assign({delta:r},this.getEventArgs(e,n,o)))}onCustomEvent(e,n,o,r){this.notify("cell:customevent",Object.assign({name:n},this.getEventArgs(e,o,r))),this.notify(n,Object.assign({},this.getEventArgs(e,o,r)))}onMagnetMouseDown(e,n,o,r){}onMagnetDblClick(e,n,o,r){}onMagnetContextMenu(e,n,o,r){}onLabelMouseDown(e,n,o){}checkMouseleave(e){const n=this.getEventTarget(e,{fromPoint:!0}),o=this.graph.findViewByElem(n);o!==this&&(this.onMouseLeave(e),o&&o.onMouseEnter(e))}dispose(){this.cell.off("changed",this.onCellChanged,this)}}On.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}};due([On.dispose()],On.prototype,"dispose",null);(function(t){t.Flag=CN,t.Attr=wN})(On||(On={}));(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&typeof r.isNodeView=="function"&&typeof r.isEdgeView=="function"&&typeof r.confirmUpdate=="function"}t.isCellView=e})(On||(On={}));(function(t){function e(o){return function(r){r.config({priority:o})}}t.priority=e;function n(o){return function(r){r.config({bootstrap:o})}}t.bootstrap=n})(On||(On={}));(function(t){t.registry=Mn.create({type:"view"})})(On||(On={}));class In extends an{get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return In.toStringTag}constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}createContainer(e,n){const o=e?an.createElement("g",!0):an.createElement("div",!1);return Dt(o,this.prefixClassName("cell-tools")),n.className&&Dt(o,n.className),o}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!On.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(Dt(this.svgContainer,this.prefixClassName("edge-tools")),Dt(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(Dt(this.svgContainer,this.prefixClassName("node-tools")),Dt(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));const n=this.options.items;if(!Array.isArray(n))return this;this.tools=[];const o=[];n.forEach(r=>{In.ToolItem.isToolItem(r)?r.name==="vertices"?o.unshift(r):o.push(r):(typeof r=="object"?r.name:r)==="vertices"?o.unshift(r):o.push(r)});for(let r=0;r{e.toolId!==o.cid&&o.isVisible()&&o.update()}),this}focus(e){const n=this.tools;return n&&n.forEach(o=>{e===o?o.show():o.hide()}),this}blur(e){const n=this.tools;return n&&n.forEach(o=>{o!==e&&!o.isVisible()&&(o.show(),o.update())}),this}hide(){return this.focus(null)}show(){return this.blur(null)}remove(){const e=this.tools;return e&&(e.forEach(n=>n.remove()),this.tools=null),Vu(this.svgContainer),Vu(this.htmlContainer),super.remove()}mount(){const e=this.tools,n=this.cellView;if(n&&e){const o=e.some(s=>s.options.isSVGElement!==!1),r=e.some(s=>s.options.isSVGElement===!1);o&&(this.options.local?n.container:n.graph.view.decorator).appendChild(this.svgContainer),r&&this.graph.container.appendChild(this.htmlContainer)}return this}}(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&r.graph!=null&&r.cell!=null&&typeof r.config=="function"&&typeof r.update=="function"&&typeof r.focus=="function"&&typeof r.blur=="function"&&typeof r.show=="function"&&typeof r.hide=="function"}t.isToolsView=e})(In||(In={}));(function(t){class e extends an{static getDefaults(){return this.defaults}static config(o){this.defaults=this.getOptions(o)}static getOptions(o){return pn(dn(this.getDefaults()),o)}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get name(){return this.options.name}get[Symbol.toStringTag](){return e.toStringTag}constructor(o={}){super(),this.visible=!0,this.options=this.getOptions(o),this.container=an.createElement(this.options.tagName||"g",this.options.isSVGElement!==!1),Dt(this.container,this.prefixClassName("cell-tool")),typeof this.options.className=="string"&&Dt(this.container,this.options.className),this.init()}init(){}getOptions(o){return this.constructor.getOptions(o)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(o,r){return this.cellView=o,this.parent=r,this.stamp(this.container),this.cell.isEdge()?Dt(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&Dt(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}render(){this.empty();const o=this.options.markup;if(o){const r=nn.parseJSONMarkup(o);this.container.appendChild(r.fragment),this.childNodes=r.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(o){o&&o.setAttribute("data-cell-id",this.cellView.cell.id)}show(){return this.container.style.display="",this.visible=!0,this}hide(){return this.container.style.display="none",this.visible=!1,this}isVisible(){return this.visible}focus(){const o=this.options.focusOpacity;return o!=null&&Number.isFinite(o)&&(this.container.style.opacity=`${o}`),this.parent.focus(this),this}blur(){return this.container.style.opacity="",this.parent.blur(this),this}guard(o){return this.graph==null||this.cellView==null?!0:this.graph.view.guard(o,this.cellView)}}e.defaults={isSVGElement:!0,tagName:"g"},t.ToolItem=e,function(n){let o=0;function r(i){return i?Wy(i):(o+=1,`CustomTool${o}`)}function s(i){const l=Hy(r(i.name),this);return l.config(i),l}n.define=s}(e=t.ToolItem||(t.ToolItem={})),function(n){n.toStringTag=`X6.${n.name}`;function o(r){if(r==null)return!1;if(r instanceof n)return!0;const s=r[Symbol.toStringTag],i=r;return(s==null||s===n.toStringTag)&&i.graph!=null&&i.cell!=null&&typeof i.config=="function"&&typeof i.update=="function"&&typeof i.focus=="function"&&typeof i.blur=="function"&&typeof i.show=="function"&&typeof i.hide=="function"&&typeof i.isVisible=="function"}n.isToolItem=o}(e=t.ToolItem||(t.ToolItem={}))})(In||(In={}));const hue=t=>t;function N2(t,e){return e===0?"0%":`${Math.round(t/e*100)}%`}function xN(t){return(n,o,r,s)=>o.isEdgeElement(r)?gue(t,n,o,r,s):pue(t,n,o,r,s)}function pue(t,e,n,o,r){const s=n.cell,i=s.getAngle(),l=n.getUnrotatedBBoxOfElement(o),a=s.getBBox().getCenter(),u=X.create(r).rotate(i,a);let c=u.x-l.x,d=u.y-l.y;return t&&(c=N2(c,l.width),d=N2(d,l.height)),e.anchor={name:"topLeft",args:{dx:c,dy:d,rotate:!0}},e}function gue(t,e,n,o,r){const s=n.getConnection();if(!s)return e;const i=s.closestPointLength(r);if(t){const l=s.length();e.anchor={name:"ratio",args:{ratio:i/l}}}else e.anchor={name:"length",args:{length:i}};return e}const mue=xN(!0),vue=xN(!1),bue=Object.freeze(Object.defineProperty({__proto__:null,noop:hue,pinAbsolute:vue,pinRelative:mue},Symbol.toStringTag,{value:"Module"}));var Xb;(function(t){t.presets=bue,t.registry=Mn.create({type:"connection strategy"}),t.registry.register(t.presets,!0)})(Xb||(Xb={}));function SN(t,e,n,o){return vt(Xb.presets.pinRelative,this.graph,{},e,n,t,this.cell,o,{}).anchor}function EN(t,e){return e?t.cell.getBBox():t.cell.isEdge()?t.getConnection().bbox():t.getUnrotatedBBoxOfElement(t.container)}class pl extends In.ToolItem{onRender(){Dt(this.container,this.prefixClassName("cell-tool-button")),this.update()}update(){return this.updatePosition(),this}updatePosition(){const n=this.cellView.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();Bu(this.container,n,{absolute:!0})}getNodeMatrix(){const e=this.cellView,n=this.options;let{x:o=0,y:r=0}=n;const{offset:s,useCellGeometry:i,rotate:l}=n;let a=EN(e,i);const u=e.cell.getAngle();l||(a=a.bbox(u));let c=0,d=0;typeof s=="number"?(c=s,d=s):typeof s=="object"&&(c=s.x,d=s.y),o=Yr(o,a.width),r=Yr(r,a.height);let f=to().translate(a.x+a.width/2,a.y+a.height/2);return l&&(f=f.rotate(u)),f=f.translate(o+c-a.width/2,r+d-a.height/2),f}getEdgeMatrix(){const e=this.cellView,n=this.options,{offset:o=0,distance:r=0,rotate:s}=n;let i,l,a;const u=Yr(r,1);u>=0&&u<=1?i=e.getTangentAtRatio(u):i=e.getTangentAtLength(u),i?(l=i.start,a=i.vector().vectorAngle(new X(1,0))||0):(l=e.getConnection().start,a=0);let c=to().translate(l.x,l.y).rotate(a);return typeof o=="object"?c=c.translate(o.x||0,o.y||0):c=c.translate(0,o),s||(c=c.rotate(-a)),c}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const n=this.options.onClick;typeof n=="function"&&vt(n,this.cellView,{e,view:this.cellView,cell:this.cellView.cell,btn:this})}}(function(t){t.config({name:"button",useCellGeometry:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})})(pl||(pl={}));(function(t){t.Remove=t.define({name:"button-remove",markup:[{tagName:"circle",selector:"button",attrs:{r:7,fill:"#FF1D00",cursor:"pointer"}},{tagName:"path",selector:"icon",attrs:{d:"M -3 -3 3 3 M -3 3 3 -3",fill:"none",stroke:"#FFFFFF","stroke-width":2,"pointer-events":"none"}}],distance:60,offset:0,useCellGeometry:!0,onClick({view:e,btn:n}){n.parent.remove(),e.cell.remove({ui:!0,toolId:n.cid})}})})(pl||(pl={}));var yue=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{this.stopHandleListening(n),n.remove()})}renderHandles(){const e=this.vertices;for(let n=0,o=e.length;nthis.guard(a),attrs:this.options.attrs||{}});i&&i(l),l.updatePosition(r.x,r.y),this.stamp(l.container),this.container.appendChild(l.container),this.handles.push(l),this.startHandleListening(l)}}updateHandles(){const e=this.vertices;for(let n=0,o=e.length;n0?o[e-1]:n.sourceAnchor,s=e0){const r=this.getNeighborPoints(n),s=r.prev,i=r.next;Math.abs(e.x-s.x)new t.Handle(n),markup:[{tagName:"path",selector:"connection",className:e,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${e}`]:"onPathMouseDown",[`touchstart .${e}`]:"onPathMouseDown"}})})(qd||(qd={}));class Gd extends In.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){Dt(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const e=this.cellView,n=[...this.vertices];n.unshift(e.sourcePoint),n.push(e.targetPoint);for(let o=0,r=n.length;othis.guard(s),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(r),this.updateHandle(r,e,n),this.container.appendChild(r.container),this.startHandleListening(r),r}startHandleListening(e){e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)}stopHandleListening(e){e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)}resetHandles(){const e=this.handles;this.handles=[],e&&e.forEach(n=>{this.stopHandleListening(n),n.remove()})}shiftHandleIndexes(e){const n=this.handles;for(let o=0,r=n.length;onew t.Handle(e),anchor:SN})})(Gd||(Gd={}));class _p extends In.ToolItem{get type(){return this.options.type}onRender(){Dt(this.container,this.prefixClassName(`edge-tool-${this.type}-anchor`)),this.toggleArea(!1),this.update()}update(){const e=this.type;return this.cellView.getTerminalView(e)?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}updateAnchor(){const e=this.childNodes;if(!e)return;const n=e.anchor;if(!n)return;const o=this.type,r=this.cellView,s=this.options,i=r.getTerminalAnchor(o),l=r.cell.prop([o,"anchor"]);n.setAttribute("transform",`translate(${i.x}, ${i.y})`);const a=l?s.customAnchorAttrs:s.defaultAnchorAttrs;a&&Object.keys(a).forEach(u=>{n.setAttribute(u,a[u])})}updateArea(){const e=this.childNodes;if(!e)return;const n=e.area;if(!n)return;const o=this.type,r=this.cellView,s=r.getTerminalView(o);if(s){const i=s.cell,l=r.getTerminalMagnet(o);let a=this.options.areaPadding||0;Number.isFinite(a)||(a=0);let u,c,d;s.isEdgeElement(l)?(u=s.getBBox(),c=0,d=u.getCenter()):(u=s.getUnrotatedBBoxOfElement(l),c=i.getAngle(),d=u.getCenter(),c&&d.rotate(-c,i.getBBox().getCenter())),u.inflate(a),Qt(n,{x:-u.width/2,y:-u.height/2,width:u.width,height:u.height,transform:`translate(${d.x}, ${d.y}) rotate(${c})`})}}toggleArea(e){if(this.childNodes){const n=this.childNodes.area;n&&(n.style.display=e?"":"none")}}onMouseDown(e){this.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}resetAnchor(e){const n=this.type,o=this.cell;e?o.prop([n,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):o.removeProp([n,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(e){const n=this.type,o=this.cellView,r=o.getTerminalView(n);if(r==null)return;const s=this.normalizeEvent(e),i=r.cell,l=o.getTerminalMagnet(n);let a=this.graph.coord.clientToLocalPoint(s.clientX,s.clientY);const u=this.options.snap;if(typeof u=="function"){const f=vt(u,o,a,r,l,n,o,this);a=X.create(f)}if(this.options.restrictArea)if(r.isEdgeElement(l)){const f=r.getClosestPoint(a);f&&(a=f)}else{const f=r.getUnrotatedBBoxOfElement(l),h=i.getAngle(),p=i.getBBox().getCenter(),g=a.clone().rotate(h,p);f.containsPoint(g)||(a=f.getNearestPointToPoint(g).rotate(-h,p))}let c;const d=this.options.anchor;typeof d=="function"&&(c=vt(d,o,a,r,l,n,o,this)),this.resetAnchor(c),this.update()}onMouseUp(e){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);const n=this.cellView;this.options.removeRedundancies&&n.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}onDblClick(){const e=this.options.resetAnchor;e&&this.resetAnchor(e===!0?void 0:e),this.update()}}(function(t){t.config({tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:SN,snap(e,n,o,r,s,i){const l=i.options.snapRadius||0,a=r==="source",u=a?0:-1,c=this.cell.getVertexAt(u)||this.getTerminalAnchor(a?"target":"source");return c&&(Math.abs(c.x-e.x){this.editor&&(this.editor.focus(),this.selectText())})}selectText(){if(window.getSelection&&this.editor){const e=document.createRange(),n=window.getSelection();e.selectNodeContents(this.editor),n.removeAllRanges(),n.addRange(e)}}getCellText(){const{getText:e}=this.options;if(typeof e=="function")return vt(e,this.cellView,{cell:this.cell,index:this.labelIndex});if(typeof e=="string"){if(this.cell.isNode())return this.cell.attr(e);if(this.cell.isEdge()&&this.labelIndex!==-1)return this.cell.prop(`labels/${this.labelIndex}/attrs/${e}`)}}setCellText(e){const n=this.options.setText;if(typeof n=="function"){vt(n,this.cellView,{cell:this.cell,value:e,index:this.labelIndex,distance:this.distance});return}if(typeof n=="string"){if(this.cell.isNode()){e!==null&&this.cell.attr(n,e);return}if(this.cell.isEdge()){const o=this.cell;if(this.labelIndex===-1){if(e){const r={position:{distance:this.distance},attrs:{}};ac(r,`attrs/${n}`,e),o.appendLabel(r)}}else e!==null?o.prop(`labels/${this.labelIndex}/attrs/${n}`,e):typeof this.labelIndex=="number"&&o.removeLabelAt(this.labelIndex)}}}onRemove(){const e=this.cellView;e&&e.off("cell:dblclick",this.dblClick),this.removeElement()}}(function(t){t.config({tagName:"div",isSVGElement:!1,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"},documentEvents:{mouseup:"onDocumentMouseUp",touchend:"onDocumentMouseUp",touchcancel:"onDocumentMouseUp"}})})(Wu||(Wu={}));(function(t){t.NodeEditor=t.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText:"text/text",setText:"text/text"}),t.EdgeEditor=t.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},labelAddable:!0,getText:"label/text",setText:"label/text"})})(Wu||(Wu={}));var TN=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r1&&(r/=100),t.getPointAtRatio(r)},zue=function(t,e,n,o){const r=o.length!=null?o.length:20;return t.getPointAtLength(r)},kN=function(t,e,n,o){const r=t.getClosestPoint(n);return r??new X},jue=Kg(kN),Hue=function(t,e,n,o){const s=t.getConnection(),i=t.getConnectionSubdivisions(),l=new Qe(n.clone().translate(0,1e6),n.clone().translate(0,-1e6)),a=new Qe(n.clone().translate(1e6,0),n.clone().translate(-1e6,0)),u=l.intersect(s,{segmentSubdivisions:i}),c=a.intersect(s,{segmentSubdivisions:i}),d=[];return u&&d.push(...u),c&&d.push(...c),d.length>0?n.closest(d):o.fallbackAt!=null?ON(t,o.fallbackAt):vt(kN,this,t,e,n,o)},Uue=Kg(Hue),Wue=Object.freeze(Object.defineProperty({__proto__:null,closest:jue,length:zue,orth:Uue,ratio:Fue},Symbol.toStringTag,{value:"Module"}));var Ju;(function(t){t.presets=Wue,t.registry=Mn.create({type:"edge endpoint"}),t.registry.register(t.presets,!0)})(Ju||(Ju={}));function Jg(t,e,n){let o;if(typeof n=="object"){if(Number.isFinite(n.y)){const s=new Qe(e,t),{start:i,end:l}=s.parallel(n.y);e=i,t=l}o=n.x}else o=n;if(o==null||!Number.isFinite(o))return t;const r=t.distance(e);return o===0&&r>0?t:t.move(e,-Math.min(o,r-1))}function Pp(t){const e=t.getAttribute("stroke-width");return e===null?0:parseFloat(e)||0}function que(t){if(t==null)return null;let e=t;do{let n=e.tagName;if(typeof n!="string")return null;if(n=n.toUpperCase(),n==="G")e=e.firstElementChild;else if(n==="TITLE")e=e.nextElementSibling;else break}while(e);return e}const MN=function(t,e,n,o){const r=e.getBBoxOfElement(n);o.stroked&&r.inflate(Pp(n)/2);const s=t.intersect(r),i=s&&s.length?t.start.closest(s):t.end;return Jg(i,t.start,o.offset)},Gue=function(t,e,n,o,r){const s=e.cell,i=s.isNode()?s.getAngle():0;if(i===0)return vt(MN,this,t,e,n,o,r);const l=e.getUnrotatedBBoxOfElement(n);o.stroked&&l.inflate(Pp(n)/2);const a=l.getCenter(),u=t.clone().rotate(i,a),c=u.setLength(1e6).intersect(l),d=c&&c.length?u.start.closest(c).rotate(-i,a):t.end;return Jg(d,t.start,o.offset)},Kue=function(t,e,n,o){let r,s;const i=t.end,l=o.selector;if(typeof l=="string"?r=e.findOne(l):Array.isArray(l)?r=Uy(n,l):r=que(n),!dl(r)){if(r===n||!dl(n))return i;r=n}const a=e.getShapeOfElement(r),u=e.getMatrixOfElement(r),c=e.getRootTranslatedMatrix(),d=e.getRootRotatedMatrix(),f=c.multiply(d).multiply(u),h=f.inverse(),p=qt.transformLine(t,h),g=p.start.clone(),v=e.getDataOfElement(r);if(o.insideout===!1){v.shapeBBox==null&&(v.shapeBBox=a.bbox());const b=v.shapeBBox;if(b!=null&&b.containsPoint(g))return i}o.extrapolate===!0&&p.setLength(1e6);let m;if(it.isPath(a)){const b=o.precision||2;v.segmentSubdivisions==null&&(v.segmentSubdivisions=a.getSegmentSubdivisions({precision:b})),m={precision:b,segmentSubdivisions:v.segmentSubdivisions},s=p.intersect(a,m)}else s=p.intersect(a);s?Array.isArray(s)&&(s=g.closest(s)):o.sticky===!0&&(ze.isRectangle(a)?s=a.getNearestPointToPoint(g):ss.isEllipse(a)?s=a.intersectsWithLineFromCenterToPoint(g):s=a.closestPoint(g,m));const C=s?qt.transformPoint(s,f):i;let y=o.offset||0;return o.stroked!==!1&&(typeof y=="object"?(y=Object.assign({},y),y.x==null&&(y.x=0),y.x+=Pp(r)/2):y+=Pp(r)/2),Jg(C,t.start,y)};function Jue(t,e,n=0){const{start:o,end:r}=t;let s,i,l,a;switch(e){case"left":a="x",s=r,i=o,l=-1;break;case"right":a="x",s=o,i=r,l=1;break;case"top":a="y",s=r,i=o,l=-1;break;case"bottom":a="y",s=o,i=r,l=1;break;default:return}o[a]0?a[u]=l[u]:l[u]=a[u],[l.toJSON(),...t,a.toJSON()]};function ph(t){return new ze(t.x,t.y,0,0)}function Np(t={}){const e=wa(t.padding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function _N(t,e={}){return t.sourceBBox.clone().moveAndExpand(Np(e))}function AN(t,e={}){return t.targetBBox.clone().moveAndExpand(Np(e))}function ece(t,e={}){return t.sourceAnchor?t.sourceAnchor:_N(t,e).getCenter()}function tce(t,e={}){return t.targetAnchor?t.targetAnchor:AN(t,e).getCenter()}const PN=function(t,e,n){let o=_N(n,e),r=AN(n,e);const s=ece(n,e),i=tce(n,e);o=o.union(ph(s)),r=r.union(ph(i));const l=t.map(c=>X.create(c));l.unshift(s),l.push(i);let a=null;const u=[];for(let c=0,d=l.length-1;cf.y?"N":"S":d.y===f.y?d.x>f.x?"W":"E":null}t.getBearing=s;function i(d,f,h){const p=new X(d.x,f.y),g=new X(f.x,d.y),v=s(d,p),m=s(d,g),C=h?e[h]:null,y=v===h||v!==C&&(m===C||m!==h)?p:g;return{points:[y],direction:s(y,f)}}t.vertexToVertex=i;function l(d,f,h){const p=o(d,f,h);return{points:[p],direction:s(p,f)}}t.nodeToVertex=l;function a(d,f,h,p){const g=[new X(d.x,f.y),new X(f.x,d.y)],v=g.filter(y=>!h.containsPoint(y)),m=v.filter(y=>s(y,d)!==p);let C;if(m.length>0)return C=m.filter(y=>s(d,y)===p).pop(),C=C||m[0],{points:[C],direction:s(C,f)};{C=gF(g,v)[0];const y=X.create(f).move(C,-r(h,p)/2);return{points:[o(y,d,h),y],direction:s(y,f)}}}t.vertexToNode=a;function u(d,f,h,p){let g=l(f,d,p);const v=g.points[0];if(h.containsPoint(v)){g=l(d,f,h);const m=g.points[0];if(p.containsPoint(m)){const C=X.create(d).move(m,-r(h,s(d,m))/2),y=X.create(f).move(v,-r(p,s(f,v))/2),b=new Qe(C,y).getCenter(),S=l(d,b,h),T=i(b,f,S.direction);g.points=[S.points[0],T.points[0]],g.direction=T.direction}}return g}t.nodeToNode=u;function c(d,f,h,p,g){const v=h.union(p).inflate(1),m=v.getCenter(),C=m.distance(f)>m.distance(d),y=C?f:d,b=C?d:f;let S,T,O;g?(S=X.fromPolar(v.width+v.height,n[g],y),S=v.getNearestPointToPoint(S).move(S,-1)):S=v.getNearestPointToPoint(y).move(y,1),T=o(S,b,v);let k;S.round().equals(T.round())?(T=X.fromPolar(v.width+v.height,Zt.toRad(S.theta(y))+Math.PI/2,b),T=v.getNearestPointToPoint(T).move(b,1).round(),O=o(S,T,v),k=C?[T,O,S]:[S,O,T]):k=C?[T,S]:[S,T];const P=s(C?S:T,f);return{points:k,direction:P}}t.insideNode=c})(pr||(pr={}));const nce={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeNodes:[],excludeShapes:[],startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost(){return Ki(this.step,this)},directions(){const t=Ki(this.step,this),e=Ki(this.cost,this);return[{cost:e,offsetX:t,offsetY:0},{cost:e,offsetX:-t,offsetY:0},{cost:e,offsetX:0,offsetY:t},{cost:e,offsetX:0,offsetY:-t}]},penalties(){const t=Ki(this.step,this);return{0:0,45:t/2,90:t/2}},paddingBox(){const t=Ki(this.step,this);return{x:-t,y:-t,width:2*t,height:2*t}},fallbackRouter:PN,draggingRouter:null,snapToGrid:!0};function Ki(t,e){return typeof t=="function"?t.call(e):t}function oce(t){const e=Object.keys(t).reduce((n,o)=>{const r=n;return o==="fallbackRouter"||o==="draggingRouter"||o==="fallbackRoute"?r[o]=t[o]:r[o]=Ki(t[o],t),n},{});if(e.padding){const n=wa(e.padding);e.paddingBox={x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom}}return e.directions.forEach(n=>{const o=new X(0,0),r=new X(n.offsetX,n.offsetY);n.angle=Zt.normalize(o.theta(r))}),e}const I2=1,L2=2;class rce{constructor(){this.items=[],this.hash={},this.values={}}add(e,n){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=I2,this.values[e]=n;const o=JF(this.items,e,r=>this.values[r]);this.items.splice(o,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=L2),e}isOpen(e){return this.hash[e]===I2}isClose(e){return this.hash[e]===L2}isEmpty(){return this.items.length===0}}class sce{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}build(e,n){const o=this.options,r=o.excludeTerminals.reduce((u,c)=>{const d=n[c];if(d){const f=e.getCell(d.cell);f&&u.push(f)}return u},[]);let s=[];const i=e.getCell(n.getSourceCellId());i&&(s=OC(s,i.getAncestors().map(u=>u.id)));const l=e.getCell(n.getTargetCellId());l&&(s=OC(s,l.getAncestors().map(u=>u.id)));const a=this.mapGridSize;return e.getNodes().reduce((u,c)=>{const d=r.some(v=>v.id===c.id),f=c.shape?o.excludeShapes.includes(c.shape):!1,h=o.excludeNodes.some(v=>typeof v=="string"?c.id===v:v===c),p=s.includes(c.id),g=f||d||h||p;if(c.isVisible()&&!g){const v=c.getBBox().moveAndExpand(o.paddingBox),m=v.getOrigin().snapToGrid(a),C=v.getCorner().snapToGrid(a);for(let y=m.x;y<=C.x;y+=a)for(let b=m.y;b<=C.y;b+=a){const S=new X(y,b).toString();u[S]==null&&(u[S]=[]),u[S].push(v)}}return u},this.map),this}isAccessible(e){const n=e.clone().snapToGrid(this.mapGridSize).toString(),o=this.map[n];return o?o.every(r=>!r.containsPoint(e)):!0}}function NN(t,e){const n=t.sourceBBox.clone();return e&&e.paddingBox?n.moveAndExpand(e.paddingBox):n}function IN(t,e){const n=t.targetBBox.clone();return e&&e.paddingBox?n.moveAndExpand(e.paddingBox):n}function LN(t,e){return t.sourceAnchor?t.sourceAnchor:NN(t,e).getCenter()}function ice(t,e){return t.targetAnchor?t.targetAnchor:IN(t,e).getCenter()}function uv(t,e,n,o,r){const s=360/n,i=t.theta(lce(t,e,o,r)),l=Zt.normalize(i+s/2);return s*Math.floor(l/s)}function lce(t,e,n,o){const r=o.step,s=e.x-t.x,i=e.y-t.y,l=s/n.x,a=i/n.y,u=l*r,c=a*r;return new X(t.x+u,t.y+c)}function R2(t,e){const n=Math.abs(t-e);return n>180?360-n:n}function ace(t,e){const n=e.step;return e.directions.forEach(o=>{o.gridOffsetX=o.offsetX/n*t.x,o.gridOffsetY=o.offsetY/n*t.y}),e.directions}function uce(t,e,n){return{source:e.clone(),x:$2(n.x-e.x,t),y:$2(n.y-e.y,t)}}function $2(t,e){if(!t)return e;const n=Math.abs(t),o=Math.round(n/e);if(!o)return n;const r=o*e,i=(n-r)/o;return e+i}function cce(t,e){const n=e.source,o=Yt.snapToGrid(t.x-n.x,e.x)+n.x,r=Yt.snapToGrid(t.y-n.y,e.y)+n.y;return new X(o,r)}function Pc(t,e){return t.round(e)}function Dh(t,e,n){return Pc(cce(t.clone(),e),n)}function ad(t){return t.toString()}function cv(t){return new X(t.x===0?0:Math.abs(t.x)/t.x,t.y===0?0:Math.abs(t.y)/t.y)}function D2(t,e){let n=1/0;for(let o=0,r=e.length;o{if(n.includes(c)){const d=i[c],f=new X(t.x+d.x*(Math.abs(l.x)+e.width),t.y+d.y*(Math.abs(l.y)+e.height)),p=new Qe(t,f).intersect(e)||[];let g,v=null;for(let m=0;mg)&&(g=y,v=C)}if(v){let m=Dh(v,o,s);e.containsPoint(m)&&(m=Dh(m.translate(d.x*o.x,d.y*o.y),o,s)),u.push(m)}}return u},[]);return e.containsPoint(t)||a.push(Dh(t,o,s)),a}function dce(t,e,n,o,r){const s=[];let i=cv(r.diff(n)),l=ad(n),a=t[l],u;for(;a;){u=e[l];const f=cv(u.diff(a));f.equals(i)||(s.unshift(u),i=f),l=ad(a),a=t[l]}const c=e[l];return cv(c.diff(o)).equals(i)||s.unshift(c),s}function fce(t,e,n,o,r){const s=r.precision;let i,l;ze.isRectangle(e)?i=Pc(LN(t,r).clone(),s):i=Pc(e.clone(),s),ze.isRectangle(n)?l=Pc(ice(t,r).clone(),s):l=Pc(n.clone(),s);const a=uce(r.step,i,l),u=i,c=l;let d,f;if(ze.isRectangle(e)?d=V2(u,e,r.startDirections,a,r):d=[u],ze.isRectangle(n)?f=V2(l,n,r.endDirections,a,r):f=[c],d=d.filter(h=>o.isAccessible(h)),f=f.filter(h=>o.isAccessible(h)),d.length>0&&f.length>0){const h=new rce,p={},g={},v={};for(let I=0,M=d.length;I{const D=ad(M);return I.push(D),I},[]),k=X.equalPoints(d,f);let P=r.maxLoopCount;for(;!h.isEmpty()&&P>0;){const I=h.pop(),M=p[I],D=g[I],J=v[I],oe=M.equals(u),N=D==null;let A;if(N?C?oe?A=null:A=uv(u,M,T,a,r):A=m:A=uv(D,M,T,a,r),!(N&&k)&&O.indexOf(I)>=0)return r.previousDirectionAngle=A,dce(g,p,M,u,c);for(let j=0;jr.maxDirectionChange)continue;const le=Dh(M.clone().translate(y.gridOffsetX||0,y.gridOffsetY||0),a,s),ue=ad(le);if(h.isClose(ue)||!o.isAccessible(le))continue;if(O.indexOf(ue)>=0&&!le.equals(c)){const Oe=uv(le,c,T,a,r);if(R2(F,Oe)>r.maxDirectionChange)continue}const se=y.cost,Ee=oe?0:r.penalties[b],fe=J+se+Ee;(!h.isOpen(ue)||feX.create(h)),u=[];let c=i,d,f;for(let h=0,p=a.length;h<=p;h+=1){let g=null;if(d=f||r,f=a[h],f==null){f=s;const m=n.cell;if((m.getSourceCellId()==null||m.getTargetCellId()==null)&&typeof o.draggingRouter=="function"){const y=d===r?i:d,b=f.getOrigin();g=vt(o.draggingRouter,n,y,b,o)}}if(g==null&&(g=fce(n,d,f,l,o)),g===null)return vt(o.fallbackRouter,this,t,o,n);const v=g[0];v&&v.equals(c)&&g.shift(),c=g[g.length-1]||c,u.push(...g)}return o.snapToGrid?hce(u,n.graph.grid.getGridSize()):u},RN=function(t,e,n){return vt(pce,this,t,Object.assign(Object.assign({},nce),e),n)},gce={maxDirectionChange:45,directions(){const t=Ki(this.step,this),e=Ki(this.cost,this),n=Math.ceil(Math.sqrt(t*t<<1));return[{cost:e,offsetX:t,offsetY:0},{cost:n,offsetX:t,offsetY:t},{cost:e,offsetX:0,offsetY:t},{cost:n,offsetX:-t,offsetY:t},{cost:e,offsetX:-t,offsetY:0},{cost:n,offsetX:-t,offsetY:-t},{cost:e,offsetX:0,offsetY:-t},{cost:n,offsetX:t,offsetY:-t}]},fallbackRoute(t,e,n){const o=t.theta(e),r=[];let s={x:e.x,y:t.y},i={x:t.x,y:e.y};if(o%180>90){const y=s;s=i,i=y}const l=o%90<45?s:i,a=new Qe(t,l),u=90*Math.ceil(o/90),c=X.fromPolar(a.squaredLength(),Zt.toRad(u+135),l),d=new Qe(e,c),f=a.intersectsWithLine(d),h=f||e,p=f?h:t,g=360/n.directions.length,v=p.theta(e),m=Zt.normalize(v+g/2),C=g*Math.floor(m/g);return n.previousDirectionAngle=C,h&&r.push(h.round()),r.push(e),r}},mce=function(t,e,n){return vt(RN,this,t,Object.assign(Object.assign({},gce),e),n)},vce=function(t,e,n){const o=e.offset||32,r=e.min==null?16:e.min;let s=0,i=e.direction;const l=n.sourceBBox,a=n.targetBBox,u=l.getCenter(),c=a.getCenter();if(typeof o=="number"&&(s=o),i==null){let m=a.left-l.right,C=a.top-l.bottom;m>=0&&C>=0?i=m>=C?"L":"T":m<=0&&C>=0?(m=l.left-a.right,m>=0?i=m>=C?"R":"T":i="T"):m>=0&&C<=0?(C=l.top-a.bottom,C>=0?i=m>=C?"L":"B":i="L"):(m=l.left-a.right,C=l.top-a.bottom,m>=0&&C>=0?i=m>=C?"R":"B":m<=0&&C>=0?i="B":m>=0&&C<=0?i="R":i=Math.abs(m)>Math.abs(C)?"R":"B")}i==="H"?i=c.x-u.x>=0?"L":"R":i==="V"&&(i=c.y-u.y>=0?"T":"B"),o==="center"&&(i==="L"?s=(a.left-l.right)/2:i==="R"?s=(l.left-a.right)/2:i==="T"?s=(a.top-l.bottom)/2:i==="B"&&(s=(l.top-a.bottom)/2));let d,f,h;const p=i==="L"||i==="R";if(p){if(c.y===u.y)return[...t];h=i==="L"?1:-1,d="x",f="width"}else{if(c.x===u.x)return[...t];h=i==="T"?1:-1,d="y",f="height"}const g=u.clone(),v=c.clone();if(g[d]+=h*(l[f]/2+s),v[d]-=h*(a[f]/2+s),p){const m=g.x,C=v.x,y=l.width/2+r,b=a.width/2+r;c.x>u.x?C<=m&&(g.x=Math.max(C,u.x+y),v.x=Math.min(m,c.x-b)):C>=m&&(g.x=Math.min(C,u.x-y),v.x=Math.max(m,c.x+b))}else{const m=g.y,C=v.y,y=l.height/2+r,b=a.height/2+r;c.y>u.y?C<=m&&(g.y=Math.max(C,u.y+y),v.y=Math.min(m,c.y-b)):C>=m&&(g.y=Math.min(C,u.y-y),v.y=Math.max(m,c.y+b))}return[g.toJSON(),...t,v.toJSON()]};function Ba(t,e){if(e!=null&&e!==!1){const n=typeof e=="boolean"?0:e;if(n>0){const o=X.create(t[1]).move(t[2],n),r=X.create(t[1]).move(t[0],n);return[o.toJSON(),...t,r.toJSON()]}{const o=t[1];return[Object.assign({},o),...t,Object.assign({},o)]}}return t}const bce=function(t,e,n){const o=e.width||50,s=(e.height||80)/2,i=e.angle||"auto",l=n.sourceAnchor,a=n.targetAnchor,u=n.sourceBBox,c=n.targetBBox;if(l.equals(a)){const d=m=>{const C=Zt.toRad(m),y=Math.sin(C),b=Math.cos(C),S=new X(l.x+b*o,l.y+y*o),T=new X(S.x-b*s,S.y-y*s),O=T.clone().rotate(-90,S),k=T.clone().rotate(90,S);return[O.toJSON(),S.toJSON(),k.toJSON()]},f=m=>{const C=l.clone().move(m,-1),y=new Qe(C,m);return!u.containsPoint(m)&&!u.intersectsWithLine(y)},h=[0,90,180,270,45,135,225,315];if(typeof i=="number")return Ba(d(i),e.merge);const p=u.getCenter();if(p.equals(l))return Ba(d(0),e.merge);const g=p.angleBetween(l,p.clone().translate(1,0));let v=d(g);if(f(v[1]))return Ba(v,e.merge);for(let m=1,C=h.length;m1&&(s.rotate(180-c,u),i.rotate(180-c,u),l.rotate(180-c,u))}const a=` + M ${t.x} ${t.y} + Q ${s.x} ${s.y} ${l.x} ${l.y} + Q ${i.x} ${i.y} ${e.x} ${e.y} + `;return o.raw?it.parse(a):a},xce=function(t,e,n,o={}){const r=new it;r.appendSegment(it.createSegment("M",t));const s=1/3,i=2/3,l=o.radius||10;let a,u;for(let c=0,d=n.length;c=Math.abs(t.y-e.y)?"H":"V"),s==="H"){const i=(t.x+e.x)/2;r.appendSegment(it.createSegment("C",i,t.y,i,e.y,e.x,e.y))}else{const i=(t.y+e.y)/2;r.appendSegment(it.createSegment("C",t.x,i,e.x,i,e.x,e.y))}return o.raw?r:r.serialize()},B2=1,gh=1/3,mh=2/3;function Ece(t){let e=t.graph._jumpOverUpdateList;if(e==null&&(e=t.graph._jumpOverUpdateList=[],t.graph.on("cell:mouseup",()=>{const n=t.graph._jumpOverUpdateList;setTimeout(()=>{for(let o=0;o{e=t.graph._jumpOverUpdateList=[]})),e.indexOf(t)<0){e.push(t);const n=()=>e.splice(e.indexOf(t),1);t.cell.once("change:connector",n),t.cell.once("removed",n)}}function dv(t,e,n=[]){const o=[t,...n,e],r=[];return o.forEach((s,i)=>{const l=o[i+1];l!=null&&r.push(new Qe(s,l))}),r}function Tce(t,e){const n=[];return e.forEach(o=>{const r=t.intersectsWithLine(o);r&&n.push(r)}),n}function F2(t,e){return new Qe(t,e).squaredLength()}function Oce(t,e,n){return e.reduce((o,r,s)=>{if(Ip.includes(r))return o;const i=o.pop()||t,l=X.create(r).move(i.start,-n);let a=X.create(r).move(i.start,+n);const u=e[s+1];if(u!=null){const f=a.distance(u);f<=n&&(a=u.move(i.start,f),Ip.push(u))}else if(l.distance(i.end){if(Kd.includes(i)){let a,u,c,d;if(n==="arc"){a=-90,u=i.start.diff(i.end),(u.x<0||u.x===0&&u.y<0)&&(a+=180);const h=i.getCenter(),p=new Qe(h,i.end).rotate(a,h);let g;g=new Qe(i.start,h),c=g.pointAt(2/3).rotate(a,i.start),d=p.pointAt(1/3).rotate(-a,p.end),s=it.createSegment("C",c,d,p.end),r.appendSegment(s),g=new Qe(h,i.end),c=p.pointAt(1/3).rotate(a,p.end),d=g.pointAt(1/3).rotate(-a,i.end),s=it.createSegment("C",c,d,i.end),r.appendSegment(s)}else if(n==="gap")s=it.createSegment("M",i.end),r.appendSegment(s);else if(n==="cubic"){a=i.start.theta(i.end);const f=e*.6;let h=e*1.35;u=i.start.diff(i.end),(u.x<0||u.x===0&&u.y<0)&&(h*=-1),c=new X(i.start.x+f,i.start.y+h).rotate(a,i.start),d=new X(i.end.x-f,i.end.y+h).rotate(a,i.end),s=it.createSegment("C",c,d,i.end),r.appendSegment(s)}}else{const a=t[l+1];o===0||!a||Kd.includes(a)?(s=it.createSegment("L",i.end),r.appendSegment(s)):kce(o,r,i.end,i.start,a.end)}}),r}function kce(t,e,n,o,r){const s=n.distance(o)/2,i=n.distance(r)/2,l=-Math.min(t,s),a=-Math.min(t,i),u=n.clone().move(o,l).round(),c=n.clone().move(r,a).round(),d=new X(gh*u.x+mh*n.x,mh*n.y+gh*u.y),f=new X(gh*c.x+mh*n.x,mh*n.y+gh*c.y);let h;h=it.createSegment("L",u),e.appendSegment(h),h=it.createSegment("C",d,f,c),e.appendSegment(h)}let Kd,Ip;const Mce=function(t,e,n,o={}){Kd=[],Ip=[],Ece(this);const r=o.size||5,s=o.type||"arc",i=o.radius||0,l=o.ignoreConnectors||["smooth"],a=this.graph,c=a.model.getEdges();if(c.length===1)return z2(dv(t,e,n),r,s,i);const d=this.cell,f=c.indexOf(d),h=a.options.connecting.connector||{},p=c.filter((b,S)=>{const T=b.getConnector()||h;return l.includes(T.name)?!1:S>f?T.name!=="jumpover":!0}),g=p.map(b=>a.findViewByCell(b)),v=dv(t,e,n),m=g.map(b=>b==null?[]:b===this?v:dv(b.sourcePoint,b.targetPoint,b.routePoints)),C=[];v.forEach(b=>{const S=p.reduce((T,O,k)=>{if(O!==d){const P=Tce(b,m[k]);T.push(...P)}return T},[]).sort((T,O)=>F2(b.start,T)-F2(b.start,O));S.length>0?C.push(...Oce(b,S,r)):C.push(b)});const y=z2(C,r,s,i);return Kd=[],Ip=[],o.raw?y:y.serialize()},_ce=Object.freeze(Object.defineProperty({__proto__:null,jumpover:Mce,loop:Cce,normal:wce,rounded:xce,smooth:Sce},Symbol.toStringTag,{value:"Module"}));var ca;(function(t){t.presets=_ce,t.registry=Mn.create({type:"connector"}),t.registry.register(t.presets,!0)})(ca||(ca={}));var Ace=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class $N extends ar{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(dn(e)),this.changed={}}mutate(e,n={}){const o=n.unset===!0,r=n.silent===!0,s=[],i=this.changing;this.changing=!0,i||(this.previous=dn(this.data),this.changed={});const l=this.data,a=this.previous,u=this.changed;if(Object.keys(e).forEach(c=>{const d=c,f=e[d];Eo(l[d],f)||s.push(d),Eo(a[d],f)?delete u[d]:u[d]=f,o?delete l[d]:l[d]=f}),!r&&s.length>0&&(this.pending=!0,this.pendingOptions=n,s.forEach(c=>{this.emit("change:*",{key:c,options:n,store:this,current:l[c],previous:a[c]})})),i)return this;if(!r)for(;this.pending;)this.pending=!1,this.emit("changed",{current:l,previous:a,store:this,options:this.pendingOptions});return this.pending=!1,this.changing=!1,this.pendingOptions=null,this}get(e,n){if(e==null)return this.data;const o=this.data[e];return o??n}getPrevious(e){if(this.previous){const n=this.previous[e];return n??void 0}}set(e,n,o){return e!=null&&(typeof e=="object"?this.mutate(e,n):this.mutate({[e]:n},o)),this}remove(e,n){const r={};let s;if(typeof e=="string")r[e]=void 0,s=n;else if(Array.isArray(e))e.forEach(i=>r[i]=void 0),s=n;else{for(const i in this.data)r[i]=void 0;s=e}return this.mutate(r,Object.assign(Object.assign({},s),{unset:!0})),this}getByPath(e){return Uy(this.data,e,"/")}setByPath(e,n,o={}){const r="/",s=Array.isArray(e)?[...e]:e.split(r),i=Array.isArray(e)?e.join(r):e,l=s[0],a=s.length;if(o.propertyPath=i,o.propertyValue=n,o.propertyPathArray=s,a===1)this.set(l,n,o);else{const u={};let c=u,d=l;for(let p=1;p0:e in this.changed}getChanges(e){if(e==null)return this.hasChanged()?dn(this.changed):null;const n=this.changing?this.previous:this.data,o={};let r;for(const s in e){const i=e[s];Eo(n[s],i)||(o[s]=i,r=!0)}return r?dn(o):null}toJSON(){return dn(this.data)}clone(){const e=this.constructor;return new e(this.data)}dispose(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}Ace([ar.dispose()],$N.prototype,"dispose",null);class Jd{constructor(e){this.cell=e,this.ids={},this.cache={}}get(){return Object.keys(this.ids)}start(e,n,o={},r="/"){const s=this.cell.getPropByPath(e),i=uF(o,Jd.defaultOptions),l=this.getTiming(i.timing),a=this.getInterp(i.interp,s,n);let u=0;const c=Array.isArray(e)?e.join(r):e,d=Array.isArray(e)?e:e.split(r),f=()=>{const h=new Date().getTime();u===0&&(u=h);let g=(h-u)/i.duration;g<1?this.ids[c]=requestAnimationFrame(f):g=1;const v=a(l(g));this.cell.setPropByPath(d,v),o.progress&&o.progress(Object.assign({progress:g,currentValue:v},this.getArgs(c))),g===1&&(this.cell.notify("transition:complete",this.getArgs(c)),o.complete&&o.complete(this.getArgs(c)),this.cell.notify("transition:finish",this.getArgs(c)),o.finish&&o.finish(this.getArgs(c)),this.clean(c))};return setTimeout(()=>{this.stop(e,void 0,r),this.cache[c]={startValue:s,targetValue:n,options:i},this.ids[c]=requestAnimationFrame(f),this.cell.notify("transition:start",this.getArgs(c)),o.start&&o.start(this.getArgs(c))},o.delay),this.stop.bind(this,e,r,o)}stop(e,n={},o="/"){const r=Array.isArray(e)?e:e.split(o);return Object.keys(this.ids).filter(s=>Eo(r,s.split(o).slice(0,r.length))).forEach(s=>{cancelAnimationFrame(this.ids[s]);const i=this.cache[s],l=this.getArgs(s),a=Object.assign(Object.assign({},i.options),n),u=a.jumpedToEnd;u&&i.targetValue!=null&&(this.cell.setPropByPath(s,i.targetValue),this.cell.notify("transition:end",Object.assign({},l)),this.cell.notify("transition:complete",Object.assign({},l)),a.complete&&a.complete(Object.assign({},l)));const c=Object.assign({jumpedToEnd:u},l);this.cell.notify("transition:stop",Object.assign({},c)),a.stop&&a.stop(Object.assign({},c)),this.cell.notify("transition:finish",Object.assign({},l)),a.finish&&a.finish(Object.assign({},l)),this.clean(s)}),this}clean(e){delete this.ids[e],delete this.cache[e]}getTiming(e){return typeof e=="string"?xa[e]:e}getInterp(e,n,o){return e?e(n,o):typeof o=="number"?Ql.number(n,o):typeof o=="string"?o[0]==="#"?Ql.color(n,o):Ql.unit(n,o):Ql.object(n,o)}getArgs(e){const n=this.cache[e];return{path:e,startValue:n.startValue,targetValue:n.targetValue,cell:this.cell}}}(function(t){t.defaultOptions={delay:10,duration:100,timing:"linear"}})(Jd||(Jd={}));var Pce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},DN=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{typeof i=="function"&&this.propHooks.push(i)})),r&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),r)),this.defaults=pn({},this.defaults,s)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:dn(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,n){return this.propHooks.reduce((o,r)=>r?vt(r,e,o):o,n)}get[Symbol.toStringTag](){return Pt.toStringTag}constructor(e={}){super();const o=this.constructor.getDefaults(!0),r=pn({},this.preprocess(o),this.preprocess(e));this.id=r.id||xp(),this.store=new $N(r),this.animation=new Jd(this),this.setup(),this.init(),this.postprocess(e)}init(){}get model(){return this._model}set model(e){this._model!==e&&(this._model=e)}preprocess(e,n){const o=e.id,s=this.constructor.applyPropHooks(this,e);return o==null&&n!==!0&&(s.id=xp()),s}postprocess(e){}setup(){this.store.on("change:*",e=>{const{key:n,current:o,previous:r,options:s}=e;this.notify("change:*",{key:n,options:s,current:o,previous:r,cell:this}),this.notify(`change:${n}`,{options:s,current:o,previous:r,cell:this});const i=n;(i==="source"||i==="target")&&this.notify("change:terminal",{type:i,current:o,previous:r,options:s,cell:this})}),this.store.on("changed",({options:e})=>this.notify("changed",{options:e,cell:this}))}notify(e,n){this.trigger(e,n);const o=this.model;return o&&(o.notify(`cell:${e}`,n),this.isNode()?o.notify(`node:${e}`,Object.assign(Object.assign({},n),{node:this})):this.isEdge()&&o.notify(`edge:${e}`,Object.assign(Object.assign({},n),{edge:this}))),this}isNode(){return!1}isEdge(){return!1}isSameStore(e){return this.store===e.store}get view(){return this.store.get("view")}get shape(){return this.store.get("shape","")}getProp(e,n){return e==null?this.store.get():this.store.get(e,n)}setProp(e,n,o){if(typeof e=="string")this.store.set(e,n,o);else{const r=this.preprocess(e,!0);this.store.set(pn({},this.getProp(),r),n),this.postprocess(e)}return this}removeProp(e,n){return typeof e=="string"||Array.isArray(e)?this.store.removeByPath(e,n):this.store.remove(n),this}hasChanged(e){return e==null?this.store.hasChanged():this.store.hasChanged(e)}getPropByPath(e){return this.store.getByPath(e)}setPropByPath(e,n,o={}){return this.model&&(e==="children"?this._children=n?n.map(r=>this.model.getCell(r)).filter(r=>r!=null):null:e==="parent"&&(this._parent=n?this.model.getCell(n):null)),this.store.setByPath(e,n,o),this}removePropByPath(e,n={}){const o=Array.isArray(e)?e:e.split("/");return o[0]==="attrs"&&(n.dirty=!0),this.store.removeByPath(o,n),this}prop(e,n,o){return e==null?this.getProp():typeof e=="string"||Array.isArray(e)?arguments.length===1?this.getPropByPath(e):n==null?this.removePropByPath(e,o||{}):this.setPropByPath(e,n,o||{}):this.setProp(e,n||{})}previous(e){return this.store.getPrevious(e)}get zIndex(){return this.getZIndex()}set zIndex(e){e==null?this.removeZIndex():this.setZIndex(e)}getZIndex(){return this.store.get("zIndex")}setZIndex(e,n={}){return this.store.set("zIndex",e,n),this}removeZIndex(e={}){return this.store.remove("zIndex",e),this}toFront(e={}){const n=this.model;if(n){let o=n.getMaxZIndex(),r;e.deep?(r=this.getDescendants({deep:!0,breadthFirst:!0}),r.unshift(this)):r=[this],o=o-r.length+1;const s=n.total();let i=n.indexOf(this)!==s-r.length;i||(i=r.some((l,a)=>l.getZIndex()!==o+a)),i&&this.batchUpdate("to-front",()=>{o+=r.length,r.forEach((l,a)=>{l.setZIndex(o+a,e)})})}return this}toBack(e={}){const n=this.model;if(n){let o=n.getMinZIndex(),r;e.deep?(r=this.getDescendants({deep:!0,breadthFirst:!0}),r.unshift(this)):r=[this];let s=n.indexOf(this)!==0;s||(s=r.some((i,l)=>i.getZIndex()!==o+l)),s&&this.batchUpdate("to-back",()=>{o-=r.length,r.forEach((i,l)=>{i.setZIndex(o+l,e)})})}return this}get markup(){return this.getMarkup()}set markup(e){e==null?this.removeMarkup():this.setMarkup(e)}getMarkup(){let e=this.store.get("markup");return e==null&&(e=this.constructor.getMarkup()),e}setMarkup(e,n={}){return this.store.set("markup",e,n),this}removeMarkup(e={}){return this.store.remove("markup",e),this}get attrs(){return this.getAttrs()}set attrs(e){e==null?this.removeAttrs():this.setAttrs(e)}getAttrs(){const e=this.store.get("attrs");return e?Object.assign({},e):{}}setAttrs(e,n={}){if(e==null)this.removeAttrs(n);else{const o=r=>this.store.set("attrs",r,n);if(n.overwrite===!0)o(e);else{const r=this.getAttrs();n.deep===!1?o(Object.assign(Object.assign({},r),e)):o(pn({},r,e))}}return this}replaceAttrs(e,n={}){return this.setAttrs(e,Object.assign(Object.assign({},n),{overwrite:!0}))}updateAttrs(e,n={}){return this.setAttrs(e,Object.assign(Object.assign({},n),{deep:!1}))}removeAttrs(e={}){return this.store.remove("attrs",e),this}getAttrDefinition(e){if(!e)return null;const o=this.constructor.getAttrHooks()||{};let r=o[e]||Ns.registry.get(e);if(!r){const s=cg(e);r=o[s]||Ns.registry.get(s)}return r||null}getAttrByPath(e){return e==null||e===""?this.getAttrs():this.getPropByPath(this.prefixAttrPath(e))}setAttrByPath(e,n,o={}){return this.setPropByPath(this.prefixAttrPath(e),n,o),this}removeAttrByPath(e,n={}){return this.removePropByPath(this.prefixAttrPath(e),n),this}prefixAttrPath(e){return Array.isArray(e)?["attrs"].concat(e):`attrs/${e}`}attr(e,n,o){return e==null?this.getAttrByPath():typeof e=="string"||Array.isArray(e)?arguments.length===1?this.getAttrByPath(e):n==null?this.removeAttrByPath(e,o||{}):this.setAttrByPath(e,n,o||{}):this.setAttrs(e,n||{})}get visible(){return this.isVisible()}set visible(e){this.setVisible(e)}setVisible(e,n={}){return this.store.set("visible",e,n),this}isVisible(){return this.store.get("visible")!==!1}show(e={}){return this.isVisible()||this.setVisible(!0,e),this}hide(e={}){return this.isVisible()&&this.setVisible(!1,e),this}toggleVisible(e,n={}){const o=typeof e=="boolean"?e:!this.isVisible(),r=typeof e=="boolean"?n:e;return o?this.show(r):this.hide(r),this}get data(){return this.getData()}set data(e){this.setData(e)}getData(){return this.store.get("data")}setData(e,n={}){if(e==null)this.removeData(n);else{const o=r=>this.store.set("data",r,n);if(n.overwrite===!0)o(e);else{const r=this.getData();n.deep===!1?o(typeof e=="object"?Object.assign(Object.assign({},r),e):e):o(pn({},r,e))}}return this}replaceData(e,n={}){return this.setData(e,Object.assign(Object.assign({},n),{overwrite:!0}))}updateData(e,n={}){return this.setData(e,Object.assign(Object.assign({},n),{deep:!1}))}removeData(e={}){return this.store.remove("data",e),this}get parent(){return this.getParent()}get children(){return this.getChildren()}getParentId(){return this.store.get("parent")}getParent(){const e=this.getParentId();if(e&&this.model){const n=this.model.getCell(e);return this._parent=n,n}return null}getChildren(){const e=this.store.get("children");if(e&&e.length&&this.model){const n=e.map(o=>{var r;return(r=this.model)===null||r===void 0?void 0:r.getCell(o)}).filter(o=>o!=null);return this._children=n,[...n]}return null}hasParent(){return this.parent!=null}isParentOf(e){return e!=null&&e.getParent()===this}isChildOf(e){return e!=null&&this.getParent()===e}eachChild(e,n){return this.children&&this.children.forEach(e,n),this}filterChild(e,n){return this.children?this.children.filter(e,n):[]}getChildCount(){return this.children==null?0:this.children.length}getChildIndex(e){return this.children==null?-1:this.children.indexOf(e)}getChildAt(e){return this.children!=null&&e>=0?this.children[e]:null}getAncestors(e={}){const n=[];let o=this.getParent();for(;o;)n.push(o),o=e.deep!==!1?o.getParent():null;return n}getDescendants(e={}){if(e.deep!==!1){if(e.breadthFirst){const n=[],o=this.getChildren()||[];for(;o.length>0;){const r=o.shift(),s=r.getChildren();n.push(r),s&&o.push(...s)}return n}{const n=this.getChildren()||[];return n.forEach(o=>{n.push(...o.getDescendants(e))}),n}}return this.getChildren()||[]}isDescendantOf(e,n={}){if(e==null)return!1;if(n.deep!==!1){let o=this.getParent();for(;o;){if(o===e)return!0;o=o.getParent()}return!1}return this.isChildOf(e)}isAncestorOf(e,n={}){return e==null?!1:e.isDescendantOf(this,n)}contains(e){return this.isAncestorOf(e)}getCommonAncestor(...e){return Pt.getCommonAncestor(this,...e)}setParent(e,n={}){return this._parent=e,e?this.store.set("parent",e.id,n):this.store.remove("parent",n),this}setChildren(e,n={}){return this._children=e,e!=null?this.store.set("children",e.map(o=>o.id),n):this.store.remove("children",n),this}unembed(e,n={}){const o=this.children;if(o!=null&&e!=null){const r=this.getChildIndex(e);r!==-1&&(o.splice(r,1),e.setParent(null,n),this.setChildren(o,n))}return this}embed(e,n={}){return e.addTo(this,n),this}addTo(e,n={}){return Pt.isCell(e)?e.addChild(this,n):e.addCell(this,n),this}insertTo(e,n,o={}){return e.insertChild(this,n,o),this}addChild(e,n={}){return this.insertChild(e,void 0,n)}insertChild(e,n,o={}){if(e!=null&&e!==this){const r=e.getParent(),s=this!==r;let i=n;if(i==null&&(i=this.getChildCount(),s||(i-=1)),r){const a=r.getChildren();if(a){const u=a.indexOf(e);u>=0&&(e.setParent(null,o),a.splice(u,1),r.setChildren(a,o))}}let l=this.children;if(l==null?(l=[],l.push(e)):l.splice(i,0,e),e.setParent(this,o),this.setChildren(l,o),s&&this.model){const a=this.model.getIncomingEdges(this),u=this.model.getOutgoingEdges(this);a&&a.forEach(c=>c.updateParent(o)),u&&u.forEach(c=>c.updateParent(o))}this.model&&this.model.addCell(e,o)}return this}removeFromParent(e={}){const n=this.getParent();if(n!=null){const o=n.getChildIndex(this);n.removeChildAt(o,e)}return this}removeChild(e,n={}){const o=this.getChildIndex(e);return this.removeChildAt(o,n)}removeChildAt(e,n={}){const o=this.getChildAt(e);return this.children!=null&&o!=null&&(this.unembed(o,n),o.remove(n)),o}remove(e={}){return this.batchUpdate("remove",()=>{const n=this.getParent();n&&n.removeChild(this,e),e.deep!==!1&&this.eachChild(o=>o.remove(e)),this.model&&this.model.removeCell(this,e)}),this}transition(e,n,o={},r="/"){return this.animation.start(e,n,o,r)}stopTransition(e,n,o="/"){return this.animation.stop(e,n,o),this}getTransitions(){return this.animation.get()}translate(e,n,o){return this}scale(e,n,o,r){return this}addTools(e,n,o){const r=Array.isArray(e)?e:[e],s=typeof n=="string"?n:null,i=typeof n=="object"?n:typeof o=="object"?o:{};if(i.reset)return this.setTools({name:s,items:r,local:i.local},i);let l=dn(this.getTools());if(l==null||s==null||l.name===s)return l==null&&(l={}),l.items||(l.items=[]),l.name=s,l.items=[...l.items,...r],this.setTools(Object.assign({},l),i)}setTools(e,n={}){return e==null?this.removeTools():this.store.set("tools",Pt.normalizeTools(e),n),this}getTools(){return this.store.get("tools")}removeTools(e={}){return this.store.remove("tools",e),this}hasTools(e){const n=this.getTools();return n==null?!1:e==null?!0:n.name===e}hasTool(e){const n=this.getTools();return n==null?!1:n.items.some(o=>typeof o=="string"?o===e:o.name===e)}removeTool(e,n={}){const o=dn(this.getTools());if(o){let r=!1;const s=o.items.slice(),i=l=>{s.splice(l,1),r=!0};if(typeof e=="number")i(e);else for(let l=s.length-1;l>=0;l-=1){const a=s[l];(typeof a=="string"?a===e:a.name===e)&&i(l)}r&&(o.items=s,this.setTools(o,n))}return this}getBBox(e){return new ze}getConnectionPoint(e,n){return new X}toJSON(e={}){const n=Object.assign({},this.store.get()),o=Object.prototype.toString,r=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!n.shape){const p=this.constructor;throw new Error(`Unable to serialize ${r} missing "shape" prop, check the ${r} "${p.name||o.call(p)}"`)}const s=this.constructor,i=e.diff===!0,l=n.attrs||{},a=s.getDefaults(!0),u=i?this.preprocess(a,!0):a,c=u.attrs||{},d={};Object.entries(n).forEach(([p,g])=>{if(g!=null&&!Array.isArray(g)&&typeof g=="object"&&!$s(g))throw new Error(`Can only serialize ${r} with plain-object props, but got a "${o.call(g)}" type of key "${p}" on ${r} "${this.id}"`);if(p!=="attrs"&&p!=="shape"&&i){const v=u[p];Eo(g,v)&&delete n[p]}}),Object.keys(l).forEach(p=>{const g=l[p],v=c[p];Object.keys(g).forEach(m=>{const C=g[m],y=v?v[m]:null;C!=null&&typeof C=="object"&&!Array.isArray(C)?Object.keys(C).forEach(b=>{const S=C[b];if(v==null||y==null||!bn(y)||!Eo(y[b],S)){d[p]==null&&(d[p]={}),d[p][m]==null&&(d[p][m]={});const T=d[p][m];T[b]=S}}):(v==null||!Eo(y,C))&&(d[p]==null&&(d[p]={}),d[p][m]=C)})});const f=Object.assign(Object.assign({},n),{attrs:lk(d)?void 0:d});f.attrs==null&&delete f.attrs;const h=f;return h.angle===0&&delete h.angle,dn(h)}clone(e={}){if(!e.deep){const o=Object.assign({},this.store.get());e.keepId||delete o.id,delete o.parent,delete o.children;const r=this.constructor;return new r(o)}return Pt.deepClone(this)[this.id]}findView(e){return e.findViewByCell(this)}startBatch(e,n={},o=this.model){return this.notify("batch:start",{name:e,data:n,cell:this}),o&&o.startBatch(e,Object.assign(Object.assign({},n),{cell:this})),this}stopBatch(e,n={},o=this.model){return o&&o.stopBatch(e,Object.assign(Object.assign({},n),{cell:this})),this.notify("batch:stop",{name:e,data:n,cell:this}),this}batchUpdate(e,n,o){const r=this.model;this.startBatch(e,o,r);const s=n();return this.stopBatch(e,o,r),s}dispose(){this.removeFromParent(),this.store.dispose()}}Pt.defaults={};Pt.attrHooks={};Pt.propHooks=[];Pce([ar.dispose()],Pt.prototype,"dispose",null);(function(t){function e(n){return typeof n=="string"?{items:[n]}:Array.isArray(n)?{items:n}:n.items?n:{items:[n]}}t.normalizeTools=e})(Pt||(Pt={}));(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&typeof r.isNode=="function"&&typeof r.isEdge=="function"&&typeof r.prop=="function"&&typeof r.attr=="function"}t.isCell=e})(Pt||(Pt={}));(function(t){function e(...s){const i=s.filter(a=>a!=null).map(a=>a.getAncestors()).sort((a,u)=>a.length-u.length);return i.shift().find(a=>i.every(u=>u.includes(a)))||null}t.getCommonAncestor=e;function n(s,i={}){let l=null;for(let a=0,u=s.length;a(a[u.id]=u.clone(),a),{});return i.forEach(a=>{const u=l[a.id];if(u.isEdge()){const f=u.getSourceCellId(),h=u.getTargetCellId();f&&l[f]&&u.setSource(Object.assign(Object.assign({},u.getSource()),{cell:l[f].id})),h&&l[h]&&u.setTarget(Object.assign(Object.assign({},u.getTarget()),{cell:l[h].id}))}const c=a.getParent();c&&l[c.id]&&u.setParent(l[c.id]);const d=a.getChildren();if(d&&d.length){const f=d.reduce((h,p)=>(l[p.id]&&h.push(l[p.id]),h),[]);f.length>0&&u.setChildren(f)}}),l}t.cloneCells=r})(Pt||(Pt={}));(function(t){t.config({propHooks(e){var{tools:n}=e,o=DN(e,["tools"]);return n&&(o.tools=t.normalizeTools(n)),o}})})(Pt||(Pt={}));var Xu;(function(t){let e,n;function o(i,l){return l?e!=null&&e.exist(i):n!=null&&n.exist(i)}t.exist=o;function r(i){e=i}t.setEdgeRegistry=r;function s(i){n=i}t.setNodeRegistry=s})(Xu||(Xu={}));class Nce{constructor(e){this.ports=[],this.groups={},this.init(dn(e))}getPorts(){return this.ports}getGroup(e){return e!=null?this.groups[e]:null}getPortsByGroup(e){return this.ports.filter(n=>n.group===e||n.group==null&&e==null)}getPortsLayoutByGroup(e,n){const o=this.getPortsByGroup(e),r=e?this.getGroup(e):null,s=r?r.position:null,i=s?s.name:null;let l;if(i!=null){const d=ua.registry.get(i);if(d==null)return ua.registry.onNotFound(i);l=d}else l=ua.presets.left;const a=o.map(d=>d&&d.position&&d.position.args||{}),u=s&&s.args||{};return l(a,n,u).map((d,f)=>{const h=o[f];return{portLayout:d,portId:h.id,portSize:h.size,portAttrs:h.attrs,labelSize:h.label.size,labelLayout:this.getPortLabelLayout(h,X.create(d.position),n)}})}init(e){const{groups:n,items:o}=e;n!=null&&Object.keys(n).forEach(r=>{this.groups[r]=this.parseGroup(n[r])}),Array.isArray(o)&&o.forEach(r=>{this.ports.push(this.parsePort(r))})}parseGroup(e){return Object.assign(Object.assign({},e),{label:this.getLabel(e,!0),position:this.getPortPosition(e.position,!0)})}parsePort(e){const n=Object.assign({},e),o=this.getGroup(e.group)||{};return n.markup=n.markup||o.markup,n.attrs=pn({},o.attrs,n.attrs),n.position=this.createPosition(o,n),n.label=pn({},o.label,this.getLabel(n)),n.zIndex=this.getZIndex(o,n),n.size=Object.assign(Object.assign({},o.size),n.size),n}getZIndex(e,n){return typeof n.zIndex=="number"?n.zIndex:typeof e.zIndex=="number"||e.zIndex==="auto"?e.zIndex:"auto"}createPosition(e,n){return pn({name:"left",args:{}},e.position,{args:n.args})}getPortPosition(e,n=!1){if(e==null){if(n)return{name:"left",args:{}}}else{if(typeof e=="string")return{name:e,args:{}};if(Array.isArray(e))return{name:"absolute",args:{x:e[0],y:e[1]}};if(typeof e=="object")return e}return{args:{}}}getPortLabelPosition(e,n=!1){if(e==null){if(n)return{name:"left",args:{}}}else{if(typeof e=="string")return{name:e,args:{}};if(typeof e=="object")return e}return{args:{}}}getLabel(e,n=!1){const o=e.label||{};return o.position=this.getPortLabelPosition(o.position,n),o}getPortLabelLayout(e,n,o){const r=e.label.position.name||"left",s=e.label.position.args||{},i=Uu.registry.get(r)||Uu.presets.left;return i?i(n,o,s):null}}var Yg=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{var l;((l=o.exclude)===null||l===void 0?void 0:l.includes(i))||i.translate(e,n,o)})):(this.startBatch("translate",o),this.store.set("position",s,o),this.eachChild(i=>{var l;((l=o.exclude)===null||l===void 0?void 0:l.includes(i))||i.translate(e,n,o)}),this.stopBatch("translate",o)),this}angle(e,n){return e==null?this.getAngle():this.rotate(e,n)}getAngle(){return this.store.get("angle",0)}rotate(e,n={}){const o=this.getAngle();if(n.center){const r=this.getSize(),s=this.getPosition(),i=this.getBBox().getCenter();i.rotate(o-e,n.center);const l=i.x-r.width/2-s.x,a=i.y-r.height/2-s.y;this.startBatch("rotate",{angle:e,options:n}),this.setPosition(s.x+l,s.y+a,n),this.rotate(e,Object.assign(Object.assign({},n),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",n.absolute?e:(o+e)%360,n);return this}getBBox(e={}){if(e.deep){const n=this.getDescendants({deep:!0,breadthFirst:!0});return n.push(this),Pt.getCellsBBox(n)}return ze.fromPositionAndSize(this.getPosition(),this.getSize())}getConnectionPoint(e,n){const o=this.getBBox(),r=o.getCenter(),s=e.getTerminal(n);if(s==null)return r;const i=s.port;if(!i||!this.hasPort(i))return r;const l=this.getPort(i);if(!l||!l.group)return r;const u=this.getPortsPosition(l.group)[i].position,c=X.create(u).translate(o.getOrigin()),d=this.getAngle();return d&&c.rotate(-d,r),c}fit(e={}){const o=(this.getChildren()||[]).filter(u=>u.isNode());if(o.length===0)return this;this.startBatch("fit-embeds",e),e.deep&&o.forEach(u=>u.fit(e));let{x:r,y:s,width:i,height:l}=Pt.getCellsBBox(o);const a=wa(e.padding);return r-=a.left,s-=a.top,i+=a.left+a.right,l+=a.bottom+a.top,this.store.set({position:{x:r,y:s},size:{width:i,height:l}},e),this.stopBatch("fit-embeds"),this}get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(e){this.setPortContainerMarkup(e)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||nn.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,n={}){return this.store.set("portContainerMarkup",nn.clone(e),n),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||nn.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,n={}){return this.store.set("portMarkup",nn.clone(e),n),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||nn.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,n={}){return this.store.set("portLabelMarkup",nn.clone(e),n),this}get ports(){const e=this.store.get("ports",{items:[]});return e.items==null&&(e.items=[]),e}getPorts(){return dn(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter(n=>n.group===e)}getPort(e){return dn(this.ports.items.find(n=>n.id&&n.id===e))}getPortAt(e){return this.ports.items[e]||null}hasPorts(){return this.ports.items.length>0}hasPort(e){return this.getPortIndex(e)!==-1}getPortIndex(e){const n=typeof e=="string"?e:e.id;return n!=null?this.ports.items.findIndex(o=>o.id===n):-1}getPortsPosition(e){const n=this.getSize();return this.port.getPortsLayoutByGroup(e,new ze(0,0,n.width,n.height)).reduce((r,s)=>{const i=s.portLayout;return r[s.portId]={position:Object.assign({},i.position),angle:i.angle||0},r},{})}getPortProp(e,n){return this.getPropByPath(this.prefixPortPath(e,n))}setPortProp(e,n,o,r){if(typeof n=="string"||Array.isArray(n)){const l=this.prefixPortPath(e,n),a=o;return this.setPropByPath(l,a,r)}const s=this.prefixPortPath(e),i=n;return this.setPropByPath(s,i,o)}removePortProp(e,n,o){return typeof n=="string"||Array.isArray(n)?this.removePropByPath(this.prefixPortPath(e,n),o):this.removePropByPath(this.prefixPortPath(e),n)}portProp(e,n,o,r){return n==null?this.getPortProp(e):typeof n=="string"||Array.isArray(n)?arguments.length===2?this.getPortProp(e,n):o==null?this.removePortProp(e,n,r):this.setPortProp(e,n,o,r):this.setPortProp(e,n,o)}prefixPortPath(e,n){const o=this.getPortIndex(e);if(o===-1)throw new Error(`Unable to find port with id: "${e}"`);return n==null||n===""?["ports","items",`${o}`]:Array.isArray(n)?["ports","items",`${o}`,...n]:`ports/items/${o}/${n}`}addPort(e,n){const o=[...this.ports.items];return o.push(e),this.setPropByPath("ports/items",o,n),this}addPorts(e,n){return this.setPropByPath("ports/items",[...this.ports.items,...e],n),this}insertPort(e,n,o){const r=[...this.ports.items];return r.splice(e,0,n),this.setPropByPath("ports/items",r,o),this}removePort(e,n={}){return this.removePortAt(this.getPortIndex(e),n)}removePortAt(e,n={}){if(e>=0){const o=[...this.ports.items];o.splice(e,1),n.rewrite=!0,this.setPropByPath("ports/items",o,n)}return this}removePorts(e,n){let o;if(Array.isArray(e)){if(o=n||{},e.length){o.rewrite=!0;const s=[...this.ports.items].filter(i=>!e.some(l=>{const a=typeof l=="string"?l:l.id;return i.id===a}));this.setPropByPath("ports/items",s,o)}}else o=e||{},o.rewrite=!0,this.setPropByPath("ports/items",[],o);return this}getParsedPorts(){return this.port.getPorts()}getParsedGroups(){return this.port.groups}getPortsLayoutByGroup(e,n){return this.port.getPortsLayoutByGroup(e,n)}initPorts(){this.updatePortData(),this.on("change:ports",()=>{this.processRemovedPort(),this.updatePortData()})}processRemovedPort(){const e=this.ports,n={};e.items.forEach(i=>{i.id&&(n[i.id]=!0)});const o={};(this.store.getPrevious("ports")||{items:[]}).items.forEach(i=>{i.id&&!n[i.id]&&(o[i.id]=!0)});const s=this.model;s&&!lk(o)&&(s.getConnectedEdges(this,{incoming:!0}).forEach(a=>{const u=a.getTargetPortId();u&&o[u]&&a.remove()}),s.getConnectedEdges(this,{outgoing:!0}).forEach(a=>{const u=a.getSourcePortId();u&&o[u]&&a.remove()}))}validatePorts(){const e={},n=[];return this.ports.items.forEach(o=>{typeof o!="object"&&n.push(`Invalid port ${o}.`),o.id==null&&(o.id=this.generatePortId()),e[o.id]&&n.push("Duplicitied port id."),e[o.id]=!0}),n}generatePortId(){return xp()}updatePortData(){const e=this.validatePorts();if(e.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(e.join(" "));const n=this.port?this.port.getPorts():null;this.port=new Nce(this.ports);const o=this.port.getPorts(),r=n?o.filter(i=>n.find(l=>l.id===i.id)?null:i):[...o],s=n?n.filter(i=>o.find(l=>l.id===i.id)?null:i):[];r.length>0&&this.notify("ports:added",{added:r,cell:this,node:this}),s.length>0&&this.notify("ports:removed",{removed:s,cell:this,node:this})}};_n.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}};(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&typeof r.isNode=="function"&&typeof r.isEdge=="function"&&typeof r.prop=="function"&&typeof r.attr=="function"&&typeof r.size=="function"&&typeof r.position=="function"}t.isNode=e})(_n||(_n={}));(function(t){t.config({propHooks(e){var{ports:n}=e,o=Yg(e,["ports"]);return n&&(o.ports=Array.isArray(n)?{items:n}:n),o}})})(_n||(_n={}));(function(t){t.registry=Mn.create({type:"node",process(e,n){if(Xu.exist(e,!0))throw new Error(`Node with name '${e}' was registered by anthor Edge`);if(typeof n=="function")return n.config({shape:e}),n;let o=t;const{inherit:r}=n,s=Yg(n,["inherit"]);if(r)if(typeof r=="string"){const l=this.get(r);l==null?this.onNotFound(r,"inherited"):o=l}else o=r;s.constructorName==null&&(s.constructorName=e);const i=o.define.call(o,s);return i.config({shape:e}),i}}),Xu.setNodeRegistry(t.registry)})(_n||(_n={}));(function(t){let e=0;function n(s){return s?Wy(s):(e+=1,`CustomNode${e}`)}function o(s){const{constructorName:i,overwrite:l}=s,a=Yg(s,["constructorName","overwrite"]),u=Hy(n(i||a.shape),this);return u.config(a),a.shape&&t.registry.register(a.shape,u,l),u}t.define=o;function r(s){const i=s.shape||"rect",l=t.registry.get(i);return l?new l(s):t.registry.onNotFound(i)}t.create=r})(_n||(_n={}));var Xg=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);rtypeof p=="string"||typeof p=="number";if(o!=null)if(Pt.isCell(o))f.source={cell:o.id};else if(h(o))f.source={cell:o};else if(X.isPoint(o))f.source=o.toJSON();else if(Array.isArray(o))f.source={x:o[0],y:o[1]};else{const p=o.cell;Pt.isCell(p)?f.source=Object.assign(Object.assign({},o),{cell:p.id}):f.source=o}if(r!=null||s!=null){let p=f.source;if(r!=null){const g=h(r)?r:r.id;p?p.cell=g:p=f.source={cell:g}}s!=null&&p&&(p.port=s)}else i!=null&&(f.source=X.create(i).toJSON());if(l!=null)if(Pt.isCell(l))f.target={cell:l.id};else if(h(l))f.target={cell:l};else if(X.isPoint(l))f.target=l.toJSON();else if(Array.isArray(l))f.target={x:l[0],y:l[1]};else{const p=l.cell;Pt.isCell(p)?f.target=Object.assign(Object.assign({},l),{cell:p.id}):f.target=l}if(a!=null||u!=null){let p=f.target;if(a!=null){const g=h(a)?a:a.id;p?p.cell=g:p=f.target={cell:g}}u!=null&&p&&(p.port=u)}else c!=null&&(f.target=X.create(c).toJSON());return super.preprocess(f,n)}setup(){super.setup(),this.on("change:labels",e=>this.onLabelsChanged(e)),this.on("change:vertices",e=>this.onVertexsChanged(e))}isEdge(){return!0}disconnect(e={}){return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},e),this}get source(){return this.getSource()}set source(e){this.setSource(e)}getSource(){return this.getTerminal("source")}getSourceCellId(){return this.source.cell}getSourcePortId(){return this.source.port}setSource(e,n,o={}){return this.setTerminal("source",e,n,o)}get target(){return this.getTarget()}set target(e){this.setTarget(e)}getTarget(){return this.getTerminal("target")}getTargetCellId(){return this.target.cell}getTargetPortId(){return this.target.port}setTarget(e,n,o={}){return this.setTerminal("target",e,n,o)}getTerminal(e){return Object.assign({},this.store.get(e))}setTerminal(e,n,o,r={}){if(Pt.isCell(n))return this.store.set(e,pn({},o,{cell:n.id}),r),this;const s=n;return X.isPoint(n)||s.x!=null&&s.y!=null?(this.store.set(e,pn({},o,{x:s.x,y:s.y}),r),this):(this.store.set(e,dn(n),r),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const n=this[e];if(X.isPointLike(n))return X.create(n);const o=this.getTerminalCell(e);return o?o.getConnectionPoint(this,e):new X}getSourceCell(){return this.getTerminalCell("source")}getTargetCell(){return this.getTerminalCell("target")}getTerminalCell(e){if(this.model){const n=e==="source"?this.getSourceCellId():this.getTargetCellId();if(n)return this.model.getCell(n)}return null}getSourceNode(){return this.getTerminalNode("source")}getTargetNode(){return this.getTerminalNode("target")}getTerminalNode(e){let n=this;const o={};for(;n&&n.isEdge();){if(o[n.id])return null;o[n.id]=!0,n=n.getTerminalCell(e)}return n&&n.isNode()?n:null}get router(){return this.getRouter()}set router(e){e==null?this.removeRouter():this.setRouter(e)}getRouter(){return this.store.get("router")}setRouter(e,n,o){return typeof e=="object"?this.store.set("router",e,n):this.store.set("router",{name:e,args:n},o),this}removeRouter(e={}){return this.store.remove("router",e),this}get connector(){return this.getConnector()}set connector(e){e==null?this.removeConnector():this.setConnector(e)}getConnector(){return this.store.get("connector")}setConnector(e,n,o){return typeof e=="object"?this.store.set("connector",e,n):this.store.set("connector",{name:e,args:n},o),this}removeConnector(e={}){return this.store.remove("connector",e)}getDefaultLabel(){const e=this.constructor,n=this.store.get("defaultLabel")||e.defaultLabel||{};return dn(n)}get labels(){return this.getLabels()}set labels(e){this.setLabels(e)}getLabels(){return[...this.store.get("labels",[])].map(e=>this.parseLabel(e))}setLabels(e,n={}){return this.store.set("labels",Array.isArray(e)?e:[e],n),this}insertLabel(e,n,o={}){const r=this.getLabels(),s=r.length;let i=n!=null&&Number.isFinite(n)?n:s;return i<0&&(i=s+i+1),r.splice(i,0,this.parseLabel(e)),this.setLabels(r,o)}appendLabel(e,n={}){return this.insertLabel(e,-1,n)}getLabelAt(e){const n=this.getLabels();return e!=null&&Number.isFinite(e)?this.parseLabel(n[e]):null}setLabelAt(e,n,o={}){if(e!=null&&Number.isFinite(e)){const r=this.getLabels();r[e]=this.parseLabel(n),this.setLabels(r,o)}return this}removeLabelAt(e,n={}){const o=this.getLabels(),r=e!=null&&Number.isFinite(e)?e:-1,s=o.splice(r,1);return this.setLabels(o,n),s.length?s[0]:null}parseLabel(e){return typeof e=="string"?this.constructor.parseStringLabel(e):e}onLabelsChanged({previous:e,current:n}){const o=e&&n?n.filter(s=>e.find(i=>s===i||Eo(s,i))?null:s):n?[...n]:[],r=e&&n?e.filter(s=>n.find(i=>s===i||Eo(s,i))?null:s):e?[...e]:[];o.length>0&&this.notify("labels:added",{added:o,cell:this,edge:this}),r.length>0&&this.notify("labels:removed",{removed:r,cell:this,edge:this})}get vertices(){return this.getVertices()}set vertices(e){this.setVertices(e)}getVertices(){return[...this.store.get("vertices",[])]}setVertices(e,n={}){const o=Array.isArray(e)?e:[e];return this.store.set("vertices",o.map(r=>X.toJSON(r)),n),this}insertVertex(e,n,o={}){const r=this.getVertices(),s=r.length;let i=n!=null&&Number.isFinite(n)?n:s;return i<0&&(i=s+i+1),r.splice(i,0,X.toJSON(e)),this.setVertices(r,o)}appendVertex(e,n={}){return this.insertVertex(e,-1,n)}getVertexAt(e){return e!=null&&Number.isFinite(e)?this.getVertices()[e]:null}setVertexAt(e,n,o={}){if(e!=null&&Number.isFinite(e)){const r=this.getVertices();r[e]=n,this.setVertices(r,o)}return this}removeVertexAt(e,n={}){const o=this.getVertices(),r=e!=null&&Number.isFinite(e)?e:-1;return o.splice(r,1),this.setVertices(o,n)}onVertexsChanged({previous:e,current:n}){const o=e&&n?n.filter(s=>e.find(i=>X.equals(s,i))?null:s):n?[...n]:[],r=e&&n?e.filter(s=>n.find(i=>X.equals(s,i))?null:s):e?[...e]:[];o.length>0&&this.notify("vertexs:added",{added:o,cell:this,edge:this}),r.length>0&&this.notify("vertexs:removed",{removed:r,cell:this,edge:this})}getDefaultMarkup(){return this.store.get("defaultMarkup")||nn.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}translate(e,n,o={}){return o.translateBy=o.translateBy||this.id,o.tx=e,o.ty=n,this.applyToPoints(r=>({x:(r.x||0)+e,y:(r.y||0)+n}),o)}scale(e,n,o,r={}){return this.applyToPoints(s=>X.create(s).scale(e,n,o).toJSON(),r)}applyToPoints(e,n={}){const o={},r=this.getSource(),s=this.getTarget();X.isPointLike(r)&&(o.source=e(r)),X.isPointLike(s)&&(o.target=e(s));const i=this.getVertices();return i.length>0&&(o.vertices=i.map(e)),this.store.set(o,n),this}getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const e=[this.getSourcePoint(),...this.getVertices().map(n=>X.create(n)),this.getTargetPoint()];return new Tn(e)}updateParent(e){let n=null;const o=this.getSourceCell(),r=this.getTargetCell(),s=this.getParent();return o&&r&&(o===r||o.isDescendantOf(r)?n=r:r.isDescendantOf(o)?n=o:n=Pt.getCommonAncestor(o,r)),s&&n&&n.id!==s.id&&s.unembed(this,e),n&&(!s||s.id!==n.id)&&n.embed(this,e),n}hasLoop(e={}){const n=this.getSource(),o=this.getTarget(),r=n.cell,s=o.cell;if(!r||!s)return!1;let i=r===s;if(!i&&e.deep&&this._model){const l=this.getSourceCell(),a=this.getTargetCell();l&&a&&(i=l.isAncestorOf(a,e)||a.isAncestorOf(l,e))}return i}getFragmentAncestor(){const e=[this,this.getSourceNode(),this.getTargetNode()].filter(n=>n!=null);return this.getCommonAncestor(...e)}isFragmentDescendantOf(e){const n=this.getFragmentAncestor();return!!n&&(n.id===e.id||n.isDescendantOf(e))}};wn.defaults={};(function(t){function e(n,o){const r=n,s=o;return r.cell===s.cell?r.port===s.port||r.port==null&&s.port==null:!1}t.equalTerminals=e})(wn||(wn={}));(function(t){t.defaultLabel={markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{text:{fill:"#000",fontSize:14,textAnchor:"middle",textVerticalAnchor:"middle",pointerEvents:"none"},rect:{ref:"label",fill:"#fff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}};function e(n){return{attrs:{label:{text:n}}}}t.parseStringLabel=e})(wn||(wn={}));(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&typeof r.isNode=="function"&&typeof r.isEdge=="function"&&typeof r.prop=="function"&&typeof r.attr=="function"&&typeof r.disconnect=="function"&&typeof r.getSource=="function"&&typeof r.getTarget=="function"}t.isEdge=e})(wn||(wn={}));(function(t){t.registry=Mn.create({type:"edge",process(e,n){if(Xu.exist(e,!1))throw new Error(`Edge with name '${e}' was registered by anthor Node`);if(typeof n=="function")return n.config({shape:e}),n;let o=t;const{inherit:r="edge"}=n,s=Xg(n,["inherit"]);if(typeof r=="string"){const l=this.get(r||"edge");l==null&&r?this.onNotFound(r,"inherited"):o=l}else o=r;s.constructorName==null&&(s.constructorName=e);const i=o.define.call(o,s);return i.config({shape:e}),i}}),Xu.setEdgeRegistry(t.registry)})(wn||(wn={}));(function(t){let e=0;function n(s){return s?Wy(s):(e+=1,`CustomEdge${e}`)}function o(s){const{constructorName:i,overwrite:l}=s,a=Xg(s,["constructorName","overwrite"]),u=Hy(n(i||a.shape),this);return u.config(a),a.shape&&t.registry.register(a.shape,u,l),u}t.define=o;function r(s){const i=s.shape||"edge",l=t.registry.get(i);return l?new l(s):t.registry.onNotFound(i)}t.create=r})(wn||(wn={}));(function(t){const e="basic.edge";t.config({shape:e,propHooks(n){const{label:o,vertices:r}=n,s=Xg(n,["label","vertices"]);if(o){s.labels==null&&(s.labels=[]);const i=typeof o=="string"?t.parseStringLabel(o):o;s.labels.push(i)}return r&&Array.isArray(r)&&(s.vertices=r.map(i=>X.create(i).toJSON())),s}}),t.registry.register(e,t)})(wn||(wn={}));var Ice=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class Zb extends ar{constructor(e,n={}){super(),this.length=0,this.comparator=n.comparator||"zIndex",this.clean(),e&&this.reset(e,{silent:!0})}toJSON(){return this.cells.map(e=>e.toJSON())}add(e,n,o){let r,s;typeof n=="number"?(r=n,s=Object.assign({merge:!1},o)):(r=this.length,s=Object.assign({merge:!1},n)),r>this.length&&(r=this.length),r<0&&(r+=this.length+1);const i=Array.isArray(e)?e:[e],l=this.comparator&&typeof n!="number"&&s.sort!==!1,a=this.comparator||null;let u=!1;const c=[],d=[];return i.forEach(f=>{const h=this.get(f);h?s.merge&&!f.isSameStore(h)&&(h.setProp(f.getProp(),o),d.push(h),l&&!u&&(a==null||typeof a=="function"?u=h.hasChanged():typeof a=="string"?u=h.hasChanged(a):u=a.some(p=>h.hasChanged(p)))):(c.push(f),this.reference(f))}),c.length&&(l&&(u=!0),this.cells.splice(r,0,...c),this.length=this.cells.length),u&&this.sort({silent:!0}),s.silent||(c.forEach((f,h)=>{const p={cell:f,index:r+h,options:s};this.trigger("added",p),s.dryrun||f.notify("added",Object.assign({},p))}),u&&this.trigger("sorted"),(c.length||d.length)&&this.trigger("updated",{added:c,merged:d,removed:[],options:s})),this}remove(e,n={}){const o=Array.isArray(e)?e:[e],r=this.removeCells(o,n);return!n.silent&&r.length>0&&this.trigger("updated",{options:n,removed:r,added:[],merged:[]}),Array.isArray(e)?r:r[0]}removeCells(e,n){const o=[];for(let r=0;rthis.unreference(r)),this.clean(),this.add(e,Object.assign({silent:!0},n)),!n.silent){const r=this.cells.slice();this.trigger("reseted",{options:n,previous:o,current:r});const s=[],i=[];r.forEach(l=>{o.some(u=>u.id===l.id)||s.push(l)}),o.forEach(l=>{r.some(u=>u.id===l.id)||i.push(l)}),this.trigger("updated",{options:n,added:s,removed:i,merged:[]})}return this}push(e,n){return this.add(e,this.length,n)}pop(e){const n=this.at(this.length-1);return this.remove(n,e)}unshift(e,n){return this.add(e,0,n)}shift(e){const n=this.at(0);return this.remove(n,e)}get(e){if(e==null)return null;const n=typeof e=="string"||typeof e=="number"?e:e.id;return this.map[n]||null}has(e){return this.get(e)!=null}at(e){return e<0&&(e+=this.length),this.cells[e]||null}first(){return this.at(0)}last(){return this.at(-1)}indexOf(e){return this.cells.indexOf(e)}toArray(){return this.cells.slice()}sort(e={}){return this.comparator!=null&&(this.cells=FF(this.cells,this.comparator),e.silent||this.trigger("sorted")),this}clone(){const e=this.constructor;return new e(this.cells.slice(),{comparator:this.comparator})}reference(e){this.map[e.id]=e,e.on("*",this.notifyCellEvent,this)}unreference(e){e.off("*",this.notifyCellEvent,this),delete this.map[e.id]}notifyCellEvent(e,n){const o=n.cell;this.trigger(`cell:${e}`,n),o&&(o.isNode()?this.trigger(`node:${e}`,Object.assign(Object.assign({},n),{node:o})):o.isEdge()&&this.trigger(`edge:${e}`,Object.assign(Object.assign({},n),{edge:o})))}clean(){this.length=0,this.cells=[],this.map={}}dispose(){this.reset([])}}Ice([Zb.dispose()],Zb.prototype,"dispose",null);var Lce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class Xr extends ar{get[Symbol.toStringTag](){return Xr.toStringTag}constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new Zb(e),this.setup()}notify(e,n){this.trigger(e,n);const o=this.graph;return o&&(e==="sorted"||e==="reseted"||e==="updated"?o.trigger(`model:${e}`,n):o.trigger(e,n)),this}setup(){const e=this.collection;e.on("sorted",()=>this.notify("sorted",null)),e.on("updated",n=>this.notify("updated",n)),e.on("cell:change:zIndex",()=>this.sortOnChangeZ()),e.on("added",({cell:n})=>{this.onCellAdded(n)}),e.on("removed",n=>{const o=n.cell;this.onCellRemoved(o,n.options),this.notify("cell:removed",n),o.isNode()?this.notify("node:removed",Object.assign(Object.assign({},n),{node:o})):o.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},n),{edge:o}))}),e.on("reseted",n=>{this.onReset(n.current),this.notify("reseted",n)}),e.on("edge:change:source",({edge:n})=>this.onEdgeTerminalChanged(n,"source")),e.on("edge:change:target",({edge:n})=>{this.onEdgeTerminalChanged(n,"target")})}sortOnChangeZ(){this.collection.sort()}onCellAdded(e){const n=e.id;e.isEdge()?(e.updateParent(),this.edges[n]=!0,this.onEdgeTerminalChanged(e,"source"),this.onEdgeTerminalChanged(e,"target")):this.nodes[n]=!0}onCellRemoved(e,n){const o=e.id;if(e.isEdge()){delete this.edges[o];const r=e.getSource(),s=e.getTarget();if(r&&r.cell){const i=this.outgoings[r.cell],l=i?i.indexOf(o):-1;l>=0&&(i.splice(l,1),i.length===0&&delete this.outgoings[r.cell])}if(s&&s.cell){const i=this.incomings[s.cell],l=i?i.indexOf(o):-1;l>=0&&(i.splice(l,1),i.length===0&&delete this.incomings[s.cell])}}else delete this.nodes[o];n.clear||(n.disconnectEdges?this.disconnectConnectedEdges(e,n):this.removeConnectedEdges(e,n)),e.model===this&&(e.model=null)}onReset(e){this.nodes={},this.edges={},this.outgoings={},this.incomings={},e.forEach(n=>this.onCellAdded(n))}onEdgeTerminalChanged(e,n){const o=n==="source"?this.outgoings:this.incomings,r=e.previous(n);if(r&&r.cell){const i=Pt.isCell(r.cell)?r.cell.id:r.cell,l=o[i],a=l?l.indexOf(e.id):-1;a>=0&&(l.splice(a,1),l.length===0&&delete o[i])}const s=e.getTerminal(n);if(s&&s.cell){const i=Pt.isCell(s.cell)?s.cell.id:s.cell,l=o[i]||[];l.indexOf(e.id)===-1&&l.push(e.id),o[i]=l}}prepareCell(e,n){return!e.model&&(!n||!n.dryrun)&&(e.model=this),e.zIndex==null&&e.setZIndex(this.getMaxZIndex()+1,{silent:!0}),e}resetCells(e,n={}){return e.map(o=>this.prepareCell(o,Object.assign(Object.assign({},n),{dryrun:!0}))),this.collection.reset(e,n),e.map(o=>this.prepareCell(o,{options:n})),this}clear(e={}){const n=this.getCells();if(n.length===0)return this;const o=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",()=>{const r=n.sort((s,i)=>{const l=s.isEdge()?1:2,a=i.isEdge()?1:2;return l-a});for(;r.length>0;){const s=r.shift();s&&s.remove(o)}},o),this}addNode(e,n={}){const o=_n.isNode(e)?e:this.createNode(e);return this.addCell(o,n),o}updateNode(e,n={}){const o=this.createNode(e),r=o.getProp();return o.dispose(),this.updateCell(r,n)}createNode(e){return _n.create(e)}addEdge(e,n={}){const o=wn.isEdge(e)?e:this.createEdge(e);return this.addCell(o,n),o}createEdge(e){return wn.create(e)}updateEdge(e,n={}){const o=this.createEdge(e),r=o.getProp();return o.dispose(),this.updateCell(r,n)}addCell(e,n={}){return Array.isArray(e)?this.addCells(e,n):(!this.collection.has(e)&&!this.addings.has(e)&&(this.addings.set(e,!0),this.collection.add(this.prepareCell(e,n),n),e.eachChild(o=>this.addCell(o,n)),this.addings.delete(e)),this)}addCells(e,n={}){const o=e.length;if(o===0)return this;const r=Object.assign(Object.assign({},n),{position:o-1,maxPosition:o-1});return this.startBatch("add",Object.assign(Object.assign({},r),{cells:e})),e.forEach(s=>{this.addCell(s,r),r.position-=1}),this.stopBatch("add",Object.assign(Object.assign({},r),{cells:e})),this}updateCell(e,n={}){const o=e.id&&this.getCell(e.id);return o?this.batchUpdate("update",()=>(Object.entries(e).forEach(([r,s])=>o.setProp(r,s,n)),!0),e):!1}removeCell(e,n={}){const o=typeof e=="string"?this.getCell(e):e;return o&&this.has(o)?this.collection.remove(o,n):null}updateCellId(e,n){if(e.id===n)return;this.startBatch("update",{id:n}),e.prop("id",n);const o=e.clone({keepId:!0});return this.addCell(o),this.getConnectedEdges(e).forEach(s=>{const i=s.getSourceCell(),l=s.getTargetCell();i===e&&s.setSource(Object.assign(Object.assign({},s.getSource()),{cell:n})),l===e&&s.setTarget(Object.assign(Object.assign({},s.getTarget()),{cell:n}))}),this.removeCell(e),this.stopBatch("update",{id:n}),o}removeCells(e,n={}){return e.length?this.batchUpdate("remove",()=>e.map(o=>this.removeCell(o,n))):[]}removeConnectedEdges(e,n={}){const o=this.getConnectedEdges(e);return o.forEach(r=>{r.remove(n)}),o}disconnectConnectedEdges(e,n={}){const o=typeof e=="string"?e:e.id;this.getConnectedEdges(e).forEach(r=>{const s=r.getSourceCellId(),i=r.getTargetCellId();s===o&&r.setSource({x:0,y:0},n),i===o&&r.setTarget({x:0,y:0},n)})}has(e){return this.collection.has(e)}total(){return this.collection.length}indexOf(e){return this.collection.indexOf(e)}getCell(e){return this.collection.get(e)}getCells(){return this.collection.toArray()}getFirstCell(){return this.collection.first()}getLastCell(){return this.collection.last()}getMinZIndex(){const e=this.collection.first();return e&&e.getZIndex()||0}getMaxZIndex(){const e=this.collection.last();return e&&e.getZIndex()||0}getCellsFromCache(e){return e?Object.keys(e).map(n=>this.getCell(n)).filter(n=>n!=null):[]}getNodes(){return this.getCellsFromCache(this.nodes)}getEdges(){return this.getCellsFromCache(this.edges)}getOutgoingEdges(e){const n=typeof e=="string"?e:e.id,o=this.outgoings[n];return o?o.map(r=>this.getCell(r)).filter(r=>r&&r.isEdge()):null}getIncomingEdges(e){const n=typeof e=="string"?e:e.id,o=this.incomings[n];return o?o.map(r=>this.getCell(r)).filter(r=>r&&r.isEdge()):null}getConnectedEdges(e,n={}){const o=[],r=typeof e=="string"?this.getCell(e):e;if(r==null)return o;const s={},i=n.indirect;let l=n.incoming,a=n.outgoing;l==null&&a==null&&(l=a=!0);const u=(c,d)=>{const f=d?this.getOutgoingEdges(c):this.getIncomingEdges(c);if(f!=null&&f.forEach(h=>{s[h.id]||(o.push(h),s[h.id]=!0,i&&(l&&u(h,!1),a&&u(h,!0)))}),i&&c.isEdge()){const h=d?c.getTargetCell():c.getSourceCell();h&&h.isEdge()&&(s[h.id]||(o.push(h),u(h,d)))}};if(a&&u(r,!0),l&&u(r,!1),n.deep){const c=r.getDescendants({deep:!0}),d={};c.forEach(h=>{h.isNode()&&(d[h.id]=!0)});const f=(h,p)=>{const g=p?this.getOutgoingEdges(h.id):this.getIncomingEdges(h.id);g!=null&&g.forEach(v=>{if(!s[v.id]){const m=v.getSourceCell(),C=v.getTargetCell();if(!n.enclosed&&m&&d[m.id]&&C&&d[C.id])return;o.push(v),s[v.id]=!0}})};c.forEach(h=>{h.isEdge()||(a&&f(h,!0),l&&f(h,!1))})}return o}isBoundary(e,n){const o=typeof e=="string"?this.getCell(e):e,r=n?this.getIncomingEdges(o):this.getOutgoingEdges(o);return r==null||r.length===0}getBoundaryNodes(e){const n=[];return Object.keys(this.nodes).forEach(o=>{if(this.isBoundary(o,e)){const r=this.getCell(o);r&&n.push(r)}}),n}getRoots(){return this.getBoundaryNodes(!0)}getLeafs(){return this.getBoundaryNodes(!1)}isRoot(e){return this.isBoundary(e,!0)}isLeaf(e){return this.isBoundary(e,!1)}getNeighbors(e,n={}){let o=n.incoming,r=n.outgoing;o==null&&r==null&&(o=r=!0);const i=this.getConnectedEdges(e,n).reduce((l,a)=>{const u=a.hasLoop(n),c=a.getSourceCell(),d=a.getTargetCell();return o&&c&&c.isNode()&&!l[c.id]&&(u||c!==e&&(!n.deep||!c.isDescendantOf(e)))&&(l[c.id]=c),r&&d&&d.isNode()&&!l[d.id]&&(u||d!==e&&(!n.deep||!d.isDescendantOf(e)))&&(l[d.id]=d),l},{});if(e.isEdge()){if(o){const l=e.getSourceCell();l&&l.isNode()&&!i[l.id]&&(i[l.id]=l)}if(r){const l=e.getTargetCell();l&&l.isNode()&&!i[l.id]&&(i[l.id]=l)}}return Object.keys(i).map(l=>i[l])}isNeighbor(e,n,o={}){let r=o.incoming,s=o.outgoing;return r==null&&s==null&&(r=s=!0),this.getConnectedEdges(e,o).some(i=>{const l=i.getSourceCell(),a=i.getTargetCell();return!!(r&&l&&l.id===n.id||s&&a&&a.id===n.id)})}getSuccessors(e,n={}){const o=[];return this.search(e,(r,s)=>{r!==e&&this.matchDistance(s,n.distance)&&o.push(r)},Object.assign(Object.assign({},n),{outgoing:!0})),o}isSuccessor(e,n,o={}){let r=!1;return this.search(e,(s,i)=>{if(s===n&&s!==e&&this.matchDistance(i,o.distance))return r=!0,!1},Object.assign(Object.assign({},o),{outgoing:!0})),r}getPredecessors(e,n={}){const o=[];return this.search(e,(r,s)=>{r!==e&&this.matchDistance(s,n.distance)&&o.push(r)},Object.assign(Object.assign({},n),{incoming:!0})),o}isPredecessor(e,n,o={}){let r=!1;return this.search(e,(s,i)=>{if(s===n&&s!==e&&this.matchDistance(i,o.distance))return r=!0,!1},Object.assign(Object.assign({},o),{incoming:!0})),r}matchDistance(e,n){return n==null?!0:typeof n=="function"?n(e):Array.isArray(n)&&n.includes(e)?!0:e===n}getCommonAncestor(...e){const n=[];return e.forEach(o=>{o&&(Array.isArray(o)?n.push(...o):n.push(o))}),Pt.getCommonAncestor(...n)}getSubGraph(e,n={}){const o=[],r={},s=[],i=[],l=a=>{r[a.id]||(o.push(a),r[a.id]=a,a.isEdge()&&i.push(a),a.isNode()&&s.push(a))};return e.forEach(a=>{l(a),n.deep&&a.getDescendants({deep:!0}).forEach(c=>l(c))}),i.forEach(a=>{const u=a.getSourceCell(),c=a.getTargetCell();u&&!r[u.id]&&(o.push(u),r[u.id]=u,u.isNode()&&s.push(u)),c&&!r[c.id]&&(o.push(c),r[c.id]=c,c.isNode()&&s.push(c))}),s.forEach(a=>{this.getConnectedEdges(a,n).forEach(c=>{const d=c.getSourceCell(),f=c.getTargetCell();!r[c.id]&&d&&r[d.id]&&f&&r[f.id]&&(o.push(c),r[c.id]=c)})}),o}cloneSubGraph(e,n={}){const o=this.getSubGraph(e,n);return this.cloneCells(o)}cloneCells(e){return Pt.cloneCells(e)}getNodesFromPoint(e,n){const o=typeof e=="number"?{x:e,y:n||0}:e;return this.getNodes().filter(r=>r.getBBox().containsPoint(o))}getNodesInArea(e,n,o,r,s){const i=typeof e=="number"?new ze(e,n,o,r):ze.create(e),l=typeof e=="number"?s:n,a=l&&l.strict;return this.getNodes().filter(u=>{const c=u.getBBox();return a?i.containsRect(c):i.isIntersectWithRect(c)})}getEdgesInArea(e,n,o,r,s){const i=typeof e=="number"?new ze(e,n,o,r):ze.create(e),l=typeof e=="number"?s:n,a=l&&l.strict;return this.getEdges().filter(u=>{const c=u.getBBox();return c.width===0?c.inflate(1,0):c.height===0&&c.inflate(0,1),a?i.containsRect(c):i.isIntersectWithRect(c)})}getNodesUnderNode(e,n={}){const o=e.getBBox();return(n.by==null||n.by==="bbox"?this.getNodesInArea(o):this.getNodesFromPoint(o[n.by])).filter(s=>e.id!==s.id&&!s.isDescendantOf(e))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(e,n={}){return Pt.getCellsBBox(e,n)}search(e,n,o={}){o.breadthFirst?this.breadthFirstSearch(e,n,o):this.depthFirstSearch(e,n,o)}breadthFirstSearch(e,n,o={}){const r=[],s={},i={};for(r.push(e),i[e.id]=0;r.length>0;){const l=r.shift();if(l==null||s[l.id]||(s[l.id]=!0,vt(n,this,l,i[l.id])===!1))continue;this.getNeighbors(l,o).forEach(u=>{i[u.id]=i[l.id]+1,r.push(u)})}}depthFirstSearch(e,n,o={}){const r=[],s={},i={};for(r.push(e),i[e.id]=0;r.length>0;){const l=r.pop();if(l==null||s[l.id]||(s[l.id]=!0,vt(n,this,l,i[l.id])===!1))continue;const a=this.getNeighbors(l,o),u=r.length;a.forEach(c=>{i[c.id]=i[l.id]+1,r.splice(u,0,c)})}}getShortestPath(e,n,o={}){const r={};this.getEdges().forEach(u=>{const c=u.getSourceCellId(),d=u.getTargetCellId();c&&d&&(r[c]||(r[c]=[]),r[d]||(r[d]=[]),r[c].push(d),o.directed||r[d].push(c))});const s=typeof e=="string"?e:e.id,i=Gb.run(r,s,o.weight),l=[];let a=typeof n=="string"?n:n.id;for(i[a]&&l.push(a);a=i[a];)l.unshift(a);return l}translate(e,n,o){return this.getCells().filter(r=>!r.hasParent()).forEach(r=>r.translate(e,n,o)),this}resize(e,n,o){return this.resizeCells(e,n,this.getCells(),o)}resizeCells(e,n,o,r={}){const s=this.getCellsBBox(o);if(s){const i=Math.max(e/s.width,0),l=Math.max(n/s.height,0),a=s.getOrigin();o.forEach(u=>u.scale(i,l,a,r))}return this}toJSON(e={}){return Xr.toJSON(this.getCells(),e)}parseJSON(e){return Xr.fromJSON(e)}fromJSON(e,n={}){const o=this.parseJSON(e);return this.resetCells(o,n),this}startBatch(e,n={}){return this.batches[e]=(this.batches[e]||0)+1,this.notify("batch:start",{name:e,data:n}),this}stopBatch(e,n={}){return this.batches[e]=(this.batches[e]||0)-1,this.notify("batch:stop",{name:e,data:n}),this}batchUpdate(e,n,o={}){this.startBatch(e,o);const r=n();return this.stopBatch(e,o),r}hasActiveBatch(e=Object.keys(this.batches)){return(Array.isArray(e)?e:[e]).some(o=>this.batches[o]>0)}dispose(){this.collection.dispose()}}Lce([Xr.dispose()],Xr.prototype,"dispose",null);(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&typeof r.addNode=="function"&&typeof r.addEdge=="function"&&r.collection!=null}t.isModel=e})(Xr||(Xr={}));(function(t){function e(o,r={}){return{cells:o.map(s=>s.toJSON(r))}}t.toJSON=e;function n(o){const r=[];return Array.isArray(o)?r.push(...o):(o.cells&&r.push(...o.cells),o.nodes&&o.nodes.forEach(s=>{s.shape==null&&(s.shape="rect"),r.push(s)}),o.edges&&o.edges.forEach(s=>{s.shape==null&&(s.shape="edge"),r.push(s)})),r.map(s=>{const i=s.shape;if(i){if(_n.registry.exist(i))return _n.create(s);if(wn.registry.exist(i))return wn.create(s)}throw new Error("The `shape` should be specified when creating a node/edge instance")})}t.fromJSON=n})(Xr||(Xr={}));var Rce=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{const{imageUrl:o,imageWidth:r,imageHeight:s}=n,i=$ce(n,["imageUrl","imageWidth","imageHeight"]);if(o!=null||r!=null||s!=null){const l=()=>{if(i.attrs){const a=i.attrs.image;o!=null&&(a[t]=o),r!=null&&(a.width=r),s!=null&&(a.height=s),i.attrs.image=a}};i.attrs?(i.attrs.image==null&&(i.attrs.image={}),l()):(i.attrs={image:{}},l())}return i}}function dc(t,e,n={}){const o={constructorName:t,markup:Dce(t,n.selector),attrs:{[t]:Object.assign({},gl.bodyAttr)}};return(n.parent||gl).define(pn(o,e,{shape:t}))}dc("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}});const Bce=wn.define({shape:"edge",markup:[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}],attrs:{lines:{connection:!0,strokeLinejoin:"round"},wrap:{strokeWidth:10},line:{stroke:"#333",strokeWidth:2,targetMarker:"classic"}}});dc("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});var Fce=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);rArray.isArray(o)?o.join(","):X.isPointLike(o)?`${o.x}, ${o.y}`:"").join(" ")}t.pointsToString=e,t.config({propHooks(n){const{points:o}=n,r=Fce(n,["points"]);if(o){const s=e(o);s&&ac(r,"attrs/body/refPoints",s)}return r}})})(Zu||(Zu={}));dc("polygon",{},{parent:Zu});dc("polyline",{},{parent:Zu});var zce=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);rthis.resize(),"update"),o=this.handleAction(o,"update",()=>this.update(),"ports"),o=this.handleAction(o,"translate",()=>this.translate()),o=this.handleAction(o,"rotate",()=>this.rotate()),o=this.handleAction(o,"ports",()=>this.renderPorts()),o=this.handleAction(o,"tools",()=>{this.getFlag("tools")===e?this.renderTools():this.updateTools(n)})),o}update(e){this.cleanCache(),this.removePorts();const n=this.cell,o=n.getSize(),r=n.getAttrs();this.updateAttrs(this.container,r,{attrs:e===r?null:e,rootBBox:new ze(0,0,o.width,o.height),selectors:this.selectors}),this.renderPorts()}renderMarkup(){const e=this.cell.markup;if(e){if(typeof e=="string")throw new TypeError("Not support string markup.");return this.renderJSONMarkup(e)}throw new TypeError("Invalid node markup.")}renderJSONMarkup(e){const n=this.parseJSONMarkup(e,this.container);this.selectors=n.selectors,this.container.appendChild(n.fragment)}render(){return this.empty(),this.renderMarkup(),this.resize(),this.updateTransform(),this.renderTools(),this}resize(){this.cell.getAngle()&&this.rotate(),this.update()}translate(){this.updateTransform()}rotate(){this.updateTransform()}getTranslationString(){const e=this.cell.getPosition();return`translate(${e.x},${e.y})`}getRotationString(){const e=this.cell.getAngle();if(e){const n=this.cell.getSize();return`rotate(${e},${n.width/2},${n.height/2})`}}updateTransform(){let e=this.getTranslationString();const n=this.getRotationString();n&&(e+=` ${n}`),this.container.setAttribute("transform",e)}findPortElem(e,n){const o=e?this.portsCache[e]:null;if(!o)return null;const r=o.portContentElement,s=o.portContentSelectors||{};return this.findOne(n,r,s)}cleanPortsCache(){this.portsCache={}}removePorts(){Object.values(this.portsCache).forEach(e=>{Vu(e.portElement)})}renderPorts(){const e=this.container,n=[];e.childNodes.forEach(i=>{n.push(i)});const o=this.cell.getParsedPorts(),r=EC(o,"zIndex"),s="auto";r[s]&&r[s].forEach(i=>{const l=this.getPortElement(i);e.append(l),n.push(l)}),Object.keys(r).forEach(i=>{if(i!==s){const l=parseInt(i,10);this.appendPorts(r[i],l,n)}}),this.updatePorts()}appendPorts(e,n,o){const r=e.map(s=>this.getPortElement(s));o[n]||n<0?Zy(o[Math.max(n,0)],r):Mf(this.container,r)}getPortElement(e){const n=this.portsCache[e.id];return n?n.portElement:this.createPortElement(e)}createPortElement(e){let n=nn.renderMarkup(this.cell.getPortContainerMarkup());const o=n.elem;if(o==null)throw new Error("Invalid port container markup.");n=nn.renderMarkup(this.getPortMarkup(e));const r=n.elem,s=n.selectors;if(r==null)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},r);let i="x6-port";e.group&&(i+=` x6-port-${e.group}`),Dt(o,i),Dt(o,"x6-port"),Dt(r,"x6-port-body"),o.appendChild(r);let l=s,a,u;if(this.existPortLabel(e)){if(n=nn.renderMarkup(this.getPortLabelMarkup(e.label)),a=n.elem,u=n.selectors,a==null)throw new Error("Invalid port label markup.");if(s&&u){for(const d in u)if(s[d]&&d!==this.rootSelector)throw new Error("Selectors within port must be unique.");l=Object.assign(Object.assign({},s),u)}Dt(a,"x6-port-label"),o.appendChild(a)}return this.portsCache[e.id]={portElement:o,portSelectors:l,portLabelElement:a,portLabelSelectors:u,portContentElement:r,portContentSelectors:s},this.graph.options.onPortRendered&&this.graph.options.onPortRendered({port:e,node:this.cell,container:o,selectors:l,labelContainer:a,labelSelectors:u,contentContainer:r,contentSelectors:s}),o}updatePorts(){const e=this.cell.getParsedGroups(),n=Object.keys(e);n.length===0?this.updatePortGroup():n.forEach(o=>this.updatePortGroup(o))}updatePortGroup(e){const n=ze.fromSize(this.cell.getSize()),o=this.cell.getPortsLayoutByGroup(e,n);for(let r=0,s=o.length;rs.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:n},this.getEventArgs(e,o,r)))}onMagnetDblClick(e,n,o,r){this.notify("node:magnet:dblclick",Object.assign({magnet:n},this.getEventArgs(e,o,r)))}onMagnetContextMenu(e,n,o,r){this.notify("node:magnet:contextmenu",Object.assign({magnet:n},this.getEventArgs(e,o,r)))}onMagnetMouseDown(e,n,o,r){this.startMagnetDragging(e,o,r)}onCustomEvent(e,n,o,r){this.notify("node:customevent",Object.assign({name:n},this.getEventArgs(e,o,r))),super.onCustomEvent(e,n,o,r)}prepareEmbedding(e){const n=this.graph,r=this.getEventData(e).cell||this.cell,s=n.findViewByCell(r),i=n.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e,node:r,view:s,cell:r,x:i.x,y:i.y,currentParent:r.getParent()})}processEmbedding(e,n){const o=n.cell||this.cell,r=n.graph||this.graph,s=r.options.embedding,i=s.findParent;let l=typeof i=="function"?vt(i,r,{view:this,node:this.cell}).filter(f=>Pt.isCell(f)&&this.cell.id!==f.id&&!f.isDescendantOf(this.cell)):r.model.getNodesUnderNode(o,{by:i});if(s.frontOnly&&l.length>0){const f=EC(l,"zIndex"),h=NF(Object.keys(f).map(p=>parseInt(p,10)));h&&(l=f[h])}l=l.filter(f=>f.visible);let a=null;const u=n.candidateEmbedView,c=s.validate;for(let f=l.length-1;f>=0;f-=1){const h=l[f];if(u&&u.cell.id===h.id){a=u;break}else{const p=h.findView(r);if(c&&vt(c,r,{child:this.cell,parent:p.cell,childView:this,parentView:p})){a=p;break}}}this.clearEmbedding(n),a&&a.highlight(null,{type:"embedding"}),n.candidateEmbedView=a;const d=r.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e,cell:o,node:o,view:r.findViewByCell(o),x:d.x,y:d.y,currentParent:o.getParent(),candidateParent:a?a.cell:null})}clearEmbedding(e){const n=e.candidateEmbedView;n&&(n.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null)}finalizeEmbedding(e,n){this.graph.startBatch("embedding");const o=n.cell||this.cell,r=n.graph||this.graph,s=r.findViewByCell(o),i=o.getParent(),l=n.candidateEmbedView;if(l?(l.unhighlight(null,{type:"embedding"}),n.candidateEmbedView=null,(i==null||i.id!==l.cell.id)&&l.cell.insertChild(o,void 0,{ui:!0})):i&&i.unembed(o,{ui:!0}),r.model.getConnectedEdges(o,{deep:!0}).forEach(a=>{a.updateParent({ui:!0})}),s&&l){const a=r.snapToGrid(e.clientX,e.clientY);s.notify("node:embedded",{e,cell:o,x:a.x,y:a.y,node:o,view:r.findViewByCell(o),previousParent:i,currentParent:o.getParent()})}this.graph.stopBatch("embedding")}getDelegatedView(){let e=this.cell,n=this;for(;n&&!e.isEdge();){if(!e.hasParent()||n.can("stopDelegateOnDragging"))return n;e=e.getParent(),n=this.graph.findViewByCell(e)}return null}validateMagnet(e,n,o){if(n.getAttribute("magnet")!=="passive"){const r=this.graph.options.connecting.validateMagnet;return r?vt(r,this.graph,{e:o,magnet:n,view:e,cell:e.cell}):!0}return!1}startMagnetDragging(e,n,o){if(!this.can("magnetConnectable"))return;e.stopPropagation();const r=e.currentTarget,s=this.graph;this.setEventData(e,{targetMagnet:r}),this.validateMagnet(this,r,e)?(s.options.magnetThreshold<=0&&this.startConnectting(e,r,n,o),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,n,o),s.view.delegateDragEvents(e,this)}startConnectting(e,n,o,r){this.graph.model.startBatch("add-edge");const s=this.createEdgeFromMagnet(n,o,r);s.setEventData(e,s.prepareArrowheadDragging("target",{x:o,y:r,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:s}),s.notifyMouseDown(e,o,r)}getDefaultEdge(e,n){let o;const r=this.graph.options.connecting.createEdge;return r&&(o=vt(r,this.graph,{sourceMagnet:n,sourceView:e,sourceCell:e.cell})),o}createEdgeFromMagnet(e,n,o){const r=this.graph,s=r.model,i=this.getDefaultEdge(this,e);return i.setSource(Object.assign(Object.assign({},i.getSource()),this.getEdgeTerminal(e,n,o,i,"source"))),i.setTarget(Object.assign(Object.assign({},i.getTarget()),{x:n,y:o})),i.addTo(s,{async:!1,ui:!0}),i.findView(r)}dragMagnet(e,n,o){const r=this.getEventData(e),s=r.edgeView;if(s)s.onMouseMove(e,n,o),this.autoScrollGraph(e.clientX,e.clientY);else{const i=this.graph,l=i.options.magnetThreshold,a=this.getEventTarget(e),u=r.targetMagnet;if(l==="onleave"){if(u===a||u.contains(a))return}else if(i.view.getMouseMovedCount(e)<=l)return;this.startConnectting(e,u,n,o)}}stopMagnetDragging(e,n,o){const s=this.eventData(e).edgeView;s&&(s.onMouseUp(e,n,o),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(e,n,o){this.notify("node:unhandled:mousedown",{e,x:n,y:o,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(e,n,o,r,s){let i=[s];const l=this.graph.getPlugin("selection");if(l&&l.isSelectionMovable()){const a=l.getSelectedCells();a.includes(s)&&(i=a.filter(u=>u.isNode()))}i.forEach(a=>{this.notify(e,{e:n,x:o,y:r,cell:a,node:a,view:a.findView(this.graph)})})}getRestrictArea(e){const n=this.graph.options.translating.restrict,o=typeof n=="function"?vt(n,this.graph,e):n;return typeof o=="number"?this.graph.transform.getGraphArea().inflate(o):o===!0?this.graph.transform.getGraphArea():o||null}startNodeDragging(e,n,o){const r=this.getDelegatedView();if(r==null||!r.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,n,o);this.setEventData(e,{targetView:r,action:"move"});const s=X.create(r.cell.getPosition());r.setEventData(e,{moving:!1,offset:s.diff(n,o),restrict:this.getRestrictArea(r)})}dragNode(e,n,o){const r=this.cell,s=this.graph,i=s.getGridSize(),l=this.getEventData(e),a=l.offset,u=l.restrict;l.moving||(l.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,n,o,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);const c=Yt.snapToGrid(n+a.x,i),d=Yt.snapToGrid(o+a.y,i);r.setPosition(c,d,{restrict:u,deep:!0,ui:!0}),s.options.embedding.enabled&&(l.embedding||(this.prepareEmbedding(e),l.embedding=!0),this.processEmbedding(e,l))}stopNodeDragging(e,n,o){const r=this.getEventData(e);r.embedding&&this.finalizeEmbedding(e,r),r.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,n,o,this.cell)),r.moving=!1,r.embedding=!1}autoScrollGraph(e,n){const o=this.graph.getPlugin("scroller");o&&o.autoScroll(e,n)}}(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&typeof r.isNodeView=="function"&&typeof r.isEdgeView=="function"&&typeof r.confirmUpdate=="function"&&typeof r.update=="function"&&typeof r.findPortElem=="function"&&typeof r.resize=="function"&&typeof r.rotate=="function"&&typeof r.translate=="function"}t.isNodeView=e})(ur||(ur={}));ur.config({isSvgElement:!0,priority:0,bootstrap:["render"],actions:{view:["render"],markup:["render"],attrs:["update"],size:["resize","ports","tools"],angle:["rotate","tools"],position:["translate","tools"],ports:["ports"],tools:["tools"]}});ur.registry.register("node",ur,!0);var Hce=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);rthis.update(n)),o=this.handleAction(o,"labels",()=>this.onLabelsChange(n)),o=this.handleAction(o,"tools",()=>this.renderTools()),o)}render(){return this.empty(),this.renderMarkup(),this.labelContainer=null,this.renderLabels(),this.update(),this.renderTools(),this}renderMarkup(){const e=this.cell.markup;if(e){if(typeof e=="string")throw new TypeError("Not support string markup.");return this.renderJSONMarkup(e)}throw new TypeError("Invalid edge markup.")}renderJSONMarkup(e){const n=this.parseJSONMarkup(e,this.container);this.selectors=n.selectors,this.container.append(n.fragment)}customizeLabels(){if(this.labelContainer){const e=this.cell,n=e.labels;for(let o=0,r=n.length;o1){const s=o[1];if(n[s]){if(r===2)return typeof e.propertyValue=="object"&&Hf(e.propertyValue,"markup");if(o[2]!=="markup")return!1}}}return!0}parseLabelMarkup(e){return e?typeof e=="string"?this.parseLabelStringMarkup(e):this.parseJSONMarkup(e):null}parseLabelStringMarkup(e){const n=ht.createVectors(e),o=document.createDocumentFragment();for(let r=0,s=n.length;r1||r[0].nodeName.toUpperCase()!=="G"?o=ht.create("g").append(n):o=ht.create(r[0]),o.addClass(this.prefixClassName("edge-label")),{node:o.node,selectors:e.selectors}}updateLabels(){if(this.labelContainer){const e=this.cell,n=e.labels,o=this.can("edgeLabelMovable"),r=e.getDefaultLabel();for(let s=0,i=n.length;su.toJSON()),a=l.length;return s===a?0:(n.setVertices(l.slice(1,a-1),e),s-a)}getTerminalView(e){switch(e){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalAnchor(e){switch(e){case"source":return X.create(this.sourceAnchor);case"target":return X.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return X.create(this.sourcePoint);case"target":return X.create(this.targetPoint);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalMagnet(e,n={}){switch(e){case"source":{if(n.raw)return this.sourceMagnet;const o=this.sourceView;return o?this.sourceMagnet||o.container:null}case"target":{if(n.raw)return this.targetMagnet;const o=this.targetView;return o?this.targetMagnet||o.container:null}default:throw new Error(`Unknown terminal type '${e}'`)}}updateConnection(e={}){const n=this.cell;if(e.translateBy&&n.isFragmentDescendantOf(e.translateBy)){const o=e.tx||0,r=e.ty||0;this.routePoints=new Tn(this.routePoints).translate(o,r).points,this.translateConnectionPoints(o,r),this.path.translate(o,r)}else{const o=n.getVertices(),r=this.findAnchors(o);this.sourceAnchor=r.source,this.targetAnchor=r.target,this.routePoints=this.findRoutePoints(o);const s=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=s.source,this.targetPoint=s.target;const i=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);this.path=this.findPath(this.routePoints,i.source||this.sourcePoint,i.target||this.targetPoint)}this.cleanCache()}findAnchors(e){const n=this.cell,o=n.source,r=n.target,s=e[0],i=e[e.length-1];return r.priority&&!o.priority?this.findAnchorsOrdered("target",i,"source",s):this.findAnchorsOrdered("source",s,"target",i)}findAnchorsOrdered(e,n,o,r){let s,i;const l=this.cell,a=l[e],u=l[o],c=this.getTerminalView(e),d=this.getTerminalView(o),f=this.getTerminalMagnet(e),h=this.getTerminalMagnet(o);if(c){let p;n?p=X.create(n):d?p=h:p=X.create(u),s=this.getAnchor(a.anchor,c,f,p,e)}else s=X.create(a);if(d){const p=X.create(r||s);i=this.getAnchor(u.anchor,d,h,p,o)}else i=X.isPointLike(u)?X.create(u):new X;return{[e]:s,[o]:i}}getAnchor(e,n,o,r,s){const i=n.isEdgeElement(o),l=this.graph.options.connecting;let a=typeof e=="string"?{name:e}:e;if(!a){const d=i?(s==="source"?l.sourceEdgeAnchor:l.targetEdgeAnchor)||l.edgeAnchor:(s==="source"?l.sourceAnchor:l.targetAnchor)||l.anchor;a=typeof d=="string"?{name:d}:d}if(!a)throw new Error("Anchor should be specified.");let u;const c=a.name;if(i){const d=Ju.registry.get(c);if(typeof d!="function")return Ju.registry.onNotFound(c);u=vt(d,this,n,o,r,a.args||{},s)}else{const d=Ku.registry.get(c);if(typeof d!="function")return Ku.registry.onNotFound(c);u=vt(d,this,n,o,r,a.args||{},s)}return u?u.round(this.POINT_ROUNDING):new X}findRoutePoints(e=[]){const n=this.graph.options.connecting.router||tl.presets.normal,o=this.cell.getRouter()||n;let r;if(typeof o=="function")r=vt(o,this,e,{},this);else{const s=typeof o=="string"?o:o.name,i=typeof o=="string"?{}:o.args||{},l=s?tl.registry.get(s):tl.presets.normal;if(typeof l!="function")return tl.registry.onNotFound(s);r=vt(l,this,e,i,this)}return r==null?e.map(s=>X.create(s)):r.map(s=>X.create(s))}findConnectionPoints(e,n,o){const r=this.cell,s=this.graph.options.connecting,i=r.getSource(),l=r.getTarget(),a=this.sourceView,u=this.targetView,c=e[0],d=e[e.length-1];let f;if(a&&!a.isEdgeElement(this.sourceMagnet)){const p=this.sourceMagnet||a.container,g=c||o,v=new Qe(g,n),m=i.connectionPoint||s.sourceConnectionPoint||s.connectionPoint;f=this.getConnectionPoint(m,a,p,v,"source")}else f=n;let h;if(u&&!u.isEdgeElement(this.targetMagnet)){const p=this.targetMagnet||u.container,g=l.connectionPoint||s.targetConnectionPoint||s.connectionPoint,v=d||n,m=new Qe(v,o);h=this.getConnectionPoint(g,u,p,m,"target")}else h=o;return{source:f,target:h}}getConnectionPoint(e,n,o,r,s){const i=r.end;if(e==null)return i;const l=typeof e=="string"?e:e.name,a=typeof e=="string"?{}:e.args,u=Yu.registry.get(l);if(typeof u!="function")return Yu.registry.onNotFound(l);const c=vt(u,this,r,n,o,a||{},s);return c?c.round(this.POINT_ROUNDING):i}findMarkerPoints(e,n,o){const r=d=>{const f=this.cell.getAttrs(),h=Object.keys(f);for(let p=0,g=h.length;p0?v/g:0),c&&(v=-1*(g-v)||1),s.distance=v;let m;a||(m=d.tangentAtT(p));let C;if(m)C=m.pointOffset(h);else{const y=d.pointAtT(p),b=h.diff(y);C={x:b.x,y:b.y}}return s.offset=C,s.angle=i,s}normalizeLabelPosition(e){return typeof e=="number"?{distance:e}:e}getLabelTransformationMatrix(e){const n=this.normalizeLabelPosition(e),o=n.options||{},r=n.angle||0,s=n.distance,i=s>0&&s<=1;let l=0;const a={x:0,y:0},u=n.offset;u&&(typeof u=="number"?l=u:(u.x!=null&&(a.x=u.x),u.y!=null&&(a.y=u.y)));const c=a.x!==0||a.y!==0||l===0,d=o.keepGradient,f=o.ensureLegibility,h=this.path,p={segmentSubdivisions:this.getConnectionSubdivisions()},g=i?s*this.getConnectionLength():s,v=h.tangentAtLength(g,p);let m,C=r;if(v){if(c)m=v.start,m.translate(a);else{const y=v.clone();y.rotate(-90,v.start),y.setLength(l),m=y.end}d&&(C=v.angle()+r,f&&(C=Zt.normalize((C+90)%180-90)))}else m=h.start,c&&m.translate(a);return to().translate(m.x,m.y).rotate(C)}getVertexIndex(e,n){const r=this.cell.getVertices(),s=this.getClosestPointLength(new X(e,n));let i=0;if(s!=null)for(const l=r.length;i(n[s]=a,n[s+1]=a.container===u?void 0:u,n)}beforeArrowheadDragging(e){e.zIndex=this.cell.zIndex,this.cell.toFront();const n=this.container.style;e.pointerEvents=n.pointerEvents,n.pointerEvents="none",this.graph.options.connecting.highlight&&this.highlightAvailableMagnets(e)}afterArrowheadDragging(e){e.zIndex!=null&&(this.cell.setZIndex(e.zIndex,{ui:!0}),e.zIndex=null);const n=this.container;n.style.pointerEvents=e.pointerEvents||"",this.graph.options.connecting.highlight&&this.unhighlightAvailableMagnets(e)}validateConnection(e,n,o,r,s,i,l){const a=this.graph.options.connecting,u=a.allowLoop,c=a.allowNode,d=a.allowEdge,f=a.allowPort,h=a.allowMulti,p=a.validateConnection,g=i?i.cell:null,v=s==="target"?o:e,m=s==="target"?r:n;let C=!0;const y=b=>{const S=s==="source"?l?l.port:null:g?g.getSourcePortId():null,T=s==="target"?l?l.port:null:g?g.getTargetPortId():null;return vt(b,this.graph,{edge:g,edgeView:i,sourceView:e,targetView:o,sourcePort:S,targetPort:T,sourceMagnet:n,targetMagnet:r,sourceCell:e?e.cell:null,targetCell:o?o.cell:null,type:s})};if(u!=null&&(typeof u=="boolean"?!u&&e===o&&(C=!1):C=y(u)),C&&f!=null&&(typeof f=="boolean"?!f&&m&&(C=!1):C=y(f)),C&&d!=null&&(typeof d=="boolean"?!d&&gi.isEdgeView(v)&&(C=!1):C=y(d)),C&&c!=null&&m==null&&(typeof c=="boolean"?!c&&ur.isNodeView(v)&&(C=!1):C=y(c)),C&&h!=null&&i){const b=i.cell,S=s==="source"?l:b.getSource(),T=s==="target"?l:b.getTarget(),O=l?this.graph.getCellById(l.cell):null;if(S&&T&&S.cell&&T.cell&&O)if(typeof h=="function")C=y(h);else{const k=this.graph.model.getConnectedEdges(O,{outgoing:s==="source",incoming:s==="target"});k.length&&(h==="withPort"?k.some(I=>{const M=I.getSource(),D=I.getTarget();return M&&D&&M.cell===S.cell&&D.cell===T.cell&&M.port!=null&&M.port===S.port&&D.port!=null&&D.port===T.port})&&(C=!1):h||k.some(I=>{const M=I.getSource(),D=I.getTarget();return M&&D&&M.cell===S.cell&&D.cell===T.cell})&&(C=!1))}}return C&&p!=null&&(C=y(p)),C}allowConnectToBlank(e){const n=this.graph,r=n.options.connecting.allowBlank;if(typeof r!="function")return!!r;const s=n.findViewByCell(e),i=e.getSourceCell(),l=e.getTargetCell(),a=n.findViewByCell(i),u=n.findViewByCell(l);return vt(r,n,{edge:e,edgeView:s,sourceCell:i,targetCell:l,sourceView:a,targetView:u,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:s.sourceMagnet,targetMagnet:s.targetMagnet})}validateEdge(e,n,o){const r=this.graph;if(!this.allowConnectToBlank(e)){const i=e.getSourceCellId(),l=e.getTargetCellId();if(!(i&&l))return!1}const s=r.options.connecting.validateEdge;return s?vt(s,r,{edge:e,type:n,previous:o}):!0}arrowheadDragging(e,n,o,r){r.x=n,r.y=o,r.currentTarget!==e&&(r.currentMagnet&&r.currentView&&r.currentView.unhighlight(r.currentMagnet,{type:"magnetAdsorbed"}),r.currentView=this.graph.findViewByElem(e),r.currentView?(r.currentMagnet=r.currentView.findMagnet(e),r.currentMagnet&&this.validateConnection(...r.getValidateConnectionArgs(r.currentView,r.currentMagnet),r.currentView.getEdgeTerminal(r.currentMagnet,n,o,this.cell,r.terminalType))?r.currentView.highlight(r.currentMagnet,{type:"magnetAdsorbed"}):r.currentMagnet=null):r.currentMagnet=null),r.currentTarget=e,this.cell.prop(r.terminalType,{x:n,y:o},Object.assign(Object.assign({},r.options),{ui:!0}))}arrowheadDragged(e,n,o){const r=e.currentView,s=e.currentMagnet;if(!s||!r)return;r.unhighlight(s,{type:"magnetAdsorbed"});const i=e.terminalType,l=r.getEdgeTerminal(s,n,o,this.cell,i);this.cell.setTerminal(i,l,{ui:!0})}snapArrowhead(e,n,o){const r=this.graph,{snap:s,allowEdge:i}=r.options.connecting,l=typeof s=="object"&&s.radius||50,a=typeof s=="object"&&s.anchor||"center",u=r.renderer.findViewsInArea({x:e-l,y:n-l,width:2*l,height:2*l},{nodeOnly:!0});if(i){const b=r.renderer.findEdgeViewsFromPoint({x:e,y:n},l).filter(S=>S!==this);u.push(...b)}const c=o.closestView||null,d=o.closestMagnet||null;o.closestView=null,o.closestMagnet=null;let f,h=Number.MAX_SAFE_INTEGER;const p=new X(e,n);u.forEach(b=>{if(b.container.getAttribute("magnet")!=="false"){if(b.isNodeView())f=a==="center"?b.cell.getBBox().getCenter().distance(p):b.cell.getBBox().getNearestPointToPoint(p).distance(p);else if(b.isEdgeView()){const S=b.getClosestPoint(p);S?f=S.distance(p):f=Number.MAX_SAFE_INTEGER}f{if(S.getAttribute("magnet")!=="false"){const T=b.getBBoxOfElement(S);f=p.distance(T.getCenter()),fthis.validateConnection(...e.getValidateConnectionArgs(i,u),i.getEdgeTerminal(u,e.x,e.y,this.cell,e.terminalType)));if(a.length>0){for(let u=0,c=a.length;u{const r=this.graph.findViewByCell(o);r&&(n[o].forEach(i=>{r.unhighlight(i,{type:"magnetAvailable"})}),r.unhighlight(null,{type:"nodeAvailable"}))}),e.marked=null}startArrowheadDragging(e,n,o){if(!this.can("arrowheadMovable")){this.notifyUnhandledMouseDown(e,n,o);return}const s=e.target.getAttribute("data-terminal"),i=this.prepareArrowheadDragging(s,{x:n,y:o});this.setEventData(e,i)}dragArrowhead(e,n,o){const r=this.getEventData(e);this.graph.options.connecting.snap?this.snapArrowhead(n,o,r):this.arrowheadDragging(this.getEventTarget(e),n,o,r)}stopArrowheadDragging(e,n,o){const r=this.graph,s=this.getEventData(e);r.options.connecting.snap?this.snapArrowheadEnd(s):this.arrowheadDragged(s,n,o),this.validateEdge(this.cell,s.terminalType,s.initialTerminal)?(this.finishEmbedding(s),this.notifyConnectionEvent(s,e)):this.fallbackConnection(s),this.afterArrowheadDragging(s)}startLabelDragging(e,n,o){if(this.can("edgeLabelMovable")){const r=e.currentTarget,s=parseInt(r.getAttribute("data-index"),10),i=this.getLabelPositionAngle(s),l=this.getLabelPositionArgs(s),a=this.getDefaultLabelPositionArgs(),u=this.mergeLabelPositionArgs(l,a);this.setEventData(e,{index:s,positionAngle:i,positionArgs:u,stopPropagation:!0,action:"drag-label"})}else this.setEventData(e,{stopPropagation:!0});this.graph.view.delegateDragEvents(e,this)}dragLabel(e,n,o){const r=this.getEventData(e),s=this.cell.getLabelAt(r.index),i=pn({},s,{position:this.getLabelPosition(n,o,r.positionAngle,r.positionArgs)});this.cell.setLabelAt(r.index,i)}stopLabelDragging(e,n,o){}}(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag],r=n;return(o==null||o===t.toStringTag)&&typeof r.isNodeView=="function"&&typeof r.isEdgeView=="function"&&typeof r.confirmUpdate=="function"&&typeof r.update=="function"&&typeof r.getConnection=="function"}t.isEdgeView=e})(gi||(gi={}));gi.config({isSvgElement:!0,priority:1,bootstrap:["render","source","target"],actions:{view:["render"],markup:["render"],attrs:["update"],source:["source","update"],target:["target","update"],router:["update"],connector:["update"],labels:["labels"],defaultLabel:["labels"],tools:["tools"],vertices:["vertices","update"]}});gi.registry.register("edge",gi,!0);var Uce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class Is extends an{get disposeContainer(){return!1}get options(){return this.graph.options}constructor(e){super(),this.graph=e;const{selectors:n,fragment:o}=nn.parseJSONMarkup(Is.markup);this.background=n.background,this.grid=n.grid,this.svg=n.svg,this.defs=n.defs,this.viewport=n.viewport,this.primer=n.primer,this.stage=n.stage,this.decorator=n.decorator,this.overlay=n.overlay,this.container=this.options.container,this.restore=Is.snapshoot(this.container),Dt(this.container,this.prefixClassName("graph")),Mf(this.container,o),this.delegateEvents()}delegateEvents(){const e=this.constructor;return super.delegateEvents(e.events),this}guard(e,n){return e.type==="mousedown"&&e.button===2||this.options.guard&&this.options.guard(e,n)?!0:e.data&&e.data.guarded!==void 0?e.data.guarded:!(n&&n.cell&&Pt.isCell(n.cell)||this.svg===e.target||this.container===e.target||this.svg.contains(e.target))}findView(e){return this.graph.findViewByElem(e)}onDblClick(e){this.options.preventDefaultDblClick&&e.preventDefault();const n=this.normalizeEvent(e),o=this.findView(n.target);if(this.guard(n,o))return;const r=this.graph.snapToGrid(n.clientX,n.clientY);o?o.onDblClick(n,r.x,r.y):this.graph.trigger("blank:dblclick",{e:n,x:r.x,y:r.y})}onClick(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){const n=this.normalizeEvent(e),o=this.findView(n.target);if(this.guard(n,o))return;const r=this.graph.snapToGrid(n.clientX,n.clientY);o?o.onClick(n,r.x,r.y):this.graph.trigger("blank:click",{e:n,x:r.x,y:r.y})}}isPreventDefaultContextMenu(e){let n=this.options.preventDefaultContextMenu;return typeof n=="function"&&(n=vt(n,this.graph,{view:e})),n}onContextMenu(e){const n=this.normalizeEvent(e),o=this.findView(n.target);if(this.isPreventDefaultContextMenu(o)&&e.preventDefault(),this.guard(n,o))return;const r=this.graph.snapToGrid(n.clientX,n.clientY);o?o.onContextMenu(n,r.x,r.y):this.graph.trigger("blank:contextmenu",{e:n,x:r.x,y:r.y})}delegateDragEvents(e,n){e.data==null&&(e.data={}),this.setEventData(e,{currentView:n||null,mouseMovedCount:0,startPosition:{x:e.clientX,y:e.clientY}});const o=this.constructor;this.delegateDocumentEvents(o.documentEvents,e.data),this.undelegateEvents()}getMouseMovedCount(e){return this.getEventData(e).mouseMovedCount||0}onMouseDown(e){const n=this.normalizeEvent(e),o=this.findView(n.target);if(this.guard(n,o))return;this.options.preventDefaultMouseDown&&e.preventDefault();const r=this.graph.snapToGrid(n.clientX,n.clientY);o?o.onMouseDown(n,r.x,r.y):(this.options.preventDefaultBlankAction&&["touchstart"].includes(n.type)&&e.preventDefault(),this.graph.trigger("blank:mousedown",{e:n,x:r.x,y:r.y})),this.delegateDragEvents(n,o)}onMouseMove(e){const n=this.getEventData(e),o=n.startPosition;if(o&&o.x===e.clientX&&o.y===e.clientY||(n.mouseMovedCount==null&&(n.mouseMovedCount=0),n.mouseMovedCount+=1,n.mouseMovedCount<=this.options.moveThreshold))return;const s=this.normalizeEvent(e),i=this.graph.snapToGrid(s.clientX,s.clientY),l=n.currentView;l?l.onMouseMove(s,i.x,i.y):this.graph.trigger("blank:mousemove",{e:s,x:i.x,y:i.y}),this.setEventData(s,n)}onMouseUp(e){this.undelegateDocumentEvents();const n=this.normalizeEvent(e),o=this.graph.snapToGrid(n.clientX,n.clientY),s=this.getEventData(e).currentView;if(s?s.onMouseUp(n,o.x,o.y):this.graph.trigger("blank:mouseup",{e:n,x:o.x,y:o.y}),!e.isPropagationStopped()){const i=new Os(e,{type:"click",data:e.data});this.onClick(i)}e.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(e){const n=this.normalizeEvent(e),o=this.findView(n.target);if(!this.guard(n,o))if(o)o.onMouseOver(n);else{if(this.container===n.target)return;this.graph.trigger("blank:mouseover",{e:n})}}onMouseOut(e){const n=this.normalizeEvent(e),o=this.findView(n.target);if(!this.guard(n,o))if(o)o.onMouseOut(n);else{if(this.container===n.target)return;this.graph.trigger("blank:mouseout",{e:n})}}onMouseEnter(e){const n=this.normalizeEvent(e),o=this.findView(n.target);if(this.guard(n,o))return;const r=this.graph.findViewByElem(n.relatedTarget);if(o){if(r===o)return;o.onMouseEnter(n)}else{if(r)return;this.graph.trigger("graph:mouseenter",{e:n})}}onMouseLeave(e){const n=this.normalizeEvent(e),o=this.findView(n.target);if(this.guard(n,o))return;const r=this.graph.findViewByElem(n.relatedTarget);if(o){if(r===o)return;o.onMouseLeave(n)}else{if(r)return;this.graph.trigger("graph:mouseleave",{e:n})}}onMouseWheel(e){const n=this.normalizeEvent(e),o=this.findView(n.target);if(this.guard(n,o))return;const r=n.originalEvent,s=this.graph.snapToGrid(r.clientX,r.clientY),i=Math.max(-1,Math.min(1,r.wheelDelta||-r.detail));o?o.onMouseWheel(n,s.x,s.y,i):this.graph.trigger("blank:mousewheel",{e:n,delta:i,x:s.x,y:s.y})}onCustomEvent(e){const n=e.currentTarget,o=n.getAttribute("event")||n.getAttribute("data-event");if(o){const r=this.findView(n);if(r){const s=this.normalizeEvent(e);if(this.guard(s,r))return;const i=this.graph.snapToGrid(s.clientX,s.clientY);r.onCustomEvent(s,o,i.x,i.y)}}}handleMagnetEvent(e,n){const o=e.currentTarget,r=o.getAttribute("magnet");if(r&&r.toLowerCase()!=="false"){const s=this.findView(o);if(s){const i=this.normalizeEvent(e);if(this.guard(i,s))return;const l=this.graph.snapToGrid(i.clientX,i.clientY);vt(n,this.graph,s,i,o,l.x,l.y)}}}onMagnetMouseDown(e){this.handleMagnetEvent(e,(n,o,r,s,i)=>{n.onMagnetMouseDown(o,r,s,i)})}onMagnetDblClick(e){this.handleMagnetEvent(e,(n,o,r,s,i)=>{n.onMagnetDblClick(o,r,s,i)})}onMagnetContextMenu(e){const n=this.findView(e.target);this.isPreventDefaultContextMenu(n)&&e.preventDefault(),this.handleMagnetEvent(e,(o,r,s,i,l)=>{o.onMagnetContextMenu(r,s,i,l)})}onLabelMouseDown(e){const n=e.currentTarget,o=this.findView(n);if(o){const r=this.normalizeEvent(e);if(this.guard(r,o))return;const s=this.graph.snapToGrid(r.clientX,r.clientY);o.onLabelMouseDown(r,s.x,s.y)}}onImageDragStart(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}Uce([an.dispose()],Is.prototype,"dispose",null);(function(t){const e=`${is.prefixCls}-graph`;t.markup=[{ns:qn.xhtml,tagName:"div",selector:"background",className:`${e}-background`},{ns:qn.xhtml,tagName:"div",selector:"grid",className:`${e}-grid`},{ns:qn.svg,tagName:"svg",selector:"svg",className:`${e}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":qn.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${e}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${e}-svg-primer`},{tagName:"g",selector:"stage",className:`${e}-svg-stage`},{tagName:"g",selector:"decorator",className:`${e}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${e}-svg-overlay`}]}]}];function n(o){const r=o.cloneNode();return o.childNodes.forEach(s=>r.appendChild(s)),()=>{for(kf(o);o.attributes.length>0;)o.removeAttribute(o.attributes[0].name);for(let s=0,i=r.attributes.length;so.appendChild(s))}}t.snapshoot=n})(Is||(Is={}));(function(t){const e=is.prefixCls;t.events={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel",[`mouseenter .${e}-cell`]:"onMouseEnter",[`mouseleave .${e}-cell`]:"onMouseLeave",[`mouseenter .${e}-cell-tools`]:"onMouseEnter",[`mouseleave .${e}-cell-tools`]:"onMouseLeave",[`mousedown .${e}-cell [event]`]:"onCustomEvent",[`touchstart .${e}-cell [event]`]:"onCustomEvent",[`mousedown .${e}-cell [data-event]`]:"onCustomEvent",[`touchstart .${e}-cell [data-event]`]:"onCustomEvent",[`dblclick .${e}-cell [magnet]`]:"onMagnetDblClick",[`contextmenu .${e}-cell [magnet]`]:"onMagnetContextMenu",[`mousedown .${e}-cell [magnet]`]:"onMagnetMouseDown",[`touchstart .${e}-cell [magnet]`]:"onMagnetMouseDown",[`dblclick .${e}-cell [data-magnet]`]:"onMagnetDblClick",[`contextmenu .${e}-cell [data-magnet]`]:"onMagnetContextMenu",[`mousedown .${e}-cell [data-magnet]`]:"onMagnetMouseDown",[`touchstart .${e}-cell [data-magnet]`]:"onMagnetMouseDown",[`dragstart .${e}-cell image`]:"onImageDragStart",[`mousedown .${e}-edge .${e}-edge-label`]:"onLabelMouseDown",[`touchstart .${e}-edge .${e}-edge-label`]:"onLabelMouseDown"},t.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}})(Is||(Is={}));const Wce=`.x6-graph { + position: relative; + overflow: hidden; + outline: none; + touch-action: none; +} +.x6-graph-background, +.x6-graph-grid, +.x6-graph-svg { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} +.x6-graph-background-stage, +.x6-graph-grid-stage, +.x6-graph-svg-stage { + user-select: none; +} +.x6-graph.x6-graph-pannable { + cursor: grab; + cursor: -moz-grab; + cursor: -webkit-grab; +} +.x6-graph.x6-graph-panning { + cursor: grabbing; + cursor: -moz-grabbing; + cursor: -webkit-grabbing; + user-select: none; +} +.x6-node { + cursor: move; + /* stylelint-disable-next-line */ +} +.x6-node.x6-node-immovable { + cursor: default; +} +.x6-node * { + -webkit-user-drag: none; +} +.x6-node .scalable * { + vector-effect: non-scaling-stroke; +} +.x6-node [magnet='true'] { + cursor: crosshair; + transition: opacity 0.3s; +} +.x6-node [magnet='true']:hover { + opacity: 0.7; +} +.x6-node foreignObject { + display: block; + overflow: visible; + background-color: transparent; +} +.x6-node foreignObject > body { + position: static; + width: 100%; + height: 100%; + margin: 0; + padding: 0; + overflow: visible; + background-color: transparent; +} +.x6-edge .source-marker, +.x6-edge .target-marker { + vector-effect: non-scaling-stroke; +} +.x6-edge .connection { + stroke-linejoin: round; + fill: none; +} +.x6-edge .connection-wrap { + cursor: move; + opacity: 0; + fill: none; + stroke: #000; + stroke-width: 15; + stroke-linecap: round; + stroke-linejoin: round; +} +.x6-edge .connection-wrap:hover { + opacity: 0.4; + stroke-opacity: 0.4; +} +.x6-edge .vertices { + cursor: move; + opacity: 0; +} +.x6-edge .vertices .vertex { + fill: #1abc9c; +} +.x6-edge .vertices .vertex :hover { + fill: #34495e; + stroke: none; +} +.x6-edge .vertices .vertex-remove { + cursor: pointer; + fill: #fff; +} +.x6-edge .vertices .vertex-remove-area { + cursor: pointer; + opacity: 0.1; +} +.x6-edge .vertices .vertex-group:hover .vertex-remove-area { + opacity: 1; +} +.x6-edge .arrowheads { + cursor: move; + opacity: 0; +} +.x6-edge .arrowheads .arrowhead { + fill: #1abc9c; +} +.x6-edge .arrowheads .arrowhead :hover { + fill: #f39c12; + stroke: none; +} +.x6-edge .tools { + cursor: pointer; + opacity: 0; +} +.x6-edge .tools .tool-options { + display: none; +} +.x6-edge .tools .tool-remove circle { + fill: #f00; +} +.x6-edge .tools .tool-remove path { + fill: #fff; +} +.x6-edge:hover .vertices, +.x6-edge:hover .arrowheads, +.x6-edge:hover .tools { + opacity: 1; +} +.x6-highlight-opacity { + opacity: 0.3; +} +.x6-cell-tool-editor { + position: relative; + display: inline-block; + min-height: 1em; + margin: 0; + padding: 0; + line-height: 1; + white-space: normal; + text-align: center; + vertical-align: top; + overflow-wrap: normal; + outline: none; + transform-origin: 0 0; + -webkit-user-drag: none; +} +.x6-edge-tool-editor { + border: 1px solid #275fc5; + border-radius: 2px; +} +`;class no extends hi{get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}constructor(e){super(),this.graph=e,this.init()}init(){}}var qce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class Qb extends no{init(){ele("core",Wce)}dispose(){tle("core")}}qce([Qb.dispose()],Qb.prototype,"dispose",null);var Gce=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{const h=n[f];typeof h=="boolean"?u[f].enabled=h:u[f]=Object.assign(Object.assign({},u[f]),h)}),u}t.get=e})(Yd||(Yd={}));(function(t){t.defaults={x:0,y:0,scaling:{min:.01,max:16},grid:{size:10,visible:!1},background:!1,panning:{enabled:!1,eventTypes:["leftMouseDown"]},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:is.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:is.prefix("available-magnet")}}},connecting:{snap:!1,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,allowBlank:!0,allowMulti:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",router:"normal",connector:"normal",validateConnection({type:e,sourceView:n,targetView:o}){return(e==="target"?o:n)!=null},createEdge(){return new Bce}},translating:{restrict:!1},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:()=>!0},moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},async:!0,virtual:!1,guard:()=>!1}})(Yd||(Yd={}));var Kce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},Jce=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{const c=`pattern_${u}`,d=o.a||1,f=o.d||1,{update:h,markup:p}=a,g=Jce(a,["update","markup"]),v=Object.assign(Object.assign(Object.assign({},g),s[u]),{sx:d,sy:f,ox:o.e||0,oy:o.f||0,width:n*d,height:n*f});r.has(c)||r.add(c,ht.create("pattern",{id:c,patternUnits:"userSpaceOnUse"},ht.createVectors(p)).node);const m=r.get(c);typeof h=="function"&&h(m.childNodes[0],v);let C=v.ox%v.width;C<0&&(C+=v.width);let y=v.oy%v.height;y<0&&(y+=v.height),Qt(m,{x:C,y,width:v.width,height:v.height})});const i=new XMLSerializer().serializeToString(r.root),l=`url(data:image/svg+xml;base64,${btoa(i)})`;this.elem.style.backgroundImage=l}getInstance(){return this.instance||(this.instance=new el),this.instance}resolveGrid(e){if(!e)return[];const n=e.type;if(n==null)return[Object.assign(Object.assign({},el.presets.dot),e.args)];const o=el.registry.get(n);if(o){let r=e.args||[];return Array.isArray(r)||(r=[r]),Array.isArray(o)?o.map((s,i)=>Object.assign(Object.assign({},s),r[i])):[Object.assign(Object.assign({},o),r[0])]}return el.registry.onNotFound(n)}dispose(){this.stopListening(),this.clear()}}Kce([no.dispose()],r1.prototype,"dispose",null);class FN extends no{get container(){return this.graph.view.container}get viewport(){return this.graph.view.viewport}get stage(){return this.graph.view.stage}init(){this.resize()}getMatrix(){const e=this.viewport.getAttribute("transform");return e!==this.viewportTransformString&&(this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=e),to(this.viewportMatrix)}setMatrix(e){const n=to(e),o=uc(n);this.viewport.setAttribute("transform",o),this.viewportMatrix=n,this.viewportTransformString=o}resize(e,n){let o=e===void 0?this.options.width:e,r=n===void 0?this.options.height:n;this.options.width=o,this.options.height=r,typeof o=="number"&&(o=Math.round(o)),typeof r=="number"&&(r=Math.round(r)),this.container.style.width=o==null?"":`${o}px`,this.container.style.height=r==null?"":`${r}px`;const s=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},s)),this}getComputedSize(){let e=this.options.width,n=this.options.height;return TC(e)||(e=this.container.clientWidth),TC(n)||(n=this.container.clientHeight),{width:e,height:n}}getScale(){return Wie(this.getMatrix())}scale(e,n=e,o=0,r=0){if(e=this.clampScale(e),n=this.clampScale(n),o||r){const i=this.getTranslation(),l=i.tx-o*(e-1),a=i.ty-r*(n-1);(l!==i.tx||a!==i.ty)&&this.translate(l,a)}const s=this.getMatrix();return s.a=e,s.d=n,this.setMatrix(s),this.graph.trigger("scale",{sx:e,sy:n,ox:o,oy:r}),this}clampScale(e){const n=this.graph.options.scaling;return xr(e,n.min||.01,n.max||16)}getZoom(){return this.getScale().sx}zoom(e,n){n=n||{};let o=e,r=e;const s=this.getScale(),i=this.getComputedSize();let l=i.width/2,a=i.height/2;if(n.absolute||(o+=s.sx,r+=s.sy),n.scaleGrid&&(o=Math.round(o/n.scaleGrid)*n.scaleGrid,r=Math.round(r/n.scaleGrid)*n.scaleGrid),n.maxScale&&(o=Math.min(n.maxScale,o),r=Math.min(n.maxScale,r)),n.minScale&&(o=Math.max(n.minScale,o),r=Math.max(n.minScale,r)),n.center&&(l=n.center.x,a=n.center.y),o=this.clampScale(o),r=this.clampScale(r),l||a){const u=this.getTranslation(),c=l-(l-u.tx)*(o/s.sx),d=a-(a-u.ty)*(r/s.sy);(c!==u.tx||d!==u.ty)&&this.translate(c,d)}return this.scale(o,r),this}getRotation(){return qie(this.getMatrix())}rotate(e,n,o){if(n==null||o==null){const s=qt.getBBox(this.stage);n=s.width/2,o=s.height/2}const r=this.getMatrix().translate(n,o).rotate(e).translate(-n,-o);return this.setMatrix(r),this}getTranslation(){return Gie(this.getMatrix())}translate(e,n){const o=this.getMatrix();o.e=e||0,o.f=n||0,this.setMatrix(o);const r=this.getTranslation();return this.options.x=r.tx,this.options.y=r.ty,this.graph.trigger("translate",Object.assign({},r)),this}setOrigin(e,n){return this.translate(e||0,n||0)}fitToContent(e,n,o,r){if(typeof e=="object"){const y=e;e=y.gridWidth||1,n=y.gridHeight||1,o=y.padding||0,r=y}else e=e||1,n=n||1,o=o||0,r==null&&(r={});const s=wa(o),i=r.border||0,l=r.contentArea?ze.create(r.contentArea):this.getContentArea(r);i>0&&l.inflate(i);const a=this.getScale(),u=this.getTranslation(),c=a.sx,d=a.sy;l.x*=c,l.y*=d,l.width*=c,l.height*=d;let f=Math.max(Math.ceil((l.width+l.x)/e),1)*e,h=Math.max(Math.ceil((l.height+l.y)/n),1)*n,p=0,g=0;(r.allowNewOrigin==="negative"&&l.x<0||r.allowNewOrigin==="positive"&&l.x>=0||r.allowNewOrigin==="any")&&(p=Math.ceil(-l.x/e)*e,p+=s.left,f+=p),(r.allowNewOrigin==="negative"&&l.y<0||r.allowNewOrigin==="positive"&&l.y>=0||r.allowNewOrigin==="any")&&(g=Math.ceil(-l.y/n)*n,g+=s.top,h+=g),f+=s.right,h+=s.bottom,f=Math.max(f,r.minWidth||0),h=Math.max(h,r.minHeight||0),f=Math.min(f,r.maxWidth||Number.MAX_SAFE_INTEGER),h=Math.min(h,r.maxHeight||Number.MAX_SAFE_INTEGER);const v=this.getComputedSize(),m=f!==v.width||h!==v.height;return(p!==u.tx||g!==u.ty)&&this.translate(p,g),m&&this.resize(f,h),new ze(-p/c,-g/d,f/c,h/d)}scaleContentToFit(e={}){this.scaleContentToFitImpl(e)}scaleContentToFitImpl(e={},n=!0){let o,r;if(e.contentArea){const m=e.contentArea;o=this.graph.localToGraph(m),r=X.create(m)}else o=this.getContentBBox(e),r=this.graph.graphToLocal(o);if(!o.width||!o.height)return;const s=wa(e.padding),i=e.minScale||0,l=e.maxScale||Number.MAX_SAFE_INTEGER,a=e.minScaleX||i,u=e.maxScaleX||l,c=e.minScaleY||i,d=e.maxScaleY||l;let f;if(e.viewportArea)f=e.viewportArea;else{const m=this.getComputedSize(),C=this.getTranslation();f={x:C.tx,y:C.ty,width:m.width,height:m.height}}f=ze.create(f).moveAndExpand({x:s.left,y:s.top,width:-s.left-s.right,height:-s.top-s.bottom});const h=this.getScale();let p=f.width/o.width*h.sx,g=f.height/o.height*h.sy;e.preserveAspectRatio!==!1&&(p=g=Math.min(p,g));const v=e.scaleGrid;if(v&&(p=v*Math.floor(p/v),g=v*Math.floor(g/v)),p=xr(p,a,u),g=xr(g,c,d),this.scale(p,g),n){const m=this.options,C=f.x-r.x*p-m.x,y=f.y-r.y*g-m.y;this.translate(C,y)}}getContentArea(e={}){return e.useCellGeometry!==!1?this.model.getAllCellsBBox()||new ze:qt.getBBox(this.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=ze.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,n={}){const o=ze.create(e),r=this.graph;n.contentArea=o,n.viewportArea==null&&(n.viewportArea={x:r.options.x,y:r.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(n,!1);const s=o.getCenter();return this.centerPoint(s.x,s.y),this}zoomToFit(e={}){return this.zoomToRect(this.getContentArea(e),e)}centerPoint(e,n){const o=this.getComputedSize(),r=this.getScale(),s=this.getTranslation(),i=o.width/2,l=o.height/2;e=typeof e=="number"?e:i,n=typeof n=="number"?n:l,e=i-e*r.sx,n=l-n*r.sy,(s.tx!==e||s.ty!==n)&&this.translate(e,n)}centerContent(e){const o=this.graph.getContentArea(e).getCenter();this.centerPoint(o.x,o.y)}centerCell(e){return this.positionCell(e,"center")}positionPoint(e,n,o){const r=this.getComputedSize();n=Yr(n,Math.max(0,r.width)),n<0&&(n=r.width+n),o=Yr(o,Math.max(0,r.height)),o<0&&(o=r.height+o);const s=this.getTranslation(),i=this.getScale(),l=n-e.x*i.sx,a=o-e.y*i.sy;(s.tx!==l||s.ty!==a)&&this.translate(l,a)}positionRect(e,n){const o=ze.create(e);switch(n){case"center":return this.positionPoint(o.getCenter(),"50%","50%");case"top":return this.positionPoint(o.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(o.getTopRight(),"100%",0);case"right":return this.positionPoint(o.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(o.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(o.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(o.getBottomLeft(),0,"100%");case"left":return this.positionPoint(o.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(o.getTopLeft(),0,0);default:return this}}positionCell(e,n){const o=e.getBBox();return this.positionRect(o,n)}positionContent(e,n){const o=this.graph.getContentArea(n);return this.positionRect(o,e)}}var Yce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class s1 extends no{get elem(){return this.view.background}init(){this.startListening(),this.options.background&&this.draw(this.options.background)}startListening(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}stopListening(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}updateBackgroundImage(e={}){let n=e.size||"auto auto",o=e.position||"center";const r=this.graph.transform.getScale(),s=this.graph.translate();if(typeof o=="object"){const i=s.tx+r.sx*(o.x||0),l=s.ty+r.sy*(o.y||0);o=`${i}px ${l}px`}typeof n=="object"&&(n=ze.fromSize(n).scale(r.sx,r.sy),n=`${n.width}px ${n.height}px`),this.elem.style.backgroundSize=n,this.elem.style.backgroundPosition=o}drawBackgroundImage(e,n={}){if(!(e instanceof HTMLImageElement)){this.elem.style.backgroundImage="";return}const o=this.optionsCache;if(o&&o.image!==n.image)return;let r;const s=n.opacity,i=n.size;let l=n.repeat||"no-repeat";const a=Wd.registry.get(l);if(typeof a=="function"){const c=n.quality||1;e.width*=c,e.height*=c;const d=a(e,n);if(!(d instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");r=d.toDataURL("image/png"),n.repeat&&l!==n.repeat?l=n.repeat:l="repeat",typeof i=="object"?(i.width*=d.width/e.width,i.height*=d.height/e.height):i===void 0&&(n.size={width:d.width/c,height:d.height/c})}else r=e.src,i===void 0&&(n.size={width:e.width,height:e.height});o!=null&&typeof n.size=="object"&&n.image===o.image&&n.repeat===o.repeat&&n.quality===o.quality&&(o.size=Ed(n.size));const u=this.elem.style;u.backgroundImage=`url(${r})`,u.backgroundRepeat=l,u.opacity=s==null||s>=1?"":`${s}`,this.updateBackgroundImage(n)}updateBackgroundColor(e){this.elem.style.backgroundColor=e||""}updateBackgroundOptions(e){this.graph.options.background=e}update(){this.optionsCache&&this.updateBackgroundImage(this.optionsCache)}draw(e){const n=e||{};if(this.updateBackgroundOptions(e),this.updateBackgroundColor(n.color),n.image){this.optionsCache=Ed(n);const o=document.createElement("img");o.onload=()=>this.drawBackgroundImage(o,e),o.setAttribute("crossorigin","anonymous"),o.src=n.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}Yce([no.dispose()],s1.prototype,"dispose",null);var Xce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class i1 extends no{get widgetOptions(){return this.options.panning}get pannable(){return this.widgetOptions&&this.widgetOptions.enabled===!0}init(){this.onRightMouseDown=this.onRightMouseDown.bind(this),this.onSpaceKeyDown=this.onSpaceKeyDown.bind(this),this.onSpaceKeyUp=this.onSpaceKeyUp.bind(this),this.startListening(),this.updateClassName()}startListening(){this.graph.on("blank:mousedown",this.onMouseDown,this),this.graph.on("node:unhandled:mousedown",this.onMouseDown,this),this.graph.on("edge:unhandled:mousedown",this.onMouseDown,this),ro.on(this.graph.container,"mousedown",this.onRightMouseDown),ro.on(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle=new UP(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()}stopListening(){this.graph.off("blank:mousedown",this.onMouseDown,this),this.graph.off("node:unhandled:mousedown",this.onMouseDown,this),this.graph.off("edge:unhandled:mousedown",this.onMouseDown,this),ro.off(this.graph.container,"mousedown",this.onRightMouseDown),ro.off(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle&&this.mousewheelHandle.disable()}allowPanning(e,n){return e.spaceKey=this.isSpaceKeyPressed,this.pannable&&Fu.isMatch(e,this.widgetOptions.modifiers,n)}startPanning(e){const n=this.view.normalizeEvent(e);this.clientX=n.clientX,this.clientY=n.clientY,this.panning=!0,this.updateClassName(),ro.on(document.body,{"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this),"mouseleave.panning":this.stopPanning.bind(this)}),ro.on(window,"mouseup.panning",this.stopPanning.bind(this))}pan(e){const n=this.view.normalizeEvent(e),o=n.clientX-this.clientX,r=n.clientY-this.clientY;this.clientX=n.clientX,this.clientY=n.clientY,this.graph.translateBy(o,r)}stopPanning(e){this.panning=!1,this.updateClassName(),ro.off(document.body,".panning"),ro.off(window,".panning")}updateClassName(){const e=this.view.container,n=this.view.prefixClassName("graph-panning"),o=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(Dt(e,n),Er(e,o)):(Er(e,n),Dt(e,o)):(Er(e,n),Er(e,o))}onMouseDown({e}){if(!this.allowBlankMouseDown(e))return;const n=this.graph.getPlugin("selection"),o=n&&n.allowRubberband(e,!0);(this.allowPanning(e,!0)||this.allowPanning(e)&&!o)&&this.startPanning(e)}onRightMouseDown(e){const n=this.widgetOptions.eventTypes;n!=null&&n.includes("rightMouseDown")&&e.button===2&&this.allowPanning(e,!0)&&this.startPanning(e)}onMouseWheel(e,n,o){this.graph.translateBy(-n,-o)}onSpaceKeyDown(e){e.which===32&&(this.isSpaceKeyPressed=!0)}onSpaceKeyUp(e){e.which===32&&(this.isSpaceKeyPressed=!1)}allowBlankMouseDown(e){const n=this.widgetOptions.eventTypes;return(n==null?void 0:n.includes("leftMouseDown"))&&e.button===0||(n==null?void 0:n.includes("mouseWheelDown"))&&e.button===1}allowMouseWheel(e){var n;return this.pannable&&!e.ctrlKey&&((n=this.widgetOptions.eventTypes)===null||n===void 0?void 0:n.includes("mouseWheel"))}autoPanning(e,n){const r=this.graph.getGraphArea();let s=0,i=0;e<=r.left+10&&(s=-10),n<=r.top+10&&(i=-10),e>=r.right-10&&(s=10),n>=r.bottom-10&&(i=10),(s!==0||i!==0)&&this.graph.translateBy(-s,-i)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}Xce([no.dispose()],i1.prototype,"dispose",null);var Zce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class l1 extends no{constructor(){super(...arguments),this.cumulatedFactor=1}get widgetOptions(){return this.options.mousewheel}init(){this.container=this.graph.container,this.target=this.widgetOptions.global?document:this.container,this.mousewheelHandle=new UP(this.target,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.widgetOptions.enabled&&this.enable(!0)}get disabled(){return this.widgetOptions.enabled!==!0}enable(e){(this.disabled||e)&&(this.widgetOptions.enabled=!0,this.mousewheelHandle.enable())}disable(){this.disabled||(this.widgetOptions.enabled=!1,this.mousewheelHandle.disable())}allowMouseWheel(e){const n=this.widgetOptions.guard;return(n==null||n(e))&&Fu.isMatch(e,this.widgetOptions.modifiers)}onMouseWheel(e){const n=this.widgetOptions.guard;if((n==null||n(e))&&Fu.isMatch(e,this.widgetOptions.modifiers)){const o=this.widgetOptions.factor||1.2;this.currentScale==null&&(this.startPos={x:e.clientX,y:e.clientY},this.currentScale=this.graph.transform.getScale().sx),e.deltaY<0?this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:(this.cumulatedFactor=Math.round(this.currentScale*o*20)/20/this.currentScale,this.cumulatedFactor===1&&(this.cumulatedFactor=1.05)):this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:(this.cumulatedFactor=Math.round(this.currentScale*(1/o)*20)/20/this.currentScale,this.cumulatedFactor===1&&(this.cumulatedFactor=.95)),this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);const s=this.currentScale;let i=this.graph.transform.clampScale(s*this.cumulatedFactor);const l=this.widgetOptions.minScale||Number.MIN_SAFE_INTEGER,a=this.widgetOptions.maxScale||Number.MAX_SAFE_INTEGER;if(i=xr(i,l,a),i!==s)if(this.widgetOptions.zoomAtMousePosition){const c=!!this.graph.getPlugin("scroller")?this.graph.clientToLocal(this.startPos):this.graph.clientToGraph(this.startPos);this.graph.zoom(i,{absolute:!0,center:c.clone()})}else this.graph.zoom(i,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}Zce([hi.dispose()],l1.prototype,"dispose",null);var Qce=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class zN extends no{init(){this.resetRenderArea=xh(this.resetRenderArea,200,{leading:!0}),this.resetRenderArea(),this.startListening()}startListening(){this.graph.on("translate",this.resetRenderArea,this),this.graph.on("scale",this.resetRenderArea,this),this.graph.on("resize",this.resetRenderArea,this)}stopListening(){this.graph.off("translate",this.resetRenderArea,this),this.graph.off("scale",this.resetRenderArea,this),this.graph.off("resize",this.resetRenderArea,this)}enableVirtualRender(){this.options.virtual=!0,this.resetRenderArea()}disableVirtualRender(){this.options.virtual=!1,this.graph.renderer.setRenderArea(void 0)}resetRenderArea(){if(this.options.virtual){const e=this.graph.getGraphArea();this.graph.renderer.setRenderArea(e)}}dispose(){this.stopListening()}}Qce([no.dispose()],zN.prototype,"dispose",null);class ede{constructor(){this.isFlushing=!1,this.isFlushPending=!1,this.scheduleId=0,this.queue=[],this.frameInterval=33,this.initialTime=Date.now()}queueJob(e){if(e.priority&Xs.PRIOR)e.cb();else{const n=this.findInsertionIndex(e);n>=0&&this.queue.splice(n,0,e)}}queueFlush(){!this.isFlushing&&!this.isFlushPending&&(this.isFlushPending=!0,this.scheduleJob())}queueFlushSync(){!this.isFlushing&&!this.isFlushPending&&(this.isFlushPending=!0,this.flushJobsSync())}clearJobs(){this.queue.length=0,this.isFlushing=!1,this.isFlushPending=!1,this.cancelScheduleJob()}flushJobs(){this.isFlushPending=!1,this.isFlushing=!0;const e=this.getCurrentTime();let n;for(;(n=this.queue.shift())&&(n.cb(),!(this.getCurrentTime()-e>=this.frameInterval)););this.isFlushing=!1,this.queue.length&&this.queueFlush()}flushJobsSync(){this.isFlushPending=!1,this.isFlushing=!0;let e;for(;e=this.queue.shift();)try{e.cb()}catch{}this.isFlushing=!1}findInsertionIndex(e){let n=0,o=this.queue.length,r=o-1;const s=e.priority;for(;n<=r;){const i=(r-n>>1)+n;s<=this.queue[i].priority?n=i+1:(o=i,r=i-1)}return o}scheduleJob(){"requestIdleCallback"in window?(this.scheduleId&&this.cancelScheduleJob(),this.scheduleId=window.requestIdleCallback(this.flushJobs.bind(this),{timeout:100})):(this.scheduleId&&this.cancelScheduleJob(),this.scheduleId=window.setTimeout(this.flushJobs.bind(this)))}cancelScheduleJob(){"cancelIdleCallback"in window?(this.scheduleId&&window.cancelIdleCallback(this.scheduleId),this.scheduleId=0):(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduleId=0)}getCurrentTime(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()-this.initialTime}}var Xs;(function(t){t[t.Update=2]="Update",t[t.RenderEdge=4]="RenderEdge",t[t.RenderNode=8]="RenderNode",t[t.PRIOR=1048576]="PRIOR"})(Xs||(Xs={}));var tde=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class Rn extends hi{get model(){return this.graph.model}get container(){return this.graph.view.stage}constructor(e){super(),this.views={},this.willRemoveViews={},this.queue=new ede,this.graph=e,this.init()}init(){this.startListening(),this.renderViews(this.model.getCells())}startListening(){this.model.on("reseted",this.onModelReseted,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}stopListening(){this.model.off("reseted",this.onModelReseted,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}onModelReseted({options:e}){this.queue.clearJobs(),this.removeZPivots(),this.resetViews();const n=this.model.getCells();this.renderViews(n,Object.assign(Object.assign({},e),{queue:n.map(o=>o.id)}))}onCellAdded({cell:e,options:n}){this.renderViews([e],n)}onCellRemoved({cell:e}){this.removeViews([e])}onCellZIndexChanged({cell:e,options:n}){const o=this.views[e.id];o&&this.requestViewUpdate(o.view,Rn.FLAG_INSERT,n,Xs.Update,!0)}onCellVisibleChanged({cell:e,current:n}){this.toggleVisible(e,!!n)}requestViewUpdate(e,n,o={},r=Xs.Update,s=!0){const i=e.cell.id,l=this.views[i];if(!l)return;l.flag=n,l.options=o,(e.hasAction(n,["translate","resize","rotate"])||o.async===!1)&&(r=Xs.PRIOR,s=!1),this.queue.queueJob({id:i,priority:r,cb:()=>{this.renderViewInArea(e,n,o);const c=o.queue;if(c){const d=c.indexOf(e.cell.id);d>=0&&c.splice(d,1),c.length===0&&this.graph.trigger("render:done")}}}),this.getEffectedEdges(e).forEach(c=>{this.requestViewUpdate(c.view,c.flag,o,r,!1)}),s&&this.flush()}setRenderArea(e){this.renderArea=e,this.flushWaitingViews()}isViewMounted(e){if(e==null)return!1;const n=this.views[e.cell.id];return n?n.state===Rn.ViewState.MOUNTED:!1}renderViews(e,n={}){e.sort((o,r)=>o.isNode()&&r.isEdge()?-1:0),e.forEach(o=>{const r=o.id,s=this.views;let i=0,l=s[r];if(l)i=Rn.FLAG_INSERT;else{const a=this.createCellView(o);a&&(a.graph=this.graph,i=Rn.FLAG_INSERT|a.getBootstrapFlag(),l={view:a,flag:i,options:n,state:Rn.ViewState.CREATED},this.views[r]=l)}l&&this.requestViewUpdate(l.view,i,n,this.getRenderPriority(l.view),!1)}),this.flush()}renderViewInArea(e,n,o={}){const r=e.cell,s=r.id,i=this.views[s];if(!i)return;let l=0;this.isUpdatable(e)?(l=this.updateView(e,n,o),i.flag=l):i.state===Rn.ViewState.MOUNTED?(l=this.updateView(e,n,o),i.flag=l):i.state=Rn.ViewState.WAITING,l&&r.isEdge()&&!(l&e.getFlag(["source","target"]))&&this.queue.queueJob({id:s,priority:Xs.RenderEdge,cb:()=>{this.updateView(e,n,o)}})}removeViews(e){e.forEach(n=>{const o=n.id,r=this.views[o];r&&(this.willRemoveViews[o]=r,delete this.views[o],this.queue.queueJob({id:o,priority:this.getRenderPriority(r.view),cb:()=>{this.removeView(r.view)}}))}),this.flush()}flush(){this.graph.options.async?this.queue.queueFlush():this.queue.queueFlushSync()}flushWaitingViews(){Object.values(this.views).forEach(e=>{if(e&&e.state===Rn.ViewState.WAITING){const{view:n,flag:o,options:r}=e;this.requestViewUpdate(n,o,r,this.getRenderPriority(n),!1)}}),this.flush()}updateView(e,n,o={}){if(e==null)return 0;if(On.isCellView(e)){if(n&Rn.FLAG_REMOVE)return this.removeView(e.cell),0;n&Rn.FLAG_INSERT&&(this.insertView(e),n^=Rn.FLAG_INSERT)}return n?e.confirmUpdate(n,o):0}insertView(e){const n=this.views[e.cell.id];if(n){const o=e.cell.getZIndex(),r=this.addZPivot(o);this.container.insertBefore(e.container,r),e.cell.isVisible()||this.toggleVisible(e.cell,!1),n.state=Rn.ViewState.MOUNTED,this.graph.trigger("view:mounted",{view:e})}}resetViews(){this.willRemoveViews=Object.assign(Object.assign({},this.views),this.willRemoveViews),Object.values(this.willRemoveViews).forEach(e=>{e&&this.removeView(e.view)}),this.views={},this.willRemoveViews={}}removeView(e){const n=e.cell,o=this.willRemoveViews[n.id];o&&e&&(o.view.remove(),delete this.willRemoveViews[n.id],this.graph.trigger("view:unmounted",{view:e}))}toggleVisible(e,n){const o=this.model.getConnectedEdges(e);for(let s=0,i=o.length;sr&&(r=l,e-1)}const s=this.container;if(r!==-1/0){const i=n[r];s.insertBefore(o,i.nextSibling)}else s.insertBefore(o,s.firstChild);return o}removeZPivots(){this.zPivots&&Object.values(this.zPivots).forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),this.zPivots={}}createCellView(e){const n={graph:this.graph},o=this.graph.options.createCellView;if(o){const s=vt(o,this.graph,e);if(s)return new s(e,n);if(s===null)return null}const r=e.view;if(r!=null&&typeof r=="string"){const s=On.registry.get(r);return s?new s(e,n):On.registry.onNotFound(r)}return e.isNode()?new ur(e,n):e.isEdge()?new gi(e,n):null}getEffectedEdges(e){const n=[],o=e.cell,r=this.model.getConnectedEdges(o);for(let s=0,i=r.length;s{this.views[e].view.dispose()}),this.views={}}}tde([hi.dispose()],Rn.prototype,"dispose",null);(function(t){t.FLAG_INSERT=1<<30,t.FLAG_REMOVE=1<<29,t.FLAG_RENDER=(1<<26)-1})(Rn||(Rn={}));(function(t){(function(e){e[e.CREATED=0]="CREATED",e[e.MOUNTED=1]="MOUNTED",e[e.WAITING=2]="WAITING"})(t.ViewState||(t.ViewState={}))})(Rn||(Rn={}));var nde=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class a1 extends no{constructor(){super(...arguments),this.schedule=new Rn(this.graph)}requestViewUpdate(e,n,o={}){this.schedule.requestViewUpdate(e,n,o)}isViewMounted(e){return this.schedule.isViewMounted(e)}setRenderArea(e){this.schedule.setRenderArea(e)}findViewByElem(e){if(e==null)return null;const n=this.options.container,o=typeof e=="string"?n.querySelector(e):e instanceof Element?e:e[0];if(o){const r=this.graph.view.findAttr("data-cell-id",o);if(r){const s=this.schedule.views;if(s[r])return s[r].view}}return null}findViewByCell(e){if(e==null)return null;const n=Pt.isCell(e)?e.id:e,o=this.schedule.views;return o[n]?o[n].view:null}findViewsFromPoint(e){const n={x:e.x,y:e.y};return this.model.getCells().map(o=>this.findViewByCell(o)).filter(o=>o!=null?qt.getBBox(o.container,{target:this.view.stage}).containsPoint(n):!1)}findEdgeViewsFromPoint(e,n=5){return this.model.getEdges().map(o=>this.findViewByCell(o)).filter(o=>{if(o!=null){const r=o.getClosestPoint(e);if(r)return r.distance(e)<=n}return!1})}findViewsInArea(e,n={}){const o=ze.create(e);return this.model.getCells().map(r=>this.findViewByCell(r)).filter(r=>{if(r){if(n.nodeOnly&&!r.isNodeView())return!1;const s=qt.getBBox(r.container,{target:this.view.stage});return s.width===0?s.inflate(1,0):s.height===0&&s.inflate(0,1),n.strict?o.containsRect(s):o.isIntersectWithRect(s)}return!1})}dispose(){this.schedule.dispose()}}nde([no.dispose()],a1.prototype,"dispose",null);var j2=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r{const u=a.opacity!=null&&Number.isFinite(a.opacity)?a.opacity:1;return``}),i=`<${o}>${s.join("")}`,l=Object.assign({id:n},e.attrs);ht.create(i,l).appendTo(this.defs)}return n}marker(e){const{id:n,refX:o,refY:r,markerUnits:s,markerOrient:i,tagName:l,children:a}=e,u=j2(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let c=n;if(c||(c=`marker-${this.cid}-${iv(JSON.stringify(e))}`),!this.isDefined(c)){l!=="path"&&delete u.d;const d=ht.create("marker",{refX:o,refY:r,id:c,overflow:"visible",orient:i??"auto",markerUnits:s||"userSpaceOnUse"},a?a.map(f=>{var{tagName:h}=f,p=j2(f,["tagName"]);return ht.create(`${h}`||"path",zd(Object.assign(Object.assign({},u),p)))}):[ht.create(l||"path",zd(u))]);this.defs.appendChild(d.node)}return c}remove(e){const n=this.svg.getElementById(e);n&&n.parentNode&&n.parentNode.removeChild(n)}}class HN extends no{getClientMatrix(){return to(this.view.stage.getScreenCTM())}getClientOffset(){const e=this.view.svg.getBoundingClientRect();return new X(e.left,e.top)}getPageOffset(){return this.getClientOffset().translate(window.scrollX,window.scrollY)}snapToGrid(e,n){return(typeof e=="number"?this.clientToLocalPoint(e,n):this.clientToLocalPoint(e.x,e.y)).snapToGrid(this.graph.getGridSize())}localToGraphPoint(e,n){const o=X.create(e,n);return qt.transformPoint(o,this.graph.matrix())}localToClientPoint(e,n){const o=X.create(e,n);return qt.transformPoint(o,this.getClientMatrix())}localToPagePoint(e,n){return(typeof e=="number"?this.localToGraphPoint(e,n):this.localToGraphPoint(e)).translate(this.getPageOffset())}localToGraphRect(e,n,o,r){const s=ze.create(e,n,o,r);return qt.transformRectangle(s,this.graph.matrix())}localToClientRect(e,n,o,r){const s=ze.create(e,n,o,r);return qt.transformRectangle(s,this.getClientMatrix())}localToPageRect(e,n,o,r){return(typeof e=="number"?this.localToGraphRect(e,n,o,r):this.localToGraphRect(e)).translate(this.getPageOffset())}graphToLocalPoint(e,n){const o=X.create(e,n);return qt.transformPoint(o,this.graph.matrix().inverse())}clientToLocalPoint(e,n){const o=X.create(e,n);return qt.transformPoint(o,this.getClientMatrix().inverse())}clientToGraphPoint(e,n){const o=X.create(e,n);return qt.transformPoint(o,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,n){const r=X.create(e,n).diff(this.getPageOffset());return this.graphToLocalPoint(r)}graphToLocalRect(e,n,o,r){const s=ze.create(e,n,o,r);return qt.transformRectangle(s,this.graph.matrix().inverse())}clientToLocalRect(e,n,o,r){const s=ze.create(e,n,o,r);return qt.transformRectangle(s,this.getClientMatrix().inverse())}clientToGraphRect(e,n,o,r){const s=ze.create(e,n,o,r);return qt.transformRectangle(s,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,n,o,r){const s=ze.create(e,n,o,r),i=this.getPageOffset();return s.x-=i.x,s.y-=i.y,this.graphToLocalRect(s)}}var ode=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class Lp extends no{constructor(){super(...arguments),this.highlights={}}init(){this.startListening()}startListening(){this.graph.on("cell:highlight",this.onCellHighlight,this),this.graph.on("cell:unhighlight",this.onCellUnhighlight,this)}stopListening(){this.graph.off("cell:highlight",this.onCellHighlight,this),this.graph.off("cell:unhighlight",this.onCellUnhighlight,this)}onCellHighlight({view:e,magnet:n,options:o={}}){const r=this.resolveHighlighter(o);if(!r)return;const s=this.getHighlighterId(n,r);if(!this.highlights[s]){const i=r.highlighter;i.highlight(e,n,Object.assign({},r.args)),this.highlights[s]={cellView:e,magnet:n,highlighter:i,args:r.args}}}onCellUnhighlight({magnet:e,options:n={}}){const o=this.resolveHighlighter(n);if(!o)return;const r=this.getHighlighterId(e,o);this.unhighlight(r)}resolveHighlighter(e){const n=this.options;let o=e.highlighter;if(o==null){const l=e.type;o=l&&n.highlighting[l]||n.highlighting.default}if(o==null)return null;const r=typeof o=="string"?{name:o}:o,s=r.name,i=ai.registry.get(s);return i==null?ai.registry.onNotFound(s):(ai.check(s,i),{name:s,highlighter:i,args:r.args||{}})}getHighlighterId(e,n){return Jy(e),n.name+e.id+JSON.stringify(n.args)}unhighlight(e){const n=this.highlights[e];n&&(n.highlighter.unhighlight(n.cellView,n.magnet,n.args),delete this.highlights[e])}dispose(){Object.keys(this.highlights).forEach(e=>this.unhighlight(e)),this.stopListening()}}ode([Lp.dispose()],Lp.prototype,"dispose",null);var rde=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class UN extends no{getScroller(){const e=this.graph.getPlugin("scroller");return e&&e.options.enabled?e:null}getContainer(){const e=this.getScroller();return e?e.container.parentElement:this.graph.container.parentElement}getSensorTarget(){const e=this.options.autoResize;if(e)return typeof e=="boolean"?this.getContainer():e}init(){if(this.options.autoResize){const n=this.getSensorTarget();n&&Op.bind(n,()=>{const o=n.offsetWidth,r=n.offsetHeight;this.resize(o,r)})}}resize(e,n){const o=this.getScroller();o?o.resize(e,n):this.graph.transform.resize(e,n)}dispose(){Op.clear(this.graph.container)}}rde([no.dispose()],UN.prototype,"dispose",null);var sde=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s};class To extends ar{get container(){return this.options.container}get[Symbol.toStringTag](){return To.toStringTag}constructor(e){super(),this.installedPlugins=new Set,this.options=Yd.get(e),this.css=new Qb(this),this.view=new Is(this),this.defs=new jN(this),this.coord=new HN(this),this.transform=new FN(this),this.highlight=new Lp(this),this.grid=new r1(this),this.background=new s1(this),this.options.model?this.model=this.options.model:(this.model=new Xr,this.model.graph=this),this.renderer=new a1(this),this.panning=new i1(this),this.mousewheel=new l1(this),this.virtualRender=new zN(this),this.size=new UN(this)}isNode(e){return e.isNode()}isEdge(e){return e.isEdge()}resetCells(e,n={}){return this.model.resetCells(e,n),this}clearCells(e={}){return this.model.clear(e),this}toJSON(e={}){return this.model.toJSON(e)}parseJSON(e){return this.model.parseJSON(e)}fromJSON(e,n={}){return this.model.fromJSON(e,n),this}getCellById(e){return this.model.getCell(e)}addNode(e,n={}){return this.model.addNode(e,n)}addNodes(e,n={}){return this.addCell(e.map(o=>_n.isNode(o)?o:this.createNode(o)),n)}createNode(e){return this.model.createNode(e)}removeNode(e,n={}){return this.model.removeCell(e,n)}addEdge(e,n={}){return this.model.addEdge(e,n)}addEdges(e,n={}){return this.addCell(e.map(o=>wn.isEdge(o)?o:this.createEdge(o)),n)}removeEdge(e,n={}){return this.model.removeCell(e,n)}createEdge(e){return this.model.createEdge(e)}addCell(e,n={}){return this.model.addCell(e,n),this}removeCell(e,n={}){return this.model.removeCell(e,n)}removeCells(e,n={}){return this.model.removeCells(e,n)}removeConnectedEdges(e,n={}){return this.model.removeConnectedEdges(e,n)}disconnectConnectedEdges(e,n={}){return this.model.disconnectConnectedEdges(e,n),this}hasCell(e){return this.model.has(e)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}getNodes(){return this.model.getNodes()}getEdges(){return this.model.getEdges()}getOutgoingEdges(e){return this.model.getOutgoingEdges(e)}getIncomingEdges(e){return this.model.getIncomingEdges(e)}getConnectedEdges(e,n={}){return this.model.getConnectedEdges(e,n)}getRootNodes(){return this.model.getRoots()}getLeafNodes(){return this.model.getLeafs()}isRootNode(e){return this.model.isRoot(e)}isLeafNode(e){return this.model.isLeaf(e)}getNeighbors(e,n={}){return this.model.getNeighbors(e,n)}isNeighbor(e,n,o={}){return this.model.isNeighbor(e,n,o)}getSuccessors(e,n={}){return this.model.getSuccessors(e,n)}isSuccessor(e,n,o={}){return this.model.isSuccessor(e,n,o)}getPredecessors(e,n={}){return this.model.getPredecessors(e,n)}isPredecessor(e,n,o={}){return this.model.isPredecessor(e,n,o)}getCommonAncestor(...e){return this.model.getCommonAncestor(...e)}getSubGraph(e,n={}){return this.model.getSubGraph(e,n)}cloneSubGraph(e,n={}){return this.model.cloneSubGraph(e,n)}cloneCells(e){return this.model.cloneCells(e)}getNodesFromPoint(e,n){return this.model.getNodesFromPoint(e,n)}getNodesInArea(e,n,o,r,s){return this.model.getNodesInArea(e,n,o,r,s)}getNodesUnderNode(e,n={}){return this.model.getNodesUnderNode(e,n)}searchCell(e,n,o={}){return this.model.search(e,n,o),this}getShortestPath(e,n,o={}){return this.model.getShortestPath(e,n,o)}getAllCellsBBox(){return this.model.getAllCellsBBox()}getCellsBBox(e,n={}){return this.model.getCellsBBox(e,n)}startBatch(e,n={}){this.model.startBatch(e,n)}stopBatch(e,n={}){this.model.stopBatch(e,n)}batchUpdate(e,n,o){const r=typeof e=="string"?e:"update",s=typeof e=="string"?n:e,i=typeof n=="function"?o:n;this.startBatch(r,i);const l=s();return this.stopBatch(r,i),l}updateCellId(e,n){return this.model.updateCellId(e,n)}findView(e){return Pt.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return ze.isRectangleLike(e)?this.findViewsInArea(e):X.isPointLike(e)?this.findViewsFromPoint(e):[]}findViewByCell(e){return this.renderer.findViewByCell(e)}findViewByElem(e){return this.renderer.findViewByElem(e)}findViewsFromPoint(e,n){const o=typeof e=="number"?{x:e,y:n}:e;return this.renderer.findViewsFromPoint(o)}findViewsInArea(e,n,o,r,s){const i=typeof e=="number"?{x:e,y:n,width:o,height:r}:e,l=typeof e=="number"?s:n;return this.renderer.findViewsInArea(i,l)}matrix(e){return typeof e>"u"?this.transform.getMatrix():(this.transform.setMatrix(e),this)}resize(e,n){const o=this.getPlugin("scroller");return o?o.resize(e,n):this.transform.resize(e,n),this}scale(e,n=e,o=0,r=0){return typeof e>"u"?this.transform.getScale():(this.transform.scale(e,n,o,r),this)}zoom(e,n){const o=this.getPlugin("scroller");if(o){if(typeof e>"u")return o.zoom();o.zoom(e,n)}else{if(typeof e>"u")return this.transform.getZoom();this.transform.zoom(e,n)}return this}zoomTo(e,n={}){const o=this.getPlugin("scroller");return o?o.zoom(e,Object.assign(Object.assign({},n),{absolute:!0})):this.transform.zoom(e,Object.assign(Object.assign({},n),{absolute:!0})),this}zoomToRect(e,n={}){const o=this.getPlugin("scroller");return o?o.zoomToRect(e,n):this.transform.zoomToRect(e,n),this}zoomToFit(e={}){const n=this.getPlugin("scroller");return n?n.zoomToFit(e):this.transform.zoomToFit(e),this}rotate(e,n,o){return typeof e>"u"?this.transform.getRotation():(this.transform.rotate(e,n,o),this)}translate(e,n){return typeof e>"u"?this.transform.getTranslation():(this.transform.translate(e,n),this)}translateBy(e,n){const o=this.translate(),r=o.tx+e,s=o.ty+n;return this.translate(r,s)}getGraphArea(){return this.transform.getGraphArea()}getContentArea(e={}){return this.transform.getContentArea(e)}getContentBBox(e={}){return this.transform.getContentBBox(e)}fitToContent(e,n,o,r){return this.transform.fitToContent(e,n,o,r)}scaleContentToFit(e={}){return this.transform.scaleContentToFit(e),this}center(e){return this.centerPoint(e)}centerPoint(e,n,o){const r=this.getPlugin("scroller");return r?r.centerPoint(e,n,o):this.transform.centerPoint(e,n),this}centerContent(e){const n=this.getPlugin("scroller");return n?n.centerContent(e):this.transform.centerContent(e),this}centerCell(e,n){const o=this.getPlugin("scroller");return o?o.centerCell(e,n):this.transform.centerCell(e),this}positionPoint(e,n,o,r={}){const s=this.getPlugin("scroller");return s?s.positionPoint(e,n,o,r):this.transform.positionPoint(e,n,o),this}positionRect(e,n,o){const r=this.getPlugin("scroller");return r?r.positionRect(e,n,o):this.transform.positionRect(e,n),this}positionCell(e,n,o){const r=this.getPlugin("scroller");return r?r.positionCell(e,n,o):this.transform.positionCell(e,n),this}positionContent(e,n){const o=this.getPlugin("scroller");return o?o.positionContent(e,n):this.transform.positionContent(e,n),this}snapToGrid(e,n){return this.coord.snapToGrid(e,n)}pageToLocal(e,n,o,r){return ze.isRectangleLike(e)?this.coord.pageToLocalRect(e):typeof e=="number"&&typeof n=="number"&&typeof o=="number"&&typeof r=="number"?this.coord.pageToLocalRect(e,n,o,r):this.coord.pageToLocalPoint(e,n)}localToPage(e,n,o,r){return ze.isRectangleLike(e)?this.coord.localToPageRect(e):typeof e=="number"&&typeof n=="number"&&typeof o=="number"&&typeof r=="number"?this.coord.localToPageRect(e,n,o,r):this.coord.localToPagePoint(e,n)}clientToLocal(e,n,o,r){return ze.isRectangleLike(e)?this.coord.clientToLocalRect(e):typeof e=="number"&&typeof n=="number"&&typeof o=="number"&&typeof r=="number"?this.coord.clientToLocalRect(e,n,o,r):this.coord.clientToLocalPoint(e,n)}localToClient(e,n,o,r){return ze.isRectangleLike(e)?this.coord.localToClientRect(e):typeof e=="number"&&typeof n=="number"&&typeof o=="number"&&typeof r=="number"?this.coord.localToClientRect(e,n,o,r):this.coord.localToClientPoint(e,n)}localToGraph(e,n,o,r){return ze.isRectangleLike(e)?this.coord.localToGraphRect(e):typeof e=="number"&&typeof n=="number"&&typeof o=="number"&&typeof r=="number"?this.coord.localToGraphRect(e,n,o,r):this.coord.localToGraphPoint(e,n)}graphToLocal(e,n,o,r){return ze.isRectangleLike(e)?this.coord.graphToLocalRect(e):typeof e=="number"&&typeof n=="number"&&typeof o=="number"&&typeof r=="number"?this.coord.graphToLocalRect(e,n,o,r):this.coord.graphToLocalPoint(e,n)}clientToGraph(e,n,o,r){return ze.isRectangleLike(e)?this.coord.clientToGraphRect(e):typeof e=="number"&&typeof n=="number"&&typeof o=="number"&&typeof r=="number"?this.coord.clientToGraphRect(e,n,o,r):this.coord.clientToGraphPoint(e,n)}defineFilter(e){return this.defs.filter(e)}defineGradient(e){return this.defs.gradient(e)}defineMarker(e){return this.defs.marker(e)}getGridSize(){return this.grid.getGridSize()}setGridSize(e){return this.grid.setGridSize(e),this}showGrid(){return this.grid.show(),this}hideGrid(){return this.grid.hide(),this}clearGrid(){return this.grid.clear(),this}drawGrid(e){return this.grid.draw(e),this}updateBackground(){return this.background.update(),this}drawBackground(e,n){const o=this.getPlugin("scroller");return o!=null&&(this.options.background==null||!n)?o.drawBackground(e,n):this.background.draw(e),this}clearBackground(e){const n=this.getPlugin("scroller");return n!=null&&(this.options.background==null||!e)?n.clearBackground(e):this.background.clear(),this}enableVirtualRender(){return this.virtualRender.enableVirtualRender(),this}disableVirtualRender(){return this.virtualRender.disableVirtualRender(),this}isMouseWheelEnabled(){return!this.mousewheel.disabled}enableMouseWheel(){return this.mousewheel.enable(),this}disableMouseWheel(){return this.mousewheel.disable(),this}toggleMouseWheel(e){return e==null?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():e?this.enableMouseWheel():this.disableMouseWheel(),this}isPannable(){const e=this.getPlugin("scroller");return e?e.isPannable():this.panning.pannable}enablePanning(){const e=this.getPlugin("scroller");return e?e.enablePanning():this.panning.enablePanning(),this}disablePanning(){const e=this.getPlugin("scroller");return e?e.disablePanning():this.panning.disablePanning(),this}togglePanning(e){return e==null?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}use(e,...n){return this.installedPlugins.has(e)||(this.installedPlugins.add(e),e.init(this,...n)),this}getPlugin(e){return Array.from(this.installedPlugins).find(n=>n.name===e)}getPlugins(e){return Array.from(this.installedPlugins).filter(n=>e.includes(n.name))}enablePlugins(e){let n=e;Array.isArray(n)||(n=[n]);const o=this.getPlugins(n);return o==null||o.forEach(r=>{var s;(s=r==null?void 0:r.enable)===null||s===void 0||s.call(r)}),this}disablePlugins(e){let n=e;Array.isArray(n)||(n=[n]);const o=this.getPlugins(n);return o==null||o.forEach(r=>{var s;(s=r==null?void 0:r.disable)===null||s===void 0||s.call(r)}),this}isPluginEnabled(e){var n;const o=this.getPlugin(e);return(n=o==null?void 0:o.isEnabled)===null||n===void 0?void 0:n.call(o)}disposePlugins(e){let n=e;Array.isArray(n)||(n=[n]);const o=this.getPlugins(n);return o==null||o.forEach(r=>{r.dispose(),this.installedPlugins.delete(r)}),this}dispose(e=!0){e&&this.model.dispose(),this.css.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.highlight.dispose(),this.background.dispose(),this.mousewheel.dispose(),this.panning.dispose(),this.view.dispose(),this.renderer.dispose(),this.installedPlugins.forEach(n=>{n.dispose()})}}sde([ar.dispose()],To.prototype,"dispose",null);(function(t){t.View=Is,t.Renderer=a1,t.MouseWheel=l1,t.DefsManager=jN,t.GridManager=r1,t.CoordManager=HN,t.TransformManager=FN,t.HighlightManager=Lp,t.BackgroundManager=s1,t.PanningManager=i1})(To||(To={}));(function(t){t.toStringTag=`X6.${t.name}`;function e(n){if(n==null)return!1;if(n instanceof t)return!0;const o=n[Symbol.toStringTag];return o==null||o===t.toStringTag}t.isGraph=e})(To||(To={}));(function(t){function e(n,o){const r=n instanceof HTMLElement?new t({container:n}):new t(n);return o!=null&&r.fromJSON(o),r}t.render=e})(To||(To={}));(function(t){t.registerNode=_n.registry.register,t.registerEdge=wn.registry.register,t.registerView=On.registry.register,t.registerAttr=Ns.registry.register,t.registerGrid=el.registry.register,t.registerFilter=Hu.registry.register,t.registerNodeTool=qu.registry.register,t.registerEdgeTool=Gu.registry.register,t.registerBackground=Wd.registry.register,t.registerHighlighter=ai.registry.register,t.registerPortLayout=ua.registry.register,t.registerPortLabelLayout=Uu.registry.register,t.registerMarker=hl.registry.register,t.registerRouter=tl.registry.register,t.registerConnector=ca.registry.register,t.registerAnchor=Ku.registry.register,t.registerEdgeAnchor=Ju.registry.register,t.registerConnectionPoint=Yu.registry.register})(To||(To={}));(function(t){t.unregisterNode=_n.registry.unregister,t.unregisterEdge=wn.registry.unregister,t.unregisterView=On.registry.unregister,t.unregisterAttr=Ns.registry.unregister,t.unregisterGrid=el.registry.unregister,t.unregisterFilter=Hu.registry.unregister,t.unregisterNodeTool=qu.registry.unregister,t.unregisterEdgeTool=Gu.registry.unregister,t.unregisterBackground=Wd.registry.unregister,t.unregisterHighlighter=ai.registry.unregister,t.unregisterPortLayout=ua.registry.unregister,t.unregisterPortLabelLayout=Uu.registry.unregister,t.unregisterMarker=hl.registry.unregister,t.unregisterRouter=tl.registry.unregister,t.unregisterConnector=ca.registry.unregister,t.unregisterAnchor=Ku.registry.unregister,t.unregisterEdgeAnchor=Ju.registry.unregister,t.unregisterConnectionPoint=Yu.registry.unregister})(To||(To={}));var ide=function(t,e,n,o){var r=arguments.length,s=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},lde=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);rthis.renderHTMLComponent())}renderHTMLComponent(){const o=this.selectors&&this.selectors.foContent;if(o){kf(o);const r=t.shapeMaps[this.cell.shape];if(!r)return;let{html:s}=r;typeof s=="function"&&(s=s(this.cell)),s&&(typeof s=="string"?o.innerHTML=s:Mf(o,s))}}dispose(){this.cell.off("change:*",this.onCellChangeAny,this)}}ide([e.dispose()],e.prototype,"dispose",null),t.View=e,function(n){n.action="html",n.config({bootstrap:[n.action],actions:{html:n.action}}),ur.registry.register("html-view",n,!0)}(e=t.View||(t.View={}))})(Qu||(Qu={}));(function(t){t.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},nn.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),_n.registry.register("html",t,!0)})(Qu||(Qu={}));(function(t){t.shapeMaps={};function e(n){const{shape:o,html:r,effect:s,inherit:i}=n,l=lde(n,["shape","html","effect","inherit"]);if(!o)throw new Error("should specify shape in config");t.shapeMaps[o]={html:r,effect:s},To.registerNode(o,Object.assign({inherit:i||"html"},l),!0)}t.register=e})(Qu||(Qu={}));class H2 extends _n{}(function(t){function e(n){const o=[],r=nn.getForeignObjectMarkup();return n?o.push({tagName:n,selector:"body"},r):o.push(r),o}t.config({view:"vue-shape-view",markup:e(),attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}},propHooks(n){if(n.markup==null){const o=n.primer;if(o){n.markup=e(o);let r={};switch(o){case"circle":r={refCx:"50%",refCy:"50%",refR:"50%"};break;case"ellipse":r={refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"};break}n.attrs=pn({},{body:Object.assign({refWidth:null,refHeight:null},r)},n.attrs||{})}}return n}}),_n.registry.register("vue-shape",t,!0)})(H2||(H2={}));var ade=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);rUe(AE,{to:n},[Ue(e,{node:o,graph:r})]),provide:()=>({getNode:()=>o,getGraph:()=>r})})))}function cde(t){Zg&&delete Rp[t]}function U2(){return Zg}function dde(){return Zg=!0,ce({setup(){return()=>Ue(Le,{},Object.keys(Rp).map(t=>Ue(Rp[t])))}})}class $p extends ur{getComponentContainer(){return this.selectors&&this.selectors.foContent}confirmUpdate(e){const n=super.confirmUpdate(e);return this.handleAction(n,$p.action,()=>{this.renderVueComponent()})}targetId(){return`${this.graph.view.cid}:${this.cell.id}`}renderVueComponent(){this.unmountVueComponent();const e=this.getComponentContainer(),n=this.cell,o=this.graph;if(e){const{component:r}=WN[n.shape];r&&(U2()?ude(this.targetId(),r,e,n,o):(this.vm=C0({render(){return Ue(r,{node:n,graph:o})},provide(){return{getNode:()=>n,getGraph:()=>o}}}),this.vm.mount(e)))}}unmountVueComponent(){const e=this.getComponentContainer();return this.vm&&(this.vm.unmount(),this.vm=null),e&&(e.innerHTML=""),e}onMouseDown(e,n,o){const r=e.target;if(r.tagName.toLowerCase()==="input"){const i=r.getAttribute("type");if(i==null||["text","password","number","email","search","tel","url"].includes(i))return}super.onMouseDown(e,n,o)}unmount(){return U2()&&cde(this.targetId()),this.unmountVueComponent(),super.unmount(),this}}(function(t){t.action="vue",t.config({bootstrap:[t.action],actions:{component:t.action}}),ur.registry.register("vue-shape-view",t,!0)})($p||($p={}));const fde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function hde(t,e){return _(),G("svg",fde,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"},null,-1)]))}const pde=xt({name:"ep-delete",render:hde}),gde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function mde(t,e){return _(),G("svg",gde,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"},null,-1),L("path",{fill:"currentColor",d:"m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)]))}const vde=xt({name:"ep-edit",render:mde}),bde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function yde(t,e){return _(),G("svg",bde,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M280.768 753.728L691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"},null,-1)]))}const wde=xt({name:"ep-finished",render:yde}),Cde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function xde(t,e){return _(),G("svg",Cde,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"m64 448l832-320l-128 704l-446.08-243.328L832 192L242.816 545.472zm256 512V657.024L512 768z"},null,-1)]))}const Sde=xt({name:"ep-promotion",render:xde}),Ede={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function Tde(t,e){return _(),G("svg",Ede,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0a30.592 30.592 0 0 1 0-42.752L764.736 512L452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0a30.592 30.592 0 0 1 0-42.752L508.736 512L196.864 192a30.592 30.592 0 0 1 0-42.688"},null,-1)]))}const W2=xt({name:"ep-d-arrow-right",render:Tde}),Ode={class:"text-large font-600 mr-3"},kde={class:"flex items-center"},Mde=["id","onClick"],_de=["onClick"],Ade={class:"nodesBox"},Pde=["onDragend"],Nde={class:"dialog-footer"},Ide={style:{flex:"auto"}},Lde={__name:"SubFlow",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir(),s=Ko(),i=r.params.robotId,l=dde(),a=R([]),u=R([]);function c(){const $=new Array;for(let W=0;W-1;st(async()=>{const $=document.getElementById("canvas");h=new To({container:$,width:$.offsetWidth-10,height:$.offsetHeight,background:{color:"#F2F7FA"},autoResize:!1,connecting:{allowBlank:!1,allowLoop:!1,allowNode:!0,allowMulti:!0,createEdge(){return this.createEdge({shape:"edge",attrs:{line:{stroke:"#8f8f8f",strokeWidth:1,targetMarker:{name:"block",width:12,height:8}}}})}},highlighting:{magnetAvailable:{name:"stroke",args:{padding:4,attrs:{"stroke-width":2,stroke:"black"}}}},panning:!0}),h.on("node:click",({e:re,x:be,y:he,node:B,view:H})=>{B.setTools([{name:"button-remove",args:{x:0,y:0}}])}),h.on("node:mouseleave",({e:re,x:be,y:he,node:B,view:H})=>{B.hasTool("button-remove")&&B.removeTool("button-remove")}),h.on("node:dblclick",({e:re,x:be,y:he,node:B,view:H})=>{B.setData({currentTime:Date.now()}),p=!0}),h.on("edge:click",({e:re,x:be,y:he,edge:B,view:H})=>{B.setTools(["button-remove"])});const W=await nt("GET","subflow",{robotId:i,mainFlowId:g,data:""},null,null);S(m?{status:200,data:W}:W),lt(()=>{I(0)})}),Rs(()=>{h!=null&&h.dispose()});function C($,W,re){const be=h.addNode({shape:re.type,x:$,y:W});re.cnt++,be.setData({nodeType:re.type,nodeCnt:re.cnt}),p=!0}function y($,W){const re=h.pageToLocal($.pageX,$.pageY);C(re.x,re.y,W)}function b($){$.preventDefault()}function S($){$&&$.status==200&&$.data&&(a.value=$.data)}const T=R(!1),O=R("");async function k(){await D();const $=await nt("POST","subflow/new",{robotId:i,mainFlowId:g,data:O.value},null,null);if($.status==200){const W=a.value.length;S($),lt(()=>{I(W),O.value=""})}}function P($){a.value.length<2?ln.error(e("lang.flow.needOne")):xo.confirm(e("lang.flow.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{(await nt("DELETE","subflow",{robotId:i,mainFlowId:g,data:f},null,null)).status==200&&(f=-1,a.value.splice($,1),I(0)),ln({type:"success",message:e("lang.common.deleted")})}).catch(()=>{})}async function I($){$!=f&&(p?xo.confirm(e("lang.flow.changeSaveTip"),"Warning",{confirmButtonText:e("lang.common.save"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{await D(),M($),p=!1}).catch(()=>{}):M($))}function M($){const W=document.getElementById(J(f));W&&(W.style.backgroundColor="white",W.style.color="black"),f=$;const re=document.getElementById(J(f));if(re.style.backgroundColor="rgb(245,246,249)",re.style.color="rgb(131,88,179)",a.value[f].canvas){const he=JSON.parse(a.value[f].canvas).cells;h.fromJSON(he)}else h.clearCells()}async function D(){A.value=!0,K.value=!0;const $=h.toJSON();$.cells.forEach(function(H,te,ie){H.shape!="edge"&&(H.data.nodeId=H.id)},d);const re=a.value[f],be=[];for(let H=0;H0&&!fe.value)return;F.value=!0,fe.value&&ne(fe.value,"userText","TextPlan"),Oe||(Oe=ee());const $={robotId:i,mainFlowId:g,sessionId:Oe,userInputResult:ve.value.length==0||fe.value?"Successful":"Timeout",userInput:fe.value,importVariables:[]},W=await nt("POST","flow/answer",null,null,$);if(W.status==200){const re=W.data,be=re.answers;for(let he=0;he{ue.value.setScrollTop(se.value.clientHeight)})}else th({title:e("lang.common.errTip"),message:Ue("b",{style:"color: teal"},W.err.message),type:"error"});F.value=!1,ke.value.focus()}async function ye(){ve.value.splice(0,ve.value.length),fe.value="",Oe="",le.value=!1,await Z()}const ke=R(),Xe=async()=>{Ee.value=!0,await Z()};return($,W)=>{const re=rt,be=yy,he=xn,B=Cf,H=CW,te=kM,ie=go,we=MM,ge=OM,q=Cn,ae=jn,Ne=zn,We=xi,ct=wg,mt=cy,Ft=cr,zt=NY;return _(),G("div",null,[w(ge,{style:{"min-height":"100vh","max-height":"100vh"}},{default:E(()=>[w(H,{height:"40px"},{default:E(()=>[w(B,{title:x(e)("lang.common.back"),onBack:oe},{content:E(()=>[L("span",Ode,Q(x(v)),1)]),extra:E(()=>[L("div",kde,[$e(w(be,null,{default:E(()=>[U(Q($.$tm("lang.flow.steps")[0])+" ",1),w(re,{size:20},{default:E(()=>[w(x(W2))]),_:1})]),_:1},512),[[qe,m]]),$e(w(he,{type:"primary",class:"ml-2",onClick:D,loading:K.value,size:"large"},{default:E(()=>[w(re,{size:20},{default:E(()=>[w(x(vde))]),_:1}),U(Q($.$t("lang.flow.save")),1)]),_:1},8,["loading"]),[[qe,!m]]),w(he,{type:"success",onClick:N,loading:j.value,size:"large"},{default:E(()=>[w(re,{size:20},{default:E(()=>[w(x(wde))]),_:1}),U(Q($.$t("lang.flow.pub")),1)]),_:1},8,["loading"]),$e(w(be,null,{default:E(()=>[U(Q($.$tm("lang.flow.steps")[1])+" ",1),w(re,null,{default:E(()=>[w(x(W2))]),_:1})]),_:1},512),[[qe,m]]),w(he,{color:"#626aef",class:"ml-2",onClick:Xe,size:"large"},{default:E(()=>[w(re,{size:20},{default:E(()=>[w(x(Sde))]),_:1}),U(" "+Q($.$t("lang.flow.test")),1)]),_:1})])]),_:1},8,["title"])]),_:1}),w(ge,null,{default:E(()=>[w(te,{width:"150px"},{default:E(()=>[L("div",{class:"newSubFlowBtn",onClick:W[0]||(W[0]=Me=>T.value=!0)},[w(re,{size:"16px"},{default:E(()=>[w(x(Xc))]),_:1}),U(" "+Q($.$t("lang.flow.addSubFlow")),1)]),(_(!0),G(Le,null,yt(a.value,(Me,Ge)=>(_(),G("div",{id:J(Ge),key:Me.label,onClick:de=>I(Ge),class:"subFlowBtn"},[U(Q(Me.name)+" ",1),L("span",{onClick:de=>P(Ge)},[w(re,null,{default:E(()=>[w(x(pde))]),_:1})],8,_de)],8,Mde))),128))]),_:1}),$e((_(),pe(we,null,{default:E(()=>[L("div",Ade,[(_(),G(Le,null,yt(d,Me=>L("div",{key:Me.type,class:Y(["node-btn",Me.type]),draggable:"true",onDragend:Ge=>y(Ge,Me)},[w(ie,{class:"box-item",effect:"dark",content:Me.desc,placement:"right-start"},{default:E(()=>[L("span",null,Q(Me.name),1)]),_:2},1032,["content"])],42,Pde)),64))]),L("div",{id:"canvas",onDragover:b,style:{border:"1px #000 solid"}},null,32),w(x(l))]),_:1})),[[zt,A.value]])]),_:1})]),_:1}),w(We,{modelValue:T.value,"onUpdate:modelValue":W[4]||(W[4]=Me=>T.value=Me),title:$.$t("lang.flow.addSubFlow")},{footer:E(()=>[L("span",Nde,[w(he,{type:"primary",onClick:W[2]||(W[2]=Me=>{T.value=!1,k()})},{default:E(()=>[U(Q($.$t("lang.common.add")),1)]),_:1}),w(he,{onClick:W[3]||(W[3]=Me=>T.value=!1)},{default:E(()=>[U(Q($.$t("lang.common.cancel")),1)]),_:1})])]),default:E(()=>[w(Ne,{model:$.form},{default:E(()=>[w(ae,{label:x(e)("lang.flow.form.name"),"label-width":"110px"},{default:E(()=>[w(q,{modelValue:O.value,"onUpdate:modelValue":W[1]||(W[1]=Me=>O.value=Me),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),w(Ft,{modelValue:Ee.value,"onUpdate:modelValue":W[7]||(W[7]=Me=>Ee.value=Me),direction:"rtl"},{header:E(()=>[L("b",null,Q($.$t("lang.flow.test")),1)]),default:E(()=>[w(ct,{ref_key:"chatScrollbarRef",ref:ue,height:"100%",always:""},{default:E(()=>[L("div",{ref_key:"dryrunChatRecords",ref:se},[(_(!0),G(Le,null,yt(ve.value,Me=>(_(),G("div",{key:Me.id,class:Y(Me.cssClass)},[Me.answerType=="TextPlain"?(_(),pe(be,{key:0},{default:E(()=>[U(Q(Me.text),1)]),_:2},1024)):(_(),pe(be,{key:1,innerHTML:Me.text},null,8,["innerHTML"]))],2))),128))],512)]),_:1},512)]),footer:E(()=>[L("div",Ide,[w(q,{ref_key:"dryrunInput",ref:ke,disabled:le.value,modelValue:fe.value,"onUpdate:modelValue":W[5]||(W[5]=Me=>fe.value=Me),placeholder:"",style:{width:"200px"},onKeypress:W[6]||(W[6]=Me=>{Me.keyCode==13&&Z()})},null,8,["disabled","modelValue"]),w(mt,null,{default:E(()=>[w(he,{type:"primary",disabled:le.value,onClick:Z,loading:F.value},{default:E(()=>[U(Q($.$t("lang.flow.send")),1)]),_:1},8,["disabled","loading"]),w(he,{onClick:ye},{default:E(()=>[U(Q($.$t("lang.flow.reset")),1)]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}},q2=Bo(Lde,[["__scopeId","data-v-0cdd70b6"]]),Rde={class:"dialog-footer"},$de={class:"demo-drawer__footer"},Dde="70px",Vde={__name:"IntentList",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir(),s=Ko(),i=R([]),l=R(!1),a=R(!1),u=R(!1),c=R(""),d=r.params.robotId;st(async()=>{await f()});async function f(){const y=await nt("GET","intent",{robotId:d},null,null);y.status==200&&(i.value=y.data)}async function h(){const y={robotId:d,id:"",data:c.value};(await nt("POST","intent",null,null,y)).status==200&&await f()}function p(y,b){s.push({path:"/robot/"+d+"/intent/detail",query:{id:i.value[y].id,idx:y,name:b.name}})}async function g(y,b){xo.confirm(e("lang.intent.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{const S={robotId:d,id:i.value[y].id,data:y.toString()},T=await nt("DELETE","intent",null,null,S);T.status==200?(await f(),ln({type:"success",message:T("lang.common.deleted")})):ln({type:"error",message:T.err.message})}).catch(()=>{})}const v=R(""),m=R("");function C(){u.value=!0,async function(){if(v.value==null||v.value.length<1)return;const y={robotId:d,id:"",data:v.value},b=await nt("POST","intent/detect",null,null,y);b.status==200&&(b.data==null?m.value="No intention detected.":m.value="The detected intention is: "+b.data)}().then(()=>u.value=!1)}return(y,b)=>{const S=xn,T=Aa,O=_a,k=bf,P=Cn,I=jn,M=zn,D=xi,J=cr;return _(),G(Le,null,[L("h1",null,Q(y.$t("lang.intent.title")),1),w(S,{type:"primary",class:"ml-2",onClick:b[0]||(b[0]=oe=>l.value=!0)},{default:E(()=>[U(Q(y.$t("lang.intent.add")),1)]),_:1}),w(S,{type:"primary",onClick:b[1]||(b[1]=oe=>a.value=!0)},{default:E(()=>b[9]||(b[9]=[U("Test intent detection")])),_:1}),w(O,{data:i.value,stripe:"",style:{width:"100%"}},{default:E(()=>[w(T,{prop:"name",label:x(n)("lang.intent.table")[0],width:"220"},null,8,["label"]),w(T,{prop:"keyword_num",label:x(n)("lang.intent.table")[1],width:"180"},null,8,["label"]),w(T,{prop:"regex_num",label:x(n)("lang.intent.table")[2],width:"180"},null,8,["label"]),w(T,{prop:"phrase_num",label:x(n)("lang.intent.table")[3],width:"230"},null,8,["label"]),w(T,{fixed:"right",label:x(n)("lang.intent.table")[4],"min-width":"40"},{default:E(oe=>[w(S,{link:"",type:"primary",onClick:N=>p(oe.$index,oe.row)},{default:E(()=>[U(Q(y.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),w(S,{link:"",type:"danger",onClick:N=>g(oe.$index,oe.row)},{default:E(()=>[U(Q(y.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),w(k),w(D,{modelValue:l.value,"onUpdate:modelValue":b[5]||(b[5]=oe=>l.value=oe),title:x(e)("lang.intent.form.title")},{footer:E(()=>[L("span",Rde,[w(S,{type:"primary",onClick:b[3]||(b[3]=oe=>{l.value=!1,h()})},{default:E(()=>[U(Q(y.$t("lang.common.add")),1)]),_:1}),w(S,{onClick:b[4]||(b[4]=oe=>l.value=!1)},{default:E(()=>[U(Q(y.$t("lang.common.cancel")),1)]),_:1})])]),default:E(()=>[w(M,{model:y.form},{default:E(()=>[w(I,{label:x(e)("lang.intent.form.name"),"label-width":Dde},{default:E(()=>[w(P,{modelValue:c.value,"onUpdate:modelValue":b[2]||(b[2]=oe=>c.value=oe),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),w(J,{modelValue:a.value,"onUpdate:modelValue":b[8]||(b[8]=oe=>a.value=oe),title:"Test intent detection",direction:"rtl",size:"50%"},{default:E(()=>[w(M,null,{default:E(()=>[w(I,{label:""},{default:E(()=>[w(P,{modelValue:v.value,"onUpdate:modelValue":b[6]||(b[6]=oe=>v.value=oe),style:{width:"240px"},placeholder:"Please input some texts"},null,8,["modelValue"])]),_:1}),w(I,{label:""},{default:E(()=>[L("div",null,Q(m.value),1)]),_:1})]),_:1}),L("div",$de,[w(S,{type:"primary",loading:u.value,onClick:C},{default:E(()=>b[10]||(b[10]=[U("Test")])),_:1},8,["loading"]),w(S,{onClick:b[7]||(b[7]=oe=>a.value=!1)},{default:E(()=>b[11]||(b[11]=[U("Close")])),_:1})])]),_:1},8,["modelValue"])],64)}}},Bde={class:"text-large font-600 mr-3"},Fde={__name:"IntentDetail",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir(),s=Ko(),i=r.params.robotId,l=ut({keywords:[],regexes:[],phrases:[]}),a={robotId:"",id:"",data:""};st(async()=>{a.robotId=i,a.id=r.query.id;let j=await nt("GET","intent/detail",a,null,null);j.status==200&&j.data&&(l.keywords=j.data.keywords,l.regexes=j.data.regexes,l.phrases=j.data.phrases.map((F,le,ue)=>F.phrase)),j=await nt("GET","management/settings/model/check/embedding",{robotId:i},null,null),T.value=j==null||j.status==null||j.status!=200});const u=R(""),c=R(!1),d=R(),f=()=>{c.value=!0,lt(()=>{d.value.focus()})};async function h(){u.value&&(a.id=r.query.id,a.data=u.value,(await nt("POST","intent/keyword",{id:a.id,data:r.query.idx},null,a)).status==200&&l.keywords.push(u.value)),c.value=!1,u.value=""}async function p(j){xo.confirm(j+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const F=l.keywords.indexOf(j);a.id=r.query.id,a.data=F.toString(),(await nt("DELETE","intent/keyword",null,null,a)).status==200&&(l.keywords.splice(F,1),ln({type:"success",message:"Delete completed"}))}).catch(()=>{})}const g=R(""),v=R(!1),m=R(),C=()=>{v.value=!0,lt(()=>{m.value.focus()})};async function y(){g.value&&(a.id=r.query.id,a.data=g.value,(await nt("POST","intent/regex",{id:a.id,data:r.query.idx},null,a)).status==200&&l.regexes.push(g.value)),v.value=!1,g.value=""}async function b(j){xo.confirm(j+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const F=l.regexes.indexOf(j);a.id=r.query.id,a.data=F.toString(),(await nt("DELETE","intent/regex",null,null,a)).status==200&&(l.regexes.splice(F,1),ln({type:"success",message:"Delete completed"}))}).catch(()=>{})}const S=R(""),T=R(!0),O=R(!1),k=R(),P=R(""),I=R(!1),M=R(!1),D=()=>{O.value=!0,lt(()=>{k.value.focus()})};async function J(){if(S.value){a.id=r.query.id,a.data=S.value;const j=await nt("POST","intent/phrase",{robotId:i,id:a.id,data:r.query.idx},null,a);j.status==200?l.phrases.push(S.value):(P.value="Added similar sentence failed: "+j.err.message,I.value=!0)}O.value=!1,S.value=""}async function oe(j){xo.confirm(j+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const F=l.phrases.indexOf(j);a.id=r.query.id,a.data=F.toString(),(await nt("DELETE","intent/phrase",null,null,a)).status==200&&(l.phrases.splice(F,1),ln({type:"success",message:"Delete completed"}))}).catch(()=>{})}const N=async()=>{const j=await nt("GET","management/settings",{robotId:i},null,null);if(j.status==200&&j.data&&j.data.sentenceEmbeddingProvider.provider.id=="OpenAI"){xo.confirm("The sentence embedding providor is OpenAI, this will incur some fees. Continue?","Warning",{confirmButtonText:"Regenerate all",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{A()}).catch(()=>{});return}A()},A=async()=>{M.value=!0,nt("GET","intent/phrase/regenerate-all",{robotId:i,id:a.id,data:""},null,null).then(j=>M.value=!1)},K=()=>{s.push({name:"intents",params:{robotId:i}})};return(j,F)=>{const le=Cf,ue=wM,se=Cn,Ee=xn,fe=at("router-link"),ve=bf,Oe=J0;return _(),G(Le,null,[w(le,{title:x(e)("lang.common.back"),onBack:K},{content:E(()=>[L("span",Bde,Q(j.$t("lang.intent.detail.edit"))+": "+Q(x(r).query.name),1)]),_:1},8,["title"]),L("h3",null,Q(j.$t("lang.intent.detail.kw")),1),(_(!0),G(Le,null,yt(l.keywords,ee=>(_(),pe(ue,{type:"info",key:ee,class:"mx-1",closable:"","disable-transitions":!1,onClose:ne=>p(ee)},{default:E(()=>[U(Q(ee),1)]),_:2},1032,["onClose"]))),128)),c.value?(_(),pe(se,{key:0,ref_key:"keywordInputRef",ref:d,modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=ee=>u.value=ee),class:"ml-1 w-20",size:"small",onKeyup:Wn(h,["enter"]),onBlur:h},null,8,["modelValue"])):(_(),pe(Ee,{key:1,class:"button-new-tag ml-1",size:"small",onClick:f},{default:E(()=>[U(" + "+Q(j.$t("lang.intent.detail.addKw")),1)]),_:1})),L("h3",null,Q(j.$t("lang.intent.detail.re")),1),(_(!0),G(Le,null,yt(l.regexes,ee=>(_(),pe(ue,{type:"info",key:ee,class:"mx-1",closable:"","disable-transitions":!1,onClose:ne=>b(ee)},{default:E(()=>[U(Q(ee),1)]),_:2},1032,["onClose"]))),128)),v.value?(_(),pe(se,{key:2,ref_key:"regexInputRef",ref:m,modelValue:g.value,"onUpdate:modelValue":F[1]||(F[1]=ee=>g.value=ee),class:"ml-1 w-20",size:"small",onKeyup:Wn(y,["enter"]),onBlur:y},null,8,["modelValue"])):(_(),pe(Ee,{key:3,class:"button-new-tag ml-1",size:"small",onClick:C},{default:E(()=>[U(" + "+Q(j.$t("lang.intent.detail.addRe")),1)]),_:1})),L("h3",null,Q(j.$t("lang.intent.detail.sp")),1),(_(!0),G(Le,null,yt(l.phrases,ee=>(_(),pe(ue,{type:"info",key:ee,class:"mx-1",closable:"","disable-transitions":!1,onClose:ne=>oe(ee)},{default:E(()=>[U(Q(ee),1)]),_:2},1032,["onClose"]))),128)),O.value?(_(),pe(se,{key:4,ref_key:"phraseInputRef",ref:k,modelValue:S.value,"onUpdate:modelValue":F[2]||(F[2]=ee=>S.value=ee),class:"ml-1 w-20",size:"small",onKeyup:Wn(J,["enter"]),onBlur:J},null,8,["modelValue"])):(_(),pe(Ee,{key:5,class:"button-new-tag ml-1",size:"small",onClick:D,disabled:T.value},{default:E(()=>[U(" + "+Q(j.$t("lang.intent.detail.addSp")),1)]),_:1},8,["disabled"])),$e(L("div",null,[F[4]||(F[4]=U(" This feature was disabled because ")),F[5]||(F[5]=L("b",null,"local model files were missing",-1)),F[6]||(F[6]=U(" or ")),F[7]||(F[7]=L("b",null,"api-key of OpenAI is empty",-1)),F[8]||(F[8]=U(", please goto ")),w(fe,{to:{name:"settings",params:{robotId:x(i)}}},{default:E(()=>F[3]||(F[3]=[U("settings")])),_:1},8,["to"]),F[9]||(F[9]=U(" and select one model first. "))],512),[[qe,T.value]]),w(ve),$e(w(Oe,{title:P.value,type:"error",description:"But don't worry, maybe you switched different embedding provider caused this. You can press 'Regenerate all similar sentences.' button below to fix this issue.","show-icon":""},null,8,["title"]),[[qe,I.value]]),$e(L("div",null,[w(Ee,{type:"warning",plain:"",loading:M.value,onClick:N},{default:E(()=>F[10]||(F[10]=[U(" Regenerate all similar sentences. ")])),_:1},8,["loading"])],512),[[qe,!T.value]])],64)}}},zde=["checked"],jde={key:0},Hde={key:1},Ude={class:"demo-drawer__footer"},Gs="160px",Wde={__name:"Variable",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir();Ko();const s=r.params.robotId,i=ut({varName:"",varType:"",varValueSource:"",varConstantValue:"",varAssociateData:"",obtainValueExpressionType:"None",obtainValueExpression:"",cacheEnabled:!0}),l=[{label:n("lang.var.types")[0],value:"Str"},{label:n("lang.var.types")[1],value:"Num"}],a=new Map;l.forEach(function(O,k,P){this.set(O.value,O.label)},a);const u=[{label:n("lang.var.sources")[0],value:"Import",disabled:!1},{label:n("lang.var.sources")[1],value:"Collect",disabled:!1},{label:"User input",value:"UserInput",disabled:!1},{label:"Constant value",value:"Constant",disabled:!1},{label:n("lang.var.sources")[2],value:"ExternalHttp",disabled:!1}],c=new Map;u.forEach(function(O,k,P){this.set(O.value,O.label)},c);const d=[{label:"JSON Pointer",value:"JsonPointer",disabled:!1},{label:"Html Scrape",value:"HtmlScrape",disabled:!1}],f=R(!1),h=R([]),p=R([]);async function g(){const O=await nt("GET","variable",{robotId:s},null,null);v(O)}st(async()=>{const O=await nt("GET","external/http",{robotId:s},null,null);O&&O.status==200&&(p.value=O.data==null?[]:O.data),await g()});const v=O=>{O&&O.status==200&&(h.value=O.data==null?[]:O.data,h.value.forEach(function(k,P,I){k.varTypeT=a.get(k.varType),k.varValueSourceT=c.get(k.varValueSource)}))},m=()=>{i.varName="",i.varType="",i.varValueSource="",i.constantValue="",i.externalAssociateId="",i.obtainValueExpressionType="None",i.obtainValueExpression="",i.cacheEnabled=!1,b()},C=(O,k)=>{Dn(k,i),b()},y=async(O,k)=>{xo.confirm(k.varName+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{Dn(k,i),(await nt("DELETE","variable",{robotId:s},null,i)).status==200&&(await g(),ln({type:"success",message:"Delete completed"}))}).catch(()=>{})};function b(){f.value=!0}function S(){f.value=!1}async function T(){const O=await nt("POST","variable",{robotId:s},null,i);await g(),S()}return(O,k)=>{const P=xn,I=Aa,M=_a,D=Cn,J=jn,oe=Bs,N=Vs,A=at("router-link"),K=zn,j=cr;return _(),G(Le,null,[L("h1",null,Q(O.$t("lang.var.title")),1),w(P,{type:"primary",class:"ml-2",onClick:k[0]||(k[0]=F=>m())},{default:E(()=>[U(Q(O.$t("lang.var.add")),1)]),_:1}),w(M,{data:h.value,stripe:"",style:{width:"100%"}},{default:E(()=>[w(I,{prop:"varName",label:x(n)("lang.var.table")[0],width:"300"},null,8,["label"]),w(I,{prop:"varTypeT",label:x(n)("lang.var.table")[1],width:"180"},null,8,["label"]),w(I,{prop:"varValueSourceT",label:x(n)("lang.var.table")[2],width:"200"},null,8,["label"]),w(I,{fixed:"right",label:x(n)("lang.var.table")[3],"min-width":"40"},{default:E(F=>[w(P,{link:"",type:"primary",onClick:le=>C(F.$index,F.row)},{default:E(()=>[U(Q(O.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),w(P,{link:"",type:"danger",onClick:le=>y(F.$index,F.row)},{default:E(()=>[U(Q(O.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),w(j,{modelValue:f.value,"onUpdate:modelValue":k[11]||(k[11]=F=>f.value=F),title:O.$t("lang.var.form.title"),direction:"rtl",size:"50%"},{default:E(()=>[w(K,{model:O.nodeData},{default:E(()=>[w(J,{label:O.$t("lang.var.form.name"),"label-width":Gs},{default:E(()=>[w(D,{modelValue:i.varName,"onUpdate:modelValue":k[1]||(k[1]=F=>i.varName=F),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),w(J,{label:O.$t("lang.var.form.type"),"label-width":Gs},{default:E(()=>[w(N,{modelValue:i.varType,"onUpdate:modelValue":k[2]||(k[2]=F=>i.varType=F),placeholder:O.$t("lang.var.form.choose1")},{default:E(()=>[(_(),G(Le,null,yt(l,F=>w(oe,{key:F.label,label:F.label,value:F.value,disabled:F.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),w(J,{label:O.$t("lang.var.form.source"),"label-width":Gs},{default:E(()=>[w(N,{modelValue:i.varValueSource,"onUpdate:modelValue":k[3]||(k[3]=F=>i.varValueSource=F),placeholder:O.$t("lang.var.form.choose2")},{default:E(()=>[(_(),G(Le,null,yt(u,F=>w(oe,{key:F.label,label:F.label,value:F.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),i.varValueSource=="Constant"?(_(),pe(J,{key:0,label:"Constant value","label-width":Gs},{default:E(()=>[w(D,{modelValue:i.varConstantValue,"onUpdate:modelValue":k[4]||(k[4]=F=>i.varConstantValue=F),autocomplete:"on"},null,8,["modelValue"])]),_:1})):me("",!0),i.varValueSource=="ExternalHttp"?(_(),pe(J,{key:1,label:"HTTP API","label-width":Gs},{default:E(()=>[w(N,{modelValue:i.varAssociateData,"onUpdate:modelValue":k[5]||(k[5]=F=>i.varAssociateData=F),placeholder:"Choose a HTTP API"},{default:E(()=>[(_(!0),G(Le,null,yt(p.value,F=>(_(),pe(oe,{key:F.id,label:F.name,value:F.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),k[13]||(k[13]=L("br",null,null,-1)),w(A,{to:{name:"externalHttpApiDetail",params:{robotId:x(s),id:"new"}}},{default:E(()=>k[12]||(k[12]=[U("Add new HTTP API")])),_:1},8,["to"])]),_:1})):me("",!0),i.varValueSource=="ExternalHttp"?(_(),pe(J,{key:2,label:"Value expression type","label-width":Gs},{default:E(()=>[w(N,{modelValue:i.obtainValueExpressionType,"onUpdate:modelValue":k[6]||(k[6]=F=>i.obtainValueExpressionType=F),placeholder:"Value expression type"},{default:E(()=>[(_(),G(Le,null,yt(d,F=>w(oe,{key:F.label,label:F.label,value:F.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})):me("",!0),i.varValueSource=="ExternalHttp"?(_(),pe(J,{key:3,label:"Obtain value expression","label-width":Gs},{default:E(()=>[w(D,{modelValue:i.obtainValueExpression,"onUpdate:modelValue":k[7]||(k[7]=F=>i.obtainValueExpression=F),autocomplete:"on",placeholder:i.obtainValueExpressionType=="JsonPointer"?"/data/book/name":"CSS selector syntax like: h1.foo div#bar"},null,8,["modelValue","placeholder"])]),_:1})):me("",!0),i.varValueSource=="ExternalHttp"?(_(),pe(J,{key:4,label:"Cache value","label-width":Gs},{default:E(()=>[$e(L("input",{type:"checkbox",id:"_cacheEnabled_","onUpdate:modelValue":k[8]||(k[8]=F=>i.cacheEnabled=F),checked:i.cacheEnabled},null,8,zde),[[il,i.cacheEnabled]]),k[14]||(k[14]=L("label",{for:"_cacheEnabled_"},"Enable",-1))]),_:1})):me("",!0),i.varValueSource=="ExternalHttp"?(_(),pe(J,{key:5,label:"","label-width":Gs},{default:E(()=>[i.cacheEnabled?(_(),G("span",jde,"After requesting once, the variable value will be stored in the cache and subsequently read from the cache.")):me("",!0),i.cacheEnabled?me("",!0):(_(),G("span",Hde,"HTTP API will be requested every time"))]),_:1})):me("",!0)]),_:1},8,["model"]),L("div",Ude,[w(P,{type:"primary",loading:O.loading,onClick:k[9]||(k[9]=F=>T())},{default:E(()=>[U(Q(O.$t("lang.common.save")),1)]),_:1},8,["loading"]),w(P,{onClick:k[10]||(k[10]=F=>S())},{default:E(()=>[U(Q(O.$t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])],64)}}},qde={key:0},qN={__name:"Demos",props:{parentPage:{type:String,default:""}},setup(t){const e=t,{t:n,locale:o}=cn(),r=Ko();function s(i,l){fX()?xo.alert(n("lang.home.demoUnvailableContent"),n("lang.home.demoUnvailableTitle"),{dangerouslyUseHTMLString:!0,confirmButtonText:"OK",callback:a=>{}}):r.push({name:"subflow",params:{id:i,name:l}})}return(i,l)=>{const a=dG;return _(),G("div",null,[L("strong",null,Q(i.$t("lang.home.demo")),1),l[9]||(l[9]=U(": ")),e.parentPage=="home"?(_(),G("ol",qde,[L("li",null,[w(a,{type:"success",onClick:l[0]||(l[0]=u=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:E(()=>[U(Q(i.$t("lang.home.demo1")),1)]),_:1})]),L("li",null,[w(a,{type:"success",onClick:l[1]||(l[1]=u=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:E(()=>[U(Q(i.$t("lang.home.demo2")),1)]),_:1})]),L("li",null,[w(a,{type:"success",onClick:l[2]||(l[2]=u=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:E(()=>[U(Q(i.$t("lang.home.demo3")),1)]),_:1})])])):(_(),G(Le,{key:1},[l[6]||(l[6]=U(" > 1. ")),w(a,{type:"success",onClick:l[3]||(l[3]=u=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:E(()=>[U(Q(i.$t("lang.home.demo1")),1)]),_:1}),l[7]||(l[7]=U(" > 2. ")),w(a,{type:"success",onClick:l[4]||(l[4]=u=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:E(()=>[U(Q(i.$t("lang.home.demo2")),1)]),_:1}),l[8]||(l[8]=U(" > 3. ")),w(a,{type:"success",onClick:l[5]||(l[5]=u=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:E(()=>[U(Q(i.$t("lang.home.demo3")),1)]),_:1})],64))])}}},Gde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function Kde(t,e){return _(),G("svg",Gde,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"},null,-1)]))}const Cs=xt({name:"ep-arrow-right-bold",render:Kde}),Jde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function Yde(t,e){return _(),G("svg",Jde,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256"},null,-1)]))}const Dp=xt({name:"ep-setting",render:Yde}),Xde={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Zde(t,e){return _(),G("svg",Xde,e[0]||(e[0]=[L("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[L("path",{d:"M3 10c0-3.771 0-5.657 1.172-6.828C5.343 2 7.229 2 11 2h2c3.771 0 5.657 0 6.828 1.172C21 4.343 21 6.229 21 10v4c0 3.771 0 5.657-1.172 6.828C18.657 22 16.771 22 13 22h-2c-3.771 0-5.657 0-6.828-1.172C3 19.657 3 17.771 3 14z"}),L("path",{"stroke-linecap":"round",d:"M8 12h8M8 8h8m-8 8h5"})],-1)]))}const GN=xt({name:"solar-document-text-linear",render:Zde}),Qde={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"};function efe(t,e){return _(),G("svg",Qde,e[0]||(e[0]=[L("g",{fill:"currentColor","fill-rule":"evenodd"},[L("path",{d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),L("path",{d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})],-1)]))}const KN=xt({name:"bi-box-arrow-up-right",render:efe}),tfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function nfe(t,e){return _(),G("svg",tfe,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M13.5 2c0 .444-.193.843-.5 1.118V5h5a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h5V3.118A1.5 1.5 0 1 1 13.5 2M6 7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-7zm-4 3H0v6h2zm20 0h2v6h-2zM9 14.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3"},null,-1)]))}const JN=xt({name:"ri-robot-2-line",render:nfe}),ofe="/assets/outbound-bot-EmsLuWRN.png",rfe="/assets/inbound-bot-PJJg_rST.png",sfe="/assets/text-bot-CWb_Poym.png",ife={style:{margin:"0",padding:"0"}},lfe=["id"],afe={style:{"margin-left":"50px"}},ufe={class:"title"},cfe={class:"description"},dfe={class:"title"},ffe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},hfe={class:"description"},pfe={class:"text-center"},G2="90px",gfe={__name:"Home",setup(t){cn();const e=Ko(),n=R(""),o=R(0),r=R(!1),s=R(""),i=ut([]),l=R(!1),a=async()=>{r.value=!0;const y=await nt("GET","check-new-version.json",null,null,null);y.status==200?y.data!=null?(s.value=y.data.version,i.splice(0,i.length),Dn(y.data.changelog,i),o.value=1):o.value=2:o.value=3,r.value=!1},u=()=>{e.push("/settings")},c=ut([]),d=ut({robotId:"",robotName:"",robotType:""});st(async()=>{await f();const y=await nt("GET","version.json",null,null,null);n.value=y});async function f(){const y=await nt("GET","robot",null,null,null);y.status==200&&c.splice(0,c.length,...y.data.reverse())}async function h(){(await nt("POST","robot",null,null,d)).status==200&&await f(),l.value=!1}function p(){d.robotId="",d.robotName="",d.robotType="",l.value=!0}function g(y,b){e.push({name:"robotDetail",params:{robotId:y,name:w_(b)}})}const v=y=>y=="OutboundCallBot"?ofe:y=="InboundCallBot"?rfe:y=="TextBot"?sfe:"",m=y=>y=="OutboundCallBot"?"Telephone outbound bot":y=="InboundCallBot"?"Telephone incoming bot":y=="TextBot"?"Text chat bot":"",C=[{rtype:"Telephone outbound bot",dialogNodeAnswerTextType:"Plain text",llmChatNodeAsyncResponse:"Not supported"},{rtype:"Telephone incoming bot",dialogNodeAnswerTextType:"Plain text",llmChatNodeAsyncResponse:"Not supported"},{rtype:"Text chat bot",dialogNodeAnswerTextType:"Rich text",llmChatNodeAsyncResponse:"Supported by SSE"}];return(y,b)=>{const S=rt,T=xn,O=Og,k=Mg,P=uK,I=J0,M=qN,D=VM,J=yK,oe=WM,N=at("router-link"),A=Cn,K=jn,j=Bs,F=Vs,le=zn,ue=Aa,se=_a,Ee=xi;return _(),G(Le,null,[w(k,{class:"header-row"},{default:E(()=>[w(O,{span:8},{default:E(()=>[b[8]||(b[8]=L("span",{class:"header"}," Workspace ",-1)),w(T,{size:"large",loading:r.value,onClick:a},{default:E(()=>[w(S,{size:"large"},{default:E(()=>b[7]||(b[7]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[L("path",{d:"M256 504c137 0 248-111 248-248S393 8 256 8S8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256S145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",fill:"currentColor"})],-1)])),_:1})]),_:1},8,["loading"]),w(T,{size:"large",onClick:u},{default:E(()=>[w(S,{size:"large"},{default:E(()=>[w(x(Dp))]),_:1})]),_:1})]),_:1})]),_:1}),w(P,{ref:"popover",placement:"right",title:"Changelog",width:300,trigger:"hover"},{reference:E(()=>[$e(w(T,{class:"m-2",type:"warning",text:""},{default:E(()=>[U("Found new verion: "+Q(s.value),1)]),_:1},512),[[qe,o.value==1]])]),default:E(()=>[L("ol",ife,[(_(!0),G(Le,null,yt(i,(fe,ve)=>(_(),G("li",{id:ve,key:ve},Q(fe),9,lfe))),128))]),b[9]||(b[9]=L("a",{href:"https://github.com/dialogflowchatbot/dialogflow/releases"},"Go to download",-1))]),_:1},512),$e(w(I,{title:"You're using the latest verion.",type:"success",onClose:b[0]||(b[0]=fe=>o.value=0)},null,512),[[qe,o.value==2]]),$e(w(I,{title:"Failed to check update information, please try again later.",type:"danger",onClose:b[1]||(b[1]=fe=>o.value=0)},null,512),[[qe,o.value==3]]),L("div",afe,[w(k,null,{default:E(()=>[w(O,{span:12},{default:E(()=>[L("h1",null,[w(S,{size:50},{default:E(()=>[w(x(JN))]),_:1}),b[11]||(b[11]=U(" Choose a robot to start ")),w(T,{size:"large",onClick:p,type:"success"},{default:E(()=>b[10]||(b[10]=[U(" Create a new robot ")])),_:1})])]),_:1})]),_:1}),w(k,null,{default:E(()=>[w(O,{span:12},{default:E(()=>[w(M,{parentPage:y.HomeV2},null,8,["parentPage"])]),_:1})]),_:1}),b[15]||(b[15]=L("p",null," ",-1)),w(oe,{wrap:"",size:"large"},{default:E(()=>[(_(!0),G(Le,null,yt(c,fe=>(_(),G("div",{class:"grid-content bg-color-light",key:fe.robotId},[w(J,{title:fe.robotName,"sub-title":m(fe.robotType)},{icon:E(()=>[w(D,{src:v(fe.robotType)},null,8,["src"])]),extra:E(()=>[w(T,{type:"primary",onClick:ve=>g(fe.robotId,fe.robotName)},{default:E(()=>b[12]||(b[12]=[U("Detail")])),_:2},1032,["onClick"])]),_:2},1032,["title","sub-title"])]))),128))]),_:1}),L("div",ufe,[w(S,{size:30},{default:E(()=>[w(x(Dp))]),_:1}),b[13]||(b[13]=U(" Global settings "))]),L("div",null,[w(S,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(N,{to:"/settings"},{default:E(()=>b[14]||(b[14]=[U("Global settings")])),_:1}),L("div",cfe,Q(y.$t("lang.guide.desc4")),1)]),L("div",dfe,[w(S,{size:30},{default:E(()=>[w(x(GN))]),_:1}),U(" "+Q(y.$t("lang.guide.title5")),1)]),L("div",null,[w(S,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),L("a",ffe,[U(Q(y.$t("lang.guide.nav5"))+" ",1),w(S,null,{default:E(()=>[w(x(KN))]),_:1})]),L("div",hfe,Q(y.$t("lang.guide.desc5")),1)])]),L("div",null,[L("div",pfe,[U(" Version: "+Q(n.value),1),b[16]||(b[16]=L("br",null,null,-1)),b[17]||(b[17]=L("a",{href:"https://dialogflowchatbot.github.io/",target:"_blank"},"https://dialogflowchatbot.github.io/",-1)),b[18]||(b[18]=L("br",null,null,-1)),b[19]||(b[19]=U(" If you have any questions or suggestions, please create a ")),b[20]||(b[20]=L("a",{href:"https://github.com/dialogflowchatbot/dialogflow/discussions",target:"_blank"},"discussion",-1)),b[21]||(b[21]=U(" on Github or email to: dialogflow@yeah.net "))]),b[22]||(b[22]=L("div",{class:"text-center"},[U(" Icons were created by "),L("a",{href:"https://www.flaticon.com/",target:"_blank"},"Flaticon")],-1))]),w(Ee,{modelValue:l.value,"onUpdate:modelValue":b[6]||(b[6]=fe=>l.value=fe),title:"Create a new robot",width:"60%"},{footer:E(()=>[w(T,{type:"primary",onClick:b[4]||(b[4]=fe=>h())},{default:E(()=>[U(Q(y.$t("lang.common.save")),1)]),_:1}),w(T,{onClick:b[5]||(b[5]=fe=>l.value=!1)},{default:E(()=>[U(Q(y.$t("lang.common.cancel")),1)]),_:1})]),default:E(()=>[w(le,{model:d},{default:E(()=>[w(K,{label:"Name","label-width":G2},{default:E(()=>[w(A,{modelValue:d.robotName,"onUpdate:modelValue":b[2]||(b[2]=fe=>d.robotName=fe),autocomplete:"off"},null,8,["modelValue"])]),_:1}),w(K,{label:"Type","label-width":G2},{default:E(()=>[w(F,{modelValue:d.robotType,"onUpdate:modelValue":b[3]||(b[3]=fe=>d.robotType=fe),placeholder:""},{default:E(()=>[w(j,{label:"Text bot",value:"TextBot"}),w(j,{label:"Inbound call bot",value:"InboundCallBot"}),w(j,{label:"Outbound call bot",value:"OutboundCallBot"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),w(se,{data:C},{default:E(()=>[w(ue,{property:"rtype",label:"",width:"190"}),w(ue,{property:"dialogNodeAnswerTextType",label:"Dialog node",width:"150"}),w(ue,{property:"llmChatNodeAsyncResponse",label:"Llm chat node streaming",width:"200"})]),_:1})]),_:1},8,["modelValue"])],64)}}},mfe=Bo(gfe,[["__scopeId","data-v-1465bd1e"]]),vfe={style:{padding:"10px",border:"1px solid #E6A23C","background-color":"#fdf6ec",margin:"10px"}},bfe={__name:"HttpApiList",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir(),s=Ko(),i=r.params.robotId,l=R([]);st(async()=>{const d=await nt("GET","external/http",{robotId:i},null,null);d&&d.status==200&&(l.value=d.data==null?[]:d.data)});const a=()=>{s.push({name:"externalHttpApiDetail",params:{id:"new"}})},u=(d,f)=>{s.push({name:"externalHttpApiDetail",params:{id:f.id}})},c=(d,f)=>{xo.confirm("Confirm whether to permanently delete this record?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const h=await nt("DELETE","external/http/"+f.id,{robotId:i},null,null);h&&h.status==200?(ln({showClose:!0,message:"Successfully deleted.",type:"success"}),l.value.splice(d,1)):ln({showClose:!0,message:"Delete failed.",type:"error"})}).catch(()=>{})};return(d,f)=>{const h=xn,p=at("router-link"),g=Aa,v=_a;return _(),G(Le,null,[f[7]||(f[7]=L("h1",null,"External HTTP APIs list",-1)),w(h,{type:"primary",class:"ml-2",onClick:f[0]||(f[0]=m=>a())},{default:E(()=>f[1]||(f[1]=[U("Add new external API")])),_:1}),L("div",vfe,[f[3]||(f[3]=U(" Now you can not only send data to the outside, but also get data from the outside and save it in variables by setting value source to a HTTP API. ")),w(p,{to:{name:"variables",params:{robotId:x(i)}}},{default:E(()=>f[2]||(f[2]=[U("Add new variable")])),_:1},8,["to"])]),w(v,{data:l.value,stripe:"",style:{width:"100%"}},{default:E(()=>[w(g,{prop:"name",label:"HTTP name",width:"450"}),w(g,{prop:"description",label:"Description",width:"500"}),w(g,{fixed:"right",label:x(n)("lang.mainflow.table")[2],"min-width":"40"},{default:E(m=>[w(h,{link:"",type:"primary",onClick:C=>u(m.$index,m.row)},{default:E(()=>f[4]||(f[4]=[U(" Edit ")])),_:2},1032,["onClick"]),f[6]||(f[6]=U(" | ")),w(h,{link:"",type:"danger",onClick:C=>c(m.$index,m.row)},{default:E(()=>f[5]||(f[5]=[U(" Delete ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])],64)}}},yfe={class:"mainBody"},wfe=["checked"],Cfe={class:"my-header"},xfe=["id"],Sfe={class:"dialog-footer"},Efe={__name:"HttpApiDetail",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir(),s=Ko(),i=r.params.robotId,l=ut({id:"",name:"",description:"",protocol:"http://",method:"GET",address:"",timeoutMilliseconds:"1500",postContentType:"UrlEncoded",headers:[],queryParams:[],formData:[],requestBody:"",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/123.0",asyncReq:!1}),a=ut({name:"",value:"",valueSource:""}),u=R(!1),c=R(!1),d=R(""),f=R("h"),h=R(0),p=ut([]),g=R(""),v=R(),m=r.params.id;st(async()=>{if(m&&m!="new"){const D=await nt("GET","external/http/"+m,{robotId:i},null,null);D&&D.status==200&&Dn(D.data,l)}let I=await nt("GET","variable",{robotId:i},null,null);if(I&&I.status==200&&I.data)for(var M in I.data)I.data.hasOwnProperty(M)&&p.push(I.data[M])});const C=()=>{a.name="",a.value="",a.valueSource="Val",h.value=-1;const I=f.value;I=="h"?d.value="Add header parameter":I=="q"?d.value="Add query parameter":I=="f"&&(d.value="Add POST parameter"),u.value=!0},y=()=>{const I=$i(a),M=h.value;M>-1?f.value=="h"?l.headers[M]=I:f.value=="q"?l.queryParams[M]=I:f.value=="f"&&(l.formData[M]=I):f.value=="h"?l.headers.push(I):f.value=="q"?l.queryParams.push(I):f.value=="f"&&l.formData.push(I),u.value=!1},b=I=>{h.value=I,f.value=="h"?Dn(l.headers[I],a):f.value=="q"?Dn(l.queryParams[I],a):f.value=="f"&&Dn(l.formData[I],a),u.value=!0},S=async()=>{l.protocol=l.protocol.replace("://","").toUpperCase();const I=await nt("POST","external/http/"+m,{robotId:i},null,l);I&&I.status==200?(ln({showClose:!0,message:"All data has been saved.",type:"success"}),O()):ln({showClose:!0,message:"Oops, this is something wrong.",type:"error"})},T=()=>{l.requestBody+="`"+g.value+"`",c.value=!1},O=()=>{s.push({name:"externalHttpApis",params:{robotId:i}})},k=(I,M)=>{},P=I=>{I!="POST"&&f.value=="f"&&(f.value="q")};return(I,M)=>{const D=Cf,J=Cn,oe=jn,N=Bs,A=Vs,K=zn,j=yy,F=wf,le=Aa,ue=xn,se=_a,Ee=QJ,fe=Tg,ve=vf,Oe=ZJ,ee=WM,ne=xi;return _(),G("div",yfe,[w(D,{title:x(e)("lang.common.back"),onBack:O},{content:E(()=>M[21]||(M[21]=[L("span",{class:"text-large font-600 mr-3"}," External HTTP API ",-1)])),_:1},8,["title"]),M[44]||(M[44]=L("p",null,null,-1)),w(K,{model:l,"label-width":"90px"},{default:E(()=>[w(oe,{label:"Api name"},{default:E(()=>[w(J,{modelValue:l.name,"onUpdate:modelValue":M[0]||(M[0]=Z=>l.name=Z)},null,8,["modelValue"])]),_:1}),w(oe,{label:"Description"},{default:E(()=>[w(J,{modelValue:l.description,"onUpdate:modelValue":M[1]||(M[1]=Z=>l.description=Z),maxlength:"256",placeholder:"Some descriptions of this API","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1}),w(oe,{label:"Method"},{default:E(()=>[w(A,{modelValue:l.method,"onUpdate:modelValue":M[2]||(M[2]=Z=>l.method=Z),placeholder:"",onChange:P},{default:E(()=>[w(N,{label:"GET",value:"GET"}),w(N,{label:"POST",value:"POST"})]),_:1},8,["modelValue"])]),_:1}),w(oe,{label:"Protocol"},{default:E(()=>[w(A,{modelValue:l.protocol,"onUpdate:modelValue":M[3]||(M[3]=Z=>l.protocol=Z),placeholder:""},{default:E(()=>[w(N,{label:"HTTP",value:"http://"}),w(N,{label:"HTTPS",value:"https://"})]),_:1},8,["modelValue"])]),_:1}),w(oe,{label:"Address"},{default:E(()=>[w(J,{modelValue:l.address,"onUpdate:modelValue":M[4]||(M[4]=Z=>l.address=Z)},{prepend:E(()=>[U(Q(l.method)+" "+Q(l.protocol),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),w(j,{tag:"b",size:"large"},{default:E(()=>M[22]||(M[22]=[U("Advanced")])),_:1}),w(K,{model:l,"label-width":"90px"},{default:E(()=>[w(oe,{label:"Timed out"},{default:E(()=>[w(F,{modelValue:l.timeoutMilliseconds,"onUpdate:modelValue":M[5]||(M[5]=Z=>l.timeoutMilliseconds=Z),min:200,max:6e5},null,8,["modelValue"]),M[23]||(M[23]=U(" milliseconds "))]),_:1}),w(oe,{label:"Parameters"},{default:E(()=>[w(Oe,{modelValue:f.value,"onUpdate:modelValue":M[9]||(M[9]=Z=>f.value=Z),class:"demo-tabs",onTabClick:k},{default:E(()=>[w(Ee,{label:"Header",name:"h"},{default:E(()=>[w(se,{data:l.headers,stripe:"",style:{width:"100%"}},{default:E(()=>[w(le,{prop:"name",label:"Parameter name",width:"300"}),w(le,{prop:"value",label:"Parameter value",width:"200"}),w(le,{fixed:"right",label:x(n)("lang.mainflow.table")[2],width:"270"},{default:E(Z=>[w(ue,{link:"",type:"primary",size:"small",onClick:ye=>b(Z.$index)},{default:E(()=>M[24]||(M[24]=[U(" Edit ")])),_:2},1032,["onClick"]),M[26]||(M[26]=U(" | ")),w(ue,{link:"",type:"primary",size:"small",onClick:ye=>I.delApi(Z.$index,Z.row)},{default:E(()=>M[25]||(M[25]=[U(" Delete ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),w(ue,{type:"warning",onClick:C},{default:E(()=>M[27]||(M[27]=[U("+Add header")])),_:1})]),_:1}),w(Ee,{label:"Query parameters",name:"q"},{default:E(()=>[w(se,{data:l.queryParams,stripe:"",style:{width:"100%"}},{default:E(()=>[w(le,{prop:"name",label:"Parameter name",width:"300"}),w(le,{prop:"value",label:"Parameter value",width:"200"}),w(le,{fixed:"right",label:x(n)("lang.mainflow.table")[2],width:"270"},{default:E(Z=>[w(ue,{link:"",type:"primary",size:"small",onClick:ye=>b(Z.$index)},{default:E(()=>M[28]||(M[28]=[U(" Edit ")])),_:2},1032,["onClick"]),M[30]||(M[30]=U(" | ")),w(ue,{link:"",type:"primary",size:"small",onClick:ye=>I.delApi(Z.$index,Z.row)},{default:E(()=>M[29]||(M[29]=[U(" Delete ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),w(ue,{type:"warning",onClick:C},{default:E(()=>M[31]||(M[31]=[U("+Add query parameter")])),_:1})]),_:1}),l.method=="POST"?(_(),pe(Ee,{key:0,label:"Request body",name:"f"},{default:E(()=>[M[39]||(M[39]=U(" Request body type: ")),w(ve,{modelValue:l.postContentType,"onUpdate:modelValue":M[6]||(M[6]=Z=>l.postContentType=Z),class:"ml-4"},{default:E(()=>[w(fe,{value:"UrlEncoded",size:"large"},{default:E(()=>M[32]||(M[32]=[U("application/x-www-form-urlencoded")])),_:1}),w(fe,{value:"JSON",size:"large"},{default:E(()=>M[33]||(M[33]=[U("JSON")])),_:1})]),_:1},8,["modelValue"]),l.postContentType=="UrlEncoded"?(_(),pe(se,{key:0,data:l.formData,stripe:"",style:{width:"100%"}},{default:E(()=>[w(le,{prop:"name",label:"Parameter name",width:"300"}),w(le,{prop:"value",label:"Parameter value",width:"200"}),w(le,{fixed:"right",label:x(n)("lang.mainflow.table")[2],width:"270"},{default:E(Z=>[w(ue,{link:"",type:"primary",size:"small",onClick:ye=>b(Z.$index)},{default:E(()=>M[34]||(M[34]=[U(" Edit ")])),_:2},1032,["onClick"]),M[36]||(M[36]=U(" | ")),w(ue,{link:"",type:"primary",size:"small",onClick:ye=>I.delApi(Z.$index,Z.row)},{default:E(()=>M[35]||(M[35]=[U(" Delete ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])):me("",!0),l.postContentType=="UrlEncoded"?(_(),pe(ue,{key:1,type:"warning",onClick:C},{default:E(()=>M[37]||(M[37]=[U("+Add form data")])),_:1})):me("",!0),l.postContentType=="JSON"?(_(),pe(J,{key:2,ref_key:"requestBodyRef",ref:v,modelValue:l.requestBody,"onUpdate:modelValue":M[7]||(M[7]=Z=>l.requestBody=Z),maxlength:"10240",placeholder:"JSON","show-word-limit":"",type:"textarea"},null,8,["modelValue"])):me("",!0),l.postContentType=="JSON"?(_(),pe(ue,{key:3,type:"warning",onClick:M[8]||(M[8]=Z=>c.value=!0)},{default:E(()=>M[38]||(M[38]=[U("+Insert a variable")])),_:1})):me("",!0)]),_:1})):me("",!0)]),_:1},8,["modelValue"])]),_:1}),w(oe,{label:"User agent"},{default:E(()=>[w(J,{modelValue:l.userAgent,"onUpdate:modelValue":M[10]||(M[10]=Z=>l.userAgent=Z)},null,8,["modelValue"])]),_:1}),w(oe,{label:"Sync/Async","label-width":I.formLabelWidth},{default:E(()=>[$e(L("input",{type:"checkbox",id:"_asyncReq_","onUpdate:modelValue":M[11]||(M[11]=Z=>l.asyncReq=Z),checked:l.asyncReq},null,8,wfe),[[il,l.asyncReq]]),M[40]||(M[40]=L("label",{for:"_asyncReq_"},"Asynchronous",-1))]),_:1},8,["label-width"]),w(oe,null,{default:E(()=>[w(ue,{type:"primary",onClick:S},{default:E(()=>M[41]||(M[41]=[U("Save")])),_:1}),w(ue,{type:"info",disabled:""},{default:E(()=>M[42]||(M[42]=[U("Test (WIP)")])),_:1}),w(ue,{onClick:O},{default:E(()=>M[43]||(M[43]=[U("Cancel")])),_:1})]),_:1})]),_:1},8,["model"]),w(ne,{modelValue:u.value,"onUpdate:modelValue":M[17]||(M[17]=Z=>u.value=Z),width:"60%"},{header:E(({close:Z,titleId:ye,titleClass:ke})=>[L("div",Cfe,[L("h4",{id:ye,class:Y(ke)},Q(d.value),11,xfe)])]),footer:E(()=>[w(ue,{type:"primary",loading:I.loading,onClick:y},{default:E(()=>[U(Q(I.$t("lang.common.save")),1)]),_:1},8,["loading"]),w(ue,{onClick:M[16]||(M[16]=Z=>u.value=!1)},{default:E(()=>[U(Q(I.$t("lang.common.cancel")),1)]),_:1})]),default:E(()=>[w(K,{model:a},{default:E(()=>[w(oe,{label:"Name","label-width":I.formLabelWidth},{default:E(()=>[w(J,{modelValue:a.name,"onUpdate:modelValue":M[12]||(M[12]=Z=>a.name=Z),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),w(oe,{label:"Value","label-width":I.formLabelWidth},{default:E(()=>[w(ee,{size:"10",spacer:"-"},{default:E(()=>[w(A,{modelValue:a.valueSource,"onUpdate:modelValue":M[13]||(M[13]=Z=>a.valueSource=Z),placeholder:"",style:{width:"150px"}},{default:E(()=>[w(N,{label:"Const value",value:"Val"}),w(N,{label:"From a variable",value:"Var"})]),_:1},8,["modelValue"]),a.valueSource=="Val"?(_(),pe(J,{key:0,modelValue:a.value,"onUpdate:modelValue":M[14]||(M[14]=Z=>a.value=Z),autocomplete:"off",style:{width:"400px"}},null,8,["modelValue"])):me("",!0),a.valueSource=="Var"?(_(),pe(A,{key:1,modelValue:g.value,"onUpdate:modelValue":M[15]||(M[15]=Z=>g.value=Z),placeholder:"Select a varaible",style:{width:"400px"}},{default:E(()=>[(_(!0),G(Le,null,yt(p,Z=>(_(),pe(N,{key:Z.varName,label:Z.varName,value:Z.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):me("",!0)]),_:1})]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"]),w(ne,{modelValue:c.value,"onUpdate:modelValue":M[20]||(M[20]=Z=>c.value=Z),title:"Insert a variable",width:"30%"},{footer:E(()=>[L("span",Sfe,[w(ue,{type:"primary",onClick:T},{default:E(()=>[U(Q(x(e)("lang.common.insert")),1)]),_:1}),w(ue,{onClick:M[19]||(M[19]=Z=>c.value=!1)},{default:E(()=>[U(Q(x(e)("lang.common.cancel")),1)]),_:1})])]),default:E(()=>[w(A,{modelValue:g.value,"onUpdate:modelValue":M[18]||(M[18]=Z=>g.value=Z),class:"m-2",placeholder:"Choose a variable",size:"large"},{default:E(()=>[(_(!0),G(Le,null,yt(p,Z=>(_(),pe(N,{key:Z.varName,label:Z.varName,value:Z.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}},Tfe=Bo(Efe,[["__scopeId","data-v-6ae0116a"]]),Ofe={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"};function kfe(t,e){return _(),G("svg",Ofe,e[0]||(e[0]=[L("g",{fill:"currentColor"},[L("path",{d:"M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333L6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),L("path",{d:"M5 6a1 1 0 1 1-2 0a1 1 0 0 1 2 0m4 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0m4 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0"})],-1)]))}const YN=xt({name:"bi-chat-square-dots",render:kfe}),Mfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function _fe(t,e){return _(),G("svg",Mfe,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M6.75 22q-1.125 0-1.937-.763T4 19.35V5.4q0-.95.588-1.7t1.537-.95L16 .8v16l-9.475 1.9q-.225.05-.375.238T6 19.35q0 .275.225.463T6.75 20H18V4h2v18zM9 16.175l5-.975V3.25l-5 .975zm-2 .4V4.625l-.375.075q-.275.05-.45.238T6 5.4v11.425q.125-.05.263-.087t.262-.063zm-1-11.8v12.05z"},null,-1)]))}const XN=xt({name:"material-symbols-book-5-outline",render:_fe}),Afe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Pfe(t,e){return _(),G("svg",Afe,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M10.614 17.796a.946.946 0 0 1-1.744 0l-.877-2.01a7.742 7.742 0 0 0-3.94-3.992l-2.416-1.072c-.768-.341-.768-1.458 0-1.8l2.34-1.038a7.747 7.747 0 0 0 3.997-4.125l.89-2.142a.946.946 0 0 1 1.757 0l.89 2.142a7.747 7.747 0 0 0 3.997 4.125l2.34 1.039c.768.34.768 1.458 0 1.799l-2.415 1.072a7.742 7.742 0 0 0-3.941 3.991zM4.54 9.822c2.285 1.015 4.144 2.683 5.202 4.978c1.059-2.295 2.917-3.963 5.203-4.978c-2.313-1.026-4.177-2.776-5.203-5.111c-1.025 2.335-2.89 4.085-5.202 5.111M19.4 22.69l.247-.566a4.365 4.365 0 0 1 2.221-2.25l.76-.339a.53.53 0 0 0 0-.963l-.717-.319a4.368 4.368 0 0 1-2.253-2.326l-.254-.611a.507.507 0 0 0-.942 0l-.254.61a4.368 4.368 0 0 1-2.253 2.327l-.718.32a.53.53 0 0 0 0 .962l.76.338a4.365 4.365 0 0 1 2.222 2.251l.247.566c.18.414.754.414.934 0m-1.026-3.643l.562-.559l.55.559l-.55.543z"},null,-1)]))}const ZN=xt({name:"ri-bard-line",render:Pfe}),Nfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Ife(t,e){return _(),G("svg",Nfe,e[0]||(e[0]=[L("path",{fill:"currentColor","fill-rule":"evenodd",d:"M12 1.25a.75.75 0 0 1 .75.75v10.973l1.68-1.961a.75.75 0 1 1 1.14.976l-3 3.5a.75.75 0 0 1-1.14 0l-3-3.5a.75.75 0 1 1 1.14-.976l1.68 1.96V2a.75.75 0 0 1 .75-.75M6.996 8.252a.75.75 0 0 1 .008 1.5c-1.093.006-1.868.034-2.457.142c-.566.105-.895.272-1.138.515c-.277.277-.457.666-.556 1.4c-.101.755-.103 1.756-.103 3.191v1c0 1.436.002 2.437.103 3.192c.099.734.28 1.122.556 1.4c.277.276.665.456 1.4.555c.754.102 1.756.103 3.191.103h8c1.435 0 2.436-.001 3.192-.103c.734-.099 1.122-.279 1.399-.556c.277-.277.457-.665.556-1.399c.101-.755.103-1.756.103-3.192v-1c0-1.435-.002-2.436-.103-3.192c-.099-.733-.28-1.122-.556-1.399c-.244-.243-.572-.41-1.138-.515c-.589-.108-1.364-.136-2.457-.142a.75.75 0 1 1 .008-1.5c1.082.006 1.983.032 2.72.167c.758.14 1.403.405 1.928.93c.602.601.86 1.36.982 2.26c.116.866.116 1.969.116 3.336v1.11c0 1.368 0 2.47-.116 3.337c-.122.9-.38 1.658-.982 2.26c-.602.602-1.36.86-2.26.982c-.867.116-1.97.116-3.337.116h-8.11c-1.367 0-2.47 0-3.337-.116c-.9-.121-1.658-.38-2.26-.982c-.602-.602-.86-1.36-.981-2.26c-.117-.867-.117-1.97-.117-3.337v-1.11c0-1.367 0-2.47.117-3.337c.12-.9.38-1.658.981-2.26c.525-.524 1.17-.79 1.928-.929c.737-.135 1.638-.161 2.72-.167","clip-rule":"evenodd"},null,-1)]))}const QN=xt({name:"solar-download-outline",render:Ife}),Lfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Rfe(t,e){return _(),G("svg",Lfe,e[0]||(e[0]=[L("g",{fill:"none"},[L("path",{stroke:"currentColor","stroke-width":"1.5",d:"M2 5.257C2 3.458 3.567 2 5.5 2S9 3.458 9 5.257C9 7.042 7.883 9.125 6.14 9.87a1.638 1.638 0 0 1-1.28 0C3.117 9.125 2 7.042 2 5.257Zm13 12C15 15.458 16.567 14 18.5 14s3.5 1.458 3.5 3.257c0 1.785-1.117 3.868-2.86 4.613a1.638 1.638 0 0 1-1.28 0c-1.743-.745-2.86-2.828-2.86-4.613Z"}),L("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.5 17.5h.009M5.49 5.5h.01"}),L("path",{fill:"currentColor",d:"M12 4.25a.75.75 0 0 0 0 1.5zM12 19l.53.53a.75.75 0 0 0 0-1.06zm5.206-10.313l.402.633zM6.795 15.313l.402.632zm4.236 1.657a.75.75 0 1 0-1.061 1.06zm-1.061 3a.75.75 0 1 0 1.06 1.06zm6.162-15.72H12v1.5h4.132zM12 18.25H7.868v1.5H12zm4.803-10.195L6.392 14.68l.805 1.265L17.61 9.32zM12.53 18.47l-1.5-1.5l-1.06 1.06l1.5 1.5zm-1.06 0l-1.5 1.5l1.06 1.06l1.5-1.5zm-3.602-.22c-1.25 0-1.726-1.633-.67-2.305l-.806-1.265c-2.321 1.477-1.275 5.07 1.476 5.07zm8.264-12.5c1.25 0 1.726 1.633.671 2.305l.805 1.265c2.322-1.477 1.275-5.07-1.476-5.07z"})],-1)]))}const eI=xt({name:"solar-routing-2-linear",render:Rfe}),$fe={class:"header"},Dfe={style:{"margin-left":"50px"}},Vfe={class:"title"},Bfe={class:"description"},Ffe={class:"title"},zfe={class:"description"},jfe={class:"title"},Hfe={class:"description"},Ufe={class:"title"},Wfe={class:"description"},qfe={class:"title"},Gfe={class:"title"},Kfe={class:"title"},Jfe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},Yfe={class:"description"},Xfe={class:"dialog-footer"},Zfe={__name:"RobotDetail",setup(t){cn();const e=Ir(),n=Ko(),o=e.params.robotId;let r="";const s=ut({robotId:"",robotName:"",robotType:""}),i=R(!1),l=()=>{n.push("/")};st(async()=>{const c=await nt("GET","robot/detail",{robotId:o},null,null);c.status==200&&c.data!=null?(Dn(c.data,s),r=s.robotName,hX(c.data)):ln.error("Can NOT find robot information by robotId.")});async function a(){const c=await nt("POST","robot",null,null,s);c.status==200?ln.success("Changed successfully."):ln.error(c.err.message)}async function u(){xo.confirm("Do you confirm that delete this robot and its all data?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const c=await nt("DELETE","robot",{robotId:o},null,null);c.status==200?l():ln.error(c.err.message)}).catch(()=>{})}return(c,d)=>{const f=Cf,h=xn,p=Og,g=Mg,v=rt,m=at("router-link"),C=Cn,y=jn,b=zn,S=xi;return _(),G(Le,null,[w(f,{title:"Robots list",onBack:l},{content:E(()=>d[5]||(d[5]=[L("span",{class:"text-large font-600 mr-3"}," Robot detail ",-1)])),_:1}),w(g,{class:"header-row"},{default:E(()=>[w(p,{span:18},{default:E(()=>[L("span",$fe,Q(s.robotName),1),w(h,{type:"primary",text:"",onClick:d[0]||(d[0]=T=>{i.value=!0})},{default:E(()=>d[6]||(d[6]=[U(" Change robot name ")])),_:1})]),_:1}),w(p,{span:3},{default:E(()=>[w(h,{type:"danger",onClick:u},{default:E(()=>d[7]||(d[7]=[U(" Delete this robot ")])),_:1})]),_:1})]),_:1}),L("div",Dfe,[L("div",Vfe,[w(v,{size:30},{default:E(()=>[w(x(YN))]),_:1}),U(Q(c.$t("lang.guide.title1")),1)]),L("div",null,[w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(m,{to:{name:"mainflows",params:{robotId:x(o)}}},{default:E(()=>[U(Q(c.$t("lang.guide.nav1")),1)]),_:1},8,["to"]),L("div",Bfe,[w(qN,{parentPage:c.robotDetail},null,8,["parentPage"])])]),L("div",Ffe,[w(v,{size:30},{default:E(()=>[w(x(XN))]),_:1}),d[8]||(d[8]=U(" Knowledge base "))]),L("div",null,[w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(m,{to:{name:"kbQA",params:{robotId:x(o)}}},{default:E(()=>d[9]||(d[9]=[U("Questions and answer")])),_:1},8,["to"]),d[13]||(d[13]=U("    ")),w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(m,{to:{name:"kbDoc",params:{robotId:x(o)}}},{default:E(()=>d[10]||(d[10]=[U("Documents management")])),_:1},8,["to"]),L("div",zfe,[U(Q(c.$t("lang.guide.desc2")),1),d[11]||(d[11]=L("br",null,null,-1)),d[12]||(d[12]=U(` We have built-in "Positive" and "Negative" intentions. If that's not enough, you can add your own `))])]),L("div",jfe,[w(v,{size:30},{default:E(()=>[w(x(ZN))]),_:1}),U(" "+Q(c.$t("lang.guide.title2")),1)]),L("div",null,[w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(m,{to:{name:"intents",params:{robotId:x(o)}}},{default:E(()=>[U(Q(c.$t("lang.guide.nav2")),1)]),_:1},8,["to"]),L("div",Hfe,[U(Q(c.$t("lang.guide.desc2")),1),d[14]||(d[14]=L("br",null,null,-1)),d[15]||(d[15]=U(` We have built-in "Positive" and "Negative" intentions. If that's not enough, you can add your own `))])]),L("div",Ufe,[w(v,{size:30},{default:E(()=>[w(x(QN))]),_:1}),U(" "+Q(c.$t("lang.guide.title3")),1)]),L("div",null,[w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(m,{to:{name:"variables",params:{robotId:x(o)}}},{default:E(()=>[U(Q(c.$t("lang.guide.nav3")),1)]),_:1},8,["to"]),L("div",Wfe,Q(c.$t("lang.guide.desc3")),1)]),L("div",qfe,[w(v,{size:30},{default:E(()=>[w(x(eI))]),_:1}),d[16]||(d[16]=U(" External APIs call "))]),L("div",null,[w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(m,{to:{name:"externalHttpApis",params:{robotId:x(o)}}},{default:E(()=>d[17]||(d[17]=[U("External HTTP API list")])),_:1},8,["to"]),d[18]||(d[18]=L("div",{class:"description"},"By using this function, you can send data to external URLs and receive response.",-1))]),L("div",Gfe,[w(v,{size:30},{default:E(()=>[w(x(Dp))]),_:1}),U(" "+Q(c.$t("lang.guide.title4")),1)]),L("div",null,[w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),w(m,{to:{name:"settings",params:{robotId:x(o)}}},{default:E(()=>[U(Q(c.$t("lang.guide.nav4")),1)]),_:1},8,["to"]),d[19]||(d[19]=L("div",{class:"description"},"Change maximum session idle time, Embedding provider and Email STMP information.",-1))]),L("div",Kfe,[w(v,{size:30},{default:E(()=>[w(x(GN))]),_:1}),U(" "+Q(c.$t("lang.guide.title5")),1)]),L("div",null,[w(v,{size:15},{default:E(()=>[w(x(Cs))]),_:1}),L("a",Jfe,[U(Q(c.$t("lang.guide.nav5"))+" ",1),w(v,null,{default:E(()=>[w(x(KN))]),_:1})]),L("div",Yfe,Q(c.$t("lang.guide.desc5")),1)])]),w(S,{modelValue:i.value,"onUpdate:modelValue":d[4]||(d[4]=T=>i.value=T),title:"Change robot name"},{footer:E(()=>[L("span",Xfe,[w(h,{type:"primary",onClick:d[2]||(d[2]=T=>{i.value=!1,a()})},{default:E(()=>[U(Q(c.$t("lang.common.save")),1)]),_:1}),w(h,{onClick:d[3]||(d[3]=T=>{s.robotName=x(r),i.value=!1})},{default:E(()=>[U(Q(c.$t("lang.common.cancel")),1)]),_:1})])]),default:E(()=>[w(b,{model:c.form},{default:E(()=>[w(y,{label:"Name","label-width":c.formLabelWidth},{default:E(()=>[w(C,{modelValue:s.robotName,"onUpdate:modelValue":d[1]||(d[1]=T=>s.robotName=T),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},Qfe=Bo(Zfe,[["__scopeId","data-v-dd59be65"]]),ehe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function the(t,e){return _(),G("svg",ehe,e[0]||(e[0]=[L("path",{fill:"currentColor",d:"M5 20v-9.15L2.2 13L1 11.4L12 3l4 3.05V4h3v4.35l4 3.05l-1.2 1.6l-2.8-2.15V20h-6v-6h-2v6zm2-2h2v-6h6v6h2V9.325l-5-3.8l-5 3.8zm3-7.975h4q0-.8-.6-1.313T12 8.2t-1.4.513t-.6 1.312M9 18v-6h6v6v-6H9z"},null,-1)]))}const nhe=xt({name:"material-symbols-house-outline",render:the}),ohe={__name:"RobotFrame",setup(t){const e=Ir(),n=e.params.robotId,o=R(!1);return(r,s)=>{const i=rt,l=NG,a=IG,u=PG,c=kM,d=at("router-view"),f=MM,h=OM;return _(),pe(h,{style:{"min-height":"100vh"}},{default:E(()=>[w(c,{width:o.value?"65px":"200px",style:{"background-color":"#545c64"}},{default:E(()=>[L("div",{class:"toggle-button",onClick:s[0]||(s[0]=p=>o.value=!o.value)},Q(o.value?">>>":"<<<"),1),w(u,{"active-text-color":"#409Eff","background-color":"#545c64","text-color":"#fff",collapse:o.value,"collapse-transition":!1,router:"","default-active":x(e).path},{default:E(()=>[w(l,{index:"/"},{title:E(()=>s[1]||(s[1]=[U("Home")])),default:E(()=>[w(i,null,{default:E(()=>[w(x(nhe))]),_:1})]),_:1}),w(l,{index:"/robot/"+x(n)},{title:E(()=>s[2]||(s[2]=[U("This robot")])),default:E(()=>[w(i,null,{default:E(()=>[w(x(JN))]),_:1})]),_:1},8,["index"]),w(l,{index:"/robot/"+x(n)+"/mainflows"},{title:E(()=>s[3]||(s[3]=[U("Dialog flows")])),default:E(()=>[w(i,null,{default:E(()=>[w(x(YN))]),_:1})]),_:1},8,["index"]),w(a,{index:"kbMenu"},{title:E(()=>[w(i,null,{default:E(()=>[w(x(XN))]),_:1}),s[4]||(s[4]=L("span",null,"Knowledge base",-1))]),default:E(()=>[w(l,{index:"/robot/"+x(n)+"/kb/qa"},{default:E(()=>s[5]||(s[5]=[U("Questions and answer")])),_:1},8,["index"]),w(l,{index:"/robot/"+x(n)+"/kb/doc"},{default:E(()=>s[6]||(s[6]=[U("Documents (WIP)")])),_:1},8,["index"])]),_:1}),w(l,{index:"/robot/"+x(n)+"/intents"},{title:E(()=>s[7]||(s[7]=[U("Intents")])),default:E(()=>[w(i,null,{default:E(()=>[w(x(ZN))]),_:1})]),_:1},8,["index"]),w(l,{index:"/robot/"+x(n)+"/variables"},{title:E(()=>s[8]||(s[8]=[U("Variables")])),default:E(()=>[w(i,null,{default:E(()=>[w(x(QN))]),_:1})]),_:1},8,["index"]),w(l,{index:"/robot/"+x(n)+"/external/httpApis"},{title:E(()=>s[9]||(s[9]=[U("External APIs")])),default:E(()=>[w(i,null,{default:E(()=>[w(x(eI))]),_:1})]),_:1},8,["index"]),w(l,{index:"/robot/"+x(n)+"/settings"},{title:E(()=>s[10]||(s[10]=[U("Settings")])),default:E(()=>[w(i,null,{default:E(()=>[w(x(Dp))]),_:1})]),_:1},8,["index"])]),_:1},8,["collapse","default-active"])]),_:1},8,["width"]),w(f,null,{default:E(()=>[w(d)]),_:1})]),_:1})}}},rhe=Bo(ohe,[["__scopeId","data-v-b3987811"]]),she={__name:"DocList",setup(t){const e=Ir();Ko();const n=e.params.robotId,r=(window.location.href.indexOf("localhost")>-1?"http://localhost:12715":"")+"/kb/doc/upload?robotId="+n;return(s,i)=>{const l=rt,a=OY;return _(),G(Le,null,[i[2]||(i[2]=L("h1",null,"Documents",-1)),w(a,{drag:"",action:r,multiple:""},{tip:E(()=>i[0]||(i[0]=[L("div",{class:"el-upload__tip"}," docx/pdf files with a size less than 20MB ",-1)])),default:E(()=>[w(l,{class:"el-icon--upload"},{default:E(()=>[w(x(Hj))]),_:1}),i[1]||(i[1]=L("div",null,[U(" Drop file here or "),L("em",null,"click to upload")],-1))]),_:1})],64)}}},ihe={class:"dialog-footer"},lhe=["id"],ahe={class:"demo-drawer__footer"},uhe={class:"demo-drawer__footer"},$l="120px",che={__name:"QnAList",setup(t){const{t:e,tm:n,rt:o}=cn(),r=Ir();Ko();const s=r.params.robotId,i=ut({id:null,question:{question:""},similarQuestions:[],answer:""}),l=ut([]),a=async()=>{const T=await nt("GET","kb/qa",{robotId:s},null,null);T.status==200&&l.splice(0,l.length,...T.data)};st(()=>{a()});const u=()=>{i.id=null,i.question.question="",i.similarQuestions=[],i.answer="",g.value=!0},c=T=>{m.value=T;const O=l[T];O&&(i.id=O.id,i.question.question=O.question.question,i.similarQuestions.splice(0,i.similarQuestions.length,...O.similarQuestions),i.answer=O.answer,v.value=!0)},d=T=>{const O=l[T];O&&(i.id=O.id,i.question.question=O.question.question,i.similarQuestions.splice(0,i.similarQuestions.length,...O.similarQuestions),i.answer=O.answer,g.value=!0)},f=async()=>{const T=await nt("POST","kb/qa",{robotId:s},null,i);g.value=!1,a()},h=async T=>{xo.confirm("Confirm to delete this QnA?","Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{const O=l[T];if(O){i.id=O.id;const k=await nt("DELETE","kb/qa",{robotId:s},null,i);lt(()=>{v.value=!1,a()})}}).catch(()=>{})},p=T=>{y.value=!0,async function(O){const k=await nt("GET","kb/qa/dryrun",{robotId:s,text:O},null,null);k.status==200?S.value=k.data[0].answer+" (Distance: "+k.data[1]+")":S.value=k.err.message}(T).then(()=>y.value=!1)},g=R(!1),v=R(!1),m=R(0),C=R(!1),y=R(!1),b=R(""),S=R("");return(T,O)=>{const k=xn,P=Aa,I=_a,M=Cn,D=jn,J=zn,oe=xi,N=cr;return _(),G(Le,null,[O[27]||(O[27]=L("h1",null,"Questions and answer",-1)),w(k,{type:"primary",onClick:u},{default:E(()=>O[14]||(O[14]=[U("Add QnA pair")])),_:1}),w(k,{type:"primary",onClick:O[0]||(O[0]=A=>C.value=!0)},{default:E(()=>O[15]||(O[15]=[U("Test QnA")])),_:1}),w(I,{data:l,style:{width:"100%"}},{default:E(()=>[w(P,{prop:"question.question",label:"Question",width:"360"}),w(P,{prop:"similarQuestions.length",label:"No. of similar questions",width:"180"}),w(P,{prop:"answer",label:"Answer"}),w(P,{fixed:"right",label:"Operations","min-width":"40"},{default:E(A=>[w(k,{link:"",type:"primary",onClick:K=>c(A.$index)},{default:E(()=>O[16]||(O[16]=[U("Detail")])),_:2},1032,["onClick"]),w(k,{link:"",type:"primary",onClick:K=>d(A.$index)},{default:E(()=>O[17]||(O[17]=[U("Edit")])),_:2},1032,["onClick"]),w(k,{link:"",type:"danger",onClick:K=>h(A.$index)},{default:E(()=>O[18]||(O[18]=[U("Delete")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),w(oe,{modelValue:g.value,"onUpdate:modelValue":O[5]||(O[5]=A=>g.value=A),title:"Add new QA",width:"800"},{footer:E(()=>[L("div",ihe,[w(k,{type:"primary",onClick:f},{default:E(()=>[U(Q(T.$t("lang.common.save")),1)]),_:1}),w(k,{onClick:O[4]||(O[4]=A=>g.value=!1)},{default:E(()=>O[21]||(O[21]=[U("Cancel")])),_:1})])]),default:E(()=>[w(J,{model:i},{default:E(()=>[w(D,{label:"Question","label-width":$l},{default:E(()=>[w(M,{modelValue:i.question.question,"onUpdate:modelValue":O[1]||(O[1]=A=>i.question.question=A),placeholder:""},null,8,["modelValue"])]),_:1}),(_(!0),G(Le,null,yt(i.similarQuestions,(A,K)=>(_(),pe(D,{id:K,key:K,label:K==0?"Similar questions":"","label-width":$l},{default:E(()=>[w(M,{modelValue:i.similarQuestions[K].question,"onUpdate:modelValue":j=>i.similarQuestions[K].question=j,placeholder:"",style:{width:"90%"}},null,8,["modelValue","onUpdate:modelValue"]),w(k,{circle:"",onClick:j=>i.similarQuestions.splice(K,1)},{default:E(()=>O[19]||(O[19]=[U("-")])),_:2},1032,["onClick"])]),_:2},1032,["id","label"]))),128)),w(D,{label:"","label-width":$l},{default:E(()=>[w(k,{plain:"",onClick:O[2]||(O[2]=A=>i.similarQuestions.push({question:""}))},{default:E(()=>O[20]||(O[20]=[U("New similar question")])),_:1})]),_:1}),w(D,{label:"Answer","label-width":$l},{default:E(()=>[w(M,{modelValue:i.answer,"onUpdate:modelValue":O[3]||(O[3]=A=>i.answer=A),placeholder:"",type:"textarea",rows:5},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),w(N,{modelValue:v.value,"onUpdate:modelValue":O[9]||(O[9]=A=>v.value=A),title:"Detail of QnA",direction:"rtl",size:"50%"},{default:E(()=>[w(J,null,{default:E(()=>[w(D,{label:"Question","label-width":$l},{default:E(()=>[U(Q(i.question.question),1)]),_:1}),$e(w(D,{label:"Similar questions","label-width":$l},{default:E(()=>[(_(!0),G(Le,null,yt(i.similarQuestions,(A,K)=>(_(),G("div",{id:K,key:K},Q(A.question),9,lhe))),128))]),_:1},512),[[qe,i.similarQuestions.length>0]]),w(D,{label:"Answer","label-width":$l},{default:E(()=>[U(Q(i.answer),1)]),_:1})]),_:1}),L("div",ahe,[w(k,{type:"primary",loading:y.value,onClick:O[6]||(O[6]=A=>g.value=!0)},{default:E(()=>O[22]||(O[22]=[U("Edit")])),_:1},8,["loading"]),w(k,{type:"danger",loading:y.value,onClick:O[7]||(O[7]=A=>h(m.value))},{default:E(()=>O[23]||(O[23]=[U("Delete")])),_:1},8,["loading"]),w(k,{onClick:O[8]||(O[8]=A=>v.value=!1)},{default:E(()=>O[24]||(O[24]=[U("Close")])),_:1})])]),_:1},8,["modelValue"]),w(N,{modelValue:C.value,"onUpdate:modelValue":O[13]||(O[13]=A=>C.value=A),title:"Test QnA",direction:"rtl",size:"50%"},{default:E(()=>[w(J,null,{default:E(()=>[w(D,{label:""},{default:E(()=>[w(M,{modelValue:b.value,"onUpdate:modelValue":O[10]||(O[10]=A=>b.value=A),style:{width:"240px"},placeholder:"Please input some texts"},null,8,["modelValue"])]),_:1}),w(D,{label:""},{default:E(()=>[U(Q(S.value),1)]),_:1})]),_:1}),L("div",uhe,[w(k,{type:"primary",loading:y.value,onClick:O[11]||(O[11]=A=>p(b.value))},{default:E(()=>O[25]||(O[25]=[U("Test")])),_:1},8,["loading"]),w(k,{onClick:O[12]||(O[12]=A=>C.value=!1)},{default:E(()=>O[26]||(O[26]=[U("Close")])),_:1})])]),_:1},8,["modelValue"])],64)}}},dhe=Bo(che,[["__scopeId","data-v-c7f4a575"]]),fhe=[{path:"/",component:mfe},{path:"/demo/:demo",component:q2},{path:"/robot/:robotId",component:rhe,children:[{path:"",name:"robotDetail",component:Qfe},{path:"/robot/:robotId/mainflows",name:"mainflows",component:OX},{path:"/robot/:robotId/kb/doc",name:"kbDoc",component:she},{path:"/robot/:robotId/kb/qa",name:"kbQA",component:dhe},{path:"/robot/:robotId/settings",name:"settings",component:EX},{path:"/robot/:robotId/intents",name:"intents",component:Vde},{path:"/robot/:robotId/intent/detail",component:Fde},{path:"/robot/:robotId/variables",name:"variables",component:Wde},{path:"/robot/:robotId/external/httpApis",name:"externalHttpApis",component:bfe},{path:"/robot/:robotId/external/httpApi/:id",name:"externalHttpApiDetail",component:Tfe}]},{path:"/robot/:robotId/subflow/:id/:name",name:"subflow",component:q2,props:!0},{path:"/settings",component:vX}],hhe=NR({history:lR(),routes:fhe,scrollBehavior(t,e,n){return{top:0}}}),u1=C0(q4);u1.use(hhe);u1.use(W4);u1.mount("#app")});export default phe(); diff --git a/src/resources/assets/assets/index-B4PwGmOZ.css b/src/resources/assets/assets/index-B4PwGmOZ.css deleted file mode 100644 index 2c1af57..0000000 --- a/src/resources/assets/assets/index-B4PwGmOZ.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--inline .el-form-item{display:inline-flex;margin-right:32px;vertical-align:middle}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{justify-content:flex-start}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.el-form-item__label-wrap{display:flex}.el-form-item__label{align-items:flex-start;box-sizing:border-box;color:var(--el-text-color-regular);display:inline-flex;flex:0 0 auto;font-size:var(--el-form-label-font-size);height:32px;justify-content:flex-end;line-height:32px;padding:0 12px 0 0}.el-form-item__content{align-items:center;display:flex;flex:1;flex-wrap:wrap;font-size:var(--font-size);line-height:32px;min-width:0;position:relative}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;left:0;line-height:1;padding-top:2px;position:absolute;top:100%}.el-form-item__error--inline{display:inline-block;left:auto;margin-left:10px;position:relative;top:auto}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{color:var(--el-color-danger);content:"*";margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{color:var(--el-color-danger);content:"*";margin-left:4px}.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper.is-focus,.el-form-item.is-error .el-input__wrapper:focus,.el-form-item.is-error .el-input__wrapper:hover,.el-form-item.is-error .el-select__wrapper,.el-form-item.is-error .el-select__wrapper.is-focus,.el-form-item.is-error .el-select__wrapper:focus,.el-form-item.is-error .el-select__wrapper:hover,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner.is-focus,.el-form-item.is-error .el-textarea__inner:focus,.el-form-item.is-error .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:inset 0 0 0 1px transparent}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255,255,255,.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary);align-items:center;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;color:var(--el-button-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight);height:32px;justify-content:center;line-height:1;outline:none;padding:8px 15px;text-align:center;transition:.1s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-button:hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color);color:var(--el-button-hover-text-color);outline:none}.el-button:active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{align-items:center;display:inline-flex}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{background-color:var(--el-button-disabled-bg-color);background-image:none;border-color:var(--el-button-disabled-border-color);color:var(--el-button-disabled-text-color);cursor:not-allowed}.el-button.is-loading{pointer-events:none;position:relative}.el-button.is-loading:before{background-color:var(--el-mask-color-extra-light);border-radius:inherit;bottom:-1px;content:"";left:-1px;pointer-events:none;position:absolute;right:-1px;top:-1px;z-index:1}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px;width:32px}.el-button.is-text{background-color:transparent;border:0 solid transparent;color:var(--el-button-text-color)}.el-button.is-text.is-disabled{background-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{background:transparent;border-color:transparent;color:var(--el-button-text-color);height:auto;padding:2px}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-link:not(.is-disabled):hover{background-color:transparent;border-color:transparent}.el-button.is-link:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-button-active-color)}.el-button--text{background:transparent;border-color:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button--text:not(.is-disabled):hover{background-color:transparent;border-color:transparent;color:var(--el-color-primary-light-3)}.el-button--text:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-color-primary-dark-2)}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--large{--el-button-size:40px;border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base);height:var(--el-button-size);padding:12px 19px}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{padding:12px;width:var(--el-button-size)}.el-button--small{--el-button-size:24px;border-radius:calc(var(--el-border-radius-base) - 1px);font-size:12px;height:var(--el-button-size);padding:5px 11px}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{padding:5px;width:var(--el-button-size)}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;font-size:var(--el-font-size-base);position:relative;vertical-align:bottom;width:100%}.el-textarea__inner{-webkit-appearance:none;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:block;font-family:inherit;font-size:inherit;line-height:1.5;padding:5px 11px;position:relative;resize:vertical;transition:var(--el-transition-box-shadow);width:100%}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset;outline:none}.el-textarea .el-input__count{background:var(--el-fill-color-blank);bottom:5px;color:var(--el-color-info);font-size:12px;line-height:14px;position:absolute;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);box-sizing:border-box;display:inline-flex;font-size:var(--el-font-size-base);line-height:var(--el-input-height);position:relative;vertical-align:middle;width:var(--el-input-width)}.el-input::-webkit-scrollbar{width:6px;z-index:11}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{background:var(--el-text-color-disabled);border-radius:5px;width:6px}.el-input::-webkit-scrollbar-corner,.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);cursor:pointer;font-size:14px}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{align-items:center;color:var(--el-color-info);display:inline-flex;font-size:12px;height:100%}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);display:inline-block;line-height:normal;padding-left:8px}.el-input__wrapper{align-items:center;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;cursor:text;display:inline-flex;flex-grow:1;justify-content:center;padding:1px 11px;transform:translateZ(0);transition:var(--el-transition-box-shadow)}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));flex-grow:1;font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);outline:none;padding:0;width:100%}.el-input__inner:focus{outline:none}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__prefix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__suffix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{align-items:center;display:flex;height:inherit;justify-content:center;line-height:inherit;margin-left:8px;transition:all var(--el-transition-duration)}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{align-items:stretch;display:inline-flex;width:100%}.el-input-group__append,.el-input-group__prepend{align-items:center;background-color:var(--el-fill-color-light);border-radius:var(--el-input-border-radius);color:var(--el-color-info);display:inline-flex;justify-content:center;min-height:100%;padding:0 20px;position:relative;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{background-color:transparent;border-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-bottom-left-radius:0;border-top-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-input-number{display:inline-flex;line-height:30px;position:relative;width:150px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;line-height:1;text-align:center}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-input-number__decrease,.el-input-number__increase{align-items:center;background:var(--el-fill-color-light);bottom:1px;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:13px;height:auto;justify-content:center;position:absolute;top:1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:32px;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{border-left:var(--el-border);border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;right:1px}.el-input-number__decrease{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border);left:1px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{line-height:38px;width:180px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{font-size:14px;width:40px}.el-input-number--large .el-input--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{line-height:22px;width:120px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{font-size:12px;width:24px}.el-input-number--small .el-input--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-bottom:var(--el-border);border-radius:0 var(--el-border-radius-base) 0 0;bottom:auto;left:auto}.el-input-number.is-controls-right .el-input-number__decrease{border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0;border-right:none;left:auto;right:1px;top:auto}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-divider{position:relative}.el-divider--horizontal{border-top:1px var(--el-border-color) var(--el-border-style);display:block;height:1px;margin:24px 0;width:100%}.el-divider--vertical{border-left:1px var(--el-border-color) var(--el-border-style);display:inline-block;height:1em;margin:0 8px;position:relative;vertical-align:middle;width:1px}.el-divider__text{background-color:var(--el-bg-color);color:var(--el-text-color-primary);font-size:14px;font-weight:500;padding:0 20px;position:absolute}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{align-items:center;display:flex;justify-content:space-between;line-height:24px}.el-page-header__left{align-items:center;display:flex;margin-right:40px;position:relative}.el-page-header__back{align-items:center;cursor:pointer;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;display:flex;font-size:16px;margin-right:10px}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;left:50%;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;top:20px;transform:translate(-50%);transition:opacity var(--el-transition-duration),transform .4s,top .4s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-message.is-center{justify-content:center}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;align-items:center;background-color:var(--el-color-white);border-radius:var(--el-alert-border-radius-base);box-sizing:border-box;display:flex;margin:0;opacity:1;overflow:hidden;padding:var(--el-alert-padding);position:relative;transition:opacity var(--el-transition-duration-fast);width:100%}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color)}.el-alert--success.is-light,.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color)}.el-alert--info.is-light,.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color)}.el-alert--warning.is-light,.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color)}.el-alert--error.is-light,.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:flex;flex-direction:column;gap:4px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);margin-right:8px;width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);margin-right:12px;width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{cursor:pointer;font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;right:16px;top:12px}.el-alert .el-alert__close-btn.is-customed{font-size:var(--el-alert-close-customed-font-size);font-style:normal;line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{height:100%;width:100%}.el-image{display:inline-block;overflow:hidden;position:relative}.el-image__inner{opacity:1;vertical-align:top}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{left:0;position:absolute;top:0}.el-image__error,.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{align-items:center;color:var(--el-text-color-placeholder);display:flex;font-size:14px;justify-content:center;vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{bottom:0;left:0;position:fixed;right:0;top:0}.el-image-viewer__btn{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.el-image-viewer__btn .el-icon{cursor:pointer;font-size:inherit}.el-image-viewer__close{font-size:40px;height:40px;right:40px;top:40px;width:40px}.el-image-viewer__canvas{align-items:center;display:flex;height:100%;justify-content:center;position:static;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.el-image-viewer__actions{background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px;bottom:30px;height:44px;left:50%;padding:0 23px;transform:translate(-50%);width:282px}.el-image-viewer__actions__inner{align-items:center;color:#fff;cursor:default;display:flex;font-size:23px;height:100%;justify-content:space-around;width:100%}.el-image-viewer__prev{left:40px}.el-image-viewer__next,.el-image-viewer__prev{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;top:50%;transform:translateY(-50%);width:44px}.el-image-viewer__next{right:40px;text-indent:2px}.el-image-viewer__close{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;width:44px}.el-image-viewer__mask{background:#000;height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@-webkit-keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-checkbox-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-checkbox-font-weight);height:var(--el-checkbox-height,32px);margin-right:30px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{border-radius:calc(var(--el-border-radius-base) - 1px);padding:0 11px 0 7px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{border-radius:var(--el-checkbox-border-radius);outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px}.el-checkbox__input{cursor:pointer;display:inline-flex;outline:none;position:relative;white-space:nowrap}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-icon-color);cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-checked-icon-color);transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-checked-icon-color);content:"";display:block;height:2px;left:0;position:absolute;right:0;top:5px;transform:scale(.5)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{background-color:var(--el-checkbox-bg-color);border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;display:inline-block;height:var(--el-checkbox-input-height);position:relative;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46);width:var(--el-checkbox-input-width);z-index:var(--el-index-normal)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{border:1px solid transparent;border-left:0;border-top:0;box-sizing:content-box;content:"";height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);transform-origin:center;transition:transform .15s ease-in .05s;width:3px}.el-checkbox__original{height:0;margin:0;opacity:0;outline:none;position:absolute;width:0;z-index:-1}.el-checkbox__label{display:inline-block;font-size:var(--el-checkbox-font-size);line-height:1;padding-left:8px}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox:last-of-type{margin-right:0}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px;--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);align-items:center;background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);border-radius:var(--el-tag-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;color:var(--el-tag-text-color);display:inline-flex;font-size:var(--el-tag-font-size);height:24px;justify-content:center;line-height:1;padding:0 9px;vertical-align:middle;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color);flex-shrink:0}.el-tag .el-tag__close:hover{background-color:var(--el-tag-hover-color);color:var(--el-color-white)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info,.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{height:32px;padding:0 11px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{height:20px;padding:0 7px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;overflow:hidden;position:relative}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));border-radius:inherit;cursor:pointer;display:block;height:0;opacity:var(--el-scrollbar-opacity,.3);position:relative;transition:var(--el-transition-duration) background-color;width:0}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{border-radius:4px;bottom:2px;position:absolute;right:2px;z-index:1}.el-scrollbar__bar.is-vertical{top:2px;width:6px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);border-radius:var(--el-popper-border-radius);font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;padding:5px 11px;position:absolute;visibility:visible;z-index:2000}.el-popper.is-dark{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary);color:var(--el-bg-color)}.el-popper.is-dark .el-popper__arrow:before{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{height:10px;position:absolute;width:10px;z-index:-1}.el-popper__arrow:before{background:var(--el-text-color-primary);box-sizing:border-box;content:" ";height:10px;position:absolute;transform:rotate(45deg);width:10px;z-index:-1}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent!important;border-top-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty,.el-select-dropdown__loading{color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0;text-align:center}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:6px 0}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);height:34px;line-height:34px;overflow:hidden;padding:0 32px 0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{background-color:unset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{list-style:none;margin:0;padding:0;position:relative}.el-select-group__title{color:var(--el-color-info);font-size:12px;line-height:34px;padding-left:20px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;gap:6px;line-height:24px;min-height:32px;padding:4px 12px;position:relative;text-align:left;transition:var(--el-transition-duration)}.el-select__wrapper:hover{box-shadow:0 0 0 1px var(--el-text-color) inset}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{background-color:var(--el-fill-color-light);box-shadow:0 0 0 1px var(--el-select-disabled-border) inset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag{cursor:not-allowed}.el-select__prefix,.el-select__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;gap:6px}.el-select__caret{color:var(--el-select-input-color);cursor:pointer;font-size:var(--el-select-input-font-size);transform:rotate(0);transition:var(--el-transition-duration)}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__selection{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0;position:relative}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{border-color:transparent;cursor:pointer}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select__tags-text{line-height:normal}.el-select__placeholder,.el-select__tags-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{color:var(--el-input-text-color,var(--el-text-color-regular));position:absolute;top:50%;transform:translateY(-50%);width:100%}.el-select__placeholder.is-transparent{color:var(--el-text-color-placeholder);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{max-width:100%}.el-select__input-wrapper.is-hidden{opacity:0;position:absolute}.el-select__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-select-multiple-input-color);font-family:inherit;font-size:inherit;height:24px;max-width:100%;outline:none;padding:0}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-select--large .el-select__wrapper{font-size:14px;gap:6px;line-height:24px;min-height:40px;padding:8px 16px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{font-size:12px;gap:4px;line-height:20px;min-height:24px;padding:2px 8px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-radio-group{align-items:center;display:inline-flex;flex-wrap:wrap;font-size:0}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button,.el-radio-button__inner{display:inline-block;outline:none;position:relative}.el-radio-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));line-height:1;margin:0;padding:8px 15px;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-text-color,var(--el-color-white))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));border-radius:var(--el-border-radius-base);box-shadow:none;outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2}.el-radio-button__original-radio:disabled+.el-radio-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.el-overlay.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-small);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@-webkit-keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0,0,0,.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0,0,0,.15);--el-table-index:var(--el-index-normal);background-color:var(--el-table-bg-color);box-sizing:border-box;color:var(--el-table-text-color);font-size:14px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-width:100%;overflow:hidden;position:relative;width:100%}.el-table__inner-wrapper{display:flex;flex-direction:column;height:100%;position:relative}.el-table__inner-wrapper:before{bottom:0;height:1px;left:0}.el-table tbody:focus-visible{outline:none}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{align-items:center;display:flex;justify-content:center;left:0;min-height:60px;position:-webkit-sticky;position:sticky;text-align:center;width:100%}.el-table__empty-text{color:var(--el-text-color-secondary);line-height:60px;width:50%}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table__expand-icon{color:var(--el-text-color-regular);cursor:pointer;font-size:12px;height:20px;position:relative;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-bottom:0;border-right:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table--fit .el-table__inner-wrapper:before{width:100%}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{box-sizing:border-box;min-width:0;padding:8px 0;position:relative;text-align:left;text-overflow:ellipsis;vertical-align:middle;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{border-bottom-width:0;border-right-width:0;padding:0;width:15px}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;line-height:23px;overflow:hidden;overflow-wrap:break-word;padding:0 12px;text-overflow:ellipsis;white-space:normal}.el-table .cell.el-tooltip{min-width:50px;white-space:nowrap}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:14px}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{background:#ff4d51;border-radius:50%;content:"";display:inline-block;height:8px;margin-right:5px;vertical-align:middle;width:8px}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{background-color:var(--el-table-border-color);content:"";position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{height:1px;left:0;top:0;width:100%;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{height:100%;left:0;top:-1px;width:1px}.el-table--border:after{height:100%;right:0;top:-1px;width:1px}.el-table--border .el-table__inner-wrapper{border-bottom:none;border-right:none}.el-table--border .el-table__footer-wrapper{flex-shrink:0;position:relative}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background:inherit;position:-webkit-sticky!important;position:sticky!important;z-index:calc(var(--el-table-index) + 1)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{bottom:-1px;box-shadow:none;content:"";overflow-x:hidden;overflow-y:hidden;pointer-events:none;position:absolute;top:0;touch-action:none;width:10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{box-shadow:none;right:-10px}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{background:#fff;position:-webkit-sticky!important;position:sticky!important;right:0;z-index:calc(var(--el-table-index) + 1)}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{border-collapse:separate;table-layout:fixed}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{flex-shrink:0;overflow:hidden}.el-table__footer-wrapper tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{align-items:center;display:inline-flex;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{flex:1;overflow:hidden;position:relative}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{align-items:center;cursor:pointer;display:inline-flex;flex-direction:column;height:14px;overflow:initial;position:relative;vertical-align:middle;width:24px}.el-table .sort-caret{border:5px solid transparent;height:0;left:7px;position:absolute;width:0}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{position:absolute;visibility:hidden;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr>td.hover-cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:-webkit-sticky;position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{bottom:0;position:-webkit-sticky;position:sticky;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{border-left:var(--el-table-border);bottom:0;left:200px;position:absolute;top:0;width:0;z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{cursor:pointer;display:inline-block}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{height:100%;top:0;width:1px}.el-table__border-bottom-patch,.el-table__border-left-patch{background-color:var(--el-table-border-color);left:0;position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table__border-bottom-patch{height:1px}.el-table__border-right-patch{background-color:var(--el-table-border-color);height:100%;position:absolute;top:0;width:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;height:12px;line-height:12px;margin-right:8px;text-align:center;width:12px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{background-color:#fff;border:1px solid var(--el-border-color-lighter);border-radius:2px;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{list-style:none;margin:0;min-width:100px;padding:5px 0}.el-table-filter__list-item{cursor:pointer;font-size:var(--el-font-size-base);line-height:36px;padding:0 10px}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:transparent;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:none}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{align-items:center;display:flex;height:unset;margin-bottom:12px;margin-left:5px;margin-right:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{background-color:var(--el-mask-color);bottom:0;left:0;margin:0;position:absolute;right:0;top:0;transition:opacity var(--el-transition-duration);z-index:2000}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{margin-top:calc((0px - var(--el-loading-spinner-size))/2);position:absolute;text-align:center;top:50%;width:100%}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);font-size:14px;margin:3px 0}.el-loading-spinner .circular{-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite;display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size)}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes loading-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:absolute;transition:all var(--el-transition-duration)}.el-drawer .btt,.el-drawer .ltr,.el-drawer .rtl,.el-drawer .ttb{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{flex:1;font-size:16px;line-height:inherit;margin:0}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{background-color:transparent;border:none;color:inherit;cursor:pointer;display:inline-flex;font-size:var(--el-font-size-extra-large);outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;overflow:auto;padding:var(--el-drawer-padding-primary)}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{bottom:0;height:100%;top:0}.el-drawer.btt,.el-drawer.ttb{left:0;right:0;width:100%}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{content:"";display:table}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.el-button-group>.el-button:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-bottom-left-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-top-right-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color);border-top-left-radius:0}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-container{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0}.el-container.is-vertical{flex-direction:column}.el-aside{box-sizing:border-box;flex-shrink:0;overflow:auto;width:var(--el-aside-width,300px)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height);padding:var(--el-footer-padding)}.el-header{--el-header-padding:0 20px;--el-header-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-header-height);padding:var(--el-header-padding)}.el-main{--el-main-padding:20px;box-sizing:border-box;display:block;flex:1;flex-basis:auto;overflow:auto;padding:var(--el-main-padding)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular);align-self:center;color:var(--el-text-color);font-size:var(--el-text-font-size);margin:0;overflow-wrap:break-word;padding:0}.el-text.is-truncated{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-text.is-line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.nodeBox[data-v-e11d3d33]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-e11d3d33]{background-color:#5ad5eb;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-e11d3d33]{width:110px}.nodeBox[data-v-872789fa]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff}.nodeTitle[data-v-872789fa]{background-color:#9171e3;color:#fff;font-weight:500;font-size:.9rem;padding:5px}.optionWidth[data-v-872789fa]{width:130px}.nodeBox[data-v-794c26b8]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;overflow:hidden}.nodeTitle[data-v-794c26b8]{background-color:#ffc400;color:#fff;font-weight:500;font-size:14px;padding:5px}.tiptap :first-child{margin-top:0}.tiptap blockquote{border-left:3px solid gray;margin:1.5rem 0;padding-left:1rem}.tiptap mark{background-color:#faf594;border-radius:.4rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.1rem .3rem}.nodeBox[data-v-51676cd2]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-51676cd2]{background-color:#22196a;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-49c90c90]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-49c90c90]{background-color:#43d399;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-dc1ae126]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-dc1ae126]{background-color:#01a5bc;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-dc1ae126]{width:110px}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-radio-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-radio-font-weight);height:32px;margin-right:32px;outline:none;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{border-color:var(--el-border-color-lighter);cursor:not-allowed}.el-radio.is-bordered.el-radio--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{border-radius:var(--el-border-radius-base);padding:0 11px 0 7px}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{cursor:pointer;display:inline-flex;outline:none;position:relative;vertical-align:middle;white-space:nowrap}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{background:var(--el-color-primary);border-color:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{background-color:var(--el-radio-input-bg-color);border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--el-radio-input-height);position:relative;width:var(--el-radio-input-width)}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{background-color:var(--el-color-white);border-radius:var(--el-radio-input-border-radius);content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in;width:4px}.el-radio__original{bottom:0;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;z-index:-1}.el-radio__original:focus-visible+.el-radio__inner{border-radius:var(--el-radio-input-border-radius);outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{height:12px;width:12px}.nodeBox[data-v-ec944c20]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-ec944c20]{background-color:#ff6555;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-abd3abfe]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-abd3abfe]{background-color:#6a2c70;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-abd3abfe]{width:110px}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size,16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);background-color:var(--el-bg-color-overlay);border:1px solid var(--el-notification-border-color);border-radius:var(--el-notification-radius);box-shadow:var(--el-notification-shadow);box-sizing:border-box;display:flex;overflow:hidden;overflow-wrap:break-word;padding:var(--el-notification-padding);position:fixed;transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);width:var(--el-notification-width);z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{color:var(--el-notification-title-color);font-size:var(--el-notification-title-font-size);font-weight:700;line-height:var(--el-notification-icon-size);margin:0}.el-notification__content{color:var(--el-notification-content-color);font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0}.el-notification__content p{margin:0}.el-notification .el-notification__icon{font-size:var(--el-notification-icon-size);height:var(--el-notification-icon-size);width:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{color:var(--el-notification-close-color);cursor:pointer;font-size:var(--el-notification-close-font-size);position:absolute;right:15px;top:18px}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-container[data-v-4b7fadc9],.el-header[data-v-4b7fadc9],.el-main[data-v-4b7fadc9],.el-footer[data-v-4b7fadc9]{padding:0}.el-main[data-v-4b7fadc9]{position:relative!important}#canvas[data-v-4b7fadc9]{min-height:85vh}.node-btn[data-v-4b7fadc9]{cursor:pointer;border:1px solid #eee;padding:10px;margin-bottom:6px;font-size:9pt;width:100px;background-color:#fff}.DialogNode[data-v-4b7fadc9]{border-left:5px solid rgb(255,196,0)}.ConditionNode[data-v-4b7fadc9]{border-left:5px solid rgb(145,113,227)}.CollectNode[data-v-4b7fadc9]{border-left:5px solid rgb(90,213,235)}.GotoNode[data-v-4b7fadc9]{border-left:5px solid rgb(67,211,153)}.ExternalHttpNode[data-v-4b7fadc9]{border-left:5px solid rgb(1,165,188)}.SendEmailNode[data-v-4b7fadc9]{border-left:5px solid rgb(255,101,85)}.EndNode[data-v-4b7fadc9]{border-left:5px solid rgb(34,25,106)}.LlmChatNode[data-v-4b7fadc9]{border-left:5px solid #6a2c70}.nodesBox[data-v-4b7fadc9]{display:flex;flex-direction:column;position:absolute;top:20px;left:20px;z-index:100;width:100px}.subFlowBtn[data-v-4b7fadc9]{padding:5px;border-bottom:gray solid 1px;cursor:pointer;font-size:13px}.userText[data-v-4b7fadc9]{text-align:right;margin-bottom:16px}.userText span[data-v-4b7fadc9]{padding:4px;border:#91b6ff 1px solid;border-radius:6px;background-color:#f1f6ff}.responseText[data-v-4b7fadc9]{text-align:left;margin-bottom:16px}.responseText span[data-v-4b7fadc9]{padding:4px;border:#8bda1d 1px solid;border-radius:6px;background-color:#efffd8;white-space:pre-wrap;display:inline-block}.terminateText[data-v-4b7fadc9]{text-align:center;margin-bottom:16px}.terminateText span[data-v-4b7fadc9]{padding:4px;border:#d3d3d3 1px solid;border-radius:6px;background-color:#ebebeb;white-space:pre-wrap;display:inline-block}.newSubFlowBtn[data-v-4b7fadc9]{color:#fff;padding-left:5px;padding-top:5px;padding-bottom:5px;background:linear-gradient(45deg,#e68dbf,pink);cursor:pointer;font-size:16px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-result-padding);text-align:center}.el-result__icon svg{height:var(--el-result-icon-font-size);width:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{color:var(--el-text-color-primary);font-size:var(--el-result-title-font-size);line-height:1.3;margin:0}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1.3;margin:0}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.header-row[data-v-4145b158]{margin-top:20px}.header[data-v-4145b158]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-4145b158]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-4145b158]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-4145b158]{text-align:right;margin-right:30px}#robotList .el-col[data-v-4145b158]{border-radius:4px;margin-bottom:20px}.bg-color-light[data-v-4145b158]{border:#e5e9f2 1px solid;border-left:3px solid #d3dce6;text-align:center;line-height:30px}.grid-content[data-v-4145b158]{border-radius:4px;min-height:36px}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{margin:0 0 15px;padding:0;position:relative}.el-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.el-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;float:right;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.el-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{margin-bottom:-1px;overflow:hidden;position:relative}.el-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{display:flex;min-width:100%}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.el-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover{padding-left:13px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover{padding-right:13px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{bottom:0;right:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{left:auto;right:0}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@-webkit-keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@-webkit-keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.mainBody[data-v-4fd34b5d]{margin-left:20px;margin-right:20px}.my-header[data-v-4fd34b5d]{display:flex;flex-direction:row;justify-content:space-between}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder);align-items:center;color:var(--el-link-text-color);cursor:pointer;display:inline-flex;flex-direction:row;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);justify-content:center;outline:none;padding:0;position:relative;text-decoration:none;vertical-align:middle}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{border-bottom:1px solid var(--el-link-hover-text-color);bottom:0;content:"";height:0;left:0;position:absolute;right:0}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{align-items:center;display:inline-flex;justify-content:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}.header-row[data-v-0ba8fb96]{margin-top:20px}.header[data-v-0ba8fb96]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-0ba8fb96]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-0ba8fb96]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-0ba8fb96]{text-align:right;margin-right:30px}body{transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding:0}a,.green{text-decoration:none;color:#00bd7e;transition:.4s}@media (hover: hover){a:hover{background-color:#00bd7e33}}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.m-2{margin:.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-3{margin-right:.75rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.w-20{width:5rem}.flex{display:flex}.items-center{align-items:center}.b,.border{border-width:1px}.text-center{text-align:center}.font-600{font-weight:600}.italic{font-style:italic}.underline{text-decoration-line:underline}.blur{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)} diff --git a/src/resources/assets/assets/index-DaTxxXw1.js b/src/resources/assets/assets/index-DaTxxXw1.js deleted file mode 100644 index 9cc7162..0000000 --- a/src/resources/assets/assets/index-DaTxxXw1.js +++ /dev/null @@ -1,414 +0,0 @@ -var bN=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Yhe=bN((jr,Hr)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=t(o);fetch(o.href,s)}})();/** -* @vue/shared v3.4.31 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Mb(n,e){const t=new Set(n.split(","));return r=>t.has(r)}const Zt={},Ha=[],pn=()=>{},yN=()=>!1,Sp=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Ab=n=>n.startsWith("onUpdate:"),vn=Object.assign,kb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},wN=Object.prototype.hasOwnProperty,xt=(n,e)=>wN.call(n,e),Ve=Array.isArray,Ua=n=>$d(n)==="[object Map]",Ep=n=>$d(n)==="[object Set]",z0=n=>$d(n)==="[object Date]",Je=n=>typeof n=="function",ht=n=>typeof n=="string",ds=n=>typeof n=="symbol",gt=n=>n!==null&&typeof n=="object",AE=n=>(gt(n)||Je(n))&&Je(n.then)&&Je(n.catch),kE=Object.prototype.toString,$d=n=>kE.call(n),nh=n=>$d(n).slice(8,-1),PE=n=>$d(n)==="[object Object]",Pb=n=>ht(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,wu=Mb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_p=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},CN=/-(\w)/g,zo=_p(n=>n.replace(CN,(e,t)=>t?t.toUpperCase():"")),xN=/\B([A-Z])/g,al=_p(n=>n.replace(xN,"-$1").toLowerCase()),Dd=_p(n=>n.charAt(0).toUpperCase()+n.slice(1)),rh=_p(n=>n?`on${Dd(n)}`:""),Ji=(n,e)=>!Object.is(n,e),oh=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:r,value:t})},Hm=n=>{const e=parseFloat(n);return isNaN(e)?n:e},SN=n=>{const e=ht(n)?Number(n):NaN;return isNaN(e)?n:e};let j0;const IE=()=>j0||(j0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wt(n){if(Ve(n)){const e={};for(let t=0;t{if(t){const r=t.split(_N);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Q(n){let e="";if(ht(n))e=n;else if(Ve(n))for(let t=0;tZa(t,e))}const $E=n=>!!(n&&n.__v_isRef===!0),oe=n=>ht(n)?n:n==null?"":Ve(n)||gt(n)&&(n.toString===kE||!Je(n.toString))?$E(n)?oe(n.value):JSON.stringify(n,DE,2):String(n),DE=(n,e)=>$E(e)?DE(n,e.value):Ua(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,o],s)=>(t[Vg(r,s)+" =>"]=o,t),{})}:Ep(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Vg(t))}:ds(e)?Vg(e):gt(e)&&!Ve(e)&&!PE(e)?String(e):e,Vg=(n,e="")=>{var t;return ds(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** -* @vue/reactivity v3.4.31 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Vr;class VE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Vr,!e&&Vr&&(this.index=(Vr.scopes||(Vr.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Vr;try{return Vr=this,e()}finally{Vr=t}}}on(){Vr=this}off(){Vr=this.parent}stop(e){if(this._active){let t,r;for(t=0,r=this.effects.length;t=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ul()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ui,t=Yl;try{return Ui=!0,Yl=this,this._runnings++,H0(this),this.fn()}finally{U0(this),this._runnings--,Yl=t,Ui=e}}stop(){this.active&&(H0(this),U0(this),this.onStop&&this.onStop(),this.active=!1)}}function NN(n){return n.value}function H0(n){n._trackId++,n._depsLength=0}function U0(n){if(n.deps.length>n._depsLength){for(let e=n._depsLength;e{const t=new Map;return t.cleanup=n,t.computed=e,t},Eh=new WeakMap,Jl=Symbol(""),Gm=Symbol("");function Nr(n,e,t){if(Ui&&Yl){let r=Eh.get(n);r||Eh.set(n,r=new Map);let o=r.get(t);o||r.set(t,o=GE(()=>r.delete(t))),UE(Yl,o)}}function Us(n,e,t,r,o,s){const i=Eh.get(n);if(!i)return;let l=[];if(e==="clear")l=[...i.values()];else if(t==="length"&&Ve(n)){const a=Number(r);i.forEach((c,u)=>{(u==="length"||!ds(u)&&u>=a)&&l.push(c)})}else switch(t!==void 0&&l.push(i.get(t)),e){case"add":Ve(n)?Pb(t)&&l.push(i.get("length")):(l.push(i.get(Jl)),Ua(n)&&l.push(i.get(Gm)));break;case"delete":Ve(n)||(l.push(i.get(Jl)),Ua(n)&&l.push(i.get(Gm)));break;case"set":Ua(n)&&l.push(i.get(Jl));break}Ib();for(const a of l)a&&WE(a,4);Lb()}function IN(n,e){const t=Eh.get(n);return t&&t.get(e)}const LN=Mb("__proto__,__v_isRef,__isVue"),qE=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(ds)),W0=RN();function RN(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const r=kt(this);for(let s=0,i=this.length;s{n[e]=function(...t){cl(),Ib();const r=kt(this)[e].apply(this,t);return Lb(),ul(),r}}),n}function $N(n){ds(n)||(n=String(n));const e=kt(this);return Nr(e,"has",n),e.hasOwnProperty(n)}class KE{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){const o=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!o;if(t==="__v_isReadonly")return o;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(o?s?YN:ZE:s?XE:JE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=Ve(e);if(!o){if(i&&xt(W0,t))return Reflect.get(W0,t,r);if(t==="hasOwnProperty")return $N}const l=Reflect.get(e,t,r);return(ds(t)?qE.has(t):LN(t))||(o||Nr(e,"get",t),s)?l:qt(l)?i&&Pb(t)?l:l.value:gt(l)?o?Vd(l):vt(l):l}}class YE extends KE{constructor(e=!1){super(!1,e)}set(e,t,r,o){let s=e[t];if(!this._isShallow){const a=Xu(s);if(!_h(r)&&!Xu(r)&&(s=kt(s),r=kt(r)),!Ve(e)&&qt(s)&&!qt(r))return a?!1:(s.value=r,!0)}const i=Ve(e)&&Pb(t)?Number(t)n,Tp=n=>Reflect.getPrototypeOf(n);function yf(n,e,t=!1,r=!1){n=n.__v_raw;const o=kt(n),s=kt(e);t||(Ji(e,s)&&Nr(o,"get",e),Nr(o,"get",s));const{has:i}=Tp(o),l=r?Rb:t?Bb:Qu;if(i.call(o,e))return l(n.get(e));if(i.call(o,s))return l(n.get(s));n!==o&&n.get(e)}function wf(n,e=!1){const t=this.__v_raw,r=kt(t),o=kt(n);return e||(Ji(n,o)&&Nr(r,"has",n),Nr(r,"has",o)),n===o?t.has(n):t.has(n)||t.has(o)}function Cf(n,e=!1){return n=n.__v_raw,!e&&Nr(kt(n),"iterate",Jl),Reflect.get(n,"size",n)}function G0(n){n=kt(n);const e=kt(this);return Tp(e).has.call(e,n)||(e.add(n),Us(e,"add",n,n)),this}function q0(n,e){e=kt(e);const t=kt(this),{has:r,get:o}=Tp(t);let s=r.call(t,n);s||(n=kt(n),s=r.call(t,n));const i=o.call(t,n);return t.set(n,e),s?Ji(e,i)&&Us(t,"set",n,e):Us(t,"add",n,e),this}function K0(n){const e=kt(this),{has:t,get:r}=Tp(e);let o=t.call(e,n);o||(n=kt(n),o=t.call(e,n)),r&&r.call(e,n);const s=e.delete(n);return o&&Us(e,"delete",n,void 0),s}function Y0(){const n=kt(this),e=n.size!==0,t=n.clear();return e&&Us(n,"clear",void 0,void 0),t}function xf(n,e){return function(r,o){const s=this,i=s.__v_raw,l=kt(i),a=e?Rb:n?Bb:Qu;return!n&&Nr(l,"iterate",Jl),i.forEach((c,u)=>r.call(o,a(c),a(u),s))}}function Sf(n,e,t){return function(...r){const o=this.__v_raw,s=kt(o),i=Ua(s),l=n==="entries"||n===Symbol.iterator&&i,a=n==="keys"&&i,c=o[n](...r),u=t?Rb:e?Bb:Qu;return!e&&Nr(s,"iterate",a?Gm:Jl),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function fi(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function zN(){const n={get(s){return yf(this,s)},get size(){return Cf(this)},has:wf,add:G0,set:q0,delete:K0,clear:Y0,forEach:xf(!1,!1)},e={get(s){return yf(this,s,!1,!0)},get size(){return Cf(this)},has:wf,add:G0,set:q0,delete:K0,clear:Y0,forEach:xf(!1,!0)},t={get(s){return yf(this,s,!0)},get size(){return Cf(this,!0)},has(s){return wf.call(this,s,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:xf(!0,!1)},r={get(s){return yf(this,s,!0,!0)},get size(){return Cf(this,!0)},has(s){return wf.call(this,s,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:xf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Sf(s,!1,!1),t[s]=Sf(s,!0,!1),e[s]=Sf(s,!1,!0),r[s]=Sf(s,!0,!0)}),[n,t,e,r]}const[jN,HN,UN,WN]=zN();function $b(n,e){const t=e?n?WN:UN:n?HN:jN;return(r,o,s)=>o==="__v_isReactive"?!n:o==="__v_isReadonly"?n:o==="__v_raw"?r:Reflect.get(xt(t,o)&&o in r?t:r,o,s)}const GN={get:$b(!1,!1)},qN={get:$b(!1,!0)},KN={get:$b(!0,!1)},JE=new WeakMap,XE=new WeakMap,ZE=new WeakMap,YN=new WeakMap;function JN(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function XN(n){return n.__v_skip||!Object.isExtensible(n)?0:JN(nh(n))}function vt(n){return Xu(n)?n:Vb(n,!1,VN,GN,JE)}function Db(n){return Vb(n,!1,FN,qN,XE)}function Vd(n){return Vb(n,!0,BN,KN,ZE)}function Vb(n,e,t,r,o){if(!gt(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const s=o.get(n);if(s)return s;const i=XN(n);if(i===0)return n;const l=new Proxy(n,i===2?r:t);return o.set(n,l),l}function Cu(n){return Xu(n)?Cu(n.__v_raw):!!(n&&n.__v_isReactive)}function Xu(n){return!!(n&&n.__v_isReadonly)}function _h(n){return!!(n&&n.__v_isShallow)}function QE(n){return n?!!n.__v_raw:!1}function kt(n){const e=n&&n.__v_raw;return e?kt(e):n}function Zu(n){return Object.isExtensible(n)&&NE(n,"__v_skip",!0),n}const Qu=n=>gt(n)?vt(n):n,Bb=n=>gt(n)?Vd(n):n;class e2{constructor(e,t,r,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Nb(()=>e(this._value),()=>xu(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const e=kt(this);return(!e._cacheable||e.effect.dirty)&&Ji(e._value,e._value=e.effect.run())&&xu(e,4),Fb(e),e.effect._dirtyLevel>=2&&xu(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function ZN(n,e,t=!1){let r,o;const s=Je(n);return s?(r=n,o=pn):(r=n.get,o=n.set),new e2(r,o,s||!o,t)}function Fb(n){var e;Ui&&Yl&&(n=kt(n),UE(Yl,(e=n.dep)!=null?e:n.dep=GE(()=>n.dep=void 0,n instanceof e2?n:void 0)))}function xu(n,e=4,t,r){n=kt(n);const o=n.dep;o&&WE(o,e)}function qt(n){return!!(n&&n.__v_isRef===!0)}function D(n){return t2(n,!1)}function $o(n){return t2(n,!0)}function t2(n,e){return qt(n)?n:new QN(n,e)}class QN{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:kt(e),this._value=t?e:Qu(e)}get value(){return Fb(this),this._value}set value(e){const t=this.__v_isShallow||_h(e)||Xu(e);e=t?e:kt(e),Ji(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Qu(e),xu(this,4))}}function S(n){return qt(n)?n.value:n}const eI={get:(n,e,t)=>S(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const o=n[e];return qt(o)&&!qt(t)?(o.value=t,!0):Reflect.set(n,e,t,r)}};function n2(n){return Cu(n)?n:new Proxy(n,eI)}class tI{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:r}=e(()=>Fb(this),()=>xu(this));this._get=t,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function nI(n){return new tI(n)}function ei(n){const e=Ve(n)?new Array(n.length):{};for(const t in n)e[t]=r2(n,t);return e}class rI{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return IN(kt(this._object),this._key)}}class oI{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Po(n,e,t){return qt(n)?n:Je(n)?new oI(n):gt(n)&&arguments.length>1?r2(n,e,t):D(n)}function r2(n,e,t){const r=n[e];return qt(r)?r:new rI(n,e,t)}/** -* @vue/runtime-core v3.4.31 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Wi(n,e,t,r){try{return r?n(...r):n()}catch(o){Op(o,e,t)}}function uo(n,e,t,r){if(Je(n)){const o=Wi(n,e,t,r);return o&&AE(o)&&o.catch(s=>{Op(s,e,t)}),o}if(Ve(n)){const o=[];for(let s=0;s>>1,o=sr[r],s=td(o);sns&&sr.splice(e,1)}function lI(n){Ve(n)?Wa.push(...n):(!_i||!_i.includes(n,n.allowRecurse?Ll+1:Ll))&&Wa.push(n),s2()}function J0(n,e,t=ed?ns+1:0){for(;ttd(t)-td(r));if(Wa.length=0,_i){_i.push(...e);return}for(_i=e,Ll=0;Ll<_i.length;Ll++){const t=_i[Ll];t.active!==!1&&t()}_i=null,Ll=0}}const td=n=>n.id==null?1/0:n.id,aI=(n,e)=>{const t=td(n)-td(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function l2(n){qm=!1,ed=!0,sr.sort(aI);try{for(ns=0;nsht(h)?h.trim():h)),d&&(o=t.map(Hm))}let l,a=r[l=rh(e)]||r[l=rh(zo(e))];!a&&s&&(a=r[l=rh(al(e))]),a&&uo(a,n,6,o);const c=r[l+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[l])return;n.emitted[l]=!0,uo(c,n,6,o)}}function a2(n,e,t=!1){const r=e.emitsCache,o=r.get(n);if(o!==void 0)return o;const s=n.emits;let i={},l=!1;if(!Je(n)){const a=c=>{const u=a2(c,e,!0);u&&(l=!0,vn(i,u))};!t&&e.mixins.length&&e.mixins.forEach(a),n.extends&&a(n.extends),n.mixins&&n.mixins.forEach(a)}return!s&&!l?(gt(n)&&r.set(n,null),null):(Ve(s)?s.forEach(a=>i[a]=null):vn(i,s),gt(n)&&r.set(n,i),i)}function Mp(n,e){return!n||!Sp(e)?!1:(e=e.slice(2).replace(/Once$/,""),xt(n,e[0].toLowerCase()+e.slice(1))||xt(n,al(e))||xt(n,e))}let Rn=null,Ap=null;function Th(n){const e=Rn;return Rn=n,Ap=n&&n.type.__scopeId||null,e}function Bd(n){Ap=n}function Fd(){Ap=null}function _(n,e=Rn,t){if(!e||n._n)return n;const r=(...o)=>{r._d&&d1(-1);const s=Th(e);let i;try{i=n(...o)}finally{Th(s),r._d&&d1(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Bg(n){const{type:e,vnode:t,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:g}=n,m=Th(n);let v,w;try{if(t.shapeFlag&4){const y=o||r,x=y;v=es(c.call(x,y,u,d,h,f,p)),w=l}else{const y=e;v=es(y.length>1?y(d,{attrs:l,slots:i,emit:a}):y(d,null)),w=e.props?l:uI(l)}}catch(y){Ou.length=0,Op(y,n,1),v=C(Jn)}let b=v;if(w&&g!==!1){const y=Object.keys(w),{shapeFlag:x}=b;y.length&&x&7&&(s&&y.some(Ab)&&(w=dI(w,s)),b=Ks(b,w,!1,!0))}return t.dirs&&(b=Ks(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(t.dirs):t.dirs),t.transition&&(b.transition=t.transition),v=b,Th(m),v}const uI=n=>{let e;for(const t in n)(t==="class"||t==="style"||Sp(t))&&((e||(e={}))[t]=n[t]);return e},dI=(n,e)=>{const t={};for(const r in n)(!Ab(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function fI(n,e,t){const{props:r,children:o,component:s}=n,{props:i,children:l,patchFlag:a}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&a>=0){if(a&1024)return!0;if(a&16)return r?X0(r,i,c):!!i;if(a&8){const u=e.dynamicProps;for(let d=0;dn.__isSuspense;function mI(n,e){e&&e.pendingBranch?Ve(n)?e.effects.push(...n):e.effects.push(n):lI(n)}function kp(n,e,t=Xn,r=!1){if(t){const o=t[n]||(t[n]=[]),s=e.__weh||(e.__weh=(...i)=>{cl();const l=Hd(t),a=uo(e,t,n,i);return l(),ul(),a});return r?o.unshift(s):o.push(s),s}}const ti=n=>(e,t=Xn)=>{(!Np||n==="sp")&&kp(n,(...r)=>e(...r),t)},zd=ti("bm"),ot=ti("m"),vI=ti("bu"),ba=ti("u"),_n=ti("bum"),ws=ti("um"),bI=ti("sp"),yI=ti("rtg"),wI=ti("rtc");function CI(n,e=Xn){kp("ec",n,e)}function Le(n,e){if(Rn===null)return n;const t=Ip(Rn),r=n.dirs||(n.dirs=[]);for(let o=0;oe(i,l,void 0,s));else{const i=Object.keys(n);o=new Array(i.length);for(let l=0,a=i.length;l{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return n}/*! #__NO_SIDE_EFFECTS__ */function me(n,e){return Je(n)?vn({name:n.name},e,{setup:n}):n}const Su=n=>!!n.type.__asyncLoader;function ke(n,e,t={},r,o){if(Rn.isCE||Rn.parent&&Su(Rn.parent)&&Rn.parent.isCE)return e!=="default"&&(t.name=e),C("slot",t,r&&r());let s=n[e];s&&s._c&&(s._d=!1),A();const i=s&&u2(s(t)),l=ye(Re,{key:t.key||i&&i.key||`_${e}`},i||(r?r():[]),i&&n._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function u2(n){return n.some(e=>Pn(e)?!(e.type===Jn||e.type===Re&&!u2(e.children)):!0)?n:null}const Km=n=>n?L2(n)?Ip(n):Km(n.parent):null,Eu=vn(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>Km(n.parent),$root:n=>Km(n.root),$emit:n=>n.emit,$options:n=>Gb(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,jb(n.update)}),$nextTick:n=>n.n||(n.n=lt.bind(n.proxy)),$watch:n=>jI.bind(n)}),Fg=(n,e)=>n!==Zt&&!n.__isScriptSetup&&xt(n,e),SI={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:r,data:o,props:s,accessCache:i,type:l,appContext:a}=n;let c;if(e[0]!=="$"){const h=i[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return o[e];case 4:return t[e];case 3:return s[e]}else{if(Fg(r,e))return i[e]=1,r[e];if(o!==Zt&&xt(o,e))return i[e]=2,o[e];if((c=n.propsOptions[0])&&xt(c,e))return i[e]=3,s[e];if(t!==Zt&&xt(t,e))return i[e]=4,t[e];Ym&&(i[e]=0)}}const u=Eu[e];let d,f;if(u)return e==="$attrs"&&Nr(n.attrs,"get",""),u(n);if((d=l.__cssModules)&&(d=d[e]))return d;if(t!==Zt&&xt(t,e))return i[e]=4,t[e];if(f=a.config.globalProperties,xt(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:o,ctx:s}=n;return Fg(o,e)?(o[e]=t,!0):r!==Zt&&xt(r,e)?(r[e]=t,!0):xt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(s[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:o,propsOptions:s}},i){let l;return!!t[i]||n!==Zt&&xt(n,i)||Fg(e,i)||(l=s[0])&&xt(l,i)||xt(r,i)||xt(Eu,i)||xt(o.config.globalProperties,i)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:xt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function qo(){return f2().slots}function d2(){return f2().attrs}function f2(){const n=bt();return n.setupContext||(n.setupContext=$2(n))}function Q0(n){return Ve(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Ym=!0;function EI(n){const e=Gb(n),t=n.proxy,r=n.ctx;Ym=!1,e.beforeCreate&&e1(e.beforeCreate,n,"bc");const{data:o,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:w,destroyed:b,unmounted:y,render:x,renderTracked:E,renderTriggered:T,errorCaptured:M,serverPrefetch:O,expose:k,inheritAttrs:P,components:L,directives:j,filters:ce}=e;if(c&&_I(c,r,null),i)for(const q in i){const U=i[q];Je(U)&&(r[q]=U.bind(t))}if(o){const q=o.call(t,t);gt(q)&&(n.data=vt(q))}if(Ym=!0,s)for(const q in s){const U=s[q],W=Je(U)?U.bind(t,t):Je(U.get)?U.get.bind(t,t):pn,Z=!Je(U)&&Je(U.set)?U.set.bind(t):pn,le=z({get:W,set:Z});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>le.value,set:ee=>le.value=ee})}if(l)for(const q in l)h2(l[q],r,t,q);if(a){const q=Je(a)?a.call(t):a;Reflect.ownKeys(q).forEach(U=>{jt(U,q[U])})}u&&e1(u,n,"c");function $(q,U){Ve(U)?U.forEach(W=>q(W.bind(t))):U&&q(U.bind(t))}if($(zd,d),$(ot,f),$(vI,h),$(ba,p),$(HI,g),$(_2,m),$(CI,M),$(wI,E),$(yI,T),$(_n,w),$(ws,y),$(bI,O),Ve(k))if(k.length){const q=n.exposed||(n.exposed={});k.forEach(U=>{Object.defineProperty(q,U,{get:()=>t[U],set:W=>t[U]=W})})}else n.exposed||(n.exposed={});x&&n.render===pn&&(n.render=x),P!=null&&(n.inheritAttrs=P),L&&(n.components=L),j&&(n.directives=j)}function _I(n,e,t=pn){Ve(n)&&(n=Jm(n));for(const r in n){const o=n[r];let s;gt(o)?"default"in o?s=Fe(o.from||r,o.default,!0):s=Fe(o.from||r):s=Fe(o),qt(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):e[r]=s}}function e1(n,e,t){uo(Ve(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function h2(n,e,t,r){const o=r.includes(".")?E2(t,r):()=>t[r];if(ht(n)){const s=e[n];Je(s)&&Be(o,s)}else if(Je(n))Be(o,n.bind(t));else if(gt(n))if(Ve(n))n.forEach(s=>h2(s,e,t,r));else{const s=Je(n.handler)?n.handler.bind(t):e[n.handler];Je(s)&&Be(o,s,n)}}function Gb(n){const e=n.type,{mixins:t,extends:r}=e,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=n.appContext,l=s.get(e);let a;return l?a=l:!o.length&&!t&&!r?a=e:(a={},o.length&&o.forEach(c=>Oh(a,c,i,!0)),Oh(a,e,i)),gt(e)&&s.set(e,a),a}function Oh(n,e,t,r=!1){const{mixins:o,extends:s}=e;s&&Oh(n,s,t,!0),o&&o.forEach(i=>Oh(n,i,t,!0));for(const i in e)if(!(r&&i==="expose")){const l=TI[i]||t&&t[i];n[i]=l?l(n[i],e[i]):e[i]}return n}const TI={data:t1,props:n1,emits:n1,methods:hu,computed:hu,beforeCreate:gr,created:gr,beforeMount:gr,mounted:gr,beforeUpdate:gr,updated:gr,beforeDestroy:gr,beforeUnmount:gr,destroyed:gr,unmounted:gr,activated:gr,deactivated:gr,errorCaptured:gr,serverPrefetch:gr,components:hu,directives:hu,watch:MI,provide:t1,inject:OI};function t1(n,e){return e?n?function(){return vn(Je(n)?n.call(this,this):n,Je(e)?e.call(this,this):e)}:e:n}function OI(n,e){return hu(Jm(n),Jm(e))}function Jm(n){if(Ve(n)){const e={};for(let t=0;t1)return t&&Je(e)?e.call(r&&r.proxy):e}}const g2={},m2=()=>Object.create(g2),v2=n=>Object.getPrototypeOf(n)===g2;function PI(n,e,t,r=!1){const o={},s=m2();n.propsDefaults=Object.create(null),b2(n,e,o,s);for(const i in n.propsOptions[0])i in o||(o[i]=void 0);t?n.props=r?o:Db(o):n.type.props?n.props=o:n.props=s,n.attrs=s}function NI(n,e,t,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=n,l=kt(o),[a]=n.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=n.vnode.dynamicProps;for(let d=0;d{a=!0;const[f,h]=y2(d,e,!0);vn(i,f),h&&l.push(...h)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!s&&!a)return gt(n)&&r.set(n,Ha),Ha;if(Ve(s))for(let u=0;u-1,h[1]=g<0||p-1||xt(h,"default"))&&l.push(d)}}}const c=[i,l];return gt(n)&&r.set(n,c),c}function r1(n){return n[0]!=="$"&&!wu(n)}function o1(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function s1(n,e){return o1(n)===o1(e)}function i1(n,e){return Ve(e)?e.findIndex(t=>s1(t,n)):Je(e)&&s1(e,n)?0:-1}const w2=n=>n[0]==="_"||n==="$stable",qb=n=>Ve(n)?n.map(es):[es(n)],II=(n,e,t)=>{if(e._n)return e;const r=_((...o)=>qb(e(...o)),t);return r._c=!1,r},C2=(n,e,t)=>{const r=n._ctx;for(const o in n){if(w2(o))continue;const s=n[o];if(Je(s))e[o]=II(o,s,r);else if(s!=null){const i=qb(s);e[o]=()=>i}}},x2=(n,e)=>{const t=qb(e);n.slots.default=()=>t},LI=(n,e)=>{const t=n.slots=m2();if(n.vnode.shapeFlag&32){const r=e._;r?(vn(t,e),NE(t,"_",r,!0)):C2(e,t)}else e&&x2(n,e)},RI=(n,e,t)=>{const{vnode:r,slots:o}=n;let s=!0,i=Zt;if(r.shapeFlag&32){const l=e._;l?t&&l===1?s=!1:(vn(o,e),!t&&l===1&&delete o._):(s=!e.$stable,C2(e,o)),i=e}else e&&(x2(n,e),i={default:1});if(s)for(const l in o)!w2(l)&&i[l]==null&&delete o[l]};function Zm(n,e,t,r,o=!1){if(Ve(n)){n.forEach((f,h)=>Zm(f,e&&(Ve(e)?e[h]:e),t,r,o));return}if(Su(r)&&!o)return;const s=r.shapeFlag&4?Ip(r.component):r.el,i=o?null:s,{i:l,r:a}=n,c=e&&e.r,u=l.refs===Zt?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ht(c)?(u[c]=null,xt(d,c)&&(d[c]=null)):qt(c)&&(c.value=null)),Je(a))Wi(a,l,12,[i,u]);else{const f=ht(a),h=qt(a);if(f||h){const p=()=>{if(n.f){const g=f?xt(d,a)?d[a]:u[a]:a.value;o?Ve(g)&&kb(g,s):Ve(g)?g.includes(s)||g.push(s):f?(u[a]=[s],xt(d,a)&&(d[a]=u[a])):(a.value=[s],n.k&&(u[n.k]=a.value))}else f?(u[a]=i,xt(d,a)&&(d[a]=i)):h&&(a.value=i,n.k&&(u[n.k]=i))};i?(p.id=-1,_r(p,t)):p()}}}const _r=mI;function $I(n){return DI(n)}function DI(n,e){const t=IE();t.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=pn,insertStaticContent:p}=n,g=(I,N,X,pe=null,fe=null,_e=null,xe=void 0,V=null,B=!!N.dynamicChildren)=>{if(I===N)return;I&&!Rl(I,N)&&(pe=re(I),ee(I,fe,_e,!0),I=null),N.patchFlag===-2&&(B=!1,N.dynamicChildren=null);const{type:J,ref:ue,shapeFlag:Pe}=N;switch(J){case ya:m(I,N,X,pe);break;case Jn:v(I,N,X,pe);break;case Hg:I==null&&w(N,X,pe,xe);break;case Re:L(I,N,X,pe,fe,_e,xe,V,B);break;default:Pe&1?x(I,N,X,pe,fe,_e,xe,V,B):Pe&6?j(I,N,X,pe,fe,_e,xe,V,B):(Pe&64||Pe&128)&&J.process(I,N,X,pe,fe,_e,xe,V,B,ve)}ue!=null&&fe&&Zm(ue,I&&I.ref,_e,N||I,!N)},m=(I,N,X,pe)=>{if(I==null)r(N.el=l(N.children),X,pe);else{const fe=N.el=I.el;N.children!==I.children&&c(fe,N.children)}},v=(I,N,X,pe)=>{I==null?r(N.el=a(N.children||""),X,pe):N.el=I.el},w=(I,N,X,pe)=>{[I.el,I.anchor]=p(I.children,N,X,pe,I.el,I.anchor)},b=({el:I,anchor:N},X,pe)=>{let fe;for(;I&&I!==N;)fe=f(I),r(I,X,pe),I=fe;r(N,X,pe)},y=({el:I,anchor:N})=>{let X;for(;I&&I!==N;)X=f(I),o(I),I=X;o(N)},x=(I,N,X,pe,fe,_e,xe,V,B)=>{N.type==="svg"?xe="svg":N.type==="math"&&(xe="mathml"),I==null?E(N,X,pe,fe,_e,xe,V,B):O(I,N,fe,_e,xe,V,B)},E=(I,N,X,pe,fe,_e,xe,V)=>{let B,J;const{props:ue,shapeFlag:Pe,transition:se,dirs:ne}=I;if(B=I.el=i(I.type,_e,ue&&ue.is,ue),Pe&8?u(B,I.children):Pe&16&&M(I.children,B,null,pe,fe,zg(I,_e),xe,V),ne&&Tl(I,null,pe,"created"),T(B,I,I.scopeId,xe,pe),ue){for(const We in ue)We!=="value"&&!wu(We)&&s(B,We,null,ue[We],_e,I.children,pe,fe,Te);"value"in ue&&s(B,"value",null,ue.value,_e),(J=ue.onVnodeBeforeMount)&&Zo(J,pe,I)}ne&&Tl(I,null,pe,"beforeMount");const de=VI(fe,se);de&&se.beforeEnter(B),r(B,N,X),((J=ue&&ue.onVnodeMounted)||de||ne)&&_r(()=>{J&&Zo(J,pe,I),de&&se.enter(B),ne&&Tl(I,null,pe,"mounted")},fe)},T=(I,N,X,pe,fe)=>{if(X&&h(I,X),pe)for(let _e=0;_e{for(let J=B;J{const V=N.el=I.el;let{patchFlag:B,dynamicChildren:J,dirs:ue}=N;B|=I.patchFlag&16;const Pe=I.props||Zt,se=N.props||Zt;let ne;if(X&&Ol(X,!1),(ne=se.onVnodeBeforeUpdate)&&Zo(ne,X,N,I),ue&&Tl(N,I,X,"beforeUpdate"),X&&Ol(X,!0),J?k(I.dynamicChildren,J,V,X,pe,zg(N,fe),_e):xe||U(I,N,V,null,X,pe,zg(N,fe),_e,!1),B>0){if(B&16)P(V,N,Pe,se,X,pe,fe);else if(B&2&&Pe.class!==se.class&&s(V,"class",null,se.class,fe),B&4&&s(V,"style",Pe.style,se.style,fe),B&8){const de=N.dynamicProps;for(let We=0;We{ne&&Zo(ne,X,N,I),ue&&Tl(N,I,X,"updated")},pe)},k=(I,N,X,pe,fe,_e,xe)=>{for(let V=0;V{if(X!==pe){if(X!==Zt)for(const V in X)!wu(V)&&!(V in pe)&&s(I,V,X[V],null,xe,N.children,fe,_e,Te);for(const V in pe){if(wu(V))continue;const B=pe[V],J=X[V];B!==J&&V!=="value"&&s(I,V,J,B,xe,N.children,fe,_e,Te)}"value"in pe&&s(I,"value",X.value,pe.value,xe)}},L=(I,N,X,pe,fe,_e,xe,V,B)=>{const J=N.el=I?I.el:l(""),ue=N.anchor=I?I.anchor:l("");let{patchFlag:Pe,dynamicChildren:se,slotScopeIds:ne}=N;ne&&(V=V?V.concat(ne):ne),I==null?(r(J,X,pe),r(ue,X,pe),M(N.children||[],X,ue,fe,_e,xe,V,B)):Pe>0&&Pe&64&&se&&I.dynamicChildren?(k(I.dynamicChildren,se,X,fe,_e,xe,V),(N.key!=null||fe&&N===fe.subTree)&&Kb(I,N,!0)):U(I,N,X,ue,fe,_e,xe,V,B)},j=(I,N,X,pe,fe,_e,xe,V,B)=>{N.slotScopeIds=V,I==null?N.shapeFlag&512?fe.ctx.activate(N,X,pe,xe,B):ce(N,X,pe,fe,_e,xe,B):R(I,N,B)},ce=(I,N,X,pe,fe,_e,xe)=>{const V=I.component=tL(I,pe,fe);if(Pp(I)&&(V.ctx.renderer=ve),nL(V),V.asyncDep){if(fe&&fe.registerDep(V,$,xe),!I.el){const B=V.subTree=C(Jn);v(null,B,N,X)}}else $(V,I,N,X,fe,_e,xe)},R=(I,N,X)=>{const pe=N.component=I.component;if(fI(I,N,X))if(pe.asyncDep&&!pe.asyncResolved){q(pe,N,X);return}else pe.next=N,iI(pe.update),pe.effect.dirty=!0,pe.update();else N.el=I.el,pe.vnode=N},$=(I,N,X,pe,fe,_e,xe)=>{const V=()=>{if(I.isMounted){let{next:ue,bu:Pe,u:se,parent:ne,vnode:de}=I;{const he=S2(I);if(he){ue&&(ue.el=de.el,q(I,ue,xe)),he.asyncDep.then(()=>{I.isUnmounted||V()});return}}let We=ue,Ze;Ol(I,!1),ue?(ue.el=de.el,q(I,ue,xe)):ue=de,Pe&&oh(Pe),(Ze=ue.props&&ue.props.onVnodeBeforeUpdate)&&Zo(Ze,ne,ue,de),Ol(I,!0);const Ie=Bg(I),qe=I.subTree;I.subTree=Ie,g(qe,Ie,d(qe.el),re(qe),I,fe,_e),ue.el=Ie.el,We===null&&hI(I,Ie.el),se&&_r(se,fe),(Ze=ue.props&&ue.props.onVnodeUpdated)&&_r(()=>Zo(Ze,ne,ue,de),fe)}else{let ue;const{el:Pe,props:se}=N,{bm:ne,m:de,parent:We}=I,Ze=Su(N);if(Ol(I,!1),ne&&oh(ne),!Ze&&(ue=se&&se.onVnodeBeforeMount)&&Zo(ue,We,N),Ol(I,!0),Pe&&Ye){const Ie=()=>{I.subTree=Bg(I),Ye(Pe,I.subTree,I,fe,null)};Ze?N.type.__asyncLoader().then(()=>!I.isUnmounted&&Ie()):Ie()}else{const Ie=I.subTree=Bg(I);g(null,Ie,X,pe,I,fe,_e),N.el=Ie.el}if(de&&_r(de,fe),!Ze&&(ue=se&&se.onVnodeMounted)){const Ie=N;_r(()=>Zo(ue,We,Ie),fe)}(N.shapeFlag&256||We&&Su(We.vnode)&&We.vnode.shapeFlag&256)&&I.a&&_r(I.a,fe),I.isMounted=!0,N=X=pe=null}},B=I.effect=new Nb(V,pn,()=>jb(J),I.scope),J=I.update=()=>{B.dirty&&B.run()};J.id=I.uid,Ol(I,!0),J()},q=(I,N,X)=>{N.component=I;const pe=I.vnode.props;I.vnode=N,I.next=null,NI(I,N.props,pe,X),RI(I,N.children,X),cl(),J0(I),ul()},U=(I,N,X,pe,fe,_e,xe,V,B=!1)=>{const J=I&&I.children,ue=I?I.shapeFlag:0,Pe=N.children,{patchFlag:se,shapeFlag:ne}=N;if(se>0){if(se&128){Z(J,Pe,X,pe,fe,_e,xe,V,B);return}else if(se&256){W(J,Pe,X,pe,fe,_e,xe,V,B);return}}ne&8?(ue&16&&Te(J,fe,_e),Pe!==J&&u(X,Pe)):ue&16?ne&16?Z(J,Pe,X,pe,fe,_e,xe,V,B):Te(J,fe,_e,!0):(ue&8&&u(X,""),ne&16&&M(Pe,X,pe,fe,_e,xe,V,B))},W=(I,N,X,pe,fe,_e,xe,V,B)=>{I=I||Ha,N=N||Ha;const J=I.length,ue=N.length,Pe=Math.min(J,ue);let se;for(se=0;seue?Te(I,fe,_e,!0,!1,Pe):M(N,X,pe,fe,_e,xe,V,B,Pe)},Z=(I,N,X,pe,fe,_e,xe,V,B)=>{let J=0;const ue=N.length;let Pe=I.length-1,se=ue-1;for(;J<=Pe&&J<=se;){const ne=I[J],de=N[J]=B?Oi(N[J]):es(N[J]);if(Rl(ne,de))g(ne,de,X,null,fe,_e,xe,V,B);else break;J++}for(;J<=Pe&&J<=se;){const ne=I[Pe],de=N[se]=B?Oi(N[se]):es(N[se]);if(Rl(ne,de))g(ne,de,X,null,fe,_e,xe,V,B);else break;Pe--,se--}if(J>Pe){if(J<=se){const ne=se+1,de=nese)for(;J<=Pe;)ee(I[J],fe,_e,!0),J++;else{const ne=J,de=J,We=new Map;for(J=de;J<=se;J++){const Se=N[J]=B?Oi(N[J]):es(N[J]);Se.key!=null&&We.set(Se.key,J)}let Ze,Ie=0;const qe=se-de+1;let he=!1,Y=0;const ie=new Array(qe);for(J=0;J=qe){ee(Se,fe,_e,!0);continue}let ze;if(Se.key!=null)ze=We.get(Se.key);else for(Ze=de;Ze<=se;Ze++)if(ie[Ze-de]===0&&Rl(Se,N[Ze])){ze=Ze;break}ze===void 0?ee(Se,fe,_e,!0):(ie[ze-de]=J+1,ze>=Y?Y=ze:he=!0,g(Se,N[ze],X,null,fe,_e,xe,V,B),Ie++)}const Ae=he?BI(ie):Ha;for(Ze=Ae.length-1,J=qe-1;J>=0;J--){const Se=de+J,ze=N[Se],it=Se+1{const{el:_e,type:xe,transition:V,children:B,shapeFlag:J}=I;if(J&6){le(I.component.subTree,N,X,pe);return}if(J&128){I.suspense.move(N,X,pe);return}if(J&64){xe.move(I,N,X,ve);return}if(xe===Re){r(_e,N,X);for(let Pe=0;PeV.enter(_e),fe);else{const{leave:Pe,delayLeave:se,afterLeave:ne}=V,de=()=>r(_e,N,X),We=()=>{Pe(_e,()=>{de(),ne&&ne()})};se?se(_e,de,We):We()}else r(_e,N,X)},ee=(I,N,X,pe=!1,fe=!1)=>{const{type:_e,props:xe,ref:V,children:B,dynamicChildren:J,shapeFlag:ue,patchFlag:Pe,dirs:se,memoIndex:ne}=I;if(Pe===-2&&(fe=!1),V!=null&&Zm(V,null,X,I,!0),ne!=null&&(N.renderCache[ne]=void 0),ue&256){N.ctx.deactivate(I);return}const de=ue&1&&se,We=!Su(I);let Ze;if(We&&(Ze=xe&&xe.onVnodeBeforeUnmount)&&Zo(Ze,N,I),ue&6)be(I.component,X,pe);else{if(ue&128){I.suspense.unmount(X,pe);return}de&&Tl(I,null,N,"beforeUnmount"),ue&64?I.type.remove(I,N,X,ve,pe):J&&(_e!==Re||Pe>0&&Pe&64)?Te(J,N,X,!1,!0):(_e===Re&&Pe&384||!fe&&ue&16)&&Te(B,N,X),pe&&Me(I)}(We&&(Ze=xe&&xe.onVnodeUnmounted)||de)&&_r(()=>{Ze&&Zo(Ze,N,I),de&&Tl(I,null,N,"unmounted")},X)},Me=I=>{const{type:N,el:X,anchor:pe,transition:fe}=I;if(N===Re){ge(X,pe);return}if(N===Hg){y(I);return}const _e=()=>{o(X),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(I.shapeFlag&1&&fe&&!fe.persisted){const{leave:xe,delayLeave:V}=fe,B=()=>xe(X,_e);V?V(I.el,_e,B):B()}else _e()},ge=(I,N)=>{let X;for(;I!==N;)X=f(I),o(I),I=X;o(N)},be=(I,N,X)=>{const{bum:pe,scope:fe,update:_e,subTree:xe,um:V,m:B,a:J}=I;l1(B),l1(J),pe&&oh(pe),fe.stop(),_e&&(_e.active=!1,ee(xe,I,N,X)),V&&_r(V,N),_r(()=>{I.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},Te=(I,N,X,pe=!1,fe=!1,_e=0)=>{for(let xe=_e;xeI.shapeFlag&6?re(I.component.subTree):I.shapeFlag&128?I.suspense.next():f(I.anchor||I.el);let ae=!1;const te=(I,N,X)=>{I==null?N._vnode&&ee(N._vnode,null,null,!0):g(N._vnode||null,I,N,null,null,null,X),ae||(ae=!0,J0(),i2(),ae=!1),N._vnode=I},ve={p:g,um:ee,m:le,r:Me,mt:ce,mc:M,pc:U,pbc:k,n:re,o:n};let Oe,Ye;return{render:te,hydrate:Oe,createApp:kI(te,Oe)}}function zg({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Ol({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function VI(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function Kb(n,e,t=!1){const r=n.children,o=e.children;if(Ve(r)&&Ve(o))for(let s=0;s>1,n[t[l]]0&&(e[r]=t[s-1]),t[s]=r)}}for(s=t.length,i=t[s-1];s-- >0;)t[s]=i,i=e[i];return t}function S2(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:S2(e)}function l1(n){if(n)for(let e=0;eFe(FI);function ls(n,e){return Yb(n,null,e)}const Ef={};function Be(n,e,t){return Yb(n,e,t)}function Yb(n,e,{immediate:t,deep:r,flush:o,once:s,onTrack:i,onTrigger:l}=Zt){if(e&&s){const E=e;e=(...T)=>{E(...T),x()}}const a=Xn,c=E=>r===!0?E:Ii(E,r===!1?1:void 0);let u,d=!1,f=!1;if(qt(n)?(u=()=>n.value,d=_h(n)):Cu(n)?(u=()=>c(n),d=!0):Ve(n)?(f=!0,d=n.some(E=>Cu(E)||_h(E)),u=()=>n.map(E=>{if(qt(E))return E.value;if(Cu(E))return c(E);if(Je(E))return Wi(E,a,2)})):Je(n)?e?u=()=>Wi(n,a,2):u=()=>(h&&h(),uo(n,a,3,[p])):u=pn,e&&r){const E=u;u=()=>Ii(E())}let h,p=E=>{h=b.onStop=()=>{Wi(E,a,4),h=b.onStop=void 0}},g;if(Np)if(p=pn,e?t&&uo(e,a,3,[u(),f?[]:void 0,p]):u(),o==="sync"){const E=zI();g=E.__watcherHandles||(E.__watcherHandles=[])}else return pn;let m=f?new Array(n.length).fill(Ef):Ef;const v=()=>{if(!(!b.active||!b.dirty))if(e){const E=b.run();(r||d||(f?E.some((T,M)=>Ji(T,m[M])):Ji(E,m)))&&(h&&h(),uo(e,a,3,[E,m===Ef?void 0:f&&m[0]===Ef?[]:m,p]),m=E)}else b.run()};v.allowRecurse=!!e;let w;o==="sync"?w=v:o==="post"?w=()=>_r(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),w=()=>jb(v));const b=new Nb(u,pn,w),y=FE(),x=()=>{b.stop(),y&&kb(y.effects,b)};return e?t?v():m=b.run():o==="post"?_r(b.run.bind(b),a&&a.suspense):b.run(),g&&g.push(x),x}function jI(n,e,t){const r=this.proxy,o=ht(n)?n.includes(".")?E2(r,n):()=>r[n]:n.bind(r,r);let s;Je(e)?s=e:(s=e.handler,t=e);const i=Hd(this),l=Yb(o,s.bind(r),t);return i(),l}function E2(n,e){const t=e.split(".");return()=>{let r=n;for(let o=0;o{Ii(r,e,t)});else if(PE(n)){for(const r in n)Ii(n[r],e,t);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Ii(n[r],e,t)}return n}const Pp=n=>n.type.__isKeepAlive;function HI(n,e){T2(n,"a",e)}function _2(n,e){T2(n,"da",e)}function T2(n,e,t=Xn){const r=n.__wdc||(n.__wdc=()=>{let o=t;for(;o;){if(o.isDeactivated)return;o=o.parent}return n()});if(kp(e,r,t),t){let o=t.parent;for(;o&&o.parent;)Pp(o.parent.vnode)&&UI(r,e,t,o),o=o.parent}}function UI(n,e,t,r){const o=kp(e,n,r,!0);ws(()=>{kb(r[e],o)},t)}const Ti=Symbol("_leaveCb"),_f=Symbol("_enterCb");function O2(){const n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ot(()=>{n.isMounted=!0}),_n(()=>{n.isUnmounting=!0}),n}const Xr=[Function,Array],M2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xr,onEnter:Xr,onAfterEnter:Xr,onEnterCancelled:Xr,onBeforeLeave:Xr,onLeave:Xr,onAfterLeave:Xr,onLeaveCancelled:Xr,onBeforeAppear:Xr,onAppear:Xr,onAfterAppear:Xr,onAppearCancelled:Xr},A2=n=>{const e=n.subTree;return e.component?A2(e.component):e},WI={name:"BaseTransition",props:M2,setup(n,{slots:e}){const t=bt(),r=O2();return()=>{const o=e.default&&Jb(e.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const f of o)if(f.type!==Jn){s=f;break}}const i=kt(n),{mode:l}=i;if(r.isLeaving)return jg(s);const a=a1(s);if(!a)return jg(s);let c=nd(a,i,r,t,f=>c=f);Qa(a,c);const u=t.subTree,d=u&&a1(u);if(d&&d.type!==Jn&&!Rl(a,d)&&A2(t).type!==Jn){const f=nd(d,i,r,t);if(Qa(d,f),l==="out-in"&&a.type!==Jn)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,t.update.active!==!1&&(t.effect.dirty=!0,t.update())},jg(s);l==="in-out"&&a.type!==Jn&&(f.delayLeave=(h,p,g)=>{const m=k2(r,d);m[String(d.key)]=d,h[Ti]=()=>{p(),h[Ti]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return s}}},GI=WI;function k2(n,e){const{leavingVNodes:t}=n;let r=t.get(e.type);return r||(r=Object.create(null),t.set(e.type,r)),r}function nd(n,e,t,r,o){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:w,onAppearCancelled:b}=e,y=String(n.key),x=k2(t,n),E=(O,k)=>{O&&uo(O,r,9,k)},T=(O,k)=>{const P=k[1];E(O,k),Ve(O)?O.every(L=>L.length<=1)&&P():O.length<=1&&P()},M={mode:i,persisted:l,beforeEnter(O){let k=a;if(!t.isMounted)if(s)k=m||a;else return;O[Ti]&&O[Ti](!0);const P=x[y];P&&Rl(n,P)&&P.el[Ti]&&P.el[Ti](),E(k,[O])},enter(O){let k=c,P=u,L=d;if(!t.isMounted)if(s)k=v||c,P=w||u,L=b||d;else return;let j=!1;const ce=O[_f]=R=>{j||(j=!0,R?E(L,[O]):E(P,[O]),M.delayedLeave&&M.delayedLeave(),O[_f]=void 0)};k?T(k,[O,ce]):ce()},leave(O,k){const P=String(n.key);if(O[_f]&&O[_f](!0),t.isUnmounting)return k();E(f,[O]);let L=!1;const j=O[Ti]=ce=>{L||(L=!0,k(),ce?E(g,[O]):E(p,[O]),O[Ti]=void 0,x[P]===n&&delete x[P])};x[P]=n,h?T(h,[O,j]):j()},clone(O){const k=nd(O,e,t,r,o);return o&&o(k),k}};return M}function jg(n){if(Pp(n))return n=Ks(n),n.children=null,n}function a1(n){if(!Pp(n))return n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&Je(t.default))return t.default()}}function Qa(n,e){n.shapeFlag&6&&n.component?Qa(n.component.subTree,e):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function Jb(n,e=!1,t){let r=[],o=0;for(let s=0;s1)for(let s=0;sn.__isTeleport,Tu=n=>n&&(n.disabled||n.disabled===""),c1=n=>typeof SVGElement<"u"&&n instanceof SVGElement,u1=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Qm=(n,e)=>{const t=n&&n.to;return ht(t)?e?e(t):null:t},KI={name:"Teleport",__isTeleport:!0,process(n,e,t,r,o,s,i,l,a,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:m}}=c,v=Tu(e.props);let{shapeFlag:w,children:b,dynamicChildren:y}=e;if(n==null){const x=e.el=g(""),E=e.anchor=g("");h(x,t,r),h(E,t,r);const T=e.target=Qm(e.props,p),M=e.targetAnchor=g("");T&&(h(M,T),i==="svg"||c1(T)?i="svg":(i==="mathml"||u1(T))&&(i="mathml"));const O=(k,P)=>{w&16&&u(b,k,P,o,s,i,l,a)};v?O(t,E):T&&O(T,M)}else{e.el=n.el;const x=e.anchor=n.anchor,E=e.target=n.target,T=e.targetAnchor=n.targetAnchor,M=Tu(n.props),O=M?t:E,k=M?x:T;if(i==="svg"||c1(E)?i="svg":(i==="mathml"||u1(E))&&(i="mathml"),y?(f(n.dynamicChildren,y,O,o,s,i,l),Kb(n,e,!0)):a||d(n,e,O,k,o,s,i,l,!1),v)M?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Tf(e,t,x,c,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const P=e.target=Qm(e.props,p);P&&Tf(e,P,null,c,0)}else M&&Tf(e,E,T,c,1)}P2(e)},remove(n,e,t,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:l,anchor:a,targetAnchor:c,target:u,props:d}=n;if(u&&o(c),s&&o(a),i&16){const f=s||!Tu(d);for(let h=0;h0?No||Ha:null,JI(),rd>0&&No&&No.push(n),n}function G(n,e,t,r,o,s){return N2(F(n,e,t,r,o,s,!0))}function ye(n,e,t,r,o){return N2(C(n,e,t,r,o,!0))}function Pn(n){return n?n.__v_isVNode===!0:!1}function Rl(n,e){return n.type===e.type&&n.key===e.key}const I2=({key:n})=>n??null,sh=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?ht(n)||qt(n)||Je(n)?{i:Rn,r:n,k:e,f:!!t}:n:null);function F(n,e=null,t=null,r=0,o=null,s=n===Re?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&I2(e),ref:e&&sh(e),scopeId:Ap,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Rn};return l?(Xb(a,t),s&128&&n.normalize(a)):t&&(a.shapeFlag|=ht(t)?8:16),rd>0&&!i&&No&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&No.push(a),a}const C=XI;function XI(n,e=null,t=null,r=0,o=null,s=!1){if((!n||n===c2)&&(n=Jn),Pn(n)){const l=Ks(n,e,!0);return t&&Xb(l,t),rd>0&&!s&&No&&(l.shapeFlag&6?No[No.indexOf(n)]=l:No.push(l)),l.patchFlag=-2,l}if(iL(n)&&(n=n.__vccOpts),e){e=ZI(e);let{class:l,style:a}=e;l&&!ht(l)&&(e.class=Q(l)),gt(a)&&(QE(a)&&!Ve(a)&&(a=vn({},a)),e.style=wt(a))}const i=ht(n)?1:gI(n)?128:qI(n)?64:gt(n)?4:Je(n)?2:0;return F(n,e,t,r,o,i,s,!0)}function ZI(n){return n?QE(n)||v2(n)?vn({},n):n:null}function Ks(n,e,t=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:l,transition:a}=n,c=e?Ur(o||{},e):o,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:c,key:c&&I2(c),ref:e&&e.ref?t&&s?Ve(s)?s.concat(sh(e)):[s,sh(e)]:sh(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:l,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Re?i===-1?16:i|16:i,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:a,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Ks(n.ssContent),ssFallback:n.ssFallback&&Ks(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return a&&r&&Qa(u,a.clone(u)),u}function H(n=" ",e=0){return C(ya,null,n,e)}function we(n="",e=!1){return e?(A(),ye(Jn,null,n)):C(Jn,null,n)}function es(n){return n==null||typeof n=="boolean"?C(Jn):Ve(n)?C(Re,null,n.slice()):typeof n=="object"?Oi(n):C(ya,null,String(n))}function Oi(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Ks(n)}function Xb(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(Ve(e))t=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),Xb(n,o()),o._c&&(o._d=!0));return}else{t=32;const o=e._;!o&&!v2(e)?e._ctx=Rn:o===3&&Rn&&(Rn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else Je(e)?(e={default:e,_ctx:Rn},t=32):(e=String(e),r&64?(t=16,e=[H(e)]):t=8);n.children=e,n.shapeFlag|=t}function Ur(...n){const e={};for(let t=0;tXn||Rn;let Mh,ev;{const n=IE(),e=(t,r)=>{let o;return(o=n[t])||(o=n[t]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Mh=e("__VUE_INSTANCE_SETTERS__",t=>Xn=t),ev=e("__VUE_SSR_SETTERS__",t=>Np=t)}const Hd=n=>{const e=Xn;return Mh(n),n.scope.on(),()=>{n.scope.off(),Mh(e)}},f1=()=>{Xn&&Xn.scope.off(),Mh(null)};function L2(n){return n.vnode.shapeFlag&4}let Np=!1;function nL(n,e=!1){e&&ev(e);const{props:t,children:r}=n.vnode,o=L2(n);PI(n,t,o,e),LI(n,r);const s=o?rL(n,e):void 0;return e&&ev(!1),s}function rL(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,SI);const{setup:r}=t;if(r){const o=n.setupContext=r.length>1?$2(n):null,s=Hd(n);cl();const i=Wi(r,n,0,[n.props,o]);if(ul(),s(),AE(i)){if(i.then(f1,f1),e)return i.then(l=>{h1(n,l,e)}).catch(l=>{Op(l,n,0)});n.asyncDep=i}else h1(n,i,e)}else R2(n,e)}function h1(n,e,t){Je(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:gt(e)&&(n.setupState=n2(e)),R2(n,t)}let p1;function R2(n,e,t){const r=n.type;if(!n.render){if(!e&&p1&&!r.render){const o=r.template||Gb(n).template;if(o){const{isCustomElement:s,compilerOptions:i}=n.appContext.config,{delimiters:l,compilerOptions:a}=r,c=vn(vn({isCustomElement:s,delimiters:l},i),a);r.render=p1(o,c)}}n.render=r.render||pn}{const o=Hd(n);cl();try{EI(n)}finally{ul(),o()}}}const oL={get(n,e){return Nr(n,"get",""),n[e]}};function $2(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,oL),slots:n.slots,emit:n.emit,expose:e}}function Ip(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(n2(Zu(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Eu)return Eu[t](n)},has(e,t){return t in e||t in Eu}})):n.proxy}function sL(n,e=!0){return Je(n)?n.displayName||n.name:n.name||e&&n.__name}function iL(n){return Je(n)&&"__vccOpts"in n}const z=(n,e)=>ZN(n,e,Np);function et(n,e,t){const r=arguments.length;return r===2?gt(e)&&!Ve(e)?Pn(e)?C(n,null,[e]):C(n,e):C(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&Pn(t)&&(t=[t]),C(n,e,t))}const lL="3.4.31",aL=pn;/** -* @vue/runtime-dom v3.4.31 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const cL="http://www.w3.org/2000/svg",uL="http://www.w3.org/1998/Math/MathML",$s=typeof document<"u"?document:null,g1=$s&&$s.createElement("template"),dL={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const o=e==="svg"?$s.createElementNS(cL,n):e==="mathml"?$s.createElementNS(uL,n):t?$s.createElement(n,{is:t}):$s.createElement(n);return n==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:n=>$s.createTextNode(n),createComment:n=>$s.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>$s.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,r,o,s){const i=t?t.previousSibling:e.lastChild;if(o&&(o===s||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),t),!(o===s||!(o=o.nextSibling)););else{g1.innerHTML=r==="svg"?`${n}`:r==="mathml"?`${n}`:n;const l=g1.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,t)}return[i?i.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},hi="transition",ou="animation",ec=Symbol("_vtc"),Ir=(n,{slots:e})=>et(GI,V2(n),e);Ir.displayName="Transition";const D2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},fL=Ir.props=vn({},M2,D2),Ml=(n,e=[])=>{Ve(n)?n.forEach(t=>t(...e)):n&&n(...e)},m1=n=>n?Ve(n)?n.some(e=>e.length>1):n.length>1:!1;function V2(n){const e={};for(const L in n)L in D2||(e[L]=n[L]);if(n.css===!1)return e;const{name:t="v",type:r,duration:o,enterFromClass:s=`${t}-enter-from`,enterActiveClass:i=`${t}-enter-active`,enterToClass:l=`${t}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:h=`${t}-leave-to`}=n,p=hL(o),g=p&&p[0],m=p&&p[1],{onBeforeEnter:v,onEnter:w,onEnterCancelled:b,onLeave:y,onLeaveCancelled:x,onBeforeAppear:E=v,onAppear:T=w,onAppearCancelled:M=b}=e,O=(L,j,ce)=>{yi(L,j?u:l),yi(L,j?c:i),ce&&ce()},k=(L,j)=>{L._isLeaving=!1,yi(L,d),yi(L,h),yi(L,f),j&&j()},P=L=>(j,ce)=>{const R=L?T:w,$=()=>O(j,L,ce);Ml(R,[j,$]),v1(()=>{yi(j,L?a:s),Rs(j,L?u:l),m1(R)||b1(j,r,g,$)})};return vn(e,{onBeforeEnter(L){Ml(v,[L]),Rs(L,s),Rs(L,i)},onBeforeAppear(L){Ml(E,[L]),Rs(L,a),Rs(L,c)},onEnter:P(!1),onAppear:P(!0),onLeave(L,j){L._isLeaving=!0;const ce=()=>k(L,j);Rs(L,d),Rs(L,f),F2(),v1(()=>{L._isLeaving&&(yi(L,d),Rs(L,h),m1(y)||b1(L,r,m,ce))}),Ml(y,[L,ce])},onEnterCancelled(L){O(L,!1),Ml(b,[L])},onAppearCancelled(L){O(L,!0),Ml(M,[L])},onLeaveCancelled(L){k(L),Ml(x,[L])}})}function hL(n){if(n==null)return null;if(gt(n))return[Ug(n.enter),Ug(n.leave)];{const e=Ug(n);return[e,e]}}function Ug(n){return SN(n)}function Rs(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[ec]||(n[ec]=new Set)).add(e)}function yi(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[ec];t&&(t.delete(e),t.size||(n[ec]=void 0))}function v1(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let pL=0;function b1(n,e,t,r){const o=n._endId=++pL,s=()=>{o===n._endId&&r()};if(t)return setTimeout(s,t);const{type:i,timeout:l,propCount:a}=B2(n,e);if(!i)return r();const c=i+"end";let u=0;const d=()=>{n.removeEventListener(c,f),s()},f=h=>{h.target===n&&++u>=a&&d()};setTimeout(()=>{u(t[p]||"").split(", "),o=r(`${hi}Delay`),s=r(`${hi}Duration`),i=y1(o,s),l=r(`${ou}Delay`),a=r(`${ou}Duration`),c=y1(l,a);let u=null,d=0,f=0;e===hi?i>0&&(u=hi,d=i,f=s.length):e===ou?c>0&&(u=ou,d=c,f=a.length):(d=Math.max(i,c),u=d>0?i>c?hi:ou:null,f=u?u===hi?s.length:a.length:0);const h=u===hi&&/\b(transform|all)(,|$)/.test(r(`${hi}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function y1(n,e){for(;n.lengthw1(t)+w1(n[r])))}function w1(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function F2(){return document.body.offsetHeight}function gL(n,e,t){const r=n[ec];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Ah=Symbol("_vod"),z2=Symbol("_vsh"),Ue={beforeMount(n,{value:e},{transition:t}){n[Ah]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):su(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:r}){!e!=!t&&(r?e?(r.beforeEnter(n),su(n,!0),r.enter(n)):r.leave(n,()=>{su(n,!1)}):su(n,e))},beforeUnmount(n,{value:e}){su(n,e)}};function su(n,e){n.style.display=e?n[Ah]:"none",n[z2]=!e}const mL=Symbol(""),vL=/(^|;)\s*display\s*:/;function bL(n,e,t){const r=n.style,o=ht(t);let s=!1;if(t&&!o){if(e)if(ht(e))for(const i of e.split(";")){const l=i.slice(0,i.indexOf(":")).trim();t[l]==null&&ih(r,l,"")}else for(const i in e)t[i]==null&&ih(r,i,"");for(const i in t)i==="display"&&(s=!0),ih(r,i,t[i])}else if(o){if(e!==t){const i=r[mL];i&&(t+=";"+i),r.cssText=t,s=vL.test(t)}}else e&&n.removeAttribute("style");Ah in n&&(n[Ah]=s?r.display:"",n[z2]&&(r.display="none"))}const C1=/\s*!important$/;function ih(n,e,t){if(Ve(t))t.forEach(r=>ih(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=yL(n,e);C1.test(t)?n.setProperty(al(r),t.replace(C1,""),"important"):n[r]=t}}const x1=["Webkit","Moz","ms"],Wg={};function yL(n,e){const t=Wg[e];if(t)return t;let r=zo(e);if(r!=="filter"&&r in n)return Wg[e]=r;r=Dd(r);for(let o=0;oGg||(EL.then(()=>Gg=0),Gg=Date.now());function TL(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;uo(OL(r,t.value),e,5,[r])};return t.value=n,t.attached=_L(),t}function OL(n,e){if(Ve(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(r=>o=>!o._stopped&&r&&r(o))}else return e}const O1=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,ML=(n,e,t,r,o,s,i,l,a)=>{const c=o==="svg";e==="class"?gL(n,r,c):e==="style"?bL(n,t,r):Sp(e)?Ab(e)||xL(n,e,t,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):AL(n,e,r,c))?(wL(n,e,r,s,i,l,a),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&E1(n,e,r,c,i,e!=="value")):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),E1(n,e,r,c))};function AL(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&O1(e)&&Je(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=n.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return O1(e)&&ht(t)?!1:e in n}const j2=new WeakMap,H2=new WeakMap,kh=Symbol("_moveCb"),M1=Symbol("_enterCb"),U2={name:"TransitionGroup",props:vn({},fL,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=bt(),r=O2();let o,s;return ba(()=>{if(!o.length)return;const i=n.moveClass||`${n.name||"v"}-move`;if(!RL(o[0].el,t.vnode.el,i))return;o.forEach(NL),o.forEach(IL);const l=o.filter(LL);F2(),l.forEach(a=>{const c=a.el,u=c.style;Rs(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[kh]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[kh]=null,yi(c,i))};c.addEventListener("transitionend",d)})}),()=>{const i=kt(n),l=V2(i);let a=i.tag||Re;if(o=[],s)for(let c=0;cdelete n.mode;U2.props;const PL=U2;function NL(n){const e=n.el;e[kh]&&e[kh](),e[M1]&&e[M1]()}function IL(n){H2.set(n,n.el.getBoundingClientRect())}function LL(n){const e=j2.get(n),t=H2.get(n),r=e.left-t.left,o=e.top-t.top;if(r||o){const s=n.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",n}}function RL(n,e,t){const r=n.cloneNode(),o=n[ec];o&&o.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),t.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(r);const{hasTransform:i}=B2(r);return s.removeChild(r),i}const tc=n=>{const e=n.props["onUpdate:modelValue"]||!1;return Ve(e)?t=>oh(e,t):e};function $L(n){n.target.composing=!0}function A1(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ws=Symbol("_assign"),DL={created(n,{modifiers:{lazy:e,trim:t,number:r}},o){n[Ws]=tc(o);const s=r||o.props&&o.props.type==="number";Li(n,e?"change":"input",i=>{if(i.target.composing)return;let l=n.value;t&&(l=l.trim()),s&&(l=Hm(l)),n[Ws](l)}),t&&Li(n,"change",()=>{n.value=n.value.trim()}),e||(Li(n,"compositionstart",$L),Li(n,"compositionend",A1),Li(n,"change",A1))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:r,trim:o,number:s}},i){if(n[Ws]=tc(i),n.composing)return;const l=(s||n.type==="number")&&!/^0\d/.test(n.value)?Hm(n.value):n.value,a=e??"";l!==a&&(document.activeElement===n&&n.type!=="range"&&(r&&e===t||o&&n.value.trim()===a)||(n.value=a))}},Xi={deep:!0,created(n,e,t){n[Ws]=tc(t),Li(n,"change",()=>{const r=n._modelValue,o=G2(n),s=n.checked,i=n[Ws];if(Ve(r)){const l=RE(r,o),a=l!==-1;if(s&&!a)i(r.concat(o));else if(!s&&a){const c=[...r];c.splice(l,1),i(c)}}else if(Ep(r)){const l=new Set(r);s?l.add(o):l.delete(o),i(l)}else i(q2(n,s))})},mounted:k1,beforeUpdate(n,e,t){n[Ws]=tc(t),k1(n,e,t)}};function k1(n,{value:e,oldValue:t},r){n._modelValue=e,Ve(e)?n.checked=RE(e,r.props.value)>-1:Ep(e)?n.checked=e.has(r.props.value):e!==t&&(n.checked=Za(e,q2(n,!0)))}const W2={created(n,{value:e},t){n.checked=Za(e,t.props.value),n[Ws]=tc(t),Li(n,"change",()=>{n[Ws](G2(n))})},beforeUpdate(n,{value:e,oldValue:t},r){n[Ws]=tc(r),e!==t&&(n.checked=Za(e,r.props.value))}};function G2(n){return"_value"in n?n._value:n.value}function q2(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const VL=["ctrl","shift","alt","meta"],BL={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>VL.some(t=>n[`${t}Key`]&&!e.includes(t))},It=(n,e)=>{const t=n._withMods||(n._withMods={}),r=e.join(".");return t[r]||(t[r]=(o,...s)=>{for(let i=0;i{const t=n._withKeys||(n._withKeys={}),r=e.join(".");return t[r]||(t[r]=o=>{if(!("key"in o))return;const s=al(o.key);if(e.some(i=>i===s||FL[i]===s))return n(o)})},zL=vn({patchProp:ML},dL);let P1;function K2(){return P1||(P1=$I(zL))}const Zi=(...n)=>{K2().render(...n)},Zb=(...n)=>{const e=K2().createApp(...n),{mount:t}=e;return e.mount=r=>{const o=HL(r);if(!o)return;const s=e._component;!Je(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=t(o,!1,jL(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},e};function jL(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function HL(n){return ht(n)?document.querySelector(n):n}/*! - * vue-router v4.4.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const Na=typeof document<"u";function UL(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const Dt=Object.assign;function qg(n,e){const t={};for(const r in e){const o=e[r];t[r]=jo(o)?o.map(n):n(o)}return t}const Mu=()=>{},jo=Array.isArray,Y2=/#/g,WL=/&/g,GL=/\//g,qL=/=/g,KL=/\?/g,J2=/\+/g,YL=/%5B/g,JL=/%5D/g,X2=/%5E/g,XL=/%60/g,Z2=/%7B/g,ZL=/%7C/g,Q2=/%7D/g,QL=/%20/g;function Qb(n){return encodeURI(""+n).replace(ZL,"|").replace(YL,"[").replace(JL,"]")}function e3(n){return Qb(n).replace(Z2,"{").replace(Q2,"}").replace(X2,"^")}function tv(n){return Qb(n).replace(J2,"%2B").replace(QL,"+").replace(Y2,"%23").replace(WL,"%26").replace(XL,"`").replace(Z2,"{").replace(Q2,"}").replace(X2,"^")}function t3(n){return tv(n).replace(qL,"%3D")}function n3(n){return Qb(n).replace(Y2,"%23").replace(KL,"%3F")}function r3(n){return n==null?"":n3(n).replace(GL,"%2F")}function od(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const o3=/\/$/,s3=n=>n.replace(o3,"");function Kg(n,e,t="/"){let r,o={},s="",i="";const l=e.indexOf("#");let a=e.indexOf("?");return l=0&&(a=-1),a>-1&&(r=e.slice(0,a),s=e.slice(a+1,l>-1?l:e.length),o=n(s)),l>-1&&(r=r||e.slice(0,l),i=e.slice(l,e.length)),r=c3(r??e,t),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:od(i)}}function i3(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function N1(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function l3(n,e,t){const r=e.matched.length-1,o=t.matched.length-1;return r>-1&&r===o&&nc(e.matched[r],t.matched[o])&&e_(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function nc(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function e_(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!a3(n[t],e[t]))return!1;return!0}function a3(n,e){return jo(n)?I1(n,e):jo(e)?I1(e,n):n===e}function I1(n,e){return jo(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function c3(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=t.length-1,i,l;for(i=0;i1&&s--;else break;return t.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const pi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var sd;(function(n){n.pop="pop",n.push="push"})(sd||(sd={}));var Au;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Au||(Au={}));function u3(n){if(!n)if(Na){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),s3(n)}const d3=/^[^#]+#/;function f3(n,e){return n.replace(d3,"#")+e}function h3(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const Lp=()=>({left:window.scrollX,top:window.scrollY});function p3(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),o=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!o)return;e=h3(o,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function L1(n,e){return(history.state?history.state.position-e:-1)+n}const nv=new Map;function g3(n,e){nv.set(n,e)}function m3(n){const e=nv.get(n);return nv.delete(n),e}let v3=()=>location.protocol+"//"+location.host;function t_(n,e){const{pathname:t,search:r,hash:o}=e,s=n.indexOf("#");if(s>-1){let l=o.includes(n.slice(s))?n.slice(s).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),N1(a,"")}return N1(t,n)+r+o}function b3(n,e,t,r){let o=[],s=[],i=null;const l=({state:f})=>{const h=t_(n,location),p=t.value,g=e.value;let m=0;if(f){if(t.value=h,e.value=f,i&&i===p){i=null;return}m=g?f.position-g.position:0}else r(h);o.forEach(v=>{v(t.value,p,{delta:m,type:sd.pop,direction:m?m>0?Au.forward:Au.back:Au.unknown})})};function a(){i=t.value}function c(f){o.push(f);const h=()=>{const p=o.indexOf(f);p>-1&&o.splice(p,1)};return s.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Dt({},f.state,{scroll:Lp()}),"")}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:d}}function R1(n,e,t,r=!1,o=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:o?Lp():null}}function y3(n){const{history:e,location:t}=window,r={value:t_(n,t)},o={value:e.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(a,c,u){const d=n.indexOf("#"),f=d>-1?(t.host&&document.querySelector("base")?n:n.slice(d))+a:v3()+n+a;try{e[u?"replaceState":"pushState"](c,"",f),o.value=c}catch{t[u?"replace":"assign"](f)}}function i(a,c){const u=Dt({},e.state,R1(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});s(a,u,!0),r.value=a}function l(a,c){const u=Dt({},o.value,e.state,{forward:a,scroll:Lp()});s(u.current,u,!0);const d=Dt({},R1(r.value,a,null),{position:u.position+1},c);s(a,d,!1),r.value=a}return{location:r,state:o,push:l,replace:i}}function w3(n){n=u3(n);const e=y3(n),t=b3(n,e.state,e.location,e.replace);function r(s,i=!0){i||t.pauseListeners(),history.go(s)}const o=Dt({location:"",base:n,go:r,createHref:f3.bind(null,n)},e,t);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function C3(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),w3(n)}function x3(n){return typeof n=="string"||n&&typeof n=="object"}function n_(n){return typeof n=="string"||typeof n=="symbol"}const r_=Symbol("");var $1;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})($1||($1={}));function rc(n,e){return Dt(new Error,{type:n,[r_]:!0},e)}function As(n,e){return n instanceof Error&&r_ in n&&(e==null||!!(n.type&e))}const D1="[^/]+?",S3={sensitive:!1,strict:!1,start:!0,end:!0},E3=/[.+*?^${}()[\]/\\]/g;function _3(n,e){const t=Dt({},S3,e),r=[];let o=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(o+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function o_(n,e){let t=0;const r=n.score,o=e.score;for(;t0&&e[e.length-1]<0}const O3={type:0,value:""},M3=/[a-zA-Z0-9_]/;function A3(n){if(!n)return[[]];if(n==="/")return[[O3]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${c}": ${h}`)}let t=0,r=t;const o=[];let s;function i(){s&&o.push(s),s=[]}let l=0,a,c="",u="";function d(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(a==="*"||a==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l{i(b)}:Mu}function i(d){if(n_(d)){const f=r.get(d);f&&(r.delete(d),t.splice(t.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=t.indexOf(d);f>-1&&(t.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return t}function a(d){const f=R3(d,t);t.splice(f,0,d),d.record.name&&!F1(d)&&r.set(d.record.name,d)}function c(d,f){let h,p={},g,m;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw rc(1,{location:d});m=h.record.name,p=Dt(B1(f.params,h.keys.filter(b=>!b.optional).concat(h.parent?h.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),d.params&&B1(d.params,h.keys.map(b=>b.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=t.find(b=>b.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?r.get(f.name):t.find(b=>b.re.test(f.path)),!h)throw rc(1,{location:d,currentLocation:f});m=h.record.name,p=Dt({},f.params,d.params),g=h.stringify(p)}const v=[];let w=h;for(;w;)v.unshift(w.record),w=w.parent;return{name:m,path:g,params:p,matched:v,meta:L3(v)}}n.forEach(d=>s(d));function u(){t.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:o}}function B1(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function N3(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:I3(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function I3(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function F1(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function L3(n){return n.reduce((e,t)=>Dt(e,t.meta),{})}function z1(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function R3(n,e){let t=0,r=e.length;for(;t!==r;){const s=t+r>>1;o_(n,e[s])<0?r=s:t=s+1}const o=$3(n);return o&&(r=e.lastIndexOf(o,r-1)),r}function $3(n){let e=n;for(;e=e.parent;)if(s_(e)&&o_(n,e)===0)return e}function s_({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function D3(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let o=0;os&&tv(s)):[r&&tv(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function V3(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=jo(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const B3=Symbol(""),H1=Symbol(""),Rp=Symbol(""),ey=Symbol(""),rv=Symbol("");function iu(){let n=[];function e(r){return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function Mi(n,e,t,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const c=f=>{f===!1?a(rc(4,{from:t,to:e})):f instanceof Error?a(f):x3(f)?a(rc(2,{from:e,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),l())},u=s(()=>n.call(r&&r.instances[o],e,t,c));let d=Promise.resolve(u);n.length<3&&(d=d.then(c)),d.catch(f=>a(f))})}function Yg(n,e,t,r,o=s=>s()){const s=[];for(const i of n)for(const l in i.components){let a=i.components[l];if(!(e!=="beforeRouteEnter"&&!i.instances[l]))if(F3(a)){const u=(a.__vccOpts||a)[e];u&&s.push(Mi(u,t,r,i,l,o))}else{let c=a();s.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const d=UL(u)?u.default:u;i.components[l]=d;const h=(d.__vccOpts||d)[e];return h&&Mi(h,t,r,i,l,o)()}))}}return s}function F3(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function U1(n){const e=Fe(Rp),t=Fe(ey),r=z(()=>{const a=S(n.to);return e.resolve(a)}),o=z(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],d=t.matched;if(!u||!d.length)return-1;const f=d.findIndex(nc.bind(null,u));if(f>-1)return f;const h=W1(a[c-2]);return c>1&&W1(u)===h&&d[d.length-1].path!==h?d.findIndex(nc.bind(null,a[c-2])):f}),s=z(()=>o.value>-1&&U3(t.params,r.value.params)),i=z(()=>o.value>-1&&o.value===t.matched.length-1&&e_(t.params,r.value.params));function l(a={}){return H3(a)?e[S(n.replace)?"replace":"push"](S(n.to)).catch(Mu):Promise.resolve()}return{route:r,href:z(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}const z3=me({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:U1,setup(n,{slots:e}){const t=vt(U1(n)),{options:r}=Fe(Rp),o=z(()=>({[G1(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[G1(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return n.custom?s:et("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:o.value},s)}}}),j3=z3;function H3(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function U3(n,e){for(const t in e){const r=e[t],o=n[t];if(typeof r=="string"){if(r!==o)return!1}else if(!jo(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function W1(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const G1=(n,e,t)=>n??e??t,W3=me({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=Fe(rv),o=z(()=>n.route||r.value),s=Fe(H1,0),i=z(()=>{let c=S(s);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=z(()=>o.value.matched[i.value]);jt(H1,z(()=>i.value+1)),jt(B3,l),jt(rv,o);const a=D();return Be(()=>[a.value,l.value,n.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!nc(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,u=n.name,d=l.value,f=d&&d.components[u];if(!f)return q1(t.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,m=et(f,Dt({},p,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return q1(t.default,{Component:m,route:c})||m}}});function q1(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const G3=W3;function q3(n){const e=P3(n.routes,n),t=n.parseQuery||D3,r=n.stringifyQuery||j1,o=n.history,s=iu(),i=iu(),l=iu(),a=$o(pi);let c=pi;Na&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=qg.bind(null,re=>""+re),d=qg.bind(null,r3),f=qg.bind(null,od);function h(re,ae){let te,ve;return n_(re)?(te=e.getRecordMatcher(re),ve=ae):ve=re,e.addRoute(ve,te)}function p(re){const ae=e.getRecordMatcher(re);ae&&e.removeRoute(ae)}function g(){return e.getRoutes().map(re=>re.record)}function m(re){return!!e.getRecordMatcher(re)}function v(re,ae){if(ae=Dt({},ae||a.value),typeof re=="string"){const N=Kg(t,re,ae.path),X=e.resolve({path:N.path},ae),pe=o.createHref(N.fullPath);return Dt(N,X,{params:f(X.params),hash:od(N.hash),redirectedFrom:void 0,href:pe})}let te;if(re.path!=null)te=Dt({},re,{path:Kg(t,re.path,ae.path).path});else{const N=Dt({},re.params);for(const X in N)N[X]==null&&delete N[X];te=Dt({},re,{params:d(N)}),ae.params=d(ae.params)}const ve=e.resolve(te,ae),Oe=re.hash||"";ve.params=u(f(ve.params));const Ye=i3(r,Dt({},re,{hash:e3(Oe),path:ve.path})),I=o.createHref(Ye);return Dt({fullPath:Ye,hash:Oe,query:r===j1?V3(re.query):re.query||{}},ve,{redirectedFrom:void 0,href:I})}function w(re){return typeof re=="string"?Kg(t,re,a.value.path):Dt({},re)}function b(re,ae){if(c!==re)return rc(8,{from:ae,to:re})}function y(re){return T(re)}function x(re){return y(Dt(w(re),{replace:!0}))}function E(re){const ae=re.matched[re.matched.length-1];if(ae&&ae.redirect){const{redirect:te}=ae;let ve=typeof te=="function"?te(re):te;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=w(ve):{path:ve},ve.params={}),Dt({query:re.query,hash:re.hash,params:ve.path!=null?{}:re.params},ve)}}function T(re,ae){const te=c=v(re),ve=a.value,Oe=re.state,Ye=re.force,I=re.replace===!0,N=E(te);if(N)return T(Dt(w(N),{state:typeof N=="object"?Dt({},Oe,N.state):Oe,force:Ye,replace:I}),ae||te);const X=te;X.redirectedFrom=ae;let pe;return!Ye&&l3(r,ve,te)&&(pe=rc(16,{to:X,from:ve}),le(ve,ve,!0,!1)),(pe?Promise.resolve(pe):k(X,ve)).catch(fe=>As(fe)?As(fe,2)?fe:Z(fe):U(fe,X,ve)).then(fe=>{if(fe){if(As(fe,2))return T(Dt({replace:I},w(fe.to),{state:typeof fe.to=="object"?Dt({},Oe,fe.to.state):Oe,force:Ye}),ae||X)}else fe=L(X,ve,!0,I,Oe);return P(X,ve,fe),fe})}function M(re,ae){const te=b(re,ae);return te?Promise.reject(te):Promise.resolve()}function O(re){const ae=ge.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(re):re()}function k(re,ae){let te;const[ve,Oe,Ye]=K3(re,ae);te=Yg(ve.reverse(),"beforeRouteLeave",re,ae);for(const N of ve)N.leaveGuards.forEach(X=>{te.push(Mi(X,re,ae))});const I=M.bind(null,re,ae);return te.push(I),Te(te).then(()=>{te=[];for(const N of s.list())te.push(Mi(N,re,ae));return te.push(I),Te(te)}).then(()=>{te=Yg(Oe,"beforeRouteUpdate",re,ae);for(const N of Oe)N.updateGuards.forEach(X=>{te.push(Mi(X,re,ae))});return te.push(I),Te(te)}).then(()=>{te=[];for(const N of Ye)if(N.beforeEnter)if(jo(N.beforeEnter))for(const X of N.beforeEnter)te.push(Mi(X,re,ae));else te.push(Mi(N.beforeEnter,re,ae));return te.push(I),Te(te)}).then(()=>(re.matched.forEach(N=>N.enterCallbacks={}),te=Yg(Ye,"beforeRouteEnter",re,ae,O),te.push(I),Te(te))).then(()=>{te=[];for(const N of i.list())te.push(Mi(N,re,ae));return te.push(I),Te(te)}).catch(N=>As(N,8)?N:Promise.reject(N))}function P(re,ae,te){l.list().forEach(ve=>O(()=>ve(re,ae,te)))}function L(re,ae,te,ve,Oe){const Ye=b(re,ae);if(Ye)return Ye;const I=ae===pi,N=Na?history.state:{};te&&(ve||I?o.replace(re.fullPath,Dt({scroll:I&&N&&N.scroll},Oe)):o.push(re.fullPath,Oe)),a.value=re,le(re,ae,te,I),Z()}let j;function ce(){j||(j=o.listen((re,ae,te)=>{if(!be.listening)return;const ve=v(re),Oe=E(ve);if(Oe){T(Dt(Oe,{replace:!0}),ve).catch(Mu);return}c=ve;const Ye=a.value;Na&&g3(L1(Ye.fullPath,te.delta),Lp()),k(ve,Ye).catch(I=>As(I,12)?I:As(I,2)?(T(I.to,ve).then(N=>{As(N,20)&&!te.delta&&te.type===sd.pop&&o.go(-1,!1)}).catch(Mu),Promise.reject()):(te.delta&&o.go(-te.delta,!1),U(I,ve,Ye))).then(I=>{I=I||L(ve,Ye,!1),I&&(te.delta&&!As(I,8)?o.go(-te.delta,!1):te.type===sd.pop&&As(I,20)&&o.go(-1,!1)),P(ve,Ye,I)}).catch(Mu)}))}let R=iu(),$=iu(),q;function U(re,ae,te){Z(re);const ve=$.list();return ve.length&&ve.forEach(Oe=>Oe(re,ae,te)),Promise.reject(re)}function W(){return q&&a.value!==pi?Promise.resolve():new Promise((re,ae)=>{R.add([re,ae])})}function Z(re){return q||(q=!re,ce(),R.list().forEach(([ae,te])=>re?te(re):ae()),R.reset()),re}function le(re,ae,te,ve){const{scrollBehavior:Oe}=n;if(!Na||!Oe)return Promise.resolve();const Ye=!te&&m3(L1(re.fullPath,0))||(ve||!te)&&history.state&&history.state.scroll||null;return lt().then(()=>Oe(re,ae,Ye)).then(I=>I&&p3(I)).catch(I=>U(I,re,ae))}const ee=re=>o.go(re);let Me;const ge=new Set,be={currentRoute:a,listening:!0,addRoute:h,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:g,resolve:v,options:n,push:y,replace:x,go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:$.add,isReady:W,install(re){const ae=this;re.component("RouterLink",j3),re.component("RouterView",G3),re.config.globalProperties.$router=ae,Object.defineProperty(re.config.globalProperties,"$route",{enumerable:!0,get:()=>S(a)}),Na&&!Me&&a.value===pi&&(Me=!0,y(o.location).catch(Oe=>{}));const te={};for(const Oe in pi)Object.defineProperty(te,Oe,{get:()=>a.value[Oe],enumerable:!0});re.provide(Rp,ae),re.provide(ey,Db(te)),re.provide(rv,a);const ve=re.unmount;ge.add(re),re.unmount=function(){ge.delete(re),ge.size<1&&(c=pi,j&&j(),j=null,a.value=pi,Me=!1,q=!1),ve()}}};function Te(re){return re.reduce((ae,te)=>ae.then(()=>O(te)),Promise.resolve())}return be}function K3(n,e){const t=[],r=[],o=[],s=Math.max(e.matched.length,n.matched.length);for(let i=0;inc(c,l))?r.push(l):t.push(l));const a=n.matched[i];a&&(e.matched.find(c=>nc(c,a))||o.push(a))}return[t,r,o]}function xo(){return Fe(Rp)}function ni(n){return Fe(ey)}/*! - * shared v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const Ph=typeof window<"u",dl=(n,e=!1)=>e?Symbol.for(n):Symbol(n),Y3=(n,e,t)=>J3({l:n,k:e,s:t}),J3=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),An=n=>typeof n=="number"&&isFinite(n),X3=n=>l_(n)==="[object Date]",Qi=n=>l_(n)==="[object RegExp]",$p=n=>mt(n)&&Object.keys(n).length===0,Qn=Object.assign;let K1;const Fs=()=>K1||(K1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Y1(n){return n.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Z3=Object.prototype.hasOwnProperty;function Nh(n,e){return Z3.call(n,e)}const en=Array.isArray,Yt=n=>typeof n=="function",He=n=>typeof n=="string",Mt=n=>typeof n=="boolean",Lt=n=>n!==null&&typeof n=="object",Q3=n=>Lt(n)&&Yt(n.then)&&Yt(n.catch),i_=Object.prototype.toString,l_=n=>i_.call(n),mt=n=>{if(!Lt(n))return!1;const e=Object.getPrototypeOf(n);return e===null||e.constructor===Object},eR=n=>n==null?"":en(n)||mt(n)&&n.toString===i_?JSON.stringify(n,null,2):String(n);function tR(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}function Dp(n){let e=n;return()=>++e}function nR(n,e){}const Of=n=>!Lt(n)||en(n);function lh(n,e){if(Of(n)||Of(e))throw new Error("Invalid value");const t=[{src:n,des:e}];for(;t.length;){const{src:r,des:o}=t.pop();Object.keys(r).forEach(s=>{Of(r[s])||Of(o[s])?o[s]=r[s]:t.push({src:r[s],des:o[s]})})}}/*! - * message-compiler v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function rR(n,e,t){return{line:n,column:e,offset:t}}function Ih(n,e,t){return{start:n,end:e}}const oR=/\{([0-9a-zA-Z]+)\}/g;function a_(n,...e){return e.length===1&&sR(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(oR,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const c_=Object.assign,J1=n=>typeof n=="string",sR=n=>n!==null&&typeof n=="object";function u_(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}const ty={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},iR={[ty.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function lR(n,e,...t){const r=a_(iR[n],...t||[]),o={message:String(r),code:n};return e&&(o.location=e),o}const ut={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},aR={[ut.EXPECTED_TOKEN]:"Expected token: '{0}'",[ut.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ut.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ut.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ut.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ut.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ut.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ut.EMPTY_PLACEHOLDER]:"Empty placeholder",[ut.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ut.INVALID_LINKED_FORMAT]:"Invalid linked format",[ut.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ut.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ut.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ut.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ut.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ut.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Uc(n,e,t={}){const{domain:r,messages:o,args:s}=t,i=a_((o||aR)[n]||"",...s||[]),l=new SyntaxError(String(i));return l.code=n,e&&(l.location=e),l.domain=r,l}function cR(n){throw n}const ks=" ",uR="\r",mr=` -`,dR="\u2028",fR="\u2029";function hR(n){const e=n;let t=0,r=1,o=1,s=0;const i=T=>e[T]===uR&&e[T+1]===mr,l=T=>e[T]===mr,a=T=>e[T]===fR,c=T=>e[T]===dR,u=T=>i(T)||l(T)||a(T)||c(T),d=()=>t,f=()=>r,h=()=>o,p=()=>s,g=T=>i(T)||a(T)||c(T)?mr:e[T],m=()=>g(t),v=()=>g(t+s);function w(){return s=0,u(t)&&(r++,o=0),i(t)&&t++,t++,o++,e[t]}function b(){return i(t+s)&&s++,s++,e[t+s]}function y(){t=0,r=1,o=1,s=0}function x(T=0){s=T}function E(){const T=t+s;for(;T!==t;)w();s=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:m,currentPeek:v,next:w,peek:b,reset:y,resetPeek:x,skipToPeek:E}}const gi=void 0,pR=".",X1="'",gR="tokenizer";function mR(n,e={}){const t=e.location!==!1,r=hR(n),o=()=>r.index(),s=()=>rR(r.line(),r.column(),r.index()),i=s(),l=o(),a={currentType:14,offset:l,startLoc:i,endLoc:i,lastType:14,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>a,{onError:u}=e;function d(V,B,J,...ue){const Pe=c();if(B.column+=J,B.offset+=J,u){const se=t?Ih(Pe.startLoc,B):null,ne=Uc(V,se,{domain:gR,args:ue});u(ne)}}function f(V,B,J){V.endLoc=s(),V.currentType=B;const ue={type:B};return t&&(ue.loc=Ih(V.startLoc,V.endLoc)),J!=null&&(ue.value=J),ue}const h=V=>f(V,14);function p(V,B){return V.currentChar()===B?(V.next(),B):(d(ut.EXPECTED_TOKEN,s(),0,B),"")}function g(V){let B="";for(;V.currentPeek()===ks||V.currentPeek()===mr;)B+=V.currentPeek(),V.peek();return B}function m(V){const B=g(V);return V.skipToPeek(),B}function v(V){if(V===gi)return!1;const B=V.charCodeAt(0);return B>=97&&B<=122||B>=65&&B<=90||B===95}function w(V){if(V===gi)return!1;const B=V.charCodeAt(0);return B>=48&&B<=57}function b(V,B){const{currentType:J}=B;if(J!==2)return!1;g(V);const ue=v(V.currentPeek());return V.resetPeek(),ue}function y(V,B){const{currentType:J}=B;if(J!==2)return!1;g(V);const ue=V.currentPeek()==="-"?V.peek():V.currentPeek(),Pe=w(ue);return V.resetPeek(),Pe}function x(V,B){const{currentType:J}=B;if(J!==2)return!1;g(V);const ue=V.currentPeek()===X1;return V.resetPeek(),ue}function E(V,B){const{currentType:J}=B;if(J!==8)return!1;g(V);const ue=V.currentPeek()===".";return V.resetPeek(),ue}function T(V,B){const{currentType:J}=B;if(J!==9)return!1;g(V);const ue=v(V.currentPeek());return V.resetPeek(),ue}function M(V,B){const{currentType:J}=B;if(!(J===8||J===12))return!1;g(V);const ue=V.currentPeek()===":";return V.resetPeek(),ue}function O(V,B){const{currentType:J}=B;if(J!==10)return!1;const ue=()=>{const se=V.currentPeek();return se==="{"?v(V.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===ks||!se?!1:se===mr?(V.peek(),ue()):L(V,!1)},Pe=ue();return V.resetPeek(),Pe}function k(V){g(V);const B=V.currentPeek()==="|";return V.resetPeek(),B}function P(V){const B=g(V),J=V.currentPeek()==="%"&&V.peek()==="{";return V.resetPeek(),{isModulo:J,hasSpace:B.length>0}}function L(V,B=!0){const J=(Pe=!1,se="",ne=!1)=>{const de=V.currentPeek();return de==="{"?se==="%"?!1:Pe:de==="@"||!de?se==="%"?!0:Pe:de==="%"?(V.peek(),J(Pe,"%",!0)):de==="|"?se==="%"||ne?!0:!(se===ks||se===mr):de===ks?(V.peek(),J(!0,ks,ne)):de===mr?(V.peek(),J(!0,mr,ne)):!0},ue=J();return B&&V.resetPeek(),ue}function j(V,B){const J=V.currentChar();return J===gi?gi:B(J)?(V.next(),J):null}function ce(V){const B=V.charCodeAt(0);return B>=97&&B<=122||B>=65&&B<=90||B>=48&&B<=57||B===95||B===36}function R(V){return j(V,ce)}function $(V){const B=V.charCodeAt(0);return B>=97&&B<=122||B>=65&&B<=90||B>=48&&B<=57||B===95||B===36||B===45}function q(V){return j(V,$)}function U(V){const B=V.charCodeAt(0);return B>=48&&B<=57}function W(V){return j(V,U)}function Z(V){const B=V.charCodeAt(0);return B>=48&&B<=57||B>=65&&B<=70||B>=97&&B<=102}function le(V){return j(V,Z)}function ee(V){let B="",J="";for(;B=W(V);)J+=B;return J}function Me(V){m(V);const B=V.currentChar();return B!=="%"&&d(ut.EXPECTED_TOKEN,s(),0,B),V.next(),"%"}function ge(V){let B="";for(;;){const J=V.currentChar();if(J==="{"||J==="}"||J==="@"||J==="|"||!J)break;if(J==="%")if(L(V))B+=J,V.next();else break;else if(J===ks||J===mr)if(L(V))B+=J,V.next();else{if(k(V))break;B+=J,V.next()}else B+=J,V.next()}return B}function be(V){m(V);let B="",J="";for(;B=q(V);)J+=B;return V.currentChar()===gi&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),J}function Te(V){m(V);let B="";return V.currentChar()==="-"?(V.next(),B+=`-${ee(V)}`):B+=ee(V),V.currentChar()===gi&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),B}function re(V){return V!==X1&&V!==mr}function ae(V){m(V),p(V,"'");let B="",J="";for(;B=j(V,re);)B==="\\"?J+=te(V):J+=B;const ue=V.currentChar();return ue===mr||ue===gi?(d(ut.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),ue===mr&&(V.next(),p(V,"'")),J):(p(V,"'"),J)}function te(V){const B=V.currentChar();switch(B){case"\\":case"'":return V.next(),`\\${B}`;case"u":return ve(V,B,4);case"U":return ve(V,B,6);default:return d(ut.UNKNOWN_ESCAPE_SEQUENCE,s(),0,B),""}}function ve(V,B,J){p(V,B);let ue="";for(let Pe=0;Pe{const ue=V.currentChar();return ue==="{"||ue==="%"||ue==="@"||ue==="|"||ue==="("||ue===")"||!ue||ue===ks?J:(J+=ue,V.next(),B(J))};return B("")}function X(V){m(V);const B=p(V,"|");return m(V),B}function pe(V,B){let J=null;switch(V.currentChar()){case"{":return B.braceNest>=1&&d(ut.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),V.next(),J=f(B,2,"{"),m(V),B.braceNest++,J;case"}":return B.braceNest>0&&B.currentType===2&&d(ut.EMPTY_PLACEHOLDER,s(),0),V.next(),J=f(B,3,"}"),B.braceNest--,B.braceNest>0&&m(V),B.inLinked&&B.braceNest===0&&(B.inLinked=!1),J;case"@":return B.braceNest>0&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),J=fe(V,B)||h(B),B.braceNest=0,J;default:{let Pe=!0,se=!0,ne=!0;if(k(V))return B.braceNest>0&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),J=f(B,1,X(V)),B.braceNest=0,B.inLinked=!1,J;if(B.braceNest>0&&(B.currentType===5||B.currentType===6||B.currentType===7))return d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),B.braceNest=0,_e(V,B);if(Pe=b(V,B))return J=f(B,5,be(V)),m(V),J;if(se=y(V,B))return J=f(B,6,Te(V)),m(V),J;if(ne=x(V,B))return J=f(B,7,ae(V)),m(V),J;if(!Pe&&!se&&!ne)return J=f(B,13,Ye(V)),d(ut.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,J.value),m(V),J;break}}return J}function fe(V,B){const{currentType:J}=B;let ue=null;const Pe=V.currentChar();switch((J===8||J===9||J===12||J===10)&&(Pe===mr||Pe===ks)&&d(ut.INVALID_LINKED_FORMAT,s(),0),Pe){case"@":return V.next(),ue=f(B,8,"@"),B.inLinked=!0,ue;case".":return m(V),V.next(),f(B,9,".");case":":return m(V),V.next(),f(B,10,":");default:return k(V)?(ue=f(B,1,X(V)),B.braceNest=0,B.inLinked=!1,ue):E(V,B)||M(V,B)?(m(V),fe(V,B)):T(V,B)?(m(V),f(B,12,I(V))):O(V,B)?(m(V),Pe==="{"?pe(V,B)||ue:f(B,11,N(V))):(J===8&&d(ut.INVALID_LINKED_FORMAT,s(),0),B.braceNest=0,B.inLinked=!1,_e(V,B))}}function _e(V,B){let J={type:14};if(B.braceNest>0)return pe(V,B)||h(B);if(B.inLinked)return fe(V,B)||h(B);switch(V.currentChar()){case"{":return pe(V,B)||h(B);case"}":return d(ut.UNBALANCED_CLOSING_BRACE,s(),0),V.next(),f(B,3,"}");case"@":return fe(V,B)||h(B);default:{if(k(V))return J=f(B,1,X(V)),B.braceNest=0,B.inLinked=!1,J;const{isModulo:Pe,hasSpace:se}=P(V);if(Pe)return se?f(B,0,ge(V)):f(B,4,Me(V));if(L(V))return f(B,0,ge(V));break}}return J}function xe(){const{currentType:V,offset:B,startLoc:J,endLoc:ue}=a;return a.lastType=V,a.lastOffset=B,a.lastStartLoc=J,a.lastEndLoc=ue,a.offset=o(),a.startLoc=s(),r.currentChar()===gi?f(a,14):_e(r,a)}return{nextToken:xe,currentOffset:o,currentPosition:s,context:c}}const vR="parser",bR=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function yR(n,e,t){switch(n){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||t,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function wR(n={}){const e=n.location!==!1,{onError:t,onWarn:r}=n;function o(b,y,x,E,...T){const M=b.currentPosition();if(M.offset+=E,M.column+=E,t){const O=e?Ih(x,M):null,k=Uc(y,O,{domain:vR,args:T});t(k)}}function s(b,y,x,E,...T){const M=b.currentPosition();if(M.offset+=E,M.column+=E,r){const O=e?Ih(x,M):null;r(lR(y,O,T))}}function i(b,y,x){const E={type:b};return e&&(E.start=y,E.end=y,E.loc={start:x,end:x}),E}function l(b,y,x,E){e&&(b.end=y,b.loc&&(b.loc.end=x))}function a(b,y){const x=b.context(),E=i(3,x.offset,x.startLoc);return E.value=y,l(E,b.currentOffset(),b.currentPosition()),E}function c(b,y){const x=b.context(),{lastOffset:E,lastStartLoc:T}=x,M=i(5,E,T);return M.index=parseInt(y,10),b.nextToken(),l(M,b.currentOffset(),b.currentPosition()),M}function u(b,y,x){const E=b.context(),{lastOffset:T,lastStartLoc:M}=E,O=i(4,T,M);return O.key=y,x===!0&&(O.modulo=!0),b.nextToken(),l(O,b.currentOffset(),b.currentPosition()),O}function d(b,y){const x=b.context(),{lastOffset:E,lastStartLoc:T}=x,M=i(9,E,T);return M.value=y.replace(bR,yR),b.nextToken(),l(M,b.currentOffset(),b.currentPosition()),M}function f(b){const y=b.nextToken(),x=b.context(),{lastOffset:E,lastStartLoc:T}=x,M=i(8,E,T);return y.type!==12?(o(b,ut.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),M.value="",l(M,E,T),{nextConsumeToken:y,node:M}):(y.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,_o(y)),M.value=y.value||"",l(M,b.currentOffset(),b.currentPosition()),{node:M})}function h(b,y){const x=b.context(),E=i(7,x.offset,x.startLoc);return E.value=y,l(E,b.currentOffset(),b.currentPosition()),E}function p(b){const y=b.context(),x=i(6,y.offset,y.startLoc);let E=b.nextToken();if(E.type===9){const T=f(b);x.modifier=T.node,E=T.nextConsumeToken||b.nextToken()}switch(E.type!==10&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(E)),E=b.nextToken(),E.type===2&&(E=b.nextToken()),E.type){case 11:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(E)),x.key=h(b,E.value||"");break;case 5:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(E)),x.key=u(b,E.value||"");break;case 6:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(E)),x.key=c(b,E.value||"");break;case 7:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(E)),x.key=d(b,E.value||"");break;default:{o(b,ut.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const T=b.context(),M=i(7,T.offset,T.startLoc);return M.value="",l(M,T.offset,T.startLoc),x.key=M,l(x,T.offset,T.startLoc),{nextConsumeToken:E,node:x}}}return l(x,b.currentOffset(),b.currentPosition()),{node:x}}function g(b){const y=b.context(),x=y.currentType===1?b.currentOffset():y.offset,E=y.currentType===1?y.endLoc:y.startLoc,T=i(2,x,E);T.items=[];let M=null,O=null;do{const L=M||b.nextToken();switch(M=null,L.type){case 0:L.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(L)),T.items.push(a(b,L.value||""));break;case 6:L.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(L)),T.items.push(c(b,L.value||""));break;case 4:O=!0;break;case 5:L.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(L)),T.items.push(u(b,L.value||"",!!O)),O&&(s(b,ty.USE_MODULO_SYNTAX,y.lastStartLoc,0,_o(L)),O=null);break;case 7:L.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_o(L)),T.items.push(d(b,L.value||""));break;case 8:{const j=p(b);T.items.push(j.node),M=j.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const k=y.currentType===1?y.lastOffset:b.currentOffset(),P=y.currentType===1?y.lastEndLoc:b.currentPosition();return l(T,k,P),T}function m(b,y,x,E){const T=b.context();let M=E.items.length===0;const O=i(1,y,x);O.cases=[],O.cases.push(E);do{const k=g(b);M||(M=k.items.length===0),O.cases.push(k)}while(T.currentType!==14);return M&&o(b,ut.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),l(O,b.currentOffset(),b.currentPosition()),O}function v(b){const y=b.context(),{offset:x,startLoc:E}=y,T=g(b);return y.currentType===14?T:m(b,x,E,T)}function w(b){const y=mR(b,c_({},n)),x=y.context(),E=i(0,x.offset,x.startLoc);return e&&E.loc&&(E.loc.source=b),E.body=v(y),n.onCacheKey&&(E.cacheKey=n.onCacheKey(b)),x.currentType!==14&&o(y,ut.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,b[x.offset]||""),l(E,y.currentOffset(),y.currentPosition()),E}return{parse:w}}function _o(n){if(n.type===14)return"EOF";const e=(n.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function CR(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:s=>(t.helpers.add(s),s)}}function Z1(n,e){for(let t=0;tQ1(t)),n}function Q1(n){if(n.items.length===1){const e=n.items[0];(e.type===3||e.type===9)&&(n.static=e.value,delete e.value)}else{const e=[];for(let t=0;tl;function c(m,v){l.code+=m}function u(m,v=!0){const w=v?o:"";c(s?w+" ".repeat(m):w)}function d(m=!0){const v=++l.indentLevel;m&&u(v)}function f(m=!0){const v=--l.indentLevel;m&&u(v)}function h(){u(l.indentLevel)}return{context:a,push:c,indent:d,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>l.needIndent}}function OR(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),oc(n,e.key),e.modifier?(n.push(", "),oc(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function MR(n,e){const{helper:t,needIndent:r}=n;n.push(`${t("normalize")}([`),n.indent(r());const o=e.items.length;for(let s=0;s1){n.push(`${t("plural")}([`),n.indent(r());const o=e.cases.length;for(let s=0;s{const t=J1(e.mode)?e.mode:"normal",r=J1(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,s=e.breakLineCode!=null?e.breakLineCode:t==="arrow"?";":` -`,i=e.needIndent?e.needIndent:t!=="arrow",l=n.helpers||[],a=TR(n,{mode:t,filename:r,sourceMap:o,breakLineCode:s,needIndent:i});a.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),l.length>0&&(a.push(`const { ${u_(l.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),oc(a,n),a.deindent(i),a.push("}"),delete n.helpers;const{code:c,map:u}=a.context();return{ast:n,code:c,map:u?u.toJSON():void 0}};function NR(n,e={}){const t=c_({},e),r=!!t.jit,o=!!t.minify,s=t.optimize==null?!0:t.optimize,l=wR(t).parse(n);return r?(s&&SR(l),o&&Ia(l),{ast:l,code:""}):(xR(l,t),PR(l,t))}/*! - * core-base v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function IR(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fs().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Fs().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Fs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const fl=[];fl[0]={w:[0],i:[3,0],"[":[4],o:[7]};fl[1]={w:[1],".":[2],"[":[4],o:[7]};fl[2]={w:[2],i:[3,0],0:[3,0]};fl[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};fl[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};fl[5]={"'":[4,0],o:8,l:[5,0]};fl[6]={'"':[4,0],o:8,l:[6,0]};const LR=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function RR(n){return LR.test(n)}function $R(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function DR(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function VR(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:RR(e)?$R(e):"*"+e}function BR(n){const e=[];let t=-1,r=0,o=0,s,i,l,a,c,u,d;const f=[];f[0]=()=>{i===void 0?i=l:i+=l},f[1]=()=>{i!==void 0&&(e.push(i),i=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,r=4,f[0]();else{if(o=0,i===void 0||(i=VR(i),i===!1))return!1;f[1]()}};function h(){const p=n[t+1];if(r===5&&p==="'"||r===6&&p==='"')return t++,l="\\"+p,f[0](),!0}for(;r!==null;)if(t++,s=n[t],!(s==="\\"&&h())){if(a=DR(s),d=fl[r],c=d[a]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(l=s,u()===!1))))return;if(r===7)return e}}const ew=new Map;function FR(n,e){return Lt(n)?n[e]:null}function zR(n,e){if(!Lt(n))return null;let t=ew.get(e);if(t||(t=BR(e),t&&ew.set(e,t)),!t)return null;const r=t.length;let o=n,s=0;for(;sn,HR=n=>"",UR="text",WR=n=>n.length===0?"":tR(n),GR=eR;function tw(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function qR(n){const e=An(n.pluralIndex)?n.pluralIndex:-1;return n.named&&(An(n.named.count)||An(n.named.n))?An(n.named.count)?n.named.count:An(n.named.n)?n.named.n:e:e}function KR(n,e){e.count||(e.count=n),e.n||(e.n=n)}function YR(n={}){const e=n.locale,t=qR(n),r=Lt(n.pluralRules)&&He(e)&&Yt(n.pluralRules[e])?n.pluralRules[e]:tw,o=Lt(n.pluralRules)&&He(e)&&Yt(n.pluralRules[e])?tw:void 0,s=v=>v[r(t,v.length,o)],i=n.list||[],l=v=>i[v],a=n.named||{};An(n.pluralIndex)&&KR(t,a);const c=v=>a[v];function u(v){const w=Yt(n.messages)?n.messages(v):Lt(n.messages)?n.messages[v]:!1;return w||(n.parent?n.parent.message(v):HR)}const d=v=>n.modifiers?n.modifiers[v]:jR,f=mt(n.processor)&&Yt(n.processor.normalize)?n.processor.normalize:WR,h=mt(n.processor)&&Yt(n.processor.interpolate)?n.processor.interpolate:GR,p=mt(n.processor)&&He(n.processor.type)?n.processor.type:UR,m={list:l,named:c,plural:s,linked:(v,...w)=>{const[b,y]=w;let x="text",E="";w.length===1?Lt(b)?(E=b.modifier||E,x=b.type||x):He(b)&&(E=b||E):w.length===2&&(He(b)&&(E=b||E),He(y)&&(x=y||x));const T=u(v)(m),M=x==="vnode"&&en(T)&&E?T[0]:T;return E?d(E)(M,x):M},message:u,type:p,interpolate:h,normalize:f,values:Qn({},i,a)};return m}let id=null;function JR(n){id=n}function XR(n,e,t){id&&id.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const ZR=QR("function:translate");function QR(n){return e=>id&&id.emit(n,e)}const d_=ty.__EXTEND_POINT__,Al=Dp(d_),e$={NOT_FOUND_KEY:d_,FALLBACK_TO_TRANSLATE:Al(),CANNOT_FORMAT_NUMBER:Al(),FALLBACK_TO_NUMBER_FORMAT:Al(),CANNOT_FORMAT_DATE:Al(),FALLBACK_TO_DATE_FORMAT:Al(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Al(),__EXTEND_POINT__:Al()},f_=ut.__EXTEND_POINT__,kl=Dp(f_),Io={INVALID_ARGUMENT:f_,INVALID_DATE_ARGUMENT:kl(),INVALID_ISO_DATE_ARGUMENT:kl(),NOT_SUPPORT_NON_STRING_MESSAGE:kl(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:kl(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:kl(),NOT_SUPPORT_LOCALE_TYPE:kl(),__EXTEND_POINT__:kl()};function ss(n){return Uc(n,null,void 0)}function ry(n,e){return e.locale!=null?nw(e.locale):nw(n.locale)}let Jg;function nw(n){if(He(n))return n;if(Yt(n)){if(n.resolvedOnce&&Jg!=null)return Jg;if(n.constructor.name==="Function"){const e=n();if(Q3(e))throw ss(Io.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Jg=e}else throw ss(Io.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ss(Io.NOT_SUPPORT_LOCALE_TYPE)}function t$(n,e,t){return[...new Set([t,...en(e)?e:Lt(e)?Object.keys(e):He(e)?[e]:[t]])]}function h_(n,e,t){const r=He(t)?t:sc,o=n;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[t];for(;en(i);)i=rw(s,i,e);const l=en(e)||!mt(e)?e:e.default?e.default:null;i=He(l)?[l]:l,en(i)&&rw(s,i,!1),o.__localeChainCache.set(r,s)}return s}function rw(n,e,t){let r=!0;for(let o=0;o`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function s$(){return{upper:(n,e)=>e==="text"&&He(n)?n.toUpperCase():e==="vnode"&&Lt(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&He(n)?n.toLowerCase():e==="vnode"&&Lt(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&He(n)?sw(n):e==="vnode"&&Lt(n)&&"__v_isVNode"in n?sw(n.children):n}}let p_;function iw(n){p_=n}let g_;function i$(n){g_=n}let m_;function l$(n){m_=n}let v_=null;const a$=n=>{v_=n},c$=()=>v_;let b_=null;const lw=n=>{b_=n},u$=()=>b_;let aw=0;function d$(n={}){const e=Yt(n.onWarn)?n.onWarn:nR,t=He(n.version)?n.version:o$,r=He(n.locale)||Yt(n.locale)?n.locale:sc,o=Yt(r)?sc:r,s=en(n.fallbackLocale)||mt(n.fallbackLocale)||He(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o,i=mt(n.messages)?n.messages:{[o]:{}},l=mt(n.datetimeFormats)?n.datetimeFormats:{[o]:{}},a=mt(n.numberFormats)?n.numberFormats:{[o]:{}},c=Qn({},n.modifiers||{},s$()),u=n.pluralRules||{},d=Yt(n.missing)?n.missing:null,f=Mt(n.missingWarn)||Qi(n.missingWarn)?n.missingWarn:!0,h=Mt(n.fallbackWarn)||Qi(n.fallbackWarn)?n.fallbackWarn:!0,p=!!n.fallbackFormat,g=!!n.unresolving,m=Yt(n.postTranslation)?n.postTranslation:null,v=mt(n.processor)?n.processor:null,w=Mt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,b=!!n.escapeParameter,y=Yt(n.messageCompiler)?n.messageCompiler:p_,x=Yt(n.messageResolver)?n.messageResolver:g_||FR,E=Yt(n.localeFallbacker)?n.localeFallbacker:m_||t$,T=Lt(n.fallbackContext)?n.fallbackContext:void 0,M=n,O=Lt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,k=Lt(M.__numberFormatters)?M.__numberFormatters:new Map,P=Lt(M.__meta)?M.__meta:{};aw++;const L={version:t,cid:aw,locale:r,fallbackLocale:s,messages:i,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:m,processor:v,warnHtmlMessage:w,escapeParameter:b,messageCompiler:y,messageResolver:x,localeFallbacker:E,fallbackContext:T,onWarn:e,__meta:P};return L.datetimeFormats=l,L.numberFormats=a,L.__datetimeFormatters=O,L.__numberFormatters=k,__INTLIFY_PROD_DEVTOOLS__&&XR(L,t,P),L}function oy(n,e,t,r,o){const{missing:s,onWarn:i}=n;if(s!==null){const l=s(n,t,e,o);return He(l)?l:e}else return e}function lu(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function f$(n,e){return n===e?!1:n.split("-")[0]===e.split("-")[0]}function h$(n,e){const t=e.indexOf(n);if(t===-1)return!1;for(let r=t+1;rp$(t,n)}function p$(n,e){const t=e.b||e.body;if((t.t||t.type)===1){const r=t,o=r.c||r.cases;return n.plural(o.reduce((s,i)=>[...s,cw(n,i)],[]))}else return cw(n,t)}function cw(n,e){const t=e.s||e.static;if(t)return n.type==="text"?t:n.normalize([t]);{const r=(e.i||e.items).reduce((o,s)=>[...o,ov(n,s)],[]);return n.normalize(r)}}function ov(n,e){const t=e.t||e.type;switch(t){case 3:{const r=e;return r.v||r.value}case 9:{const r=e;return r.v||r.value}case 4:{const r=e;return n.interpolate(n.named(r.k||r.key))}case 5:{const r=e;return n.interpolate(n.list(r.i!=null?r.i:r.index))}case 6:{const r=e,o=r.m||r.modifier;return n.linked(ov(n,r.k||r.key),o?ov(n,o):void 0,n.type)}case 7:{const r=e;return r.v||r.value}case 8:{const r=e;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${t}`)}}const y_=n=>n;let Ba=Object.create(null);const ic=n=>Lt(n)&&(n.t===0||n.type===0)&&("b"in n||"body"in n);function w_(n,e={}){let t=!1;const r=e.onError||cR;return e.onError=o=>{t=!0,r(o)},{...NR(n,e),detectError:t}}const g$=(n,e)=>{if(!He(n))throw ss(Io.NOT_SUPPORT_NON_STRING_MESSAGE);{Mt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||y_)(n),o=Ba[r];if(o)return o;const{code:s,detectError:i}=w_(n,e),l=new Function(`return ${s}`)();return i?l:Ba[r]=l}};function m$(n,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&He(n)){Mt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||y_)(n),o=Ba[r];if(o)return o;const{ast:s,detectError:i}=w_(n,{...e,location:!1,jit:!0}),l=Xg(s);return i?l:Ba[r]=l}else{const t=n.cacheKey;if(t){const r=Ba[t];return r||(Ba[t]=Xg(n))}else return Xg(n)}}const uw=()=>"",ro=n=>Yt(n);function dw(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:l}=n,[a,c]=sv(...e),u=Mt(c.missingWarn)?c.missingWarn:n.missingWarn,d=Mt(c.fallbackWarn)?c.fallbackWarn:n.fallbackWarn,f=Mt(c.escapeParameter)?c.escapeParameter:n.escapeParameter,h=!!c.resolvedMessage,p=He(c.default)||Mt(c.default)?Mt(c.default)?s?a:()=>a:c.default:t?s?a:()=>a:"",g=t||p!=="",m=ry(n,c);f&&v$(c);let[v,w,b]=h?[a,m,l[m]||{}]:C_(n,a,m,i,d,u),y=v,x=a;if(!h&&!(He(y)||ic(y)||ro(y))&&g&&(y=p,x=y),!h&&(!(He(y)||ic(y)||ro(y))||!He(w)))return o?Vp:a;let E=!1;const T=()=>{E=!0},M=ro(y)?y:x_(n,a,w,y,x,T);if(E)return y;const O=w$(n,w,b,c),k=YR(O),P=b$(n,M,k),L=r?r(P,a):P;if(__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:He(a)?a:ro(y)?y.key:"",locale:w||(ro(y)?y.locale:""),format:He(y)?y:ro(y)?y.source:"",message:L};j.meta=Qn({},n.__meta,c$()||{}),ZR(j)}return L}function v$(n){en(n.list)?n.list=n.list.map(e=>He(e)?Y1(e):e):Lt(n.named)&&Object.keys(n.named).forEach(e=>{He(n.named[e])&&(n.named[e]=Y1(n.named[e]))})}function C_(n,e,t,r,o,s){const{messages:i,onWarn:l,messageResolver:a,localeFallbacker:c}=n,u=c(n,r,t);let d={},f,h=null;const p="translate";for(let g=0;gr;return c.locale=t,c.key=e,c}const a=i(r,y$(n,t,o,r,l,s));return a.locale=t,a.key=e,a.source=r,a}function b$(n,e,t){return e(t)}function sv(...n){const[e,t,r]=n,o={};if(!He(e)&&!An(e)&&!ro(e)&&!ic(e))throw ss(Io.INVALID_ARGUMENT);const s=An(e)?String(e):(ro(e),e);return An(t)?o.plural=t:He(t)?o.default=t:mt(t)&&!$p(t)?o.named=t:en(t)&&(o.list=t),An(r)?o.plural=r:He(r)?o.default=r:mt(r)&&Qn(o,r),[s,o]}function y$(n,e,t,r,o,s){return{locale:e,key:t,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>Y3(e,t,i)}}function w$(n,e,t,r){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:l,fallbackWarn:a,missingWarn:c,fallbackContext:u}=n,f={locale:e,modifiers:o,pluralRules:s,messages:h=>{let p=i(t,h);if(p==null&&u){const[,,g]=C_(u,h,e,l,a,c);p=i(g,h)}if(He(p)||ic(p)){let g=!1;const v=x_(n,h,e,p,h,()=>{g=!0});return g?uw:v}else return ro(p)?p:uw}};return n.processor&&(f.processor=n.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),An(r.plural)&&(f.pluralIndex=r.plural),f}function fw(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=n,{__datetimeFormatters:l}=n,[a,c,u,d]=iv(...e),f=Mt(u.missingWarn)?u.missingWarn:n.missingWarn;Mt(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn;const h=!!u.part,p=ry(n,u),g=i(n,o,p);if(!He(a)||a==="")return new Intl.DateTimeFormat(p,d).format(c);let m={},v,w=null;const b="datetime format";for(let E=0;E{S_.includes(a)?i[a]=t[a]:s[a]=t[a]}),He(r)?s.locale=r:mt(r)&&(i=r),mt(o)&&(i=o),[s.key||"",l,s,i]}function hw(n,e,t){const r=n;for(const o in t){const s=`${e}__${o}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function pw(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=n,{__numberFormatters:l}=n,[a,c,u,d]=lv(...e),f=Mt(u.missingWarn)?u.missingWarn:n.missingWarn;Mt(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn;const h=!!u.part,p=ry(n,u),g=i(n,o,p);if(!He(a)||a==="")return new Intl.NumberFormat(p,d).format(c);let m={},v,w=null;const b="number format";for(let E=0;E{E_.includes(a)?i[a]=t[a]:s[a]=t[a]}),He(r)?s.locale=r:mt(r)&&(i=r),mt(o)&&(i=o),[s.key||"",l,s,i]}function gw(n,e,t){const r=n;for(const o in t){const s=`${e}__${o}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}IR();/*! - * vue-i18n v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const C$="9.13.1";function x$(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Fs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Fs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Fs().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Fs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fs().__INTLIFY_PROD_DEVTOOLS__=!1)}const __=e$.__EXTEND_POINT__,Ps=Dp(__);Ps(),Ps(),Ps(),Ps(),Ps(),Ps(),Ps(),Ps(),Ps();const T_=Io.__EXTEND_POINT__,Sr=Dp(T_),kn={UNEXPECTED_RETURN_TYPE:T_,INVALID_ARGUMENT:Sr(),MUST_BE_CALL_SETUP_TOP:Sr(),NOT_INSTALLED:Sr(),NOT_AVAILABLE_IN_LEGACY_MODE:Sr(),REQUIRED_VALUE:Sr(),INVALID_VALUE:Sr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Sr(),NOT_INSTALLED_WITH_PROVIDE:Sr(),UNEXPECTED_ERROR:Sr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Sr(),BRIDGE_SUPPORT_VUE_2_ONLY:Sr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Sr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Sr(),__EXTEND_POINT__:Sr()};function Vn(n,...e){return Uc(n,null,void 0)}const av=dl("__translateVNode"),cv=dl("__datetimeParts"),uv=dl("__numberParts"),O_=dl("__setPluralRules"),M_=dl("__injectWithOption"),dv=dl("__dispose");function ld(n){if(!Lt(n))return n;for(const e in n)if(Nh(n,e))if(!e.includes("."))Lt(n[e])&&ld(n[e]);else{const t=e.split("."),r=t.length-1;let o=n,s=!1;for(let i=0;i{if("locale"in l&&"resource"in l){const{locale:a,resource:c}=l;a?(i[a]=i[a]||{},lh(c,i[a])):lh(c,i)}else He(l)&&lh(JSON.parse(l),i)}),o==null&&s)for(const l in i)Nh(i,l)&&ld(i[l]);return i}function A_(n){return n.type}function k_(n,e,t){let r=Lt(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=Bp(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{n.mergeLocaleMessage(s,r[s])});{if(Lt(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(i=>{n.mergeDateTimeFormat(i,e.datetimeFormats[i])})}if(Lt(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(i=>{n.mergeNumberFormat(i,e.numberFormats[i])})}}}function mw(n){return C(ya,null,n,0)}const vw="__INTLIFY_META__",bw=()=>[],S$=()=>!1;let yw=0;function ww(n){return(e,t,r,o)=>n(t,r,bt()||void 0,o)}const E$=()=>{const n=bt();let e=null;return n&&(e=A_(n)[vw])?{[vw]:e}:null};function sy(n={},e){const{__root:t,__injectWithOption:r}=n,o=t===void 0,s=n.flatJson,i=Ph?D:$o,l=!!n.translateExistCompatible;let a=Mt(n.inheritLocale)?n.inheritLocale:!0;const c=i(t&&a?t.locale.value:He(n.locale)?n.locale:sc),u=i(t&&a?t.fallbackLocale.value:He(n.fallbackLocale)||en(n.fallbackLocale)||mt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:c.value),d=i(Bp(c.value,n)),f=i(mt(n.datetimeFormats)?n.datetimeFormats:{[c.value]:{}}),h=i(mt(n.numberFormats)?n.numberFormats:{[c.value]:{}});let p=t?t.missingWarn:Mt(n.missingWarn)||Qi(n.missingWarn)?n.missingWarn:!0,g=t?t.fallbackWarn:Mt(n.fallbackWarn)||Qi(n.fallbackWarn)?n.fallbackWarn:!0,m=t?t.fallbackRoot:Mt(n.fallbackRoot)?n.fallbackRoot:!0,v=!!n.fallbackFormat,w=Yt(n.missing)?n.missing:null,b=Yt(n.missing)?ww(n.missing):null,y=Yt(n.postTranslation)?n.postTranslation:null,x=t?t.warnHtmlMessage:Mt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,E=!!n.escapeParameter;const T=t?t.modifiers:mt(n.modifiers)?n.modifiers:{};let M=n.pluralRules||t&&t.pluralRules,O;O=(()=>{o&&lw(null);const ne={version:C$,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:T,pluralRules:M,missing:b===null?void 0:b,missingWarn:p,fallbackWarn:g,fallbackFormat:v,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:x,escapeParameter:E,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};ne.datetimeFormats=f.value,ne.numberFormats=h.value,ne.__datetimeFormatters=mt(O)?O.__datetimeFormatters:void 0,ne.__numberFormatters=mt(O)?O.__numberFormatters:void 0;const de=d$(ne);return o&&lw(de),de})(),lu(O,c.value,u.value);function P(){return[c.value,u.value,d.value,f.value,h.value]}const L=z({get:()=>c.value,set:ne=>{c.value=ne,O.locale=c.value}}),j=z({get:()=>u.value,set:ne=>{u.value=ne,O.fallbackLocale=u.value,lu(O,c.value,ne)}}),ce=z(()=>d.value),R=z(()=>f.value),$=z(()=>h.value);function q(){return Yt(y)?y:null}function U(ne){y=ne,O.postTranslation=ne}function W(){return w}function Z(ne){ne!==null&&(b=ww(ne)),w=ne,O.missing=b}const le=(ne,de,We,Ze,Ie,qe)=>{P();let he;try{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=t?u$():void 0),he=ne(O)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=void 0)}if(We!=="translate exists"&&An(he)&&he===Vp||We==="translate exists"&&!he){const[Y,ie]=de();return t&&m?Ze(t):Ie(Y)}else{if(qe(he))return he;throw Vn(kn.UNEXPECTED_RETURN_TYPE)}};function ee(...ne){return le(de=>Reflect.apply(dw,null,[de,...ne]),()=>sv(...ne),"translate",de=>Reflect.apply(de.t,de,[...ne]),de=>de,de=>He(de))}function Me(...ne){const[de,We,Ze]=ne;if(Ze&&!Lt(Ze))throw Vn(kn.INVALID_ARGUMENT);return ee(de,We,Qn({resolvedMessage:!0},Ze||{}))}function ge(...ne){return le(de=>Reflect.apply(fw,null,[de,...ne]),()=>iv(...ne),"datetime format",de=>Reflect.apply(de.d,de,[...ne]),()=>ow,de=>He(de))}function be(...ne){return le(de=>Reflect.apply(pw,null,[de,...ne]),()=>lv(...ne),"number format",de=>Reflect.apply(de.n,de,[...ne]),()=>ow,de=>He(de))}function Te(ne){return ne.map(de=>He(de)||An(de)||Mt(de)?mw(String(de)):de)}const ae={normalize:Te,interpolate:ne=>ne,type:"vnode"};function te(...ne){return le(de=>{let We;const Ze=de;try{Ze.processor=ae,We=Reflect.apply(dw,null,[Ze,...ne])}finally{Ze.processor=null}return We},()=>sv(...ne),"translate",de=>de[av](...ne),de=>[mw(de)],de=>en(de))}function ve(...ne){return le(de=>Reflect.apply(pw,null,[de,...ne]),()=>lv(...ne),"number format",de=>de[uv](...ne),bw,de=>He(de)||en(de))}function Oe(...ne){return le(de=>Reflect.apply(fw,null,[de,...ne]),()=>iv(...ne),"datetime format",de=>de[cv](...ne),bw,de=>He(de)||en(de))}function Ye(ne){M=ne,O.pluralRules=M}function I(ne,de){return le(()=>{if(!ne)return!1;const We=He(de)?de:c.value,Ze=pe(We),Ie=O.messageResolver(Ze,ne);return l?Ie!=null:ic(Ie)||ro(Ie)||He(Ie)},()=>[ne],"translate exists",We=>Reflect.apply(We.te,We,[ne,de]),S$,We=>Mt(We))}function N(ne){let de=null;const We=h_(O,u.value,c.value);for(let Ze=0;Ze{a&&(c.value=ne,O.locale=ne,lu(O,c.value,u.value))}),Be(t.fallbackLocale,ne=>{a&&(u.value=ne,O.fallbackLocale=ne,lu(O,c.value,u.value))}));const se={id:yw,locale:L,fallbackLocale:j,get inheritLocale(){return a},set inheritLocale(ne){a=ne,ne&&t&&(c.value=t.locale.value,u.value=t.fallbackLocale.value,lu(O,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:ce,get modifiers(){return T},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return p},set missingWarn(ne){p=ne,O.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(ne){g=ne,O.fallbackWarn=g},get fallbackRoot(){return m},set fallbackRoot(ne){m=ne},get fallbackFormat(){return v},set fallbackFormat(ne){v=ne,O.fallbackFormat=v},get warnHtmlMessage(){return x},set warnHtmlMessage(ne){x=ne,O.warnHtmlMessage=ne},get escapeParameter(){return E},set escapeParameter(ne){E=ne,O.escapeParameter=ne},t:ee,getLocaleMessage:pe,setLocaleMessage:fe,mergeLocaleMessage:_e,getPostTranslationHandler:q,setPostTranslationHandler:U,getMissingHandler:W,setMissingHandler:Z,[O_]:Ye};return se.datetimeFormats=R,se.numberFormats=$,se.rt=Me,se.te=I,se.tm=X,se.d=ge,se.n=be,se.getDateTimeFormat=xe,se.setDateTimeFormat=V,se.mergeDateTimeFormat=B,se.getNumberFormat=J,se.setNumberFormat=ue,se.mergeNumberFormat=Pe,se[M_]=r,se[av]=te,se[cv]=Oe,se[uv]=ve,se}function _$(n){const e=He(n.locale)?n.locale:sc,t=He(n.fallbackLocale)||en(n.fallbackLocale)||mt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=Yt(n.missing)?n.missing:void 0,o=Mt(n.silentTranslationWarn)||Qi(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,s=Mt(n.silentFallbackWarn)||Qi(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,i=Mt(n.fallbackRoot)?n.fallbackRoot:!0,l=!!n.formatFallbackMessages,a=mt(n.modifiers)?n.modifiers:{},c=n.pluralizationRules,u=Yt(n.postTranslation)?n.postTranslation:void 0,d=He(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,f=!!n.escapeParameterHtml,h=Mt(n.sync)?n.sync:!0;let p=n.messages;if(mt(n.sharedMessages)){const E=n.sharedMessages;p=Object.keys(E).reduce((M,O)=>{const k=M[O]||(M[O]={});return Qn(k,E[O]),M},p||{})}const{__i18n:g,__root:m,__injectWithOption:v}=n,w=n.datetimeFormats,b=n.numberFormats,y=n.flatJson,x=n.translateExistCompatible;return{locale:e,fallbackLocale:t,messages:p,flatJson:y,datetimeFormats:w,numberFormats:b,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:i,fallbackFormat:l,modifiers:a,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:n.messageResolver,inheritLocale:h,translateExistCompatible:x,__i18n:g,__root:m,__injectWithOption:v}}function fv(n={},e){{const t=sy(_$(n)),{__extender:r}=n,o={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(s){},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return Mt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=Mt(s)?!s:s},get silentFallbackWarn(){return Mt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=Mt(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(s){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){const[i,l,a]=s,c={};let u=null,d=null;if(!He(i))throw Vn(kn.INVALID_ARGUMENT);const f=i;return He(l)?c.locale=l:en(l)?u=l:mt(l)&&(d=l),en(a)?u=a:mt(a)&&(d=a),Reflect.apply(t.t,t,[f,u||d||{},c])},rt(...s){return Reflect.apply(t.rt,t,[...s])},tc(...s){const[i,l,a]=s,c={plural:1};let u=null,d=null;if(!He(i))throw Vn(kn.INVALID_ARGUMENT);const f=i;return He(l)?c.locale=l:An(l)?c.plural=l:en(l)?u=l:mt(l)&&(d=l),He(a)?c.locale=a:en(a)?u=a:mt(a)&&(d=a),Reflect.apply(t.t,t,[f,u||d||{},c])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)},getChoiceIndex(s,i){return-1}};return o.__extender=r,o}}const iy={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function T$({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,o)=>[...r,...o.type===Re?o.children:[o]],[]):e.reduce((t,r)=>{const o=n[r];return o&&(t[r]=o()),t},{})}function P_(n){return Re}const O$=me({name:"i18n-t",props:Qn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>An(n)||!isNaN(n)}},iy),setup(n,e){const{slots:t,attrs:r}=e,o=n.i18n||rn({useScope:n.scope,__useComponent:!0});return()=>{const s=Object.keys(t).filter(d=>d!=="_"),i={};n.locale&&(i.locale=n.locale),n.plural!==void 0&&(i.plural=He(n.plural)?+n.plural:n.plural);const l=T$(e,s),a=o[av](n.keypath,l,i),c=Qn({},r),u=He(n.tag)||Lt(n.tag)?n.tag:P_();return et(u,c,a)}}}),Cw=O$;function M$(n){return en(n)&&!He(n[0])}function N_(n,e,t,r){const{slots:o,attrs:s}=e;return()=>{const i={part:!0};let l={};n.locale&&(i.locale=n.locale),He(n.format)?i.key=n.format:Lt(n.format)&&(He(n.format.key)&&(i.key=n.format.key),l=Object.keys(n.format).reduce((f,h)=>t.includes(h)?Qn({},f,{[h]:n.format[h]}):f,{}));const a=r(n.value,i,l);let c=[i.key];en(a)?c=a.map((f,h)=>{const p=o[f.type],g=p?p({[f.type]:f.value,index:h,parts:a}):[f.value];return M$(g)&&(g[0].key=`${f.type}-${h}`),g}):He(a)&&(c=[a]);const u=Qn({},s),d=He(n.tag)||Lt(n.tag)?n.tag:P_();return et(d,u,c)}}const A$=me({name:"i18n-n",props:Qn({value:{type:Number,required:!0},format:{type:[String,Object]}},iy),setup(n,e){const t=n.i18n||rn({useScope:n.scope,__useComponent:!0});return N_(n,e,E_,(...r)=>t[uv](...r))}}),xw=A$,k$=me({name:"i18n-d",props:Qn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},iy),setup(n,e){const t=n.i18n||rn({useScope:n.scope,__useComponent:!0});return N_(n,e,S_,(...r)=>t[cv](...r))}}),Sw=k$;function P$(n,e){const t=n;if(n.mode==="composition")return t.__getInstance(e)||n.global;{const r=t.__getInstance(e);return r!=null?r.__composer:n.global.__composer}}function N$(n){const e=i=>{const{instance:l,modifiers:a,value:c}=i;if(!l||!l.$)throw Vn(kn.UNEXPECTED_ERROR);const u=P$(n,l.$),d=Ew(c);return[Reflect.apply(u.t,u,[..._w(d)]),u]};return{created:(i,l)=>{const[a,c]=e(l);Ph&&n.global===c&&(i.__i18nWatcher=Be(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=c,i.textContent=a},unmounted:i=>{Ph&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:l})=>{if(i.__composer){const a=i.__composer,c=Ew(l);i.textContent=Reflect.apply(a.t,a,[..._w(c)])}},getSSRProps:i=>{const[l]=e(i);return{textContent:l}}}}function Ew(n){if(He(n))return{path:n};if(mt(n)){if(!("path"in n))throw Vn(kn.REQUIRED_VALUE,"path");return n}else throw Vn(kn.INVALID_VALUE)}function _w(n){const{path:e,locale:t,args:r,choice:o,plural:s}=n,i={},l=r||{};return He(t)&&(i.locale=t),An(o)&&(i.plural=o),An(s)&&(i.plural=s),[e,l,i]}function I$(n,e,...t){const r=mt(t[0])?t[0]:{},o=!!r.useI18nComponentName;(Mt(r.globalInstall)?r.globalInstall:!0)&&([o?"i18n":Cw.name,"I18nT"].forEach(i=>n.component(i,Cw)),[xw.name,"I18nN"].forEach(i=>n.component(i,xw)),[Sw.name,"I18nD"].forEach(i=>n.component(i,Sw))),n.directive("t",N$(e))}function L$(n,e,t){return{beforeCreate(){const r=bt();if(!r)throw Vn(kn.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=e,this===this.$root)this.$i18n=Tw(n,s);else{s.__injectWithOption=!0,s.__extender=t.__vueI18nExtend,this.$i18n=fv(s);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Tw(n,o);else{this.$i18n=fv({__i18n:o.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:e});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=n;o.__i18nGlobal&&k_(e,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,i)=>this.$i18n.te(s,i),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),t.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=bt();if(!r)throw Vn(kn.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),t.__deleteInstance(r),delete this.$i18n}}}function Tw(n,e){n.locale=e.locale||n.locale,n.fallbackLocale=e.fallbackLocale||n.fallbackLocale,n.missing=e.missing||n.missing,n.silentTranslationWarn=e.silentTranslationWarn||n.silentFallbackWarn,n.silentFallbackWarn=e.silentFallbackWarn||n.silentFallbackWarn,n.formatFallbackMessages=e.formatFallbackMessages||n.formatFallbackMessages,n.postTranslation=e.postTranslation||n.postTranslation,n.warnHtmlInMessage=e.warnHtmlInMessage||n.warnHtmlInMessage,n.escapeParameterHtml=e.escapeParameterHtml||n.escapeParameterHtml,n.sync=e.sync||n.sync,n.__composer[O_](e.pluralizationRules||n.pluralizationRules);const t=Bp(n.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(t).forEach(r=>n.mergeLocaleMessage(r,t[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>n.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>n.mergeNumberFormat(r,e.numberFormats[r])),n}const R$=dl("global-vue-i18n");function $$(n={},e){const t=__VUE_I18N_LEGACY_API__&&Mt(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__,r=Mt(n.globalInjection)?n.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&t?!!n.allowComposition:!0,s=new Map,[i,l]=D$(n,t),a=dl("");function c(f){return s.get(f)||null}function u(f,h){s.set(f,h)}function d(f){s.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},get allowComposition(){return o},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=a,h.provide(h.__VUE_I18N_SYMBOL__,f),mt(p[0])){const v=p[0];f.__composerExtend=v.__composerExtend,f.__vueI18nExtend=v.__vueI18nExtend}let g=null;!t&&r&&(g=G$(h,f.global)),__VUE_I18N_FULL_INSTALL__&&I$(h,f,...p),__VUE_I18N_LEGACY_API__&&t&&h.mixin(L$(l,l.__composer,f));const m=h.unmount;h.unmount=()=>{g&&g(),f.dispose(),m()}},get global(){return l},dispose(){i.stop()},__instances:s,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function rn(n={}){const e=bt();if(e==null)throw Vn(kn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Vn(kn.NOT_INSTALLED);const t=V$(e),r=F$(t),o=A_(e),s=B$(n,o);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!n.__useComponent){if(!t.allowComposition)throw Vn(kn.NOT_AVAILABLE_IN_LEGACY_MODE);return U$(e,s,r,n)}if(s==="global")return k_(r,n,o),r;if(s==="parent"){let a=z$(t,e,n.__useComponent);return a==null&&(a=r),a}const i=t;let l=i.__getInstance(e);if(l==null){const a=Qn({},n);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),l=sy(a),i.__composerExtend&&(l[dv]=i.__composerExtend(l)),H$(i,e,l),i.__setInstance(e,l)}return l}function D$(n,e,t){const r=BE();{const o=__VUE_I18N_LEGACY_API__&&e?r.run(()=>fv(n)):r.run(()=>sy(n));if(o==null)throw Vn(kn.UNEXPECTED_ERROR);return[r,o]}}function V$(n){{const e=Fe(n.isCE?R$:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Vn(n.isCE?kn.NOT_INSTALLED_WITH_PROVIDE:kn.UNEXPECTED_ERROR);return e}}function B$(n,e){return $p(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function F$(n){return n.mode==="composition"?n.global:n.global.__composer}function z$(n,e,t=!1){let r=null;const o=e.root;let s=j$(e,t);for(;s!=null;){const i=n;if(n.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(s);l!=null&&(r=l.__composer,t&&r&&!r[M_]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function j$(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function H$(n,e,t){ot(()=>{},e),ws(()=>{const r=t;n.__deleteInstance(e);const o=r[dv];o&&(o(),delete r[dv])},e)}function U$(n,e,t,r={}){const o=e==="local",s=$o(null);if(o&&n.proxy&&!(n.proxy.$options.i18n||n.proxy.$options.__i18n))throw Vn(kn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Mt(r.inheritLocale)?r.inheritLocale:!He(r.locale),l=D(!o||i?t.locale.value:He(r.locale)?r.locale:sc),a=D(!o||i?t.fallbackLocale.value:He(r.fallbackLocale)||en(r.fallbackLocale)||mt(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),c=D(Bp(l.value,r)),u=D(mt(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),d=D(mt(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=o?t.missingWarn:Mt(r.missingWarn)||Qi(r.missingWarn)?r.missingWarn:!0,h=o?t.fallbackWarn:Mt(r.fallbackWarn)||Qi(r.fallbackWarn)?r.fallbackWarn:!0,p=o?t.fallbackRoot:Mt(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,m=Yt(r.missing)?r.missing:null,v=Yt(r.postTranslation)?r.postTranslation:null,w=o?t.warnHtmlMessage:Mt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,y=o?t.modifiers:mt(r.modifiers)?r.modifiers:{},x=r.pluralRules||o&&t.pluralRules;function E(){return[l.value,a.value,c.value,u.value,d.value]}const T=z({get:()=>s.value?s.value.locale.value:l.value,set:N=>{s.value&&(s.value.locale.value=N),l.value=N}}),M=z({get:()=>s.value?s.value.fallbackLocale.value:a.value,set:N=>{s.value&&(s.value.fallbackLocale.value=N),a.value=N}}),O=z(()=>s.value?s.value.messages.value:c.value),k=z(()=>u.value),P=z(()=>d.value);function L(){return s.value?s.value.getPostTranslationHandler():v}function j(N){s.value&&s.value.setPostTranslationHandler(N)}function ce(){return s.value?s.value.getMissingHandler():m}function R(N){s.value&&s.value.setMissingHandler(N)}function $(N){return E(),N()}function q(...N){return s.value?$(()=>Reflect.apply(s.value.t,null,[...N])):$(()=>"")}function U(...N){return s.value?Reflect.apply(s.value.rt,null,[...N]):""}function W(...N){return s.value?$(()=>Reflect.apply(s.value.d,null,[...N])):$(()=>"")}function Z(...N){return s.value?$(()=>Reflect.apply(s.value.n,null,[...N])):$(()=>"")}function le(N){return s.value?s.value.tm(N):{}}function ee(N,X){return s.value?s.value.te(N,X):!1}function Me(N){return s.value?s.value.getLocaleMessage(N):{}}function ge(N,X){s.value&&(s.value.setLocaleMessage(N,X),c.value[N]=X)}function be(N,X){s.value&&s.value.mergeLocaleMessage(N,X)}function Te(N){return s.value?s.value.getDateTimeFormat(N):{}}function re(N,X){s.value&&(s.value.setDateTimeFormat(N,X),u.value[N]=X)}function ae(N,X){s.value&&s.value.mergeDateTimeFormat(N,X)}function te(N){return s.value?s.value.getNumberFormat(N):{}}function ve(N,X){s.value&&(s.value.setNumberFormat(N,X),d.value[N]=X)}function Oe(N,X){s.value&&s.value.mergeNumberFormat(N,X)}const Ye={get id(){return s.value?s.value.id:-1},locale:T,fallbackLocale:M,messages:O,datetimeFormats:k,numberFormats:P,get inheritLocale(){return s.value?s.value.inheritLocale:i},set inheritLocale(N){s.value&&(s.value.inheritLocale=N)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(c.value)},get modifiers(){return s.value?s.value.modifiers:y},get pluralRules(){return s.value?s.value.pluralRules:x},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:f},set missingWarn(N){s.value&&(s.value.missingWarn=N)},get fallbackWarn(){return s.value?s.value.fallbackWarn:h},set fallbackWarn(N){s.value&&(s.value.missingWarn=N)},get fallbackRoot(){return s.value?s.value.fallbackRoot:p},set fallbackRoot(N){s.value&&(s.value.fallbackRoot=N)},get fallbackFormat(){return s.value?s.value.fallbackFormat:g},set fallbackFormat(N){s.value&&(s.value.fallbackFormat=N)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:w},set warnHtmlMessage(N){s.value&&(s.value.warnHtmlMessage=N)},get escapeParameter(){return s.value?s.value.escapeParameter:b},set escapeParameter(N){s.value&&(s.value.escapeParameter=N)},t:q,getPostTranslationHandler:L,setPostTranslationHandler:j,getMissingHandler:ce,setMissingHandler:R,rt:U,d:W,n:Z,tm:le,te:ee,getLocaleMessage:Me,setLocaleMessage:ge,mergeLocaleMessage:be,getDateTimeFormat:Te,setDateTimeFormat:re,mergeDateTimeFormat:ae,getNumberFormat:te,setNumberFormat:ve,mergeNumberFormat:Oe};function I(N){N.locale.value=l.value,N.fallbackLocale.value=a.value,Object.keys(c.value).forEach(X=>{N.mergeLocaleMessage(X,c.value[X])}),Object.keys(u.value).forEach(X=>{N.mergeDateTimeFormat(X,u.value[X])}),Object.keys(d.value).forEach(X=>{N.mergeNumberFormat(X,d.value[X])}),N.escapeParameter=b,N.fallbackFormat=g,N.fallbackRoot=p,N.fallbackWarn=h,N.missingWarn=f,N.warnHtmlMessage=w}return zd(()=>{if(n.proxy==null||n.proxy.$i18n==null)throw Vn(kn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const N=s.value=n.proxy.$i18n.__composer;e==="global"?(l.value=N.locale.value,a.value=N.fallbackLocale.value,c.value=N.messages.value,u.value=N.datetimeFormats.value,d.value=N.numberFormats.value):o&&I(N)}),Ye}const W$=["locale","fallbackLocale","availableLocales"],Ow=["t","rt","d","n","tm","te"];function G$(n,e){const t=Object.create(null);return W$.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s)throw Vn(kn.UNEXPECTED_ERROR);const i=qt(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(t,o,i)}),n.config.globalProperties.$i18n=t,Ow.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s||!s.value)throw Vn(kn.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${o}`,s)}),()=>{delete n.config.globalProperties.$i18n,Ow.forEach(o=>{delete n.config.globalProperties[`$${o}`]})}}x$();__INTLIFY_JIT_COMPILATION__?iw(m$):iw(g$);i$(zR);l$(h_);if(__INTLIFY_PROD_DEVTOOLS__){const n=Fs();n.__INTLIFY__=!0,JR(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const q$={lang:{common:{add:"新增",back:"返回",save:"保存",saved:"保存成功",cancel:"取消",edit:"编辑",del:"删除",deleted:"删除成功",insert:"插入",nodeName:"节点名称",else:"否则",successTip:"成功提示",errTip:"错误提示",toDetail:"查看详情"},err:{},mainflow:{title:"主流程列表",add:"增加主流程",table:["主流程名称","是否启用","操作"],form:{title:"新增主流程",name:"主流程名称"},delConfirm:"确认要删除该主流程吗?"},flow:{nodes:["话术节点","条件节点","采集节点","跳转节点"],nodesDesc:["返回话术给用户","设置条件,控制流程走向","采集用户输入的信息,并保存到变量中","流程之间跳转,或跳转至外部"],title:"绘制对话流程",steps:["第一步:发布流程","第二步:开始测试"],save:"保存当前流程",pub:"发布所有流程",test:"测试流程",addSubFlow:"新增子流程",form:{name:"子流程名"},subFlowReleased:"发布成功",needOne:"最少保留一个子流程",delConfirm:"确认要删除该子流程吗?",send:"发送",reset:"重置",changeSaveTip:"流程已经修改,需要保存并切换吗?",guideReset:"流程结束,如需重新开始请点下方重来按钮"},dialogNode:{nodeName:"话术节点",nextSteps:["等待用户回复","执行下一个节点"],errors:["未填写节点名称","未填写话术信息","话术信息超长, 需少于200字"],form:{label:"节点话术",addVar:"插入变量",nextStep:"下一步",choose:"选择执行的操作"},var:{title:"选择需要插入的变量",choose:"选择变量"}},conditionNode:{types:["用户意图","用户输入","流程变量"],compares:["等于","不等于","包含","用户输入超时"],nodeName:"条件节点",errors:["请输入条件名称","输入的条件名称重复","未填写节点名称","未设置条件分支"],newBranch:"添加分支",condName:"名称",condType:"条件类型",condTypePH:"请选择条件类型",comparedPH:"请选择被比较数据",compareTypePH:"请选择比较类型",targetPH:"请选择比较的值",andCond:'"与"条件',orCond:'添加"或"条件',newCond:"添加条件"},collectNode:{nodeName:"采集节点",cTypes:["用户输入","数字","自定义正则"],branches:["采集成功","采集失败"],errors:["未填写节点名称","未选择采集类型","未选择保存变量","未添加分支信息"],cTypeName:"采集类型",varName:"保存的变量",labels:["采集类型","请选择采集类型","自定义正则","赋值变量","请选择变量"]},gotoNode:{types:["结束对话","主流程","子流程","外部链接"],nodeName:"跳转节点",errors:["未填写节点名称","未选择跳转类型","未选择跳转的子流程","未填写跳转的外部链接"],briefs:["执行动作","结束流程","跳转到子流程","跳转到外部链接","跳转到主流程"],gotoType:"跳转类型",gotoTypePH:"请选择跳转类型",gotoMainFlow:"跳转的主流程",gotoMainFlowPH:"选择跳转的主流程",gotoSubFlow:"跳转的子流程",gotoSubFlowPH:"选择跳转的子流程",externalLink:"外部链接"},intent:{title:"意图管理",add:"新增意图",delConfirm:"确认要删除该意图吗?",table:["意图名","关键词数量","正则数量","相似问数量","操作"],form:{title:"新增意图",name:"意图名"},detail:{edit:"编辑意图",kw:"关键词",addKw:"新增关键词",re:"正则表达式",addRe:"新增正则",sp:"相似表达句子",addSp:"新增相似问"}},settings:{title:"配置管理",ipNote:"如果配置的IP地址错误导致应用启动失败, 请在启动是, 加上 -rs 来重置配置参数",prompt2:"应用端口",prompt2_2:"当指定端口被占用, 随机选择一个可用的端口",prompt3:"会话时长",prompt4:"分钟",note:"修改了IP地址, 端口或会话时长,需要重启应用才能生效",invalidIp:"设置的IP地址不正确"},var:{types:["字符串","数字"],sources:["外部导入","流程采集","远程HTTP接口(正式版)"],title:"变量管理",add:"新增变量",table:["变量名","变量类型","变量取值来源","操作"],form:{title:"流程变量",name:"变量名称",type:"变量类型",choose1:"请选择变量类型",source:"变量取值来源",choose2:"请选择变量取值来源"}},home:{title:"Dialog Flow 对话流程可视化编辑器",subTitle:"低代码流程应答系统",btn1:"立即使用",btn2:"查看文档",btn3:"查看演示Demo",dlTitle:"下载",dl1:"您可以从Github上下载到最新版",dl2:'如果您有任何意见或建议, 请发邮件到: dialogflow(AT)yeah.net 或者创建一个 帖子',introTitle:"这是什么软件?",intro1:"它类似 Google 的 Dialogflow, 但是多了一个流程画布编辑器,可以更好的设计流程. 它也像 Typebot, 但是多了一个完整的应答后端.",intro2:"它拥有一个可视化的流程编辑器, 编辑完成后,可以测试流程, 并最终发布流程.",intro3:"目前,它可以返回话术给用户,并采集用户输入,还可以通过条件判断,执行不同的节点.",intro4:"它很轻量。整个软件,包含了前端和后端,只有不到 6M 大小,非常易于分发和部署.",intro5:"你可以修改软件的监听端口,这样就可以在同一台服务器上,同时运行多个实例,解决不同的用户场景.",intro6:"它下载后,就可以直接使用,不用安装任何依赖。而且数据是存放在本地,可以保护数据营隐私.",midTitle:"我们的优势",adv1Title:"易用",adv1:"简便、直观的编辑界面。
人人都会使用
只需简单的鼠标拖拽和点击
就可以绘制出一个对话流程",demo:"演示",demo1:"电话催收",demo2:"用户信息收集",demo3:"一句话通知",demoUnvailableTitle:"演示在Github上不可用Demos are not available on Github",demoUnvailableContent:'由于目前没有服务器来托管后台.
但是可以下载该软件, 它包含了3个演示对话流程',adv2Title:"小巧、快速",adv2:"只有两个文件(程序和数据库),部署非常方便。
依托AoT编译技术
可提供超高的并发数和超快的响应",adv3Title:"解决各种问题",adv3:"使用不同的流程节点组合
满足不同场景业务需求
解决不同人群遇到的问题",adv4Title:"兼容性",adv4:"前端支持 Firefox、Chrome、Microsoft Edge、Safari、Opera 等主流浏览器

该应用支持部署在 Linux、Windows Server、macOS Server 等操作系统",adv5Title:"易于集成",adv5:"提供了基于HTTP协议的应答接口
还可以集成 FreeSwitch 以实现智能语言机器人",adv5Doc:"查看文档"},guide:{title1:"创建对话流程",nav1:"开始绘制",title2:"我们内置了“肯定”、“否定”意图。若不够,可自行添加",nav2:"意图管理",desc2:"意图,是指用户说的话,符合某种想法。",title3:"需要储存用户输入,或获取外部数据?",nav3:"创建变量",desc3:"变量用于保存一些不确定的数据,它用在流程的答案、条件判断里。",title4:"机器人设置",nav4:"修改配置",desc4:"修改监听端口、会话长度等",title5:"操作手册和对接文档",nav5:"查看文档",desc5:"了解如何通过画布,快速的构建出流程。了解如何通过代码,对接应答接口"}}},K$={lang:{common:{add:"Add",back:"Back",save:"Save",saved:"Successfully saved",cancel:"Cancel",edit:"Edit",del:"Delete",deleted:"Successfully deleted",insert:"Insert",nodeName:"Node name",else:"Otherwise",successTip:"Success",errTip:"Error",toDetail:"View detail"},err:{},mainflow:{title:"Main flow list",add:"Add a new main flow",table:["Main flow name","Enabled","Operations"],form:{title:"Add a new main flow",name:"Main flow name"},delConfirm:"Are you sure you want to delete this main flow?"},flow:{nodes:["DialogNode","ConditionNode","CollectNode","GotoNode"],nodesDesc:["Returns the dialog text to the user","Setting up conditions to control where the dialog flow goes","Capture user input and save it to a variable","Jumping between dialog flows, or to an external link"],title:"Compose dialog flow",steps:["First step: publish flows","Second step: testing"],save:"Save current sub-flow",pub:"Publish all sub-flows",test:"Testing dialog flow",addSubFlow:"Add sub-flow",form:{name:"Sub-flow name"},subFlowReleased:"Successfully released",needOne:"Keep at least one sub-flow",delConfirm:"Are you sure you want to delete this sub-flow?",send:"Send",reset:"Reset",changeSaveTip:"The flow has been modified, do you need to save it and switch?",guideReset:"The conversation is over, if you want to start over, please click the button below to restart"},dialogNode:{nodeName:"Dialog node",nextSteps:["Waiting for user response","Goto next node"],errors:["Node name not filled in","Text not filled in","Text was too long"],form:{label:"Text",addVar:"Insert a variable",nextStep:"Next step",choose:"Select the action to be performed"},var:{title:"Select a variable to be inserted",choose:"Select a variable"}},conditionNode:{types:["User intent","User input","Variable"],compares:["Equals","NotEquals","Contains","Timeout"],nodeName:"Condition node",errors:["Condition name not filled in","Duplicate condition name","Node name not filled in","Branches were missing"],newBranch:"Add a new branch",condName:"Name",condType:"Condition",condTypePH:"Select a condition type",comparedPH:"Select the data to be compared",compareTypePH:"Select the type of comparison",targetPH:"Select a value for comparison",andCond:'"AND" condition',orCond:'"OR" condition',newCond:"Conditions"},collectNode:{nodeName:"Collection node",cTypes:["User input","Number","Customize Regular Expression"],branches:["Successful","Failure"],errors:["Node name not filled in","Collection type not choosed","Saving variable not choosed","Branches were missing"],cTypeName:"Collection type",varName:"Assignment variable",labels:["Collection type","Choose a collection type","Customize Regular Expression","Assignment variable","Choose a variable"]},gotoNode:{types:["Conclusion of dialogues","Goto another flow","Goto sub-flow","External link"],nodeName:"Goto node",errors:["Node name not filled in","No goto type selected","Sub-flow not selected for jumping","No external link to fill in"],briefs:["Goto type","Conclusion of dialogues","Goto sub-flow","External link","Goto another main flow"],gotoType:"Goto type",gotoTypePH:"Select a goto type",gotoMainFlow:"Goto main flow",gotoMainFlowPH:"Select a goto main flow",gotoSubFlow:"Goto sub-flow",gotoSubFlowPH:"Select a goto sub-flow",externalLink:"External link"},intent:{title:"Intent management",add:"Add new intent",delConfirm:"Are you sure you want to delete this intent?",table:["Name","Number of keywords","Number of regex","Number of similar sentences","Operations"],form:{title:"Add new intent",name:"name"},detail:{edit:"Edit intent",kw:"Keywords",addKw:"Add keyword",re:"Regular expressions",addRe:"Add regex",sp:"Similar sentences",addSp:"Add sentence"}},settings:{title:"Settings",ipNote:"If the configured IP address is wrong and the application fails to start, please reset the configuration parameters by adding the startup parameter: -rs.",prompt2:"Listening port",prompt2_2:"When the set port is occupied, automatically randomly select other available ports",prompt3:"Max session idle",prompt4:"Minutes",note:"Modified IP address or ports require a reboot to take effect",invalidIp:"Incorrectly set IP address"},var:{types:["String","Number"],sources:["Import","Collect","External HTTP"],title:"Variables management",add:"Add new variable",table:["Name","Type","Source of variable value","Operations"],form:{title:"New Variable",name:"Name",type:"Type",choose1:"Please choose a type",source:"Value source",choose2:"Please choose a source"}},home:{title:"Dialog Flow Visual Editor and Responsing System",subTitle:"Low code dialog flow responsing system",btn1:"Getting Started",btn2:"View docs",btn3:"Try demos",dlTitle:"Download",dl1:"You can download the latest releases on Github",dl2:'If you have any issues or feedback, please email to: dialogflow(AT)yeah.net or create an issue',introTitle:"What is this?",intro1:"It's similar to Google's Dialogflow, but with an additional canvas for editing processes. It's also similar to Typebot, but it includes a full answering backend.",intro2:"It has a feature called flow canvas that allows you to visually edit a conversation flow, test it, and finally publish it to the public.",intro3:"Currently, it can return discourse to the user and capture user input, and can also execute different nodes through conditional judgment .",intro4:"It is very small. The entire software, including front-end and back-end, is less than 6M in size, very easy to distribute and deploy.",intro5:"You can modify the listening port of the software so that you can run multiple instances on the same server at the same time to handle different user scenarios.",intro6:"Once it is downloaded, it can be used directly without installing any dependencies. And the data is stored locally, which can protect the data camp privacy.",midTitle:"Advantages",adv1Title:"Easy to use",adv1:"Simple and intuitive.
Everybody can use it
Just few drag drop and clicks
A dialog flow can then be mapped out",demo:"Try Demos",demo1:"Notification of loan repayment",demo2:"Information collection",demo3:"Notification",demoUnvailableTitle:"Demos are not available on Github",demoUnvailableContent:'Since there is currently no server to host the backend.
But you can download this software and try these 3 demonstration dialog flows',adv2Title:"Tiny fast and portable",adv2:"Only ONE executable file (database is generated automatically)
pretty easy for deployment
Relying on AoT compilation technology
Program provides high concurrency and blazingly fast responses",adv3Title:"Deal with various issues",adv3:"Use different combinations of flow nodes
Meet the business requirements of different scenarios
Solve problems encountered by different groups of people",adv4Title:"Compatibilities",adv4:"Front-end support for Firefox, Chrome, Microsoft Edge, Safari, Opera
and other major browsers

The application supports deployment on Linux, Windows Server, macOS Server
and other operating systems.",adv5Title:"Easy to integrate",adv5:"Provides a response interface based on the HTTP protocol

FreeSwitch can also be integrated to enable intelligent speech robots",adv5Doc:"View docs"},guide:{title1:"Dialog flows",nav1:"Click here to create new dialog flow or edit existing flow",title2:"Intentions",nav2:"Intents management",desc2:"Intent, used to summarize user input, what purpose does it belong to.",title3:"Variables",nav3:"Variables management",desc3:"Variables are used to store user input, or external data from HTTP, which is used in the answer of the dialog flow, conditional judgment.",title4:"Robot settings",nav4:"Modify Configurations",desc4:"Modify the listening IP and port.",title5:"Operation manual and integration documentation",nav5:"View documents",desc5:"Understand how to quickly build a dialog flow through the canvas. Learn how to connect to the answering interface through code"}}},Y$={zh:q$,en:K$},J$=((navigator.language?navigator.language:navigator.userLanguage)||"zh").toLowerCase(),X$=$$({fallbackLocale:"zh",globalInjection:!0,legacy:!1,locale:J$.split("-")[0]||"zh",messages:Y$}),Z$={__name:"App",setup(n){return(e,t)=>{const r=at("router-view");return A(),ye(r)}}},Q$='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',eD=n=>getComputedStyle(n).position==="fixed"?!1:n.offsetParent!==null,Mw=n=>Array.from(n.querySelectorAll(Q$)).filter(e=>tD(e)&&eD(e)),tD=n=>{if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.disabled)return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return!(n.type==="hidden"||n.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ds=(n,e,{checkForDefaultPrevented:t=!0}={})=>o=>{const s=n==null?void 0:n(o);if(t===!1||!s)return e==null?void 0:e(o)};var nD=Object.defineProperty,rD=Object.defineProperties,oD=Object.getOwnPropertyDescriptors,Aw=Object.getOwnPropertySymbols,sD=Object.prototype.hasOwnProperty,iD=Object.prototype.propertyIsEnumerable,kw=(n,e,t)=>e in n?nD(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lD=(n,e)=>{for(var t in e||(e={}))sD.call(e,t)&&kw(n,t,e[t]);if(Aw)for(var t of Aw(e))iD.call(e,t)&&kw(n,t,e[t]);return n},aD=(n,e)=>rD(n,oD(e));function Pw(n,e){var t;const r=$o();return ls(()=>{r.value=n()},aD(lD({},e),{flush:(t=void 0)!=null?t:"sync"})),Vd(r)}var Nw;const Et=typeof window<"u",cD=n=>typeof n=="string",lc=()=>{},hv=Et&&((Nw=window==null?void 0:window.navigator)==null?void 0:Nw.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ac(n){return typeof n=="function"?n():S(n)}function I_(n,e){function t(...r){return new Promise((o,s)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return t}function uD(n,e={}){let t,r,o=lc;const s=l=>{clearTimeout(l),o(),o=lc};return l=>{const a=ac(n),c=ac(e.maxWait);return t&&s(t),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(l())):new Promise((u,d)=>{o=e.rejectOnCancel?d:u,c&&!r&&(r=setTimeout(()=>{t&&s(t),r=null,u(l())},c)),t=setTimeout(()=>{r&&s(r),r=null,u(l())},a)})}}function dD(n,e=!0,t=!0,r=!1){let o=0,s,i=!0,l=lc,a;const c=()=>{s&&(clearTimeout(s),s=void 0,l(),l=lc)};return d=>{const f=ac(n),h=Date.now()-o,p=()=>a=d();return c(),f<=0?(o=Date.now(),p()):(h>f&&(t||!i)?(o=Date.now(),p()):e&&(a=new Promise((g,m)=>{l=r?m:g,s=setTimeout(()=>{o=Date.now(),i=!0,g(p()),c()},Math.max(0,f-h))})),!t&&!s&&(s=setTimeout(()=>i=!0,f)),i=!1,a)}}function fD(n){return n}function Ud(n){return FE()?(zE(n),!0):!1}function hD(n,e=200,t={}){return I_(uD(e,t),n)}function pD(n,e=200,t={}){const r=D(n.value),o=hD(()=>{r.value=n.value},e,t);return Be(n,()=>o()),r}function gD(n,e=200,t=!1,r=!0,o=!1){return I_(dD(e,t,r,o),n)}function mD(n,e=!0){bt()?ot(n):e?n():lt(n)}function Lh(n,e,t={}){const{immediate:r=!0}=t,o=D(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){o.value=!1,i()}function a(...c){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,n(...c)},ac(e))}return r&&(o.value=!0,Et&&a()),Ud(l),{isPending:Vd(o),start:a,stop:l}}function zs(n){var e;const t=ac(n);return(e=t==null?void 0:t.$el)!=null?e:t}const Wd=Et?window:void 0,vD=Et?window.document:void 0;function xn(...n){let e,t,r,o;if(cD(n[0])||Array.isArray(n[0])?([t,r,o]=n,e=Wd):[e,t,r,o]=n,!e)return lc;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},l=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),a=Be(()=>[zs(e),ac(o)],([u,d])=>{i(),u&&s.push(...t.flatMap(f=>r.map(h=>l(u,f,h,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Ud(c),c}let Iw=!1;function bD(n,e,t={}){const{window:r=Wd,ignore:o=[],capture:s=!0,detectIframe:i=!1}=t;if(!r)return;hv&&!Iw&&(Iw=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",lc)));let l=!0;const a=f=>o.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(p=>p===f.target||f.composedPath().includes(p));{const p=zs(h);return p&&(f.target===p||f.composedPath().includes(p))}}),u=[xn(r,"click",f=>{const h=zs(n);if(!(!h||h===f.target||f.composedPath().includes(h))){if(f.detail===0&&(l=!a(f)),!l){l=!0;return}e(f)}},{passive:!0,capture:s}),xn(r,"pointerdown",f=>{const h=zs(n);h&&(l=!f.composedPath().includes(h)&&!a(f))},{passive:!0}),i&&xn(r,"blur",f=>{var h;const p=zs(n);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&e(f)})].filter(Boolean);return()=>u.forEach(f=>f())}function L_(n,e=!1){const t=D(),r=()=>t.value=!!n();return r(),mD(r,e),t}const Lw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rw="__vueuse_ssr_handlers__";Lw[Rw]=Lw[Rw]||{};function yD({document:n=vD}={}){if(!n)return D("visible");const e=D(n.visibilityState);return xn(n,"visibilitychange",()=>{e.value=n.visibilityState}),e}var $w=Object.getOwnPropertySymbols,wD=Object.prototype.hasOwnProperty,CD=Object.prototype.propertyIsEnumerable,xD=(n,e)=>{var t={};for(var r in n)wD.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&$w)for(var r of $w(n))e.indexOf(r)<0&&CD.call(n,r)&&(t[r]=n[r]);return t};function vr(n,e,t={}){const r=t,{window:o=Wd}=r,s=xD(r,["window"]);let i;const l=L_(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},c=Be(()=>zs(n),d=>{a(),l.value&&o&&d&&(i=new ResizeObserver(e),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Ud(u),{isSupported:l,stop:u}}var Dw=Object.getOwnPropertySymbols,SD=Object.prototype.hasOwnProperty,ED=Object.prototype.propertyIsEnumerable,_D=(n,e)=>{var t={};for(var r in n)SD.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Dw)for(var r of Dw(n))e.indexOf(r)<0&&ED.call(n,r)&&(t[r]=n[r]);return t};function TD(n,e,t={}){const r=t,{window:o=Wd}=r,s=_D(r,["window"]);let i;const l=L_(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},c=Be(()=>zs(n),d=>{a(),l.value&&o&&d&&(i=new MutationObserver(e),i.observe(d,s))},{immediate:!0}),u=()=>{a(),c()};return Ud(u),{isSupported:l,stop:u}}var Vw;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Vw||(Vw={}));var OD=Object.defineProperty,Bw=Object.getOwnPropertySymbols,MD=Object.prototype.hasOwnProperty,AD=Object.prototype.propertyIsEnumerable,Fw=(n,e,t)=>e in n?OD(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,kD=(n,e)=>{for(var t in e||(e={}))MD.call(e,t)&&Fw(n,t,e[t]);if(Bw)for(var t of Bw(e))AD.call(e,t)&&Fw(n,t,e[t]);return n};const PD={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};kD({linear:fD},PD);function ND({window:n=Wd}={}){if(!n)return D(!1);const e=D(n.document.hasFocus());return xn(n,"blur",()=>{e.value=!1}),xn(n,"focus",()=>{e.value=!0}),e}const ID=()=>Et&&/firefox/i.test(window.navigator.userAgent),LD=(n,e)=>{if(!Et||!n||!e)return!1;const t=n.getBoundingClientRect();let r;return e instanceof Element?r=e.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},t.topr.top&&t.right>r.left&&t.left0){if(++e>=b8)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function x8(n){return function(){return n}}var Rh=function(){try{var n=Ca(Object,"defineProperty");return n({},"",{}),n}catch{}}(),S8=Rh?function(n,e){return Rh(n,"toString",{configurable:!0,enumerable:!1,value:x8(e),writable:!0})}:Wc,F_=C8(S8);function E8(n,e){for(var t=-1,r=n==null?0:n.length;++t-1}var M8=9007199254740991,A8=/^(?:0|[1-9]\d*)$/;function Fp(n,e){var t=typeof n;return e=e??M8,!!e&&(t=="number"||t!="symbol"&&A8.test(n))&&n>-1&&n%1==0&&n-1&&n%1==0&&n<=N8}function xa(n){return n!=null&&cy(n.length)&&!ly(n)}function $h(n,e,t){if(!dn(t))return!1;var r=typeof e;return(r=="number"?xa(t)&&Fp(e,t.length):r=="string"&&e in t)?Gc(t[e],n):!1}function U_(n){return qc(function(e,t){var r=-1,o=t.length,s=o>1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(s=n.length>3&&typeof s=="function"?(o--,s):void 0,i&&$h(t[0],t[1],i)&&(s=o<3?void 0:s,o=1),e=Object(e);++r-1}function z4(n,e){var t=this.__data__,r=Wp(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function ri(n){var e=-1,t=n==null?0:n.length;for(this.clear();++eo?0:o+e),t=t>o?o:t,t<0&&(t+=o),o=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(o);++r=r?n:cV(n,e,t)}var dV="\\ud800-\\udfff",fV="\\u0300-\\u036f",hV="\\ufe20-\\ufe2f",pV="\\u20d0-\\u20ff",gV=fV+hV+pV,mV="\\ufe0e\\ufe0f",vV="\\u200d",bV=RegExp("["+vV+dV+gV+mV+"]");function Z_(n){return bV.test(n)}function yV(n){return n.split("")}var Q_="\\ud800-\\udfff",wV="\\u0300-\\u036f",CV="\\ufe20-\\ufe2f",xV="\\u20d0-\\u20ff",SV=wV+CV+xV,EV="\\ufe0e\\ufe0f",_V="["+Q_+"]",gv="["+SV+"]",mv="\\ud83c[\\udffb-\\udfff]",TV="(?:"+gv+"|"+mv+")",eT="[^"+Q_+"]",tT="(?:\\ud83c[\\udde6-\\uddff]){2}",nT="[\\ud800-\\udbff][\\udc00-\\udfff]",OV="\\u200d",rT=TV+"?",oT="["+EV+"]?",MV="(?:"+OV+"(?:"+[eT,tT,nT].join("|")+")"+oT+rT+")*",AV=oT+rT+MV,kV="(?:"+[eT+gv+"?",gv,tT,nT,_V].join("|")+")",PV=RegExp(mv+"(?="+mv+")|"+kV+AV,"g");function NV(n){return n.match(PV)||[]}function IV(n){return Z_(n)?NV(n):yV(n)}function sT(n){return function(e){e=Kd(e);var t=Z_(e)?IV(e):void 0,r=t?t[0]:e.charAt(0),o=t?uV(t,1).join(""):e.slice(1);return r[n]()+o}}var Dh=sT("toUpperCase");function LV(n){return Dh(Kd(n).toLowerCase())}function RV(n,e,t,r){for(var o=-1,s=n==null?0:n.length;++o=e?n:e)),n}function lo(n,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=Pu(t),t=t===t?t:0),e!==void 0&&(e=Pu(e),e=e===e?e:0),SB(Pu(n),e,t)}function EB(){this.__data__=new ri,this.size=0}function _B(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function TB(n){return this.__data__.get(n)}function OB(n){return this.__data__.has(n)}var MB=200;function AB(n,e){var t=this.__data__;if(t instanceof ri){var r=t.__data__;if(!cd||r.lengthl))return!1;var c=s.get(n),u=s.get(e);if(c&&u)return c==e&&u==n;var d=-1,f=!0,h=t&sF?new fc:void 0;for(s.set(n,e),s.set(e,n);++d=e||T<0||d&&M>=s}function v(){var E=tm();if(m(E))return w(E);l=setTimeout(v,g(E))}function w(E){return l=void 0,f&&r?h(E):(r=o=void 0,i)}function b(){l!==void 0&&clearTimeout(l),c=0,r=a=o=l=void 0}function y(){return l===void 0?i:w(tm())}function x(){var E=tm(),T=m(E);if(r=arguments,o=this,a=E,T){if(l===void 0)return p(a);if(d)return clearTimeout(l),l=setTimeout(v,e),h(a)}return l===void 0&&(l=setTimeout(v,e)),i}return x.cancel=b,x.flush=y,x}var DT=Object.prototype,YF=DT.hasOwnProperty,JF=qc(function(n,e){n=Object(n);var t=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&$h(e[0],e[1],o)&&(r=1);++t=e6&&(s=my,i=!1,e=new fc(e));e:for(;++oe}var c6=Object.prototype,u6=c6.hasOwnProperty;function d6(n,e){return n!=null&&u6.call(n,e)}function Af(n,e){return n!=null&&IT(n,e,d6)}var f6="[object Map]",h6="[object Set]",p6=Object.prototype,g6=p6.hasOwnProperty;function zT(n){if(n==null)return!0;if(xa(n)&&(zn(n)||typeof n=="string"||typeof n.splice=="function"||uc(n)||Up(n)||cc(n)))return!n.length;var e=oo(n);if(e==f6||e==h6)return!n.size;if(jp(n))return!J_(n).length;for(var t in n)if(g6.call(n,t))return!1;return!0}function Mr(n,e){return Jp(n,e)}var m6="[object Number]";function CC(n){return typeof n=="number"||Ho(n)&&hl(n)==m6}function as(n){return n==null}function jT(n){return n===void 0}var v6=sT("toLowerCase");function b6(n,e,t){for(var r=-1,o=n.length;++re||s&&i&&a&&!l&&!c||r&&i&&a||!t&&a||!o)return 1;if(!r&&!s&&!c&&n=l)return a;var c=t[r];return a*(c=="desc"?-1:1)}}return n.index-e.index}function E6(n,e,t){e.length?e=ku(e,function(s){return zn(s)?function(i){return Kp(i,s.length===1?s[0]:s)}:s}):e=[Wc];var r=-1;e=ku(e,Hp(Xd));var o=FT(n,function(s,i,l){var a=ku(e,function(c){return c(s)});return{criteria:a,index:++r,value:s}});return C6(o,function(s,i){return S6(s,i,t)})}function _6(n,e){return w6(n,e,function(t,r){return LT(n,r)})}var UT=rV(function(n,e){return n==null?{}:_6(n,e)});function T6(n,e,t){return n==null?n:HT(n,e,t)}var O6=qc(function(n,e){if(n==null)return[];var t=e.length;return t>1&&$h(n,e[0],e[1])?e=[]:t>2&&$h(e[0],e[1],e[2])&&(e=[e[0]]),E6(n,Jd(e),[])}),M6=4294967295,A6=M6-1,k6=Math.floor,P6=Math.min;function WT(n,e,t,r){var o=0,s=n==null?0:n.length;if(s===0)return 0;e=t(e);for(var i=e!==e,l=e===null,a=fs(e),c=e===void 0;o>>1;function L6(n,e,t){var r=0,o=n==null?r:n.length;if(typeof e=="number"&&e===e&&o<=I6){for(;r>>1,i=n[s];i!==null&&!fs(i)&&i=z6){var c=F6(n);if(c)return vy(c);i=!1,o=my,a=new fc}else a=l;e:for(;++rn===void 0,go=n=>typeof n=="boolean",Tt=n=>typeof n=="number",mo=n=>typeof Element>"u"?!1:n instanceof Element,dd=n=>as(n),j6=n=>ht(n)?!Number.isNaN(Number(n)):!1,H6=n=>Et?window.requestAnimationFrame(n):setTimeout(n,16),U6=(n="")=>n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ri=n=>Dd(n),jh=n=>Object.keys(n),ch=(n,e,t)=>({get value(){return io(n,e,t)},set value(r){T6(n,e,r)}});class W6 extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function pl(n,e){throw new W6(`[${n}] ${e}`)}const KT=(n="")=>n.split(" ").filter(e=>!!e.trim()),qa=(n,e)=>{if(!n||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return n.classList.contains(e)},la=(n,e)=>{!n||!e.trim()||n.classList.add(...KT(e))},hs=(n,e)=>{!n||!e.trim()||n.classList.remove(...KT(e))},$l=(n,e)=>{var t;if(!Et||!n||!e)return"";let r=zo(e);r==="float"&&(r="cssFloat");try{const o=n.style[r];if(o)return o;const s=(t=document.defaultView)==null?void 0:t.getComputedStyle(n,"");return s?s[r]:""}catch{return n.style[r]}};function vo(n,e="px"){if(!n)return"";if(Tt(n)||j6(n))return`${n}${e}`;if(ht(n))return n}const G6=(n,e)=>{if(!Et)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],r=$l(n,t);return["scroll","auto","overlay"].some(o=>r.includes(o))},q6=(n,e)=>{if(!Et)return;let t=n;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(G6(t,e))return t;t=t.parentNode}return t};let kf;const K6=n=>{var e;if(!Et)return 0;if(kf!==void 0)return kf;const t=document.createElement("div");t.className=`${n}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",t.appendChild(o);const s=o.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),kf=r-s,kf};function Y6(n,e){if(!Et)return;if(!e){n.scrollTop=0;return}const t=[];let r=e.offsetParent;for(;r!==null&&n!==r&&n.contains(r);)t.push(r),r=r.offsetParent;const o=e.offsetTop+t.reduce((a,c)=>a+c.offsetTop,0),s=o+e.offsetHeight,i=n.scrollTop,l=i+n.clientHeight;ol&&(n.scrollTop=s-n.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var J6=me({name:"ArrowDown",__name:"arrow-down",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),by=J6,X6=me({name:"ArrowLeft",__name:"arrow-left",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),YT=X6,Z6=me({name:"ArrowRight",__name:"arrow-right",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Zp=Z6,Q6=me({name:"ArrowUp",__name:"arrow-up",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),JT=Q6,ez=me({name:"Back",__name:"back",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),F("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),tz=ez,nz=me({name:"CircleCheckFilled",__name:"circle-check-filled",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),rz=nz,oz=me({name:"CircleCheck",__name:"circle-check",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),F("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),sz=oz,iz=me({name:"CircleCloseFilled",__name:"circle-close-filled",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),yy=iz,lz=me({name:"CircleClose",__name:"circle-close",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),wy=lz,az=me({name:"Close",__name:"close",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),aa=az,cz=me({name:"FullScreen",__name:"full-screen",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),uz=cz,dz=me({name:"Hide",__name:"hide",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),F("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),fz=dz,hz=me({name:"InfoFilled",__name:"info-filled",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Cy=hz,pz=me({name:"Loading",__name:"loading",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),fd=pz,gz=me({name:"Minus",__name:"minus",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),mz=gz,vz=me({name:"Plus",__name:"plus",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),XT=vz,bz=me({name:"RefreshLeft",__name:"refresh-left",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),yz=bz,wz=me({name:"RefreshRight",__name:"refresh-right",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Cz=wz,xz=me({name:"ScaleToOriginal",__name:"scale-to-original",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Sz=xz,Ez=me({name:"SuccessFilled",__name:"success-filled",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),ZT=Ez,_z=me({name:"View",__name:"view",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Tz=_z,Oz=me({name:"WarningFilled",__name:"warning-filled",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),xy=Oz,Mz=me({name:"ZoomIn",__name:"zoom-in",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Az=Mz,kz=me({name:"ZoomOut",__name:"zoom-out",setup(n){return(e,t)=>(A(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Pz=kz;const QT="__epPropKey",je=n=>n,Nz=n=>gt(n)&&!!n[QT],Qp=(n,e)=>{if(!gt(n)||Nz(n))return n;const{values:t,required:r,default:o,type:s,validator:i}=n,a={type:s,required:!!r,validator:t||i?c=>{let u=!1,d=[];if(t&&(d=Array.from(t),xt(n,"default")&&d.push(o),u||(u=d.includes(c))),i&&(u||(u=i(c))),!u&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");aL(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${f}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[QT]:!0};return xt(n,"default")&&(a.default=o),a},st=n=>zh(Object.entries(n).map(([e,t])=>[e,Qp(t,e)])),bo=je([String,Object,Function]),eO={Close:aa},Sy={Close:aa,SuccessFilled:ZT,InfoFilled:Cy,WarningFilled:xy,CircleCloseFilled:yy},el={success:ZT,warning:xy,error:yy,info:Cy},tO={validating:fd,success:sz,error:wy},Rt=(n,e)=>{if(n.install=t=>{for(const r of[n,...Object.values(e??{})])t.component(r.name,r)},e)for(const[t,r]of Object.entries(e))n[t]=r;return n},nO=(n,e)=>(n.install=t=>{n._context=t._context,t.config.globalProperties[e]=n},n),Iz=(n,e)=>(n.install=t=>{t.directive(e,n)},n),Lr=n=>(n.install=pn,n),Lz=(...n)=>e=>{n.forEach(t=>{Je(t)?t(e):t.value=e})},Cn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Ut="update:modelValue",Zd="change",uh="input",Sa=["","default","small","large"],Rz=n=>["",...Sa].includes(n);var eo=(n=>(n[n.TEXT=1]="TEXT",n[n.CLASS=2]="CLASS",n[n.STYLE=4]="STYLE",n[n.PROPS=8]="PROPS",n[n.FULL_PROPS=16]="FULL_PROPS",n[n.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",n[n.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",n[n.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",n[n.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",n[n.NEED_PATCH=512]="NEED_PATCH",n[n.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",n[n.HOISTED=-1]="HOISTED",n[n.BAIL=-2]="BAIL",n))(eo||{});function xv(n){return Pn(n)&&n.type===Re}function $z(n){return Pn(n)&&n.type===Jn}function Dz(n){return Pn(n)&&!xv(n)&&!$z(n)}const dh=n=>{const e=Ve(n)?n:[n],t=[];return e.forEach(r=>{var o;Ve(r)?t.push(...dh(r)):Pn(r)&&Ve(r.children)?t.push(...dh(r.children)):(t.push(r),Pn(r)&&((o=r.component)!=null&&o.subTree)&&t.push(...dh(r.component.subTree)))}),t},rO=n=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n),Ao=n=>n,Vz=["class","style"],Bz=/^on[A-Z]/,oO=(n={})=>{const{excludeListeners:e=!1,excludeKeys:t}=n,r=z(()=>((t==null?void 0:t.value)||[]).concat(Vz)),o=bt();return z(o?()=>{var s;return zh(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(e&&Bz.test(i))))}:()=>({}))},Or=({from:n,replacement:e,scope:t,version:r,ref:o,type:s="API"},i)=>{Be(()=>S(i),l=>{},{immediate:!0})},sO=(n,e,t,r)=>{let o={offsetX:0,offsetY:0};const s=a=>{const c=a.clientX,u=a.clientY,{offsetX:d,offsetY:f}=o,h=n.value.getBoundingClientRect(),p=h.left,g=h.top,m=h.width,v=h.height,w=document.documentElement.clientWidth,b=document.documentElement.clientHeight,y=-p+d,x=-g+f,E=w-p-m+d,T=b-g-v+f,M=k=>{let P=d+k.clientX-c,L=f+k.clientY-u;r!=null&&r.value||(P=Math.min(Math.max(P,y),E),L=Math.min(Math.max(L,x),T)),o={offsetX:P,offsetY:L},n.value&&(n.value.style.transform=`translate(${vo(P)}, ${vo(L)})`)},O=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",O)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",O)},i=()=>{e.value&&n.value&&e.value.addEventListener("mousedown",s)},l=()=>{e.value&&n.value&&e.value.removeEventListener("mousedown",s)};ot(()=>{ls(()=>{t.value?i():l()})}),_n(()=>{l()})};var Fz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const zz=n=>(e,t)=>jz(e,t,S(n)),jz=(n,e,t)=>io(t,n,n).replace(/\{(\w+)\}/g,(r,o)=>{var s;return`${(s=e==null?void 0:e[o])!=null?s:`{${o}}`}`}),Hz=n=>{const e=z(()=>S(n).name),t=qt(n)?n:D(n);return{lang:e,locale:t,t:zz(n)}},iO=Symbol("localeContextKey"),xs=n=>{const e=n||Fe(iO,D());return Hz(z(()=>e.value||Fz))},Lu="el",Uz="is-",Pl=(n,e,t,r,o)=>{let s=`${n}-${e}`;return t&&(s+=`-${t}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s},lO=Symbol("namespaceContextKey"),Ey=n=>{const e=n||(bt()?Fe(lO,D(Lu)):D(Lu));return z(()=>S(e)||Lu)},Xe=(n,e)=>{const t=Ey(e);return{namespace:t,b:(g="")=>Pl(t.value,n,g,"",""),e:g=>g?Pl(t.value,n,"",g,""):"",m:g=>g?Pl(t.value,n,"","",g):"",be:(g,m)=>g&&m?Pl(t.value,n,g,m,""):"",em:(g,m)=>g&&m?Pl(t.value,n,"",g,m):"",bm:(g,m)=>g&&m?Pl(t.value,n,g,"",m):"",bem:(g,m,v)=>g&&m&&v?Pl(t.value,n,g,m,v):"",is:(g,...m)=>{const v=m.length>=1?m[0]:!0;return g&&v?`${Uz}${g}`:""},cssVar:g=>{const m={};for(const v in g)g[v]&&(m[`--${t.value}-${v}`]=g[v]);return m},cssVarName:g=>`--${t.value}-${g}`,cssVarBlock:g=>{const m={};for(const v in g)g[v]&&(m[`--${t.value}-${n}-${v}`]=g[v]);return m},cssVarBlockName:g=>`--${t.value}-${n}-${g}`}},aO=(n,e={})=>{qt(n)||pl("[useLockscreen]","You need to pass a ref param to this function");const t=e.ns||Xe("popup"),r=z(()=>t.bm("parent","hidden"));if(!Et||qa(document.body,r.value))return;let o=0,s=!1,i="0";const l=()=>{setTimeout(()=>{hs(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=i)},200)};Be(n,a=>{if(!a){l();return}s=!qa(document.body,r.value),s&&(i=document.body.style.width),o=K6(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`),la(document.body,r.value)}),zE(()=>l())},Wz=Qp({type:je(Boolean),default:null}),Gz=Qp({type:je(Function)}),cO=n=>{const e=`update:${n}`,t=`onUpdate:${n}`,r=[e],o={[n]:Wz,[t]:Gz};return{useModelToggle:({indicator:i,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:u,onHide:d})=>{const f=bt(),{emit:h}=f,p=f.props,g=z(()=>Je(p[t])),m=z(()=>p[n]===null),v=T=>{i.value!==!0&&(i.value=!0,l&&(l.value=T),Je(u)&&u(T))},w=T=>{i.value!==!1&&(i.value=!1,l&&(l.value=T),Je(d)&&d(T))},b=T=>{if(p.disabled===!0||Je(c)&&!c())return;const M=g.value&&Et;M&&h(e,!0),(m.value||!M)&&v(T)},y=T=>{if(p.disabled===!0||!Et)return;const M=g.value&&Et;M&&h(e,!1),(m.value||!M)&&w(T)},x=T=>{go(T)&&(p.disabled&&T?g.value&&h(e,!1):i.value!==T&&(T?v():w()))},E=()=>{i.value?y():b()};return Be(()=>p[n],x),a&&f.appContext.config.globalProperties.$route!==void 0&&Be(()=>({...f.proxy.$route}),()=>{a.value&&i.value&&y()}),ot(()=>{x(p[n])}),{hide:y,show:b,toggle:E,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}};cO("modelValue");const uO=n=>{const e=bt();return z(()=>{var t,r;return(r=(t=e==null?void 0:e.proxy)==null?void 0:t.$props)==null?void 0:r[n]})};var Ar="top",yo="bottom",wo="right",kr="left",_y="auto",Qd=[Ar,yo,wo,kr],pc="start",hd="end",qz="clippingParents",dO="viewport",cu="popper",Kz="reference",SC=Qd.reduce(function(n,e){return n.concat([e+"-"+pc,e+"-"+hd])},[]),eg=[].concat(Qd,[_y]).reduce(function(n,e){return n.concat([e,e+"-"+pc,e+"-"+hd])},[]),Yz="beforeRead",Jz="read",Xz="afterRead",Zz="beforeMain",Qz="main",ej="afterMain",tj="beforeWrite",nj="write",rj="afterWrite",oj=[Yz,Jz,Xz,Zz,Qz,ej,tj,nj,rj];function ps(n){return n?(n.nodeName||"").toLowerCase():null}function Yo(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function gc(n){var e=Yo(n).Element;return n instanceof e||n instanceof Element}function fo(n){var e=Yo(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Ty(n){if(typeof ShadowRoot>"u")return!1;var e=Yo(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function sj(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];!fo(s)||!ps(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function ij(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},i=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=i.reduce(function(a,c){return a[c]="",a},{});!fo(o)||!ps(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}var Oy={name:"applyStyles",enabled:!0,phase:"write",fn:sj,effect:ij,requires:["computeStyles"]};function cs(n){return n.split("-")[0]}var Xl=Math.max,Hh=Math.min,mc=Math.round;function vc(n,e){e===void 0&&(e=!1);var t=n.getBoundingClientRect(),r=1,o=1;if(fo(n)&&e){var s=n.offsetHeight,i=n.offsetWidth;i>0&&(r=mc(t.width)/i||1),s>0&&(o=mc(t.height)/s||1)}return{width:t.width/r,height:t.height/o,top:t.top/o,right:t.right/r,bottom:t.bottom/o,left:t.left/r,x:t.left/r,y:t.top/o}}function My(n){var e=vc(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function fO(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Ty(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ys(n){return Yo(n).getComputedStyle(n)}function lj(n){return["table","td","th"].indexOf(ps(n))>=0}function gl(n){return((gc(n)?n.ownerDocument:n.document)||window.document).documentElement}function tg(n){return ps(n)==="html"?n:n.assignedSlot||n.parentNode||(Ty(n)?n.host:null)||gl(n)}function EC(n){return!fo(n)||Ys(n).position==="fixed"?null:n.offsetParent}function aj(n){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&fo(n)){var r=Ys(n);if(r.position==="fixed")return null}var o=tg(n);for(Ty(o)&&(o=o.host);fo(o)&&["html","body"].indexOf(ps(o))<0;){var s=Ys(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ef(n){for(var e=Yo(n),t=EC(n);t&&lj(t)&&Ys(t).position==="static";)t=EC(t);return t&&(ps(t)==="html"||ps(t)==="body"&&Ys(t).position==="static")?e:t||aj(n)||e}function Ay(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Ru(n,e,t){return Xl(n,Hh(e,t))}function cj(n,e,t){var r=Ru(n,e,t);return r>t?t:r}function hO(){return{top:0,right:0,bottom:0,left:0}}function pO(n){return Object.assign({},hO(),n)}function gO(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var uj=function(n,e){return n=typeof n=="function"?n(Object.assign({},e.rects,{placement:e.placement})):n,pO(typeof n!="number"?n:gO(n,Qd))};function dj(n){var e,t=n.state,r=n.name,o=n.options,s=t.elements.arrow,i=t.modifiersData.popperOffsets,l=cs(t.placement),a=Ay(l),c=[kr,wo].indexOf(l)>=0,u=c?"height":"width";if(!(!s||!i)){var d=uj(o.padding,t),f=My(s),h=a==="y"?Ar:kr,p=a==="y"?yo:wo,g=t.rects.reference[u]+t.rects.reference[a]-i[a]-t.rects.popper[u],m=i[a]-t.rects.reference[a],v=ef(s),w=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,y=d[h],x=w-f[u]-d[p],E=w/2-f[u]/2+b,T=Ru(y,E,x),M=a;t.modifiersData[r]=(e={},e[M]=T,e.centerOffset=T-E,e)}}function fj(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!fO(e.elements.popper,o)||(e.elements.arrow=o))}var hj={name:"arrow",enabled:!0,phase:"main",fn:dj,effect:fj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bc(n){return n.split("-")[1]}var pj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gj(n){var e=n.x,t=n.y,r=window,o=r.devicePixelRatio||1;return{x:mc(e*o)/o||0,y:mc(t*o)/o||0}}function _C(n){var e,t=n.popper,r=n.popperRect,o=n.placement,s=n.variation,i=n.offsets,l=n.position,a=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,f=i.x,h=f===void 0?0:f,p=i.y,g=p===void 0?0:p,m=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var v=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),b=kr,y=Ar,x=window;if(c){var E=ef(t),T="clientHeight",M="clientWidth";if(E===Yo(t)&&(E=gl(t),Ys(E).position!=="static"&&l==="absolute"&&(T="scrollHeight",M="scrollWidth")),E=E,o===Ar||(o===kr||o===wo)&&s===hd){y=yo;var O=d&&E===x&&x.visualViewport?x.visualViewport.height:E[T];g-=O-r.height,g*=a?1:-1}if(o===kr||(o===Ar||o===yo)&&s===hd){b=wo;var k=d&&E===x&&x.visualViewport?x.visualViewport.width:E[M];h-=k-r.width,h*=a?1:-1}}var P=Object.assign({position:l},c&&pj),L=u===!0?gj({x:h,y:g}):{x:h,y:g};if(h=L.x,g=L.y,a){var j;return Object.assign({},P,(j={},j[y]=w?"0":"",j[b]=v?"0":"",j.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",j))}return Object.assign({},P,(e={},e[y]=w?g+"px":"",e[b]=v?h+"px":"",e.transform="",e))}function mj(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,s=t.adaptive,i=s===void 0?!0:s,l=t.roundOffsets,a=l===void 0?!0:l,c={placement:cs(e.placement),variation:bc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,_C(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,_C(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var mO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mj,data:{}},Pf={passive:!0};function vj(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,a=Yo(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",t.update,Pf)}),l&&a.addEventListener("resize",t.update,Pf),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",t.update,Pf)}),l&&a.removeEventListener("resize",t.update,Pf)}}var vO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vj,data:{}},bj={left:"right",right:"left",bottom:"top",top:"bottom"};function fh(n){return n.replace(/left|right|bottom|top/g,function(e){return bj[e]})}var yj={start:"end",end:"start"};function TC(n){return n.replace(/start|end/g,function(e){return yj[e]})}function ky(n){var e=Yo(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Py(n){return vc(gl(n)).left+ky(n).scrollLeft}function wj(n){var e=Yo(n),t=gl(n),r=e.visualViewport,o=t.clientWidth,s=t.clientHeight,i=0,l=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,l=r.offsetTop)),{width:o,height:s,x:i+Py(n),y:l}}function Cj(n){var e,t=gl(n),r=ky(n),o=(e=n.ownerDocument)==null?void 0:e.body,s=Xl(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Xl(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Py(n),a=-r.scrollTop;return Ys(o||t).direction==="rtl"&&(l+=Xl(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function Ny(n){var e=Ys(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function bO(n){return["html","body","#document"].indexOf(ps(n))>=0?n.ownerDocument.body:fo(n)&&Ny(n)?n:bO(tg(n))}function $u(n,e){var t;e===void 0&&(e=[]);var r=bO(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),s=Yo(r),i=o?[s].concat(s.visualViewport||[],Ny(r)?r:[]):r,l=e.concat(i);return o?l:l.concat($u(tg(i)))}function Sv(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function xj(n){var e=vc(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function OC(n,e){return e===dO?Sv(wj(n)):gc(e)?xj(e):Sv(Cj(gl(n)))}function Sj(n){var e=$u(tg(n)),t=["absolute","fixed"].indexOf(Ys(n).position)>=0,r=t&&fo(n)?ef(n):n;return gc(r)?e.filter(function(o){return gc(o)&&fO(o,r)&&ps(o)!=="body"}):[]}function Ej(n,e,t){var r=e==="clippingParents"?Sj(n):[].concat(e),o=[].concat(r,[t]),s=o[0],i=o.reduce(function(l,a){var c=OC(n,a);return l.top=Xl(c.top,l.top),l.right=Hh(c.right,l.right),l.bottom=Hh(c.bottom,l.bottom),l.left=Xl(c.left,l.left),l},OC(n,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function yO(n){var e=n.reference,t=n.element,r=n.placement,o=r?cs(r):null,s=r?bc(r):null,i=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case Ar:a={x:i,y:e.y-t.height};break;case yo:a={x:i,y:e.y+e.height};break;case wo:a={x:e.x+e.width,y:l};break;case kr:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?Ay(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case pc:a[c]=a[c]-(e[u]/2-t[u]/2);break;case hd:a[c]=a[c]+(e[u]/2-t[u]/2);break}}return a}function pd(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,s=t.boundary,i=s===void 0?qz:s,l=t.rootBoundary,a=l===void 0?dO:l,c=t.elementContext,u=c===void 0?cu:c,d=t.altBoundary,f=d===void 0?!1:d,h=t.padding,p=h===void 0?0:h,g=pO(typeof p!="number"?p:gO(p,Qd)),m=u===cu?Kz:cu,v=n.rects.popper,w=n.elements[f?m:u],b=Ej(gc(w)?w:w.contextElement||gl(n.elements.popper),i,a),y=vc(n.elements.reference),x=yO({reference:y,element:v,strategy:"absolute",placement:o}),E=Sv(Object.assign({},v,x)),T=u===cu?E:y,M={top:b.top-T.top+g.top,bottom:T.bottom-b.bottom+g.bottom,left:b.left-T.left+g.left,right:T.right-b.right+g.right},O=n.modifiersData.offset;if(u===cu&&O){var k=O[o];Object.keys(M).forEach(function(P){var L=[wo,yo].indexOf(P)>=0?1:-1,j=[Ar,yo].indexOf(P)>=0?"y":"x";M[P]+=k[j]*L})}return M}function _j(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,s=t.rootBoundary,i=t.padding,l=t.flipVariations,a=t.allowedAutoPlacements,c=a===void 0?eg:a,u=bc(r),d=u?l?SC:SC.filter(function(p){return bc(p)===u}):Qd,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=pd(n,{placement:g,boundary:o,rootBoundary:s,padding:i})[cs(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function Tj(n){if(cs(n)===_y)return[];var e=fh(n);return[TC(n),e,TC(e)]}function Oj(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,s=o===void 0?!0:o,i=t.altAxis,l=i===void 0?!0:i,a=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,f=t.altBoundary,h=t.flipVariations,p=h===void 0?!0:h,g=t.allowedAutoPlacements,m=e.options.placement,v=cs(m),w=v===m,b=a||(w||!p?[fh(m)]:Tj(m)),y=[m].concat(b).reduce(function(ge,be){return ge.concat(cs(be)===_y?_j(e,{placement:be,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):be)},[]),x=e.rects.reference,E=e.rects.popper,T=new Map,M=!0,O=y[0],k=0;k=0,R=ce?"width":"height",$=pd(e,{placement:P,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),q=ce?j?wo:kr:j?yo:Ar;x[R]>E[R]&&(q=fh(q));var U=fh(q),W=[];if(s&&W.push($[L]<=0),l&&W.push($[q]<=0,$[U]<=0),W.every(function(ge){return ge})){O=P,M=!1;break}T.set(P,W)}if(M)for(var Z=p?3:1,le=function(ge){var be=y.find(function(Te){var re=T.get(Te);if(re)return re.slice(0,ge).every(function(ae){return ae})});if(be)return O=be,"break"},ee=Z;ee>0;ee--){var Me=le(ee);if(Me==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}var Mj={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function MC(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function AC(n){return[Ar,wo,yo,kr].some(function(e){return n[e]>=0})}function Aj(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,i=pd(e,{elementContext:"reference"}),l=pd(e,{altBoundary:!0}),a=MC(i,r),c=MC(l,o,s),u=AC(a),d=AC(c);e.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var kj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Aj};function Pj(n,e,t){var r=cs(n),o=[kr,Ar].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[kr,wo].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function Nj(n){var e=n.state,t=n.options,r=n.name,o=t.offset,s=o===void 0?[0,0]:o,i=eg.reduce(function(u,d){return u[d]=Pj(d,e.rects,s),u},{}),l=i[e.placement],a=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=i}var Ij={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function Lj(n){var e=n.state,t=n.name;e.modifiersData[t]=yO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var wO={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function Rj(n){return n==="x"?"y":"x"}function $j(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,s=o===void 0?!0:o,i=t.altAxis,l=i===void 0?!1:i,a=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,f=t.tether,h=f===void 0?!0:f,p=t.tetherOffset,g=p===void 0?0:p,m=pd(e,{boundary:a,rootBoundary:c,padding:d,altBoundary:u}),v=cs(e.placement),w=bc(e.placement),b=!w,y=Ay(v),x=Rj(y),E=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,O=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,k=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(s){var j,ce=y==="y"?Ar:kr,R=y==="y"?yo:wo,$=y==="y"?"height":"width",q=E[y],U=q+m[ce],W=q-m[R],Z=h?-M[$]/2:0,le=w===pc?T[$]:M[$],ee=w===pc?-M[$]:-T[$],Me=e.elements.arrow,ge=h&&Me?My(Me):{width:0,height:0},be=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:hO(),Te=be[ce],re=be[R],ae=Ru(0,T[$],ge[$]),te=b?T[$]/2-Z-ae-Te-k.mainAxis:le-ae-Te-k.mainAxis,ve=b?-T[$]/2+Z+ae+re+k.mainAxis:ee+ae+re+k.mainAxis,Oe=e.elements.arrow&&ef(e.elements.arrow),Ye=Oe?y==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,I=(j=P==null?void 0:P[y])!=null?j:0,N=q+te-I-Ye,X=q+ve-I,pe=Ru(h?Hh(U,N):U,q,h?Xl(W,X):W);E[y]=pe,L[y]=pe-q}if(l){var fe,_e=y==="x"?Ar:kr,xe=y==="x"?yo:wo,V=E[x],B=x==="y"?"height":"width",J=V+m[_e],ue=V-m[xe],Pe=[Ar,kr].indexOf(v)!==-1,se=(fe=P==null?void 0:P[x])!=null?fe:0,ne=Pe?J:V-T[B]-M[B]-se+k.altAxis,de=Pe?V+T[B]+M[B]-se-k.altAxis:ue,We=h&&Pe?cj(ne,V,de):Ru(h?ne:J,V,h?de:ue);E[x]=We,L[x]=We-V}e.modifiersData[r]=L}}var Dj={name:"preventOverflow",enabled:!0,phase:"main",fn:$j,requiresIfExists:["offset"]};function Vj(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Bj(n){return n===Yo(n)||!fo(n)?ky(n):Vj(n)}function Fj(n){var e=n.getBoundingClientRect(),t=mc(e.width)/n.offsetWidth||1,r=mc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function zj(n,e,t){t===void 0&&(t=!1);var r=fo(e),o=fo(e)&&Fj(e),s=gl(e),i=vc(n,o),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&((ps(e)!=="body"||Ny(s))&&(l=Bj(e)),fo(e)?(a=vc(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):s&&(a.x=Py(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function jj(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function o(s){t.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!t.has(l)){var a=e.get(l);a&&o(a)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||o(s)}),r}function Hj(n){var e=jj(n);return oj.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function Uj(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Wj(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var kC={placement:"bottom",modifiers:[],strategy:"absolute"};function PC(){for(var n=arguments.length,e=new Array(n),t=0;t{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:a})=>{const c=Yj(a);Object.assign(i.value,c)},requires:["computeStyles"]},o=z(()=>{const{onFirstUpdate:a,placement:c,strategy:u,modifiers:d}=S(t);return{onFirstUpdate:a,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),s=$o(),i=D({styles:{popper:{position:S(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Be(o,a=>{const c=S(s);c&&c.setOptions(a)},{deep:!0}),Be([n,e],([a,c])=>{l(),!(!a||!c)&&(s.value=CO(a,c,S(o)))}),_n(()=>{l()}),{state:z(()=>{var a;return{...((a=S(s))==null?void 0:a.state)||{}}}),styles:z(()=>S(i).styles),attributes:z(()=>S(i).attributes),update:()=>{var a;return(a=S(s))==null?void 0:a.update()},forceUpdate:()=>{var a;return(a=S(s))==null?void 0:a.forceUpdate()},instanceRef:z(()=>S(s))}};function Yj(n){const e=Object.keys(n.elements),t=zh(e.map(o=>[o,n.styles[o]||{}])),r=zh(e.map(o=>[o,n.attributes[o]]));return{styles:t,attributes:r}}const Ly=n=>{if(!n)return{onClick:pn,onMousedown:pn,onMouseup:pn};let e=!1,t=!1;return{onClick:i=>{e&&t&&n(i),e=t=!1},onMousedown:i=>{e=i.target===i.currentTarget},onMouseup:i=>{t=i.target===i.currentTarget}}};function NC(){let n;const e=(r,o)=>{t(),n=window.setTimeout(r,o)},t=()=>window.clearTimeout(n);return Ud(()=>t()),{registerTimeout:e,cancelTimeout:t}}const IC={prefix:Math.floor(Math.random()*1e4),current:0},Jj=Symbol("elIdInjection"),xO=()=>bt()?Fe(Jj,IC):IC,gs=n=>{const e=xO(),t=Ey();return z(()=>S(n)||`${t.value}-id-${e.prefix}-${e.current++}`)};let Ra=[];const LC=n=>{const e=n;e.key===Cn.esc&&Ra.forEach(t=>t(e))},Xj=n=>{ot(()=>{Ra.length===0&&document.addEventListener("keydown",LC),Et&&Ra.push(n)}),_n(()=>{Ra=Ra.filter(e=>e!==n),Ra.length===0&&Et&&document.removeEventListener("keydown",LC)})};let RC;const SO=()=>{const n=Ey(),e=xO(),t=z(()=>`${n.value}-popper-container-${e.prefix}`),r=z(()=>`#${t.value}`);return{id:t,selector:r}},Zj=n=>{const e=document.createElement("div");return e.id=n,document.body.appendChild(e),e},Qj=()=>{const{id:n,selector:e}=SO();return zd(()=>{Et&&!RC&&!document.body.querySelector(e.value)&&(RC=Zj(n.value))}),{id:n,selector:e}},eH=st({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),tH=({showAfter:n,hideAfter:e,autoClose:t,open:r,close:o})=>{const{registerTimeout:s}=NC(),{registerTimeout:i,cancelTimeout:l}=NC();return{onOpen:u=>{s(()=>{r(u);const d=S(t);Tt(d)&&d>0&&i(()=>{o(u)},d)},S(n))},onClose:u=>{l(),s(()=>{o(u)},S(e))}}},EO=Symbol("elForwardRef"),nH=n=>{jt(EO,{setForwardRef:t=>{n.value=t}})},rH=n=>({mounted(e){n(e)},updated(e){n(e)},unmounted(){n(null)}}),$C={current:0},DC=D(0),_O=2e3,VC=Symbol("elZIndexContextKey"),TO=Symbol("zIndexContextKey"),ng=n=>{const e=bt()?Fe(VC,$C):$C,t=n||(bt()?Fe(TO,void 0):void 0),r=z(()=>{const i=S(t);return Tt(i)?i:_O}),o=z(()=>r.value+DC.value),s=()=>(e.current++,DC.value=e.current,o.value);return!Et&&Fe(VC),{initialZIndex:r,currentZIndex:o,nextZIndex:s}};function oH(n){const e=D();function t(){if(n.value==null)return;const{selectionStart:o,selectionEnd:s,value:i}=n.value;if(o==null||s==null)return;const l=i.slice(0,Math.max(0,o)),a=i.slice(Math.max(0,s));e.value={selectionStart:o,selectionEnd:s,value:i,beforeTxt:l,afterTxt:a}}function r(){if(n.value==null||e.value==null)return;const{value:o}=n.value,{beforeTxt:s,afterTxt:i,selectionStart:l}=e.value;if(s==null||i==null||l==null)return;let a=o.length;if(o.endsWith(i))a=o.length-i.length;else if(o.startsWith(s))a=s.length;else{const c=s[l-1],u=o.indexOf(c,l-1);u!==-1&&(a=u+1)}n.value.setSelectionRange(a,a)}return[t,r]}const sH=(n,e,t)=>dh(n.subTree).filter(s=>{var i;return Pn(s)&&((i=s.type)==null?void 0:i.name)===e&&!!s.component}).map(s=>s.component.uid).map(s=>t[s]).filter(s=>!!s),iH=(n,e)=>{const t={},r=$o([]);return{children:r,addChild:i=>{t[i.uid]=i,r.value=sH(n,e,t)},removeChild:i=>{delete t[i],r.value=r.value.filter(l=>l.uid!==i)}}},si=Qp({type:String,values:Sa,required:!1}),OO=Symbol("size"),lH=()=>{const n=Fe(OO,{});return z(()=>S(n.size)||"")};function MO(n,{afterFocus:e,beforeBlur:t,afterBlur:r}={}){const o=bt(),{emit:s}=o,i=$o(),l=D(!1),a=d=>{l.value||(l.value=!0,s("focus",d),e==null||e())},c=d=>{var f;Je(t)&&t(d)||d.relatedTarget&&((f=i.value)!=null&&f.contains(d.relatedTarget))||(l.value=!1,s("blur",d),r==null||r())},u=()=>{var d;(d=n.value)==null||d.focus()};return Be(i,d=>{d&&d.setAttribute("tabindex","-1")}),xn(i,"click",u),{wrapperRef:i,isFocused:l,handleFocus:a,handleBlur:c}}const AO=Symbol("emptyValuesContextKey"),aH=["",void 0,null],cH=void 0,uH=st({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:n=>Je(n)?!n():!n}}),dH=(n,e)=>{const t=bt()?Fe(AO,D({})):D({}),r=z(()=>n.emptyValues||t.value.emptyValues||aH),o=z(()=>Je(n.valueOnClear)?n.valueOnClear():n.valueOnClear!==void 0?n.valueOnClear:Je(t.value.valueOnClear)?t.value.valueOnClear():t.value.valueOnClear!==void 0?t.value.valueOnClear:cH),s=i=>r.value.includes(i);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:s}},fH=st({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ii=n=>UT(fH,n),kO=Symbol(),Uh=D();function rg(n,e=void 0){const t=bt()?Fe(kO,Uh):Uh;return n?z(()=>{var r,o;return(o=(r=t.value)==null?void 0:r[n])!=null?o:e}):t}function og(n,e){const t=rg(),r=Xe(n,z(()=>{var l;return((l=t.value)==null?void 0:l.namespace)||Lu})),o=xs(z(()=>{var l;return(l=t.value)==null?void 0:l.locale})),s=ng(z(()=>{var l;return((l=t.value)==null?void 0:l.zIndex)||_O})),i=z(()=>{var l;return S(e)||((l=t.value)==null?void 0:l.size)||""});return hH(z(()=>S(t)||{})),{ns:r,locale:o,zIndex:s,size:i}}const hH=(n,e,t=!1)=>{var r;const o=!!bt(),s=o?rg():void 0,i=(r=void 0)!=null?r:o?jt:void 0;if(!i)return;const l=z(()=>{const a=S(n);return s!=null&&s.value?pH(s.value,a):a});return i(kO,l),i(iO,z(()=>l.value.locale)),i(lO,z(()=>l.value.namespace)),i(TO,z(()=>l.value.zIndex)),i(OO,{size:z(()=>l.value.size||"")}),i(AO,z(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(t||!Uh.value)&&(Uh.value=l.value),l},pH=(n,e)=>{const t=[...new Set([...jh(n),...jh(e)])],r={};for(const o of t)r[o]=e[o]!==void 0?e[o]:n[o];return r},BC={};var nt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t};const gH=st({size:{type:je([Number,String])},color:{type:String}}),mH=me({name:"ElIcon",inheritAttrs:!1}),vH=me({...mH,props:gH,setup(n){const e=n,t=Xe("icon"),r=z(()=>{const{size:o,color:s}=e;return!o&&!s?{}:{fontSize:Tr(o)?void 0:vo(o),"--color":s}});return(o,s)=>(A(),G("i",Ur({class:S(t).b(),style:S(r)},o.$attrs),[ke(o.$slots,"default")],16))}});var bH=nt(vH,[["__file","icon.vue"]]);const dt=Rt(bH),yH=["light","dark"],wH=st({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:jh(el),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:yH,default:"light"}}),CH={close:n=>n instanceof MouseEvent},xH=me({name:"ElAlert"}),SH=me({...xH,props:wH,emits:CH,setup(n,{emit:e}){const t=n,{Close:r}=Sy,o=qo(),s=Xe("alert"),i=D(!0),l=z(()=>el[t.type]),a=z(()=>[s.e("icon"),{[s.is("big")]:!!t.description||!!o.default}]),c=z(()=>({"with-description":t.description||o.default})),u=d=>{i.value=!1,e("close",d)};return(d,f)=>(A(),ye(Ir,{name:S(s).b("fade"),persisted:""},{default:_(()=>[Le(F("div",{class:Q([S(s).b(),S(s).m(d.type),S(s).is("center",d.center),S(s).is(d.effect)]),role:"alert"},[d.showIcon&&S(l)?(A(),ye(S(dt),{key:0,class:Q(S(a))},{default:_(()=>[(A(),ye(Bt(S(l))))]),_:1},8,["class"])):we("v-if",!0),F("div",{class:Q(S(s).e("content"))},[d.title||d.$slots.title?(A(),G("span",{key:0,class:Q([S(s).e("title"),S(c)])},[ke(d.$slots,"title",{},()=>[H(oe(d.title),1)])],2)):we("v-if",!0),d.$slots.default||d.description?(A(),G("p",{key:1,class:Q(S(s).e("description"))},[ke(d.$slots,"default",{},()=>[H(oe(d.description),1)])],2)):we("v-if",!0),d.closable?(A(),G(Re,{key:2},[d.closeText?(A(),G("div",{key:0,class:Q([S(s).e("close-btn"),S(s).is("customed")]),onClick:u},oe(d.closeText),3)):(A(),ye(S(dt),{key:1,class:Q(S(s).e("close-btn")),onClick:u},{default:_(()=>[C(S(r))]),_:1},8,["class"]))],64)):we("v-if",!0)],2)],2),[[Ue,i.value]])]),_:3},8,["name"]))}});var EH=nt(SH,[["__file","alert.vue"]]);const Ry=Rt(EH),Yc=Symbol("formContextKey"),ca=Symbol("formItemContextKey"),Co=(n,e={})=>{const t=D(void 0),r=e.prop?t:uO("size"),o=e.global?t:lH(),s=e.form?{size:void 0}:Fe(Yc,void 0),i=e.formItem?{size:void 0}:Fe(ca,void 0);return z(()=>r.value||S(n)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||o.value||"")},Jc=n=>{const e=uO("disabled"),t=Fe(Yc,void 0);return z(()=>e.value||S(n)||(t==null?void 0:t.disabled)||!1)},ml=()=>{const n=Fe(Yc,void 0),e=Fe(ca,void 0);return{form:n,formItem:e}},tf=(n,{formItemContext:e,disableIdGeneration:t,disableIdManagement:r})=>{t||(t=D(!1)),r||(r=D(!1));const o=D();let s;const i=z(()=>{var l;return!!(!(n.label||n.ariaLabel)&&e&&e.inputIds&&((l=e.inputIds)==null?void 0:l.length)<=1)});return ot(()=>{s=Be([Po(n,"id"),t],([l,a])=>{const c=l??(a?void 0:gs().value);c!==o.value&&(e!=null&&e.removeInputId&&(o.value&&e.removeInputId(o.value),!(r!=null&&r.value)&&!a&&c&&e.addInputId(c)),o.value=c)},{immediate:!0})}),ws(()=>{s&&s(),e!=null&&e.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},_H=st({size:{type:String,values:Sa},disabled:Boolean}),TH=st({..._H,model:Object,rules:{type:je(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),OH={validate:(n,e,t)=>(Ve(n)||ht(n))&&go(e)&&ht(t)};function MH(){const n=D([]),e=z(()=>{if(!n.value.length)return"0";const s=Math.max(...n.value);return s?`${s}px`:""});function t(s){const i=n.value.indexOf(s);return i===-1&&e.value,i}function r(s,i){if(s&&i){const l=t(i);n.value.splice(l,1,s)}else s&&n.value.push(s)}function o(s){const i=t(s);i>-1&&n.value.splice(i,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:o}}const Nf=(n,e)=>{const t=Vh(e);return t.length>0?n.filter(r=>r.prop&&t.includes(r.prop)):n},AH="ElForm",kH=me({name:AH}),PH=me({...kH,props:TH,emits:OH,setup(n,{expose:e,emit:t}){const r=n,o=[],s=Co(),i=Xe("form"),l=z(()=>{const{labelPosition:b,inline:y}=r;return[i.b(),i.m(s.value||"default"),{[i.m(`label-${b}`)]:b,[i.m("inline")]:y}]}),a=b=>o.find(y=>y.prop===b),c=b=>{o.push(b)},u=b=>{b.prop&&o.splice(o.indexOf(b),1)},d=(b=[])=>{r.model&&Nf(o,b).forEach(y=>y.resetField())},f=(b=[])=>{Nf(o,b).forEach(y=>y.clearValidate())},h=z(()=>!!r.model),p=b=>{if(o.length===0)return[];const y=Nf(o,b);return y.length?y:[]},g=async b=>v(void 0,b),m=async(b=[])=>{if(!h.value)return!1;const y=p(b);if(y.length===0)return!0;let x={};for(const E of y)try{await E.validate("")}catch(T){x={...x,...T}}return Object.keys(x).length===0?!0:Promise.reject(x)},v=async(b=[],y)=>{const x=!Je(y);try{const E=await m(b);return E===!0&&await(y==null?void 0:y(E)),E}catch(E){if(E instanceof Error)throw E;const T=E;return r.scrollToError&&w(Object.keys(T)[0]),await(y==null?void 0:y(!1,T)),x&&Promise.reject(T)}},w=b=>{var y;const x=Nf(o,b)[0];x&&((y=x.$el)==null||y.scrollIntoView(r.scrollIntoViewOptions))};return Be(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(b=>void 0)},{deep:!0}),jt(Yc,vt({...ei(r),emit:t,resetFields:d,clearValidate:f,validateField:v,getField:a,addField:c,removeField:u,...MH()})),e({validate:g,validateField:v,resetFields:d,clearValidate:f,scrollToField:w,fields:o}),(b,y)=>(A(),G("form",{class:Q(S(l))},[ke(b.$slots,"default")],2))}});var NH=nt(PH,[["__file","form.vue"]]);function zl(){return zl=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hh(n,e,t){return LH()?hh=Reflect.construct.bind():hh=function(o,s,i){var l=[null];l.push.apply(l,s);var a=Function.bind.apply(o,l),c=new a;return i&&gd(c,i.prototype),c},hh.apply(null,arguments)}function RH(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function _v(n){var e=typeof Map=="function"?new Map:void 0;return _v=function(r){if(r===null||!RH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,o)}function o(){return hh(r,arguments,Ev(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),gd(o,r)},_v(n)}var $H=/%[sdj%]/g,DH=function(){};function Tv(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function zr(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=s)return l;switch(l){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch{return"[Circular]"}break;default:return l}});return i}return n}function VH(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Nn(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||VH(e)&&typeof n=="string"&&!n)}function BH(n,e,t){var r=[],o=0,s=n.length;function i(l){r.push.apply(r,l||[]),o++,o===s&&t(r)}n.forEach(function(l){e(l,i)})}function FC(n,e,t){var r=0,o=n.length;function s(i){if(i&&i.length){t(i);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},pu={integer:function(e){return pu.number(e)&&parseInt(e,10)===e},float:function(e){return pu.number(e)&&!pu.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!pu.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(UC.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(WH())},hex:function(e){return typeof e=="string"&&!!e.match(UC.hex)}},GH=function(e,t,r,o,s){if(e.required&&t===void 0){PO(e,t,r,o,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;i.indexOf(l)>-1?pu[l](t)||o.push(zr(s.messages.types[l],e.fullField,e.type)):l&&typeof t!==e.type&&o.push(zr(s.messages.types[l],e.fullField,e.type))},qH=function(e,t,r,o,s){var i=typeof e.len=="number",l=typeof e.min=="number",a=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,d=null,f=typeof t=="number",h=typeof t=="string",p=Array.isArray(t);if(f?d="number":h?d="string":p&&(d="array"),!d)return!1;p&&(u=t.length),h&&(u=t.replace(c,"_").length),i?u!==e.len&&o.push(zr(s.messages[d].len,e.fullField,e.len)):l&&!a&&ue.max?o.push(zr(s.messages[d].max,e.fullField,e.max)):l&&a&&(ue.max)&&o.push(zr(s.messages[d].range,e.fullField,e.min,e.max))},Ta="enum",KH=function(e,t,r,o,s){e[Ta]=Array.isArray(e[Ta])?e[Ta]:[],e[Ta].indexOf(t)===-1&&o.push(zr(s.messages[Ta],e.fullField,e[Ta].join(", ")))},YH=function(e,t,r,o,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(zr(s.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||o.push(zr(s.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Pt={required:PO,whitespace:UH,type:GH,range:qH,enum:KH,pattern:YH},JH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t,"string")&&!e.required)return r();Pt.required(e,t,o,i,s,"string"),Nn(t,"string")||(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s),Pt.pattern(e,t,o,i,s),e.whitespace===!0&&Pt.whitespace(e,t,o,i,s))}r(i)},XH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt.type(e,t,o,i,s)}r(i)},ZH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(t===""&&(t=void 0),Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},QH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt.type(e,t,o,i,s)}r(i)},e7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),Nn(t)||Pt.type(e,t,o,i,s)}r(i)},t7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},n7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},r7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(t==null&&!e.required)return r();Pt.required(e,t,o,i,s,"array"),t!=null&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},o7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt.type(e,t,o,i,s)}r(i)},s7="enum",i7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt[s7](e,t,o,i,s)}r(i)},l7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t,"string")&&!e.required)return r();Pt.required(e,t,o,i,s),Nn(t,"string")||Pt.pattern(e,t,o,i,s)}r(i)},a7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t,"date")&&!e.required)return r();if(Pt.required(e,t,o,i,s),!Nn(t,"date")){var a;t instanceof Date?a=t:a=new Date(t),Pt.type(e,a,o,i,s),a&&Pt.range(e,a.getTime(),o,i,s)}}r(i)},c7=function(e,t,r,o,s){var i=[],l=Array.isArray(t)?"array":typeof t;Pt.required(e,t,o,i,s,l),r(i)},nm=function(e,t,r,o,s){var i=e.type,l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(Nn(t,i)&&!e.required)return r();Pt.required(e,t,o,l,s,i),Nn(t,i)||Pt.type(e,t,o,l,s)}r(l)},u7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s)}r(i)},Du={string:JH,method:XH,number:ZH,boolean:QH,regexp:e7,integer:t7,float:n7,array:r7,object:o7,enum:i7,pattern:l7,date:a7,url:nm,hex:nm,email:nm,required:c7,any:u7};function Ov(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Mv=Ov(),nf=function(){function n(t){this.rules=null,this._messages=Mv,this.define(t)}var e=n.prototype;return e.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var i=r[s];o.rules[s]=Array.isArray(i)?i:[i]})},e.messages=function(r){return r&&(this._messages=HC(Ov(),r)),this._messages},e.validate=function(r,o,s){var i=this;o===void 0&&(o={}),s===void 0&&(s=function(){});var l=r,a=o,c=s;if(typeof a=="function"&&(c=a,a={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(g){var m=[],v={};function w(y){if(Array.isArray(y)){var x;m=(x=m).concat.apply(x,y)}else m.push(y)}for(var b=0;b");const o=Xe("form"),s=D(),i=D(0),l=()=>{var u;if((u=s.value)!=null&&u.firstElementChild){const d=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},a=(u="update")=>{lt(()=>{e.default&&n.isAutoWidth&&(u==="update"?i.value=l():u==="remove"&&(t==null||t.deregisterLabelWidth(i.value)))})},c=()=>a("update");return ot(()=>{c()}),_n(()=>{a("remove")}),ba(()=>c()),Be(i,(u,d)=>{n.updateAll&&(t==null||t.registerLabelWidth(u,d))}),vr(z(()=>{var u,d;return(d=(u=s.value)==null?void 0:u.firstElementChild)!=null?d:null}),c),()=>{var u,d;if(!e)return null;const{isAutoWidth:f}=n;if(f){const h=t==null?void 0:t.autoLabelWidth,p=r==null?void 0:r.hasLabel,g={};if(p&&h&&h!=="auto"){const m=Math.max(0,Number.parseInt(h,10)-i.value),w=(r.labelPosition||t.labelPosition)==="left"?"marginRight":"marginLeft";m&&(g[w]=`${m}px`)}return C("div",{ref:s,class:[o.be("item","label-wrap")],style:g},[(u=e.default)==null?void 0:u.call(e)])}else return C(Re,{ref:s},[(d=e.default)==null?void 0:d.call(e)])}}});const p7=["role","aria-labelledby"],g7=me({name:"ElFormItem"}),m7=me({...g7,props:f7,setup(n,{expose:e}){const t=n,r=qo(),o=Fe(Yc,void 0),s=Fe(ca,void 0),i=Co(void 0,{formItem:!1}),l=Xe("form-item"),a=gs().value,c=D([]),u=D(""),d=pD(u,100),f=D(""),h=D();let p,g=!1;const m=z(()=>t.labelPosition||(o==null?void 0:o.labelPosition)),v=z(()=>{if(m.value==="top")return{};const ae=vo(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return ae?{width:ae}:{}}),w=z(()=>{if(m.value==="top"||o!=null&&o.inline)return{};if(!t.label&&!t.labelWidth&&k)return{};const ae=vo(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return!t.label&&!r.label?{marginLeft:ae}:{}}),b=z(()=>[l.b(),l.m(i.value),l.is("error",u.value==="error"),l.is("validating",u.value==="validating"),l.is("success",u.value==="success"),l.is("required",R.value||t.required),l.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:o==null?void 0:o.statusIcon,[l.m(`label-${m.value}`)]:m.value}]),y=z(()=>go(t.inlineMessage)?t.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),x=z(()=>[l.e("error"),{[l.em("error","inline")]:y.value}]),E=z(()=>t.prop?ht(t.prop)?t.prop:t.prop.join("."):""),T=z(()=>!!(t.label||r.label)),M=z(()=>t.for||(c.value.length===1?c.value[0]:void 0)),O=z(()=>!M.value&&T.value),k=!!s,P=z(()=>{const ae=o==null?void 0:o.model;if(!(!ae||!t.prop))return ch(ae,t.prop).value}),L=z(()=>{const{required:ae}=t,te=[];t.rules&&te.push(...Vh(t.rules));const ve=o==null?void 0:o.rules;if(ve&&t.prop){const Oe=ch(ve,t.prop).value;Oe&&te.push(...Vh(Oe))}if(ae!==void 0){const Oe=te.map((Ye,I)=>[Ye,I]).filter(([Ye])=>Object.keys(Ye).includes("required"));if(Oe.length>0)for(const[Ye,I]of Oe)Ye.required!==ae&&(te[I]={...Ye,required:ae});else te.push({required:ae})}return te}),j=z(()=>L.value.length>0),ce=ae=>L.value.filter(ve=>!ve.trigger||!ae?!0:Array.isArray(ve.trigger)?ve.trigger.includes(ae):ve.trigger===ae).map(({trigger:ve,...Oe})=>Oe),R=z(()=>L.value.some(ae=>ae.required)),$=z(()=>{var ae;return d.value==="error"&&t.showMessage&&((ae=o==null?void 0:o.showMessage)!=null?ae:!0)}),q=z(()=>`${t.label||""}${(o==null?void 0:o.labelSuffix)||""}`),U=ae=>{u.value=ae},W=ae=>{var te,ve;const{errors:Oe,fields:Ye}=ae;U("error"),f.value=Oe?(ve=(te=Oe==null?void 0:Oe[0])==null?void 0:te.message)!=null?ve:`${t.prop} is required`:"",o==null||o.emit("validate",t.prop,!1,f.value)},Z=()=>{U("success"),o==null||o.emit("validate",t.prop,!0,"")},le=async ae=>{const te=E.value;return new nf({[te]:ae}).validate({[te]:P.value},{firstFields:!0}).then(()=>(Z(),!0)).catch(Oe=>(W(Oe),Promise.reject(Oe)))},ee=async(ae,te)=>{if(g||!t.prop)return!1;const ve=Je(te);if(!j.value)return te==null||te(!1),!1;const Oe=ce(ae);return Oe.length===0?(te==null||te(!0),!0):(U("validating"),le(Oe).then(()=>(te==null||te(!0),!0)).catch(Ye=>{const{fields:I}=Ye;return te==null||te(!1,I),ve?!1:Promise.reject(I)}))},Me=()=>{U(""),f.value="",g=!1},ge=async()=>{const ae=o==null?void 0:o.model;if(!ae||!t.prop)return;const te=ch(ae,t.prop);g=!0,te.value=ud(p),await lt(),Me(),g=!1},be=ae=>{c.value.includes(ae)||c.value.push(ae)},Te=ae=>{c.value=c.value.filter(te=>te!==ae)};Be(()=>t.error,ae=>{f.value=ae||"",U(ae?"error":"")},{immediate:!0}),Be(()=>t.validateStatus,ae=>U(ae||""));const re=vt({...ei(t),$el:h,size:i,validateState:u,labelId:a,inputIds:c,isGroup:O,hasLabel:T,fieldValue:P,addInputId:be,removeInputId:Te,resetField:ge,clearValidate:Me,validate:ee});return jt(ca,re),ot(()=>{t.prop&&(o==null||o.addField(re),p=ud(P.value))}),_n(()=>{o==null||o.removeField(re)}),e({size:i,validateMessage:f,validateState:u,validate:ee,clearValidate:Me,resetField:ge}),(ae,te)=>{var ve;return A(),G("div",{ref_key:"formItemRef",ref:h,class:Q(S(b)),role:S(O)?"group":void 0,"aria-labelledby":S(O)?S(a):void 0},[C(S(h7),{"is-auto-width":S(v).width==="auto","update-all":((ve=S(o))==null?void 0:ve.labelWidth)==="auto"},{default:_(()=>[S(T)?(A(),ye(Bt(S(M)?"label":"div"),{key:0,id:S(a),for:S(M),class:Q(S(l).e("label")),style:wt(S(v))},{default:_(()=>[ke(ae.$slots,"label",{label:S(q)},()=>[H(oe(S(q)),1)])]),_:3},8,["id","for","class","style"])):we("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),F("div",{class:Q(S(l).e("content")),style:wt(S(w))},[ke(ae.$slots,"default"),C(PL,{name:`${S(l).namespace.value}-zoom-in-top`},{default:_(()=>[S($)?ke(ae.$slots,"error",{key:0,error:f.value},()=>[F("div",{class:Q(S(x))},oe(f.value),3)]):we("v-if",!0)]),_:3},8,["name"])],6)],10,p7)}}});var NO=nt(m7,[["__file","form-item.vue"]]);const tr=Rt(NH,{FormItem:NO}),nr=Lr(NO);let To;const v7=` - height:0 !important; - visibility:hidden !important; - ${ID()?"":"overflow:hidden !important;"} - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; -`,b7=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function y7(n){const e=window.getComputedStyle(n),t=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),o=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:b7.map(i=>`${i}:${e.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:t}}function GC(n,e=1,t){var r;To||(To=document.createElement("textarea"),document.body.appendChild(To));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:l}=y7(n);To.setAttribute("style",`${l};${v7}`),To.value=n.value||n.placeholder||"";let a=To.scrollHeight;const c={};i==="border-box"?a=a+s:i==="content-box"&&(a=a-o),To.value="";const u=To.scrollHeight-o;if(Tt(e)){let d=u*e;i==="border-box"&&(d=d+o+s),a=Math.max(d,a),c.minHeight=`${d}px`}if(Tt(t)){let d=u*t;i==="border-box"&&(d=d+o+s),a=Math.min(d,a)}return c.height=`${a}px`,(r=To.parentNode)==null||r.removeChild(To),To=void 0,c}const w7=st({id:{type:String,default:void 0},size:si,disabled:Boolean,modelValue:{type:je([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:je([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:bo},prefixIcon:{type:bo},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:je([Object,Array,String]),default:()=>Ao({})},autofocus:{type:Boolean,default:!1},...ii(["ariaLabel"])}),C7={[Ut]:n=>ht(n),input:n=>ht(n),change:n=>ht(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},x7=["role"],S7=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],E7=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],_7=me({name:"ElInput",inheritAttrs:!1}),T7=me({..._7,props:w7,emits:C7,setup(n,{expose:e,emit:t}){const r=n,o=d2(),s=qo(),i=z(()=>{const se={};return r.containerRole==="combobox"&&(se["aria-haspopup"]=o["aria-haspopup"],se["aria-owns"]=o["aria-owns"],se["aria-expanded"]=o["aria-expanded"]),se}),l=z(()=>[r.type==="textarea"?m.b():g.b(),g.m(h.value),g.is("disabled",p.value),g.is("exceed",ge.value),{[g.b("group")]:s.prepend||s.append,[g.m("prefix")]:s.prefix||r.prefixIcon,[g.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[g.bm("suffix","password-clear")]:Z.value&&le.value,[g.b("hidden")]:r.type==="hidden"},o.class]),a=z(()=>[g.e("wrapper"),g.is("focus",k.value)]),c=oO({excludeKeys:z(()=>Object.keys(i.value))}),{form:u,formItem:d}=ml(),{inputId:f}=tf(r,{formItemContext:d}),h=Co(),p=Jc(),g=Xe("input"),m=Xe("textarea"),v=$o(),w=$o(),b=D(!1),y=D(!1),x=D(!1),E=D(),T=$o(r.inputStyle),M=z(()=>v.value||w.value),{wrapperRef:O,isFocused:k,handleFocus:P,handleBlur:L}=MO(M,{afterBlur(){var se;r.validateEvent&&((se=d==null?void 0:d.validate)==null||se.call(d,"blur").catch(ne=>void 0))}}),j=z(()=>{var se;return(se=u==null?void 0:u.statusIcon)!=null?se:!1}),ce=z(()=>(d==null?void 0:d.validateState)||""),R=z(()=>ce.value&&tO[ce.value]),$=z(()=>x.value?Tz:fz),q=z(()=>[o.style]),U=z(()=>[r.inputStyle,T.value,{resize:r.resize}]),W=z(()=>as(r.modelValue)?"":String(r.modelValue)),Z=z(()=>r.clearable&&!p.value&&!r.readonly&&!!W.value&&(k.value||b.value)),le=z(()=>r.showPassword&&!p.value&&!r.readonly&&!!W.value&&(!!W.value||k.value)),ee=z(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),Me=z(()=>W.value.length),ge=z(()=>!!ee.value&&Me.value>Number(r.maxlength)),be=z(()=>!!s.suffix||!!r.suffixIcon||Z.value||r.showPassword||ee.value||!!ce.value&&j.value),[Te,re]=oH(v);vr(w,se=>{if(ve(),!ee.value||r.resize!=="both")return;const ne=se[0],{width:de}=ne.contentRect;E.value={right:`calc(100% - ${de+15+6}px)`}});const ae=()=>{const{type:se,autosize:ne}=r;if(!(!Et||se!=="textarea"||!w.value))if(ne){const de=gt(ne)?ne.minRows:void 0,We=gt(ne)?ne.maxRows:void 0,Ze=GC(w.value,de,We);T.value={overflowY:"hidden",...Ze},lt(()=>{w.value.offsetHeight,T.value=Ze})}else T.value={minHeight:GC(w.value).minHeight}},ve=(se=>{let ne=!1;return()=>{var de;if(ne||!r.autosize)return;((de=w.value)==null?void 0:de.offsetParent)===null||(se(),ne=!0)}})(ae),Oe=()=>{const se=M.value,ne=r.formatter?r.formatter(W.value):W.value;!se||se.value===ne||(se.value=ne)},Ye=async se=>{Te();let{value:ne}=se.target;if(r.formatter&&(ne=r.parser?r.parser(ne):ne),!y.value){if(ne===W.value){Oe();return}t(Ut,ne),t("input",ne),await lt(),Oe(),re()}},I=se=>{t("change",se.target.value)},N=se=>{t("compositionstart",se),y.value=!0},X=se=>{var ne;t("compositionupdate",se);const de=(ne=se.target)==null?void 0:ne.value,We=de[de.length-1]||"";y.value=!rO(We)},pe=se=>{t("compositionend",se),y.value&&(y.value=!1,Ye(se))},fe=()=>{x.value=!x.value,_e()},_e=async()=>{var se;await lt(),(se=M.value)==null||se.focus()},xe=()=>{var se;return(se=M.value)==null?void 0:se.blur()},V=se=>{b.value=!1,t("mouseleave",se)},B=se=>{b.value=!0,t("mouseenter",se)},J=se=>{t("keydown",se)},ue=()=>{var se;(se=M.value)==null||se.select()},Pe=()=>{t(Ut,""),t("change",""),t("clear"),t("input","")};return Be(()=>r.modelValue,()=>{var se;lt(()=>ae()),r.validateEvent&&((se=d==null?void 0:d.validate)==null||se.call(d,"change").catch(ne=>void 0))}),Be(W,()=>Oe()),Be(()=>r.type,async()=>{await lt(),Oe(),ae()}),ot(()=>{!r.formatter&&r.parser,Oe(),lt(ae)}),Or({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},z(()=>!!r.label)),e({input:v,textarea:w,ref:M,textareaStyle:U,autosize:Po(r,"autosize"),focus:_e,blur:xe,select:ue,clear:Pe,resizeTextarea:ae}),(se,ne)=>(A(),G("div",Ur(S(i),{class:[S(l),{[S(g).bm("group","append")]:se.$slots.append,[S(g).bm("group","prepend")]:se.$slots.prepend}],style:S(q),role:se.containerRole,onMouseenter:B,onMouseleave:V}),[we(" input "),se.type!=="textarea"?(A(),G(Re,{key:0},[we(" prepend slot "),se.$slots.prepend?(A(),G("div",{key:0,class:Q(S(g).be("group","prepend"))},[ke(se.$slots,"prepend")],2)):we("v-if",!0),F("div",{ref_key:"wrapperRef",ref:O,class:Q(S(a))},[we(" prefix slot "),se.$slots.prefix||se.prefixIcon?(A(),G("span",{key:0,class:Q(S(g).e("prefix"))},[F("span",{class:Q(S(g).e("prefix-inner"))},[ke(se.$slots,"prefix"),se.prefixIcon?(A(),ye(S(dt),{key:0,class:Q(S(g).e("icon"))},{default:_(()=>[(A(),ye(Bt(se.prefixIcon)))]),_:1},8,["class"])):we("v-if",!0)],2)],2)):we("v-if",!0),F("input",Ur({id:S(f),ref_key:"input",ref:v,class:S(g).e("inner")},S(c),{minlength:se.minlength,maxlength:se.maxlength,type:se.showPassword?x.value?"text":"password":se.type,disabled:S(p),readonly:se.readonly,autocomplete:se.autocomplete,tabindex:se.tabindex,"aria-label":se.label||se.ariaLabel,placeholder:se.placeholder,style:se.inputStyle,form:se.form,autofocus:se.autofocus,onCompositionstart:N,onCompositionupdate:X,onCompositionend:pe,onInput:Ye,onFocus:ne[0]||(ne[0]=(...de)=>S(P)&&S(P)(...de)),onBlur:ne[1]||(ne[1]=(...de)=>S(L)&&S(L)(...de)),onChange:I,onKeydown:J}),null,16,S7),we(" suffix slot "),S(be)?(A(),G("span",{key:1,class:Q(S(g).e("suffix"))},[F("span",{class:Q(S(g).e("suffix-inner"))},[!S(Z)||!S(le)||!S(ee)?(A(),G(Re,{key:0},[ke(se.$slots,"suffix"),se.suffixIcon?(A(),ye(S(dt),{key:0,class:Q(S(g).e("icon"))},{default:_(()=>[(A(),ye(Bt(se.suffixIcon)))]),_:1},8,["class"])):we("v-if",!0)],64)):we("v-if",!0),S(Z)?(A(),ye(S(dt),{key:1,class:Q([S(g).e("icon"),S(g).e("clear")]),onMousedown:It(S(pn),["prevent"]),onClick:Pe},{default:_(()=>[C(S(wy))]),_:1},8,["class","onMousedown"])):we("v-if",!0),S(le)?(A(),ye(S(dt),{key:2,class:Q([S(g).e("icon"),S(g).e("password")]),onClick:fe},{default:_(()=>[(A(),ye(Bt(S($))))]),_:1},8,["class"])):we("v-if",!0),S(ee)?(A(),G("span",{key:3,class:Q(S(g).e("count"))},[F("span",{class:Q(S(g).e("count-inner"))},oe(S(Me))+" / "+oe(se.maxlength),3)],2)):we("v-if",!0),S(ce)&&S(R)&&S(j)?(A(),ye(S(dt),{key:4,class:Q([S(g).e("icon"),S(g).e("validateIcon"),S(g).is("loading",S(ce)==="validating")])},{default:_(()=>[(A(),ye(Bt(S(R))))]),_:1},8,["class"])):we("v-if",!0)],2)],2)):we("v-if",!0)],2),we(" append slot "),se.$slots.append?(A(),G("div",{key:1,class:Q(S(g).be("group","append"))},[ke(se.$slots,"append")],2)):we("v-if",!0)],64)):(A(),G(Re,{key:1},[we(" textarea "),F("textarea",Ur({id:S(f),ref_key:"textarea",ref:w,class:[S(m).e("inner"),S(g).is("focus",S(k))]},S(c),{minlength:se.minlength,maxlength:se.maxlength,tabindex:se.tabindex,disabled:S(p),readonly:se.readonly,autocomplete:se.autocomplete,style:S(U),"aria-label":se.label||se.ariaLabel,placeholder:se.placeholder,form:se.form,autofocus:se.autofocus,onCompositionstart:N,onCompositionupdate:X,onCompositionend:pe,onInput:Ye,onFocus:ne[2]||(ne[2]=(...de)=>S(P)&&S(P)(...de)),onBlur:ne[3]||(ne[3]=(...de)=>S(L)&&S(L)(...de)),onChange:I,onKeydown:J}),null,16,E7),S(ee)?(A(),G("span",{key:0,style:wt(E.value),class:Q(S(g).e("count"))},oe(S(Me))+" / "+oe(se.maxlength),7)):we("v-if",!0)],64))],16,x7))}});var O7=nt(T7,[["__file","input.vue"]]);const wn=Rt(O7),Oa=4,M7={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},A7=({move:n,size:e,bar:t})=>({[t.size]:e,transform:`translate${t.axis}(${n}%)`}),$y=Symbol("scrollbarContextKey"),k7=st({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),P7="Thumb",N7=me({__name:"thumb",props:k7,setup(n){const e=n,t=Fe($y),r=Xe("scrollbar");t||pl(P7,"can not inject scrollbar context");const o=D(),s=D(),i=D({}),l=D(!1);let a=!1,c=!1,u=Et?document.onselectstart:null;const d=z(()=>M7[e.vertical?"vertical":"horizontal"]),f=z(()=>A7({size:e.size,move:e.move,bar:d.value})),h=z(()=>o.value[d.value.offset]**2/t.wrapElement[d.value.scrollSize]/e.ratio/s.value[d.value.offset]),p=E=>{var T;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(T=window.getSelection())==null||T.removeAllRanges(),m(E);const M=E.currentTarget;M&&(i.value[d.value.axis]=M[d.value.offset]-(E[d.value.client]-M.getBoundingClientRect()[d.value.direction]))},g=E=>{if(!s.value||!o.value||!t.wrapElement)return;const T=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),M=s.value[d.value.offset]/2,O=(T-M)*100*h.value/o.value[d.value.offset];t.wrapElement[d.value.scroll]=O*t.wrapElement[d.value.scrollSize]/100},m=E=>{E.stopImmediatePropagation(),a=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",w),u=document.onselectstart,document.onselectstart=()=>!1},v=E=>{if(!o.value||!s.value||a===!1)return;const T=i.value[d.value.axis];if(!T)return;const M=(o.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,O=s.value[d.value.offset]-T,k=(M-O)*100*h.value/o.value[d.value.offset];t.wrapElement[d.value.scroll]=k*t.wrapElement[d.value.scrollSize]/100},w=()=>{a=!1,i.value[d.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",w),x(),c&&(l.value=!1)},b=()=>{c=!1,l.value=!!e.size},y=()=>{c=!0,l.value=a};_n(()=>{x(),document.removeEventListener("mouseup",w)});const x=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return xn(Po(t,"scrollbarElement"),"mousemove",b),xn(Po(t,"scrollbarElement"),"mouseleave",y),(E,T)=>(A(),ye(Ir,{name:S(r).b("fade"),persisted:""},{default:_(()=>[Le(F("div",{ref_key:"instance",ref:o,class:Q([S(r).e("bar"),S(r).is(S(d).key)]),onMousedown:g},[F("div",{ref_key:"thumb",ref:s,class:Q(S(r).e("thumb")),style:wt(S(f)),onMousedown:p},null,38)],34),[[Ue,E.always||l.value]])]),_:1},8,["name"]))}});var qC=nt(N7,[["__file","thumb.vue"]]);const I7=st({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),L7=me({__name:"bar",props:I7,setup(n,{expose:e}){const t=n,r=Fe($y),o=D(0),s=D(0),i=D(""),l=D(""),a=D(1),c=D(1);return e({handleScroll:f=>{if(f){const h=f.offsetHeight-Oa,p=f.offsetWidth-Oa;s.value=f.scrollTop*100/h*a.value,o.value=f.scrollLeft*100/p*c.value}},update:()=>{const f=r==null?void 0:r.wrapElement;if(!f)return;const h=f.offsetHeight-Oa,p=f.offsetWidth-Oa,g=h**2/f.scrollHeight,m=p**2/f.scrollWidth,v=Math.max(g,t.minSize),w=Math.max(m,t.minSize);a.value=g/(h-g)/(v/(h-v)),c.value=m/(p-m)/(w/(p-w)),l.value=v+Oa(A(),G(Re,null,[C(qC,{move:o.value,ratio:c.value,size:i.value,always:f.always},null,8,["move","ratio","size","always"]),C(qC,{move:s.value,ratio:a.value,size:l.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var R7=nt(L7,[["__file","bar.vue"]]);const $7=st({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:je([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...ii(["ariaLabel","ariaOrientation"])}),D7={scroll:({scrollTop:n,scrollLeft:e})=>[n,e].every(Tt)},V7="ElScrollbar",B7=me({name:V7}),F7=me({...B7,props:$7,emits:D7,setup(n,{expose:e,emit:t}){const r=n,o=Xe("scrollbar");let s,i;const l=D(),a=D(),c=D(),u=D(),d=z(()=>{const b={};return r.height&&(b.height=vo(r.height)),r.maxHeight&&(b.maxHeight=vo(r.maxHeight)),[r.wrapStyle,b]}),f=z(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),h=z(()=>[o.e("view"),r.viewClass]),p=()=>{var b;a.value&&((b=u.value)==null||b.handleScroll(a.value),t("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function g(b,y){gt(b)?a.value.scrollTo(b):Tt(b)&&Tt(y)&&a.value.scrollTo(b,y)}const m=b=>{Tt(b)&&(a.value.scrollTop=b)},v=b=>{Tt(b)&&(a.value.scrollLeft=b)},w=()=>{var b;(b=u.value)==null||b.update()};return Be(()=>r.noresize,b=>{b?(s==null||s(),i==null||i()):({stop:s}=vr(c,w),i=xn("resize",w))},{immediate:!0}),Be(()=>[r.maxHeight,r.height],()=>{r.native||lt(()=>{var b;w(),a.value&&((b=u.value)==null||b.handleScroll(a.value))})}),jt($y,vt({scrollbarElement:l,wrapElement:a})),ot(()=>{r.native||lt(()=>{w()})}),ba(()=>w()),e({wrapRef:a,update:w,scrollTo:g,setScrollTop:m,setScrollLeft:v,handleScroll:p}),(b,y)=>(A(),G("div",{ref_key:"scrollbarRef",ref:l,class:Q(S(o).b())},[F("div",{ref_key:"wrapRef",ref:a,class:Q(S(f)),style:wt(S(d)),onScroll:p},[(A(),ye(Bt(b.tag),{id:b.id,ref_key:"resizeRef",ref:c,class:Q(S(h)),style:wt(b.viewStyle),role:b.role,"aria-label":b.ariaLabel,"aria-orientation":b.ariaOrientation},{default:_(()=>[ke(b.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),b.native?we("v-if",!0):(A(),ye(R7,{key:0,ref_key:"barRef",ref:u,always:b.always,"min-size":b.minSize},null,8,["always","min-size"]))],2))}});var z7=nt(F7,[["__file","scrollbar.vue"]]);const sg=Rt(z7),Dy=Symbol("popper"),IO=Symbol("popperContent"),j7=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],LO=st({role:{type:String,values:j7,default:"tooltip"}}),H7=me({name:"ElPopper",inheritAttrs:!1}),U7=me({...H7,props:LO,setup(n,{expose:e}){const t=n,r=D(),o=D(),s=D(),i=D(),l=z(()=>t.role),a={triggerRef:r,popperInstanceRef:o,contentRef:s,referenceRef:i,role:l};return e(a),jt(Dy,a),(c,u)=>ke(c.$slots,"default")}});var W7=nt(U7,[["__file","popper.vue"]]);const RO=st({arrowOffset:{type:Number,default:5}}),G7=me({name:"ElPopperArrow",inheritAttrs:!1}),q7=me({...G7,props:RO,setup(n,{expose:e}){const t=n,r=Xe("popper"),{arrowOffset:o,arrowRef:s,arrowStyle:i}=Fe(IO,void 0);return Be(()=>t.arrowOffset,l=>{o.value=l}),_n(()=>{s.value=void 0}),e({arrowRef:s}),(l,a)=>(A(),G("span",{ref_key:"arrowRef",ref:s,class:Q(S(r).e("arrow")),style:wt(S(i)),"data-popper-arrow":""},null,6))}});var K7=nt(q7,[["__file","arrow.vue"]]);const Y7="ElOnlyChild",J7=me({name:Y7,setup(n,{slots:e,attrs:t}){var r;const o=Fe(EO),s=rH((r=o==null?void 0:o.setForwardRef)!=null?r:pn);return()=>{var i;const l=(i=e.default)==null?void 0:i.call(e,t);if(!l||l.length>1)return null;const a=$O(l);return a?Le(Ks(a,t),[[s]]):null}}});function $O(n){if(!n)return null;const e=n;for(const t of e){if(gt(t))switch(t.type){case Jn:continue;case ya:case"svg":return KC(t);case Re:return $O(t.children);default:return t}return KC(t)}return null}function KC(n){const e=Xe("only-child");return C("span",{class:e.e("content")},[n])}const DO=st({virtualRef:{type:je(Object)},virtualTriggering:Boolean,onMouseenter:{type:je(Function)},onMouseleave:{type:je(Function)},onClick:{type:je(Function)},onKeydown:{type:je(Function)},onFocus:{type:je(Function)},onBlur:{type:je(Function)},onContextmenu:{type:je(Function)},id:String,open:Boolean}),X7=me({name:"ElPopperTrigger",inheritAttrs:!1}),Z7=me({...X7,props:DO,setup(n,{expose:e}){const t=n,{role:r,triggerRef:o}=Fe(Dy,void 0);nH(o);const s=z(()=>l.value?t.id:void 0),i=z(()=>{if(r&&r.value==="tooltip")return t.open&&t.id?t.id:void 0}),l=z(()=>{if(r&&r.value!=="tooltip")return r.value}),a=z(()=>l.value?`${t.open}`:void 0);let c;return ot(()=>{Be(()=>t.virtualRef,u=>{u&&(o.value=zs(u))},{immediate:!0}),Be(o,(u,d)=>{c==null||c(),c=void 0,mo(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var h;const p=t[f];p&&(u.addEventListener(f.slice(2).toLowerCase(),p),(h=d==null?void 0:d.removeEventListener)==null||h.call(d,f.slice(2).toLowerCase(),p))}),c=Be([s,i,l,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{as(f[p])?u.removeAttribute(h):u.setAttribute(h,f[p])})},{immediate:!0})),mo(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>d.removeAttribute(f))},{immediate:!0})}),_n(()=>{c==null||c(),c=void 0}),e({triggerRef:o}),(u,d)=>u.virtualTriggering?we("v-if",!0):(A(),ye(S(J7),Ur({key:0},u.$attrs,{"aria-controls":S(s),"aria-describedby":S(i),"aria-expanded":S(a),"aria-haspopup":S(l)}),{default:_(()=>[ke(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Q7=nt(Z7,[["__file","trigger.vue"]]);const rm="focus-trap.focus-after-trapped",om="focus-trap.focus-after-released",e9="focus-trap.focusout-prevented",YC={cancelable:!0,bubbles:!1},t9={cancelable:!0,bubbles:!1},JC="focusAfterTrapped",XC="focusAfterReleased",VO=Symbol("elFocusTrap"),Vy=D(),ig=D(0),By=D(0);let Lf=0;const BO=n=>{const e=[],t=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e},ZC=(n,e)=>{for(const t of n)if(!n9(t,e))return t},n9=(n,e)=>{if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(e&&n===e)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1},r9=n=>{const e=BO(n),t=ZC(e,n),r=ZC(e.reverse(),n);return[t,r]},o9=n=>n instanceof HTMLInputElement&&"select"in n,wi=(n,e)=>{if(n&&n.focus){const t=document.activeElement;n.focus({preventScroll:!0}),By.value=window.performance.now(),n!==t&&o9(n)&&e&&n.select()}};function QC(n,e){const t=[...n],r=n.indexOf(e);return r!==-1&&t.splice(r,1),t}const s9=()=>{let n=[];return{push:r=>{const o=n[0];o&&r!==o&&o.pause(),n=QC(n,r),n.unshift(r)},remove:r=>{var o,s;n=QC(n,r),(s=(o=n[0])==null?void 0:o.resume)==null||s.call(o)}}},i9=(n,e=!1)=>{const t=document.activeElement;for(const r of n)if(wi(r,e),document.activeElement!==t)return},ex=s9(),l9=()=>ig.value>By.value,Rf=()=>{Vy.value="pointer",ig.value=window.performance.now()},tx=()=>{Vy.value="keyboard",ig.value=window.performance.now()},a9=()=>(ot(()=>{Lf===0&&(document.addEventListener("mousedown",Rf),document.addEventListener("touchstart",Rf),document.addEventListener("keydown",tx)),Lf++}),_n(()=>{Lf--,Lf<=0&&(document.removeEventListener("mousedown",Rf),document.removeEventListener("touchstart",Rf),document.removeEventListener("keydown",tx))}),{focusReason:Vy,lastUserFocusTimestamp:ig,lastAutomatedFocusTimestamp:By}),$f=n=>new CustomEvent(e9,{...t9,detail:n}),c9=me({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[JC,XC,"focusin","focusout","focusout-prevented","release-requested"],setup(n,{emit:e}){const t=D();let r,o;const{focusReason:s}=a9();Xj(p=>{n.trapped&&!i.paused&&e("release-requested",p)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=p=>{if(!n.loop&&!n.trapped||i.paused)return;const{key:g,altKey:m,ctrlKey:v,metaKey:w,currentTarget:b,shiftKey:y}=p,{loop:x}=n,E=g===Cn.tab&&!m&&!v&&!w,T=document.activeElement;if(E&&T){const M=b,[O,k]=r9(M);if(O&&k){if(!y&&T===k){const L=$f({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||(p.preventDefault(),x&&wi(O,!0))}else if(y&&[O,M].includes(T)){const L=$f({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||(p.preventDefault(),x&&wi(k,!0))}}else if(T===M){const L=$f({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||p.preventDefault()}}};jt(VO,{focusTrapRef:t,onKeydown:l}),Be(()=>n.focusTrapEl,p=>{p&&(t.value=p)},{immediate:!0}),Be([t],([p],[g])=>{p&&(p.addEventListener("keydown",l),p.addEventListener("focusin",u),p.addEventListener("focusout",d)),g&&(g.removeEventListener("keydown",l),g.removeEventListener("focusin",u),g.removeEventListener("focusout",d))});const a=p=>{e(JC,p)},c=p=>e(XC,p),u=p=>{const g=S(t);if(!g)return;const m=p.target,v=p.relatedTarget,w=m&&g.contains(m);n.trapped||v&&g.contains(v)||(r=v),w&&e("focusin",p),!i.paused&&n.trapped&&(w?o=m:wi(o,!0))},d=p=>{const g=S(t);if(!(i.paused||!g))if(n.trapped){const m=p.relatedTarget;!as(m)&&!g.contains(m)&&setTimeout(()=>{if(!i.paused&&n.trapped){const v=$f({focusReason:s.value});e("focusout-prevented",v),v.defaultPrevented||wi(o,!0)}},0)}else{const m=p.target;m&&g.contains(m)||e("focusout",p)}};async function f(){await lt();const p=S(t);if(p){ex.push(i);const g=p.contains(document.activeElement)?r:document.activeElement;if(r=g,!p.contains(g)){const v=new Event(rm,YC);p.addEventListener(rm,a),p.dispatchEvent(v),v.defaultPrevented||lt(()=>{let w=n.focusStartEl;ht(w)||(wi(w),document.activeElement!==w&&(w="first")),w==="first"&&i9(BO(p),!0),(document.activeElement===g||w==="container")&&wi(p)})}}}function h(){const p=S(t);if(p){p.removeEventListener(rm,a);const g=new CustomEvent(om,{...YC,detail:{focusReason:s.value}});p.addEventListener(om,c),p.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!l9()||p.contains(document.activeElement))&&wi(r??document.body),p.removeEventListener(om,c),ex.remove(i)}}return ot(()=>{n.trapped&&f(),Be(()=>n.trapped,p=>{p?f():h()})}),_n(()=>{n.trapped&&h()}),{onKeydown:l}}});function u9(n,e,t,r,o,s){return ke(n.$slots,"default",{handleKeydown:n.onKeydown})}var lg=nt(c9,[["render",u9],["__file","focus-trap.vue"]]);const d9=["fixed","absolute"],f9=st({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:je(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:eg,default:"bottom"},popperOptions:{type:je(Object),default:()=>({})},strategy:{type:String,values:d9,default:"absolute"}}),FO=st({...f9,id:String,style:{type:je([String,Array,Object])},className:{type:je([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:je([String,Array,Object])},popperStyle:{type:je([String,Array,Object])},referenceEl:{type:je(Object)},triggerTargetEl:{type:je(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ii(["ariaLabel"])}),h9={mouseenter:n=>n instanceof MouseEvent,mouseleave:n=>n instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},p9=(n,e=[])=>{const{placement:t,strategy:r,popperOptions:o}=n,s={placement:t,strategy:r,...o,modifiers:[...m9(n),...e]};return v9(s,o==null?void 0:o.modifiers),s},g9=n=>{if(Et)return zs(n)};function m9(n){const{offset:e,gpuAcceleration:t,fallbackPlacements:r}=n;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:t}}]}function v9(n,e){e&&(n.modifiers=[...n.modifiers,...e??[]])}const b9=0,y9=n=>{const{popperInstanceRef:e,contentRef:t,triggerRef:r,role:o}=Fe(Dy,void 0),s=D(),i=D(),l=z(()=>({name:"eventListeners",enabled:!!n.visible})),a=z(()=>{var v;const w=S(s),b=(v=S(i))!=null?v:b9;return{name:"arrow",enabled:!jT(w),options:{element:w,padding:b}}}),c=z(()=>({onFirstUpdate:()=>{p()},...p9(n,[S(a),S(l)])})),u=z(()=>g9(n.referenceEl)||S(r)),{attributes:d,state:f,styles:h,update:p,forceUpdate:g,instanceRef:m}=Kj(u,t,c);return Be(m,v=>e.value=v),ot(()=>{Be(()=>{var v;return(v=S(u))==null?void 0:v.getBoundingClientRect()},()=>{p()})}),{attributes:d,arrowRef:s,contentRef:t,instanceRef:m,state:f,styles:h,role:o,forceUpdate:g,update:p}},w9=(n,{attributes:e,styles:t,role:r})=>{const{nextZIndex:o}=ng(),s=Xe("popper"),i=z(()=>S(e).popper),l=D(Tt(n.zIndex)?n.zIndex:o()),a=z(()=>[s.b(),s.is("pure",n.pure),s.is(n.effect),n.popperClass]),c=z(()=>[{zIndex:S(l)},S(t).popper,n.popperStyle||{}]),u=z(()=>r.value==="dialog"?"false":void 0),d=z(()=>S(t).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:i,contentClass:a,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=Tt(n.zIndex)?n.zIndex:o()}}},C9=(n,e)=>{const t=D(!1),r=D();return{focusStartRef:r,trapped:t,onFocusAfterReleased:c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:c=>{n.visible&&!t.value&&(c.target&&(r.value=c.target),t.value=!0)},onFocusoutPrevented:c=>{n.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),t.value=!1)},onReleaseRequested:()=>{t.value=!1,e("close")}}},x9=me({name:"ElPopperContent"}),S9=me({...x9,props:FO,emits:h9,setup(n,{expose:e,emit:t}){const r=n,{focusStartRef:o,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:a,onFocusoutPrevented:c,onReleaseRequested:u}=C9(r,t),{attributes:d,arrowRef:f,contentRef:h,styles:p,instanceRef:g,role:m,update:v}=y9(r),{ariaModal:w,arrowStyle:b,contentAttrs:y,contentClass:x,contentStyle:E,updateZIndex:T}=w9(r,{styles:p,attributes:d,role:m}),M=Fe(ca,void 0),O=D();jt(IO,{arrowStyle:b,arrowRef:f,arrowOffset:O}),M&&jt(ca,{...M,addInputId:pn,removeInputId:pn});let k;const P=(j=!0)=>{v(),j&&T()},L=()=>{P(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return ot(()=>{Be(()=>r.triggerTargetEl,(j,ce)=>{k==null||k(),k=void 0;const R=S(j||h.value),$=S(ce||h.value);mo(R)&&(k=Be([m,()=>r.ariaLabel,w,()=>r.id],q=>{["role","aria-label","aria-modal","id"].forEach((U,W)=>{as(q[W])?R.removeAttribute(U):R.setAttribute(U,q[W])})},{immediate:!0})),$!==R&&mo($)&&["role","aria-label","aria-modal","id"].forEach(q=>{$.removeAttribute(q)})},{immediate:!0}),Be(()=>r.visible,L,{immediate:!0})}),_n(()=>{k==null||k(),k=void 0}),e({popperContentRef:h,popperInstanceRef:g,updatePopper:P,contentStyle:E}),(j,ce)=>(A(),G("div",Ur({ref_key:"contentRef",ref:h},S(y),{style:S(E),class:S(x),tabindex:"-1",onMouseenter:ce[0]||(ce[0]=R=>j.$emit("mouseenter",R)),onMouseleave:ce[1]||(ce[1]=R=>j.$emit("mouseleave",R))}),[C(S(lg),{trapped:S(s),"trap-on-focus-in":!0,"focus-trap-el":S(h),"focus-start-el":S(o),onFocusAfterTrapped:S(l),onFocusAfterReleased:S(i),onFocusin:S(a),onFocusoutPrevented:S(c),onReleaseRequested:S(u)},{default:_(()=>[ke(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var E9=nt(S9,[["__file","content.vue"]]);const _9=Rt(W7),Fy=Symbol("elTooltip"),Br=st({...eH,...FO,appendTo:{type:je([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:je(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ii(["ariaLabel"])}),md=st({...DO,disabled:Boolean,trigger:{type:je([String,Array]),default:"hover"},triggerKeys:{type:je(Array),default:()=>[Cn.enter,Cn.space]}}),{useModelToggleProps:T9,useModelToggleEmits:O9,useModelToggle:M9}=cO("visible"),A9=st({...LO,...T9,...Br,...md,...RO,showArrow:{type:Boolean,default:!0}}),k9=[...O9,"before-show","before-hide","show","hide","open","close"],P9=(n,e)=>Ve(n)?n.includes(e):n===e,Ma=(n,e,t)=>r=>{P9(S(n),e)&&t(r)},N9=me({name:"ElTooltipTrigger"}),I9=me({...N9,props:md,setup(n,{expose:e}){const t=n,r=Xe("tooltip"),{controlled:o,id:s,open:i,onOpen:l,onClose:a,onToggle:c}=Fe(Fy,void 0),u=D(null),d=()=>{if(S(o)||t.disabled)return!0},f=Po(t,"trigger"),h=Ds(d,Ma(f,"hover",l)),p=Ds(d,Ma(f,"hover",a)),g=Ds(d,Ma(f,"click",y=>{y.button===0&&c(y)})),m=Ds(d,Ma(f,"focus",l)),v=Ds(d,Ma(f,"focus",a)),w=Ds(d,Ma(f,"contextmenu",y=>{y.preventDefault(),c(y)})),b=Ds(d,y=>{const{code:x}=y;t.triggerKeys.includes(x)&&(y.preventDefault(),c(y))});return e({triggerRef:u}),(y,x)=>(A(),ye(S(Q7),{id:S(s),"virtual-ref":y.virtualRef,open:S(i),"virtual-triggering":y.virtualTriggering,class:Q(S(r).e("trigger")),onBlur:S(v),onClick:S(g),onContextmenu:S(w),onFocus:S(m),onMouseenter:S(h),onMouseleave:S(p),onKeydown:S(b)},{default:_(()=>[ke(y.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var L9=nt(I9,[["__file","trigger.vue"]]);const R9=me({name:"ElTooltipContent",inheritAttrs:!1}),$9=me({...R9,props:Br,setup(n,{expose:e}){const t=n,{selector:r}=SO(),o=Xe("tooltip"),s=D(null),i=D(!1),{controlled:l,id:a,open:c,trigger:u,onClose:d,onOpen:f,onShow:h,onHide:p,onBeforeShow:g,onBeforeHide:m}=Fe(Fy,void 0),v=z(()=>t.transition||`${o.namespace.value}-fade-in-linear`),w=z(()=>t.persistent);_n(()=>{i.value=!0});const b=z(()=>S(w)?!0:S(c)),y=z(()=>t.disabled?!1:S(c)),x=z(()=>t.appendTo||r.value),E=z(()=>{var q;return(q=t.style)!=null?q:{}}),T=z(()=>!S(c)),M=()=>{p()},O=()=>{if(S(l))return!0},k=Ds(O,()=>{t.enterable&&S(u)==="hover"&&f()}),P=Ds(O,()=>{S(u)==="hover"&&d()}),L=()=>{var q,U;(U=(q=s.value)==null?void 0:q.updatePopper)==null||U.call(q),g==null||g()},j=()=>{m==null||m()},ce=()=>{h(),$=bD(z(()=>{var q;return(q=s.value)==null?void 0:q.popperContentRef}),()=>{if(S(l))return;S(u)!=="hover"&&d()})},R=()=>{t.virtualTriggering||d()};let $;return Be(()=>S(c),q=>{q||$==null||$()},{flush:"post"}),Be(()=>t.content,()=>{var q,U;(U=(q=s.value)==null?void 0:q.updatePopper)==null||U.call(q)}),e({contentRef:s}),(q,U)=>(A(),ye(jd,{disabled:!q.teleported,to:S(x)},[C(Ir,{name:S(v),onAfterLeave:M,onBeforeEnter:L,onAfterEnter:ce,onBeforeLeave:j},{default:_(()=>[S(b)?Le((A(),ye(S(E9),Ur({key:0,id:S(a),ref_key:"contentRef",ref:s},q.$attrs,{"aria-label":q.ariaLabel,"aria-hidden":S(T),"boundaries-padding":q.boundariesPadding,"fallback-placements":q.fallbackPlacements,"gpu-acceleration":q.gpuAcceleration,offset:q.offset,placement:q.placement,"popper-options":q.popperOptions,strategy:q.strategy,effect:q.effect,enterable:q.enterable,pure:q.pure,"popper-class":q.popperClass,"popper-style":[q.popperStyle,S(E)],"reference-el":q.referenceEl,"trigger-target-el":q.triggerTargetEl,visible:S(y),"z-index":q.zIndex,onMouseenter:S(k),onMouseleave:S(P),onBlur:R,onClose:S(d)}),{default:_(()=>[i.value?we("v-if",!0):ke(q.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Ue,S(y)]]):we("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var D9=nt($9,[["__file","content.vue"]]);const V9=["innerHTML"],B9={key:1},F9=me({name:"ElTooltip"}),z9=me({...F9,props:A9,emits:k9,setup(n,{expose:e,emit:t}){const r=n;Qj();const o=gs(),s=D(),i=D(),l=()=>{var v;const w=S(s);w&&((v=w.popperInstanceRef)==null||v.update())},a=D(!1),c=D(),{show:u,hide:d,hasUpdateHandler:f}=M9({indicator:a,toggleReason:c}),{onOpen:h,onClose:p}=tH({showAfter:Po(r,"showAfter"),hideAfter:Po(r,"hideAfter"),autoClose:Po(r,"autoClose"),open:u,close:d}),g=z(()=>go(r.visible)&&!f.value);jt(Fy,{controlled:g,id:o,open:Vd(a),trigger:Po(r,"trigger"),onOpen:v=>{h(v)},onClose:v=>{p(v)},onToggle:v=>{S(a)?p(v):h(v)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:l}),Be(()=>r.disabled,v=>{v&&a.value&&(a.value=!1)});const m=v=>{var w,b;const y=(b=(w=i.value)==null?void 0:w.contentRef)==null?void 0:b.popperContentRef,x=(v==null?void 0:v.relatedTarget)||document.activeElement;return y&&y.contains(x)};return _2(()=>a.value&&d()),e({popperRef:s,contentRef:i,isFocusInsideContent:m,updatePopper:l,onOpen:h,onClose:p,hide:d}),(v,w)=>(A(),ye(S(_9),{ref_key:"popperRef",ref:s,role:v.role},{default:_(()=>[C(L9,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:_(()=>[v.$slots.default?ke(v.$slots,"default",{key:0}):we("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),C(D9,{ref_key:"contentRef",ref:i,"aria-label":v.ariaLabel,"boundaries-padding":v.boundariesPadding,content:v.content,disabled:v.disabled,effect:v.effect,enterable:v.enterable,"fallback-placements":v.fallbackPlacements,"hide-after":v.hideAfter,"gpu-acceleration":v.gpuAcceleration,offset:v.offset,persistent:v.persistent,"popper-class":v.popperClass,"popper-style":v.popperStyle,placement:v.placement,"popper-options":v.popperOptions,pure:v.pure,"raw-content":v.rawContent,"reference-el":v.referenceEl,"trigger-target-el":v.triggerTargetEl,"show-after":v.showAfter,strategy:v.strategy,teleported:v.teleported,transition:v.transition,"virtual-triggering":v.virtualTriggering,"z-index":v.zIndex,"append-to":v.appendTo},{default:_(()=>[ke(v.$slots,"content",{},()=>[v.rawContent?(A(),G("span",{key:0,innerHTML:v.content},null,8,V9)):(A(),G("span",B9,oe(v.content),1))]),v.showArrow?(A(),ye(S(K7),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):we("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var j9=nt(z9,[["__file","tooltip.vue"]]);const Rr=Rt(j9),H9=st({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,dotStyle:{type:je([String,Object,Array])},badgeStyle:{type:je([String,Object,Array])},offset:{type:je(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),U9=["textContent"],W9=me({name:"ElBadge"}),G9=me({...W9,props:H9,setup(n,{expose:e}){const t=n,r=Xe("badge"),o=z(()=>t.isDot?"":Tt(t.value)&&Tt(t.max)?t.max{var i,l,a,c,u,d;return[{backgroundColor:t.color,marginRight:vo(-((l=(i=t.offset)==null?void 0:i[0])!=null?l:0)),marginTop:vo((c=(a=t.offset)==null?void 0:a[1])!=null?c:0)},(u=t.dotStyle)!=null?u:{},(d=t.badgeStyle)!=null?d:{}]});return Or({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},z(()=>!!t.dotStyle)),Or({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},z(()=>!!t.dotClass)),e({content:o}),(i,l)=>(A(),G("div",{class:Q(S(r).b())},[ke(i.$slots,"default"),C(Ir,{name:`${S(r).namespace.value}-zoom-in-center`,persisted:""},{default:_(()=>[Le(F("sup",{class:Q([S(r).e("content"),S(r).em("content",i.type),S(r).is("fixed",!!i.$slots.default),S(r).is("dot",i.isDot),i.dotClass,i.badgeClass]),style:wt(S(s)),textContent:oe(S(o))},null,14,U9),[[Ue,!i.hidden&&(S(o)||i.isDot)]])]),_:1},8,["name"])],2))}});var q9=nt(G9,[["__file","badge.vue"]]);const K9=Rt(q9),zO=Symbol("buttonGroupContextKey"),Y9=(n,e)=>{Or({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},z(()=>n.type==="text"));const t=Fe(zO,void 0),r=rg("button"),{form:o}=ml(),s=Co(z(()=>t==null?void 0:t.size)),i=Jc(),l=D(),a=qo(),c=z(()=>n.type||(t==null?void 0:t.type)||""),u=z(()=>{var p,g,m;return(m=(g=n.autoInsertSpace)!=null?g:(p=r.value)==null?void 0:p.autoInsertSpace)!=null?m:!1}),d=z(()=>n.tag==="button"?{ariaDisabled:i.value||n.loading,disabled:i.value||n.loading,autofocus:n.autofocus,type:n.nativeType}:{}),f=z(()=>{var p;const g=(p=a.default)==null?void 0:p.call(a);if(u.value&&(g==null?void 0:g.length)===1){const m=g[0];if((m==null?void 0:m.type)===ya){const v=m.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(v.trim())}}return!1});return{_disabled:i,_size:s,_type:c,_ref:l,_props:d,shouldAddSpace:f,handleClick:p=>{n.nativeType==="reset"&&(o==null||o.resetFields()),e("click",p)}}},J9=["default","primary","success","warning","info","danger","text",""],X9=["button","submit","reset"],Av=st({size:si,disabled:Boolean,type:{type:String,values:J9,default:""},icon:{type:bo},nativeType:{type:String,values:X9,default:"button"},loading:Boolean,loadingIcon:{type:bo,default:()=>fd},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:je([String,Object]),default:"button"}}),Z9={click:n=>n instanceof MouseEvent};function er(n,e){Q9(n)&&(n="100%");var t=eU(n);return n=e===360?n:Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(String(n*e),10)/100),Math.abs(n-e)<1e-6?1:(e===360?n=(n<0?n%e+e:n%e)/parseFloat(String(e)):n=n%e/parseFloat(String(e)),n)}function Df(n){return Math.min(1,Math.max(0,n))}function Q9(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function eU(n){return typeof n=="string"&&n.indexOf("%")!==-1}function jO(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function Vf(n){return n<=1?"".concat(Number(n)*100,"%"):n}function jl(n){return n.length===1?"0"+n:String(n)}function tU(n,e,t){return{r:er(n,255)*255,g:er(e,255)*255,b:er(t,255)*255}}function nx(n,e,t){n=er(n,255),e=er(e,255),t=er(t,255);var r=Math.max(n,e,t),o=Math.min(n,e,t),s=0,i=0,l=(r+o)/2;if(r===o)i=0,s=0;else{var a=r-o;switch(i=l>.5?a/(2-r-o):a/(r+o),r){case n:s=(e-t)/a+(e1&&(t-=1),t<1/6?n+(e-n)*(6*t):t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function nU(n,e,t){var r,o,s;if(n=er(n,360),e=er(e,100),t=er(t,100),e===0)o=t,s=t,r=t;else{var i=t<.5?t*(1+e):t+e-t*e,l=2*t-i;r=sm(l,i,n+1/3),o=sm(l,i,n),s=sm(l,i,n-1/3)}return{r:r*255,g:o*255,b:s*255}}function rx(n,e,t){n=er(n,255),e=er(e,255),t=er(t,255);var r=Math.max(n,e,t),o=Math.min(n,e,t),s=0,i=r,l=r-o,a=r===0?0:l/r;if(r===o)s=0;else{switch(r){case n:s=(e-t)/l+(e>16,g:(n&65280)>>8,b:n&255}}var kv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function lU(n){var e={r:0,g:0,b:0},t=1,r=null,o=null,s=null,i=!1,l=!1;return typeof n=="string"&&(n=uU(n)),typeof n=="object"&&(Ns(n.r)&&Ns(n.g)&&Ns(n.b)?(e=tU(n.r,n.g,n.b),i=!0,l=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Ns(n.h)&&Ns(n.s)&&Ns(n.v)?(r=Vf(n.s),o=Vf(n.v),e=rU(n.h,r,o),i=!0,l="hsv"):Ns(n.h)&&Ns(n.s)&&Ns(n.l)&&(r=Vf(n.s),s=Vf(n.l),e=nU(n.h,r,s),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=jO(t),{ok:i,format:n.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var aU="[-\\+]?\\d+%?",cU="[-\\+]?\\d*\\.\\d+%?",Vi="(?:".concat(cU,")|(?:").concat(aU,")"),im="[\\s|\\(]+(".concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")\\s*\\)?"),lm="[\\s|\\(]+(".concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")\\s*\\)?"),Oo={CSS_UNIT:new RegExp(Vi),rgb:new RegExp("rgb"+im),rgba:new RegExp("rgba"+lm),hsl:new RegExp("hsl"+im),hsla:new RegExp("hsla"+lm),hsv:new RegExp("hsv"+im),hsva:new RegExp("hsva"+lm),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uU(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var e=!1;if(kv[n])n=kv[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Oo.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=Oo.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Oo.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=Oo.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Oo.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=Oo.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Oo.hex8.exec(n),t?{r:Dr(t[1]),g:Dr(t[2]),b:Dr(t[3]),a:sx(t[4]),format:e?"name":"hex8"}:(t=Oo.hex6.exec(n),t?{r:Dr(t[1]),g:Dr(t[2]),b:Dr(t[3]),format:e?"name":"hex"}:(t=Oo.hex4.exec(n),t?{r:Dr(t[1]+t[1]),g:Dr(t[2]+t[2]),b:Dr(t[3]+t[3]),a:sx(t[4]+t[4]),format:e?"name":"hex8"}:(t=Oo.hex3.exec(n),t?{r:Dr(t[1]+t[1]),g:Dr(t[2]+t[2]),b:Dr(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function Ns(n){return!!Oo.CSS_UNIT.exec(String(n))}var dU=function(){function n(e,t){e===void 0&&(e=""),t===void 0&&(t={});var r;if(e instanceof n)return e;typeof e=="number"&&(e=iU(e)),this.originalInput=e;var o=lU(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=t.format)!==null&&r!==void 0?r:o.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},n.prototype.getLuminance=function(){var e=this.toRgb(),t,r,o,s=e.r/255,i=e.g/255,l=e.b/255;return s<=.03928?t=s/12.92:t=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*t+.7152*r+.0722*o},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(e){return this.a=jO(e),this.roundA=Math.round(100*this.a)/100,this},n.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},n.prototype.toHsv=function(){var e=rx(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},n.prototype.toHsvString=function(){var e=rx(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.v*100);return this.a===1?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},n.prototype.toHsl=function(){var e=nx(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},n.prototype.toHslString=function(){var e=nx(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.l*100);return this.a===1?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},n.prototype.toHex=function(e){return e===void 0&&(e=!1),ox(this.r,this.g,this.b,e)},n.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},n.prototype.toHex8=function(e){return e===void 0&&(e=!1),oU(this.r,this.g,this.b,this.a,e)},n.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},n.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(er(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(er(t,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+ox(this.r,this.g,this.b,!1),t=0,r=Object.entries(kv);t=0,s=!t&&o&&(e.startsWith("hex")||e==="name");return s?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=Df(t.l),new n(t)},n.prototype.brighten=function(e){e===void 0&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new n(t)},n.prototype.darken=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=Df(t.l),new n(t)},n.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},n.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},n.prototype.desaturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=Df(t.s),new n(t)},n.prototype.saturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=Df(t.s),new n(t)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(e){var t=this.toHsl(),r=(t.h+e)%360;return t.h=r<0?360+r:r,new n(t)},n.prototype.mix=function(e,t){t===void 0&&(t=50);var r=this.toRgb(),o=new n(e).toRgb(),s=t/100,i={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new n(i)},n.prototype.analogous=function(e,t){e===void 0&&(e=6),t===void 0&&(t=30);var r=this.toHsl(),o=360/t,s=[this];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,s.push(new n(r));return s},n.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new n(e)},n.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var t=this.toHsv(),r=t.h,o=t.s,s=t.v,i=[],l=1/e;e--;)i.push(new n({h:r,s:o,v:s})),s=(s+l)%1;return i},n.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new n({h:(t+72)%360,s:e.s,l:e.l}),new n({h:(t+216)%360,s:e.s,l:e.l})]},n.prototype.onBackground=function(e){var t=this.toRgb(),r=new n(e).toRgb(),o=t.a+r.a*(1-t.a);return new n({r:(t.r*t.a+r.r*r.a*(1-t.a))/o,g:(t.g*t.a+r.g*r.a*(1-t.a))/o,b:(t.b*t.a+r.b*r.a*(1-t.a))/o,a:o})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(e){for(var t=this.toHsl(),r=t.h,o=[this],s=360/e,i=1;i{let r={},o=n.color;if(o){const s=o.match(/var\((.*?)\)/);s&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const i=new dU(o),l=n.dark?i.tint(20).toString():mi(i,20);if(n.plain)r=t.cssVarBlock({"bg-color":n.dark?mi(i,90):i.tint(90).toString(),"text-color":o,"border-color":n.dark?mi(i,50):i.tint(50).toString(),"hover-text-color":`var(${t.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${t.cssVarName("color-white")})`,"active-border-color":l}),e.value&&(r[t.cssVarBlockName("disabled-bg-color")]=n.dark?mi(i,90):i.tint(90).toString(),r[t.cssVarBlockName("disabled-text-color")]=n.dark?mi(i,50):i.tint(50).toString(),r[t.cssVarBlockName("disabled-border-color")]=n.dark?mi(i,80):i.tint(80).toString());else{const a=n.dark?mi(i,30):i.tint(30).toString(),c=i.isDark()?`var(${t.cssVarName("color-white")})`:`var(${t.cssVarName("color-black")})`;if(r=t.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":l,"active-border-color":l}),e.value){const u=n.dark?mi(i,50):i.tint(50).toString();r[t.cssVarBlockName("disabled-bg-color")]=u,r[t.cssVarBlockName("disabled-text-color")]=n.dark?"rgba(255, 255, 255, 0.5)":`var(${t.cssVarName("color-white")})`,r[t.cssVarBlockName("disabled-border-color")]=u}}}return r})}const hU=me({name:"ElButton"}),pU=me({...hU,props:Av,emits:Z9,setup(n,{expose:e,emit:t}){const r=n,o=fU(r),s=Xe("button"),{_ref:i,_size:l,_type:a,_disabled:c,_props:u,shouldAddSpace:d,handleClick:f}=Y9(r,t),h=z(()=>[s.b(),s.m(a.value),s.m(l.value),s.is("disabled",c.value),s.is("loading",r.loading),s.is("plain",r.plain),s.is("round",r.round),s.is("circle",r.circle),s.is("text",r.text),s.is("link",r.link),s.is("has-bg",r.bg)]);return e({ref:i,size:l,type:a,disabled:c,shouldAddSpace:d}),(p,g)=>(A(),ye(Bt(p.tag),Ur({ref_key:"_ref",ref:i},S(u),{class:S(h),style:S(o),onClick:S(f)}),{default:_(()=>[p.loading?(A(),G(Re,{key:0},[p.$slots.loading?ke(p.$slots,"loading",{key:0}):(A(),ye(S(dt),{key:1,class:Q(S(s).is("loading"))},{default:_(()=>[(A(),ye(Bt(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(A(),ye(S(dt),{key:1},{default:_(()=>[p.icon?(A(),ye(Bt(p.icon),{key:0})):ke(p.$slots,"icon",{key:1})]),_:3})):we("v-if",!0),p.$slots.default?(A(),G("span",{key:2,class:Q({[S(s).em("text","expand")]:S(d)})},[ke(p.$slots,"default")],2)):we("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var gU=nt(pU,[["__file","button.vue"]]);const mU={size:Av.size,type:Av.type},vU=me({name:"ElButtonGroup"}),bU=me({...vU,props:mU,setup(n){const e=n;jt(zO,vt({size:Po(e,"size"),type:Po(e,"type")}));const t=Xe("button");return(r,o)=>(A(),G("div",{class:Q(`${S(t).b("group")}`)},[ke(r.$slots,"default")],2))}});var HO=nt(bU,[["__file","button-group.vue"]]);const Tn=Rt(gU,{ButtonGroup:HO}),zy=Lr(HO),Ci=new Map;let ix;Et&&(document.addEventListener("mousedown",n=>ix=n),document.addEventListener("mouseup",n=>{for(const e of Ci.values())for(const{documentHandler:t}of e)t(n,ix)}));function lx(n,e){let t=[];return Array.isArray(e.arg)?t=e.arg:mo(e.arg)&&t.push(e.arg),function(r,o){const s=e.instance.popperRef,i=r.target,l=o==null?void 0:o.target,a=!e||!e.instance,c=!i||!l,u=n.contains(i)||n.contains(l),d=n===i,f=t.length&&t.some(p=>p==null?void 0:p.contains(i))||t.length&&t.includes(l),h=s&&(s.contains(i)||s.contains(l));a||c||u||d||f||h||e.value(r,o)}}const UO={beforeMount(n,e){Ci.has(n)||Ci.set(n,[]),Ci.get(n).push({documentHandler:lx(n,e),bindingFn:e.value})},updated(n,e){Ci.has(n)||Ci.set(n,[]);const t=Ci.get(n),r=t.findIndex(s=>s.bindingFn===e.oldValue),o={documentHandler:lx(n,e),bindingFn:e.value};r>=0?t.splice(r,1,o):t.push(o)},unmounted(n){Ci.delete(n)}},yU=100,wU=600,ax={beforeMount(n,e){const t=e.value,{interval:r=yU,delay:o=wU}=Je(t)?{}:t;let s,i;const l=()=>Je(t)?t():t.handler(),a=()=>{i&&(clearTimeout(i),i=void 0),s&&(clearInterval(s),s=void 0)};n.addEventListener("mousedown",c=>{c.button===0&&(a(),l(),document.addEventListener("mouseup",()=>a(),{once:!0}),i=setTimeout(()=>{s=setInterval(()=>{l()},r)},o))})}},Pv="_trap-focus-children",Hl=[],cx=n=>{if(Hl.length===0)return;const e=Hl[Hl.length-1][Pv];if(e.length>0&&n.code===Cn.tab){if(e.length===1){n.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const t=n.shiftKey,r=n.target===e[0],o=n.target===e[e.length-1];r&&t&&(n.preventDefault(),e[e.length-1].focus()),o&&!t&&(n.preventDefault(),e[0].focus())}},CU={beforeMount(n){n[Pv]=Mw(n),Hl.push(n),Hl.length<=1&&document.addEventListener("keydown",cx)},updated(n){lt(()=>{n[Pv]=Mw(n)})},unmounted(){Hl.shift(),Hl.length===0&&document.removeEventListener("keydown",cx)}};var ux=!1,Dl,Nv,Iv,ph,gh,WO,mh,Lv,Rv,$v,GO,Dv,Vv,qO,KO;function Er(){if(!ux){ux=!0;var n=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(n),t=/(Mac OS X)|(Windows)|(Linux)/.exec(n);if(Dv=/\b(iPhone|iP[ao]d)/.exec(n),Vv=/\b(iP[ao]d)/.exec(n),$v=/Android/i.exec(n),qO=/FBAN\/\w+;/i.exec(n),KO=/Mobile/i.exec(n),GO=!!/Win64/.exec(n),e){Dl=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Dl&&document&&document.documentMode&&(Dl=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(n);WO=r?parseFloat(r[1])+4:Dl,Nv=e[2]?parseFloat(e[2]):NaN,Iv=e[3]?parseFloat(e[3]):NaN,ph=e[4]?parseFloat(e[4]):NaN,ph?(e=/(?:Chrome\/(\d+\.\d+))/.exec(n),gh=e&&e[1]?parseFloat(e[1]):NaN):gh=NaN}else Dl=Nv=Iv=gh=ph=NaN;if(t){if(t[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(n);mh=o?parseFloat(o[1].replace("_",".")):!0}else mh=!1;Lv=!!t[2],Rv=!!t[3]}else mh=Lv=Rv=!1}}var Bv={ie:function(){return Er()||Dl},ieCompatibilityMode:function(){return Er()||WO>Dl},ie64:function(){return Bv.ie()&&GO},firefox:function(){return Er()||Nv},opera:function(){return Er()||Iv},webkit:function(){return Er()||ph},safari:function(){return Bv.webkit()},chrome:function(){return Er()||gh},windows:function(){return Er()||Lv},osx:function(){return Er()||mh},linux:function(){return Er()||Rv},iphone:function(){return Er()||Dv},mobile:function(){return Er()||Dv||Vv||$v||KO},nativeApp:function(){return Er()||qO},android:function(){return Er()||$v},ipad:function(){return Er()||Vv}},xU=Bv,Bf=!!(typeof window<"u"&&window.document&&window.document.createElement),SU={canUseDOM:Bf,canUseWorkers:typeof Worker<"u",canUseEventListeners:Bf&&!!(window.addEventListener||window.attachEvent),canUseViewport:Bf&&!!window.screen,isInWorker:!Bf},YO=SU,JO;YO.canUseDOM&&(JO=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function EU(n,e){if(!YO.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+n,r=t in document;if(!r){var o=document.createElement("div");o.setAttribute(t,"return;"),r=typeof o[t]=="function"}return!r&&JO&&n==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var _U=EU,dx=10,fx=40,hx=800;function XO(n){var e=0,t=0,r=0,o=0;return"detail"in n&&(t=n.detail),"wheelDelta"in n&&(t=-n.wheelDelta/120),"wheelDeltaY"in n&&(t=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(e=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(e=t,t=0),r=e*dx,o=t*dx,"deltaY"in n&&(o=n.deltaY),"deltaX"in n&&(r=n.deltaX),(r||o)&&n.deltaMode&&(n.deltaMode==1?(r*=fx,o*=fx):(r*=hx,o*=hx)),r&&!e&&(e=r<1?-1:1),o&&!t&&(t=o<1?-1:1),{spinX:e,spinY:t,pixelX:r,pixelY:o}}XO.getEventType=function(){return xU.firefox()?"DOMMouseScroll":_U("wheel")?"wheel":"mousewheel"};var TU=XO;/** -* Checks if an event is supported in the current execution environment. -* -* NOTE: This will not work correctly for non-generic events such as `change`, -* `reset`, `load`, `error`, and `select`. -* -* Borrows from Modernizr. -* -* @param {string} eventNameSuffix Event name, e.g. "click". -* @param {?boolean} capture Check if the capture phase is supported. -* @return {boolean} True if the event is supported. -* @internal -* @license Modernizr 3.0.0pre (Custom Build) | MIT -*/const OU=function(n,e){if(n&&n.addEventListener){const t=function(r){const o=TU(r);e&&Reflect.apply(e,this,[r,o])};n.addEventListener("wheel",t,{passive:!0})}},MU={beforeMount(n,e){OU(n,e.value)}},ZO={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:si,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...ii(["ariaControls"])},QO={[Ut]:n=>ht(n)||Tt(n)||go(n),change:n=>ht(n)||Tt(n)||go(n)},Xc=Symbol("checkboxGroupContextKey"),AU=({model:n,isChecked:e})=>{const t=Fe(Xc,void 0),r=z(()=>{var s,i;const l=(s=t==null?void 0:t.max)==null?void 0:s.value,a=(i=t==null?void 0:t.min)==null?void 0:i.value;return!Tr(l)&&n.value.length>=l&&!e.value||!Tr(a)&&n.value.length<=a&&e.value});return{isDisabled:Jc(z(()=>(t==null?void 0:t.disabled.value)||r.value)),isLimitDisabled:r}},kU=(n,{model:e,isLimitExceeded:t,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:s})=>{const i=Fe(Xc,void 0),{formItem:l}=ml(),{emit:a}=bt();function c(p){var g,m,v,w;return[!0,n.trueValue,n.trueLabel].includes(p)?(m=(g=n.trueValue)!=null?g:n.trueLabel)!=null?m:!0:(w=(v=n.falseValue)!=null?v:n.falseLabel)!=null?w:!1}function u(p,g){a("change",c(p),g)}function d(p){if(t.value)return;const g=p.target;a("change",c(g.checked),p)}async function f(p){t.value||!r.value&&!o.value&&s.value&&(p.composedPath().some(v=>v.tagName==="LABEL")||(e.value=c([!1,n.falseValue,n.falseLabel].includes(e.value)),await lt(),u(e.value,p)))}const h=z(()=>(i==null?void 0:i.validateEvent)||n.validateEvent);return Be(()=>n.modelValue,()=>{h.value&&(l==null||l.validate("change").catch(p=>void 0))}),{handleChange:d,onClickRoot:f}},PU=n=>{const e=D(!1),{emit:t}=bt(),r=Fe(Xc,void 0),o=z(()=>Tr(r)===!1),s=D(!1),i=z({get(){var l,a;return o.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(a=n.modelValue)!=null?a:e.value},set(l){var a,c;o.value&&Ve(l)?(s.value=((a=r==null?void 0:r.max)==null?void 0:a.value)!==void 0&&l.length>(r==null?void 0:r.max.value)&&l.length>i.value.length,s.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,l))):(t(Ut,l),e.value=l)}});return{model:i,isGroup:o,isLimitExceeded:s}},NU=(n,e,{model:t})=>{const r=Fe(Xc,void 0),o=D(!1),s=z(()=>dd(n.value)?n.label:n.value),i=z(()=>{const u=t.value;return go(u)?u:Ve(u)?gt(s.value)?u.map(kt).some(d=>Mr(d,s.value)):u.map(kt).includes(s.value):u!=null?u===n.trueValue||u===n.trueLabel:!!u}),l=Co(z(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),a=Co(z(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=z(()=>!!e.default||!dd(s.value));return{checkboxButtonSize:l,isChecked:i,isFocused:o,checkboxSize:a,hasOwnLabel:c,actualValue:s}},eM=(n,e)=>{const{formItem:t}=ml(),{model:r,isGroup:o,isLimitExceeded:s}=PU(n),{isFocused:i,isChecked:l,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,actualValue:d}=NU(n,e,{model:r}),{isDisabled:f}=AU({model:r,isChecked:l}),{inputId:h,isLabeledByFormItem:p}=tf(n,{formItemContext:t,disableIdGeneration:u,disableIdManagement:o}),{handleChange:g,onClickRoot:m}=kU(n,{model:r,isLimitExceeded:s,hasOwnLabel:u,isDisabled:f,isLabeledByFormItem:p});return(()=>{function w(){var b,y;Ve(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=(y=(b=n.trueValue)!=null?b:n.trueLabel)!=null?y:!0}n.checked&&w()})(),Or({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!n.controls)),Or({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>o.value&&dd(n.value))),Or({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!n.trueLabel)),Or({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!n.falseLabel)),{inputId:h,isLabeledByFormItem:p,isChecked:l,isDisabled:f,isFocused:i,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,model:r,actualValue:d,handleChange:g,onClickRoot:m}},IU=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],LU=["id","indeterminate","disabled","value","name","tabindex"],RU=me({name:"ElCheckbox"}),$U=me({...RU,props:ZO,emits:QO,setup(n){const e=n,t=qo(),{inputId:r,isLabeledByFormItem:o,isChecked:s,isDisabled:i,isFocused:l,checkboxSize:a,hasOwnLabel:c,model:u,actualValue:d,handleChange:f,onClickRoot:h}=eM(e,t),p=Xe("checkbox"),g=z(()=>[p.b(),p.m(a.value),p.is("disabled",i.value),p.is("bordered",e.border),p.is("checked",s.value)]),m=z(()=>[p.e("input"),p.is("disabled",i.value),p.is("checked",s.value),p.is("indeterminate",e.indeterminate),p.is("focus",l.value)]);return(v,w)=>(A(),ye(Bt(!S(c)&&S(o)?"span":"label"),{class:Q(S(g)),"aria-controls":v.indeterminate?v.controls||v.ariaControls:null,onClick:S(h)},{default:_(()=>{var b,y;return[F("span",{class:Q(S(m))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?Le((A(),G("input",{key:0,id:S(r),"onUpdate:modelValue":w[0]||(w[0]=x=>qt(u)?u.value=x:null),class:Q(S(p).e("original")),type:"checkbox",indeterminate:v.indeterminate,name:v.name,tabindex:v.tabindex,disabled:S(i),"true-value":(b=v.trueValue)!=null?b:v.trueLabel,"false-value":(y=v.falseValue)!=null?y:v.falseLabel,onChange:w[1]||(w[1]=(...x)=>S(f)&&S(f)(...x)),onFocus:w[2]||(w[2]=x=>l.value=!0),onBlur:w[3]||(w[3]=x=>l.value=!1),onClick:w[4]||(w[4]=It(()=>{},["stop"]))},null,42,IU)),[[Xi,S(u)]]):Le((A(),G("input",{key:1,id:S(r),"onUpdate:modelValue":w[5]||(w[5]=x=>qt(u)?u.value=x:null),class:Q(S(p).e("original")),type:"checkbox",indeterminate:v.indeterminate,disabled:S(i),value:S(d),name:v.name,tabindex:v.tabindex,onChange:w[6]||(w[6]=(...x)=>S(f)&&S(f)(...x)),onFocus:w[7]||(w[7]=x=>l.value=!0),onBlur:w[8]||(w[8]=x=>l.value=!1),onClick:w[9]||(w[9]=It(()=>{},["stop"]))},null,42,LU)),[[Xi,S(u)]]),F("span",{class:Q(S(p).e("inner"))},null,2)],2),S(c)?(A(),G("span",{key:0,class:Q(S(p).e("label"))},[ke(v.$slots,"default"),v.$slots.default?we("v-if",!0):(A(),G(Re,{key:0},[H(oe(v.label),1)],64))],2)):we("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var DU=nt($U,[["__file","checkbox.vue"]]);const VU=["name","tabindex","disabled","true-value","false-value"],BU=["name","tabindex","disabled","value"],FU=me({name:"ElCheckboxButton"}),zU=me({...FU,props:ZO,emits:QO,setup(n){const e=n,t=qo(),{isFocused:r,isChecked:o,isDisabled:s,checkboxButtonSize:i,model:l,actualValue:a,handleChange:c}=eM(e,t),u=Fe(Xc,void 0),d=Xe("checkbox"),f=z(()=>{var p,g,m,v;const w=(g=(p=u==null?void 0:u.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(v=(m=u==null?void 0:u.textColor)==null?void 0:m.value)!=null?v:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),h=z(()=>[d.b("button"),d.bm("button",i.value),d.is("disabled",s.value),d.is("checked",o.value),d.is("focus",r.value)]);return(p,g)=>{var m,v;return A(),G("label",{class:Q(S(h))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?Le((A(),G("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=w=>qt(l)?l.value=w:null),class:Q(S(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:S(s),"true-value":(m=p.trueValue)!=null?m:p.trueLabel,"false-value":(v=p.falseValue)!=null?v:p.falseLabel,onChange:g[1]||(g[1]=(...w)=>S(c)&&S(c)(...w)),onFocus:g[2]||(g[2]=w=>r.value=!0),onBlur:g[3]||(g[3]=w=>r.value=!1),onClick:g[4]||(g[4]=It(()=>{},["stop"]))},null,42,VU)),[[Xi,S(l)]]):Le((A(),G("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=w=>qt(l)?l.value=w:null),class:Q(S(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:S(s),value:S(a),onChange:g[6]||(g[6]=(...w)=>S(c)&&S(c)(...w)),onFocus:g[7]||(g[7]=w=>r.value=!0),onBlur:g[8]||(g[8]=w=>r.value=!1),onClick:g[9]||(g[9]=It(()=>{},["stop"]))},null,42,BU)),[[Xi,S(l)]]),p.$slots.default||p.label?(A(),G("span",{key:2,class:Q(S(d).be("button","inner")),style:wt(S(o)?S(f):void 0)},[ke(p.$slots,"default",{},()=>[H(oe(p.label),1)])],6)):we("v-if",!0)],2)}}});var tM=nt(zU,[["__file","checkbox-button.vue"]]);const jU=st({modelValue:{type:je(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:si,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...ii(["ariaLabel"])}),HU={[Ut]:n=>Ve(n),change:n=>Ve(n)},UU=me({name:"ElCheckboxGroup"}),WU=me({...UU,props:jU,emits:HU,setup(n,{emit:e}){const t=n,r=Xe("checkbox"),{formItem:o}=ml(),{inputId:s,isLabeledByFormItem:i}=tf(t,{formItemContext:o}),l=async c=>{e(Ut,c),await lt(),e("change",c)},a=z({get(){return t.modelValue},set(c){l(c)}});return jt(Xc,{...UT(ei(t),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:a,changeEvent:l}),Or({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!t.label)),Be(()=>t.modelValue,()=>{t.validateEvent&&(o==null||o.validate("change").catch(c=>void 0))}),(c,u)=>{var d;return A(),ye(Bt(c.tag),{id:S(s),class:Q(S(r).b("group")),role:"group","aria-label":S(i)?void 0:c.label||c.ariaLabel||"checkbox-group","aria-labelledby":S(i)?(d=S(o))==null?void 0:d.labelId:void 0},{default:_(()=>[ke(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var nM=nt(WU,[["__file","checkbox-group.vue"]]);const Js=Rt(DU,{CheckboxButton:tM,CheckboxGroup:nM});Lr(tM);Lr(nM);const rM=st({modelValue:{type:[String,Number,Boolean],default:void 0},size:si,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),GU=st({...rM,border:Boolean}),oM={[Ut]:n=>ht(n)||Tt(n)||go(n),[Zd]:n=>ht(n)||Tt(n)||go(n)},sM=Symbol("radioGroupKey"),iM=(n,e)=>{const t=D(),r=Fe(sM,void 0),o=z(()=>!!r),s=z(()=>dd(n.value)?n.label:n.value),i=z({get(){return o.value?r.modelValue:n.modelValue},set(d){o.value?r.changeEvent(d):e&&e(Ut,d),t.value.checked=n.modelValue===s.value}}),l=Co(z(()=>r==null?void 0:r.size)),a=Jc(z(()=>r==null?void 0:r.disabled)),c=D(!1),u=z(()=>a.value||o.value&&i.value!==s.value?-1:0);return Or({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},z(()=>o.value&&dd(n.value))),{radioRef:t,isGroup:o,radioGroup:r,focus:c,size:l,disabled:a,tabIndex:u,modelValue:i,actualValue:s}},qU=["value","name","disabled"],KU=me({name:"ElRadio"}),YU=me({...KU,props:GU,emits:oM,setup(n,{emit:e}){const t=n,r=Xe("radio"),{radioRef:o,radioGroup:s,focus:i,size:l,disabled:a,modelValue:c,actualValue:u}=iM(t,e);function d(){lt(()=>e("change",c.value))}return(f,h)=>{var p;return A(),G("label",{class:Q([S(r).b(),S(r).is("disabled",S(a)),S(r).is("focus",S(i)),S(r).is("bordered",f.border),S(r).is("checked",S(c)===S(u)),S(r).m(S(l))])},[F("span",{class:Q([S(r).e("input"),S(r).is("disabled",S(a)),S(r).is("checked",S(c)===S(u))])},[Le(F("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h[0]||(h[0]=g=>qt(c)?c.value=g:null),class:Q(S(r).e("original")),value:S(u),name:f.name||((p=S(s))==null?void 0:p.name),disabled:S(a),type:"radio",onFocus:h[1]||(h[1]=g=>i.value=!0),onBlur:h[2]||(h[2]=g=>i.value=!1),onChange:d,onClick:h[3]||(h[3]=It(()=>{},["stop"]))},null,42,qU),[[W2,S(c)]]),F("span",{class:Q(S(r).e("inner"))},null,2)],2),F("span",{class:Q(S(r).e("label")),onKeydown:h[4]||(h[4]=It(()=>{},["stop"]))},[ke(f.$slots,"default",{},()=>[H(oe(f.label),1)])],34)],2)}}});var JU=nt(YU,[["__file","radio.vue"]]);const XU=st({...rM}),ZU=["value","name","disabled"],QU=me({name:"ElRadioButton"}),eW=me({...QU,props:XU,setup(n){const e=n,t=Xe("radio"),{radioRef:r,focus:o,size:s,disabled:i,modelValue:l,radioGroup:a,actualValue:c}=iM(e),u=z(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(d,f)=>{var h;return A(),G("label",{class:Q([S(t).b("button"),S(t).is("active",S(l)===S(c)),S(t).is("disabled",S(i)),S(t).is("focus",S(o)),S(t).bm("button",S(s))])},[Le(F("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=p=>qt(l)?l.value=p:null),class:Q(S(t).be("button","original-radio")),value:S(c),type:"radio",name:d.name||((h=S(a))==null?void 0:h.name),disabled:S(i),onFocus:f[1]||(f[1]=p=>o.value=!0),onBlur:f[2]||(f[2]=p=>o.value=!1),onClick:f[3]||(f[3]=It(()=>{},["stop"]))},null,42,ZU),[[W2,S(l)]]),F("span",{class:Q(S(t).be("button","inner")),style:wt(S(l)===S(c)?S(u):{}),onKeydown:f[4]||(f[4]=It(()=>{},["stop"]))},[ke(d.$slots,"default",{},()=>[H(oe(d.label),1)])],38)],2)}}});var lM=nt(eW,[["__file","radio-button.vue"]]);const tW=st({id:{type:String,default:void 0},size:si,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...ii(["ariaLabel"])}),nW=oM,rW=["id","aria-label","aria-labelledby"],oW=me({name:"ElRadioGroup"}),sW=me({...oW,props:tW,emits:nW,setup(n,{emit:e}){const t=n,r=Xe("radio"),o=gs(),s=D(),{formItem:i}=ml(),{inputId:l,isLabeledByFormItem:a}=tf(t,{formItemContext:i}),c=d=>{e(Ut,d),lt(()=>e("change",d))};ot(()=>{const d=s.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(h=>h.checked)&&f&&(f.tabIndex=0)});const u=z(()=>t.name||o.value);return jt(sM,vt({...ei(t),changeEvent:c,name:u})),Be(()=>t.modelValue,()=>{t.validateEvent&&(i==null||i.validate("change").catch(d=>void 0))}),Or({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},z(()=>!!t.label)),(d,f)=>(A(),G("div",{id:S(l),ref_key:"radioGroupRef",ref:s,class:Q(S(r).b("group")),role:"radiogroup","aria-label":S(a)?void 0:d.label||d.ariaLabel||"radio-group","aria-labelledby":S(a)?S(i).labelId:void 0},[ke(d.$slots,"default")],10,rW))}});var aM=nt(sW,[["__file","radio-group.vue"]]);const jy=Rt(JU,{RadioButton:lM,RadioGroup:aM}),ag=Lr(aM),iW=Lr(lM),Fv=st({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Sa},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),lW={close:n=>n instanceof MouseEvent,click:n=>n instanceof MouseEvent},aW=me({name:"ElTag"}),cW=me({...aW,props:Fv,emits:lW,setup(n,{emit:e}){const t=n,r=Co(),o=Xe("tag"),s=z(()=>{const{type:a,hit:c,effect:u,closable:d,round:f}=t;return[o.b(),o.is("closable",d),o.m(a||"primary"),o.m(r.value),o.m(u),o.is("hit",c),o.is("round",f)]}),i=a=>{e("close",a)},l=a=>{e("click",a)};return(a,c)=>a.disableTransitions?(A(),G("span",{key:0,class:Q(S(s)),style:wt({backgroundColor:a.color}),onClick:l},[F("span",{class:Q(S(o).e("content"))},[ke(a.$slots,"default")],2),a.closable?(A(),ye(S(dt),{key:0,class:Q(S(o).e("close")),onClick:It(i,["stop"])},{default:_(()=>[C(S(aa))]),_:1},8,["class","onClick"])):we("v-if",!0)],6)):(A(),ye(Ir,{key:1,name:`${S(o).namespace.value}-zoom-in-center`,appear:""},{default:_(()=>[F("span",{class:Q(S(s)),style:wt({backgroundColor:a.color}),onClick:l},[F("span",{class:Q(S(o).e("content"))},[ke(a.$slots,"default")],2),a.closable?(A(),ye(S(dt),{key:0,class:Q(S(o).e("close")),onClick:It(i,["stop"])},{default:_(()=>[C(S(aa))]),_:1},8,["class","onClick"])):we("v-if",!0)],6)]),_:3},8,["name"]))}});var uW=nt(cW,[["__file","tag.vue"]]);const cM=Rt(uW),uM=Symbol("rowContextKey"),dW=["start","center","end","space-around","space-between","space-evenly"],fW=["top","middle","bottom"],hW=st({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:dW,default:"start"},align:{type:String,values:fW}}),pW=me({name:"ElRow"}),gW=me({...pW,props:hW,setup(n){const e=n,t=Xe("row"),r=z(()=>e.gutter);jt(uM,{gutter:r});const o=z(()=>{const i={};return e.gutter&&(i.marginRight=i.marginLeft=`-${e.gutter/2}px`),i}),s=z(()=>[t.b(),t.is(`justify-${e.justify}`,e.justify!=="start"),t.is(`align-${e.align}`,!!e.align)]);return(i,l)=>(A(),ye(Bt(i.tag),{class:Q(S(s)),style:wt(S(o))},{default:_(()=>[ke(i.$slots,"default")]),_:3},8,["class","style"]))}});var mW=nt(gW,[["__file","row.vue"]]);const cg=Rt(mW),vW=st({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:je([Number,Object]),default:()=>Ao({})},sm:{type:je([Number,Object]),default:()=>Ao({})},md:{type:je([Number,Object]),default:()=>Ao({})},lg:{type:je([Number,Object]),default:()=>Ao({})},xl:{type:je([Number,Object]),default:()=>Ao({})}}),bW=me({name:"ElCol"}),yW=me({...bW,props:vW,setup(n){const e=n,{gutter:t}=Fe(uM,{gutter:z(()=>0)}),r=Xe("col"),o=z(()=>{const i={};return t.value&&(i.paddingLeft=i.paddingRight=`${t.value/2}px`),i}),s=z(()=>{const i=[];return["span","offset","pull","push"].forEach(c=>{const u=e[c];Tt(u)&&(c==="span"?i.push(r.b(`${e[c]}`)):u>0&&i.push(r.b(`${c}-${e[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Tt(e[c])?i.push(r.b(`${c}-${e[c]}`)):gt(e[c])&&Object.entries(e[c]).forEach(([u,d])=>{i.push(u!=="span"?r.b(`${c}-${u}-${d}`):r.b(`${c}-${d}`))})}),t.value&&i.push(r.is("guttered")),[r.b(),i]});return(i,l)=>(A(),ye(Bt(i.tag),{class:Q(S(s)),style:wt(S(o))},{default:_(()=>[ke(i.$slots,"default")]),_:3},8,["class","style"]))}});var wW=nt(yW,[["__file","col.vue"]]);const ug=Rt(wW),CW=me({name:"ElContainer"}),xW=me({...CW,props:{direction:{type:String}},setup(n){const e=n,t=qo(),r=Xe("container"),o=z(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:t&&t.default?t.default().some(i=>{const l=i.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(s,i)=>(A(),G("section",{class:Q([S(r).b(),S(r).is("vertical",S(o))])},[ke(s.$slots,"default")],2))}});var SW=nt(xW,[["__file","container.vue"]]);const EW=me({name:"ElAside"}),_W=me({...EW,props:{width:{type:String,default:null}},setup(n){const e=n,t=Xe("aside"),r=z(()=>e.width?t.cssVarBlock({width:e.width}):{});return(o,s)=>(A(),G("aside",{class:Q(S(t).b()),style:wt(S(r))},[ke(o.$slots,"default")],6))}});var dM=nt(_W,[["__file","aside.vue"]]);const TW=me({name:"ElFooter"}),OW=me({...TW,props:{height:{type:String,default:null}},setup(n){const e=n,t=Xe("footer"),r=z(()=>e.height?t.cssVarBlock({height:e.height}):{});return(o,s)=>(A(),G("footer",{class:Q(S(t).b()),style:wt(S(r))},[ke(o.$slots,"default")],6))}});var fM=nt(OW,[["__file","footer.vue"]]);const MW=me({name:"ElHeader"}),AW=me({...MW,props:{height:{type:String,default:null}},setup(n){const e=n,t=Xe("header"),r=z(()=>e.height?t.cssVarBlock({height:e.height}):{});return(o,s)=>(A(),G("header",{class:Q(S(t).b()),style:wt(S(r))},[ke(o.$slots,"default")],6))}});var hM=nt(AW,[["__file","header.vue"]]);const kW=me({name:"ElMain"}),PW=me({...kW,setup(n){const e=Xe("main");return(t,r)=>(A(),G("main",{class:Q(S(e).b())},[ke(t.$slots,"default")],2))}});var pM=nt(PW,[["__file","main.vue"]]);const NW=Rt(SW,{Aside:dM,Footer:fM,Header:hM,Main:pM}),IW=Lr(dM);Lr(fM);const LW=Lr(hM),RW=Lr(pM),$W=st({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:je([String,Array,Object])},zIndex:{type:je([String,Number])}}),DW={click:n=>n instanceof MouseEvent},VW="overlay";var BW=me({name:"ElOverlay",props:$W,emits:DW,setup(n,{slots:e,emit:t}){const r=Xe(VW),o=a=>{t("click",a)},{onClick:s,onMousedown:i,onMouseup:l}=Ly(n.customMaskEvent?void 0:o);return()=>n.mask?C("div",{class:[r.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:s,onMousedown:i,onMouseup:l},[ke(e,"default")],eo.STYLE|eo.CLASS|eo.PROPS,["onClick","onMouseup","onMousedown"]):et("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ke(e,"default")])}});const Hy=BW,gM=Symbol("dialogInjectionKey"),mM=st({center:Boolean,alignCenter:Boolean,closeIcon:{type:bo},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),FW={close:()=>!0},zW=["aria-level"],jW=["aria-label"],HW=["id"],UW=me({name:"ElDialogContent"}),WW=me({...UW,props:mM,emits:FW,setup(n){const e=n,{t}=xs(),{Close:r}=eO,{dialogRef:o,headerRef:s,bodyId:i,ns:l,style:a}=Fe(gM),{focusTrapRef:c}=Fe(VO),u=z(()=>[l.b(),l.is("fullscreen",e.fullscreen),l.is("draggable",e.draggable),l.is("align-center",e.alignCenter),{[l.m("center")]:e.center}]),d=Lz(c,o),f=z(()=>e.draggable),h=z(()=>e.overflow);return sO(o,s,f,h),(p,g)=>(A(),G("div",{ref:S(d),class:Q(S(u)),style:wt(S(a)),tabindex:"-1"},[F("header",{ref_key:"headerRef",ref:s,class:Q([S(l).e("header"),{"show-close":p.showClose}])},[ke(p.$slots,"header",{},()=>[F("span",{role:"heading","aria-level":p.ariaLevel,class:Q(S(l).e("title"))},oe(p.title),11,zW)]),p.showClose?(A(),G("button",{key:0,"aria-label":S(t)("el.dialog.close"),class:Q(S(l).e("headerbtn")),type:"button",onClick:g[0]||(g[0]=m=>p.$emit("close"))},[C(S(dt),{class:Q(S(l).e("close"))},{default:_(()=>[(A(),ye(Bt(p.closeIcon||S(r))))]),_:1},8,["class"])],10,jW)):we("v-if",!0)],2),F("div",{id:S(i),class:Q(S(l).e("body"))},[ke(p.$slots,"default")],10,HW),p.$slots.footer?(A(),G("footer",{key:0,class:Q(S(l).e("footer"))},[ke(p.$slots,"footer")],2)):we("v-if",!0)],6))}});var GW=nt(WW,[["__file","dialog-content.vue"]]);const vM=st({...mM,appendToBody:Boolean,appendTo:{type:je(String),default:"body"},beforeClose:{type:je(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),bM={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ut]:n=>go(n),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},yM=(n,e)=>{var t;const o=bt().emit,{nextZIndex:s}=ng();let i="";const l=gs(),a=gs(),c=D(!1),u=D(!1),d=D(!1),f=D((t=n.zIndex)!=null?t:s());let h,p;const g=rg("namespace",Lu),m=z(()=>{const R={},$=`--${g.value}-dialog`;return n.fullscreen||(n.top&&(R[`${$}-margin-top`]=n.top),n.width&&(R[`${$}-width`]=vo(n.width))),R}),v=z(()=>n.alignCenter?{display:"flex"}:{});function w(){o("opened")}function b(){o("closed"),o(Ut,!1),n.destroyOnClose&&(d.value=!1)}function y(){o("close")}function x(){p==null||p(),h==null||h(),n.openDelay&&n.openDelay>0?{stop:h}=Lh(()=>O(),n.openDelay):O()}function E(){h==null||h(),p==null||p(),n.closeDelay&&n.closeDelay>0?{stop:p}=Lh(()=>k(),n.closeDelay):k()}function T(){function R($){$||(u.value=!0,c.value=!1)}n.beforeClose?n.beforeClose(R):E()}function M(){n.closeOnClickModal&&T()}function O(){Et&&(c.value=!0)}function k(){c.value=!1}function P(){o("openAutoFocus")}function L(){o("closeAutoFocus")}function j(R){var $;(($=R.detail)==null?void 0:$.focusReason)==="pointer"&&R.preventDefault()}n.lockScroll&&aO(c);function ce(){n.closeOnPressEscape&&T()}return Be(()=>n.modelValue,R=>{R?(u.value=!1,x(),d.value=!0,f.value=jT(n.zIndex)?s():f.value++,lt(()=>{o("open"),e.value&&(e.value.scrollTop=0)})):c.value&&E()}),Be(()=>n.fullscreen,R=>{e.value&&(R?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),ot(()=>{n.modelValue&&(c.value=!0,d.value=!0,x())}),{afterEnter:w,afterLeave:b,beforeLeave:y,handleClose:T,onModalClick:M,close:E,doClose:k,onOpenAutoFocus:P,onCloseAutoFocus:L,onCloseRequested:ce,onFocusoutPrevented:j,titleId:l,bodyId:a,closed:u,style:m,overlayDialogStyle:v,rendered:d,visible:c,zIndex:f}},qW=["aria-label","aria-labelledby","aria-describedby"],KW=me({name:"ElDialog",inheritAttrs:!1}),YW=me({...KW,props:vM,emits:bM,setup(n,{expose:e}){const t=n,r=qo();Or({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},z(()=>!!r.title));const o=Xe("dialog"),s=D(),i=D(),l=D(),{visible:a,titleId:c,bodyId:u,style:d,overlayDialogStyle:f,rendered:h,zIndex:p,afterEnter:g,afterLeave:m,beforeLeave:v,handleClose:w,onModalClick:b,onOpenAutoFocus:y,onCloseAutoFocus:x,onCloseRequested:E,onFocusoutPrevented:T}=yM(t,s);jt(gM,{dialogRef:s,headerRef:i,bodyId:u,ns:o,rendered:h,style:d});const M=Ly(b),O=z(()=>t.draggable&&!t.fullscreen);return e({visible:a,dialogContentRef:l}),(k,P)=>(A(),ye(jd,{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},[C(Ir,{name:"dialog-fade",onAfterEnter:S(g),onAfterLeave:S(m),onBeforeLeave:S(v),persisted:""},{default:_(()=>[Le(C(S(Hy),{"custom-mask-event":"",mask:k.modal,"overlay-class":k.modalClass,"z-index":S(p)},{default:_(()=>[F("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:S(c),"aria-describedby":S(u),class:Q(`${S(o).namespace.value}-overlay-dialog`),style:wt(S(f)),onClick:P[0]||(P[0]=(...L)=>S(M).onClick&&S(M).onClick(...L)),onMousedown:P[1]||(P[1]=(...L)=>S(M).onMousedown&&S(M).onMousedown(...L)),onMouseup:P[2]||(P[2]=(...L)=>S(M).onMouseup&&S(M).onMouseup(...L))},[C(S(lg),{loop:"",trapped:S(a),"focus-start-el":"container",onFocusAfterTrapped:S(y),onFocusAfterReleased:S(x),onFocusoutPrevented:S(T),onReleaseRequested:S(E)},{default:_(()=>[S(h)?(A(),ye(GW,Ur({key:0,ref_key:"dialogContentRef",ref:l},k.$attrs,{center:k.center,"align-center":k.alignCenter,"close-icon":k.closeIcon,draggable:S(O),overflow:k.overflow,fullscreen:k.fullscreen,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:S(w)}),xI({header:_(()=>[k.$slots.title?ke(k.$slots,"title",{key:1}):ke(k.$slots,"header",{key:0,close:S(w),titleId:S(c),titleClass:S(o).e("title")})]),default:_(()=>[ke(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:_(()=>[ke(k.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):we("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,qW)]),_:3},8,["mask","overlay-class","z-index"]),[[Ue,S(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var JW=nt(YW,[["__file","dialog.vue"]]);const vl=Rt(JW),XW=st({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:je(String),default:"solid"}}),ZW=me({name:"ElDivider"}),QW=me({...ZW,props:XW,setup(n){const e=n,t=Xe("divider"),r=z(()=>t.cssVar({"border-style":e.borderStyle}));return(o,s)=>(A(),G("div",{class:Q([S(t).b(),S(t).m(o.direction)]),style:wt(S(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(A(),G("div",{key:0,class:Q([S(t).e("text"),S(t).is(o.contentPosition)])},[ke(o.$slots,"default")],2)):we("v-if",!0)],6))}});var eG=nt(QW,[["__file","divider.vue"]]);const rf=Rt(eG),tG=st({...vM,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),nG=bM,rG=["aria-label","aria-labelledby","aria-describedby"],oG=["id","aria-level"],sG=["aria-label"],iG=["id"],lG=me({name:"ElDrawer",inheritAttrs:!1}),aG=me({...lG,props:tG,emits:nG,setup(n,{expose:e}){const t=n,r=qo();Or({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},z(()=>!!r.title));const o=D(),s=D(),i=Xe("drawer"),{t:l}=xs(),{afterEnter:a,afterLeave:c,beforeLeave:u,visible:d,rendered:f,titleId:h,bodyId:p,zIndex:g,onModalClick:m,onOpenAutoFocus:v,onCloseAutoFocus:w,onFocusoutPrevented:b,onCloseRequested:y,handleClose:x}=yM(t,o),E=z(()=>t.direction==="rtl"||t.direction==="ltr"),T=z(()=>vo(t.size));return e({handleClose:x,afterEnter:a,afterLeave:c}),(M,O)=>(A(),ye(jd,{to:"body",disabled:!M.appendToBody},[C(Ir,{name:S(i).b("fade"),onAfterEnter:S(a),onAfterLeave:S(c),onBeforeLeave:S(u),persisted:""},{default:_(()=>[Le(C(S(Hy),{mask:M.modal,"overlay-class":M.modalClass,"z-index":S(g),onClick:S(m)},{default:_(()=>[C(S(lg),{loop:"",trapped:S(d),"focus-trap-el":o.value,"focus-start-el":s.value,onFocusAfterTrapped:S(v),onFocusAfterReleased:S(w),onFocusoutPrevented:S(b),onReleaseRequested:S(y)},{default:_(()=>[F("div",Ur({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:S(h),"aria-describedby":S(p)},M.$attrs,{class:[S(i).b(),M.direction,S(d)&&"open"],style:S(E)?"width: "+S(T):"height: "+S(T),role:"dialog",onClick:O[1]||(O[1]=It(()=>{},["stop"]))}),[F("span",{ref_key:"focusStartRef",ref:s,class:Q(S(i).e("sr-focus")),tabindex:"-1"},null,2),M.withHeader?(A(),G("header",{key:0,class:Q(S(i).e("header"))},[M.$slots.title?ke(M.$slots,"title",{key:1},()=>[we(" DEPRECATED SLOT ")]):ke(M.$slots,"header",{key:0,close:S(x),titleId:S(h),titleClass:S(i).e("title")},()=>[M.$slots.title?we("v-if",!0):(A(),G("span",{key:0,id:S(h),role:"heading","aria-level":M.headerAriaLevel,class:Q(S(i).e("title"))},oe(M.title),11,oG))]),M.showClose?(A(),G("button",{key:2,"aria-label":S(l)("el.drawer.close"),class:Q(S(i).e("close-btn")),type:"button",onClick:O[0]||(O[0]=(...k)=>S(x)&&S(x)(...k))},[C(S(dt),{class:Q(S(i).e("close"))},{default:_(()=>[C(S(aa))]),_:1},8,["class"])],10,sG)):we("v-if",!0)],2)):we("v-if",!0),S(f)?(A(),G("div",{key:1,id:S(p),class:Q(S(i).e("body"))},[ke(M.$slots,"default")],10,iG)):we("v-if",!0),M.$slots.footer?(A(),G("div",{key:2,class:Q(S(i).e("footer"))},[ke(M.$slots,"footer")],2)):we("v-if",!0)],16,rG)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ue,S(d)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var cG=nt(aG,[["__file","drawer.vue"]]);const Ss=Rt(cG),uG=me({inheritAttrs:!1});function dG(n,e,t,r,o,s){return ke(n.$slots,"default")}var fG=nt(uG,[["render",dG],["__file","collection.vue"]]);const hG=me({name:"ElCollectionItem",inheritAttrs:!1});function pG(n,e,t,r,o,s){return ke(n.$slots,"default")}var gG=nt(hG,[["render",pG],["__file","collection-item.vue"]]);const mG="data-el-collection-item",vG=n=>{const e=`El${n}Collection`,t=`${e}Item`,r=Symbol(e),o=Symbol(t),s={...fG,name:e,setup(){const l=D(null),a=new Map;jt(r,{itemMap:a,getItems:()=>{const u=S(l);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${mG}]`));return[...a.values()].sort((h,p)=>d.indexOf(h.ref)-d.indexOf(p.ref))},collectionRef:l})}},i={...gG,name:t,setup(l,{attrs:a}){const c=D(null),u=Fe(r,void 0);jt(o,{collectionItemRef:c}),ot(()=>{const d=S(c);d&&u.itemMap.set(d,{ref:d,...a})}),_n(()=>{const d=S(c);u.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:s,ElCollectionItem:i}},am=st({trigger:md.trigger,effect:{...Br.effect,default:"light"},type:{type:je(String)},placement:{type:je(String),default:"bottom"},popperOptions:{type:je(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:je([Number,String]),default:0},maxHeight:{type:je([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:je(Object)},teleported:Br.teleported});st({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:bo}});st({onKeydown:{type:je(Function)}});vG("Dropdown");const bG=st({urlList:{type:je(Array),default:()=>Ao([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:je(String)}}),yG={close:()=>!0,switch:n=>Tt(n),rotate:n=>Tt(n)},wG=["src","crossorigin"],CG=me({name:"ElImageViewer"}),xG=me({...CG,props:bG,emits:yG,setup(n,{expose:e,emit:t}){var r;const o=n,s={CONTAIN:{name:"contain",icon:Zu(uz)},ORIGINAL:{name:"original",icon:Zu(Sz)}},{t:i}=xs(),l=Xe("image-viewer"),{nextZIndex:a}=ng(),c=D(),u=D([]),d=BE(),f=D(!0),h=D(o.initialIndex),p=$o(s.CONTAIN),g=D({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=D((r=o.zIndex)!=null?r:a()),v=z(()=>{const{urlList:Z}=o;return Z.length<=1}),w=z(()=>h.value===0),b=z(()=>h.value===o.urlList.length-1),y=z(()=>o.urlList[h.value]),x=z(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!o.infinite&&w.value)]),E=z(()=>[l.e("btn"),l.e("next"),l.is("disabled",!o.infinite&&b.value)]),T=z(()=>{const{scale:Z,deg:le,offsetX:ee,offsetY:Me,enableTransition:ge}=g.value;let be=ee/Z,Te=Me/Z;switch(le%360){case 90:case-270:[be,Te]=[Te,-be];break;case 180:case-180:[be,Te]=[-be,-Te];break;case 270:case-90:[be,Te]=[-Te,be];break}const re={transform:`scale(${Z}) rotate(${le}deg) translate(${be}px, ${Te}px)`,transition:ge?"transform .3s":""};return p.value.name===s.CONTAIN.name&&(re.maxWidth=re.maxHeight="100%"),re});function M(){k(),t("close")}function O(){const Z=ah(ee=>{switch(ee.code){case Cn.esc:o.closeOnPressEscape&&M();break;case Cn.space:R();break;case Cn.left:q();break;case Cn.up:W("zoomIn");break;case Cn.right:U();break;case Cn.down:W("zoomOut");break}}),le=ah(ee=>{const Me=ee.deltaY||ee.deltaX;W(Me<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});d.run(()=>{xn(document,"keydown",Z),xn(document,"wheel",le)})}function k(){d.stop()}function P(){f.value=!1}function L(Z){f.value=!1,Z.target.alt=i("el.image.error")}function j(Z){if(f.value||Z.button!==0||!c.value)return;g.value.enableTransition=!1;const{offsetX:le,offsetY:ee}=g.value,Me=Z.pageX,ge=Z.pageY,be=ah(re=>{g.value={...g.value,offsetX:le+re.pageX-Me,offsetY:ee+re.pageY-ge}}),Te=xn(document,"mousemove",be);xn(document,"mouseup",()=>{Te()}),Z.preventDefault()}function ce(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function R(){if(f.value)return;const Z=jh(s),le=Object.values(s),ee=p.value.name,ge=(le.findIndex(be=>be.name===ee)+1)%Z.length;p.value=s[Z[ge]],ce()}function $(Z){const le=o.urlList.length;h.value=(Z+le)%le}function q(){w.value&&!o.infinite||$(h.value-1)}function U(){b.value&&!o.infinite||$(h.value+1)}function W(Z,le={}){if(f.value)return;const{minScale:ee,maxScale:Me}=o,{zoomRate:ge,rotateDeg:be,enableTransition:Te}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...le};switch(Z){case"zoomOut":g.value.scale>ee&&(g.value.scale=Number.parseFloat((g.value.scale/ge).toFixed(3)));break;case"zoomIn":g.value.scale{lt(()=>{const Z=u.value[0];Z!=null&&Z.complete||(f.value=!0)})}),Be(h,Z=>{ce(),t("switch",Z)}),ot(()=>{var Z,le;O(),(le=(Z=c.value)==null?void 0:Z.focus)==null||le.call(Z)}),e({setActiveItem:$}),(Z,le)=>(A(),ye(jd,{to:"body",disabled:!Z.teleported},[C(Ir,{name:"viewer-fade",appear:""},{default:_(()=>[F("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:Q(S(l).e("wrapper")),style:wt({zIndex:m.value})},[F("div",{class:Q(S(l).e("mask")),onClick:le[0]||(le[0]=It(ee=>Z.hideOnClickModal&&M(),["self"]))},null,2),we(" CLOSE "),F("span",{class:Q([S(l).e("btn"),S(l).e("close")]),onClick:M},[C(S(dt),null,{default:_(()=>[C(S(aa))]),_:1})],2),we(" ARROW "),S(v)?we("v-if",!0):(A(),G(Re,{key:0},[F("span",{class:Q(S(x)),onClick:q},[C(S(dt),null,{default:_(()=>[C(S(YT))]),_:1})],2),F("span",{class:Q(S(E)),onClick:U},[C(S(dt),null,{default:_(()=>[C(S(Zp))]),_:1})],2)],64)),we(" ACTIONS "),F("div",{class:Q([S(l).e("btn"),S(l).e("actions")])},[F("div",{class:Q(S(l).e("actions__inner"))},[C(S(dt),{onClick:le[1]||(le[1]=ee=>W("zoomOut"))},{default:_(()=>[C(S(Pz))]),_:1}),C(S(dt),{onClick:le[2]||(le[2]=ee=>W("zoomIn"))},{default:_(()=>[C(S(Az))]),_:1}),F("i",{class:Q(S(l).e("actions__divider"))},null,2),C(S(dt),{onClick:R},{default:_(()=>[(A(),ye(Bt(S(p).icon)))]),_:1}),F("i",{class:Q(S(l).e("actions__divider"))},null,2),C(S(dt),{onClick:le[3]||(le[3]=ee=>W("anticlockwise"))},{default:_(()=>[C(S(yz))]),_:1}),C(S(dt),{onClick:le[4]||(le[4]=ee=>W("clockwise"))},{default:_(()=>[C(S(Cz))]),_:1})],2)],2),we(" CANVAS "),F("div",{class:Q(S(l).e("canvas"))},[(A(!0),G(Re,null,St(Z.urlList,(ee,Me)=>Le((A(),G("img",{ref_for:!0,ref:ge=>u.value[Me]=ge,key:ee,src:ee,style:wt(S(T)),class:Q(S(l).e("img")),crossorigin:Z.crossorigin,onLoad:P,onError:L,onMousedown:j},null,46,wG)),[[Ue,Me===h.value]])),128))],2),ke(Z.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var SG=nt(xG,[["__file","image-viewer.vue"]]);const EG=Rt(SG),_G=st({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:je([String,Object])},previewSrcList:{type:je(Array),default:()=>Ao([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:je(String)}}),TG={load:n=>n instanceof Event,error:n=>n instanceof Event,switch:n=>Tt(n),close:()=>!0,show:()=>!0},OG=["src","loading","crossorigin"],MG={key:0},AG=me({name:"ElImage",inheritAttrs:!1}),kG=me({...AG,props:_G,emits:TG,setup(n,{emit:e}){const t=n;let r="";const{t:o}=xs(),s=Xe("image"),i=d2(),l=oO(),a=D(),c=D(!1),u=D(!0),d=D(!1),f=D(),h=D(),p=Et&&"loading"in HTMLImageElement.prototype;let g,m;const v=z(()=>[s.e("inner"),y.value&&s.e("preview"),u.value&&s.is("loading")]),w=z(()=>i.style),b=z(()=>{const{fit:U}=t;return Et&&U?{objectFit:U}:{}}),y=z(()=>{const{previewSrcList:U}=t;return Array.isArray(U)&&U.length>0}),x=z(()=>{const{previewSrcList:U,initialIndex:W}=t;let Z=W;return W>U.length-1&&(Z=0),Z}),E=z(()=>t.loading==="eager"?!1:!p&&t.loading==="lazy"||t.lazy),T=()=>{Et&&(u.value=!0,c.value=!1,a.value=t.src)};function M(U){u.value=!1,c.value=!1,e("load",U)}function O(U){u.value=!1,c.value=!0,e("error",U)}function k(){LD(f.value,h.value)&&(T(),j())}const P=gD(k,200,!0);async function L(){var U;if(!Et)return;await lt();const{scrollContainer:W}=t;mo(W)?h.value=W:ht(W)&&W!==""?h.value=(U=document.querySelector(W))!=null?U:void 0:f.value&&(h.value=q6(f.value)),h.value&&(g=xn(h,"scroll",P),setTimeout(()=>k(),100))}function j(){!Et||!h.value||!P||(g==null||g(),h.value=void 0)}function ce(U){if(U.ctrlKey){if(U.deltaY<0)return U.preventDefault(),!1;if(U.deltaY>0)return U.preventDefault(),!1}}function R(){y.value&&(m=xn("wheel",ce,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,e("show"))}function $(){m==null||m(),document.body.style.overflow=r,d.value=!1,e("close")}function q(U){e("switch",U)}return Be(()=>t.src,()=>{E.value?(u.value=!0,c.value=!1,j(),L()):T()}),ot(()=>{E.value?L():T()}),(U,W)=>(A(),G("div",{ref_key:"container",ref:f,class:Q([S(s).b(),U.$attrs.class]),style:wt(S(w))},[c.value?ke(U.$slots,"error",{key:0},()=>[F("div",{class:Q(S(s).e("error"))},oe(S(o)("el.image.error")),3)]):(A(),G(Re,{key:1},[a.value!==void 0?(A(),G("img",Ur({key:0},S(l),{src:a.value,loading:U.loading,style:S(b),class:S(v),crossorigin:U.crossorigin,onClick:R,onLoad:M,onError:O}),null,16,OG)):we("v-if",!0),u.value?(A(),G("div",{key:1,class:Q(S(s).e("wrapper"))},[ke(U.$slots,"placeholder",{},()=>[F("div",{class:Q(S(s).e("placeholder"))},null,2)])],2)):we("v-if",!0)],64)),S(y)?(A(),G(Re,{key:2},[d.value?(A(),ye(S(EG),{key:0,"z-index":U.zIndex,"initial-index":S(x),infinite:U.infinite,"zoom-rate":U.zoomRate,"min-scale":U.minScale,"max-scale":U.maxScale,"url-list":U.previewSrcList,crossorigin:U.crossorigin,"hide-on-click-modal":U.hideOnClickModal,teleported:U.previewTeleported,"close-on-press-escape":U.closeOnPressEscape,onClose:$,onSwitch:q},{default:_(()=>[U.$slots.viewer?(A(),G("div",MG,[ke(U.$slots,"viewer")])):we("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):we("v-if",!0)],64)):we("v-if",!0)],6))}});var PG=nt(kG,[["__file","image.vue"]]);const wM=Rt(PG),NG=st({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:si,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:n=>n===null||Tt(n)||["min","max"].includes(n),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:n=>n>=0&&n===Number.parseInt(`${n}`,10)},validateEvent:{type:Boolean,default:!0},...ii(["ariaLabel"])}),IG={[Zd]:(n,e)=>e!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[uh]:n=>Tt(n)||as(n),[Ut]:n=>Tt(n)||as(n)},LG=["aria-label","onKeydown"],RG=["aria-label","onKeydown"],$G=me({name:"ElInputNumber"}),DG=me({...$G,props:NG,emits:IG,setup(n,{expose:e,emit:t}){const r=n,{t:o}=xs(),s=Xe("input-number"),i=D(),l=vt({currentValue:r.modelValue,userInput:null}),{formItem:a}=ml(),c=z(()=>Tt(r.modelValue)&&r.modelValue<=r.min),u=z(()=>Tt(r.modelValue)&&r.modelValue>=r.max),d=z(()=>{const R=v(r.step);return Tr(r.precision)?Math.max(v(r.modelValue),R):(R>r.precision,r.precision)}),f=z(()=>r.controls&&r.controlsPosition==="right"),h=Co(),p=Jc(),g=z(()=>{if(l.userInput!==null)return l.userInput;let R=l.currentValue;if(as(R))return"";if(Tt(R)){if(Number.isNaN(R))return"";Tr(r.precision)||(R=R.toFixed(r.precision))}return R}),m=(R,$)=>{if(Tr($)&&($=d.value),$===0)return Math.round(R);let q=String(R);const U=q.indexOf(".");if(U===-1||!q.replace(".","").split("")[U+$])return R;const le=q.length;return q.charAt(le-1)==="5"&&(q=`${q.slice(0,Math.max(0,le-1))}6`),Number.parseFloat(Number(q).toFixed($))},v=R=>{if(as(R))return 0;const $=R.toString(),q=$.indexOf(".");let U=0;return q!==-1&&(U=$.length-q-1),U},w=(R,$=1)=>Tt(R)?m(R+r.step*$):l.currentValue,b=()=>{if(r.readonly||p.value||u.value)return;const R=Number(g.value)||0,$=w(R);E($),t(uh,l.currentValue),j()},y=()=>{if(r.readonly||p.value||c.value)return;const R=Number(g.value)||0,$=w(R,-1);E($),t(uh,l.currentValue),j()},x=(R,$)=>{const{max:q,min:U,step:W,precision:Z,stepStrictly:le,valueOnClear:ee}=r;qq||Meq?q:U,$&&t(Ut,Me)),Me},E=(R,$=!0)=>{var q;const U=l.currentValue,W=x(R);if(!$){t(Ut,W);return}U===W&&R||(l.userInput=null,t(Ut,W),U!==W&&t(Zd,W,U),r.validateEvent&&((q=a==null?void 0:a.validate)==null||q.call(a,"change").catch(Z=>void 0)),l.currentValue=W)},T=R=>{l.userInput=R;const $=R===""?null:Number(R);t(uh,$),E($,!1)},M=R=>{const $=R!==""?Number(R):"";(Tt($)&&!Number.isNaN($)||R==="")&&E($),j(),l.userInput=null},O=()=>{var R,$;($=(R=i.value)==null?void 0:R.focus)==null||$.call(R)},k=()=>{var R,$;($=(R=i.value)==null?void 0:R.blur)==null||$.call(R)},P=R=>{t("focus",R)},L=R=>{var $;l.userInput=null,t("blur",R),r.validateEvent&&(($=a==null?void 0:a.validate)==null||$.call(a,"blur").catch(q=>void 0))},j=()=>{l.currentValue!==r.modelValue&&(l.currentValue=r.modelValue)},ce=R=>{document.activeElement===R.target&&R.preventDefault()};return Be(()=>r.modelValue,(R,$)=>{const q=x(R,!0);l.userInput===null&&q!==$&&(l.currentValue=q)},{immediate:!0}),ot(()=>{var R;const{min:$,max:q,modelValue:U}=r,W=(R=i.value)==null?void 0:R.input;if(W.setAttribute("role","spinbutton"),Number.isFinite(q)?W.setAttribute("aria-valuemax",String(q)):W.removeAttribute("aria-valuemax"),Number.isFinite($)?W.setAttribute("aria-valuemin",String($)):W.removeAttribute("aria-valuemin"),W.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),W.setAttribute("aria-disabled",String(p.value)),!Tt(U)&&U!=null){let Z=Number(U);Number.isNaN(Z)&&(Z=null),t(Ut,Z)}W.addEventListener("wheel",ce,{passive:!1})}),ba(()=>{var R,$;const q=(R=i.value)==null?void 0:R.input;q==null||q.setAttribute("aria-valuenow",`${($=l.currentValue)!=null?$:""}`)}),Or({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input-number",ref:"https://element-plus.org/en-US/component/input-number.html"},z(()=>!!r.label)),e({focus:O,blur:k}),(R,$)=>(A(),G("div",{class:Q([S(s).b(),S(s).m(S(h)),S(s).is("disabled",S(p)),S(s).is("without-controls",!R.controls),S(s).is("controls-right",S(f))]),onDragstart:$[0]||($[0]=It(()=>{},["prevent"]))},[R.controls?Le((A(),G("span",{key:0,role:"button","aria-label":S(o)("el.inputNumber.decrease"),class:Q([S(s).e("decrease"),S(s).is("disabled",S(c))]),onKeydown:ir(y,["enter"])},[ke(R.$slots,"decrease-icon",{},()=>[C(S(dt),null,{default:_(()=>[S(f)?(A(),ye(S(by),{key:0})):(A(),ye(S(mz),{key:1}))]),_:1})])],42,LG)),[[S(ax),y]]):we("v-if",!0),R.controls?Le((A(),G("span",{key:1,role:"button","aria-label":S(o)("el.inputNumber.increase"),class:Q([S(s).e("increase"),S(s).is("disabled",S(u))]),onKeydown:ir(b,["enter"])},[ke(R.$slots,"increase-icon",{},()=>[C(S(dt),null,{default:_(()=>[S(f)?(A(),ye(S(JT),{key:0})):(A(),ye(S(XT),{key:1}))]),_:1})])],42,RG)),[[S(ax),b]]):we("v-if",!0),C(S(wn),{id:R.id,ref_key:"input",ref:i,type:"number",step:R.step,"model-value":S(g),placeholder:R.placeholder,readonly:R.readonly,disabled:S(p),size:S(h),max:R.max,min:R.min,name:R.name,"aria-label":R.label||R.ariaLabel,"validate-event":!1,onKeydown:[ir(It(b,["prevent"]),["up"]),ir(It(y,["prevent"]),["down"])],onBlur:L,onFocus:P,onInput:T,onChange:M},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],34))}});var VG=nt(DG,[["__file","input-number.vue"]]);const dg=Rt(VG),BG=st({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:bo}}),FG={click:n=>n instanceof MouseEvent},zG=["href","target"],jG=me({name:"ElLink"}),HG=me({...jG,props:BG,emits:FG,setup(n,{emit:e}){const t=n,r=Xe("link"),o=z(()=>[r.b(),r.m(t.type),r.is("disabled",t.disabled),r.is("underline",t.underline&&!t.disabled)]);function s(i){t.disabled||e("click",i)}return(i,l)=>(A(),G("a",{class:Q(S(o)),href:i.disabled||!i.href?void 0:i.href,target:i.disabled||!i.href?void 0:i.target,onClick:s},[i.icon?(A(),ye(S(dt),{key:0},{default:_(()=>[(A(),ye(Bt(i.icon)))]),_:1})):we("v-if",!0),i.$slots.default?(A(),G("span",{key:1,class:Q(S(r).e("inner"))},[ke(i.$slots,"default")],2)):we("v-if",!0),i.$slots.icon?ke(i.$slots,"icon",{key:2}):we("v-if",!0)],10,zG))}});var UG=nt(HG,[["__file","link.vue"]]);const WG=Rt(UG),GG=st({icon:{type:bo,default:()=>tz},title:String,content:{type:String,default:""}}),qG={back:()=>!0},KG=["aria-label"],YG=me({name:"ElPageHeader"}),JG=me({...YG,props:GG,emits:qG,setup(n,{emit:e}){const t=qo(),{t:r}=xs(),o=Xe("page-header"),s=z(()=>[o.b(),{[o.m("has-breadcrumb")]:!!t.breadcrumb,[o.m("has-extra")]:!!t.extra,[o.is("contentful")]:!!t.default}]);function i(){e("back")}return(l,a)=>(A(),G("div",{class:Q(S(s))},[l.$slots.breadcrumb?(A(),G("div",{key:0,class:Q(S(o).e("breadcrumb"))},[ke(l.$slots,"breadcrumb")],2)):we("v-if",!0),F("div",{class:Q(S(o).e("header"))},[F("div",{class:Q(S(o).e("left"))},[F("div",{class:Q(S(o).e("back")),role:"button",tabindex:"0",onClick:i},[l.icon||l.$slots.icon?(A(),G("div",{key:0,"aria-label":l.title||S(r)("el.pageHeader.title"),class:Q(S(o).e("icon"))},[ke(l.$slots,"icon",{},()=>[l.icon?(A(),ye(S(dt),{key:0},{default:_(()=>[(A(),ye(Bt(l.icon)))]),_:1})):we("v-if",!0)])],10,KG)):we("v-if",!0),F("div",{class:Q(S(o).e("title"))},[ke(l.$slots,"title",{},()=>[H(oe(l.title||S(r)("el.pageHeader.title")),1)])],2)],2),C(S(rf),{direction:"vertical"}),F("div",{class:Q(S(o).e("content"))},[ke(l.$slots,"content",{},()=>[H(oe(l.content),1)])],2)],2),l.$slots.extra?(A(),G("div",{key:0,class:Q(S(o).e("extra"))},[ke(l.$slots,"extra")],2)):we("v-if",!0)],2),l.$slots.default?(A(),G("div",{key:1,class:Q(S(o).e("main"))},[ke(l.$slots,"default")],2)):we("v-if",!0)],2))}});var XG=nt(JG,[["__file","page-header.vue"]]);const Es=Rt(XG),CM=Symbol("ElSelectGroup"),fg=Symbol("ElSelect");function ZG(n,e){const t=Fe(fg),r=Fe(CM,{disabled:!1}),o=z(()=>t.props.multiple?u(t.props.modelValue,n.value):u([t.props.modelValue],n.value)),s=z(()=>{if(t.props.multiple){const h=t.props.modelValue||[];return!o.value&&h.length>=t.props.multipleLimit&&t.props.multipleLimit>0}else return!1}),i=z(()=>n.label||(gt(n.value)?"":n.value)),l=z(()=>n.value||n.label||""),a=z(()=>n.disabled||e.groupDisabled||s.value),c=bt(),u=(h=[],p)=>{if(gt(n.value)){const g=t.props.valueKey;return h&&h.some(m=>kt(io(m,g))===io(p,g))}else return h&&h.includes(p)},d=()=>{!n.disabled&&!r.disabled&&(t.states.hoveringIndex=t.optionsArray.indexOf(c.proxy))},f=h=>{const p=new RegExp(U6(h),"i");e.visible=p.test(i.value)||n.created};return Be(()=>i.value,()=>{!n.created&&!t.props.remote&&t.setSelected()}),Be(()=>n.value,(h,p)=>{const{remote:g,valueKey:m}=t.props;if(Mr(h,p)||(t.onOptionDestroy(p,c.proxy),t.onOptionCreate(c.proxy)),!n.created&&!g){if(m&>(h)&>(p)&&h[m]===p[m])return;t.setSelected()}}),Be(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0}),{select:t,currentLabel:i,currentValue:l,itemSelected:o,isDisabled:a,hoverItem:d,updateOption:f}}const QG=me({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(n){const e=Xe("select"),t=gs(),r=z(()=>[e.be("dropdown","item"),e.is("disabled",S(l)),e.is("selected",S(i)),e.is("hovering",S(f))]),o=vt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:i,isDisabled:l,select:a,hoverItem:c,updateOption:u}=ZG(n,o),{visible:d,hover:f}=ei(o),h=bt().proxy;a.onOptionCreate(h),_n(()=>{const g=h.value,{selected:m}=a.states,w=(a.props.multiple?m:[m]).some(b=>b.value===h.value);lt(()=>{a.states.cachedOptions.get(g)===h&&!w&&a.states.cachedOptions.delete(g)}),a.onOptionDestroy(g,h)});function p(){n.disabled!==!0&&o.groupDisabled!==!0&&a.handleOptionSelect(h)}return{ns:e,id:t,containerKls:r,currentLabel:s,itemSelected:i,isDisabled:l,select:a,hoverItem:c,updateOption:u,visible:d,hover:f,selectOptionClick:p,states:o}}}),eq=["id","aria-disabled","aria-selected"];function tq(n,e,t,r,o,s){return Le((A(),G("li",{id:n.id,class:Q(n.containerKls),role:"option","aria-disabled":n.isDisabled||void 0,"aria-selected":n.itemSelected,onMouseenter:e[0]||(e[0]=(...i)=>n.hoverItem&&n.hoverItem(...i)),onClick:e[1]||(e[1]=It((...i)=>n.selectOptionClick&&n.selectOptionClick(...i),["stop"]))},[ke(n.$slots,"default",{},()=>[F("span",null,oe(n.currentLabel),1)])],42,eq)),[[Ue,n.visible]])}var Uy=nt(QG,[["render",tq],["__file","option.vue"]]);const nq=me({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const n=Fe(fg),e=Xe("select"),t=z(()=>n.props.popperClass),r=z(()=>n.props.multiple),o=z(()=>n.props.fitInputWidth),s=D("");function i(){var l;s.value=`${(l=n.selectRef)==null?void 0:l.offsetWidth}px`}return ot(()=>{i(),vr(n.selectRef,i)}),{ns:e,minWidth:s,popperClass:t,isMultiple:r,isFitInputWidth:o}}});function rq(n,e,t,r,o,s){return A(),G("div",{class:Q([n.ns.b("dropdown"),n.ns.is("multiple",n.isMultiple),n.popperClass]),style:wt({[n.isFitInputWidth?"width":"minWidth"]:n.minWidth})},[n.$slots.header?(A(),G("div",{key:0,class:Q(n.ns.be("dropdown","header"))},[ke(n.$slots,"header")],2)):we("v-if",!0),ke(n.$slots,"default"),n.$slots.footer?(A(),G("div",{key:1,class:Q(n.ns.be("dropdown","footer"))},[ke(n.$slots,"footer")],2)):we("v-if",!0)],6)}var oq=nt(nq,[["render",rq],["__file","select-dropdown.vue"]]);function sq(n){const e=D(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:s=>{const i=s.target.value,l=i[i.length-1]||"";e.value=!rO(l)},handleCompositionEnd:s=>{e.value&&(e.value=!1,Je(n)&&n(s))}}}const iq=11,lq=(n,e)=>{const{t}=xs(),r=gs(),o=Xe("select"),s=Xe("input"),i=vt({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:n.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=D(null),a=D(null),c=D(null),u=D(null),d=D(null),f=D(null),h=D(null),p=D(null),g=D(null),m=D(null),v=D(null),w=D(null),{wrapperRef:b,isFocused:y,handleFocus:x,handleBlur:E}=MO(d,{afterFocus(){n.automaticDropdown&&!T.value&&(T.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(Ce){var De,$t;return((De=c.value)==null?void 0:De.isFocusInsideContent(Ce))||(($t=u.value)==null?void 0:$t.isFocusInsideContent(Ce))},afterBlur(){T.value=!1,i.menuVisibleOnFocus=!1}}),T=D(!1),M=D(),{form:O,formItem:k}=ml(),{inputId:P}=tf(n,{formItemContext:k}),{valueOnClear:L,isEmptyValue:j}=dH(n),ce=z(()=>n.disabled||(O==null?void 0:O.disabled)),R=z(()=>n.multiple?Ve(n.modelValue)&&n.modelValue.length>0:!j(n.modelValue)),$=z(()=>n.clearable&&!ce.value&&i.inputHovering&&R.value),q=z(()=>n.remote&&n.filterable&&!n.remoteShowSuffix?"":n.suffixIcon),U=z(()=>o.is("reverse",q.value&&T.value)),W=z(()=>(k==null?void 0:k.validateState)||""),Z=z(()=>tO[W.value]),le=z(()=>n.remote?300:0),ee=z(()=>n.loading?n.loadingText||t("el.select.loading"):n.remote&&!i.inputValue&&i.options.size===0?!1:n.filterable&&i.inputValue&&i.options.size>0&&Me.value===0?n.noMatchText||t("el.select.noMatch"):i.options.size===0?n.noDataText||t("el.select.noData"):null),Me=z(()=>ge.value.filter(Ce=>Ce.visible).length),ge=z(()=>{const Ce=Array.from(i.options.values()),De=[];return i.optionValues.forEach($t=>{const nn=Ce.findIndex(di=>di.value===$t);nn>-1&&De.push(Ce[nn])}),De.length>=Ce.length?De:Ce}),be=z(()=>Array.from(i.cachedOptions.values())),Te=z(()=>{const Ce=ge.value.filter(De=>!De.created).some(De=>De.currentLabel===i.inputValue);return n.filterable&&n.allowCreate&&i.inputValue!==""&&!Ce}),re=()=>{n.filterable&&Je(n.filterMethod)||n.filterable&&n.remote&&Je(n.remoteMethod)||ge.value.forEach(Ce=>{var De;(De=Ce.updateOption)==null||De.call(Ce,i.inputValue)})},ae=Co(),te=z(()=>["small"].includes(ae.value)?"small":"default"),ve=z({get(){return T.value&&ee.value!==!1},set(Ce){T.value=Ce}}),Oe=z(()=>Ve(n.modelValue)?n.modelValue.length===0&&!i.inputValue:n.filterable?!i.inputValue:!0),Ye=z(()=>{var Ce;const De=(Ce=n.placeholder)!=null?Ce:t("el.select.placeholder");return n.multiple||!R.value?De:i.selectedLabel}),I=z(()=>hv?null:"mouseenter");Be(()=>n.modelValue,(Ce,De)=>{n.multiple&&n.filterable&&!n.reserveKeyword&&(i.inputValue="",N("")),pe(),!Mr(Ce,De)&&n.validateEvent&&(k==null||k.validate("change").catch($t=>void 0))},{flush:"post",deep:!0}),Be(()=>T.value,Ce=>{Ce?N(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0),e("visible-change",Ce)}),Be(()=>i.options.entries(),()=>{var Ce;if(!Et)return;const De=((Ce=l.value)==null?void 0:Ce.querySelectorAll("input"))||[];(!n.filterable&&!n.defaultFirstOption&&!Tr(n.modelValue)||!Array.from(De).includes(document.activeElement))&&pe(),n.defaultFirstOption&&(n.filterable||n.remote)&&Me.value&&X()},{flush:"post"}),Be(()=>i.hoveringIndex,Ce=>{Tt(Ce)&&Ce>-1?M.value=ge.value[Ce]||{}:M.value={},ge.value.forEach(De=>{De.hover=M.value===De})}),ls(()=>{i.isBeforeHide||re()});const N=Ce=>{i.previousQuery!==Ce&&(i.previousQuery=Ce,n.filterable&&Je(n.filterMethod)?n.filterMethod(Ce):n.filterable&&n.remote&&Je(n.remoteMethod)&&n.remoteMethod(Ce),n.defaultFirstOption&&(n.filterable||n.remote)&&Me.value?lt(X):lt(_e))},X=()=>{const Ce=ge.value.filter(nn=>nn.visible&&!nn.disabled&&!nn.states.groupDisabled),De=Ce.find(nn=>nn.created),$t=Ce[0];i.hoveringIndex=Y(ge.value,De||$t)},pe=()=>{if(n.multiple)i.selectedLabel="";else{const De=fe(n.modelValue);i.selectedLabel=De.currentLabel,i.selected=De;return}const Ce=[];Ve(n.modelValue)&&n.modelValue.forEach(De=>{Ce.push(fe(De))}),i.selected=Ce},fe=Ce=>{let De;const $t=nh(Ce).toLowerCase()==="object",nn=nh(Ce).toLowerCase()==="null",di=nh(Ce).toLowerCase()==="undefined";for(let _l=i.cachedOptions.size-1;_l>=0;_l--){const Xo=be.value[_l];if($t?io(Xo.value,n.valueKey)===io(Ce,n.valueKey):Xo.value===Ce){De={value:Ce,currentLabel:Xo.currentLabel,get isDisabled(){return Xo.isDisabled}};break}}if(De)return De;const _a=$t?Ce.label:!nn&&!di?Ce:"";return{value:Ce,currentLabel:_a}},_e=()=>{n.multiple?i.hoveringIndex=ge.value.findIndex(Ce=>i.selected.some(De=>$r(De)===$r(Ce))):i.hoveringIndex=ge.value.findIndex(Ce=>$r(Ce)===$r(i.selected))},xe=()=>{i.selectionWidth=a.value.getBoundingClientRect().width},V=()=>{i.calculatorWidth=f.value.getBoundingClientRect().width},B=()=>{i.collapseItemWidth=v.value.getBoundingClientRect().width},J=()=>{var Ce,De;(De=(Ce=c.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce)},ue=()=>{var Ce,De;(De=(Ce=u.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce)},Pe=()=>{i.inputValue.length>0&&!T.value&&(T.value=!0),N(i.inputValue)},se=Ce=>{if(i.inputValue=Ce.target.value,n.remote)ne();else return Pe()},ne=hc(()=>{Pe()},le.value),de=Ce=>{Mr(n.modelValue,Ce)||e(Zd,Ce)},We=Ce=>r6(Ce,De=>!i.disabledOptions.has(De)),Ze=Ce=>{if(n.multiple&&Ce.code!==Cn.delete&&Ce.target.value.length<=0){const De=n.modelValue.slice(),$t=We(De);if($t<0)return;const nn=De[$t];De.splice($t,1),e(Ut,De),de(De),e("remove-tag",nn)}},Ie=(Ce,De)=>{const $t=i.selected.indexOf(De);if($t>-1&&!ce.value){const nn=n.modelValue.slice();nn.splice($t,1),e(Ut,nn),de(nn),e("remove-tag",De.value)}Ce.stopPropagation(),fr()},qe=Ce=>{Ce.stopPropagation();const De=n.multiple?[]:L.value;if(n.multiple)for(const $t of i.selected)$t.isDisabled&&De.push($t.value);e(Ut,De),de(De),i.hoveringIndex=-1,T.value=!1,e("clear"),fr()},he=Ce=>{if(n.multiple){const De=(n.modelValue||[]).slice(),$t=Y(De,Ce.value);$t>-1?De.splice($t,1):(n.multipleLimit<=0||De.length{ie(Ce)})},Y=(Ce=[],De)=>{if(!gt(De))return Ce.indexOf(De);const $t=n.valueKey;let nn=-1;return Ce.some((di,_a)=>kt(io(di,$t))===io(De,$t)?(nn=_a,!0):!1),nn},ie=Ce=>{var De,$t,nn,di,_a;const bf=Ve(Ce)?Ce[0]:Ce;let _l=null;if(bf!=null&&bf.value){const Xo=ge.value.filter(F0=>F0.value===bf.value);Xo.length>0&&(_l=Xo[0].$el)}if(c.value&&_l){const Xo=(di=(nn=($t=(De=c.value)==null?void 0:De.popperRef)==null?void 0:$t.contentRef)==null?void 0:nn.querySelector)==null?void 0:di.call(nn,`.${o.be("dropdown","wrap")}`);Xo&&Y6(Xo,_l)}(_a=w.value)==null||_a.handleScroll()},Ae=Ce=>{i.options.set(Ce.value,Ce),i.cachedOptions.set(Ce.value,Ce),Ce.disabled&&i.disabledOptions.set(Ce.value,Ce)},Se=(Ce,De)=>{i.options.get(Ce)===De&&i.options.delete(Ce)},{handleCompositionStart:ze,handleCompositionUpdate:it,handleCompositionEnd:Ft}=sq(Ce=>se(Ce)),on=z(()=>{var Ce,De;return(De=(Ce=c.value)==null?void 0:Ce.popperRef)==null?void 0:De.contentRef}),dr=()=>{i.isBeforeHide=!1,lt(()=>ie(i.selected))},fr=()=>{var Ce;(Ce=d.value)==null||Ce.focus()},hr=()=>{Eo()},sn=Ce=>{qe(Ce)},Eo=Ce=>{if(T.value=!1,y.value){const De=new FocusEvent("focus",Ce);lt(()=>E(De))}},Jr=()=>{i.inputValue.length>0?i.inputValue="":T.value=!1},ui=()=>{ce.value||(hv&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:T.value=!T.value)},Ms=()=>{T.value?ge.value[i.hoveringIndex]&&he(ge.value[i.hoveringIndex]):ui()},$r=Ce=>gt(Ce.value)?io(Ce.value,n.valueKey):Ce.value,Ee=z(()=>ge.value.filter(Ce=>Ce.visible).every(Ce=>Ce.disabled)),fN=z(()=>n.multiple?n.collapseTags?i.selected.slice(0,n.maxCollapseTags):i.selected:[]),hN=z(()=>n.multiple?n.collapseTags?i.selected.slice(n.maxCollapseTags):[]:[]),B0=Ce=>{if(!T.value){T.value=!0;return}if(!(i.options.size===0||Me.value===0)&&!Ee.value){Ce==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):Ce==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const De=ge.value[i.hoveringIndex];(De.disabled===!0||De.states.groupDisabled===!0||!De.visible)&&B0(Ce),lt(()=>ie(M.value))}},pN=()=>{if(!a.value)return 0;const Ce=window.getComputedStyle(a.value);return Number.parseFloat(Ce.gap||"6px")},gN=z(()=>{const Ce=pN();return{maxWidth:`${v.value&&n.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-Ce:i.selectionWidth}px`}}),mN=z(()=>({maxWidth:`${i.selectionWidth}px`})),vN=z(()=>({width:`${Math.max(i.calculatorWidth,iq)}px`}));return n.multiple&&!Ve(n.modelValue)&&e(Ut,[]),!n.multiple&&Ve(n.modelValue)&&e(Ut,""),vr(a,xe),vr(f,V),vr(g,J),vr(b,J),vr(m,ue),vr(v,B),ot(()=>{pe()}),{inputId:P,contentId:r,nsSelect:o,nsInput:s,states:i,isFocused:y,expanded:T,optionsArray:ge,hoverOption:M,selectSize:ae,filteredOptionsCount:Me,resetCalculatorWidth:V,updateTooltip:J,updateTagTooltip:ue,debouncedOnInputChange:ne,onInput:se,deletePrevTag:Ze,deleteTag:Ie,deleteSelected:qe,handleOptionSelect:he,scrollToOption:ie,hasModelValue:R,shouldShowPlaceholder:Oe,currentPlaceholder:Ye,mouseEnterEventName:I,showClose:$,iconComponent:q,iconReverse:U,validateState:W,validateIcon:Z,showNewOption:Te,updateOptions:re,collapseTagSize:te,setSelected:pe,selectDisabled:ce,emptyText:ee,handleCompositionStart:ze,handleCompositionUpdate:it,handleCompositionEnd:Ft,onOptionCreate:Ae,onOptionDestroy:Se,handleMenuEnter:dr,handleFocus:x,focus:fr,blur:hr,handleBlur:E,handleClearClick:sn,handleClickOutside:Eo,handleEsc:Jr,toggleMenu:ui,selectOption:Ms,getValueKey:$r,navigateOptions:B0,dropdownMenuVisible:ve,showTagList:fN,collapseTagList:hN,tagStyle:gN,collapseTagStyle:mN,inputStyle:vN,popperRef:on,inputRef:d,tooltipRef:c,tagTooltipRef:u,calculatorRef:f,prefixRef:h,suffixRef:p,selectRef:l,wrapperRef:b,selectionRef:a,scrollbarRef:w,menuRef:g,tagMenuRef:m,collapseItemRef:v}};var aq=me({name:"ElOptions",setup(n,{slots:e}){const t=Fe(fg);let r=[];return()=>{var o,s;const i=(o=e.default)==null?void 0:o.call(e),l=[];function a(c){Ve(c)&&c.forEach(u=>{var d,f,h,p;const g=(d=(u==null?void 0:u.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?a(!ht(u.children)&&!Ve(u.children)&&Je((f=u.children)==null?void 0:f.default)?(h=u.children)==null?void 0:h.default():u.children):g==="ElOption"?l.push((p=u.props)==null?void 0:p.value):Ve(u.children)&&a(u.children)})}return i.length&&a((s=i[0])==null?void 0:s.children),Mr(l,r)||(r=l,t&&(t.states.optionValues=l)),i}}});const cq=st({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:si,effect:{type:je(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:je(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Br.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:bo,default:wy},fitInputWidth:Boolean,suffixIcon:{type:bo,default:by},tagType:{...Fv.type,default:"info"},tagEffect:{...Fv.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:je(String),values:eg,default:"bottom-start"},fallbackPlacements:{type:je(Array),default:["bottom-start","top-start","right","left"]},...uH,...ii(["ariaLabel"])}),px="ElSelect",uq=me({name:px,componentName:px,components:{ElInput:wn,ElSelectMenu:oq,ElOption:Uy,ElOptions:aq,ElTag:cM,ElScrollbar:sg,ElTooltip:Rr,ElIcon:dt},directives:{ClickOutside:UO},props:cq,emits:[Ut,Zd,"remove-tag","clear","visible-change","focus","blur"],setup(n,{emit:e}){const t=lq(n,e);return jt(fg,vt({props:n,states:t.states,optionsArray:t.optionsArray,handleOptionSelect:t.handleOptionSelect,onOptionCreate:t.onOptionCreate,onOptionDestroy:t.onOptionDestroy,selectRef:t.selectRef,setSelected:t.setSelected})),{...t}}}),dq=["id","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],fq=["textContent"],hq={key:1};function pq(n,e,t,r,o,s){const i=at("el-tag"),l=at("el-tooltip"),a=at("el-icon"),c=at("el-option"),u=at("el-options"),d=at("el-scrollbar"),f=at("el-select-menu"),h=Ub("click-outside");return Le((A(),G("div",{ref:"selectRef",class:Q([n.nsSelect.b(),n.nsSelect.m(n.selectSize)]),[rh(n.mouseEnterEventName)]:e[16]||(e[16]=p=>n.states.inputHovering=!0),onMouseleave:e[17]||(e[17]=p=>n.states.inputHovering=!1),onClick:e[18]||(e[18]=It((...p)=>n.toggleMenu&&n.toggleMenu(...p),["prevent","stop"]))},[C(l,{ref:"tooltipRef",visible:n.dropdownMenuVisible,placement:n.placement,teleported:n.teleported,"popper-class":[n.nsSelect.e("popper"),n.popperClass],"popper-options":n.popperOptions,"fallback-placements":n.fallbackPlacements,effect:n.effect,pure:"",trigger:"click",transition:`${n.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:n.persistent,onBeforeShow:n.handleMenuEnter,onHide:e[15]||(e[15]=p=>n.states.isBeforeHide=!1)},{default:_(()=>{var p;return[F("div",{ref:"wrapperRef",class:Q([n.nsSelect.e("wrapper"),n.nsSelect.is("focused",n.isFocused),n.nsSelect.is("hovering",n.states.inputHovering),n.nsSelect.is("filterable",n.filterable),n.nsSelect.is("disabled",n.selectDisabled)])},[n.$slots.prefix?(A(),G("div",{key:0,ref:"prefixRef",class:Q(n.nsSelect.e("prefix"))},[ke(n.$slots,"prefix")],2)):we("v-if",!0),F("div",{ref:"selectionRef",class:Q([n.nsSelect.e("selection"),n.nsSelect.is("near",n.multiple&&!n.$slots.prefix&&!!n.states.selected.length)])},[n.multiple?ke(n.$slots,"tag",{key:0},()=>[(A(!0),G(Re,null,St(n.showTagList,g=>(A(),G("div",{key:n.getValueKey(g),class:Q(n.nsSelect.e("selected-item"))},[C(i,{closable:!n.selectDisabled&&!g.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:wt(n.tagStyle),onClose:m=>n.deleteTag(m,g)},{default:_(()=>[F("span",{class:Q(n.nsSelect.e("tags-text"))},[ke(n.$slots,"label",{label:g.currentLabel,value:g.value},()=>[H(oe(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),n.collapseTags&&n.states.selected.length>n.maxCollapseTags?(A(),ye(l,{key:0,ref:"tagTooltipRef",disabled:n.dropdownMenuVisible||!n.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:n.effect,placement:"bottom",teleported:n.teleported},{default:_(()=>[F("div",{ref:"collapseItemRef",class:Q(n.nsSelect.e("selected-item"))},[C(i,{closable:!1,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:wt(n.collapseTagStyle)},{default:_(()=>[F("span",{class:Q(n.nsSelect.e("tags-text"))}," + "+oe(n.states.selected.length-n.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:_(()=>[F("div",{ref:"tagMenuRef",class:Q(n.nsSelect.e("selection"))},[(A(!0),G(Re,null,St(n.collapseTagList,g=>(A(),G("div",{key:n.getValueKey(g),class:Q(n.nsSelect.e("selected-item"))},[C(i,{class:"in-tooltip",closable:!n.selectDisabled&&!g.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",onClose:m=>n.deleteTag(m,g)},{default:_(()=>[F("span",{class:Q(n.nsSelect.e("tags-text"))},[ke(n.$slots,"label",{label:g.currentLabel,value:g.value},()=>[H(oe(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):we("v-if",!0)]):we("v-if",!0),n.selectDisabled?we("v-if",!0):(A(),G("div",{key:1,class:Q([n.nsSelect.e("selected-item"),n.nsSelect.e("input-wrapper"),n.nsSelect.is("hidden",!n.filterable)])},[Le(F("input",{id:n.inputId,ref:"inputRef","onUpdate:modelValue":e[0]||(e[0]=g=>n.states.inputValue=g),type:"text",name:n.name,class:Q([n.nsSelect.e("input"),n.nsSelect.is(n.selectSize)]),disabled:n.selectDisabled,autocomplete:n.autocomplete,style:wt(n.inputStyle),role:"combobox",readonly:!n.filterable,spellcheck:"false","aria-activedescendant":((p=n.hoverOption)==null?void 0:p.id)||"","aria-controls":n.contentId,"aria-expanded":n.dropdownMenuVisible,"aria-label":n.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e[1]||(e[1]=(...g)=>n.handleFocus&&n.handleFocus(...g)),onBlur:e[2]||(e[2]=(...g)=>n.handleBlur&&n.handleBlur(...g)),onKeydown:[e[3]||(e[3]=ir(It(g=>n.navigateOptions("next"),["stop","prevent"]),["down"])),e[4]||(e[4]=ir(It(g=>n.navigateOptions("prev"),["stop","prevent"]),["up"])),e[5]||(e[5]=ir(It((...g)=>n.handleEsc&&n.handleEsc(...g),["stop","prevent"]),["esc"])),e[6]||(e[6]=ir(It((...g)=>n.selectOption&&n.selectOption(...g),["stop","prevent"]),["enter"])),e[7]||(e[7]=ir(It((...g)=>n.deletePrevTag&&n.deletePrevTag(...g),["stop"]),["delete"]))],onCompositionstart:e[8]||(e[8]=(...g)=>n.handleCompositionStart&&n.handleCompositionStart(...g)),onCompositionupdate:e[9]||(e[9]=(...g)=>n.handleCompositionUpdate&&n.handleCompositionUpdate(...g)),onCompositionend:e[10]||(e[10]=(...g)=>n.handleCompositionEnd&&n.handleCompositionEnd(...g)),onInput:e[11]||(e[11]=(...g)=>n.onInput&&n.onInput(...g)),onClick:e[12]||(e[12]=It((...g)=>n.toggleMenu&&n.toggleMenu(...g),["stop"]))},null,46,dq),[[DL,n.states.inputValue]]),n.filterable?(A(),G("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Q(n.nsSelect.e("input-calculator")),textContent:oe(n.states.inputValue)},null,10,fq)):we("v-if",!0)],2)),n.shouldShowPlaceholder?(A(),G("div",{key:2,class:Q([n.nsSelect.e("selected-item"),n.nsSelect.e("placeholder"),n.nsSelect.is("transparent",!n.hasModelValue||n.expanded&&!n.states.inputValue)])},[n.hasModelValue?ke(n.$slots,"label",{key:0,label:n.currentPlaceholder,value:n.modelValue},()=>[F("span",null,oe(n.currentPlaceholder),1)]):(A(),G("span",hq,oe(n.currentPlaceholder),1))],2)):we("v-if",!0)],2),F("div",{ref:"suffixRef",class:Q(n.nsSelect.e("suffix"))},[n.iconComponent&&!n.showClose?(A(),ye(a,{key:0,class:Q([n.nsSelect.e("caret"),n.nsSelect.e("icon"),n.iconReverse])},{default:_(()=>[(A(),ye(Bt(n.iconComponent)))]),_:1},8,["class"])):we("v-if",!0),n.showClose&&n.clearIcon?(A(),ye(a,{key:1,class:Q([n.nsSelect.e("caret"),n.nsSelect.e("icon")]),onClick:n.handleClearClick},{default:_(()=>[(A(),ye(Bt(n.clearIcon)))]),_:1},8,["class","onClick"])):we("v-if",!0),n.validateState&&n.validateIcon?(A(),ye(a,{key:2,class:Q([n.nsInput.e("icon"),n.nsInput.e("validateIcon")])},{default:_(()=>[(A(),ye(Bt(n.validateIcon)))]),_:1},8,["class"])):we("v-if",!0)],2)],2)]}),content:_(()=>[C(f,{ref:"menuRef"},{default:_(()=>[n.$slots.header?(A(),G("div",{key:0,class:Q(n.nsSelect.be("dropdown","header")),onClick:e[13]||(e[13]=It(()=>{},["stop"]))},[ke(n.$slots,"header")],2)):we("v-if",!0),Le(C(d,{id:n.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":n.nsSelect.be("dropdown","wrap"),"view-class":n.nsSelect.be("dropdown","list"),class:Q([n.nsSelect.is("empty",n.filteredOptionsCount===0)]),role:"listbox","aria-label":n.ariaLabel,"aria-orientation":"vertical"},{default:_(()=>[n.showNewOption?(A(),ye(c,{key:0,value:n.states.inputValue,created:!0},null,8,["value"])):we("v-if",!0),C(u,null,{default:_(()=>[ke(n.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Ue,n.states.options.size>0&&!n.loading]]),n.$slots.loading&&n.loading?(A(),G("div",{key:1,class:Q(n.nsSelect.be("dropdown","loading"))},[ke(n.$slots,"loading")],2)):n.loading||n.filteredOptionsCount===0?(A(),G("div",{key:2,class:Q(n.nsSelect.be("dropdown","empty"))},[ke(n.$slots,"empty",{},()=>[F("span",null,oe(n.emptyText),1)])],2)):we("v-if",!0),n.$slots.footer?(A(),G("div",{key:3,class:Q(n.nsSelect.be("dropdown","footer")),onClick:e[14]||(e[14]=It(()=>{},["stop"]))},[ke(n.$slots,"footer")],2)):we("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],16)),[[h,n.handleClickOutside,n.popperRef]])}var gq=nt(uq,[["render",pq],["__file","select.vue"]]);const mq=me({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(n){const e=Xe("select"),t=D(null),r=bt(),o=D([]);jt(CM,vt({...ei(n)}));const s=z(()=>o.value.some(c=>c.visible===!0)),i=c=>{var u,d;return((u=c.type)==null?void 0:u.name)==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},l=c=>{const u=Vh(c),d=[];return u.forEach(f=>{var h,p;i(f)?d.push(f.component.proxy):(h=f.children)!=null&&h.length?d.push(...l(f.children)):(p=f.component)!=null&&p.subTree&&d.push(...l(f.component.subTree))}),d},a=()=>{o.value=l(r.subTree)};return ot(()=>{a()}),TD(t,a,{attributes:!0,subtree:!0,childList:!0}),{groupRef:t,visible:s,ns:e}}});function vq(n,e,t,r,o,s){return Le((A(),G("ul",{ref:"groupRef",class:Q(n.ns.be("group","wrap"))},[F("li",{class:Q(n.ns.be("group","title"))},oe(n.label),3),F("li",null,[F("ul",{class:Q(n.ns.b("group"))},[ke(n.$slots,"default")],2)])],2)),[[Ue,n.visible]])}var xM=nt(mq,[["render",vq],["__file","option-group.vue"]]);const _s=Rt(gq,{Option:Uy,OptionGroup:xM}),Ts=Lr(Uy);Lr(xM);const bq=st({trigger:md.trigger,placement:am.placement,disabled:md.disabled,visible:Br.visible,transition:Br.transition,popperOptions:am.popperOptions,tabindex:am.tabindex,content:Br.content,popperStyle:Br.popperStyle,popperClass:Br.popperClass,enterable:{...Br.enterable,default:!0},effect:{...Br.effect,default:"light"},teleported:Br.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),yq={"update:visible":n=>go(n),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},wq="onUpdate:visible",Cq=me({name:"ElPopover"}),xq=me({...Cq,props:bq,emits:yq,setup(n,{expose:e,emit:t}){const r=n,o=z(()=>r[wq]),s=Xe("popover"),i=D(),l=z(()=>{var m;return(m=S(i))==null?void 0:m.popperRef}),a=z(()=>[{width:vo(r.width)},r.popperStyle]),c=z(()=>[s.b(),r.popperClass,{[s.m("plain")]:!!r.content}]),u=z(()=>r.transition===`${s.namespace.value}-fade-in-linear`),d=()=>{var m;(m=i.value)==null||m.hide()},f=()=>{t("before-enter")},h=()=>{t("before-leave")},p=()=>{t("after-enter")},g=()=>{t("update:visible",!1),t("after-leave")};return e({popperRef:l,hide:d}),(m,v)=>(A(),ye(S(Rr),Ur({ref_key:"tooltipRef",ref:i},m.$attrs,{trigger:m.trigger,placement:m.placement,disabled:m.disabled,visible:m.visible,transition:m.transition,"popper-options":m.popperOptions,tabindex:m.tabindex,content:m.content,offset:m.offset,"show-after":m.showAfter,"hide-after":m.hideAfter,"auto-close":m.autoClose,"show-arrow":m.showArrow,"aria-label":m.title,effect:m.effect,enterable:m.enterable,"popper-class":S(c),"popper-style":S(a),teleported:m.teleported,persistent:m.persistent,"gpu-acceleration":S(u),"onUpdate:visible":S(o),onBeforeShow:f,onBeforeHide:h,onShow:p,onHide:g}),{content:_(()=>[m.title?(A(),G("div",{key:0,class:Q(S(s).e("title")),role:"title"},oe(m.title),3)):we("v-if",!0),ke(m.$slots,"default",{},()=>[H(oe(m.content),1)])]),default:_(()=>[m.$slots.reference?ke(m.$slots,"reference",{key:0}):we("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Sq=nt(xq,[["__file","popover.vue"]]);const gx=(n,e)=>{const t=e.arg||e.value,r=t==null?void 0:t.popperRef;r&&(r.triggerRef=n)};var Eq={mounted(n,e){gx(n,e)},updated(n,e){gx(n,e)}};const _q="popover",Tq=Iz(Eq,_q),Oq=Rt(Sq,{directive:Tq}),Fa={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},mx={[Fa.success]:rz,[Fa.warning]:xy,[Fa.error]:yy,[Fa.info]:Cy},Mq=st({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Aq=me({name:"ElResult"}),kq=me({...Aq,props:Mq,setup(n){const e=n,t=Xe("result"),r=z(()=>{const o=e.icon,s=o&&Fa[o]?Fa[o]:"icon-info",i=mx[s]||mx["icon-info"];return{class:s,component:i}});return(o,s)=>(A(),G("div",{class:Q(S(t).b())},[F("div",{class:Q(S(t).e("icon"))},[ke(o.$slots,"icon",{},()=>[S(r).component?(A(),ye(Bt(S(r).component),{key:0,class:Q(S(r).class)},null,8,["class"])):we("v-if",!0)])],2),o.title||o.$slots.title?(A(),G("div",{key:0,class:Q(S(t).e("title"))},[ke(o.$slots,"title",{},()=>[F("p",null,oe(o.title),1)])],2)):we("v-if",!0),o.subTitle||o.$slots["sub-title"]?(A(),G("div",{key:1,class:Q(S(t).e("subtitle"))},[ke(o.$slots,"sub-title",{},()=>[F("p",null,oe(o.subTitle),1)])],2)):we("v-if",!0),o.$slots.extra?(A(),G("div",{key:2,class:Q(S(t).e("extra"))},[ke(o.$slots,"extra")],2)):we("v-if",!0)],2))}});var Pq=nt(kq,[["__file","result.vue"]]);const Nq=Rt(Pq),Iq=st({prefixCls:{type:String}}),vx=me({name:"ElSpaceItem",props:Iq,setup(n,{slots:e}){const t=Xe("space"),r=z(()=>`${n.prefixCls||t.b()}__item`);return()=>et("div",{class:r.value},ke(e,"default"))}}),bx={small:8,default:12,large:16};function Lq(n){const e=Xe("space"),t=z(()=>[e.b(),e.m(n.direction),n.class]),r=D(0),o=D(0),s=z(()=>{const l=n.wrap||n.fill?{flexWrap:"wrap"}:{},a={alignItems:n.alignment},c={rowGap:`${o.value}px`,columnGap:`${r.value}px`};return[l,a,c,n.style]}),i=z(()=>n.fill?{flexGrow:1,minWidth:`${n.fillRatio}%`}:{});return ls(()=>{const{size:l="small",wrap:a,direction:c,fill:u}=n;if(Ve(l)){const[d=0,f=0]=l;r.value=d,o.value=f}else{let d;Tt(l)?d=l:d=bx[l||"small"]||bx.small,(a||u)&&c==="horizontal"?r.value=o.value=d:c==="horizontal"?(r.value=d,o.value=0):(o.value=d,r.value=0)}}),{classes:t,containerStyle:s,itemStyle:i}}const Rq=st({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:je([String,Object,Array]),default:""},style:{type:je([String,Array,Object]),default:""},alignment:{type:je(String),default:"center"},prefixCls:{type:String},spacer:{type:je([Object,String,Number,Array]),default:null,validator:n=>Pn(n)||Tt(n)||ht(n)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Sa,validator:n=>Tt(n)||Ve(n)&&n.length===2&&n.every(Tt)}}),$q=me({name:"ElSpace",props:Rq,setup(n,{slots:e}){const{classes:t,containerStyle:r,itemStyle:o}=Lq(n);function s(i,l="",a=[]){const{prefixCls:c}=n;return i.forEach((u,d)=>{xv(u)?Ve(u.children)&&u.children.forEach((f,h)=>{xv(f)&&Ve(f.children)?s(f.children,`${l+h}-`,a):a.push(C(vx,{style:o.value,prefixCls:c,key:`nested-${l+h}`},{default:()=>[f]},eo.PROPS|eo.STYLE,["style","prefixCls"]))}):Dz(u)&&a.push(C(vx,{style:o.value,prefixCls:c,key:`LoopKey${l+d}`},{default:()=>[u]},eo.PROPS|eo.STYLE,["style","prefixCls"]))}),a}return()=>{var i;const{spacer:l,direction:a}=n,c=ke(e,"default",{key:0},()=>[]);if(((i=c.children)!=null?i:[]).length===0)return null;if(Ve(c.children)){let u=s(c.children);if(l){const d=u.length-1;u=u.reduce((f,h,p)=>{const g=[...f,h];return p!==d&&g.push(C("span",{style:[o.value,a==="vertical"?"width: 100%":null],key:p},[Pn(l)?l:H(l,eo.TEXT)],eo.STYLE)),g},[])}return C("div",{class:t.value,style:r.value},u,eo.STYLE|eo.CLASS)}return c.children}}}),SM=Rt($q),cm=function(n){var e;return(e=n.target)==null?void 0:e.closest("td")},Dq=function(n,e,t,r,o){if(!e&&!r&&(!o||Array.isArray(o)&&!o.length))return n;typeof t=="string"?t=t==="descending"?-1:1:t=t&&t<0?-1:1;const s=r?null:function(l,a){return o?(Array.isArray(o)||(o=[o]),o.map(c=>typeof c=="string"?io(l,c):c(l,a,n))):(e!=="$key"&>(l)&&"$value"in l&&(l=l.$value),[gt(l)?io(l,e):l])},i=function(l,a){if(r)return r(l.value,a.value);for(let c=0,u=l.key.length;ca.key[c])return 1}return 0};return n.map((l,a)=>({value:l,index:a,key:s?s(l,a):null})).sort((l,a)=>{let c=i(l,a);return c||(c=l.index-a.index),c*+t}).map(l=>l.value)},EM=function(n,e){let t=null;return n.columns.forEach(r=>{r.id===e&&(t=r)}),t},Vq=function(n,e){let t=null;for(let r=0;r{if(!n)throw new Error("Row is required when get row identity");if(typeof e=="string"){if(!e.includes("."))return`${n[e]}`;const t=e.split(".");let r=n;for(const o of t)r=r[o];return`${r}`}else if(typeof e=="function")return e.call(null,n)},Ul=function(n,e){const t={};return(n||[]).forEach((r,o)=>{t[Zn(r,e)]={row:r,index:o}}),t};function Bq(n,e){const t={};let r;for(r in n)t[r]=n[r];for(r in e)if(xt(e,r)){const o=e[r];typeof o<"u"&&(t[r]=o)}return t}function Wy(n){return n===""||n!==void 0&&(n=Number.parseInt(n,10),Number.isNaN(n)&&(n="")),n}function _M(n){return n===""||n!==void 0&&(n=Wy(n),Number.isNaN(n)&&(n=80)),n}function Fq(n){return typeof n=="number"?n:typeof n=="string"?/^\d+(?:px)?$/.test(n)?Number.parseInt(n,10):n:null}function zq(...n){return n.length===0?e=>e:n.length===1?n[0]:n.reduce((e,t)=>(...r)=>e(t(...r)))}function Vu(n,e,t){let r=!1;const o=n.indexOf(e),s=o!==-1,i=l=>{l==="add"?n.push(e):n.splice(o,1),r=!0,Ve(e.children)&&e.children.forEach(a=>{Vu(n,a,t??!s)})};return go(t)?t&&!s?i("add"):!t&&s&&i("remove"):i(s?"remove":"add"),r}function jq(n,e,t="children",r="hasChildren"){const o=i=>!(Array.isArray(i)&&i.length);function s(i,l,a){e(i,l,a),l.forEach(c=>{if(c[r]){e(c,null,a+1);return}const u=c[t];o(u)||s(c,u,a+1)})}n.forEach(i=>{if(i[r]){e(i,null,0);return}const l=i[t];o(l)||s(i,l,0)})}let Zr=null;function Hq(n,e,t,r){if((Zr==null?void 0:Zr.trigger)===t)return;Zr==null||Zr();const o=r==null?void 0:r.refs.tableWrapper,s=o==null?void 0:o.dataset.prefix,i={strategy:"fixed",...n.popperOptions},l=C(Rr,{content:e,virtualTriggering:!0,virtualRef:t,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0,...n,popperOptions:i,onHide:()=>{Zr==null||Zr()}});l.appContext={...r.appContext,...r};const a=document.createElement("div");Zi(l,a),l.component.exposed.onOpen();const c=o==null?void 0:o.querySelector(`.${s}-scrollbar__wrap`);Zr=()=>{Zi(null,a),c==null||c.removeEventListener("scroll",Zr),Zr=null},Zr.trigger=t,c==null||c.addEventListener("scroll",Zr)}function TM(n){return n.children?s6(n.children,TM):[n]}function wx(n,e){return n+e.colSpan}const OM=(n,e,t,r)=>{let o=0,s=n;const i=t.states.columns.value;if(r){const a=TM(r[n]);o=i.slice(0,i.indexOf(a[0])).reduce(wx,0),s=o+a.reduce(wx,0)-1}else o=n;let l;switch(e){case"left":s=i.length-t.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:s=i.length-t.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:o,after:s}:{}},Gy=(n,e,t,r,o,s=0)=>{const i=[],{direction:l,start:a,after:c}=OM(e,t,r,o);if(l){const u=l==="left";i.push(`${n}-fixed-column--${l}`),u&&c+s===r.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!u&&a-s===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&i.push("is-first-column")}return i};function Cx(n,e){return n+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const qy=(n,e,t,r)=>{const{direction:o,start:s=0,after:i=0}=OM(n,e,t,r);if(!o)return;const l={},a=o==="left",c=t.states.columns.value;return a?l.left=c.slice(0,s).reduce(Cx,0):l.right=c.slice(i+1).reverse().reduce(Cx,0),l},yc=(n,e)=>{n&&(Number.isNaN(n[e])||(n[e]=`${n[e]}px`))};function Uq(n){const e=bt(),t=D(!1),r=D([]);return{updateExpandRows:()=>{const a=n.data.value||[],c=n.rowKey.value;if(t.value)r.value=a.slice();else if(c){const u=Ul(r.value,c);r.value=a.reduce((d,f)=>{const h=Zn(f,c);return u[h]&&d.push(f),d},[])}else r.value=[]},toggleRowExpansion:(a,c)=>{Vu(r.value,a,c)&&e.emit("expand-change",a,r.value.slice())},setExpandRowKeys:a=>{e.store.assertRowKey();const c=n.data.value||[],u=n.rowKey.value,d=Ul(c,u);r.value=a.reduce((f,h)=>{const p=d[h];return p&&f.push(p.row),f},[])},isRowExpanded:a=>{const c=n.rowKey.value;return c?!!Ul(r.value,c)[Zn(a,c)]:r.value.includes(a)},states:{expandRows:r,defaultExpandAll:t}}}function Wq(n){const e=bt(),t=D(null),r=D(null),o=c=>{e.store.assertRowKey(),t.value=c,i(c)},s=()=>{t.value=null},i=c=>{const{data:u,rowKey:d}=n;let f=null;d.value&&(f=(S(u)||[]).find(h=>Zn(h,d.value)===c)),r.value=f,e.emit("current-change",r.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:s,setCurrentRowByKey:i,updateCurrentRow:c=>{const u=r.value;if(c&&c!==u){r.value=c,e.emit("current-change",r.value,u);return}!c&&u&&(r.value=null,e.emit("current-change",null,u))},updateCurrentRowData:()=>{const c=n.rowKey.value,u=n.data.value||[],d=r.value;if(!u.includes(d)&&d){if(c){const f=Zn(d,c);i(f)}else r.value=null;r.value===null&&e.emit("current-change",null,d)}else t.value&&(i(t.value),s())},states:{_currentRowKey:t,currentRow:r}}}function Gq(n){const e=D([]),t=D({}),r=D(16),o=D(!1),s=D({}),i=D("hasChildren"),l=D("children"),a=bt(),c=z(()=>{if(!n.rowKey.value)return{};const v=n.data.value||[];return d(v)}),u=z(()=>{const v=n.rowKey.value,w=Object.keys(s.value),b={};return w.length&&w.forEach(y=>{if(s.value[y].length){const x={children:[]};s.value[y].forEach(E=>{const T=Zn(E,v);x.children.push(T),E[i.value]&&!b[T]&&(b[T]={children:[]})}),b[y]=x}}),b}),d=v=>{const w=n.rowKey.value,b={};return jq(v,(y,x,E)=>{const T=Zn(y,w);Array.isArray(x)?b[T]={children:x.map(M=>Zn(M,w)),level:E}:o.value&&(b[T]={children:[],lazy:!0,level:E})},l.value,i.value),b},f=(v=!1,w=(b=>(b=a.store)==null?void 0:b.states.defaultExpandAll.value)())=>{var b;const y=c.value,x=u.value,E=Object.keys(y),T={};if(E.length){const M=S(t),O=[],k=(L,j)=>{if(v)return e.value?w||e.value.includes(j):!!(w||L!=null&&L.expanded);{const ce=w||e.value&&e.value.includes(j);return!!(L!=null&&L.expanded||ce)}};E.forEach(L=>{const j=M[L],ce={...y[L]};if(ce.expanded=k(j,L),ce.lazy){const{loaded:R=!1,loading:$=!1}=j||{};ce.loaded=!!R,ce.loading=!!$,O.push(L)}T[L]=ce});const P=Object.keys(x);o.value&&P.length&&O.length&&P.forEach(L=>{const j=M[L],ce=x[L].children;if(O.includes(L)){if(T[L].children.length!==0)throw new Error("[ElTable]children must be an empty array.");T[L].children=ce}else{const{loaded:R=!1,loading:$=!1}=j||{};T[L]={lazy:!0,loaded:!!R,loading:!!$,expanded:k(j,L),children:ce,level:""}}})}t.value=T,(b=a.store)==null||b.updateTableScrollY()};Be(()=>e.value,()=>{f(!0)}),Be(()=>c.value,()=>{f()}),Be(()=>u.value,()=>{f()});const h=v=>{e.value=v,f()},p=(v,w)=>{a.store.assertRowKey();const b=n.rowKey.value,y=Zn(v,b),x=y&&t.value[y];if(y&&x&&"expanded"in x){const E=x.expanded;w=typeof w>"u"?!x.expanded:w,t.value[y].expanded=w,E!==w&&a.emit("expand-change",v,w),a.store.updateTableScrollY()}},g=v=>{a.store.assertRowKey();const w=n.rowKey.value,b=Zn(v,w),y=t.value[b];o.value&&y&&"loaded"in y&&!y.loaded?m(v,b,y):p(v,void 0)},m=(v,w,b)=>{const{load:y}=a.props;y&&!t.value[w].loaded&&(t.value[w].loading=!0,y(v,b,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");t.value[w].loading=!1,t.value[w].loaded=!0,t.value[w].expanded=!0,x.length&&(s.value[w]=x),a.emit("expand-change",v,!0)}))};return{loadData:m,loadOrToggle:g,toggleTreeExpansion:p,updateTreeExpandKeys:h,updateTreeData:f,normalize:d,states:{expandRowKeys:e,treeData:t,indent:r,lazy:o,lazyTreeNodeMap:s,lazyColumnIdentifier:i,childrenColumnName:l}}}const qq=(n,e)=>{const t=e.sortingColumn;return!t||typeof t.sortable=="string"?n:Dq(n,e.sortProp,e.sortOrder,t.sortMethod,t.sortBy)},vh=n=>{const e=[];return n.forEach(t=>{t.children&&t.children.length>0?e.push.apply(e,vh(t.children)):e.push(t)}),e};function Kq(){var n;const e=bt(),{size:t}=ei((n=e.proxy)==null?void 0:n.$props),r=D(null),o=D([]),s=D([]),i=D(!1),l=D([]),a=D([]),c=D([]),u=D([]),d=D([]),f=D([]),h=D([]),p=D([]),g=[],m=D(0),v=D(0),w=D(0),b=D(!1),y=D([]),x=D(!1),E=D(!1),T=D(null),M=D({}),O=D(null),k=D(null),P=D(null),L=D(null),j=D(null);Be(o,()=>e.state&&q(!1),{deep:!0});const ce=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},R=Ie=>{var qe;(qe=Ie.children)==null||qe.forEach(he=>{he.fixed=Ie.fixed,R(he)})},$=()=>{l.value.forEach(ie=>{R(ie)}),u.value=l.value.filter(ie=>ie.fixed===!0||ie.fixed==="left"),d.value=l.value.filter(ie=>ie.fixed==="right"),u.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&!l.value[0].fixed&&(l.value[0].fixed=!0,u.value.unshift(l.value[0]));const Ie=l.value.filter(ie=>!ie.fixed);a.value=[].concat(u.value).concat(Ie).concat(d.value);const qe=vh(Ie),he=vh(u.value),Y=vh(d.value);m.value=qe.length,v.value=he.length,w.value=Y.length,c.value=[].concat(he).concat(qe).concat(Y),i.value=u.value.length>0||d.value.length>0},q=(Ie,qe=!1)=>{Ie&&$(),qe?e.state.doLayout():e.state.debouncedUpdateLayout()},U=Ie=>y.value.includes(Ie),W=()=>{b.value=!1;const Ie=y.value;y.value=[],Ie.length&&e.emit("selection-change",[])},Z=()=>{let Ie;if(r.value){Ie=[];const qe=Ul(y.value,r.value),he=Ul(o.value,r.value);for(const Y in qe)xt(qe,Y)&&!he[Y]&&Ie.push(qe[Y].row)}else Ie=y.value.filter(qe=>!o.value.includes(qe));if(Ie.length){const qe=y.value.filter(he=>!Ie.includes(he));y.value=qe,e.emit("selection-change",qe.slice())}},le=()=>(y.value||[]).slice(),ee=(Ie,qe=void 0,he=!0)=>{if(Vu(y.value,Ie,qe)){const ie=(y.value||[]).slice();he&&e.emit("select",ie,Ie),e.emit("selection-change",ie)}},Me=()=>{var Ie,qe;const he=E.value?!b.value:!(b.value||y.value.length);b.value=he;let Y=!1,ie=0;const Ae=(qe=(Ie=e==null?void 0:e.store)==null?void 0:Ie.states)==null?void 0:qe.rowKey.value;o.value.forEach((Se,ze)=>{const it=ze+ie;T.value?T.value.call(null,Se,it)&&Vu(y.value,Se,he)&&(Y=!0):Vu(y.value,Se,he)&&(Y=!0),ie+=Te(Zn(Se,Ae))}),Y&&e.emit("selection-change",y.value?y.value.slice():[]),e.emit("select-all",(y.value||[]).slice())},ge=()=>{const Ie=Ul(y.value,r.value);o.value.forEach(qe=>{const he=Zn(qe,r.value),Y=Ie[he];Y&&(y.value[Y.index]=qe)})},be=()=>{var Ie,qe,he;if(((Ie=o.value)==null?void 0:Ie.length)===0){b.value=!1;return}let Y;r.value&&(Y=Ul(y.value,r.value));const ie=function(it){return Y?!!Y[Zn(it,r.value)]:y.value.includes(it)};let Ae=!0,Se=0,ze=0;for(let it=0,Ft=(o.value||[]).length;it{var qe;if(!e||!e.store)return 0;const{treeData:he}=e.store.states;let Y=0;const ie=(qe=he.value[Ie])==null?void 0:qe.children;return ie&&(Y+=ie.length,ie.forEach(Ae=>{Y+=Te(Ae)})),Y},re=(Ie,qe)=>{Array.isArray(Ie)||(Ie=[Ie]);const he={};return Ie.forEach(Y=>{M.value[Y.id]=qe,he[Y.columnKey||Y.id]=qe}),he},ae=(Ie,qe,he)=>{k.value&&k.value!==Ie&&(k.value.order=null),k.value=Ie,P.value=qe,L.value=he},te=()=>{let Ie=S(s);Object.keys(M.value).forEach(qe=>{const he=M.value[qe];if(!he||he.length===0)return;const Y=EM({columns:c.value},qe);Y&&Y.filterMethod&&(Ie=Ie.filter(ie=>he.some(Ae=>Y.filterMethod.call(null,Ae,ie,Y))))}),O.value=Ie},ve=()=>{o.value=qq(O.value,{sortingColumn:k.value,sortProp:P.value,sortOrder:L.value})},Oe=(Ie=void 0)=>{Ie&&Ie.filter||te(),ve()},Ye=Ie=>{const{tableHeaderRef:qe}=e.refs;if(!qe)return;const he=Object.assign({},qe.filterPanels),Y=Object.keys(he);if(Y.length)if(typeof Ie=="string"&&(Ie=[Ie]),Array.isArray(Ie)){const ie=Ie.map(Ae=>Vq({columns:c.value},Ae));Y.forEach(Ae=>{const Se=ie.find(ze=>ze.id===Ae);Se&&(Se.filteredValue=[])}),e.store.commit("filterChange",{column:ie,values:[],silent:!0,multi:!0})}else Y.forEach(ie=>{const Ae=c.value.find(Se=>Se.id===ie);Ae&&(Ae.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},I=()=>{k.value&&(ae(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:N,toggleRowExpansion:X,updateExpandRows:pe,states:fe,isRowExpanded:_e}=Uq({data:o,rowKey:r}),{updateTreeExpandKeys:xe,toggleTreeExpansion:V,updateTreeData:B,loadOrToggle:J,states:ue}=Gq({data:o,rowKey:r}),{updateCurrentRowData:Pe,updateCurrentRow:se,setCurrentRowKey:ne,states:de}=Wq({data:o,rowKey:r});return{assertRowKey:ce,updateColumns:$,scheduleLayout:q,isSelected:U,clearSelection:W,cleanSelection:Z,getSelectionRows:le,toggleRowSelection:ee,_toggleAllSelection:Me,toggleAllSelection:null,updateSelectionByRowKey:ge,updateAllSelected:be,updateFilters:re,updateCurrentRow:se,updateSort:ae,execFilter:te,execSort:ve,execQuery:Oe,clearFilter:Ye,clearSort:I,toggleRowExpansion:X,setExpandRowKeysAdapter:Ie=>{N(Ie),xe(Ie)},setCurrentRowKey:ne,toggleRowExpansionAdapter:(Ie,qe)=>{c.value.some(({type:Y})=>Y==="expand")?X(Ie,qe):V(Ie,qe)},isRowExpanded:_e,updateExpandRows:pe,updateCurrentRowData:Pe,loadOrToggle:J,updateTreeData:B,states:{tableSize:t,rowKey:r,data:o,_data:s,isComplex:i,_columns:l,originColumns:a,columns:c,fixedColumns:u,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:g,leafColumnsLength:m,fixedLeafColumnsLength:v,rightFixedLeafColumnsLength:w,isAllSelected:b,selection:y,reserveSelection:x,selectOnIndeterminate:E,selectable:T,filters:M,filteredData:O,sortingColumn:k,sortProp:P,sortOrder:L,hoverRow:j,...fe,...ue,...de}}}function zv(n,e){return n.map(t=>{var r;return t.id===e.id?e:((r=t.children)!=null&&r.length&&(t.children=zv(t.children,e)),t)})}function jv(n){n.forEach(e=>{var t,r;e.no=(t=e.getColumnIndex)==null?void 0:t.call(e),(r=e.children)!=null&&r.length&&jv(e.children)}),n.sort((e,t)=>e.no-t.no)}function Yq(){const n=bt(),e=Kq();return{ns:Xe("table"),...e,mutations:{setData(i,l){const a=S(i._data)!==l;i.data.value=l,i._data.value=l,n.store.execQuery(),n.store.updateCurrentRowData(),n.store.updateExpandRows(),n.store.updateTreeData(n.store.states.defaultExpandAll.value),S(i.reserveSelection)?(n.store.assertRowKey(),n.store.updateSelectionByRowKey()):a?n.store.clearSelection():n.store.cleanSelection(),n.store.updateAllSelected(),n.$ready&&n.store.scheduleLayout()},insertColumn(i,l,a,c){const u=S(i._columns);let d=[];a?(a&&!a.children&&(a.children=[]),a.children.push(l),d=zv(u,a)):(u.push(l),d=u),jv(d),i._columns.value=d,i.updateOrderFns.push(c),l.type==="selection"&&(i.selectable.value=l.selectable,i.reserveSelection.value=l.reserveSelection),n.$ready&&(n.store.updateColumns(),n.store.scheduleLayout())},updateColumnOrder(i,l){var a;((a=l.getColumnIndex)==null?void 0:a.call(l))!==l.no&&(jv(i._columns.value),n.$ready&&n.store.updateColumns())},removeColumn(i,l,a,c){const u=S(i._columns)||[];if(a)a.children.splice(a.children.findIndex(f=>f.id===l.id),1),lt(()=>{var f;((f=a.children)==null?void 0:f.length)===0&&delete a.children}),i._columns.value=zv(u,a);else{const f=u.indexOf(l);f>-1&&(u.splice(f,1),i._columns.value=u)}const d=i.updateOrderFns.indexOf(c);d>-1&&i.updateOrderFns.splice(d,1),n.$ready&&(n.store.updateColumns(),n.store.scheduleLayout())},sort(i,l){const{prop:a,order:c,init:u}=l;if(a){const d=S(i.columns).find(f=>f.property===a);d&&(d.order=c,n.store.updateSort(d,a,c),n.store.commit("changeSortCondition",{init:u}))}},changeSortCondition(i,l){const{sortingColumn:a,sortProp:c,sortOrder:u}=i,d=S(a),f=S(c),h=S(u);h===null&&(i.sortingColumn.value=null,i.sortProp.value=null);const p={filter:!0};n.store.execQuery(p),(!l||!(l.silent||l.init))&&n.emit("sort-change",{column:d,prop:f,order:h}),n.store.updateTableScrollY()},filterChange(i,l){const{column:a,values:c,silent:u}=l,d=n.store.updateFilters(a,c);n.store.execQuery(),u||n.emit("filter-change",d),n.store.updateTableScrollY()},toggleAllSelection(){n.store.toggleAllSelection()},rowSelectedChanged(i,l){n.store.toggleRowSelection(l),n.store.updateAllSelected()},setHoverRow(i,l){i.hoverRow.value=l},setCurrentRow(i,l){n.store.updateCurrentRow(l)}},commit:function(i,...l){const a=n.store.mutations;if(a[i])a[i].apply(n,[n.store.states].concat(l));else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){lt(()=>n.layout.updateScrollY.apply(n.layout))}}}const Bu={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function Jq(n,e){if(!n)throw new Error("Table is required.");const t=Yq();return t.toggleAllSelection=hc(t._toggleAllSelection,10),Object.keys(Bu).forEach(r=>{MM(AM(e,r),r,t)}),Xq(t,e),t}function Xq(n,e){Object.keys(Bu).forEach(t=>{Be(()=>AM(e,t),r=>{MM(r,t,n)})})}function MM(n,e,t){let r=n,o=Bu[e];typeof Bu[e]=="object"&&(o=o.key,r=r||Bu[e].default),t.states[o].value=r}function AM(n,e){if(e.includes(".")){const t=e.split(".");let r=n;return t.forEach(o=>{r=r[o]}),r}else return n[e]}class Zq{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=D(null),this.scrollX=D(!1),this.scrollY=D(!1),this.bodyWidth=D(null),this.fixedWidth=D(null),this.rightFixedWidth=D(null),this.gutterWidth=0;for(const t in e)xt(e,t)&&(qt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(t!=null&&t.wrapRef)){let r=!0;const o=this.scrollY.value;return r=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=r,o!==r}return!1}setHeight(e,t="height"){if(!Et)return;const r=this.table.vnode.el;if(e=Fq(e),this.height.value=Number(e),!r&&(e||e===0))return lt(()=>this.setHeight(e,t));typeof e=="number"?(r.style[t]=`${e}px`,this.updateElsHeight()):typeof e=="string"&&(r.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?e.push.apply(e,r.columns):e.push(r)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!Et)return;const e=this.fit,t=this.table.vnode.el.clientWidth;let r=0;const o=this.getFlattenColumns(),s=o.filter(a=>typeof a.width!="number");if(o.forEach(a=>{typeof a.width=="number"&&a.realWidth&&(a.realWidth=null)}),s.length>0&&e){if(o.forEach(a=>{r+=Number(a.width||a.minWidth||80)}),r<=t){this.scrollX.value=!1;const a=t-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+a;else{const c=s.reduce((f,h)=>f+Number(h.minWidth||80),0),u=a/c;let d=0;s.forEach((f,h)=>{if(h===0)return;const p=Math.floor(Number(f.minWidth||80)*u);d+=p,f.realWidth=Number(f.minWidth||80)+p}),s[0].realWidth=Number(s[0].minWidth||80)+a-d}}else this.scrollX.value=!0,s.forEach(a=>{a.realWidth=Number(a.minWidth)});this.bodyWidth.value=Math.max(r,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(a=>{!a.width&&!a.minWidth?a.realWidth=80:a.realWidth=Number(a.width||a.minWidth),r+=a.realWidth}),this.scrollX.value=r>t,this.bodyWidth.value=r;const i=this.store.states.fixedColumns.value;if(i.length>0){let a=0;i.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.fixedWidth.value=a}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let a=0;l.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=a}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(r=>{var o,s;switch(e){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(s=r.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}}const{CheckboxGroup:Qq}=Js,eK=me({name:"ElTableFilterPanel",components:{ElCheckbox:Js,ElCheckboxGroup:Qq,ElScrollbar:sg,ElTooltip:Rr,ElIcon:dt,ArrowDown:by,ArrowUp:JT},directives:{ClickOutside:UO},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(n){const e=bt(),{t}=xs(),r=Xe("table-filter"),o=e==null?void 0:e.parent;o.filterPanels.value[n.column.id]||(o.filterPanels.value[n.column.id]=e);const s=D(!1),i=D(null),l=z(()=>n.column&&n.column.filters),a=z(()=>n.column.filterClassName?`${r.b()} ${n.column.filterClassName}`:r.b()),c=z({get:()=>{var x;return(((x=n.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{u.value&&(typeof x<"u"&&x!==null?u.value.splice(0,1,x):u.value.splice(0,1))}}),u=z({get(){return n.column?n.column.filteredValue||[]:[]},set(x){n.column&&n.upDataColumn("filteredValue",x)}}),d=z(()=>n.column?n.column.filterMultiple:!0),f=x=>x.value===c.value,h=()=>{s.value=!1},p=x=>{x.stopPropagation(),s.value=!s.value},g=()=>{s.value=!1},m=()=>{b(u.value),h()},v=()=>{u.value=[],b(u.value),h()},w=x=>{c.value=x,b(typeof x<"u"&&x!==null?u.value:[]),h()},b=x=>{n.store.commit("filterChange",{column:n.column,values:x}),n.store.updateAllSelected()};Be(s,x=>{n.column&&n.upDataColumn("filterOpened",x)},{immediate:!0});const y=z(()=>{var x,E;return(E=(x=i.value)==null?void 0:x.popperRef)==null?void 0:E.contentRef});return{tooltipVisible:s,multiple:d,filterClassName:a,filteredValue:u,filterValue:c,filters:l,handleConfirm:m,handleReset:v,handleSelect:w,isActive:f,t,ns:r,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:y,tooltip:i}}}),tK={key:0},nK=["disabled"],rK=["label","onClick"];function oK(n,e,t,r,o,s){const i=at("el-checkbox"),l=at("el-checkbox-group"),a=at("el-scrollbar"),c=at("arrow-up"),u=at("arrow-down"),d=at("el-icon"),f=at("el-tooltip"),h=Ub("click-outside");return A(),ye(f,{ref:"tooltip",visible:n.tooltipVisible,offset:0,placement:n.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":n.filterClassName,persistent:""},{content:_(()=>[n.multiple?(A(),G("div",tK,[F("div",{class:Q(n.ns.e("content"))},[C(a,{"wrap-class":n.ns.e("wrap")},{default:_(()=>[C(l,{modelValue:n.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=p=>n.filteredValue=p),class:Q(n.ns.e("checkbox-group"))},{default:_(()=>[(A(!0),G(Re,null,St(n.filters,p=>(A(),ye(i,{key:p.value,value:p.value},{default:_(()=>[H(oe(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),F("div",{class:Q(n.ns.e("bottom"))},[F("button",{class:Q({[n.ns.is("disabled")]:n.filteredValue.length===0}),disabled:n.filteredValue.length===0,type:"button",onClick:e[1]||(e[1]=(...p)=>n.handleConfirm&&n.handleConfirm(...p))},oe(n.t("el.table.confirmFilter")),11,nK),F("button",{type:"button",onClick:e[2]||(e[2]=(...p)=>n.handleReset&&n.handleReset(...p))},oe(n.t("el.table.resetFilter")),1)],2)])):(A(),G("ul",{key:1,class:Q(n.ns.e("list"))},[F("li",{class:Q([n.ns.e("list-item"),{[n.ns.is("active")]:n.filterValue===void 0||n.filterValue===null}]),onClick:e[3]||(e[3]=p=>n.handleSelect(null))},oe(n.t("el.table.clearFilter")),3),(A(!0),G(Re,null,St(n.filters,p=>(A(),G("li",{key:p.value,class:Q([n.ns.e("list-item"),n.ns.is("active",n.isActive(p))]),label:p.value,onClick:g=>n.handleSelect(p.value)},oe(p.text),11,rK))),128))],2))]),default:_(()=>[Le((A(),G("span",{class:Q([`${n.ns.namespace.value}-table__column-filter-trigger`,`${n.ns.namespace.value}-none-outline`]),onClick:e[4]||(e[4]=(...p)=>n.showFilterPanel&&n.showFilterPanel(...p))},[C(d,null,{default:_(()=>[n.column.filterOpened?(A(),ye(c,{key:0})):(A(),ye(u,{key:1}))]),_:1})],2)),[[h,n.hideFilterPanel,n.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var sK=nt(eK,[["render",oK],["__file","filter-panel.vue"]]);function kM(n){const e=bt();zd(()=>{t.value.addObserver(e)}),ot(()=>{r(t.value),o(t.value)}),ba(()=>{r(t.value),o(t.value)}),ws(()=>{t.value.removeObserver(e)});const t=z(()=>{const s=n.layout;if(!s)throw new Error("Can not find table layout.");return s}),r=s=>{var i;const l=((i=n.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const a=s.getFlattenColumns(),c={};a.forEach(u=>{c[u.id]=u});for(let u=0,d=l.length;u{var i,l;const a=((i=n.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,d=a.length;u{g.stopPropagation()},s=(g,m)=>{!m.filters&&m.sortable?p(g,m,!1):m.filterable&&!m.sortable&&o(g),r==null||r.emit("header-click",m,g)},i=(g,m)=>{r==null||r.emit("header-contextmenu",m,g)},l=D(null),a=D(!1),c=D({}),u=(g,m)=>{if(Et&&!(m.children&&m.children.length>0)&&l.value&&n.border){a.value=!0;const v=r;e("set-drag-visible",!0);const b=(v==null?void 0:v.vnode.el).getBoundingClientRect().left,y=t.vnode.el.querySelector(`th.${m.id}`),x=y.getBoundingClientRect(),E=x.left-b+30;la(y,"noclick"),c.value={startMouseLeft:g.clientX,startLeft:x.right-b,startColumnLeft:x.left-b,tableLeft:b};const T=v==null?void 0:v.refs.resizeProxy;T.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const M=k=>{const P=k.clientX-c.value.startMouseLeft,L=c.value.startLeft+P;T.style.left=`${Math.max(E,L)}px`},O=()=>{if(a.value){const{startColumnLeft:k,startLeft:P}=c.value,j=Number.parseInt(T.style.left,10)-k;m.width=m.realWidth=j,v==null||v.emit("header-dragend",m.width,P-k,m,g),requestAnimationFrame(()=>{n.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",a.value=!1,l.value=null,c.value={},e("set-drag-visible",!1)}document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",O),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{hs(y,"noclick")},0)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",O)}},d=(g,m)=>{if(m.children&&m.children.length>0)return;const v=g.target;if(!mo(v))return;const w=v==null?void 0:v.closest("th");if(!(!m||!m.resizable)&&!a.value&&n.border){const b=w.getBoundingClientRect(),y=document.body.style;b.width>12&&b.right-g.pageX<8?(y.cursor="col-resize",qa(w,"is-sortable")&&(w.style.cursor="col-resize"),l.value=m):a.value||(y.cursor="",qa(w,"is-sortable")&&(w.style.cursor="pointer"),l.value=null)}},f=()=>{Et&&(document.body.style.cursor="")},h=({order:g,sortOrders:m})=>{if(g==="")return m[0];const v=m.indexOf(g||null);return m[v>m.length-2?0:v+1]},p=(g,m,v)=>{var w;g.stopPropagation();const b=m.order===v?null:v||h(m),y=(w=g.target)==null?void 0:w.closest("th");if(y&&qa(y,"noclick")){hs(y,"noclick");return}if(!m.sortable)return;const x=n.store.states;let E=x.sortProp.value,T;const M=x.sortingColumn.value;(M!==m||M===m&&M.order===null)&&(M&&(M.order=null),x.sortingColumn.value=m,E=m.property),b?T=m.order=b:T=m.order=null,x.sortProp.value=E,x.sortOrder.value=T,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:i,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:p,handleFilterClick:o}}function lK(n){const e=Fe(Os),t=Xe("table");return{getHeaderRowStyle:l=>{const a=e==null?void 0:e.props.headerRowStyle;return typeof a=="function"?a.call(null,{rowIndex:l}):a},getHeaderRowClass:l=>{const a=[],c=e==null?void 0:e.props.headerRowClassName;return typeof c=="string"?a.push(c):typeof c=="function"&&a.push(c.call(null,{rowIndex:l})),a.join(" ")},getHeaderCellStyle:(l,a,c,u)=>{var d;let f=(d=e==null?void 0:e.props.headerCellStyle)!=null?d:{};typeof f=="function"&&(f=f.call(null,{rowIndex:l,columnIndex:a,row:c,column:u}));const h=qy(a,u.fixed,n.store,c);return yc(h,"left"),yc(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(l,a,c,u)=>{const d=Gy(t.b(),a,u.fixed,n.store,c),f=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...d];u.children||f.push("is-leaf"),u.sortable&&f.push("is-sortable");const h=e==null?void 0:e.props.headerCellClassName;return typeof h=="string"?f.push(h):typeof h=="function"&&f.push(h.call(null,{rowIndex:l,columnIndex:a,row:c,column:u})),f.push(t.e("cell")),f.filter(p=>!!p).join(" ")}}}const PM=n=>{const e=[];return n.forEach(t=>{t.children?(e.push(t),e.push.apply(e,PM(t.children))):e.push(t)}),e},NM=n=>{let e=1;const t=(s,i)=>{if(i&&(s.level=i.level+1,e{t(a,s),l+=a.colSpan}),s.colSpan=l}else s.colSpan=1};n.forEach(s=>{s.level=1,t(s,void 0)});const r=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(i=>i.isSubColumn=!0)):s.rowSpan=e-s.level+1,r[s.level-1].push(s)}),r};function aK(n){const e=Fe(Os),t=z(()=>NM(n.store.states.originColumns.value));return{isGroup:z(()=>{const s=t.value.length>1;return s&&e&&(e.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),e==null||e.store.commit("toggleAllSelection")},columnRows:t}}var cK=me({name:"ElTableHeader",components:{ElCheckbox:Js},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(n,{emit:e}){const t=bt(),r=Fe(Os),o=Xe("table"),s=D({}),{onColumnsChange:i,onScrollableChange:l}=kM(r);ot(async()=>{await lt(),await lt();const{prop:E,order:T}=n.defaultSort;r==null||r.store.commit("sort",{prop:E,order:T,init:!0})});const{handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:h,handleFilterClick:p}=iK(n,e),{getHeaderRowStyle:g,getHeaderRowClass:m,getHeaderCellStyle:v,getHeaderCellClass:w}=lK(n),{isGroup:b,toggleAllSelection:y,columnRows:x}=aK(n);return t.state={onColumnsChange:i,onScrollableChange:l},t.filterPanels=s,{ns:o,filterPanels:s,onColumnsChange:i,onScrollableChange:l,columnRows:x,getHeaderRowClass:m,getHeaderRowStyle:g,getHeaderCellClass:w,getHeaderCellStyle:v,handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:h,handleFilterClick:p,isGroup:b,toggleAllSelection:y}},render(){const{ns:n,isGroup:e,columnRows:t,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:s,getHeaderRowStyle:i,handleHeaderClick:l,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:u,handleSortClick:d,handleMouseOut:f,store:h,$parent:p}=this;let g=1;return et("thead",{class:{[n.is("group")]:e}},t.map((m,v)=>et("tr",{class:s(v),key:v,style:i(v)},m.map((w,b)=>(w.rowSpan>g&&(g=w.rowSpan),et("th",{class:o(v,b,m,w),colspan:w.colSpan,key:`${w.id}-thead`,rowspan:w.rowSpan,style:r(v,b,m,w),onClick:y=>{y.currentTarget.classList.contains("noclick")||l(y,w)},onContextmenu:y=>a(y,w),onMousedown:y=>c(y,w),onMousemove:y=>u(y,w),onMouseout:f},[et("div",{class:["cell",w.filteredValue&&w.filteredValue.length>0?"highlight":""]},[w.renderHeader?w.renderHeader({column:w,$index:b,store:h,_self:p}):w.label,w.sortable&&et("span",{onClick:y=>d(y,w),class:"caret-wrapper"},[et("i",{onClick:y=>d(y,w,"ascending"),class:"sort-caret ascending"}),et("i",{onClick:y=>d(y,w,"descending"),class:"sort-caret descending"})]),w.filterable&&et(sK,{store:h,placement:w.filterPlacement||"bottom-start",column:w,upDataColumn:(y,x)=>{w[y]=x}})])]))))))}});function um(n,e,t=.01){return n-e>t}function uK(n){const e=Fe(Os),t=D(""),r=D(et("div")),o=(p,g,m)=>{var v;const w=e,b=cm(p);let y;const x=(v=w==null?void 0:w.vnode.el)==null?void 0:v.dataset.prefix;b&&(y=yx({columns:n.store.states.columns.value},b,x),y&&(w==null||w.emit(`cell-${m}`,g,y,b,p))),w==null||w.emit(`row-${m}`,g,y,p)},s=(p,g)=>{o(p,g,"dblclick")},i=(p,g)=>{n.store.commit("setCurrentRow",g),o(p,g,"click")},l=(p,g)=>{o(p,g,"contextmenu")},a=hc(p=>{n.store.commit("setHoverRow",p)},30),c=hc(()=>{n.store.commit("setHoverRow",null)},30),u=p=>{const g=window.getComputedStyle(p,null),m=Number.parseInt(g.paddingLeft,10)||0,v=Number.parseInt(g.paddingRight,10)||0,w=Number.parseInt(g.paddingTop,10)||0,b=Number.parseInt(g.paddingBottom,10)||0;return{left:m,right:v,top:w,bottom:b}},d=(p,g,m)=>{let v=g.target.parentNode;for(;p>1&&(v=v==null?void 0:v.nextSibling,!(!v||v.nodeName!=="TR"));)m(v,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:s,handleClick:i,handleContextMenu:l,handleMouseEnter:a,handleMouseLeave:c,handleCellMouseEnter:(p,g,m)=>{var v;const w=e,b=cm(p),y=(v=w==null?void 0:w.vnode.el)==null?void 0:v.dataset.prefix;if(b){const W=yx({columns:n.store.states.columns.value},b,y);b.rowSpan>1&&d(b.rowSpan,p,la);const Z=w.hoverState={cell:b,column:W,row:g};w==null||w.emit("cell-mouse-enter",Z.row,Z.column,Z.cell,p)}if(!m)return;const x=p.target.querySelector(".cell");if(!(qa(x,`${y}-tooltip`)&&x.childNodes.length))return;const E=document.createRange();E.setStart(x,0),E.setEnd(x,x.childNodes.length);let{width:T,height:M}=E.getBoundingClientRect();const O=T-Math.floor(T),{width:k,height:P}=x.getBoundingClientRect();O<.001&&(T=Math.floor(T)),M-Math.floor(M)<.001&&(M=Math.floor(M));const{top:j,left:ce,right:R,bottom:$}=u(x),q=ce+R,U=j+$;(um(T+q,k)||um(M+U,P)||um(x.scrollWidth,k))&&Hq(m,b.innerText||b.textContent,b,w)},handleCellMouseLeave:p=>{const g=cm(p);if(!g)return;g.rowSpan>1&&d(g.rowSpan,p,hs);const m=e==null?void 0:e.hoverState;e==null||e.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:t,tooltipTrigger:r}}function dK(n){const e=Fe(Os),t=Xe("table");return{getRowStyle:(c,u)=>{const d=e==null?void 0:e.props.rowStyle;return typeof d=="function"?d.call(null,{row:c,rowIndex:u}):d||null},getRowClass:(c,u)=>{const d=[t.e("row")];e!=null&&e.props.highlightCurrentRow&&c===n.store.states.currentRow.value&&d.push("current-row"),n.stripe&&u%2===1&&d.push(t.em("row","striped"));const f=e==null?void 0:e.props.rowClassName;return typeof f=="string"?d.push(f):typeof f=="function"&&d.push(f.call(null,{row:c,rowIndex:u})),d},getCellStyle:(c,u,d,f)=>{const h=e==null?void 0:e.props.cellStyle;let p=h??{};typeof h=="function"&&(p=h.call(null,{rowIndex:c,columnIndex:u,row:d,column:f}));const g=qy(u,n==null?void 0:n.fixed,n.store);return yc(g,"left"),yc(g,"right"),Object.assign({},p,g)},getCellClass:(c,u,d,f,h)=>{const p=Gy(t.b(),u,n==null?void 0:n.fixed,n.store,void 0,h),g=[f.id,f.align,f.className,...p],m=e==null?void 0:e.props.cellClassName;return typeof m=="string"?g.push(m):typeof m=="function"&&g.push(m.call(null,{rowIndex:c,columnIndex:u,row:d,column:f})),g.push(t.e("cell")),g.filter(v=>!!v).join(" ")},getSpan:(c,u,d,f)=>{let h=1,p=1;const g=e==null?void 0:e.props.spanMethod;if(typeof g=="function"){const m=g({row:c,column:u,rowIndex:d,columnIndex:f});Array.isArray(m)?(h=m[0],p=m[1]):typeof m=="object"&&(h=m.rowspan,p=m.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(c,u,d)=>{if(u<1)return c[d].realWidth;const f=c.map(({realWidth:h,width:p})=>h||p).slice(d,d+u);return Number(f.reduce((h,p)=>Number(h)+Number(p),-1))}}}function fK(n){const e=Fe(Os),t=Xe("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:s,handleMouseEnter:i,handleMouseLeave:l,handleCellMouseEnter:a,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=uK(n),{getRowStyle:f,getRowClass:h,getCellStyle:p,getCellClass:g,getSpan:m,getColspanRealWidth:v}=dK(n),w=z(()=>n.store.states.columns.value.findIndex(({type:T})=>T==="default")),b=(T,M)=>{const O=e.props.rowKey;return O?Zn(T,O):M},y=(T,M,O,k=!1)=>{const{tooltipEffect:P,tooltipOptions:L,store:j}=n,{indent:ce,columns:R}=j.states,$=h(T,M);let q=!0;return O&&($.push(t.em("row",`level-${O.level}`)),q=O.display),et("tr",{style:[q?null:{display:"none"},f(T,M)],class:$,key:b(T,M),onDblclick:W=>r(W,T),onClick:W=>o(W,T),onContextmenu:W=>s(W,T),onMouseenter:()=>i(M),onMouseleave:l},R.value.map((W,Z)=>{const{rowspan:le,colspan:ee}=m(T,W,M,Z);if(!le||!ee)return null;const Me=Object.assign({},W);Me.realWidth=v(R.value,ee,Z);const ge={store:n.store,_self:n.context||e,column:Me,row:T,$index:M,cellIndex:Z,expanded:k};Z===w.value&&O&&(ge.treeNode={indent:O.level*ce.value,level:O.level},typeof O.expanded=="boolean"&&(ge.treeNode.expanded=O.expanded,"loading"in O&&(ge.treeNode.loading=O.loading),"noLazyChildren"in O&&(ge.treeNode.noLazyChildren=O.noLazyChildren)));const be=`${b(T,M)},${Z}`,Te=Me.columnKey||Me.rawColumnKey||"",re=x(Z,W,ge),ae=W.showOverflowTooltip&&un({effect:P},L,W.showOverflowTooltip);return et("td",{style:p(M,Z,T,W),class:g(M,Z,T,W,ee-1),key:`${Te}${be}`,rowspan:le,colspan:ee,onMouseenter:te=>a(te,T,ae),onMouseleave:c},[re])}))},x=(T,M,O)=>M.renderCell(O);return{wrappedRowRender:(T,M)=>{const O=n.store,{isRowExpanded:k,assertRowKey:P}=O,{treeData:L,lazyTreeNodeMap:j,childrenColumnName:ce,rowKey:R}=O.states,$=O.states.columns.value;if($.some(({type:U})=>U==="expand")){const U=k(T),W=y(T,M,void 0,U),Z=e.renderExpanded;return U?Z?[[W,et("tr",{key:`expanded-row__${W.key}`},[et("td",{colspan:$.length,class:`${t.e("cell")} ${t.e("expanded-cell")}`},[Z({row:T,$index:M,store:O,expanded:U})])])]]:W:[[W]]}else if(Object.keys(L.value).length){P();const U=Zn(T,R.value);let W=L.value[U],Z=null;W&&(Z={expanded:W.expanded,level:W.level,display:!0},typeof W.lazy=="boolean"&&(typeof W.loaded=="boolean"&&W.loaded&&(Z.noLazyChildren=!(W.children&&W.children.length)),Z.loading=W.loading));const le=[y(T,M,Z)];if(W){let ee=0;const Me=(be,Te)=>{be&&be.length&&Te&&be.forEach(re=>{const ae={display:Te.display&&Te.expanded,level:Te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},te=Zn(re,R.value);if(te==null)throw new Error("For nested data item, row-key is required.");if(W={...L.value[te]},W&&(ae.expanded=W.expanded,W.level=W.level||ae.level,W.display=!!(W.expanded&&ae.display),typeof W.lazy=="boolean"&&(typeof W.loaded=="boolean"&&W.loaded&&(ae.noLazyChildren=!(W.children&&W.children.length)),ae.loading=W.loading)),ee++,le.push(y(re,M+ee,ae)),W){const ve=j.value[te]||re[ce.value];Me(ve,W)}})};W.display=!0;const ge=j.value[U]||T[ce.value];Me(ge,W)}return le}else return y(T,M,void 0)},tooltipContent:u,tooltipTrigger:d}}const hK={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var pK=me({name:"ElTableBody",props:hK,setup(n){const e=bt(),t=Fe(Os),r=Xe("table"),{wrappedRowRender:o,tooltipContent:s,tooltipTrigger:i}=fK(n),{onColumnsChange:l,onScrollableChange:a}=kM(t),c=[];return Be(n.store.states.hoverRow,(u,d)=>{var f;const h=e==null?void 0:e.vnode.el,p=Array.from((h==null?void 0:h.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${r.e("row")}`));let g=u;const m=(f=p[g])==null?void 0:f.childNodes;if(m!=null&&m.length){let v=0;Array.from(m).reduce((b,y,x)=>{var E,T;return((E=m[x])==null?void 0:E.colSpan)>1&&(v=(T=m[x])==null?void 0:T.colSpan),y.nodeName!=="TD"&&v===0&&b.push(x),v>0&&v--,b},[]).forEach(b=>{var y;for(g=u;g>0;){const x=(y=p[g-1])==null?void 0:y.childNodes;if(x[b]&&x[b].nodeName==="TD"&&x[b].rowSpan>1){la(x[b],"hover-cell"),c.push(x[b]);break}g--}})}else c.forEach(v=>hs(v,"hover-cell")),c.length=0;!n.store.states.isComplex.value||!Et||H6(()=>{const v=p[d],w=p[u];v&&!v.classList.contains("hover-fixed-row")&&hs(v,"hover-row"),w&&la(w,"hover-row")})}),ws(()=>{var u;(u=Zr)==null||u()}),{ns:r,onColumnsChange:l,onScrollableChange:a,wrappedRowRender:o,tooltipContent:s,tooltipTrigger:i}},render(){const{wrappedRowRender:n,store:e}=this,t=e.states.data.value||[];return et("tbody",{tabIndex:-1},[t.reduce((r,o)=>r.concat(n(o,r.length)),[])])}});function gK(){const n=Fe(Os),e=n==null?void 0:n.store,t=z(()=>e.states.fixedLeafColumnsLength.value),r=z(()=>e.states.rightFixedColumns.value.length),o=z(()=>e.states.columns.value.length),s=z(()=>e.states.fixedColumns.value.length),i=z(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:t,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:s,rightFixedCount:i,columns:e.states.columns}}function mK(n){const{columns:e}=gK(),t=Xe("table");return{getCellClasses:(s,i)=>{const l=s[i],a=[t.e("cell"),l.id,l.align,l.labelClassName,...Gy(t.b(),i,l.fixed,n.store)];return l.className&&a.push(l.className),l.children||a.push(t.is("leaf")),a},getCellStyles:(s,i)=>{const l=qy(i,s.fixed,n.store);return yc(l,"left"),yc(l,"right"),l},columns:e}}var vK=me({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(n){const{getCellClasses:e,getCellStyles:t,columns:r}=mK(n);return{ns:Xe("table"),getCellClasses:e,getCellStyles:t,columns:r}},render(){const{columns:n,getCellStyles:e,getCellClasses:t,summaryMethod:r,sumText:o}=this,s=this.store.states.data.value;let i=[];return r?i=r({columns:n,data:s}):n.forEach((l,a)=>{if(a===0){i[a]=o;return}const c=s.map(h=>Number(h[l.property])),u=[];let d=!0;c.forEach(h=>{if(!Number.isNaN(+h)){d=!1;const p=`${h}`.split(".")[1];u.push(p?p.length:0)}});const f=Math.max.apply(null,u);d?i[a]="":i[a]=c.reduce((h,p)=>{const g=Number(p);return Number.isNaN(+g)?h:Number.parseFloat((h+p).toFixed(Math.min(f,20)))},0)}),et(et("tfoot",[et("tr",{},[...n.map((l,a)=>et("td",{key:a,colspan:l.colSpan,rowspan:l.rowSpan,class:t(n,a),style:e(l,a)},[et("div",{class:["cell",l.labelClassName]},[i[a]])]))])]))}});function bK(n){return{setCurrentRow:u=>{n.commit("setCurrentRow",u)},getSelectionRows:()=>n.getSelectionRows(),toggleRowSelection:(u,d)=>{n.toggleRowSelection(u,d,!1),n.updateAllSelected()},clearSelection:()=>{n.clearSelection()},clearFilter:u=>{n.clearFilter(u)},toggleAllSelection:()=>{n.commit("toggleAllSelection")},toggleRowExpansion:(u,d)=>{n.toggleRowExpansionAdapter(u,d)},clearSort:()=>{n.clearSort()},sort:(u,d)=>{n.commit("sort",{prop:u,order:d})}}}function yK(n,e,t,r){const o=D(!1),s=D(null),i=D(!1),l=W=>{i.value=W},a=D({width:null,height:null,headerHeight:null}),c=D(!1),u={display:"inline-block",verticalAlign:"middle"},d=D(),f=D(0),h=D(0),p=D(0),g=D(0),m=D(0);ls(()=>{e.setHeight(n.height)}),ls(()=>{e.setMaxHeight(n.maxHeight)}),Be(()=>[n.currentRowKey,t.states.rowKey],([W,Z])=>{!S(Z)||!S(W)||t.setCurrentRowKey(`${W}`)},{immediate:!0}),Be(()=>n.data,W=>{r.store.commit("setData",W)},{immediate:!0,deep:!0}),ls(()=>{n.expandRowKeys&&t.setExpandRowKeysAdapter(n.expandRowKeys)});const v=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},w=(W,Z)=>{const{pixelX:le,pixelY:ee}=Z;Math.abs(le)>=Math.abs(ee)&&(r.refs.bodyWrapper.scrollLeft+=Z.pixelX/5)},b=z(()=>n.height||n.maxHeight||t.states.fixedColumns.value.length>0||t.states.rightFixedColumns.value.length>0),y=z(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),x=()=>{b.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(O)};ot(async()=>{await lt(),t.updateColumns(),k(),requestAnimationFrame(x);const W=r.vnode.el,Z=r.refs.headerWrapper;n.flexible&&W&&W.parentElement&&(W.parentElement.style.minWidth="0"),a.value={width:d.value=W.offsetWidth,height:W.offsetHeight,headerHeight:n.showHeader&&Z?Z.offsetHeight:null},t.states.columns.value.forEach(le=>{le.filteredValue&&le.filteredValue.length&&r.store.commit("filterChange",{column:le,values:le.filteredValue,silent:!0})}),r.$ready=!0});const E=(W,Z)=>{if(!W)return;const le=Array.from(W.classList).filter(ee=>!ee.startsWith("is-scrolling-"));le.push(e.scrollX.value?Z:"is-scrolling-none"),W.className=le.join(" ")},T=W=>{const{tableWrapper:Z}=r.refs;E(Z,W)},M=W=>{const{tableWrapper:Z}=r.refs;return!!(Z&&Z.classList.contains(W))},O=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const Te="is-scrolling-none";M(Te)||T(Te);return}const W=r.refs.scrollBarRef.wrapRef;if(!W)return;const{scrollLeft:Z,offsetWidth:le,scrollWidth:ee}=W,{headerWrapper:Me,footerWrapper:ge}=r.refs;Me&&(Me.scrollLeft=Z),ge&&(ge.scrollLeft=Z);const be=ee-le-1;Z>=be?T("is-scrolling-right"):T(Z===0?"is-scrolling-left":"is-scrolling-middle")},k=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&xn(r.refs.scrollBarRef.wrapRef,"scroll",O,{passive:!0}),n.fit?vr(r.vnode.el,P):xn(window,"resize",P),vr(r.refs.bodyWrapper,()=>{var W,Z;P(),(Z=(W=r.refs)==null?void 0:W.scrollBarRef)==null||Z.update()}))},P=()=>{var W,Z,le,ee;const Me=r.vnode.el;if(!r.$ready||!Me)return;let ge=!1;const{width:be,height:Te,headerHeight:re}=a.value,ae=d.value=Me.offsetWidth;be!==ae&&(ge=!0);const te=Me.offsetHeight;(n.height||b.value)&&Te!==te&&(ge=!0);const ve=n.tableLayout==="fixed"?r.refs.headerWrapper:(W=r.refs.tableHeaderRef)==null?void 0:W.$el;n.showHeader&&(ve==null?void 0:ve.offsetHeight)!==re&&(ge=!0),f.value=((Z=r.refs.tableWrapper)==null?void 0:Z.scrollHeight)||0,p.value=(ve==null?void 0:ve.scrollHeight)||0,g.value=((le=r.refs.footerWrapper)==null?void 0:le.offsetHeight)||0,m.value=((ee=r.refs.appendWrapper)==null?void 0:ee.offsetHeight)||0,h.value=f.value-p.value-g.value-m.value,ge&&(a.value={width:ae,height:te,headerHeight:n.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},x())},L=Co(),j=z(()=>{const{bodyWidth:W,scrollY:Z,gutterWidth:le}=e;return W.value?`${W.value-(Z.value?le:0)}px`:""}),ce=z(()=>n.maxHeight?"fixed":n.tableLayout),R=z(()=>{if(n.data&&n.data.length)return null;let W="100%";n.height&&h.value&&(W=`${h.value}px`);const Z=d.value;return{width:Z?`${Z}px`:"",height:W}}),$=z(()=>n.height?{height:Number.isNaN(Number(n.height))?n.height:`${n.height}px`}:n.maxHeight?{maxHeight:Number.isNaN(Number(n.maxHeight))?n.maxHeight:`${n.maxHeight}px`}:{}),q=z(()=>n.height?{height:"100%"}:n.maxHeight?Number.isNaN(Number(n.maxHeight))?{maxHeight:`calc(${n.maxHeight} - ${p.value+g.value}px)`}:{maxHeight:`${n.maxHeight-p.value-g.value}px`}:{});return{isHidden:o,renderExpanded:s,setDragVisible:l,isGroup:c,handleMouseLeave:v,handleHeaderFooterMousewheel:w,tableSize:L,emptyBlockStyle:R,handleFixedMousewheel:(W,Z)=>{const le=r.refs.bodyWrapper;if(Math.abs(Z.spinY)>0){const ee=le.scrollTop;Z.pixelY<0&&ee!==0&&W.preventDefault(),Z.pixelY>0&&le.scrollHeight-le.clientHeight>ee&&W.preventDefault(),le.scrollTop+=Math.ceil(Z.pixelY/5)}else le.scrollLeft+=Math.ceil(Z.pixelX/5)},resizeProxyVisible:i,bodyWidth:j,resizeState:a,doLayout:x,tableBodyStyles:y,tableLayout:ce,scrollbarViewStyle:u,tableInnerStyle:$,scrollbarStyle:q}}function wK(n){const e=D(),t=()=>{const o=n.vnode.el.querySelector(".hidden-columns"),s={childList:!0,subtree:!0},i=n.store.states.updateOrderFns;e.value=new MutationObserver(()=>{i.forEach(l=>l())}),e.value.observe(o,s)};ot(()=>{t()}),ws(()=>{var r;(r=e.value)==null||r.disconnect()})}var CK={data:{type:Array,default:()=>[]},size:si,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function IM(n){const e=n.tableLayout==="auto";let t=n.columns||[];e&&t.every(o=>o.width===void 0)&&(t=[]);const r=o=>{const s={key:`${n.tableLayout}_${o.id}`,style:{},name:void 0};return e?s.style={width:`${o.width}px`}:s.name=o.id,s};return et("colgroup",{},t.map(o=>et("col",r(o))))}IM.props=["columns","tableLayout"];const xK=()=>{const n=D(),e=(s,i)=>{const l=n.value;l&&l.scrollTo(s,i)},t=(s,i)=>{const l=n.value;l&&Tt(i)&&["Top","Left"].includes(s)&&l[`setScroll${s}`](i)};return{scrollBarRef:n,scrollTo:e,setScrollTop:s=>t("Top",s),setScrollLeft:s=>t("Left",s)}};let SK=1;const EK=me({name:"ElTable",directives:{Mousewheel:MU},components:{TableHeader:cK,TableBody:pK,TableFooter:vK,ElScrollbar:sg,hColgroup:IM},props:CK,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(n){const{t:e}=xs(),t=Xe("table"),r=bt();jt(Os,r);const o=Jq(r,n);r.store=o;const s=new Zq({store:r.store,table:r,fit:n.fit,showHeader:n.showHeader});r.layout=s;const i=z(()=>(o.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,sort:g}=bK(o),{isHidden:m,renderExpanded:v,setDragVisible:w,isGroup:b,handleMouseLeave:y,handleHeaderFooterMousewheel:x,tableSize:E,emptyBlockStyle:T,handleFixedMousewheel:M,resizeProxyVisible:O,bodyWidth:k,resizeState:P,doLayout:L,tableBodyStyles:j,tableLayout:ce,scrollbarViewStyle:R,tableInnerStyle:$,scrollbarStyle:q}=yK(n,s,o,r),{scrollBarRef:U,scrollTo:W,setScrollLeft:Z,setScrollTop:le}=xK(),ee=hc(L,50),Me=`${t.namespace.value}-table_${SK++}`;r.tableId=Me,r.state={isGroup:b,resizeState:P,doLayout:L,debouncedUpdateLayout:ee};const ge=z(()=>n.sumText||e("el.table.sumText")),be=z(()=>n.emptyText||e("el.table.emptyText")),Te=z(()=>NM(o.states.originColumns.value)[0]);return wK(r),{ns:t,layout:s,store:o,columns:Te,handleHeaderFooterMousewheel:x,handleMouseLeave:y,tableId:Me,tableSize:E,isHidden:m,isEmpty:i,renderExpanded:v,resizeProxyVisible:O,resizeState:P,isGroup:b,bodyWidth:k,tableBodyStyles:j,emptyBlockStyle:T,debouncedUpdateLayout:ee,handleFixedMousewheel:M,setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,doLayout:L,sort:g,t:e,setDragVisible:w,context:r,computedSumText:ge,computedEmptyText:be,tableLayout:ce,scrollbarViewStyle:R,tableInnerStyle:$,scrollbarStyle:q,scrollBarRef:U,scrollTo:W,setScrollLeft:Z,setScrollTop:le}}}),_K=["data-prefix"],TK={ref:"hiddenColumns",class:"hidden-columns"};function OK(n,e,t,r,o,s){const i=at("hColgroup"),l=at("table-header"),a=at("table-body"),c=at("table-footer"),u=at("el-scrollbar"),d=Ub("mousewheel");return A(),G("div",{ref:"tableWrapper",class:Q([{[n.ns.m("fit")]:n.fit,[n.ns.m("striped")]:n.stripe,[n.ns.m("border")]:n.border||n.isGroup,[n.ns.m("hidden")]:n.isHidden,[n.ns.m("group")]:n.isGroup,[n.ns.m("fluid-height")]:n.maxHeight,[n.ns.m("scrollable-x")]:n.layout.scrollX.value,[n.ns.m("scrollable-y")]:n.layout.scrollY.value,[n.ns.m("enable-row-hover")]:!n.store.states.isComplex.value,[n.ns.m("enable-row-transition")]:(n.store.states.data.value||[]).length!==0&&(n.store.states.data.value||[]).length<100,"has-footer":n.showSummary},n.ns.m(n.tableSize),n.className,n.ns.b(),n.ns.m(`layout-${n.tableLayout}`)]),style:wt(n.style),"data-prefix":n.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...f)=>n.handleMouseLeave&&n.handleMouseLeave(...f))},[F("div",{class:Q(n.ns.e("inner-wrapper")),style:wt(n.tableInnerStyle)},[F("div",TK,[ke(n.$slots,"default")],512),n.showHeader&&n.tableLayout==="fixed"?Le((A(),G("div",{key:0,ref:"headerWrapper",class:Q(n.ns.e("header-wrapper"))},[F("table",{ref:"tableHeader",class:Q(n.ns.e("header")),style:wt(n.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[C(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),C(l,{ref:"tableHeaderRef",border:n.border,"default-sort":n.defaultSort,store:n.store,onSetDragVisible:n.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,n.handleHeaderFooterMousewheel]]):we("v-if",!0),F("div",{ref:"bodyWrapper",class:Q(n.ns.e("body-wrapper"))},[C(u,{ref:"scrollBarRef","view-style":n.scrollbarViewStyle,"wrap-style":n.scrollbarStyle,always:n.scrollbarAlwaysOn},{default:_(()=>[F("table",{ref:"tableBody",class:Q(n.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:wt({width:n.bodyWidth,tableLayout:n.tableLayout})},[C(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),n.showHeader&&n.tableLayout==="auto"?(A(),ye(l,{key:0,ref:"tableHeaderRef",class:Q(n.ns.e("body-header")),border:n.border,"default-sort":n.defaultSort,store:n.store,onSetDragVisible:n.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):we("v-if",!0),C(a,{context:n.context,highlight:n.highlightCurrentRow,"row-class-name":n.rowClassName,"tooltip-effect":n.tooltipEffect,"tooltip-options":n.tooltipOptions,"row-style":n.rowStyle,store:n.store,stripe:n.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),n.showSummary&&n.tableLayout==="auto"?(A(),ye(c,{key:1,class:Q(n.ns.e("body-footer")),border:n.border,"default-sort":n.defaultSort,store:n.store,"sum-text":n.computedSumText,"summary-method":n.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):we("v-if",!0)],6),n.isEmpty?(A(),G("div",{key:0,ref:"emptyBlock",style:wt(n.emptyBlockStyle),class:Q(n.ns.e("empty-block"))},[F("span",{class:Q(n.ns.e("empty-text"))},[ke(n.$slots,"empty",{},()=>[H(oe(n.computedEmptyText),1)])],2)],6)):we("v-if",!0),n.$slots.append?(A(),G("div",{key:1,ref:"appendWrapper",class:Q(n.ns.e("append-wrapper"))},[ke(n.$slots,"append")],2)):we("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),n.showSummary&&n.tableLayout==="fixed"?Le((A(),G("div",{key:1,ref:"footerWrapper",class:Q(n.ns.e("footer-wrapper"))},[F("table",{class:Q(n.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:wt(n.tableBodyStyles)},[C(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),C(c,{border:n.border,"default-sort":n.defaultSort,store:n.store,"sum-text":n.computedSumText,"summary-method":n.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Ue,!n.isEmpty],[d,n.handleHeaderFooterMousewheel]]):we("v-if",!0),n.border||n.isGroup?(A(),G("div",{key:2,class:Q(n.ns.e("border-left-patch"))},null,2)):we("v-if",!0)],6),Le(F("div",{ref:"resizeProxy",class:Q(n.ns.e("column-resize-proxy"))},null,2),[[Ue,n.resizeProxyVisible]])],46,_K)}var MK=nt(EK,[["render",OK],["__file","table.vue"]]);const AK={selection:"table-column--selection",expand:"table__expand-column"},kK={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},PK=n=>AK[n]||"",NK={selection:{renderHeader({store:n,column:e}){function t(){return n.states.data.value&&n.states.data.value.length===0}return et(Js,{disabled:t(),size:n.states.tableSize.value,indeterminate:n.states.selection.value.length>0&&!n.states.isAllSelected.value,"onUpdate:modelValue":n.toggleAllSelection,modelValue:n.states.isAllSelected.value,ariaLabel:e.label})},renderCell({row:n,column:e,store:t,$index:r}){return et(Js,{disabled:e.selectable?!e.selectable.call(null,n,r):!1,size:t.states.tableSize.value,onChange:()=>{t.commit("rowSelectedChanged",n)},onClick:o=>o.stopPropagation(),modelValue:t.isSelected(n),ariaLabel:e.label})},sortable:!1,resizable:!1},index:{renderHeader({column:n}){return n.label||"#"},renderCell({column:n,$index:e}){let t=e+1;const r=n.index;return typeof r=="number"?t=e+r:typeof r=="function"&&(t=r(e)),et("div",{},[t])},sortable:!1},expand:{renderHeader({column:n}){return n.label||""},renderCell({row:n,store:e,expanded:t}){const{ns:r}=e,o=[r.e("expand-icon")];return t&&o.push(r.em("expand-icon","expanded")),et("div",{class:o,onClick:function(i){i.stopPropagation(),e.toggleRowExpansion(n)}},{default:()=>[et(dt,null,{default:()=>[et(Zp)]})]})},sortable:!1,resizable:!1}};function IK({row:n,column:e,$index:t}){var r;const o=e.property,s=o&&ch(n,o).value;return e&&e.formatter?e.formatter(n,e,s,t):((r=s==null?void 0:s.toString)==null?void 0:r.call(s))||""}function LK({row:n,treeNode:e,store:t},r=!1){const{ns:o}=t;if(!e)return r?[et("span",{class:o.e("placeholder")})]:null;const s=[],i=function(l){l.stopPropagation(),!e.loading&&t.loadOrToggle(n)};if(e.indent&&s.push(et("span",{class:o.e("indent"),style:{"padding-left":`${e.indent}px`}})),typeof e.expanded=="boolean"&&!e.noLazyChildren){const l=[o.e("expand-icon"),e.expanded?o.em("expand-icon","expanded"):""];let a=Zp;e.loading&&(a=fd),s.push(et("div",{class:l,onClick:i},{default:()=>[et(dt,{class:{[o.is("loading")]:e.loading}},{default:()=>[et(a)]})]}))}else s.push(et("span",{class:o.e("placeholder")}));return s}function xx(n,e){return n.reduce((t,r)=>(t[r]=r,t),e)}function RK(n,e){const t=bt();return{registerComplexWatchers:()=>{const s=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},l=xx(s,i);Object.keys(l).forEach(a=>{const c=i[a];xt(e,c)&&Be(()=>e[c],u=>{let d=u;c==="width"&&a==="realWidth"&&(d=Wy(u)),c==="minWidth"&&a==="realMinWidth"&&(d=_M(u)),t.columnConfig.value[c]=d,t.columnConfig.value[a]=d;const f=c==="fixed";n.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=xx(s,i);Object.keys(l).forEach(a=>{const c=i[a];xt(e,c)&&Be(()=>e[c],u=>{t.columnConfig.value[a]=u})})}}}function $K(n,e,t){const r=bt(),o=D(""),s=D(!1),i=D(),l=D(),a=Xe("table");ls(()=>{i.value=n.align?`is-${n.align}`:null,i.value}),ls(()=>{l.value=n.headerAlign?`is-${n.headerAlign}`:i.value,l.value});const c=z(()=>{let y=r.vnode.vParent||r.parent;for(;y&&!y.tableId&&!y.columnId;)y=y.vnode.vParent||y.parent;return y}),u=z(()=>{const{store:y}=r.parent;if(!y)return!1;const{treeData:x}=y.states,E=x.value;return E&&Object.keys(E).length>0}),d=D(Wy(n.width)),f=D(_M(n.minWidth)),h=y=>(d.value&&(y.width=d.value),f.value&&(y.minWidth=f.value),!d.value&&f.value&&(y.width=void 0),y.minWidth||(y.minWidth=80),y.realWidth=Number(y.width===void 0?y.minWidth:y.width),y),p=y=>{const x=y.type,E=NK[x]||{};Object.keys(E).forEach(M=>{const O=E[M];M!=="className"&&O!==void 0&&(y[M]=O)});const T=PK(x);if(T){const M=`${S(a.namespace)}-${T}`;y.className=y.className?`${y.className} ${M}`:M}return y},g=y=>{Array.isArray(y)?y.forEach(E=>x(E)):x(y);function x(E){var T;((T=E==null?void 0:E.type)==null?void 0:T.name)==="ElTableColumn"&&(E.vParent=r)}};return{columnId:o,realAlign:i,isSubColumn:s,realHeaderAlign:l,columnOrTableParent:c,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:y=>{n.renderHeader||y.type!=="selection"&&(y.renderHeader=E=>(r.columnConfig.value.label,ke(e,"header",E,()=>[y.label])));let x=y.renderCell;return y.type==="expand"?(y.renderCell=E=>et("div",{class:"cell"},[x(E)]),t.value.renderExpanded=E=>e.default?e.default(E):e.default):(x=x||IK,y.renderCell=E=>{let T=null;if(e.default){const j=e.default(E);T=j.some(ce=>ce.type!==Jn)?j:x(E)}else T=x(E);const{columns:M}=t.value.store.states,O=M.value.findIndex(j=>j.type==="default"),k=u.value&&E.cellIndex===O,P=LK(E,k),L={class:"cell",style:{}};return y.showOverflowTooltip&&(L.class=`${L.class} ${S(a.namespace)}-tooltip`,L.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),g(T),et("div",L,[P,T])}),y},getPropsData:(...y)=>y.reduce((x,E)=>(Array.isArray(E)&&E.forEach(T=>{x[T]=n[T]}),x),{}),getColumnElIndex:(y,x)=>Array.prototype.indexOf.call(y,x),updateColumnOrder:()=>{t.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var DK={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:n=>n.every(e=>["ascending","descending",null].includes(e))}};let VK=1;var LM=me({name:"ElTableColumn",components:{ElCheckbox:Js},props:DK,setup(n,{slots:e}){const t=bt(),r=D({}),o=z(()=>{let b=t.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:s,registerComplexWatchers:i}=RK(o,n),{columnId:l,isSubColumn:a,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:h,getPropsData:p,getColumnElIndex:g,realAlign:m,updateColumnOrder:v}=$K(n,e,o),w=u.value;l.value=`${w.tableId||w.columnId}_column_${VK++}`,zd(()=>{a.value=o.value!==w;const b=n.type||"default",y=n.sortable===""?!0:n.sortable,x=Tr(n.showOverflowTooltip)?w.props.showOverflowTooltip:n.showOverflowTooltip,E={...kK[b],id:l.value,type:b,property:n.prop||n.property,align:m,headerAlign:c,showOverflowTooltip:x,filterable:n.filters||n.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:y,index:n.index,rawColumnKey:t.vnode.key};let P=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);P=Bq(E,P),P=zq(h,d,f)(P),r.value=P,s(),i()}),ot(()=>{var b;const y=u.value,x=a.value?y.vnode.el.children:(b=y.refs.hiddenColumns)==null?void 0:b.children,E=()=>g(x||[],t.vnode.el);r.value.getColumnIndex=E,E()>-1&&o.value.store.commit("insertColumn",r.value,a.value?y.columnConfig.value:null,v)}),_n(()=>{r.value.getColumnIndex()>-1&&o.value.store.commit("removeColumn",r.value,a.value?w.columnConfig.value:null,v)}),t.columnId=l.value,t.columnConfig=r},render(){var n,e,t;try{const r=(e=(n=this.$slots).default)==null?void 0:e.call(n,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const i of r)((t=i.type)==null?void 0:t.name)==="ElTableColumn"||i.shapeFlag&2?o.push(i):i.type===Re&&Array.isArray(i.children)&&i.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!ht(l==null?void 0:l.children)&&o.push(l)});return et("div",o)}catch{return et("div",[])}}});const of=Rt(MK,{TableColumn:LM}),sf=Lr(LM),hg=Symbol("tabsRootContextKey"),BK=st({tabs:{type:je(Array),default:()=>Ao([])}}),RM="ElTabBar",FK=me({name:RM}),zK=me({...FK,props:BK,setup(n,{expose:e}){const t=n,r=bt(),o=Fe(hg);o||pl(RM,"");const s=Xe("tabs"),i=D(),l=D(),a=()=>{let u=0,d=0;const f=["top","bottom"].includes(o.props.tabPosition)?"width":"height",h=f==="width"?"x":"y",p=h==="x"?"left":"top";return t.tabs.every(g=>{var m,v;const w=(v=(m=r.parent)==null?void 0:m.refs)==null?void 0:v[`tab-${g.uid}`];if(!w)return!1;if(!g.active)return!0;u=w[`offset${Ri(p)}`],d=w[`client${Ri(f)}`];const b=window.getComputedStyle(w);return f==="width"&&(t.tabs.length>1&&(d-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight)),u+=Number.parseFloat(b.paddingLeft)),!1}),{[f]:`${d}px`,transform:`translate${Ri(h)}(${u}px)`}},c=()=>l.value=a();return Be(()=>t.tabs,async()=>{await lt(),c()},{immediate:!0}),vr(i,()=>c()),e({ref:i,update:c}),(u,d)=>(A(),G("div",{ref_key:"barRef",ref:i,class:Q([S(s).e("active-bar"),S(s).is(S(o).props.tabPosition)]),style:wt(l.value)},null,6))}});var jK=nt(zK,[["__file","tab-bar.vue"]]);const HK=st({panes:{type:je(Array),default:()=>Ao([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),UK={tabClick:(n,e,t)=>t instanceof Event,tabRemove:(n,e)=>e instanceof Event},Sx="ElTabNav",WK=me({name:Sx,props:HK,emits:UK,setup(n,{expose:e,emit:t}){const r=bt(),o=Fe(hg);o||pl(Sx,"");const s=Xe("tabs"),i=yD(),l=ND(),a=D(),c=D(),u=D(),d=D(),f=D(!1),h=D(0),p=D(!1),g=D(!0),m=z(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),v=z(()=>({transform:`translate${m.value==="width"?"X":"Y"}(-${h.value}px)`})),w=()=>{if(!a.value)return;const O=a.value[`offset${Ri(m.value)}`],k=h.value;if(!k)return;const P=k>O?k-O:0;h.value=P},b=()=>{if(!a.value||!c.value)return;const O=c.value[`offset${Ri(m.value)}`],k=a.value[`offset${Ri(m.value)}`],P=h.value;if(O-P<=k)return;const L=O-P>k*2?P+k:O-k;h.value=L},y=async()=>{const O=c.value;if(!f.value||!u.value||!a.value||!O)return;await lt();const k=u.value.querySelector(".is-active");if(!k)return;const P=a.value,L=["top","bottom"].includes(o.props.tabPosition),j=k.getBoundingClientRect(),ce=P.getBoundingClientRect(),R=L?O.offsetWidth-ce.width:O.offsetHeight-ce.height,$=h.value;let q=$;L?(j.leftce.right&&(q=$+j.right-ce.right)):(j.topce.bottom&&(q=$+(j.bottom-ce.bottom))),q=Math.max(q,0),h.value=Math.min(q,R)},x=()=>{var O;if(!c.value||!a.value)return;n.stretch&&((O=d.value)==null||O.update());const k=c.value[`offset${Ri(m.value)}`],P=a.value[`offset${Ri(m.value)}`],L=h.value;P0&&(h.value=0))},E=O=>{const k=O.code,{up:P,down:L,left:j,right:ce}=Cn;if(![P,L,j,ce].includes(k))return;const R=Array.from(O.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),$=R.indexOf(O.target);let q;k===j||k===P?$===0?q=R.length-1:q=$-1:${g.value&&(p.value=!0)},M=()=>p.value=!1;return Be(i,O=>{O==="hidden"?g.value=!1:O==="visible"&&setTimeout(()=>g.value=!0,50)}),Be(l,O=>{O?setTimeout(()=>g.value=!0,50):g.value=!1}),vr(u,x),ot(()=>setTimeout(()=>y(),0)),ba(()=>x()),e({scrollToActiveTab:y,removeFocus:M}),Be(()=>n.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const O=f.value?[C("span",{class:[s.e("nav-prev"),s.is("disabled",!f.value.prev)],onClick:w},[C(dt,null,{default:()=>[C(YT,null,null)]})]),C("span",{class:[s.e("nav-next"),s.is("disabled",!f.value.next)],onClick:b},[C(dt,null,{default:()=>[C(Zp,null,null)]})])]:null,k=n.panes.map((P,L)=>{var j,ce,R,$;const q=P.uid,U=P.props.disabled,W=(ce=(j=P.props.name)!=null?j:P.index)!=null?ce:`${L}`,Z=!U&&(P.isClosable||n.editable);P.index=`${L}`;const le=Z?C(dt,{class:"is-icon-close",onClick:ge=>t("tabRemove",P,ge)},{default:()=>[C(aa,null,null)]}):null,ee=(($=(R=P.slots).label)==null?void 0:$.call(R))||P.props.label,Me=!U&&P.active?0:-1;return C("div",{ref:`tab-${q}`,class:[s.e("item"),s.is(o.props.tabPosition),s.is("active",P.active),s.is("disabled",U),s.is("closable",Z),s.is("focus",p.value)],id:`tab-${W}`,key:`tab-${q}`,"aria-controls":`pane-${W}`,role:"tab","aria-selected":P.active,tabindex:Me,onFocus:()=>T(),onBlur:()=>M(),onClick:ge=>{M(),t("tabClick",P,W,ge)},onKeydown:ge=>{Z&&(ge.code===Cn.delete||ge.code===Cn.backspace)&&t("tabRemove",P,ge)}},[ee,le])});return C("div",{ref:u,class:[s.e("nav-wrap"),s.is("scrollable",!!f.value),s.is(o.props.tabPosition)]},[O,C("div",{class:s.e("nav-scroll"),ref:a},[C("div",{class:[s.e("nav"),s.is(o.props.tabPosition),s.is("stretch",n.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:c,style:v.value,role:"tablist",onKeydown:E},[n.type?null:C(jK,{ref:d,tabs:[...n.panes]},null),k])])])}}}),GK=st({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:je(Function),default:()=>!0},stretch:Boolean}),dm=n=>ht(n)||Tt(n),qK={[Ut]:n=>dm(n),tabClick:(n,e)=>e instanceof Event,tabChange:n=>dm(n),edit:(n,e)=>["remove","add"].includes(e),tabRemove:n=>dm(n),tabAdd:()=>!0},KK=me({name:"ElTabs",props:GK,emits:qK,setup(n,{emit:e,slots:t,expose:r}){var o;const s=Xe("tabs"),{children:i,addChild:l,removeChild:a}=iH(bt(),"ElTabPane"),c=D(),u=D((o=n.modelValue)!=null?o:"0"),d=async(g,m=!1)=>{var v,w,b;if(!(u.value===g||Tr(g)))try{await((v=n.beforeLeave)==null?void 0:v.call(n,g,u.value))!==!1&&(u.value=g,m&&(e(Ut,g),e("tabChange",g)),(b=(w=c.value)==null?void 0:w.removeFocus)==null||b.call(w))}catch{}},f=(g,m,v)=>{g.props.disabled||(d(m,!0),e("tabClick",g,v))},h=(g,m)=>{g.props.disabled||Tr(g.props.name)||(m.stopPropagation(),e("edit",g.props.name,"remove"),e("tabRemove",g.props.name))},p=()=>{e("edit",void 0,"add"),e("tabAdd")};return Be(()=>n.modelValue,g=>d(g)),Be(u,async()=>{var g;await lt(),(g=c.value)==null||g.scrollToActiveTab()}),jt(hg,{props:n,currentName:u,registerPane:l,unregisterPane:a}),r({currentName:u}),()=>{const g=t["add-icon"],m=n.editable||n.addable?C("span",{class:s.e("new-tab"),tabindex:"0",onClick:p,onKeydown:b=>{b.code===Cn.enter&&p()}},[g?ke(t,"add-icon"):C(dt,{class:s.is("icon-plus")},{default:()=>[C(XT,null,null)]})]):null,v=C("div",{class:[s.e("header"),s.is(n.tabPosition)]},[m,C(WK,{ref:c,currentName:u.value,editable:n.editable,type:n.type,panes:i.value,stretch:n.stretch,onTabClick:f,onTabRemove:h},null)]),w=C("div",{class:s.e("content")},[ke(t,"default")]);return C("div",{class:[s.b(),s.m(n.tabPosition),{[s.m("card")]:n.type==="card",[s.m("border-card")]:n.type==="border-card"}]},[...n.tabPosition!=="bottom"?[v,w]:[w,v]])}}}),YK=st({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),JK=["id","aria-hidden","aria-labelledby"],$M="ElTabPane",XK=me({name:$M}),ZK=me({...XK,props:YK,setup(n){const e=n,t=bt(),r=qo(),o=Fe(hg);o||pl($M,"usage: ");const s=Xe("tab-pane"),i=D(),l=z(()=>e.closable||o.props.closable),a=Pw(()=>{var h;return o.currentName.value===((h=e.name)!=null?h:i.value)}),c=D(a.value),u=z(()=>{var h;return(h=e.name)!=null?h:i.value}),d=Pw(()=>!e.lazy||c.value||a.value);Be(a,h=>{h&&(c.value=!0)});const f=vt({uid:t.uid,slots:r,props:e,paneName:u,active:a,index:i,isClosable:l});return ot(()=>{o.registerPane(f)}),ws(()=>{o.unregisterPane(f.uid)}),(h,p)=>S(d)?Le((A(),G("div",{key:0,id:`pane-${S(u)}`,class:Q(S(s).b()),role:"tabpanel","aria-hidden":!S(a),"aria-labelledby":`tab-${S(u)}`},[ke(h.$slots,"default")],10,JK)),[[Ue,S(a)]]):we("v-if",!0)}});var DM=nt(ZK,[["__file","tab-pane.vue"]]);const QK=Rt(KK,{TabPane:DM}),eY=Lr(DM),tY=st({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Sa,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),nY=me({name:"ElText"}),rY=me({...nY,props:tY,setup(n){const e=n,t=Co(),r=Xe("text"),o=z(()=>[r.b(),r.m(e.type),r.m(t.value),r.is("truncated",e.truncated),r.is("line-clamp",!Tr(e.lineClamp))]);return(s,i)=>(A(),ye(Bt(s.tag),{class:Q(S(o)),style:wt({"-webkit-line-clamp":s.lineClamp})},{default:_(()=>[ke(s.$slots,"default")]),_:3},8,["class","style"]))}});var oY=nt(rY,[["__file","text.vue"]]);const Ky=Rt(oY);function sY(n){let e;const t=D(!1),r=vt({...n,originalPosition:"",originalOverflow:"",visible:!1});function o(f){r.text=f}function s(){const f=r.parent,h=d.ns;if(!f.vLoadingAddClassList){let p=f.getAttribute("loading-number");p=Number.parseInt(p)-1,p?f.setAttribute("loading-number",p.toString()):(hs(f,h.bm("parent","relative")),f.removeAttribute("loading-number")),hs(f,h.bm("parent","hidden"))}i(),u.unmount()}function i(){var f,h;(h=(f=d.$el)==null?void 0:f.parentNode)==null||h.removeChild(d.$el)}function l(){var f;n.beforeClose&&!n.beforeClose()||(t.value=!0,clearTimeout(e),e=window.setTimeout(a,400),r.visible=!1,(f=n.closed)==null||f.call(n))}function a(){if(!t.value)return;const f=r.parent;t.value=!1,f.vLoadingAddClassList=void 0,s()}const u=Zb(me({name:"ElLoading",setup(f,{expose:h}){const{ns:p,zIndex:g}=og("loading");return h({ns:p,zIndex:g}),()=>{const m=r.spinner||r.svg,v=et("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[et("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=r.text?et("p",{class:p.b("text")},[r.text]):void 0;return et(Ir,{name:p.b("fade"),onAfterLeave:a},{default:_(()=>[Le(C("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[et("div",{class:p.b("spinner")},[v,w])]),[[Ue,r.visible]])])})}}})),d=u.mount(document.createElement("div"));return{...ei(r),setText:o,removeElLoadingChild:i,close:l,handleAfterLeave:a,vm:d,get $el(){return d.$el}}}let Ff;const iY=function(n={}){if(!Et)return;const e=lY(n);if(e.fullscreen&&Ff)return Ff;const t=sY({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&(Ff=void 0)}});aY(e,e.parent,t),Ex(e,e.parent,t),e.parent.vLoadingAddClassList=()=>Ex(e,e.parent,t);let r=e.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",e.parent.setAttribute("loading-number",r),e.parent.appendChild(t.$el),lt(()=>t.visible.value=e.visible),e.fullscreen&&(Ff=t),t},lY=n=>{var e,t,r,o;let s;return ht(n.target)?s=(e=document.querySelector(n.target))!=null?e:document.body:s=n.target||document.body,{parent:s===document.body||n.body?document.body:s,background:n.background||"",svg:n.svg||"",svgViewBox:n.svgViewBox||"",spinner:n.spinner||!1,text:n.text||"",fullscreen:s===document.body&&((t=n.fullscreen)!=null?t:!0),lock:(r=n.lock)!=null?r:!1,customClass:n.customClass||"",visible:(o=n.visible)!=null?o:!0,target:s}},aY=async(n,e,t)=>{const{nextZIndex:r}=t.vm.zIndex||t.vm._.exposed.zIndex,o={};if(n.fullscreen)t.originalPosition.value=$l(document.body,"position"),t.originalOverflow.value=$l(document.body,"overflow"),o.zIndex=r();else if(n.parent===document.body){t.originalPosition.value=$l(document.body,"position"),await lt();for(const s of["top","left"]){const i=s==="top"?"scrollTop":"scrollLeft";o[s]=`${n.target.getBoundingClientRect()[s]+document.body[i]+document.documentElement[i]-Number.parseInt($l(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])o[s]=`${n.target.getBoundingClientRect()[s]}px`}else t.originalPosition.value=$l(e,"position");for(const[s,i]of Object.entries(o))t.$el.style[s]=i},Ex=(n,e,t)=>{const r=t.vm.ns||t.vm._.exposed.ns;["absolute","fixed","sticky"].includes(t.originalPosition.value)?hs(e,r.bm("parent","relative")):la(e,r.bm("parent","relative")),n.fullscreen&&n.lock?la(e,r.bm("parent","hidden")):hs(e,r.bm("parent","hidden"))},bh=Symbol("ElLoading"),_x=(n,e)=>{var t,r,o,s;const i=e.instance,l=f=>gt(e.value)?e.value[f]:void 0,a=f=>{const h=ht(f)&&(i==null?void 0:i[f])||f;return h&&D(h)},c=f=>a(l(f)||n.getAttribute(`element-loading-${al(f)}`)),u=(t=l("fullscreen"))!=null?t:e.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(r=l("target"))!=null?r:u?void 0:n,body:(o=l("body"))!=null?o:e.modifiers.body,lock:(s=l("lock"))!=null?s:e.modifiers.lock};n[bh]={options:d,instance:iY(d)}},cY=(n,e)=>{for(const t of Object.keys(e))qt(e[t])&&(e[t].value=n[t])},uY={mounted(n,e){e.value&&_x(n,e)},updated(n,e){const t=n[bh];e.oldValue!==e.value&&(e.value&&!e.oldValue?_x(n,e):e.value&&e.oldValue?gt(e.value)&&cY(e.value,t.options):t==null||t.instance.close())},unmounted(n){var e;(e=n[bh])==null||e.instance.close(),n[bh]=null}},VM=["success","info","warning","error"],rr=Ao({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Et?document.body:void 0}),dY=st({customClass:{type:String,default:rr.customClass},center:{type:Boolean,default:rr.center},dangerouslyUseHTMLString:{type:Boolean,default:rr.dangerouslyUseHTMLString},duration:{type:Number,default:rr.duration},icon:{type:bo,default:rr.icon},id:{type:String,default:rr.id},message:{type:je([String,Object,Function]),default:rr.message},onClose:{type:je(Function),default:rr.onClose},showClose:{type:Boolean,default:rr.showClose},type:{type:String,values:VM,default:rr.type},plain:{type:Boolean,default:rr.plain},offset:{type:Number,default:rr.offset},zIndex:{type:Number,default:rr.zIndex},grouping:{type:Boolean,default:rr.grouping},repeatNum:{type:Number,default:rr.repeatNum}}),fY={destroy:()=>!0},Lo=Db([]),hY=n=>{const e=Lo.findIndex(o=>o.id===n),t=Lo[e];let r;return e>0&&(r=Lo[e-1]),{current:t,prev:r}},pY=n=>{const{prev:e}=hY(n);return e?e.vm.exposed.bottom.value:0},gY=(n,e)=>Lo.findIndex(r=>r.id===n)>0?16:e,mY=["id"],vY=["innerHTML"],bY=me({name:"ElMessage"}),yY=me({...bY,props:dY,emits:fY,setup(n,{expose:e}){const t=n,{Close:r}=Sy,{ns:o,zIndex:s}=og("message"),{currentZIndex:i,nextZIndex:l}=s,a=D(),c=D(!1),u=D(0);let d;const f=z(()=>t.type?t.type==="error"?"danger":t.type:"info"),h=z(()=>{const T=t.type;return{[o.bm("icon",T)]:T&&el[T]}}),p=z(()=>t.icon||el[t.type]||""),g=z(()=>pY(t.id)),m=z(()=>gY(t.id,t.offset)+g.value),v=z(()=>u.value+m.value),w=z(()=>({top:`${m.value}px`,zIndex:i.value}));function b(){t.duration!==0&&({stop:d}=Lh(()=>{x()},t.duration))}function y(){d==null||d()}function x(){c.value=!1}function E({code:T}){T===Cn.esc&&x()}return ot(()=>{b(),l(),c.value=!0}),Be(()=>t.repeatNum,()=>{y(),b()}),xn(document,"keydown",E),vr(a,()=>{u.value=a.value.getBoundingClientRect().height}),e({visible:c,bottom:v,close:x}),(T,M)=>(A(),ye(Ir,{name:S(o).b("fade"),onBeforeLeave:T.onClose,onAfterLeave:M[0]||(M[0]=O=>T.$emit("destroy")),persisted:""},{default:_(()=>[Le(F("div",{id:T.id,ref_key:"messageRef",ref:a,class:Q([S(o).b(),{[S(o).m(T.type)]:T.type},S(o).is("center",T.center),S(o).is("closable",T.showClose),S(o).is("plain",T.plain),T.customClass]),style:wt(S(w)),role:"alert",onMouseenter:y,onMouseleave:b},[T.repeatNum>1?(A(),ye(S(K9),{key:0,value:T.repeatNum,type:S(f),class:Q(S(o).e("badge"))},null,8,["value","type","class"])):we("v-if",!0),S(p)?(A(),ye(S(dt),{key:1,class:Q([S(o).e("icon"),S(h)])},{default:_(()=>[(A(),ye(Bt(S(p))))]),_:1},8,["class"])):we("v-if",!0),ke(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(A(),G(Re,{key:1},[we(" Caution here, message could've been compromised, never use user's input as message "),F("p",{class:Q(S(o).e("content")),innerHTML:T.message},null,10,vY)],2112)):(A(),G("p",{key:0,class:Q(S(o).e("content"))},oe(T.message),3))]),T.showClose?(A(),ye(S(dt),{key:2,class:Q(S(o).e("closeBtn")),onClick:It(x,["stop"])},{default:_(()=>[C(S(r))]),_:1},8,["class","onClick"])):we("v-if",!0)],46,mY),[[Ue,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var wY=nt(yY,[["__file","message.vue"]]);let CY=1;const BM=n=>{const e=!n||ht(n)||Pn(n)||Je(n)?{message:n}:n,t={...rr,...e};if(!t.appendTo)t.appendTo=document.body;else if(ht(t.appendTo)){let r=document.querySelector(t.appendTo);mo(r)||(r=document.body),t.appendTo=r}return t},xY=n=>{const e=Lo.indexOf(n);if(e===-1)return;Lo.splice(e,1);const{handler:t}=n;t.close()},SY=({appendTo:n,...e},t)=>{const r=`message_${CY++}`,o=e.onClose,s=document.createElement("div"),i={...e,id:r,onClose:()=>{o==null||o(),xY(u)},onDestroy:()=>{Zi(null,s)}},l=C(wY,i,Je(i.message)||Pn(i.message)?{default:Je(i.message)?i.message:()=>i.message}:null);l.appContext=t||wc._context,Zi(l,s),n.appendChild(s.firstElementChild);const a=l.component,u={id:r,vnode:l,vm:a,handler:{close:()=>{a.exposed.visible.value=!1}},props:l.component.props};return u},wc=(n={},e)=>{if(!Et)return{close:()=>{}};if(Tt(BC.max)&&Lo.length>=BC.max)return{close:()=>{}};const t=BM(n);if(t.grouping&&Lo.length){const o=Lo.find(({vnode:s})=>{var i;return((i=s.props)==null?void 0:i.message)===t.message});if(o)return o.props.repeatNum+=1,o.props.type=t.type,o.handler}const r=SY(t,e);return Lo.push(r),r.handler};VM.forEach(n=>{wc[n]=(e={},t)=>{const r=BM(e);return wc({...r,type:n},t)}});function EY(n){for(const e of Lo)(!n||n===e.props.type)&&e.handler.close()}wc.closeAll=EY;wc._context=null;const Qt=nO(wc,"$message"),_Y=me({name:"ElMessageBox",directives:{TrapFocus:CU},components:{ElButton:Tn,ElFocusTrap:lg,ElInput:wn,ElOverlay:Hy,ElIcon:dt,...Sy},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Rz},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(n,{emit:e}){const{locale:t,zIndex:r,ns:o,size:s}=og("message-box",z(()=>n.buttonSize)),{t:i}=t,{nextZIndex:l}=r,a=D(!1),c=vt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:fd,cancelButtonLoadingIcon:fd,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),u=z(()=>{const $=c.type;return{[o.bm("icon",$)]:$&&el[$]}}),d=gs(),f=gs(),h=z(()=>c.icon||el[c.type]||""),p=z(()=>!!c.message),g=D(),m=D(),v=D(),w=D(),b=D(),y=z(()=>c.confirmButtonClass);Be(()=>c.inputValue,async $=>{await lt(),n.boxType==="prompt"&&$!==null&&L()},{immediate:!0}),Be(()=>a.value,$=>{var q,U;$&&(n.boxType!=="prompt"&&(c.autofocus?v.value=(U=(q=b.value)==null?void 0:q.$el)!=null?U:g.value:v.value=g.value),c.zIndex=l()),n.boxType==="prompt"&&($?lt().then(()=>{var W;w.value&&w.value.$el&&(c.autofocus?v.value=(W=j())!=null?W:g.value:v.value=g.value)}):(c.editorErrorMessage="",c.validateError=!1))});const x=z(()=>n.draggable),E=z(()=>n.overflow);sO(g,m,x,E),ot(async()=>{await lt(),n.closeOnHashChange&&window.addEventListener("hashchange",T)}),_n(()=>{n.closeOnHashChange&&window.removeEventListener("hashchange",T)});function T(){a.value&&(a.value=!1,lt(()=>{c.action&&e("action",c.action)}))}const M=()=>{n.closeOnClickModal&&P(c.distinguishCancelAndClose?"close":"cancel")},O=Ly(M),k=$=>{if(c.inputType!=="textarea")return $.preventDefault(),P("confirm")},P=$=>{var q;n.boxType==="prompt"&&$==="confirm"&&!L()||(c.action=$,c.beforeClose?(q=c.beforeClose)==null||q.call(c,$,c,T):T())},L=()=>{if(n.boxType==="prompt"){const $=c.inputPattern;if($&&!$.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;const q=c.inputValidator;if(typeof q=="function"){const U=q(c.inputValue);if(U===!1)return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;if(typeof U=="string")return c.editorErrorMessage=U,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},j=()=>{const $=w.value.$refs;return $.input||$.textarea},ce=()=>{P("close")},R=()=>{n.closeOnPressEscape&&ce()};return n.lockScroll&&aO(a),{...ei(c),ns:o,overlayEvent:O,visible:a,hasMessage:p,typeClass:u,contentId:d,inputId:f,btnSize:s,iconComponent:h,confirmButtonClasses:y,rootRef:g,focusStartRef:v,headerRef:m,inputRef:w,confirmRef:b,doClose:T,handleClose:ce,onCloseRequested:R,handleWrapperClick:M,handleInputEnter:k,handleAction:P,t:i}}}),TY=["aria-label","aria-describedby"],OY=["aria-label"],MY=["id"];function AY(n,e,t,r,o,s){const i=at("el-icon"),l=at("close"),a=at("el-input"),c=at("el-button"),u=at("el-focus-trap"),d=at("el-overlay");return A(),ye(Ir,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=f=>n.$emit("vanish")),persisted:""},{default:_(()=>[Le(C(d,{"z-index":n.zIndex,"overlay-class":[n.ns.is("message-box"),n.modalClass],mask:n.modal},{default:_(()=>[F("div",{role:"dialog","aria-label":n.title,"aria-modal":"true","aria-describedby":n.showInput?void 0:n.contentId,class:Q(`${n.ns.namespace.value}-overlay-message-box`),onClick:e[8]||(e[8]=(...f)=>n.overlayEvent.onClick&&n.overlayEvent.onClick(...f)),onMousedown:e[9]||(e[9]=(...f)=>n.overlayEvent.onMousedown&&n.overlayEvent.onMousedown(...f)),onMouseup:e[10]||(e[10]=(...f)=>n.overlayEvent.onMouseup&&n.overlayEvent.onMouseup(...f))},[C(u,{loop:"",trapped:n.visible,"focus-trap-el":n.rootRef,"focus-start-el":n.focusStartRef,onReleaseRequested:n.onCloseRequested},{default:_(()=>[F("div",{ref:"rootRef",class:Q([n.ns.b(),n.customClass,n.ns.is("draggable",n.draggable),{[n.ns.m("center")]:n.center}]),style:wt(n.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=It(()=>{},["stop"]))},[n.title!==null&&n.title!==void 0?(A(),G("div",{key:0,ref:"headerRef",class:Q([n.ns.e("header"),{"show-close":n.showClose}])},[F("div",{class:Q(n.ns.e("title"))},[n.iconComponent&&n.center?(A(),ye(i,{key:0,class:Q([n.ns.e("status"),n.typeClass])},{default:_(()=>[(A(),ye(Bt(n.iconComponent)))]),_:1},8,["class"])):we("v-if",!0),F("span",null,oe(n.title),1)],2),n.showClose?(A(),G("button",{key:0,type:"button",class:Q(n.ns.e("headerbtn")),"aria-label":n.t("el.messagebox.close"),onClick:e[0]||(e[0]=f=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel")),onKeydown:e[1]||(e[1]=ir(It(f=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[C(i,{class:Q(n.ns.e("close"))},{default:_(()=>[C(l)]),_:1},8,["class"])],42,OY)):we("v-if",!0)],2)):we("v-if",!0),F("div",{id:n.contentId,class:Q(n.ns.e("content"))},[F("div",{class:Q(n.ns.e("container"))},[n.iconComponent&&!n.center&&n.hasMessage?(A(),ye(i,{key:0,class:Q([n.ns.e("status"),n.typeClass])},{default:_(()=>[(A(),ye(Bt(n.iconComponent)))]),_:1},8,["class"])):we("v-if",!0),n.hasMessage?(A(),G("div",{key:1,class:Q(n.ns.e("message"))},[ke(n.$slots,"default",{},()=>[n.dangerouslyUseHTMLString?(A(),ye(Bt(n.showInput?"label":"p"),{key:1,for:n.showInput?n.inputId:void 0,innerHTML:n.message},null,8,["for","innerHTML"])):(A(),ye(Bt(n.showInput?"label":"p"),{key:0,for:n.showInput?n.inputId:void 0},{default:_(()=>[H(oe(n.dangerouslyUseHTMLString?"":n.message),1)]),_:1},8,["for"]))])],2)):we("v-if",!0)],2),Le(F("div",{class:Q(n.ns.e("input"))},[C(a,{id:n.inputId,ref:"inputRef",modelValue:n.inputValue,"onUpdate:modelValue":e[2]||(e[2]=f=>n.inputValue=f),type:n.inputType,placeholder:n.inputPlaceholder,"aria-invalid":n.validateError,class:Q({invalid:n.validateError}),onKeydown:ir(n.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),F("div",{class:Q(n.ns.e("errormsg")),style:wt({visibility:n.editorErrorMessage?"visible":"hidden"})},oe(n.editorErrorMessage),7)],2),[[Ue,n.showInput]])],10,MY),F("div",{class:Q(n.ns.e("btns"))},[n.showCancelButton?(A(),ye(c,{key:0,loading:n.cancelButtonLoading,"loading-icon":n.cancelButtonLoadingIcon,class:Q([n.cancelButtonClass]),round:n.roundButton,size:n.btnSize,onClick:e[3]||(e[3]=f=>n.handleAction("cancel")),onKeydown:e[4]||(e[4]=ir(It(f=>n.handleAction("cancel"),["prevent"]),["enter"]))},{default:_(()=>[H(oe(n.cancelButtonText||n.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size"])):we("v-if",!0),Le(C(c,{ref:"confirmRef",type:"primary",loading:n.confirmButtonLoading,"loading-icon":n.confirmButtonLoadingIcon,class:Q([n.confirmButtonClasses]),round:n.roundButton,disabled:n.confirmButtonDisabled,size:n.btnSize,onClick:e[5]||(e[5]=f=>n.handleAction("confirm")),onKeydown:e[6]||(e[6]=ir(It(f=>n.handleAction("confirm"),["prevent"]),["enter"]))},{default:_(()=>[H(oe(n.confirmButtonText||n.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size"]),[[Ue,n.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,TY)]),_:3},8,["z-index","overlay-class","mask"]),[[Ue,n.visible]])]),_:3})}var kY=nt(_Y,[["render",AY],["__file","index.vue"]]);const vd=new Map,PY=n=>{let e=document.body;return n.appendTo&&(ht(n.appendTo)&&(e=document.querySelector(n.appendTo)),mo(n.appendTo)&&(e=n.appendTo),mo(e)||(e=document.body)),e},NY=(n,e,t=null)=>{const r=C(kY,n,Je(n.message)||Pn(n.message)?{default:Je(n.message)?n.message:()=>n.message}:null);return r.appContext=t,Zi(r,e),PY(n).appendChild(e.firstElementChild),r.component},IY=()=>document.createElement("div"),LY=(n,e)=>{const t=IY();n.onVanish=()=>{Zi(null,t),vd.delete(o)},n.onAction=s=>{const i=vd.get(o);let l;n.showInput?l={value:o.inputValue,action:s}:l=s,n.callback?n.callback(l,r.proxy):s==="cancel"||s==="close"?n.distinguishCancelAndClose&&s!=="cancel"?i.reject("close"):i.reject("cancel"):i.resolve(l)};const r=NY(n,t,e),o=r.proxy;for(const s in n)xt(n,s)&&!xt(o.$props,s)&&(o[s]=n[s]);return o.visible=!0,o};function Zc(n,e=null){if(!Et)return Promise.reject();let t;return ht(n)||Pn(n)?n={message:n}:t=n.callback,new Promise((r,o)=>{const s=LY(n,e??Zc._context);vd.set(s,{options:n,callback:t,resolve:r,reject:o})})}const RY=["alert","confirm","prompt"],$Y={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};RY.forEach(n=>{Zc[n]=DY(n)});function DY(n){return(e,t,r,o)=>{let s="";return gt(t)?(r=t,s=""):Tr(t)?s="":s=t,Zc(Object.assign({title:s,message:e,type:"",...$Y[n]},r,{boxType:n}),o)}}Zc.close=()=>{vd.forEach((n,e)=>{e.doClose()}),vd.clear()};Zc._context=null;const xi=Zc;xi.install=n=>{xi._context=n._context,n.config.globalProperties.$msgbox=xi,n.config.globalProperties.$messageBox=xi,n.config.globalProperties.$alert=xi.alert,n.config.globalProperties.$confirm=xi.confirm,n.config.globalProperties.$prompt=xi.prompt};const br=xi,FM=["success","info","warning","error"],VY=st({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:bo},id:{type:String,default:""},message:{type:je([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:je(Function),default:()=>{}},onClose:{type:je(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...FM,""],default:""},zIndex:Number}),BY={destroy:()=>!0},FY=["id"],zY=["textContent"],jY={key:0},HY=["innerHTML"],UY=me({name:"ElNotification"}),WY=me({...UY,props:VY,emits:BY,setup(n,{expose:e}){const t=n,{ns:r,zIndex:o}=og("notification"),{nextZIndex:s,currentZIndex:i}=o,{Close:l}=eO,a=D(!1);let c;const u=z(()=>{const b=t.type;return b&&el[t.type]?r.m(b):""}),d=z(()=>t.type&&el[t.type]||t.icon),f=z(()=>t.position.endsWith("right")?"right":"left"),h=z(()=>t.position.startsWith("top")?"top":"bottom"),p=z(()=>{var b;return{[h.value]:`${t.offset}px`,zIndex:(b=t.zIndex)!=null?b:i.value}});function g(){t.duration>0&&({stop:c}=Lh(()=>{a.value&&v()},t.duration))}function m(){c==null||c()}function v(){a.value=!1}function w({code:b}){b===Cn.delete||b===Cn.backspace?m():b===Cn.esc?a.value&&v():g()}return ot(()=>{g(),s(),a.value=!0}),xn(document,"keydown",w),e({visible:a,close:v}),(b,y)=>(A(),ye(Ir,{name:S(r).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:y[1]||(y[1]=x=>b.$emit("destroy")),persisted:""},{default:_(()=>[Le(F("div",{id:b.id,class:Q([S(r).b(),b.customClass,S(f)]),style:wt(S(p)),role:"alert",onMouseenter:m,onMouseleave:g,onClick:y[0]||(y[0]=(...x)=>b.onClick&&b.onClick(...x))},[S(d)?(A(),ye(S(dt),{key:0,class:Q([S(r).e("icon"),S(u)])},{default:_(()=>[(A(),ye(Bt(S(d))))]),_:1},8,["class"])):we("v-if",!0),F("div",{class:Q(S(r).e("group"))},[F("h2",{class:Q(S(r).e("title")),textContent:oe(b.title)},null,10,zY),Le(F("div",{class:Q(S(r).e("content")),style:wt(b.title?void 0:{margin:0})},[ke(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(A(),G(Re,{key:1},[we(" Caution here, message could've been compromised, never use user's input as message "),F("p",{innerHTML:b.message},null,8,HY)],2112)):(A(),G("p",jY,oe(b.message),1))])],6),[[Ue,b.message]]),b.showClose?(A(),ye(S(dt),{key:0,class:Q(S(r).e("closeBtn")),onClick:It(v,["stop"])},{default:_(()=>[C(S(l))]),_:1},8,["class","onClick"])):we("v-if",!0)],2)],46,FY),[[Ue,a.value]])]),_:3},8,["name","onBeforeLeave"]))}});var GY=nt(WY,[["__file","notification.vue"]]);const Wh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Hv=16;let qY=1;const Cc=function(n={},e=null){if(!Et)return{close:()=>{}};(typeof n=="string"||Pn(n))&&(n={message:n});const t=n.position||"top-right";let r=n.offset||0;Wh[t].forEach(({vm:u})=>{var d;r+=(((d=u.el)==null?void 0:d.offsetHeight)||0)+Hv}),r+=Hv;const o=`notification_${qY++}`,s=n.onClose,i={...n,offset:r,id:o,onClose:()=>{KY(o,t,s)}};let l=document.body;mo(n.appendTo)?l=n.appendTo:ht(n.appendTo)&&(l=document.querySelector(n.appendTo)),mo(l)||(l=document.body);const a=document.createElement("div"),c=C(GY,i,Pn(i.message)?{default:()=>i.message}:null);return c.appContext=e??Cc._context,c.props.onDestroy=()=>{Zi(null,a)},Zi(c,a),Wh[t].push({vm:c}),l.appendChild(a.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};FM.forEach(n=>{Cc[n]=(e={})=>((typeof e=="string"||Pn(e))&&(e={message:e}),Cc({...e,type:n}))});function KY(n,e,t){const r=Wh[e],o=r.findIndex(({vm:c})=>{var u;return((u=c.component)==null?void 0:u.props.id)===n});if(o===-1)return;const{vm:s}=r[o];if(!s)return;t==null||t(s);const i=s.el.offsetHeight,l=e.split("-")[0];r.splice(o,1);const a=r.length;if(!(a<1))for(let c=o;c{e.component.exposed.visible.value=!1})}Cc.closeAll=YY;Cc._context=null;const zf=nO(Cc,"$notify");function Si(n){return JSON.parse(JSON.stringify(n))}function tt(n,e,t,r,o){const s={method:n,headers:{Accept:"application/json","Content-Type":"application/json"}};let i="/"+e;if(t){const l=new URLSearchParams(t);i+="?"+l.toString()}return o&&(s.body=JSON.stringify(o)),fetch(i,s).then(l=>l.json()).catch(l=>l)}function $n(n,e){if(!(n==null||n==null))for(const[t,r]of Object.entries(n))r!=null&&r!=null&&(e[t]=r)}function Gi(){return{branchId:"",branchName:"",branchType:"Condition",targetNodeId:"",conditionGroup:[[{conditionType:"UserInput",refOptions:[],refChoice:"",compareOptions:[],compareType:"Eq",targetOptions:[],targetValueVariant:"Const",targetValue:"",inputVariable:!1,caseSensitiveComparison:!0}]],editable:!0}}function Nl(n,e,t,r,o){let s;return o?s="No. "+(n+1)+" branch, condition: "+(t+1)+"-"+(r+1)+" "+o:s="No. "+(n+1)+" branch, "+e,{r:!1,m:s}}function JY(n){for(let e=0;e-1}function QY(n,e){window.localStorage.setItem(n+"type",e)}function eJ(n){return window.localStorage.getItem(n+"type")}const tJ={class:"text-large font-600 mr-3"},nJ=F("h3",null,"Common settings",-1),rJ=["checked"],oJ={for:"_randomPortWhenConflict_"},sJ=F("h3",null,"HuggingFace model downloading settings",-1),vi="130px",iJ={__name:"GlobalSettings",setup(n){const{t:e,tm:t}=rn(),r=xo(),o=()=>{r.push("/")},s=vt({ip:"127.0.0.1",port:"12715",selectRandomPortWhenConflict:!1,hfModelDownload:{connectTimeoutMillis:1e3,readTimeoutMillis:1e4,accessToken:""}});ot(async()=>{const l=await tt("GET","management/global-settings",null,null,null);l.status==200&&$n(l.data,s)});async function i(){let l=await tt("POST","management/global-settings",null,null,s);if(l.status==200)Qt({type:"success",message:e("lang.common.saved")}),await checkHfModelFiles();else{const a=e(l.err.message);Qt.error(a||l.err.message)}}return(l,a)=>{const c=Es,u=wn,d=nr,f=dg,h=Tn,p=tr,g=ug,m=cg;return A(),G(Re,null,[C(c,{title:l.$t("lang.common.back"),onBack:o},{content:_(()=>[F("span",tJ,oe(l.$t("lang.settings.title")),1)]),_:1},8,["title"]),nJ,C(m,null,{default:_(()=>[C(g,{span:12,offset:1},{default:_(()=>[C(p,{model:s},{default:_(()=>[C(d,{label:"IP addr (v4 or v6)","label-width":vi},{default:_(()=>[C(u,{modelValue:s.ip,"onUpdate:modelValue":a[0]||(a[0]=v=>s.ip=v),placeholder:""},null,8,["modelValue"])]),_:1}),C(d,{label:"","label-width":vi},{default:_(()=>[H(oe(l.$t("lang.settings.ipNote")),1)]),_:1}),C(d,{label:l.$t("lang.settings.prompt2"),"label-width":vi},{default:_(()=>[C(f,{modelValue:s.port,"onUpdate:modelValue":a[1]||(a[1]=v=>s.port=v),min:1024,max:65530,onChange:l.handleChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),C(d,{label:"","label-width":vi},{default:_(()=>[Le(F("input",{type:"checkbox",id:"_randomPortWhenConflict_","onUpdate:modelValue":a[2]||(a[2]=v=>s.selectRandomPortWhenConflict=v),checked:s.selectRandomPortWhenConflict},null,8,rJ),[[Xi,s.selectRandomPortWhenConflict]]),F("label",oJ,oe(l.$t("lang.settings.prompt2_2")),1)]),_:1}),C(d,{"label-width":vi},{default:_(()=>[H(oe(l.$t("lang.settings.note")),1)]),_:1}),C(d,{label:"","label-width":vi},{default:_(()=>[C(h,{type:"primary",onClick:i},{default:_(()=>[H(oe(l.$t("lang.common.save")),1)]),_:1}),C(h,{onClick:a[3]||(a[3]=v=>o())},{default:_(()=>[H(oe(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),sJ,C(m,null,{default:_(()=>[C(g,{span:11,offset:1},{default:_(()=>[C(p,{model:s.modelDownload,"label-width":vi,style:{"max-width":"600px"}},{default:_(()=>[C(d,{label:"Connect timeout"},{default:_(()=>[C(f,{modelValue:s.hfModelDownload.connectTimeoutMillis,"onUpdate:modelValue":a[4]||(a[4]=v=>s.hfModelDownload.connectTimeoutMillis=v),min:100,max:5e4,step:100},null,8,["modelValue"]),H(" millis ")]),_:1}),C(d,{label:"Read timeout"},{default:_(()=>[C(f,{modelValue:s.hfModelDownload.readTimeoutMillis,"onUpdate:modelValue":a[5]||(a[5]=v=>s.hfModelDownload.readTimeoutMillis=v),min:1e3,max:65530,step:100},null,8,["modelValue"]),H(" millis ")]),_:1}),C(d,{label:"Access token"},{default:_(()=>[C(u,{modelValue:s.hfModelDownload.accessToken,"onUpdate:modelValue":a[6]||(a[6]=v=>s.hfModelDownload.accessToken=v),placeholder:""},null,8,["modelValue"])]),_:1}),C(d,{label:"","label-width":vi},{default:_(()=>[C(h,{type:"primary",onClick:i},{default:_(()=>[H(oe(l.$t("lang.common.save")),1)]),_:1}),C(h,{onClick:a[7]||(a[7]=v=>o())},{default:_(()=>[H(oe(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},lJ="/assets/usedByLlmChatNode-Bv2Fg5P7.png",aJ="/assets/usedByLlmChatNode-Bv2Fg5P7.png",cJ="/assets/usedByDialogNodeTextGeneration-thumbnail-C1iQCVQO.png",uJ="/assets/usedByDialogNodeTextGeneration-DrFqkTqi.png",dJ="/assets/usedBySentenceEmbedding-thumbnail-DVXz_sh0.png",fJ="/assets/usedBySentenceEmbedding-Dmju1hVB.png",hJ={class:"text-large font-600 mr-3"},pJ=F("h3",null,"Common settings",-1),gJ=F("br",null,null,-1),mJ=F("div",null,"This is used by LLM chat node.",-1),vJ=F("br",null,null,-1),bJ=F("div",null,"This is used by dialog node.",-1),yJ=F("br",null,null,-1),wJ=F("br",null,null,-1),CJ=F("div",null,"This is used by intention similar sentences.",-1),xJ=F("h3",null,"Email settings",-1),Tx="[-\\w\\.\\+]{1,100}@[A-Za-z0-9]{1,30}[A-Za-z\\.]{2,30}",pr="150px",SJ={__name:"Settings",setup(n){const{t:e,tm:t}=rn(),r=ni(),o=xo(),s=r.params.robotId,i=D(30),l=()=>{o.push({name:"robotDetail",params:{robotId:s}})},a=D(85),c=vt({maxSessionIdleSec:1800,smtpHost:"",smtpUsername:"",smtpPassword:"",smtpTimeoutSec:60,emailVerificationRegex:"",chatProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",max_token_len:1e3,connectTimeoutMillis:5e3,readTimeoutMillis:1e4,maxResponseTokenLength:5e3,proxyUrl:""},textGenerationProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",max_token_len:1e3,connectTimeoutMillis:5e3,readTimeoutMillis:1e4,maxResponseTokenLength:5e3,proxyUrl:""},sentenceEmbeddingProvider:{provider:{id:"",model:""},similarityThreshold:.85,apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",connectTimeoutMillis:5e3,readTimeoutMillis:1e4,proxyUrl:""}}),u=D(!1),d=D(!1),f=D(!1),h=D(""),p=D(!1),g=D(!1),m=D(""),v=D(!1),w=D(!1),b=D(""),y=D(!1),x=D(!1),E=D(""),T=D(""),M=D(""),O=D("");ot(async()=>{const he=await tt("GET","management/settings",{robotId:s},null,null);he.status==200&&($n(he.data,c),i.value=c.maxSessionIdleSec/60,T.value=he.data.sentenceEmbeddingProvider.provider.id,pe(c.chatProvider.provider.id),V(c.textGenerationProvider.provider.id),Pe(c.sentenceEmbeddingProvider.provider.id)),await k()}),ws(()=>{j!=null&&clearTimeout(j)});async function k(){const he=new Map;if(c.chatProvider.provider.id=="HuggingFace"){for(let Y=0;Y-1&&(ie=ie.substring(0,Ae)),m.value=ie,he.set(v,ie);break}}else p.value=!1;if(c.textGenerationProvider.provider.id=="HuggingFace"){for(let Y=0;Y-1&&(ie=ie.substring(0,Ae)),b.value=ie,he.set(v,ie);break}}else v.value=!1;if(c.sentenceEmbeddingProvider.provider.id=="HuggingFace"){for(let Y=0;Y-1&&(ie=ie.substring(0,Ae)),E.value=ie,he.set(y,ie);break}}else y.value=!1;if(he.size>0){const Y=await tt("POST","management/settings/model/check/files",null,null,Array.from(he.values()));if(Y&&Y.data)for(let[ie,Ae]of he.entries())Y.data[Ae]==!1?ie.value=!0:ie.value=!1}}async function P(){T.value!=c.sentenceEmbeddingProvider.provider.id?br.confirm("Sentence embedding model has been changed, this may cause dimension mismatch issue (You can regenerate all sentences to resolve). Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning",dangerouslyUseHTMLString:!0}).then(()=>{L()}).catch(()=>{}):L()}async function L(){c.emailVerificationRegex||(c.emailVerificationRegex=Tx),c.maxSessionIdleSec=i.value*60,c.sentenceEmbeddingProvider.similarityThreshold=a.value/100;let he=await tt("POST","management/settings",{robotId:s},null,c);if(he.status==200)Qt({type:"success",message:e("lang.common.saved")}),await k();else{const Y=e(he.err.message);Qt.error(Y||he.err.message)}}let j=null;async function ce(he){const Y=await tt("GET","management/settings/model/download/progress",null,null,null);if(Y!=null&&Y.data!=null&&Y.data.downloading){const ie="Downloading: "+Y.url+" ("+(Y.data.downloadedLen/Y.data.totalLen*100).toFixed(2)+"), please wait until it finish.";Qt.error(ie);return}tt("POST","management/settings/model/download",{robotId:s,m:he},null,he).then(ie=>{if(ie==null||ie.status!=200){Qt.error("Download failed: "+ie.err.message);return}he=="sentenceEmbedding"?(y.value=!1,x.value=!0):(v.value=!1,w.value=!0),j=setTimeout(async()=>{await $()},1e3)})}function R(){clearTimeout(j),v.value=!1,w.value=!1,y.value=!1,x.value=!1}async function $(){const he=await tt("GET","management/settings/model/download/progress",null,null,null);if(he!=null&&he.data!=null)if(he.data.err){Qt.error(he.data.err),clearTimeout(j),w.value=!1,x.value=!1;return}else he.data.downloading?(M.value=he.data.url,O.value=(he.data.downloadedLen/he.data.totalLen*100).toFixed(2),j=setTimeout(async()=>{await $()},1e3)):R();else R()}const q=async()=>{u.value=!0;const he=await tt("POST","management/settings/smtp/test",null,null,c);he.status==200?(d.value=!0,f.value=!1):(h.value=e(he.err.message),d.value=!1,f.value=!0),u.value=!1},U=[{label:"Meta Llama 3.1 8b",value:"llama3.1:8b"},{label:"Meta Llama 3.1 70b",value:"llama3.1:70b"},{label:"Meta Llama 3 8b",value:"llama3:8b"},{label:"Meta Llama 3 70b",value:"llama3:70b"},{label:"Phi-3 3.8b",value:"phi3:3.8b"},{label:"Phi-3 14b",value:"phi3:14b"},{label:"Phi-3 instruct",value:"phi3:instruct"},{label:"Gemma2 9b",value:"gemma2:9b"},{label:"Gemma2 27b",value:"gemma2:27b"},{label:"WizardLM-2 7b",value:"wizardlm2:7b"},{label:"WizardLM-2 8x22b",value:"wizardlm2:8x22b"},{label:"Mistral 7b",value:"mistral:7b"},{label:"Mixtral 8x7b",value:"mixtral:8x7b"},{label:"Mixtral 8x22b",value:"mixtral:8x22b"},{label:"Qwen 2 1.5b",value:"qwen2:1.5b"},{label:"Qwen 2 7b",value:"qwen2:7b"},{label:"Qwen 2 72b",value:"qwen2:72b"},{label:"TinyLlama 1.1b",value:"tinyllama:1.1b"},{label:"Yi 1.5 6b",value:"yi:6b"},{label:"Yi 1.5 9b",value:"yi:9b"},{label:"Yi 1.5 34b",value:"yi:34b"}];jt("ollamaModels",{ollamaModels:U});const W=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"microsoft/Phi-3-mini-4k-instruct (7.7GB)",value:"Phi3Mini4kInstruct"},{label:"microsoft/Phi-3-mini-128k-instruct (7.7GB)",value:"Phi3Mini128kInstruct"},{label:"microsoft/Phi-3-small-8k-instruct (15GB)",value:"Phi3Small8kInstruct"},{label:"microsoft/Phi-3-small-128k-instruct (15GB)",value:"Phi3Small128kInstruct"},{label:"microsoft/Phi-3-medium-4k-instruct (30GB)",value:"Phi3Medium4kInstruct"},{label:"microsoft/Phi-3-medium-128k-instruct (30GB)",value:"Phi3Medium128kInstruct"},{label:"google/gemma-2b-it (4.9GB)",value:"Gemma2bInstruct",need_auth_header:!0},{label:"google/gemma-7b-it (12.1GB)",value:"Gemma7bInstruct",need_auth_header:!0},{label:"meta-llama/Meta-Llama-3-8B-Instruct (??GB)",value:"MetaLlama3_8bInstruct",need_auth_header:!0},{label:"upstage/SOLAR-10.7B-v1.0 (21.5GB)",value:"Solar10_7bV1_0"},{label:"Qwen/Qwen2-7B-Instruct (15.4GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"Qwen/Qwen2-72B-Instruct (144GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"TinyLlama/TinyLlama-1.1B-Chat-v1.0 (2.2GB)",value:"TinyLlama1_1bChatV1_0"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/chat/completions",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"gpt-4o",value:"gpt-4"},{label:"gpt-4o-mini",value:"gpt-4-mini"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/chat",apiUrlDisabled:!1,showApiKeyInput:!1,models:U}],Z=D(!1),le=D(!1),ee=D(""),Me=D(),ge=he=>{const Y={label:he,value:he};I.unshift(Y),W[2].models.unshift(Y),Me.value.blur(),c.chatProvider.provider.id="Ollama",c.chatProvider.provider.model=Y.value,ee.value=""},be=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"microsoft/Phi-3-mini-4k-instruct (7.7GB)",value:"Phi3Mini4kInstruct"},{label:"microsoft/Phi-3-mini-128k-instruct (7.7GB)",value:"Phi3Mini128kInstruct"},{label:"microsoft/Phi-3-small-8k-instruct (15GB)",value:"Phi3Small8kInstruct"},{label:"microsoft/Phi-3-small-128k-instruct (15GB)",value:"Phi3Small128kInstruct"},{label:"microsoft/Phi-3-medium-4k-instruct (30GB)",value:"Phi3Medium4kInstruct"},{label:"microsoft/Phi-3-medium-128k-instruct (30GB)",value:"Phi3Medium128kInstruct"},{label:"google/gemma-2b-it (4.9GB)",value:"Gemma2bInstruct",need_auth_header:!0},{label:"google/gemma-7b-it (12.1GB)",value:"Gemma7bInstruct",need_auth_header:!0},{label:"meta-llama/Meta-Llama-3-8B-Instruct (??GB)",value:"MetaLlama3_8bInstruct",need_auth_header:!0},{label:"upstage/SOLAR-10.7B-v1.0 (21.5GB)",value:"Solar10_7bV1_0"},{label:"Qwen/Qwen2-7B-Instruct (15.4GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"Qwen/Qwen2-72B-Instruct (144GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"TinyLlama/TinyLlama-1.1B-Chat-v1.0 (2.2GB)",value:"TinyLlama1_1bChatV1_0"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/chat/completions",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/generate",apiUrlDisabled:!1,showApiKeyInput:!1,models:U}],Te=D(!1),re=D(!1),ae=D(""),te=D(),ve=he=>{const Y={label:he,value:he};fe.unshift(Y),be[2].models.unshift(Y),te.value.blur(),c.textGenerationProvider.provider.id="Ollama",c.textGenerationProvider.provider.model=Y.value,ae.value=""},Oe=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"sentence-transformers/all-MiniLM-L6-v2 (91MB)",value:"AllMiniLML6V2",dimenssions:384},{label:"sentence-transformers/paraphrase-MiniLM-L12-v2 (135MB)",value:"ParaphraseMLMiniLML12V2"},{label:"sentence-transformers/paraphrase-multilingual-mpnet-base-v2 (1.11GB)",value:"ParaphraseMLMpnetBaseV2"},{label:"BAAI/bge-small-en-v1.5 (135MB)",value:"BgeSmallEnV1_5"},{label:"BAAI/bge-base-en-v1.5 (439MB)",value:"BgeBaseEnV1_5"},{label:"BAAI/bge-large-en-v1.5 (1.35GB)",value:"BgeLargeEnV1_5"},{label:"BAAI/bge-m3 (2.27GB)",value:"BgeM3"},{label:"nomic-ai/nomic-embed-text-v1.5 (550MB)",value:"NomicEmbedTextV1_5"},{label:"intfloat/multilingual-e5-small (472MB)",value:"MultilingualE5Small"},{label:"intfloat/multilingual-e5-base (1.11GB)",value:"MultilingualE5Base"},{label:"intfloat/multilingual-e5-large (2.24GB)",value:"MultilingualE5Large"},{label:"mixedbread-ai/mxbai-embed-large-v1 (1.34GB)",value:"MxbaiEmbedLargeV1"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/embeddings",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"text-embedding-3-large",value:"text-embedding-3-large"},{label:"text-embedding-3-small",value:"text-embedding-3-small"},{label:"text-embedding-ada-002",value:"text-embedding-ada-002"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/embeddings",apiUrlDisabled:!1,showApiKeyInput:!1,models:[{label:"nomic-embed-text:v1.5",value:"nomic-embed-text:v1.5"},{label:"mxbai-embed-large:335m",value:"mxbai-embed-large:335m"},{label:"snowflake-arctic-embed:335m",value:"snowflake-arctic-embed:335m"},{label:"jina-embeddings-v2-base-en",value:"jina/jina-embeddings-v2-base-en:latest"}]}],Ye=D(!1),I=vt([]),N=new Map,X=D(""),pe=he=>{X.value&&N.set(X.value,c.chatProvider.apiUrl);for(let Y=0;Yie.value==c.chatProvider.provider.model)==null&&ge(c.chatProvider.provider.model),I.splice(0,I.length,...W[Y].models);break}},fe=vt([]),_e=new Map,xe=D(""),V=he=>{xe.value&&_e.set(xe.value,c.textGenerationProvider.apiUrl);for(let Y=0;Yie.value==c.textGenerationProvider.provider.model)==null&&ve(c.textGenerationProvider.provider.model),fe.splice(0,fe.length,...be[Y].models);break}},B=vt([]),J=new Map,ue=D(""),Pe=he=>{ue.value&&J.set(ue.value,c.sentenceEmbeddingProvider.apiUrl);for(let Y=0;Yie.value==c.sentenceEmbeddingProvider.provider.model)==null&&We(c.sentenceEmbeddingProvider.provider.model),B.splice(0,B.length,...Oe[Y].models);break}},se=D(),ne=D(!1),de=D(""),We=he=>{const Y={label:he,value:he};B.unshift(Y),Oe[2].models.unshift(Y),se.value.blur(),c.sentenceEmbeddingProvider.provider.id="Ollama",c.sentenceEmbeddingProvider.provider.model=Y.value,de.value=""},Ze=[aJ],Ie=[uJ],qe=[fJ];return(he,Y)=>{const ie=Es,Ae=dg,Se=nr,ze=Tn,it=tr,Ft=ug,on=cg,dr=Rr,fr=iW,hr=ag,sn=wn,Eo=Ts,Jr=_s,ui=Js,Ms=wM,$r=Ry;return A(),G(Re,null,[C(ie,{title:he.$t("lang.common.back"),onBack:l},{content:_(()=>[F("span",hJ,oe(he.$t("lang.settings.title")),1)]),_:1},8,["title"]),pJ,C(on,null,{default:_(()=>[C(Ft,{span:12,offset:1},{default:_(()=>[C(it,{model:c},{default:_(()=>[C(Se,{label:he.$t("lang.settings.prompt3"),"label-width":pr},{default:_(()=>[C(Ae,{modelValue:i.value,"onUpdate:modelValue":Y[0]||(Y[0]=Ee=>i.value=Ee),min:2,max:1440,onChange:he.handleChange},null,8,["modelValue","onChange"]),H(" "+oe(he.$t("lang.settings.prompt4")),1)]),_:1},8,["label"]),C(Se,{label:"","label-width":pr},{default:_(()=>[C(ze,{type:"primary",onClick:P},{default:_(()=>[H(oe(he.$t("lang.common.save")),1)]),_:1}),C(ze,{onClick:Y[1]||(Y[1]=Ee=>l())},{default:_(()=>[H(oe(he.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),F("h3",null,[H(" Chat bot "),C(dr,{effect:"light",placement:"right"},{content:_(()=>[H(" You don’t need to download the large model file unless you want to use the functionalities described below. "),gJ,H(" Currently, its function is merely to provide automatic response capabilities and suggested reply templates for dialogue nodes. ")]),default:_(()=>[C(ze,{circle:""},{default:_(()=>[H("?")]),_:1})]),_:1})]),C(on,null,{default:_(()=>[C(Ft,{span:11,offset:1},{default:_(()=>[C(it,{model:c.chatProvider,"label-width":pr,style:{"max-width":"600px"}},{default:_(()=>[C(Se,{label:"Provider"},{default:_(()=>[C(hr,{modelValue:c.chatProvider.provider.id,"onUpdate:modelValue":Y[2]||(Y[2]=Ee=>c.chatProvider.provider.id=Ee),size:"large",onChange:pe},{default:_(()=>[(A(),G(Re,null,St(W,Ee=>C(fr,{id:Ee.id,key:Ee.id,label:Ee.id,value:Ee.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),C(Se,{label:"Request address"},{default:_(()=>[C(sn,{modelValue:c.chatProvider.apiUrl,"onUpdate:modelValue":Y[3]||(Y[3]=Ee=>c.chatProvider.apiUrl=Ee),disabled:c.chatProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),Le(C(Se,{label:"OpenAI API key"},{default:_(()=>[C(sn,{modelValue:c.chatProvider.apiKey,"onUpdate:modelValue":Y[4]||(Y[4]=Ee=>c.chatProvider.apiKey=Ee)},null,8,["modelValue"])]),_:1},512),[[Ue,c.chatProvider.showApiKeyInput]]),C(Se,{label:"Model"},{default:_(()=>[C(Jr,{ref_key:"chatModelSelector",ref:Me,modelValue:c.chatProvider.provider.model,"onUpdate:modelValue":Y[9]||(Y[9]=Ee=>c.chatProvider.provider.model=Ee),placeholder:"Choose a model"},{footer:_(()=>[le.value?(A(),G(Re,{key:1},[C(sn,{modelValue:ee.value,"onUpdate:modelValue":Y[6]||(Y[6]=Ee=>ee.value=Ee),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),C(ze,{type:"primary",onClick:Y[7]||(Y[7]=Ee=>ge(ee.value))},{default:_(()=>[H(" confirm ")]),_:1}),C(ze,{onClick:Y[8]||(Y[8]=Ee=>le.value=!1)},{default:_(()=>[H("cancel")]),_:1})],64)):(A(),ye(ze,{key:0,disabled:c.chatProvider.provider.id!="Ollama",text:"",bg:"",onClick:Y[5]||(Y[5]=Ee=>le.value=!0)},{default:_(()=>[H(" Another ollama model ")]),_:1},8,["disabled"]))]),default:_(()=>[(A(!0),G(Re,null,St(I,Ee=>(A(),ye(Eo,{id:Ee.value,key:Ee.value,label:Ee.label,value:Ee.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(Se,{label:"Max response token"},{default:_(()=>[C(Ae,{modelValue:c.chatProvider.maxResponseTokenLength,"onUpdate:modelValue":Y[10]||(Y[10]=Ee=>c.chatProvider.maxResponseTokenLength=Ee),min:10,max:1e5,step:5},null,8,["modelValue"])]),_:1}),Le(C(Se,{label:"Connect timeout"},{default:_(()=>[C(Ae,{modelValue:c.chatProvider.connectTimeoutMillis,"onUpdate:modelValue":Y[11]||(Y[11]=Ee=>c.chatProvider.connectTimeoutMillis=Ee),min:100,max:65500,step:100},null,8,["modelValue"]),H(" millis ")]),_:1},512),[[Ue,c.chatProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:"Read timeout"},{default:_(()=>[C(Ae,{modelValue:c.chatProvider.readTimeoutMillis,"onUpdate:modelValue":Y[12]||(Y[12]=Ee=>c.chatProvider.readTimeoutMillis=Ee),min:200,max:65500,step:100},null,8,["modelValue"]),H(" millis ")]),_:1},512),[[Ue,c.chatProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:"Proxy"},{default:_(()=>[C(ui,{modelValue:Z.value,"onUpdate:modelValue":Y[13]||(Y[13]=Ee=>Z.value=Ee),label:"Enable"},null,8,["modelValue"]),C(sn,{modelValue:he.input,"onUpdate:modelValue":Y[14]||(Y[14]=Ee=>he.input=Ee),placeholder:"http://127.0.0.1:9270",disabled:!Z.value},null,8,["modelValue","disabled"])]),_:1},512),[[Ue,c.chatProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:""},{default:_(()=>[H(" HuggingFace model files were incorrect or missing, please "),C(ze,{type:"primary",text:"",onClick:Y[15]||(Y[15]=Ee=>ce(c.chatProvider.provider.model))},{default:_(()=>[H(" click here to download model files from Huggingface.co ")]),_:1}),H(", or you can download manually and put them in ./data/model/"+oe(m.value),1)]),_:1},512),[[Ue,v.value]]),Le(C(Se,{label:""},{default:_(()=>[H(" Downloading: "+oe(M.value)+", "+oe(O.value)+"% ",1)]),_:1},512),[[Ue,g.value]]),C(Se,{label:"","label-width":pr},{default:_(()=>[C(ze,{type:"primary",onClick:P},{default:_(()=>[H(oe(he.$t("lang.common.save")),1)]),_:1}),C(ze,{onClick:Y[16]||(Y[16]=Ee=>l())},{default:_(()=>[H(oe(he.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),C(Ft,{span:6,offset:1},{default:_(()=>[mJ,C(Ms,{src:S(lJ),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":Ze,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),F("h3",null,[H(" Text generation "),C(dr,{effect:"light",placement:"right"},{content:_(()=>[H(" You don’t need to download the large model file unless you want to use the functionalities described below. "),vJ,H(" Currently, its function is merely to provide automatic response capabilities and suggested reply templates for dialogue nodes. ")]),default:_(()=>[C(ze,{circle:""},{default:_(()=>[H("?")]),_:1})]),_:1})]),C(on,null,{default:_(()=>[C(Ft,{span:11,offset:1},{default:_(()=>[C(it,{model:c.textGenerationProvider,"label-width":pr,style:{"max-width":"600px"}},{default:_(()=>[C(Se,{label:"Provider"},{default:_(()=>[C(hr,{modelValue:c.textGenerationProvider.provider.id,"onUpdate:modelValue":Y[17]||(Y[17]=Ee=>c.textGenerationProvider.provider.id=Ee),size:"large",onChange:V},{default:_(()=>[(A(),G(Re,null,St(be,Ee=>C(fr,{id:Ee.id,key:Ee.id,label:Ee.id,value:Ee.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),C(Se,{label:"Request address"},{default:_(()=>[C(sn,{modelValue:c.textGenerationProvider.apiUrl,"onUpdate:modelValue":Y[18]||(Y[18]=Ee=>c.textGenerationProvider.apiUrl=Ee),disabled:c.textGenerationProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),Le(C(Se,{label:"OpenAI API key"},{default:_(()=>[C(sn,{modelValue:c.textGenerationProvider.apiKey,"onUpdate:modelValue":Y[19]||(Y[19]=Ee=>c.textGenerationProvider.apiKey=Ee)},null,8,["modelValue"])]),_:1},512),[[Ue,c.textGenerationProvider.showApiKeyInput]]),C(Se,{label:"Model"},{default:_(()=>[C(Jr,{ref_key:"textGenerationModelSelector",ref:te,modelValue:c.textGenerationProvider.provider.model,"onUpdate:modelValue":Y[24]||(Y[24]=Ee=>c.textGenerationProvider.provider.model=Ee),placeholder:"Choose a model"},{footer:_(()=>[re.value?(A(),G(Re,{key:1},[C(sn,{modelValue:ae.value,"onUpdate:modelValue":Y[21]||(Y[21]=Ee=>ae.value=Ee),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),C(ze,{type:"primary",onClick:Y[22]||(Y[22]=Ee=>ve(ae.value))},{default:_(()=>[H(" confirm ")]),_:1}),C(ze,{onClick:Y[23]||(Y[23]=Ee=>re.value=!1)},{default:_(()=>[H("cancel")]),_:1})],64)):(A(),ye(ze,{key:0,disabled:c.textGenerationProvider.provider.id!="Ollama",text:"",bg:"",onClick:Y[20]||(Y[20]=Ee=>re.value=!0)},{default:_(()=>[H(" Another ollama model ")]),_:1},8,["disabled"]))]),default:_(()=>[(A(!0),G(Re,null,St(fe,Ee=>(A(),ye(Eo,{id:Ee.value,key:Ee.value,label:Ee.label,value:Ee.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(Se,{label:"Max response token"},{default:_(()=>[C(Ae,{modelValue:c.textGenerationProvider.maxResponseTokenLength,"onUpdate:modelValue":Y[25]||(Y[25]=Ee=>c.textGenerationProvider.maxResponseTokenLength=Ee),min:10,max:1e5,step:5},null,8,["modelValue"])]),_:1}),Le(C(Se,{label:"Connect timeout"},{default:_(()=>[C(Ae,{modelValue:c.textGenerationProvider.connectTimeoutMillis,"onUpdate:modelValue":Y[26]||(Y[26]=Ee=>c.textGenerationProvider.connectTimeoutMillis=Ee),min:100,max:65500,step:100},null,8,["modelValue"]),H(" millis ")]),_:1},512),[[Ue,c.textGenerationProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:"Read timeout"},{default:_(()=>[C(Ae,{modelValue:c.textGenerationProvider.readTimeoutMillis,"onUpdate:modelValue":Y[27]||(Y[27]=Ee=>c.textGenerationProvider.readTimeoutMillis=Ee),min:1e3,max:65500,step:100},null,8,["modelValue"]),H(" millis ")]),_:1},512),[[Ue,c.textGenerationProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:"Proxy"},{default:_(()=>[C(ui,{modelValue:Te.value,"onUpdate:modelValue":Y[28]||(Y[28]=Ee=>Te.value=Ee),label:"Enable"},null,8,["modelValue"]),C(sn,{modelValue:he.input,"onUpdate:modelValue":Y[29]||(Y[29]=Ee=>he.input=Ee),placeholder:"http://127.0.0.1:9270",disabled:!Te.value},null,8,["modelValue","disabled"])]),_:1},512),[[Ue,c.textGenerationProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:""},{default:_(()=>[H(" HuggingFace model files were incorrect or missing, please "),C(ze,{type:"primary",text:"",onClick:Y[30]||(Y[30]=Ee=>ce(c.textGenerationProvider.provider.model))},{default:_(()=>[H(" click here to download model files from Huggingface.co ")]),_:1}),H(", or you can download manually and put them in ./data/model/"+oe(b.value),1)]),_:1},512),[[Ue,v.value]]),Le(C(Se,{label:""},{default:_(()=>[H(" Downloading: "+oe(M.value)+", "+oe(O.value)+"% ",1)]),_:1},512),[[Ue,w.value]]),C(Se,{label:"","label-width":pr},{default:_(()=>[C(ze,{type:"primary",onClick:P},{default:_(()=>[H(oe(he.$t("lang.common.save")),1)]),_:1}),C(ze,{onClick:Y[31]||(Y[31]=Ee=>l())},{default:_(()=>[H(oe(he.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),C(Ft,{span:6,offset:1},{default:_(()=>[bJ,C(Ms,{src:S(cJ),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":Ie,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),F("h3",null,[H(" Sentence embedding provider "),C(dr,{effect:"light",placement:"right"},{content:_(()=>[H(" Downloading model files is not necessary."),yJ,H(" Its function is merely to enhance the accuracy of intent recognition for user inputs, and it will not affect the response functionality of the process."),wJ,H(" User intent can also be recognized through the configuration of keywords and regular expressions without downloading the model. ")]),default:_(()=>[C(ze,{circle:""},{default:_(()=>[H("?")]),_:1})]),_:1})]),C(on,null,{default:_(()=>[C(Ft,{span:11,offset:1},{default:_(()=>[C(it,{model:c.sentenceEmbeddingProvider,"label-width":pr,style:{"max-width":"600px"}},{default:_(()=>[C(Se,{label:"Provider"},{default:_(()=>[C(hr,{modelValue:c.sentenceEmbeddingProvider.provider.id,"onUpdate:modelValue":Y[32]||(Y[32]=Ee=>c.sentenceEmbeddingProvider.provider.id=Ee),size:"large",onChange:Pe},{default:_(()=>[(A(),G(Re,null,St(Oe,Ee=>C(fr,{id:Ee.id,key:Ee.id,label:Ee.id,value:Ee.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),C(Se,{label:"Request address"},{default:_(()=>[C(sn,{modelValue:c.sentenceEmbeddingProvider.apiUrl,"onUpdate:modelValue":Y[33]||(Y[33]=Ee=>c.sentenceEmbeddingProvider.apiUrl=Ee),disabled:c.sentenceEmbeddingProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),Le(C(Se,{label:"OpenAI API key"},{default:_(()=>[C(sn,{modelValue:c.sentenceEmbeddingProvider.apiKey,"onUpdate:modelValue":Y[34]||(Y[34]=Ee=>c.sentenceEmbeddingProvider.apiKey=Ee)},null,8,["modelValue"])]),_:1},512),[[Ue,c.sentenceEmbeddingProvider.showApiKeyInput]]),C(Se,{label:"Model"},{default:_(()=>[C(Jr,{ref_key:"sentenceEmbeddingModelSelector",ref:se,modelValue:c.sentenceEmbeddingProvider.provider.model,"onUpdate:modelValue":Y[39]||(Y[39]=Ee=>c.sentenceEmbeddingProvider.provider.model=Ee),placeholder:"Choose a model"},{footer:_(()=>[ne.value?(A(),G(Re,{key:1},[C(sn,{modelValue:de.value,"onUpdate:modelValue":Y[36]||(Y[36]=Ee=>de.value=Ee),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),C(ze,{type:"primary",onClick:Y[37]||(Y[37]=Ee=>We(de.value))},{default:_(()=>[H(" confirm ")]),_:1}),C(ze,{onClick:Y[38]||(Y[38]=Ee=>ne.value=!1)},{default:_(()=>[H("cancel")]),_:1})],64)):(A(),ye(ze,{key:0,disabled:c.sentenceEmbeddingProvider.provider.id!="Ollama",text:"",bg:"",onClick:Y[35]||(Y[35]=Ee=>ne.value=!0)},{default:_(()=>[H(" Another ollama model ")]),_:1},8,["disabled"]))]),default:_(()=>[(A(!0),G(Re,null,St(B,Ee=>(A(),ye(Eo,{id:Ee.value,key:Ee.value,label:Ee.label,value:Ee.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(Se,{label:"Similarity threshold"},{default:_(()=>[H(" ≥"),C(Ae,{modelValue:a.value,"onUpdate:modelValue":Y[40]||(Y[40]=Ee=>a.value=Ee),min:1,max:99,step:1},null,8,["modelValue"]),H("% "),C(dr,{effect:"light",placement:"right"},{content:_(()=>[H(" An intent is used when the expression matching similarity exceeds the threshold. ")]),default:_(()=>[C(ze,{circle:""},{default:_(()=>[H("?")]),_:1})]),_:1})]),_:1}),Le(C(Se,{label:"Connect timeout"},{default:_(()=>[C(Ae,{modelValue:c.sentenceEmbeddingProvider.connectTimeoutMillis,"onUpdate:modelValue":Y[41]||(Y[41]=Ee=>c.sentenceEmbeddingProvider.connectTimeoutMillis=Ee),min:100,max:65500,step:100},null,8,["modelValue"]),H(" millis ")]),_:1},512),[[Ue,c.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:"Read timeout"},{default:_(()=>[C(Ae,{modelValue:c.sentenceEmbeddingProvider.readTimeoutMillis,"onUpdate:modelValue":Y[42]||(Y[42]=Ee=>c.sentenceEmbeddingProvider.readTimeoutMillis=Ee),min:500,max:65500,step:100},null,8,["modelValue"]),H(" millis ")]),_:1},512),[[Ue,c.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:"Proxy"},{default:_(()=>[C(ui,{modelValue:Ye.value,"onUpdate:modelValue":Y[43]||(Y[43]=Ee=>Ye.value=Ee),label:"Enable"},null,8,["modelValue"]),C(sn,{modelValue:he.input,"onUpdate:modelValue":Y[44]||(Y[44]=Ee=>he.input=Ee),placeholder:"http://127.0.0.1:9270",disabled:!Ye.value},null,8,["modelValue","disabled"])]),_:1},512),[[Ue,c.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),Le(C(Se,{label:""},{default:_(()=>[H(" HuggingFace model files were incorrect or missing, please "),C(ze,{type:"primary",text:"",onClick:Y[45]||(Y[45]=Ee=>ce(c.sentenceEmbeddingProvider.provider.model))},{default:_(()=>[H(" click here to download model files from Huggingface.co ")]),_:1}),H(", or you can download manually and put them in ./data/model/"+oe(E.value),1)]),_:1},512),[[Ue,y.value]]),Le(C(Se,{label:""},{default:_(()=>[H(" Downloading: "+oe(M.value)+", "+oe(O.value)+"% ",1)]),_:1},512),[[Ue,x.value]]),C(Se,{label:"","label-width":pr},{default:_(()=>[C(ze,{type:"primary",onClick:P},{default:_(()=>[H(oe(he.$t("lang.common.save")),1)]),_:1}),C(ze,{onClick:Y[46]||(Y[46]=Ee=>l())},{default:_(()=>[H(oe(he.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),C(Ft,{span:6,offset:1},{default:_(()=>[CJ,C(Ms,{src:S(dJ),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":qe,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),xJ,C(on,null,{default:_(()=>[C(Ft,{span:11,offset:1},{default:_(()=>[C(it,{model:c},{default:_(()=>[C(Se,{label:"Email SMTP","label-width":pr}),C(Se,{label:"Host","label-width":pr},{default:_(()=>[C(sn,{modelValue:c.smtpHost,"onUpdate:modelValue":Y[47]||(Y[47]=Ee=>c.smtpHost=Ee),placeholder:""},null,8,["modelValue"])]),_:1}),C(Se,{label:"Username","label-width":pr},{default:_(()=>[C(sn,{modelValue:c.smtpUsername,"onUpdate:modelValue":Y[48]||(Y[48]=Ee=>c.smtpUsername=Ee),placeholder:""},null,8,["modelValue"])]),_:1}),C(Se,{label:"Password","label-width":pr},{default:_(()=>[C(sn,{modelValue:c.smtpPassword,"onUpdate:modelValue":Y[49]||(Y[49]=Ee=>c.smtpPassword=Ee),placeholder:"",type:"password"},null,8,["modelValue"])]),_:1}),C(Se,{label:"Timeout","label-width":pr},{default:_(()=>[C(Ae,{modelValue:c.smtpTimeoutSec,"onUpdate:modelValue":Y[50]||(Y[50]=Ee=>c.smtpTimeoutSec=Ee),min:1,max:600,onChange:he.handleChange},null,8,["modelValue","onChange"]),H(" Seconds ")]),_:1}),C(Se,{label:"Email verification regex","label-width":"200px"},{default:_(()=>[C(sn,{modelValue:c.emailVerificationRegex,"onUpdate:modelValue":Y[51]||(Y[51]=Ee=>c.emailVerificationRegex=Ee),placeholder:Tx},null,8,["modelValue"])]),_:1}),C(Se,{label:"","label-width":"200px"},{default:_(()=>[H(" You can customize the email verification regular expression, or leave it blank and the system will automatically use the general verification rules. ")]),_:1}),C(Se,{label:"","label-width":pr},{default:_(()=>[C(ze,{loading:u.value,type:"info",onClick:q},{default:_(()=>[H(" Test SMTP settings ")]),_:1},8,["loading"]),d.value?(A(),ye($r,{key:0,title:"SMTP test passed",type:"success"})):we("",!0),f.value?(A(),ye($r,{key:1,title:h.value,type:"error"},null,8,["title"])):we("",!0)]),_:1}),C(Se,{label:"","label-width":pr},{default:_(()=>[C(ze,{type:"primary",onClick:P},{default:_(()=>[H(oe(he.$t("lang.common.save")),1)]),_:1}),C(ze,{onClick:Y[52]||(Y[52]=Ee=>l())},{default:_(()=>[H(oe(he.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},EJ={class:"text-large font-600 mr-3"},_J={class:"flex items-center"},TJ="130px",OJ={__name:"MainFlow",setup(n){const{t:e,tm:t,rt:r}=rn(),o=ni(),s=xo(),i=o.params.robotId,l=vt({_idx:0,id:"",name:"",enabled:!0}),a=D(!1),c=D([]);ot(async()=>{const b=await tt("GET","mainflow",{robotId:i},null,null);u(b)});const u=b=>{b&&b.status==200&&(c.value=b.data==null?[]:b.data)},d=()=>{s.push({name:"robotDetail",params:{robotId:i}})},f=(b,y)=>{s.push({name:"subflow",params:{robotId:i,id:y.id,name:zM(y.name)}})},h=()=>{l.id="",l.name="",l.enabled=!0,m()},p=(b,y)=>{l._idx=b,l.id=y.id,l.name=y.name,l.enabled=y.enabled,m()},g=async(b,y)=>{br.confirm(e("lang.mainflow.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{l.id=y.id;const x=await tt("DELETE","mainflow",{robotId:i},null,l);c.value.splice(b,1),v(),Qt({type:"success",message:x("lang.common.deleted")})}).catch(()=>{})};function m(){a.value=!0}function v(){a.value=!1}const w=async()=>{const b=l.id,y=await tt(b?"PUT":"POST","mainflow",{robotId:i},null,l);b?c.value[l._idx]={_idx:l._idx,id:l.id,name:l.name,enabled:l.enabled}:y.status==200&&c.value.push(y.data),v()};return(b,y)=>{const x=Tn,E=Es,T=sf,M=of,O=wn,k=nr,P=tr,L=vl;return A(),G(Re,null,[C(E,{title:S(e)("lang.common.back"),onBack:d},{content:_(()=>[F("span",EJ,oe(b.$t("lang.mainflow.title")),1)]),extra:_(()=>[F("div",_J,[C(x,{type:"primary",class:"ml-2",onClick:y[0]||(y[0]=j=>h())},{default:_(()=>[H(oe(b.$t("lang.mainflow.add")),1)]),_:1})])]),_:1},8,["title"]),C(M,{data:c.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(T,{prop:"id",label:"Id",width:"270"}),C(T,{prop:"name",label:S(t)("lang.mainflow.table")[0],width:"360"},null,8,["label"]),C(T,{fixed:"right",label:S(t)("lang.mainflow.table")[2],width:"270"},{default:_(j=>[C(x,{link:"",type:"primary",size:"small",onClick:ce=>f(j.$index,j.row)},{default:_(()=>[H(oe(b.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),H(" | "),C(x,{link:"",type:"primary",size:"small",onClick:ce=>p(j.$index,j.row)},{default:_(()=>[H(oe(b.$t("lang.common.edit"))+" name ",1)]),_:2},1032,["onClick"]),H(" | "),C(x,{link:"",type:"primary",size:"small",onClick:ce=>g(j.$index,j.row)},{default:_(()=>[H(oe(b.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(L,{modelValue:a.value,"onUpdate:modelValue":y[4]||(y[4]=j=>a.value=j),title:b.$t("lang.mainflow.form.title"),width:"60%"},{footer:_(()=>[C(x,{type:"primary",loading:b.loading,onClick:y[2]||(y[2]=j=>w())},{default:_(()=>[H(oe(b.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(x,{onClick:y[3]||(y[3]=j=>v())},{default:_(()=>[H(oe(b.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[C(P,{model:b.nodeData},{default:_(()=>[C(k,{label:b.$t("lang.mainflow.form.name"),"label-width":TJ},{default:_(()=>[C(O,{modelValue:l.name,"onUpdate:modelValue":y[1]||(y[1]=j=>l.name=j),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}},MJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},AJ=F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0a48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1),kJ=[AJ];function PJ(n,e){return A(),G("svg",MJ,[...kJ])}const bl={name:"ep-warning",render:PJ},So=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},NJ={class:"nodeBox"},IJ={class:"demo-drawer__footer"},jf="140px",LJ={__name:"CollectNode",setup(n){const{t:e,tm:t,rt:r}=rn(),o=D(!1),s=vt({nodeName:e("lang.collectNode.nodeName"),collectTypeName:"",collectType:"",customizeRegex:"",collectSaveVarName:"",valid:!1,invalidMessages:[],branches:[],newNode:!0}),i=D(),l=Fe("getNode"),{robotId:a}=Fe("robotId");l().on("change:data",({current:w})=>{o.value=!0});const u=[{label:t("lang.collectNode.cTypes")[0],value:"UserInput"},{label:t("lang.collectNode.cTypes")[1],value:"Number"},{label:t("lang.collectNode.cTypes")[2],value:"CustomizeRegex"}],d=[];ot(async()=>{const w=l(),b=w.getData();if($n(b,s),s.newNode){s.nodeName+=b.nodeCnt.toString();const x=i.value.offsetHeight+50,E=i.value.offsetWidth-15;w.addPort({group:"absolute",args:{x:E,y:x},attrs:{text:{text:t("lang.collectNode.branches")[0],fontSize:12}}}),w.addPort({group:"absolute",args:{x:E,y:x+20},attrs:{text:{text:t("lang.collectNode.branches")[1],fontSize:12}}}),s.newNode=!1}const y=await tt("GET","variable",{robotId:a},null,null);y&&y.status==200&&y.data&&(d.splice(0,d.length),y.data.forEach(function(x,E,T){this.push({label:x.varName,value:x.varName})},d)),h()});const f=t("lang.collectNode.errors");function h(){const w=s,b=w.invalidMessages;b.splice(0,b.length),w.nodeName||b.push(f[0]),w.collectType||b.push(f[1]),w.collectSaveVarName||b.push(f[2]),(w.branches==null||w.branches.length==0)&&b.push(f[3]),w.valid=b.length==0}function p(){o.value=!1}function g(){m();const w=l(),b=w.getPorts();s.branches.splice(0,s.branches.length);for(let y=0;y{const y=dt,x=Rr,E=wn,T=nr,M=Ts,O=_s,k=tr,P=Tn,L=Ss;return A(),G("div",NJ,[F("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[H(oe(s.nodeName)+" ",1),Le(F("span",null,[C(x,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(y,{color:"red",size:"16"},{default:_(()=>[C(S(bl))]),_:1})]),_:1},8,["content"])],512),[[Ue,s.invalidMessages.length>0]])],512),F("div",null,oe(S(e)("lang.collectNode.cTypeName"))+": "+oe(s.collectTypeName),1),F("div",null,oe(S(e)("lang.collectNode.varName"))+": "+oe(s.collectSaveVarName),1),C(L,{modelValue:o.value,"onUpdate:modelValue":b[6]||(b[6]=j=>o.value=j),title:s.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(k,{"label-position":w.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:_(()=>[C(T,{label:S(e)("lang.common.nodeName"),"label-width":jf},{default:_(()=>[C(E,{modelValue:s.nodeName,"onUpdate:modelValue":b[0]||(b[0]=j=>s.nodeName=j)},null,8,["modelValue"])]),_:1},8,["label"]),C(T,{label:S(v)[0],"label-width":jf},{default:_(()=>[C(O,{modelValue:s.collectType,"onUpdate:modelValue":b[1]||(b[1]=j=>s.collectType=j),placeholder:S(v)[1]},{default:_(()=>[(A(),G(Re,null,St(u,j=>C(M,{key:j.label,label:j.label,value:j.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Le(C(T,{label:S(v)[2],"label-width":jf},{default:_(()=>[C(E,{modelValue:s.customizeRegex,"onUpdate:modelValue":b[2]||(b[2]=j=>s.customizeRegex=j)},null,8,["modelValue"])]),_:1},8,["label"]),[[Ue,s.collectType=="CustomizeRegex"]]),C(T,{label:S(v)[3],"label-width":jf},{default:_(()=>[C(O,{modelValue:s.collectSaveVarName,"onUpdate:modelValue":b[3]||(b[3]=j=>s.collectSaveVarName=j),placeholder:S(v)[4]},{default:_(()=>[(A(),G(Re,null,St(d,j=>C(M,{key:j.label,label:j.label,value:j.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["label-position","model"]),F("div",IJ,[C(P,{type:"primary",loading:w.loading,onClick:b[4]||(b[4]=j=>g())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(P,{onClick:b[5]||(b[5]=j=>p())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},RJ=So(LJ,[["__scopeId","data-v-e11d3d33"]]),$J={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},DJ=F("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"},null,-1),VJ=[DJ];function BJ(n,e){return A(),G("svg",$J,[...VJ])}const Fu={name:"ep-plus",render:BJ},FJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},zJ=F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"},null,-1),jJ=[zJ];function HJ(n,e){return A(),G("svg",FJ,[...jJ])}const UJ={name:"ep-minus",render:HJ},WJ={class:"nodeBox"},GJ={class:"dialog-footer"},uu="85px",qJ=!1,KJ={__name:"ConditionNode",setup(n){const{t:e,tm:t,rt:r}=rn(),o=new Map,s=Fe("getNode"),{robotId:i}=Fe("robotId"),l=D(!1),a=D(!1),c=Gi().conditionGroup[0][0];c.conditionType="";const u=Gi();u.branchName=e("lang.common.else"),u.branchType="GotoAnotherNode",u.editable=!1;const d=[[]],f=t("lang.conditionNode.types"),h=[{label:f[0],value:"UserIntent"},{label:"Zero-Shot Classification",value:"ZeroShotTextClassification"},{label:f[1],value:"UserInput"},{label:f[2],value:"FlowVariable"}],p={FlowVariable:[]},g=t("lang.conditionNode.compares"),m={UserIntent:[{label:g[0],value:"Eq",inputType:0,showCS:!1}],UserInput:[{label:g[0],value:"Eq",inputType:1,showCS:!0},{label:g[2],value:"Contains",inputType:1,showCS:!0},{label:g[3],value:"Timeout",inputType:0,showCS:!1}],FlowVariable:[{label:"Has value",value:"HasValue",inputType:0,showCS:!1,belongsTo:"StrNum"},{label:"Does not have value",value:"DoesNotHaveValue",inputType:0,showCS:!1,belongsTo:"StrNum"},{label:"Is empty string",value:"EmptyString",inputType:0,showCS:!1,belongsTo:"Str"},{label:g[0],value:"Eq",inputType:1,showCS:!0,belongsTo:"StrNum"},{label:g[1],value:"NotEq",inputType:1,showCS:!0,belongsTo:"StrNum"},{label:"Contains",value:"Contains",inputType:1,showCS:!0,belongsTo:"Str"},{label:"Not contains",value:"NotContains",inputType:1,showCS:!0,belongsTo:"Str"},{label:"Greater than",value:"NGT",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Greater than or equal to",value:"NGTE",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Less than",value:"NLT",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Less than or equal to",value:"NLTE",inputType:1,showCS:!1,belongsTo:"Num"}],ZeroShotTextClassification:[]},v={UserIntent:[]};let w=-1;const b=vt({nodeName:e("lang.conditionNode.nodeName"),branches:[u],valid:!1,invalidMessages:[],newNode:!0}),y=Gi();y.conditionGroup=[];const x=vt(y),E=D();s().on("change:data",({current:ge})=>{l.value=!0}),d[0].push(Si(c)),ot(async()=>{let ge=await tt("GET","intent",{robotId:i},null,null);if(ge&&ge.status==200&&ge.data){const re=v.UserIntent;re.splice(0,re.length),ge.data.forEach(function(ae,te,ve){this.push({label:ae.name,value:ae.name})},re)}if(ge=await tt("GET","variable",{robotId:i},null,null),ge&&ge.status==200&&ge.data){const re=p.FlowVariable;re.splice(0,re.length),ge.data.forEach(function(ae,te,ve){this.push({label:ae.varName,value:ae.varName,vtype:ae.varType})},re)}const Te=s().getData();$n(Te,b),b.newNode?b.nodeName+=Te.nodeCnt.toString():b.branches.forEach(function(re,ae){o.set(re.branchId,ae)}),b.newNode=!1,k()});const T=t("lang.conditionNode.errors"),O=vt({branchName:[{validator:(ge,be,Te)=>{if(be=="")Te(new Error(T[0]));else{for(let re=0;re{b.branches.splice(ge,1),L()}).catch(()=>{})}function $(){l.value=!1}function q(){let ge=E.value.offsetHeight;const be=s(),Te=b.branches.length,re=E.value.offsetWidth-15;let ae,te;const ve=new Map;for(let Oe=0;Oe{be.removePort(Ye,{silent:!1}),o.delete(Ye)});for(const[Oe,Ye]of ve)o.set(Oe,Ye);be.resize(be.size().width,20+ge,{direction:"bottom",silent:!1}),k(),be.removeData({silent:!0}),be.setData(b,{silent:!0}),$()}function U(ge,be,Te){const re=x.conditionGroup[be][Te],ae=p[ge];ae?re.refOptions=ae:re.refOptions=[],re.compareOptions=m[ge],re.compareType="";const te=v[ge];te?re.targetOptions=te:re.targetOptions=[]}function W(ge,be,Te,re){const ae=x.conditionGroup[be][Te];if(ae.compareOptions[0].belongsTo){const te=p.FlowVariable.filter(function(ve,Oe,Ye){return ve.label===re});te.length==1&&(ae.compareType="",ae.compareOptions=m[ge].filter(function(ve,Oe,Ye){return ve.belongsTo.indexOf(te[0].vtype)>-1}))}}function Z(ge,be,Te){x.conditionGroup[ge][be].inputVariable=Te.inputType==1,x.conditionGroup[ge][be].showCaseSensitiveCheckBox=Te.showCS}function le(ge){const be=Si(c);ge.push(be)}function ee(){x.conditionGroup.push(...Si(d))}function Me(ge){x.conditionGroup.splice(ge,1)}return(ge,be)=>{const Te=dt,re=Rr,ae=wn,te=nr,ve=Ts,Oe=_s,Ye=Js,I=Tn,N=zy,X=rf,pe=tr,fe=vl,_e=Ss;return A(),G("div",WJ,[F("div",{ref_key:"nodeName",ref:E,class:"nodeTitle"},[H(oe(b.nodeName)+" ",1),Le(F("span",null,[C(re,{class:"box-item",effect:"dark",content:b.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(Te,{color:"red",size:"16"},{default:_(()=>[C(S(bl))]),_:1})]),_:1},8,["content"])],512),[[Ue,b.invalidMessages.length>0]])],512),C(fe,{modelValue:a.value,"onUpdate:modelValue":be[5]||(be[5]=xe=>a.value=xe),title:S(e)("lang.conditionNode.newBranch"),width:"75%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",GJ,[C(I,{type:"primary",onClick:be[2]||(be[2]=xe=>j())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1}),C(I,{onClick:be[3]||(be[3]=xe=>L())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1}),C(I,{type:"danger",disabled:S(w)==-1,onClick:be[4]||(be[4]=xe=>R(S(w)))},{default:_(()=>[H(oe(S(e)("lang.common.del")),1)]),_:1},8,["disabled"])])]),default:_(()=>[C(pe,{model:x,rules:O},{default:_(()=>[C(te,{label:S(e)("lang.conditionNode.condName"),"label-width":uu,prop:"branchName"},{default:_(()=>[C(ae,{modelValue:x.branchName,"onUpdate:modelValue":be[0]||(be[0]=xe=>x.branchName=xe),autocomplete:"off",minlength:"1",maxlength:"15"},null,8,["modelValue"])]),_:1},8,["label"]),(A(!0),G(Re,null,St(x.conditionGroup,(xe,V)=>(A(),ye(te,{key:V,label:S(e)("lang.conditionNode.condType"),"label-width":uu},{default:_(()=>[(A(!0),G(Re,null,St(xe,(B,J)=>(A(),G("div",{key:J},[C(Oe,{modelValue:B.conditionType,"onUpdate:modelValue":ue=>B.conditionType=ue,placeholder:S(e)("lang.conditionNode.condTypePH"),onChange:ue=>U(ue,V,J),style:{width:"116px"}},{default:_(()=>[(A(),G(Re,null,St(h,ue=>C(ve,{key:ue.label,label:ue.label,value:ue.value},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),Le(C(Oe,{modelValue:B.refChoice,"onUpdate:modelValue":ue=>B.refChoice=ue,placeholder:S(e)("lang.conditionNode.comparedPH"),class:"optionWidth",onChange:ue=>W(B.conditionType,V,J,ue)},{default:_(()=>[(A(!0),G(Re,null,St(B.refOptions,ue=>(A(),ye(ve,{key:ue.label,label:ue.label,value:ue.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),[[Ue,B.refOptions.length>0]]),Le(C(Oe,{modelValue:B.compareType,"onUpdate:modelValue":ue=>B.compareType=ue,placeholder:S(e)("lang.conditionNode.compareTypePH"),class:"optionWidth"},{default:_(()=>[(A(!0),G(Re,null,St(B.compareOptions,ue=>(A(),ye(ve,{key:ue.label,label:ue.label,value:ue.value,onClick:Pe=>Z(V,J,ue)},null,8,["label","value","onClick"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[Ue,B.compareOptions.length>0]]),Le(C(Oe,{modelValue:B.targetValue,"onUpdate:modelValue":ue=>B.targetValue=ue,placeholder:S(e)("lang.conditionNode.targetPH"),class:"optionWidth"},{default:_(()=>[(A(!0),G(Re,null,St(B.targetOptions,ue=>(A(),ye(ve,{key:ue.label,label:ue.label,value:ue.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[Ue,B.targetOptions.length>0]]),Le(C(Oe,{modelValue:B.targetValueVariant,"onUpdate:modelValue":ue=>B.targetValueVariant=ue,class:"optionWidth"},{default:_(()=>[C(ve,{label:"const value",value:"Const"}),C(ve,{label:"variable value",value:"Variable"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[Ue,B.inputVariable]]),Le(C(Oe,{modelValue:B.targetValue,"onUpdate:modelValue":ue=>B.targetValue=ue,placeholder:"Please choose a variable",class:"optionWidth"},{default:_(()=>[(A(!0),G(Re,null,St(p.FlowVariable,ue=>(A(),ye(ve,{key:ue.label,label:ue.label,value:ue.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[Ue,B.inputVariable&&B.targetValueVariant=="Variable"]]),Le(C(ae,{modelValue:B.targetValue,"onUpdate:modelValue":ue=>B.targetValue=ue,class:"optionWidth"},null,8,["modelValue","onUpdate:modelValue"]),[[Ue,B.inputVariable&&B.targetValueVariant=="Const"]]),Le(C(Ye,{modelValue:B.caseSensitiveComparison,"onUpdate:modelValue":ue=>B.caseSensitiveComparison=ue,label:"CaseSensitive"},null,8,["modelValue","onUpdate:modelValue"]),[[Ue,B.showCaseSensitiveCheckBox]]),C(N,null,{default:_(()=>[C(I,{type:"primary",onClick:ue=>le(xe)},{default:_(()=>[C(Te,null,{default:_(()=>[C(S(Fu))]),_:1})]),_:2},1032,["onClick"]),Le(C(I,{type:"danger",onClick:ue=>{xe.splice(J,1)}},{default:_(()=>[C(Te,null,{default:_(()=>[C(S(UJ))]),_:1})]),_:2},1032,["onClick"]),[[Ue,xe.length>1]])]),_:2},1024),C(X,{"border-style":"dashed"})]))),128)),C(X),Le(C(I,{type:"danger",onClick:B=>Me(V)},{default:_(()=>[H(" X ")]),_:2},1032,["onClick"]),[[Ue,x.conditionGroup.length>1]])]),_:2},1032,["label"]))),128)),C(te,{label:"","label-width":uu},{default:_(()=>[C(I,{type:"primary",onClick:be[1]||(be[1]=xe=>ee())},{default:_(()=>[C(Te,null,{default:_(()=>[C(S(Fu))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"]),C(_e,{modelValue:l.value,"onUpdate:modelValue":be[10]||(be[10]=xe=>l.value=xe),title:b.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(pe,{model:b},{default:_(()=>[C(te,{label:S(e)("lang.common.nodeName"),"label-width":uu},{default:_(()=>[C(ae,{modelValue:b.nodeName,"onUpdate:modelValue":be[6]||(be[6]=xe=>b.nodeName=xe),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),C(te,{label:S(e)("lang.conditionNode.newCond"),"label-width":uu},{default:_(()=>[C(I,{type:"primary",onClick:be[7]||(be[7]=xe=>P())},{default:_(()=>[C(Te,null,{default:_(()=>[C(S(Fu))]),_:1})]),_:1}),(A(!0),G(Re,null,St(b.branches,(xe,V)=>(A(),ye(I,{key:V,type:"primary",onClick:B=>ce(V),disabled:!xe.editable},{default:_(()=>[H(oe(xe.branchName),1)]),_:2},1032,["onClick","disabled"]))),128))]),_:1},8,["label"])]),_:1},8,["model"]),F("div",null,[C(I,{type:"primary",loading:qJ,onClick:be[8]||(be[8]=xe=>q())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1}),C(I,{onClick:be[9]||(be[9]=xe=>$())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},YJ=So(KJ,[["__scopeId","data-v-872789fa"]]),JJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},XJ=F("path",{fill:"currentColor",d:"M8 11h4.5a2.5 2.5 0 0 0 0-5H8zm10 4.5a4.5 4.5 0 0 1-4.5 4.5H6V4h6.5a4.5 4.5 0 0 1 3.256 7.606A4.498 4.498 0 0 1 18 15.5M8 13v5h5.5a2.5 2.5 0 0 0 0-5z"},null,-1),ZJ=[XJ];function QJ(n,e){return A(),G("svg",JJ,[...ZJ])}const eX={name:"ri-bold",render:QJ},tX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},nX=F("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1),rX=[nX];function oX(n,e){return A(),G("svg",tX,[...rX])}const sX={name:"ri-italic",render:oX},iX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},lX=F("path",{fill:"currentColor",d:"M17.154 14c.23.516.346 1.09.346 1.72c0 1.342-.524 2.392-1.571 3.147C14.88 19.622 13.434 20 11.586 20c-1.64 0-3.263-.381-4.87-1.145v-2.254c1.52.877 3.075 1.316 4.666 1.316c2.551 0 3.83-.732 3.839-2.197a2.21 2.21 0 0 0-.648-1.603l-.12-.117H3v-2h18v2zm-4.078-3H7.629a4.086 4.086 0 0 1-.481-.522C6.716 9.92 6.5 9.246 6.5 8.452c0-1.236.466-2.287 1.397-3.153C8.83 4.433 10.271 4 12.222 4c1.471 0 2.879.328 4.222.984v2.152c-1.2-.687-2.515-1.03-3.946-1.03c-2.48 0-3.719.782-3.719 2.346c0 .42.218.786.654 1.099c.436.313.974.563 1.613.75c.62.18 1.297.414 2.03.699"},null,-1),aX=[lX];function cX(n,e){return A(),G("svg",iX,[...aX])}const uX={name:"ri-strikethrough",render:cX},dX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fX=F("path",{fill:"currentColor",d:"M8 3v9a4 4 0 0 0 8 0V3h2v9a6 6 0 0 1-12 0V3zM4 20h16v2H4z"},null,-1),hX=[fX];function pX(n,e){return A(),G("svg",dX,[...hX])}const gX={name:"ri-underline",render:pX},mX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vX=F("path",{fill:"currentColor",d:"M15.246 14H8.754l-1.6 4H5l6-15h2l6 15h-2.154zm-.8-2L12 5.885L9.554 12zM3 20h18v2H3z"},null,-1),bX=[vX];function yX(n,e){return A(),G("svg",mX,[...bX])}const wX={name:"ri-font-color",render:yX},CX={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},xX=F("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11.096.644a2 2 0 0 1 2.791.036l1.433 1.433a2 2 0 0 1 .035 2.791l-.413.435l-8.07 8.995a.5.5 0 0 1-.372.166h-3a.5.5 0 0 1-.234-.058l-.412.412A.5.5 0 0 1 2.5 15h-2a.5.5 0 0 1-.354-.854l1.412-1.412A.5.5 0 0 1 1.5 12.5v-3a.5.5 0 0 1 .166-.372l8.995-8.07zm-.115 1.47L2.727 9.52l3.753 3.753l7.406-8.254zm3.585 2.17l.064-.068a1 1 0 0 0-.017-1.396L13.18 1.387a1 1 0 0 0-1.396-.018l-.068.065zM5.293 13.5L2.5 10.707v1.586L3.707 13.5z"},null,-1),SX=[xX];function EX(n,e){return A(),G("svg",CX,[...SX])}const _X={name:"bi-highlighter",render:EX},TX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},OX=F("path",{fill:"currentColor",d:"M17 11V4h2v17h-2v-8H7v8H5V4h2v7z"},null,-1),MX=[OX];function AX(n,e){return A(),G("svg",TX,[...MX])}const kX={name:"ri-heading",render:AX},PX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},NX=F("path",{fill:"currentColor",d:"M8 4h13v2H8zM4.5 6.5a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 7a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 6.9a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3M8 11h13v2H8zm0 7h13v2H8z"},null,-1),IX=[NX];function LX(n,e){return A(),G("svg",PX,[...IX])}const RX={name:"ri-list-unordered",render:LX},$X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},DX=F("path",{fill:"currentColor",d:"M8 4h13v2H8zM5 3v3h1v1H3V6h1V4H3V3zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2zM8 11h13v2H8zm0 7h13v2H8z"},null,-1),VX=[DX];function BX(n,e){return A(),G("svg",$X,[...VX])}const FX={name:"ri-list-ordered",render:BX},zX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jX=F("path",{fill:"currentColor",d:"M21 3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455L2 22.5V4a1 1 0 0 1 1-1zm-1 2H4v13.385L5.763 17H20zm-9.485 2.412l.447.688c-1.668.903-1.639 2.352-1.639 2.665c.155-.022.318-.025.48-.01a1.76 1.76 0 0 1 1.613 1.745a1.75 1.75 0 0 1-1.75 1.75c-.537 0-1.05-.245-1.374-.59c-.515-.546-.792-1.16-.792-2.155c0-1.75 1.228-3.318 3.015-4.093m5 0l.447.688c-1.668.903-1.639 2.352-1.639 2.665c.155-.022.318-.025.48-.01a1.76 1.76 0 0 1 1.613 1.745a1.75 1.75 0 0 1-1.75 1.75c-.537 0-1.05-.245-1.374-.59c-.515-.546-.792-1.16-.792-2.155c0-1.75 1.228-3.318 3.015-4.093"},null,-1),HX=[jX];function UX(n,e){return A(),G("svg",zX,[...HX])}const WX={name:"ri-chat-quote-line",render:UX},GX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qX=F("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4 11h16v2H4z"},null,-1),KX=[qX];function YX(n,e){return A(),G("svg",GX,[...KX])}const JX={name:"ic-baseline-horizontal-rule",render:YX},XX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ZX=F("path",{fill:"currentColor",d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"},null,-1),QX=[ZX];function eZ(n,e){return A(),G("svg",XX,[...QX])}const tZ={name:"ic-baseline-undo",render:eZ},nZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},rZ=F("path",{fill:"currentColor",d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7z"},null,-1),oZ=[rZ];function sZ(n,e){return A(),G("svg",nZ,[...oZ])}const iZ={name:"ic-baseline-redo",render:sZ};function Wn(n){this.content=n}Wn.prototype={constructor:Wn,find:function(n){for(var e=0;e>1}};Wn.from=function(n){if(n instanceof Wn)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Wn(e)};function jM(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(r),s=e.child(r);if(o==s){t+=o.nodeSize;continue}if(!o.sameMarkup(s))return t;if(o.isText&&o.text!=s.text){for(let i=0;o.text[i]==s.text[i];i++)t++;return t}if(o.content.size||s.content.size){let i=jM(o.content,s.content,t+1);if(i!=null)return i}t+=o.nodeSize}}function HM(n,e,t,r){for(let o=n.childCount,s=e.childCount;;){if(o==0||s==0)return o==s?null:{a:t,b:r};let i=n.child(--o),l=e.child(--s),a=i.nodeSize;if(i==l){t-=a,r-=a;continue}if(!i.sameMarkup(l))return{a:t,b:r};if(i.isText&&i.text!=l.text){let c=0,u=Math.min(i.text.length,l.text.length);for(;ce&&r(a,o+l,s||null,i)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,o+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let s="",i=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(i?i=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),s=1);se)for(let s=0,i=0;ie&&((it)&&(l.isText?l=l.cut(Math.max(0,e-i),Math.min(l.text.length,t-i)):l=l.cut(Math.max(0,e-i-1),Math.min(l.content.size,t-i-1))),r.push(l),o+=l.nodeSize),i=a}return new Ne(r,o)}cutByIndex(e,t){return e==t?Ne.empty:e==0&&t==this.content.length?this:new Ne(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new Ne(o,s)}addToStart(e){return new Ne([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ne(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let s=this.child(r),i=o+s.nodeSize;if(i>=e)return i==e||t>0?Hf(r+1,i):Hf(r,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return Ne.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ne(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ne.empty;let t,r=0;for(let o=0;othis.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;tr.type.rank-o.type.rank),t}};zt.none=[];class qh extends Error{}class Ge{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=WM(this.content,e+this.openStart,t);return r&&new Ge(r,this.openStart,this.openEnd)}removeBetween(e,t){return new Ge(UM(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return Ge.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ge(Ne.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)o++;return new Ge(e,r,o)}}Ge.empty=new Ge(Ne.empty,0,0);function UM(n,e,t){let{index:r,offset:o}=n.findIndex(e),s=n.maybeChild(r),{index:i,offset:l}=n.findIndex(t);if(o==e||s.isText){if(l!=t&&!n.child(i).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=i)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(UM(s.content,e-o-1,t-o-1)))}function WM(n,e,t,r){let{index:o,offset:s}=n.findIndex(e),i=n.maybeChild(o);if(s==e||i.isText)return n.cut(0,e).append(t).append(n.cut(e));let l=WM(i.content,e-s-1,t);return l&&n.replaceChild(o,i.copy(l))}function lZ(n,e,t){if(t.openStart>n.depth)throw new qh("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new qh("Inconsistent open depths");return GM(n,e,t,0)}function GM(n,e,t,r){let o=n.index(r),s=n.node(r);if(o==e.index(r)&&r=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function zu(n,e,t,r){let o=(e||n).node(t),s=0,i=e?e.index(t):o.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(Zl(n.nodeAfter,r),s++));for(let l=s;lo&&Wv(n,e,o+1),i=r.depth>o&&Wv(t,r,o+1),l=[];return zu(null,n,o,l),s&&i&&e.index(o)==t.index(o)?(qM(s,i),Zl(Ql(s,KM(n,e,t,r,o+1)),l)):(s&&Zl(Ql(s,Kh(n,e,o+1)),l),zu(e,t,o,l),i&&Zl(Ql(i,Kh(t,r,o+1)),l)),zu(r,null,o,l),new Ne(l)}function Kh(n,e,t){let r=[];if(zu(null,n,t,r),n.depth>t){let o=Wv(n,e,t+1);Zl(Ql(o,Kh(n,e,t+1)),r)}return zu(e,null,t,r),new Ne(r)}function aZ(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)o=e.node(s).copy(Ne.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class bd{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],o=t==0?0:this.path[t*3-1]+1;for(let s=0;s0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Yh(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],o=0,s=t;for(let i=e;;){let{index:l,offset:a}=i.content.findIndex(s),c=s-a;if(r.push(i,l,o+a),!c||(i=i.child(l),i.isText))break;s=c-1,o+=a+1}return new bd(t,r,s)}static resolveCached(e,t){let r=Ox.get(e);if(r)for(let s=0;se&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),YM(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=Ne.empty,o=0,s=r.childCount){let i=this.contentMatchAt(e).matchFragment(r,o,s),l=i&&i.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;at.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=Ne.fromJSON(e,t.content),s=e.nodeType(t.type).create(t.attrs,o,r);return s.type.checkAttrs(s.attrs),s}};ea.prototype.text=void 0;class Jh extends ea{constructor(e,t,r,o){if(super(e,t,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):YM(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Jh(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Jh(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function YM(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ua{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new fZ(e,t);if(r.next==null)return ua.empty;let o=JM(r);r.next&&r.err("Unexpected trailing text");let s=yZ(bZ(o));return wZ(s,r),s}matchType(e){for(let t=0;tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let o=0;o{let s=o+(r.validEnd?"*":" ")+" ";for(let i=0;i"+e.indexOf(r.next[i].next);return s}).join(` -`)}}ua.empty=new ua(!0);class fZ{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function JM(n){let e=[];do e.push(hZ(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function hZ(n){let e=[];do e.push(pZ(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function pZ(n){let e=vZ(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=gZ(n,e);else break;return e}function Mx(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function gZ(n,e){let t=Mx(n),r=t;return n.eat(",")&&(n.next!="}"?r=Mx(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function mZ(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let s in t){let i=t[s];i.groups.indexOf(e)>-1&&o.push(i)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function vZ(n){if(n.eat("(")){let e=JM(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=mZ(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function bZ(n){let e=[[]];return o(s(n,0),t()),e;function t(){return e.push([])-1}function r(i,l,a){let c={term:a,to:l};return e[i].push(c),c}function o(i,l){i.forEach(a=>a.to=l)}function s(i,l){if(i.type=="choice")return i.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(i.type=="seq")for(let a=0;;a++){let c=s(i.exprs[a],l);if(a==i.exprs.length-1)return c;o(c,l=t())}else if(i.type=="star"){let a=t();return r(l,a),o(s(i.expr,a),a),[r(a)]}else if(i.type=="plus"){let a=t();return o(s(i.expr,l),a),o(s(i.expr,a),a),[r(a)]}else{if(i.type=="opt")return[r(l)].concat(s(i.expr,l));if(i.type=="range"){let a=l;for(let c=0;c{n[i].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u{c||o.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new ua(r.indexOf(n.length-1)>-1);for(let i=0;i-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;tr[s]=new nA(s,t,i));let o=t.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function CZ(n,e,t){let r=t.split("|");return o=>{let s=o===null?"null":typeof o;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${s}`)}}class xZ{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?CZ(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class pg{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=tA(e,o.attrs),this.excluded=null;let s=ZM(this.attrs);this.instance=s?new zt(this,s):null}create(e=null){return!e&&this.instance?this.instance:new zt(this,QM(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((s,i)=>r[s]=new pg(s,o++,t,i)),r}removeFromSet(e){for(var t=0;t-1}}class rA{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=Wn.from(e.nodes),t.marks=Wn.from(e.marks||{}),this.nodes=kx.compile(this.spec.nodes,this),this.marks=pg.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],i=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[i]||(r[i]=ua.parse(i,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?Px(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],i=s.spec.excludes;s.excluded=i==null?[s]:i==""?[]:Px(this,i.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof kx){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,o)}text(e,t){let r=this.nodes.text;return new Jh(r,r.defaultAttrs,e,zt.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return ea.fromJSON(this,e)}markFromJSON(e){return zt.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Px(n,e){let t=[];for(let r=0;r-1)&&t.push(i=a)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function SZ(n){return n.tag!=null}function EZ(n){return n.style!=null}let Yy=class qv{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(o=>{if(SZ(o))this.tags.push(o);else if(EZ(o)){let s=/[^=]*/.exec(o.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=e.nodes[o.node];return s.contentMatch.matchType(s)})}parse(e,t={}){let r=new Ix(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Ix(this,t,!0);return r.addAll(e,t.from,t.to),Ge.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;oe.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(i.getAttrs){let a=i.getAttrs(t);if(a===!1)continue;i.attrs=a||void 0}return i}}}static schemaRules(e){let t=[];function r(o){let s=o.priority==null?50:o.priority,i=0;for(;i{r(i=Lx(i)),i.mark||i.ignore||i.clearMark||(i.mark=o)})}for(let o in e.nodes){let s=e.nodes[o].spec.parseDOM;s&&s.forEach(i=>{r(i=Lx(i)),i.node||i.ignore||i.mark||(i.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new qv(e,qv.schemaRules(e)))}};const oA={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},_Z={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},sA={ol:!0,ul:!0},Xh=1,Zh=2,ju=4;function Nx(n,e,t){return e!=null?(e?Xh:0)|(e==="full"?Zh:0):n&&n.whitespace=="pre"?Xh|Zh:t&~ju}class Uf{constructor(e,t,r,o,s,i,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=o,this.solid=s,this.options=l,this.content=[],this.activeMarks=zt.none,this.stashMarks=[],this.match=i||(l&ju?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Ne.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Xh)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let t=Ne.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Ne.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;tthis.addAll(e)),i&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,s,s.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` -`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=zt.none,r=zt.none;if(e.length)for(let o=0;o{a.clearMark(c)&&(r=c.addToSet(r))}):t=this.parser.schema.marks[a.mark].create(a.attrs).addToSet(t),a.consuming===!1)l=a;else break}}return[t,r]}addElementByRule(e,t,r){let o,s,i;t.node?(s=this.parser.schema.nodes[t.node],s.isLeaf?this.insertNode(s.create(t.attrs))||this.leafFallback(e):o=this.enter(s,t.attrs||null,t.preserveWhitespace)):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a)}o&&this.sync(l)&&this.open--,i&&this.removePendingMark(i,l)}addAll(e,t,r){let o=t||0;for(let s=t?e.childNodes[t]:e.firstChild,i=r==null?null:e.childNodes[r];s!=i;s=s.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(s);this.findAtPoint(e,o)}findPlace(e){let t,r;for(let o=this.open;o>=0;o--){let s=this.nodes[o],i=s.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,r=s,!i.length)||s.solid)break}if(!t)return!1;this.sync(r);for(let o=0;othis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(o?0:1),i=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=s;a--)if(i(l-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let t=AZ(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let i=o.popFromStashMark(e);i&&o.type&&o.type.allowsMarkType(i.type)&&(o.activeMarks=i.addToSet(o.activeMarks))}if(o==t)break}}}function TZ(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&sA.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function OZ(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Lx(n){let e={};for(let t in n)e[t]=n[t];return e}function MZ(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let s=[],i=l=>{s.push(l);for(let a=0;a{if(s.length||i.marks.length){let l=0,a=0;for(;l=0;o--){let s=this.serializeMark(e.marks[o],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&yh(hm(r),o(e,t),null,e.attrs)}static renderSpec(e,t,r=null,o){return yh(e,t,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ea(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Rx(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Rx(e.marks)}}function Rx(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function hm(n){return n.document||window.document}const $x=new WeakMap;function kZ(n){let e=$x.get(n);return e===void 0&&$x.set(n,e=PZ(n)),e}function PZ(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=o.indexOf(" ");i>0&&(t=o.slice(0,i),o=o.slice(i+1));let l,a=t?n.createElementNS(t,o):n.createElement(o),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):a.setAttribute(d,c[d])}}for(let d=u;du)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:h,contentDOM:p}=yh(n,f,t,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const iA=65535,lA=Math.pow(2,16);function NZ(n,e){return n+e*lA}function Dx(n){return n&iA}function IZ(n){return(n-(n&iA))/lA}const aA=1,cA=2,wh=4,uA=8;class Kv{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&uA)>0}get deletedBefore(){return(this.delInfo&(aA|wh))>0}get deletedAfter(){return(this.delInfo&(cA|wh))>0}get deletedAcross(){return(this.delInfo&wh)>0}}class Fr{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Fr.empty)return Fr.empty}recover(e){let t=0,r=Dx(e);if(!this.inverted)for(let o=0;oe)break;let c=this.ranges[l+s],u=this.ranges[l+i],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:t:t,h=a+o+(f<0?0:u);if(r)return h;let p=e==(t<0?a:d)?null:NZ(l/3,e-a),g=e==a?cA:e==d?aA:wh;return(t<0?e!=a:e!=d)&&(g|=uA),new Kv(h,g,p)}o+=u-c}return r?e+o:new Kv(e+o,0,null)}touches(e,t){let r=0,o=Dx(t),s=this.inverted?2:1,i=this.inverted?1:2;for(let l=0;le)break;let c=this.ranges[l+s],u=a+c;if(e<=u&&l==o*3)return!0;r+=this.ranges[l+i]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,s=0;o=0;t--){let o=e.getMirror(t);this.appendMap(e.maps[t].invert(),o!=null&&o>t?r-o-1:void 0)}}invert(){let e=new Ka;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;rs&&a!i.isAtom||!l.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),o),t.openStart,t.openEnd);return Sn.fromReplace(e,this.from,this.to,s)}invert(){return new is(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Bi(t.pos,r.pos,this.mark)}merge(e){return e instanceof Bi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Bi(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Bi(t.from,t.to,e.markFromJSON(t.mark))}}ur.jsonID("addMark",Bi);class is extends ur{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new Ge(Jy(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return Sn.fromReplace(e,this.from,this.to,r)}invert(){return new Bi(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new is(t.pos,r.pos,this.mark)}merge(e){return e instanceof is&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new is(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new is(t.from,t.to,e.markFromJSON(t.mark))}}ur.jsonID("removeMark",is);class Fi extends ur{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Sn.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Sn.fromReplace(e,this.pos,this.pos+1,new Ge(Ne.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let o=0;or.pos?null:new Bn(t.pos,r.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Bn(t.from,t.to,t.gapFrom,t.gapTo,Ge.fromJSON(e,t.slice),t.insert,!!t.structure)}}ur.jsonID("replaceAround",Bn);function Yv(n,e,t){let r=n.resolve(e),o=t-e,s=r.depth;for(;o>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,o--;if(o>0){let i=r.node(s).maybeChild(r.indexAfter(s));for(;o>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,o--}}return!1}function LZ(n,e,t,r){let o=[],s=[],i,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let g=0;gn.step(a)),s.forEach(a=>n.step(a))}function RZ(n,e,t,r){let o=[],s=0;n.doc.nodesBetween(e,t,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(r instanceof pg){let c=i.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(i.marks)&&(a=[r]):a=i.marks;if(a&&a.length){let c=Math.min(l+i.nodeSize,t);for(let u=0;un.step(new is(i.from,i.to,i.style)))}function dA(n,e,t,r=t.contentMatch,o=!0){let s=n.doc.nodeAt(e),i=[],l=e+1;for(let a=0;a=0;a--)n.step(i[a])}function $Z(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Qc(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let o=n.$from.node(r),s=n.$from.index(r),i=n.$to.indexAfter(r);if(rt;p--)g||r.index(p)>0?(g=!0,u=Ne.from(r.node(p).copy(u)),d++):a--;let f=Ne.empty,h=0;for(let p=s,g=!1;p>t;p--)g||o.after(p+1)=0;i--){if(r.size){let l=t[i].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ne.from(t[i].type.create(t[i].attrs,r))}let o=e.start,s=e.end;n.step(new Bn(o,s,o,s,new Ge(r,0,0),t.length,!0))}function zZ(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(i,l)=>{if(i.isTextblock&&!i.hasMarkup(r,o)&&UZ(n.doc,n.mapping.slice(s).map(l),r)){let a=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!h?a=!1:!f&&h&&(a=!0)}a===!1&&HZ(n,i,l,s),dA(n,n.mapping.slice(s).map(l,1),r,void 0,a===null);let c=n.mapping.slice(s),u=c.map(l,1),d=c.map(l+i.nodeSize,1);return n.step(new Bn(u,d,u+1,d-1,new Ge(Ne.from(r.create(o,null,i.marks)),0,0),1,!0)),a===!0&&jZ(n,i,l,s),!1}})}function jZ(n,e,t,r){e.forEach((o,s)=>{if(o.isText){let i,l=/\r?\n|\r/g;for(;i=l.exec(o.text);){let a=n.mapping.slice(r).map(t+1+s+i.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function HZ(n,e,t,r){e.forEach((o,s)=>{if(o.type==o.type.schema.linebreakReplacement){let i=n.mapping.slice(r).map(t+1+s);n.replaceWith(i,i+1,e.type.schema.text(` -`))}})}function UZ(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function WZ(n,e,t,r,o){let s=n.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");t||(t=s.type);let i=t.create(r,null,o||s.marks);if(s.isLeaf)return n.replaceWith(e,e+s.nodeSize,i);if(!t.validContent(s.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Bn(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new Ge(Ne.from(i),0,0),1,!0))}function Ya(n,e,t=1,r){let o=n.resolve(e),s=o.depth-t,i=r&&r[r.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!i.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,u=t-2;c>s;c--,u--){let d=o.node(c),f=o.index(c);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),p=r&&r[u+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let g=r&&r[u]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(h))return!1}let l=o.indexAfter(s),a=r&&r[0];return o.node(s).canReplaceWith(l,l,a?a.type:o.node(s+1).type)}function GZ(n,e,t=1,r){let o=n.doc.resolve(e),s=Ne.empty,i=Ne.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){s=Ne.from(o.node(l).copy(s));let u=r&&r[c];i=Ne.from(u?u.type.create(u.attrs,i):o.node(l).copy(i))}n.step(new In(e,e,new Ge(s.append(i),t,t),!0))}function yl(n,e){let t=n.resolve(e),r=t.index();return fA(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function fA(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function gg(n,e,t=-1){let r=n.resolve(e);for(let o=r.depth;;o--){let s,i,l=r.index(o);if(o==r.depth?(s=r.nodeBefore,i=r.nodeAfter):t>0?(s=r.node(o+1),l++,i=r.node(o).maybeChild(l)):(s=r.node(o).maybeChild(l-1),i=r.node(o+1)),s&&!s.isTextblock&&fA(s,i)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=t<0?r.before(o):r.after(o)}}function qZ(n,e,t){let r=new In(e-t,e+t,Ge.empty,!0);n.step(r)}function KZ(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let s=r.index(o);if(r.node(o).canReplaceWith(s,s,t))return r.before(o+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let s=r.indexAfter(o);if(r.node(o).canReplaceWith(s,s,t))return r.after(o+1);if(s=0;i--){let l=i==r.depth?0:r.pos<=(r.start(i+1)+r.end(i+1))/2?-1:1,a=r.index(i)+(l>0?1:0),c=r.node(i),u=!1;if(s==1)u=c.canReplace(a,a,o);else{let d=c.contentMatchAt(a).findWrapping(o.firstChild.type);u=d&&c.canReplaceWith(a,a,d[0])}if(u)return l==0?r.pos:l<0?r.before(i+1):r.after(i+1)}return null}function mg(n,e,t=e,r=Ge.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),s=n.resolve(t);return pA(o,s,r)?new In(e,t,r):new YZ(o,s,r).fit()}function pA(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class YZ{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=Ne.empty;for(let o=0;o<=e.depth;o++){let s=e.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=Ne.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let s=this.placed,i=r.depth,l=o.depth;for(;i&&l&&s.childCount==1;)s=s.firstChild.content,i--,l--;let a=new Ge(s,i,l);return e>-1?new Bn(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new In(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,o=this.unplaced.openEnd;r1&&(o=0),s.type.spec.isolating&&o<=r){e=r;break}t=s.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let o,s=null;r?(s=gm(this.unplaced.content,r-1).firstChild,o=s.content):o=this.unplaced.content;let i=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],u,d=null;if(t==1&&(i?c.matchType(i.type)||(d=c.fillBefore(Ne.from(i),!1)):s&&a.compatibleContent(s.type)))return{sliceDepth:r,frontierDepth:l,parent:s,inject:d};if(t==2&&i&&(u=c.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:l,parent:s,wrap:u};if(s&&c.matchType(s.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=gm(e,t);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new Ge(e,t+1,Math.max(r,o.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=gm(e,t);if(o.childCount<=1&&t>0){let s=e.size-t<=t+o.size;this.unplaced=new Ge(gu(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new Ge(gu(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:o,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let g=0;g1||a==0||g.content.size)&&(d=m,u.push(gA(g.mark(f.allowedMarks(g.marks)),c==1?a:0,c==l.childCount?h:-1)))}let p=c==l.childCount;p||(h=-1),this.placed=mu(this.placed,t,Ne.from(u)),this.frontier[t].match=d,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=l;g1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:o}=this.frontier[t],s=t=0;l--){let{match:a,type:c}=this.frontier[l],u=mm(e,l,c,a,!0);if(!u||u.childCount)continue e}return{depth:t,fit:i,move:s?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=mu(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let o=e.node(r),s=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,s)}return e}openFrontierNode(e,t=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=mu(this.placed,this.depth,Ne.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(Ne.empty,!0);t.childCount&&(this.placed=mu(this.placed,this.frontier.length,t))}}function gu(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(gu(n.firstChild.content,e-1,t)))}function mu(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(mu(n.lastChild.content,e-1,t)))}function gm(n,e){for(let t=0;t1&&(r=r.replaceChild(0,gA(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(Ne.empty,!0)))),n.copy(r)}function mm(n,e,t,r,o){let s=n.node(e),i=o?n.indexAfter(e):n.index(e);if(i==s.childCount&&!t.compatibleContent(s.type))return null;let l=r.fillBefore(s.content,!0,i);return l&&!JZ(t,s.content,i)?l:null}function JZ(n,e,t){for(let r=t;r0;f--,h--){let p=o.node(f).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;i.indexOf(f)>-1?l=f:o.before(f)==h&&i.splice(1,0,-f)}let a=i.indexOf(l),c=[],u=r.openStart;for(let f=r.content,h=0;;h++){let p=f.firstChild;if(c.push(p),h==r.openStart)break;f=p.content}for(let f=u-1;f>=0;f--){let h=c[f],p=XZ(h.type);if(p&&!h.sameMarkup(o.node(Math.abs(l)-1)))u=f;else if(p||!h.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+u+1)%(r.openStart+1),p=c[h];if(p)for(let g=0;g=0&&(n.replace(e,t,r),!(n.steps.length>d));f--){let h=i[f];h<0||(e=o.before(h),t=s.after(h))}}function mA(n,e,t,r,o){if(er){let s=o.contentMatchAt(0),i=s.fillBefore(n).append(n);n=i.append(s.matchFragment(i).fillBefore(Ne.empty,!0))}return n}function QZ(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=KZ(n.doc,e,r.type);o!=null&&(e=t=o)}n.replaceRange(e,t,new Ge(Ne.from(r),0,0))}function eQ(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),s=vA(r,o);for(let i=0;i0&&(a||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return n.delete(r.before(l),o.after(l))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(e-r.start(i)==r.depth-i&&t>r.end(i)&&o.end(i)-t!=o.depth-i)return n.delete(r.before(i),t);n.delete(e,t)}function vA(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let o=r;o>=0;o--){let s=n.start(o);if(se.pos+(e.depth-o)||n.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(s==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==s-1)&&t.push(o)}return t}class Ja extends ur{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return Sn.fail("No node at attribute step's position");let r=Object.create(null);for(let s in t.attrs)r[s]=t.attrs[s];r[this.attr]=this.value;let o=t.type.create(r,null,t.marks);return Sn.fromReplace(e,this.pos,this.pos+1,new Ge(Ne.from(o),0,t.isLeaf?0:1))}getMap(){return Fr.empty}invert(e){return new Ja(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ja(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Ja(t.pos,t.attr,t.value)}}ur.jsonID("attr",Ja);class yd extends ur{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let o in e.attrs)t[o]=e.attrs[o];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return Sn.ok(r)}getMap(){return Fr.empty}invert(e){return new yd(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new yd(t.attr,t.value)}}ur.jsonID("docAttr",yd);let Sc=class extends Error{};Sc=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t};Sc.prototype=Object.create(Error.prototype);Sc.prototype.constructor=Sc;Sc.prototype.name="TransformError";class tQ{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ka}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Sc(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=Ge.empty){let o=mg(this.doc,e,t,r);return o&&this.step(o),this}replaceWith(e,t,r){return this.replace(e,t,new Ge(Ne.from(r),0,0))}delete(e,t){return this.replace(e,t,Ge.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ZZ(this,e,t,r),this}replaceRangeWith(e,t,r){return QZ(this,e,t,r),this}deleteRange(e,t){return eQ(this,e,t),this}lift(e,t){return DZ(this,e,t),this}join(e,t=1){return qZ(this,e,t),this}wrap(e,t){return FZ(this,e,t),this}setBlockType(e,t=e,r,o=null){return zZ(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return WZ(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new Ja(e,t,r)),this}setDocAttribute(e,t){return this.step(new yd(e,t)),this}addNodeMark(e,t){return this.step(new Fi(e,t)),this}removeNodeMark(e,t){if(!(t instanceof zt)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t=t.isInSet(r.marks),!t)return this}return this.step(new xc(e,t)),this}split(e,t=1,r){return GZ(this,e,t,r),this}addMark(e,t,r){return LZ(this,e,t,r),this}removeMark(e,t,r){return RZ(this,e,t,r),this}clearIncompatible(e,t,r){return dA(this,e,t,r),this}}const vm=Object.create(null);class _t{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new nQ(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t=0;s--){let i=t<0?$a(e.node(0),e.node(s),e.before(s+1),e.index(s),t,r):$a(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Vo(e.node(0))}static atStart(e){return $a(e,e,0,0,1)||new Vo(e)}static atEnd(e){return $a(e,e,e.content.size,e.childCount,-1)||new Vo(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=vm[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in vm)throw new RangeError("Duplicate use of selection JSON ID "+e);return vm[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Ct.between(this.$anchor,this.$head).getBookmark()}}_t.prototype.visible=!0;class nQ{constructor(e,t){this.$from=e,this.$to=t}}let Bx=!1;function Fx(n){!Bx&&!n.parent.inlineContent&&(Bx=!0)}class Ct extends _t{constructor(e,t=e){Fx(e),Fx(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return _t.near(r);let o=e.resolve(t.map(this.anchor));return new Ct(o.parent.inlineContent?o:r,r)}replace(e,t=Ge.empty){if(super.replace(e,t),t==Ge.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Ct&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new vg(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ct(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let o=e.resolve(t);return new this(o,r==t?o:e.resolve(r))}static between(e,t,r){let o=e.pos-t.pos;if((!r||o)&&(r=o>=0?1:-1),!t.parent.inlineContent){let s=_t.findFrom(t,r,!0)||_t.findFrom(t,-r,!0);if(s)t=s.$head;else return _t.near(t,r)}return e.parent.inlineContent||(o==0?e=t:(e=(_t.findFrom(e,-r,!0)||_t.findFrom(e,r,!0)).$anchor,e.pos0?0:1);o>0?i=0;i+=o){let l=e.child(i);if(l.isAtom){if(!s&&ct.isSelectable(l))return ct.create(n,t-(o<0?l.nodeSize:0))}else{let a=$a(n,l,t+o,o<0?l.childCount:0,o,s);if(a)return a}t+=l.nodeSize*o}return null}function zx(n,e,t){let r=n.steps.length-1;if(r{i==null&&(i=u)}),n.setSelection(_t.near(n.doc.resolve(i),t))}const jx=1,Wf=2,Hx=4;class oQ extends tQ{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Wf,this}ensureMarks(e){return zt.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Wf)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Wf,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||zt.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let o=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r??t,!e)return this.deleteRange(t,r);let s=this.storedMarks;if(!s){let i=this.doc.resolve(t);s=r==t?i.marks():i.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,o.text(e,s)),this.selection.empty||this.setSelection(_t.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Hx,this}get scrolledIntoView(){return(this.updated&Hx)>0}}function Ux(n,e){return!e||!n?n:n.bind(e)}class vu{constructor(e,t,r){this.name=e,this.init=Ux(t.init,r),this.apply=Ux(t.apply,r)}}const sQ=[new vu("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new vu("selection",{init(n,e){return n.selection||_t.atStart(e.doc)},apply(n){return n.selection}}),new vu("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new vu("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class bm{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=sQ.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new vu(r.key,r.spec.state,r))})}}class za{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],s=o.spec.state;s&&s.toJSON&&(t[r]=s.toJSON.call(o,this[o.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new bm(e.schema,e.plugins),s=new za(o);return o.fields.forEach(i=>{if(i.name=="doc")s.doc=ea.fromJSON(e.schema,t.doc);else if(i.name=="selection")s.selection=_t.fromJSON(s.doc,t.selection);else if(i.name=="storedMarks")t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],c=a.spec.state;if(a.key==i.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){s[i.name]=c.fromJSON.call(a,e,t[l],s);return}}s[i.name]=i.init(e,s)}}),s}}function bA(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=bA(o,e,{})),t[r]=o}return t}class Kr{constructor(e){this.spec=e,this.props={},e.props&&bA(e.props,this,this.props),this.key=e.key?e.key.key:yA("plugin")}getState(e){return e[this.key]}}const ym=Object.create(null);function yA(n){return n in ym?n+"$"+ ++ym[n]:(ym[n]=0,n+"$")}class li{constructor(e="key"){this.key=yA(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const qn=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},wd=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let Jv=null;const Vs=function(n,e,t){let r=Jv||(Jv=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},iQ=function(){Jv=null},da=function(n,e,t,r){return t&&(Wx(n,e,t,r,-1)||Wx(n,e,t,r,1))},lQ=/^(img|br|input|textarea|hr)$/i;function Wx(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:rs(n))){let s=n.parentNode;if(!s||s.nodeType!=1||lf(n)||lQ.test(n.nodeName)||n.contentEditable=="false")return!1;e=qn(n)+(o<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(o<0?-1:0)],n.contentEditable=="false")return!1;e=o<0?rs(n):0}else return!1}}function rs(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function aQ(n,e){for(;;){if(n.nodeType==3&&e)return n;if(n.nodeType==1&&e>0){if(n.contentEditable=="false")return null;n=n.childNodes[e-1],e=rs(n)}else if(n.parentNode&&!lf(n))e=qn(n),n=n.parentNode;else return null}}function cQ(n,e){for(;;){if(n.nodeType==3&&e2),to=Ec||(ms?/Mac/.test(ms.platform):!1),pQ=ms?/Win/.test(ms.platform):!1,Mo=/Android \d/.test(wl),af=!!Gx&&"webkitFontSmoothing"in Gx.documentElement.style,gQ=af?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function mQ(n){let e=n.defaultView&&n.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Is(n,e){return typeof n=="number"?n:n[e]}function vQ(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function qx(n,e,t){let r=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,s=n.dom.ownerDocument;for(let i=t||n.dom;i;i=wd(i)){if(i.nodeType!=1)continue;let l=i,a=l==s.body,c=a?mQ(s):vQ(l),u=0,d=0;if(e.topc.bottom-Is(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Is(o,"top")-c.top:e.bottom-c.bottom+Is(o,"bottom")),e.leftc.right-Is(r,"right")&&(u=e.right-c.right+Is(o,"right")),u||d)if(a)s.defaultView.scrollBy(u,d);else{let f=l.scrollLeft,h=l.scrollTop;d&&(l.scrollTop+=d),u&&(l.scrollLeft+=u);let p=l.scrollLeft-f,g=l.scrollTop-h;e={left:e.left-p,top:e.top-g,right:e.right-p,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(i).position))break}}function bQ(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,o;for(let s=(e.left+e.right)/2,i=t+1;i=t-20){r=l,o=a.top;break}}return{refDOM:r,refTop:o,stack:CA(n.dom)}}function CA(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=wd(r));return e}function yQ({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;xA(t,r==0?0:r-e)}function xA(n,e){for(let t=0;t=l){i=Math.max(p.bottom,i),l=Math.min(p.top,l);let g=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!a&&p.left<=e.left&&p.right>=e.left&&(a=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!t&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(s=d+1)}}return!t&&a&&(t=a,o=c,r=0),t&&t.nodeType==3?CQ(t,o):!t||r&&t.nodeType==1?{node:n,offset:s}:SA(t,o)}function CQ(n,e){let t=n.nodeValue.length,r=document.createRange();for(let o=0;o=(s.left+s.right)/2?1:0)}}return{node:n,offset:0}}function Qy(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function xQ(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left(i.left+i.right)/2?1:-1}return n.docView.posFromDOM(r,o,s)}function EQ(n,e,t,r){let o=-1;for(let s=e,i=!1;s!=n.dom;){let l=n.docView.nearestDesc(s,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&(!i&&a.left>r.left||a.top>r.top?o=l.posBefore:(!i&&a.right-1?o:n.docView.posFromDOM(e,t,-1)}function EA(n,e,t){let r=n.childNodes.length;if(r&&t.tope.top&&o++}let c;af&&o&&r.nodeType==1&&(c=r.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&o--,r==n.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=n.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=EQ(n,r,o,e))}l==null&&(l=SQ(n,i,e));let a=n.docView.nearestDesc(i,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function Kx(n){return n.top=0&&o==r.nodeValue.length?(a--,u=1):t<0?a--:c++,du(Ei(Vs(r,a,c),u),u<0)}if(!n.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&o&&(t<0||o==rs(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return wm(a.getBoundingClientRect(),!1)}if(s==null&&o=0)}if(s==null&&o&&(t<0||o==rs(r))){let a=r.childNodes[o-1],c=a.nodeType==3?Vs(a,rs(a)-(i?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return du(Ei(c,1),!1)}if(s==null&&o=0)}function du(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function wm(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function TA(n,e,t){let r=n.state,o=n.root.activeElement;r!=e&&n.updateState(e),o!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),o!=n.dom&&o&&o.focus()}}function OQ(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return TA(n,e,()=>{let{node:s}=n.docView.domFromPos(o.pos,t=="up"?-1:1);for(;;){let l=n.docView.nearestDesc(s,!0);if(!l)break;if(l.node.isBlock){s=l.contentDOM||l.dom;break}s=l.dom.parentNode}let i=_A(n,o.pos,1);for(let l=s.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=Vs(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;cu.top+1&&(t=="up"?i.top-u.top>(u.bottom-i.top)*2:u.bottom-i.bottom>(i.bottom-u.top)*2))return!1}}return!0})}const MQ=/[\u0590-\u08ac]/;function AQ(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,s=!o,i=o==r.parent.content.size,l=n.domSelection();return!MQ.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?s:i:TA(n,e,()=>{let{focusNode:a,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),f=l.caretBidiLevel;l.modify("move",t,"character");let h=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:p,focusOffset:g}=n.domSelectionRange(),m=p&&!h.contains(p.nodeType==1?p:p.parentNode)||a==p&&c==g;try{l.collapse(u,d),a&&(a!=u||c!=d)&&l.extend&&l.extend(a,c)}catch{}return f!=null&&(l.caretBidiLevel=f),m})}let Yx=null,Jx=null,Xx=!1;function kQ(n,e,t){return Yx==e&&Jx==t?Xx:(Yx=e,Jx=t,Xx=t=="up"||t=="down"?OQ(n,e,t):AQ(n,e,t))}const ho=0,Zx=1,Wl=2,vs=3;class cf{constructor(e,t,r,o){this.parent=e,this.children=t,this.dom=r,this.contentDOM=o,this.dirty=ho,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;tqn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let s=e;;s=s.parentNode){if(s==this.dom){o=!1;break}if(s.previousSibling)break}if(o==null&&t==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){o=!0;break}if(s.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,o=e;o;o=o.parentNode){let s=this.getDesc(o),i;if(s&&(!t||s.node))if(r&&(i=s.nodeDOM)&&!(i.nodeType==1?i.contains(e.nodeType==1?e:e.parentNode):i==e))r=!1;else return s}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let o=e;o;o=o.parentNode){let s=this.getDesc(o);if(s)return s.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;te||i instanceof MA){o=e-s;break}s=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(let s;r&&!(s=this.children[r-1]).size&&s instanceof OA&&s.side>=0;r--);if(t<=0){let s,i=!0;for(;s=r?this.children[r-1]:null,!(!s||s.dom.parentNode==this.contentDOM);r--,i=!1);return s&&t&&i&&!s.border&&!s.domAtom?s.domFromPos(s.size,t):{node:this.contentDOM,offset:s?qn(s.dom)+1:0}}else{let s,i=!0;for(;s=r=u&&t<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=i;for(let d=l;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){o=qn(f.dom)+1;break}e-=f.size}o==-1&&(o=0)}if(o>-1&&(c>t||l==this.children.length-1)){t=c;for(let u=l+1;uh&&it){let h=l;l=a,a=h}let f=document.createRange();f.setEnd(a.node,a.offset),f.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,o=0;o=r:er){let l=r+s.border,a=i-s.border;if(e>=l&&t<=a){this.dirty=e==r||t==i?Wl:Zx,e==l&&t==a&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=vs:s.markDirty(e-l,t-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Wl:vs}r=i}this.dirty=Wl}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?Wl:Zx;t.dirty{if(!s)return o;if(s.parent)return s.parent.posBeforeChild(s)})),!t.type.spec.raw){if(i.nodeType!=1){let l=document.createElement("span");l.appendChild(i),i=l}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,s=this}matchesWidget(e){return this.dirty==ho&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class PQ extends cf{constructor(e,t,r,o){super(e,[],t,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class fa extends cf{constructor(e,t,r,o){super(e,[],r,o),this.mark=t}static create(e,t,r,o){let s=o.nodeViews[t.type.name],i=s&&s(t,o,r);return(!i||!i.dom)&&(i=Ea.renderSpec(document,t.type.spec.toDOM(t,r))),new fa(e,t,i.dom,i.contentDOM||i.dom)}parseRule(){return this.dirty&vs||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=vs&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=ho){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(s=nb(s,0,e,r));for(let l=0;l{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Ea.renderSpec(document,t.type.spec.toDOM(t)));!d&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let f=u;return u=PA(u,r,t),c?a=new NQ(e,t,r,o,u,d||null,f,c,s,i+1):t.isText?new yg(e,t,r,o,u,f,s):new Ki(e,t,r,o,u,d||null,f,s,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Ne.empty)}return e}matchesNode(e,t,r){return this.dirty==ho&&e.eq(this.node)&&tb(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let r=this.node.inlineContent,o=t,s=e.composing?this.localCompositionInfo(e,t):null,i=s&&s.pos>-1?s:null,l=s&&s.pos<0,a=new LQ(this,i&&i.node,e);DQ(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?a.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!d&&a.syncToMarks(u==this.node.childCount?zt.none:this.node.child(u).marks,r,e),a.placeWidget(c,e,o)},(c,u,d,f)=>{a.syncToMarks(c.marks,r,e);let h;a.findNodeMatch(c,u,d,f)||l&&e.state.selection.from>o&&e.state.selection.to-1&&a.updateNodeAt(c,u,d,h,e)||a.updateNextNode(c,u,d,e,f,o)||a.addNode(c,u,d,e,o),o+=c.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Wl)&&(i&&this.protectLocalComposition(e,i),AA(this.contentDOM,this.children,e),Ec&&VQ(this.dom))}localCompositionInfo(e,t){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Ct)||rt+this.node.content.size)return null;let s=e.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let i=s.nodeValue,l=BQ(this.node.content,i,r-t,o-t);return l<0?null:{node:s,pos:l,text:i}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:o}){if(this.getDesc(t))return;let s=t;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let i=new PQ(this,s,t,o);e.input.compositionNodes.push(i),this.children=nb(this.children,r,r+o.length,e,i)}update(e,t,r,o){return this.dirty==vs||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,r,o),!0)}updateInner(e,t,r,o){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=ho}updateOuterDeco(e){if(tb(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=kA(this.dom,this.nodeDOM,eb(this.outerDeco,this.node,t),eb(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Qx(n,e,t,r,o){PA(r,e,n);let s=new Ki(void 0,n,e,t,r,r,r,o,0);return s.contentDOM&&s.updateChildren(o,0),s}class yg extends Ki{constructor(e,t,r,o,s,i,l){super(e,t,r,o,s,null,i,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,o){return this.dirty==vs||this.dirty!=ho&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=ho||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=ho,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,r){let o=this.node.cut(e,t),s=document.createTextNode(o.text);return new yg(this.parent,o,this.outerDeco,this.innerDeco,s,s,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=vs)}get domAtom(){return!1}isText(e){return this.node.text==e}}class MA extends cf{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ho&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class NQ extends Ki{constructor(e,t,r,o,s,i,l,a,c,u){super(e,t,r,o,s,i,l,c,u),this.spec=a}update(e,t,r,o){if(this.dirty==vs)return!1;if(this.spec.update){let s=this.spec.update(e,t,r);return s&&this.updateInner(e,t,r,o),s}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,o){this.spec.setSelection?this.spec.setSelection(e,t,r):super.setSelection(e,t,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function AA(n,e,t){let r=n.firstChild,o=!1;for(let s=0;s>1,i=Math.min(s,e.length);for(;o-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=fa.create(this.top,e[s],t,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,s++}}findNodeMatch(e,t,r,o){let s=-1,i;if(o>=this.preMatch.index&&(i=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,r))s=this.top.children.indexOf(i,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l0;){let l;for(;;)if(r){let c=t.children[r-1];if(c instanceof fa)t=c,r=c.children.length;else{l=c,r--;break}}else{if(t==e)break e;r=t.parent.children.indexOf(t),t=t.parent}let a=l.node;if(a){if(a!=n.child(o-1))break;--o,s.set(l,o),i.push(l)}}return{index:o,matched:s,matches:i.reverse()}}function $Q(n,e){return n.type.side-e.type.side}function DQ(n,e,t,r){let o=e.locals(n),s=0;if(o.length==0){for(let c=0;cs;)l.push(o[i++]);let p=s+f.nodeSize;if(f.isText){let m=p;i!m.inline):l.slice();r(f,g,e.forChild(s,f),h),s=p}}function VQ(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=e}}function BQ(n,e,t,r){for(let o=0,s=0;o=t){if(s>=r&&a.slice(r-e.length-l,r-l)==e)return r-e.length;let c=l=0&&c+e.length+l>=t)return l+c;if(t==r&&a.length>=r+e.length-l&&a.slice(r-l,r-l+e.length)==e)return r}}return-1}function nb(n,e,t,r,o){let s=[];for(let i=0,l=0;i=t||u<=e?s.push(a):(ct&&s.push(a.slice(t-c,a.size,r)))}return s}function e0(n,e=null){let t=n.domSelectionRange(),r=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),s=o&&o.size==0,i=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(i<0)return null;let l=r.resolve(i),a,c;if(bg(t)){for(a=l;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&ct.isSelectable(u)&&o.parent&&!(u.isInline&&uQ(t.focusNode,t.focusOffset,o.dom))){let d=o.posBefore;c=new ct(i==d?l:r.resolve(d))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!c){let u=e=="pointer"||n.state.selection.head{(t.anchorNode!=r||t.anchorOffset!=o)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!NA(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function zQ(n){let e=n.domSelection(),t=document.createRange(),r=n.cursorWrapper.dom,o=r.nodeName=="IMG";o?t.setEnd(r.parentNode,qn(r)+1):t.setEnd(r,0),t.collapse(!1),e.removeAllRanges(),e.addRange(t),!o&&!n.state.selection.visible&&Pr&&qi<=11&&(r.disabled=!0,r.disabled=!1)}function IA(n,e){if(e instanceof ct){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(oS(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else oS(n)}function oS(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function t0(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||Ct.between(e,t,r)}function sS(n){return n.editable&&!n.hasFocus()?!1:LA(n)}function LA(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function jQ(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return da(e.node,e.offset,t.anchorNode,t.anchorOffset)}function rb(n,e){let{$anchor:t,$head:r}=n.selection,o=e>0?t.max(r):t.min(r),s=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return s&&_t.findFrom(s,e)}function Ai(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function iS(n,e,t){let r=n.state.selection;if(r instanceof Ct)if(t.indexOf("s")>-1){let{$head:o}=r,s=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let i=n.state.doc.resolve(o.pos+s.nodeSize*(e<0?-1:1));return Ai(n,new Ct(r.$anchor,i))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=rb(n.state,e);return o&&o instanceof ct?Ai(n,o):!1}else if(!(to&&t.indexOf("m")>-1)){let o=r.$head,s=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,i;if(!s||s.isText)return!1;let l=e<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(i=n.docView.descAt(l))&&!i.contentDOM?ct.isSelectable(s)?Ai(n,new ct(e<0?n.state.doc.resolve(o.pos-s.nodeSize):o)):af?Ai(n,new Ct(n.state.doc.resolve(e<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ct&&r.node.isInline)return Ai(n,new Ct(e>0?r.$to:r.$from));{let o=rb(n.state,e);return o?Ai(n,o):!1}}}function Qh(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Uu(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function ka(n,e){return e<0?HQ(n):UQ(n)}function HQ(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,s,i=!1;for(Uo&&t.nodeType==1&&r0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(Uu(l,-1))o=t,s=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(RA(t))break;{let l=t.previousSibling;for(;l&&Uu(l,-1);)o=t.parentNode,s=qn(l),l=l.previousSibling;if(l)t=l,r=Qh(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}i?ob(n,t,r):o&&ob(n,o,s)}function UQ(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=Qh(t),s,i;for(;;)if(r{n.state==o&&Gs(n)},50)}function lS(n,e){let t=n.state.doc.resolve(e);if(!(yr||pQ)&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let s=n.coordsAtPos(e-1),i=(s.top+s.bottom)/2;if(i>o.top&&i1)return s.lefto.top&&i1)return s.left>o.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function aS(n,e,t){let r=n.state.selection;if(r instanceof Ct&&!r.empty||t.indexOf("s")>-1||to&&t.indexOf("m")>-1)return!1;let{$from:o,$to:s}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let i=rb(n.state,e);if(i&&i instanceof ct)return Ai(n,i)}if(!o.parent.inlineContent){let i=e<0?o:s,l=r instanceof Vo?_t.near(i,e):_t.findFrom(i,e);return l?Ai(n,l):!1}return!1}function cS(n,e){if(!(n.state.selection instanceof Ct))return!0;let{$head:t,$anchor:r,empty:o}=n.state.selection;if(!t.sameParent(r))return!0;if(!o)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(s&&!s.isText){let i=n.state.tr;return e<0?i.delete(t.pos-s.nodeSize,t.pos):i.delete(t.pos,t.pos+s.nodeSize),n.dispatch(i),!0}return!1}function uS(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function qQ(n){if(!wr||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;uS(n,r,"true"),setTimeout(()=>uS(n,r,"false"),20)}return!1}function KQ(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function YQ(n,e){let t=e.keyCode,r=KQ(e);if(t==8||to&&t==72&&r=="c")return cS(n,-1)||ka(n,-1);if(t==46&&!e.shiftKey||to&&t==68&&r=="c")return cS(n,1)||ka(n,1);if(t==13||t==27)return!0;if(t==37||to&&t==66&&r=="c"){let o=t==37?lS(n,n.state.selection.from)=="ltr"?-1:1:-1;return iS(n,o,r)||ka(n,o)}else if(t==39||to&&t==70&&r=="c"){let o=t==39?lS(n,n.state.selection.from)=="ltr"?1:-1:1;return iS(n,o,r)||ka(n,o)}else{if(t==38||to&&t==80&&r=="c")return aS(n,-1,r)||ka(n,-1);if(t==40||to&&t==78&&r=="c")return qQ(n)||aS(n,1,r)||ka(n,1);if(r==(to?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function $A(n,e){n.someProp("transformCopied",h=>{e=h(e,n)});let t=[],{content:r,openStart:o,openEnd:s}=e;for(;o>1&&s>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,s--;let h=r.firstChild;t.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let i=n.someProp("clipboardSerializer")||Ea.fromSchema(n.state.schema),l=jA(),a=l.createElement("div");a.appendChild(i.serializeFragment(r,{document:l}));let c=a.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=zA[c.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let p=l.createElement(u[h]);for(;a.firstChild;)p.appendChild(a.firstChild);a.appendChild(p),d++}c=a.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${s}${d?` -${d}`:""} ${JSON.stringify(t)}`);let f=n.someProp("clipboardTextSerializer",h=>h(e,n))||e.content.textBetween(0,e.content.size,` - -`);return{dom:a,text:f,slice:e}}function DA(n,e,t,r,o){let s=o.parent.type.spec.code,i,l;if(!t&&!e)return null;let a=e&&(r||s||!t);if(a){if(n.someProp("transformPastedText",f=>{e=f(e,s||r,n)}),s)return e?new Ge(Ne.from(n.state.schema.text(e.replace(/\r\n?/g,` -`))),0,0):Ge.empty;let d=n.someProp("clipboardTextParser",f=>f(e,o,r,n));if(d)l=d;else{let f=o.marks(),{schema:h}=n.state,p=Ea.fromSchema(h);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=i.appendChild(document.createElement("p"));g&&m.appendChild(p.serializeNode(h.text(g,f)))})}}else n.someProp("transformPastedHTML",d=>{t=d(t,n)}),i=ZQ(t),af&&QQ(i);let c=i&&i.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=i.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;i=f}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Yy.fromSchema(n.state.schema)).parseSlice(i,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!JQ.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)l=eee(dS(l,+u[1],+u[2]),u[4]);else if(l=Ge.maxOpen(XQ(l.content,o),!0),l.openStart||l.openEnd){let d=0,f=0;for(let h=l.content.firstChild;d{l=d(l,n)}),l}const JQ=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function XQ(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.index(t)),s,i=[];if(n.forEach(l=>{if(!i)return;let a=o.findWrapping(l.type),c;if(!a)return i=null;if(c=i.length&&s.length&&BA(a,s,l,i[i.length-1],0))i[i.length-1]=c;else{i.length&&(i[i.length-1]=FA(i[i.length-1],s.length));let u=VA(l,a);i.push(u),o=o.matchType(u.type),s=a}}),i)return Ne.from(i)}return n}function VA(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,Ne.from(n));return n}function BA(n,e,t,r,o){if(o1&&(s=0),o=t&&(l=e<0?i.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(i.contentMatchAt(i.childCount).fillBefore(Ne.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,i.copy(l))}function dS(n,e,t){return e]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=jA().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&zA[r[1].toLowerCase()])&&(n=o.map(s=>"<"+s+">").join("")+n+o.map(s=>"").reverse().join("")),t.innerHTML=n,o)for(let s=0;s=0;l-=2){let a=t.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=Ne.from(a.create(r[l+1],o)),s++,i++}return new Ge(o,s,i)}const Cr={},xr={},tee={touchstart:!0,touchmove:!0};class nee{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ree(n){for(let e in Cr){let t=Cr[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{see(n,r)&&!n0(n,r)&&(n.editable||!(r.type in xr))&&t(n,r)},tee[e]?{passive:!0}:void 0)}wr&&n.dom.addEventListener("input",()=>null),ib(n)}function zi(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function oee(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function ib(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>n0(n,r))})}function n0(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function see(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function iee(n,e){!n0(n,e)&&Cr[e.type]&&(n.editable||!(e.type in xr))&&Cr[e.type](n,e)}xr.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!UA(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(Mo&&yr&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Ec&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let r=Date.now();n.input.lastIOSEnter=r,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==r&&(n.someProp("handleKeyDown",o=>o(n,Vl(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||YQ(n,t)?t.preventDefault():zi(n,"key")};xr.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)};xr.keypress=(n,e)=>{let t=e;if(UA(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||to&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof Ct)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",s=>s(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function wg(n){return{left:n.clientX,top:n.clientY}}function lee(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function r0(n,e,t,r,o){if(r==-1)return!1;let s=n.state.doc.resolve(r);for(let i=s.depth+1;i>0;i--)if(n.someProp(e,l=>i>s.depth?l(n,t,s.nodeAfter,s.before(i),o,!0):l(n,t,s.node(i),s.before(i),o,!1)))return!0;return!1}function Xa(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);r.setMeta("pointer",!0),n.dispatch(r)}function aee(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&ct.isSelectable(r)?(Xa(n,new ct(t)),!0):!1}function cee(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof ct&&(r=t.node);let s=n.state.doc.resolve(e);for(let i=s.depth+1;i>0;i--){let l=i>s.depth?s.nodeAfter:s.node(i);if(ct.isSelectable(l)){r&&t.$from.depth>0&&i>=t.$from.depth&&s.before(t.$from.depth+1)==t.$from.pos?o=s.before(t.$from.depth):o=s.before(i);break}}return o!=null?(Xa(n,ct.create(n.state.doc,o)),!0):!1}function uee(n,e,t,r,o){return r0(n,"handleClickOn",e,t,r)||n.someProp("handleClick",s=>s(n,e,r))||(o?cee(n,t):aee(n,t))}function dee(n,e,t,r){return r0(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function fee(n,e,t,r){return r0(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||hee(n,t,r)}function hee(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(Xa(n,Ct.create(r,0,r.content.size)),!0):!1;let o=r.resolve(e);for(let s=o.depth+1;s>0;s--){let i=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(i.inlineContent)Xa(n,Ct.create(r,l+1,l+1+i.content.size));else if(ct.isSelectable(i))Xa(n,ct.create(r,l));else continue;return!0}}function o0(n){return ep(n)}const HA=to?"metaKey":"ctrlKey";Cr.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=o0(n),o=Date.now(),s="singleClick";o-n.input.lastClick.time<500&&lee(t,n.input.lastClick)&&!t[HA]&&(n.input.lastClick.type=="singleClick"?s="doubleClick":n.input.lastClick.type=="doubleClick"&&(s="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:s};let i=n.posAtCoords(wg(t));i&&(s=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new pee(n,i,t,!!r)):(s=="doubleClick"?dee:fee)(n,i.pos,i.inside,t)?t.preventDefault():zi(n,"pointer"))};class pee{constructor(e,t,r,o){this.view=e,this.pos=t,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[HA],this.allowDefault=r.shiftKey;let s,i;if(t.inside>-1)s=e.state.doc.nodeAt(t.inside),i=t.inside;else{let u=e.state.doc.resolve(t.pos);s=u.parent,i=u.depth?u.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a&&a.dom.nodeType==1?a.dom:null;let{selection:c}=e.state;(r.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||c instanceof ct&&c.from<=i&&c.to>i)&&(this.mightDrag={node:s,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Uo&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),zi(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Gs(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(wg(e))),this.updateAllowDefault(e),this.allowDefault||!t?zi(this.view,"pointer"):uee(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||wr&&this.mightDrag&&!this.mightDrag.node.isAtom||yr&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Xa(this.view,_t.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):zi(this.view,"pointer")}move(e){this.updateAllowDefault(e),zi(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Cr.touchstart=n=>{n.input.lastTouch=Date.now(),o0(n),zi(n,"pointer")};Cr.touchmove=n=>{n.input.lastTouch=Date.now(),zi(n,"pointer")};Cr.contextmenu=n=>o0(n);function UA(n,e){return n.composing?!0:wr&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const gee=Mo?5e3:-1;xr.compositionstart=xr.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))n.markCursor=n.state.storedMarks||t.marks(),ep(n,!0),n.markCursor=null;else if(ep(n),Uo&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let o=r.focusNode,s=r.focusOffset;o&&o.nodeType==1&&s!=0;){let i=s<0?o.lastChild:o.childNodes[s-1];if(!i)break;if(i.nodeType==3){n.domSelection().collapse(i,i.nodeValue.length);break}else o=i,s=-1}}n.input.composing=!0}WA(n,gee)};xr.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionNode=null,n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,WA(n,20))};function WA(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>ep(n),e))}function GA(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=vee());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function mee(n){let e=n.domSelectionRange();if(!e.focusNode)return null;let t=aQ(e.focusNode,e.focusOffset),r=cQ(e.focusNode,e.focusOffset);if(t&&r&&t!=r){let o=r.pmViewDesc,s=n.domObserver.lastChangedTextNode;if(t==s||r==s)return s;if(!o||!o.isText(r.nodeValue))return r;if(n.input.compositionNode==r){let i=t.pmViewDesc;if(!(!i||!i.isText(t.nodeValue)))return r}}return t||r}function vee(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function ep(n,e=!1){if(!(Mo&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),GA(n),e||n.docView&&n.docView.dirty){let t=e0(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function bee(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const Cd=Pr&&qi<15||Ec&&gQ<604;Cr.copy=xr.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let s=Cd?null:t.clipboardData,i=r.content(),{dom:l,text:a}=$A(n,i);s?(t.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):bee(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function yee(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function wee(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,r=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),r.parentNode&&r.parentNode.removeChild(r),t?xd(n,r.value,null,o,e):xd(n,r.textContent,r.innerHTML,o,e)},50)}function xd(n,e,t,r,o){let s=DA(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,s||Ge.empty)))return!0;if(!s)return!1;let i=yee(s),l=i?n.state.tr.replaceSelectionWith(i,r):n.state.tr.replaceSelection(s);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function qA(n){let e=n.getData("text/plain")||n.getData("Text");if(e)return e;let t=n.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}xr.paste=(n,e)=>{let t=e;if(n.composing&&!Mo)return;let r=Cd?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&xd(n,qA(r),r.getData("text/html"),o,t)?t.preventDefault():wee(n,t)};class KA{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const YA=to?"altKey":"ctrlKey";Cr.dragstart=(n,e)=>{let t=e,r=n.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let o=n.state.selection,s=o.empty?null:n.posAtCoords(wg(t)),i;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof ct?o.to-1:o.to))){if(r&&r.mightDrag)i=ct.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let d=n.docView.nearestDesc(t.target,!0);d&&d.node.type.spec.draggable&&d!=n.docView&&(i=ct.create(n.state.doc,d.posBefore))}}let l=(i||n.state.selection).content(),{dom:a,text:c,slice:u}=$A(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(Cd?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",Cd||t.dataTransfer.setData("text/plain",c),n.dragging=new KA(u,!t[YA],i)};Cr.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)};xr.dragover=xr.dragenter=(n,e)=>e.preventDefault();xr.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(wg(t));if(!o)return;let s=n.state.doc.resolve(o.pos),i=r&&r.slice;i?n.someProp("transformPasted",p=>{i=p(i,n)}):i=DA(n,qA(t.dataTransfer),Cd?null:t.dataTransfer.getData("text/html"),!1,s);let l=!!(r&&!t[YA]);if(n.someProp("handleDrop",p=>p(n,t,i||Ge.empty,l))){t.preventDefault();return}if(!i)return;t.preventDefault();let a=i?hA(n.state.doc,s.pos,i):s.pos;a==null&&(a=s.pos);let c=n.state.tr;if(l){let{node:p}=r;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(a),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=c.doc;if(d?c.replaceRangeWith(u,u,i.content.firstChild):c.replaceRange(u,u,i),c.doc.eq(f))return;let h=c.doc.resolve(u);if(d&&ct.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new ct(h));else{let p=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((g,m,v,w)=>p=w),c.setSelection(t0(n,h,c.doc.resolve(p)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))};Cr.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&Gs(n)},20))};Cr.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)};Cr.beforeinput=(n,e)=>{if(yr&&Mo&&e.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:r}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=r||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",s=>s(n,Vl(8,"Backspace")))))return;let{$cursor:o}=n.state.selection;o&&o.pos>0&&n.dispatch(n.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let n in xr)Cr[n]=xr[n];function Sd(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class tp{constructor(e,t){this.toDOM=e,this.spec=t||ta,this.side=this.spec.side||0}map(e,t,r,o){let{pos:s,deleted:i}=e.mapResult(t.from+o,this.side<0?-1:1);return i?null:new ao(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof tp&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Sd(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Yi{constructor(e,t){this.attrs=e,this.spec=t||ta}map(e,t,r,o){let s=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-r,i=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-r;return s>=i?null:new ao(s,i,this)}valid(e,t){return t.from=e&&(!s||s(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let i=0;ie){let l=this.children[i]+1;this.children[i+2].findInner(e-l,t-l,r,o+l,s)}}map(e,t,r){return this==or||e.maps.length==0?this:this.mapInner(e,t,0,0,r||ta)}mapInner(e,t,r,o,s){let i;for(let l=0;l{let c=a+r,u;if(u=XA(t,l,c)){for(o||(o=this.children.slice());sl&&d.to=e){this.children[l]==e&&(r=this.children[l+2]);break}let s=e+1,i=s+t.content.size;for(let l=0;ls&&a.type instanceof Yi){let c=Math.max(s,a.from)-s,u=Math.min(i,a.to)-s;co.map(e,t,ta));return $i.from(r)}forChild(e,t){if(t.isLeaf)return Mn.empty;let r=[];for(let o=0;ot instanceof Mn)?e:e.reduce((t,r)=>t.concat(r instanceof Mn?r:r.members),[]))}}}function Cee(n,e,t,r,o,s,i){let l=n.slice();for(let c=0,u=s;c{let m=g-p-(h-f);for(let v=0;vw+u-d)continue;let b=l[v]+u-d;h>=b?l[v+1]=f<=b?-2:-1:f>=u&&m&&(l[v]+=m,l[v+1]+=m)}d+=m}),u=t.maps[c].map(u,-1)}let a=!1;for(let c=0;c=r.content.size){a=!0;continue}let f=t.map(n[c+1]+s,-1),h=f-o,{index:p,offset:g}=r.content.findIndex(d),m=r.maybeChild(p);if(m&&g==d&&g+m.nodeSize==h){let v=l[c+2].mapInner(t,m,u+1,n[c]+s+1,i);v!=or?(l[c]=d,l[c+1]=h,l[c+2]=v):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=xee(l,n,e,t,o,s,i),u=np(c,r,0,i);e=u.local;for(let d=0;dt&&i.to{let c=XA(n,l,a+t);if(c){s=!0;let u=np(c,l,t+a+1,r);u!=or&&o.push(a,a+l.nodeSize,u)}});let i=JA(s?ZA(n):n,-t).sort(na);for(let l=0;l0;)e++;n.splice(e,0,t)}function xm(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=or&&e.push(r)}),n.cursorWrapper&&e.push(Mn.create(n.state.doc,[n.cursorWrapper.deco])),$i.from(e)}const See={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Eee=Pr&&qi<=11;class _ee{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Tee{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new _ee,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),Eee&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,See)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(sS(this.view)){if(this.suppressingSelectionUpdates)return Gs(this.view);if(Pr&&qi<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&da(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let s=e.focusNode;s;s=wd(s))t.add(s);for(let s=e.anchorNode;s;s=wd(s))if(t.has(s)){r=s;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&sS(e)&&!this.ignoreSelectionChange(r),s=-1,i=-1,l=!1,a=[];if(e.editable)for(let u=0;ud.nodeName=="BR");if(u.length==2){let[d,f]=u;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of u){let h=f.parentNode;h&&h.nodeName=="LI"&&(!d||Aee(e,d)!=h)&&f.remove()}}}let c=null;s<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||o)&&(s>-1&&(e.docView.markDirty(s,i),Oee(e)),this.handleDOMChange(s,i,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Gs(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;uo;m--){let v=r.childNodes[m-1],w=v.pmViewDesc;if(v.nodeName=="BR"&&!w){s=m;break}if(!w||w.size)break}let d=n.state.doc,f=n.someProp("domParser")||Yy.fromSchema(n.state.schema),h=d.resolve(i),p=null,g=f.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:s,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Pee,context:h});if(c&&c[0].pos!=null){let m=c[0].pos,v=c[1]&&c[1].pos;v==null&&(v=m),p={anchor:m+i,head:v+i}}return{doc:g,sel:p,from:i,to:l}}function Pee(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(wr&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(n.parentNode.lastChild==n||wr&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Nee=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Iee(n,e,t,r,o){let s=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let O=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,k=e0(n,O);if(k&&!n.state.selection.eq(k)){if(yr&&Mo&&n.input.lastKeyCode===13&&Date.now()-100L(n,Vl(13,"Enter"))))return;let P=n.state.tr.setSelection(k);O=="pointer"?P.setMeta("pointer",!0):O=="key"&&P.scrollIntoView(),s&&P.setMeta("composition",s),n.dispatch(P)}return}let i=n.state.doc.resolve(e),l=i.sharedDepth(t);e=i.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=kee(n,e,t),u=n.state.doc,d=u.slice(c.from,c.to),f,h;n.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Mo)&&o.some(O=>O.nodeType==1&&!Nee.test(O.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",O=>O(n,Vl(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!p)if(r&&a instanceof Ct&&!a.empty&&a.$head.sameParent(a.$anchor)&&!n.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let O=vS(n,n.state.doc,c.sel);if(O&&!O.eq(n.state.selection)){let k=n.state.tr.setSelection(O);s&&k.setMeta("composition",s),n.dispatch(k)}}return}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=c.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=c.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),Pr&&qi<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),m=c.doc.resolveNoCache(p.endB-c.from),v=u.resolve(p.start),w=g.sameParent(m)&&g.parent.inlineContent&&v.end()>=p.endA,b;if((Ec&&n.input.lastIOSEnter>Date.now()-225&&(!w||o.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!w&&g.posO(n,Vl(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>p.start&&Ree(u,p.start,p.endA,g,m)&&n.someProp("handleKeyDown",O=>O(n,Vl(8,"Backspace")))){Mo&&yr&&n.domObserver.suppressSelectionUpdates();return}yr&&Mo&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),Mo&&!w&&g.start()!=m.start()&&m.parentOffset==0&&g.depth==m.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,m=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{n.someProp("handleKeyDown",function(O){return O(n,Vl(13,"Enter"))})},20));let y=p.start,x=p.endA,E,T,M;if(w){if(g.pos==m.pos)Pr&&qi<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>Gs(n),20)),E=n.state.tr.delete(y,x),T=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(M=Lee(g.parent.content.cut(g.parentOffset,m.parentOffset),v.parent.content.cut(v.parentOffset,p.endA-v.start()))))E=n.state.tr,M.type=="add"?E.addMark(y,x,M.mark):E.removeMark(y,x,M.mark);else if(g.parent.child(g.index()).isText&&g.index()==m.index()-(m.textOffset?0:1)){let O=g.parent.textBetween(g.parentOffset,m.parentOffset);if(n.someProp("handleTextInput",k=>k(n,y,x,O)))return;E=n.state.tr.insertText(O,y,x)}}if(E||(E=n.state.tr.replace(y,x,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let O=vS(n,E.doc,c.sel);O&&!(yr&&Mo&&n.composing&&O.empty&&(p.start!=p.endB||n.input.lastAndroidDeletee.content.size?null:t0(n,e.resolve(t.anchor),e.resolve(t.head))}function Lee(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,s=r,i,l,a;for(let u=0;uu.mark(l.addToSet(u.marks));else if(o.length==0&&s.length==1)l=s[0],i="remove",a=u=>u.mark(l.removeFromSet(u.marks));else return null;let c=[];for(let u=0;ut||Sm(i,!0,!1)0&&(e||n.indexAfter(r)==n.node(r).childCount);)r--,o++,e=!1;if(t){let s=n.node(r).maybeChild(n.indexAfter(r));for(;s&&!s.isLeaf;)s=s.firstChild,o++}return o}function $ee(n,e,t,r,o){let s=n.findDiffStart(e,t);if(s==null)return null;let{a:i,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,s-Math.min(i,l));r-=i+a-s}if(i=i?s-r:0;s-=a,s&&s=l?s-r:0;s-=a,s&&s=56320&&e<=57343&&t>=55296&&t<=56319}class Dee{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new nee,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(SS),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=CS(this),wS(this),this.nodeViews=xS(this),this.docView=Qx(this.state.doc,yS(this),xm(this),this.dom,this),this.domObserver=new Tee(this,(r,o,s,i)=>Iee(this,r,o,s,i)),this.domObserver.start(),ree(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ib(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(SS),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let r in this._props)t[r]=this._props[r];t.state=this.state;for(let r in e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let o=this.state,s=!1,i=!1;e.storedMarks&&this.composing&&(GA(this),i=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let h=xS(this);Bee(h,this.nodeViews)&&(this.nodeViews=h,s=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&ib(this),this.editable=CS(this),wS(this);let a=xm(this),c=yS(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(e.doc,c,a);(d||!e.selection.eq(o.selection))&&(i=!0);let f=u=="preserve"&&i&&this.dom.style.overflowAnchor==null&&bQ(this);if(i){this.domObserver.stop();let h=d&&(Pr||yr)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&Vee(o.selection,e.selection);if(d){let p=yr?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=mee(this)),(s||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Qx(e.doc,c,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&jQ(this))?Gs(this,h):(IA(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&yQ(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof ct){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&qx(this,t.getBoundingClientRect(),e)}else qx(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t0&&this.state.doc.nodeAt(s))==r.node&&(o=s)}this.dragging=new KA(e.slice,e.move,o<0?void 0:ct.create(this.state.doc,o))}someProp(e,t){let r=this._props&&this._props[e],o;if(r!=null&&(o=t?t(r):r))return o;for(let i=0;it.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return _Q(this,e)}coordsAtPos(e,t=1){return _A(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let o=this.docView.posFromDOM(e,t,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return kQ(this,t||this.state,e)}pasteHTML(e,t){return xd(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return xd(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(oee(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],xm(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,iQ())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return iee(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return wr&&this.root.nodeType===11&&dQ(this.dom.ownerDocument)==this.dom&&Mee(this,e)||e}domSelection(){return this.root.getSelection()}}function yS(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(n.state)),t)for(let r in t)r=="class"?e.class+=" "+t[r]:r=="style"?e.style=(e.style?e.style+";":"")+t[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(t[r]))}),e.translate||(e.translate="no"),[ao.node(0,n.state.doc.content.size,e)]}function wS(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:ao.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function CS(n){return!n.someProp("editable",e=>e(n.state)===!1)}function Vee(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function xS(n){let e=Object.create(null);function t(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function Bee(n,e){let t=0,r=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)r++;return t!=r}function SS(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var tl={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},rp={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Fee=typeof navigator<"u"&&/Mac/.test(navigator.platform),zee=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Kn=0;Kn<10;Kn++)tl[48+Kn]=tl[96+Kn]=String(Kn);for(var Kn=1;Kn<=24;Kn++)tl[Kn+111]="F"+Kn;for(var Kn=65;Kn<=90;Kn++)tl[Kn]=String.fromCharCode(Kn+32),rp[Kn]=String.fromCharCode(Kn);for(var Em in tl)rp.hasOwnProperty(Em)||(rp[Em]=tl[Em]);function jee(n){var e=Fee&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||zee&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?rp:tl)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const Hee=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Uee(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,s,i;for(let l=0;l127)&&(s=tl[r.keyCode])&&s!=o){let l=e[_m(s,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const qee=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function ek(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const Kee=(n,e,t)=>{let r=ek(n,t);if(!r)return!1;let o=l0(r);if(!o){let i=r.blockRange(),l=i&&Qc(i);return l==null?!1:(e&&e(n.tr.lift(i,l).scrollIntoView()),!0)}let s=o.nodeBefore;if(!s.type.spec.isolating&&ok(n,o,e))return!0;if(r.parent.content.size==0&&(_c(s,"end")||ct.isSelectable(s))){let i=mg(n.doc,r.before(),r.after(),Ge.empty);if(i&&i.slice.size{let r=ek(n,t);if(!r)return!1;let o=l0(r);return o?tk(n,o,e):!1},Jee=(n,e,t)=>{let r=nk(n,t);if(!r)return!1;let o=a0(r);return o?tk(n,o,e):!1};function tk(n,e,t){let r=e.nodeBefore,o=r,s=e.pos-1;for(;!o.isTextblock;s--){if(o.type.spec.isolating)return!1;let u=o.lastChild;if(!u)return!1;o=u}let i=e.nodeAfter,l=i,a=e.pos+1;for(;!l.isTextblock;a++){if(l.type.spec.isolating)return!1;let u=l.firstChild;if(!u)return!1;l=u}let c=mg(n.doc,s,a,Ge.empty);if(!c||c.from!=s||c instanceof In&&c.slice.size>=a-s)return!1;if(t){let u=n.tr.step(c);u.setSelection(Ct.create(u.doc,s)),t(u.scrollIntoView())}return!0}function _c(n,e,t=!1){for(let r=n;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(t&&r.childCount!=1)return!1}return!1}const Xee=(n,e,t)=>{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;s=l0(r)}let i=s&&s.nodeBefore;return!i||!ct.isSelectable(i)?!1:(e&&e(n.tr.setSelection(ct.create(n.doc,s.pos-i.nodeSize)).scrollIntoView()),!0)};function l0(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}function nk(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset{let r=nk(n,t);if(!r)return!1;let o=a0(r);if(!o)return!1;let s=o.nodeAfter;if(ok(n,o,e))return!0;if(r.parent.content.size==0&&(_c(s,"start")||ct.isSelectable(s))){let i=mg(n.doc,r.before(),r.after(),Ge.empty);if(i&&i.slice.size{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset=0;e--){let t=n.node(e);if(n.index(e)+1{let t=n.selection,r=t instanceof ct,o;if(r){if(t.node.isTextblock||!yl(n.doc,t.from))return!1;o=t.from}else if(o=gg(n.doc,t.from,-1),o==null)return!1;if(e){let s=n.tr.join(o);r&&s.setSelection(ct.create(s.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},tte=(n,e)=>{let t=n.selection,r;if(t instanceof ct){if(t.node.isTextblock||!yl(n.doc,t.to))return!1;r=t.to}else if(r=gg(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},nte=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),s=o&&Qc(o);return s==null?!1:(e&&e(n.tr.lift(o,s).scrollIntoView()),!0)},rte=(n,e)=>{let{$head:t,$anchor:r}=n.selection;return!t.parent.type.spec.code||!t.sameParent(r)?!1:(e&&e(n.tr.insertText(` -`).scrollIntoView()),!0)};function rk(n){for(let e=0;e{let{$head:t,$anchor:r}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(r))return!1;let o=t.node(-1),s=t.indexAfter(-1),i=rk(o.contentMatchAt(s));if(!i||!o.canReplaceWith(s,s,i))return!1;if(e){let l=t.after(),a=n.tr.replaceWith(l,l,i.createAndFill());a.setSelection(_t.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},ste=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Vo||r.parent.inlineContent||o.parent.inlineContent)return!1;let s=rk(o.parent.contentMatchAt(o.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let i=(!r.parentOffset&&o.index(){let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let s=t.before();if(Ya(n.doc,s))return e&&e(n.tr.split(s).scrollIntoView()),!0}let r=t.blockRange(),o=r&&Qc(r);return o==null?!1:(e&&e(n.tr.lift(r,o).scrollIntoView()),!0)},lte=(n,e)=>{let{$from:t,to:r}=n.selection,o,s=t.sharedDepth(r);return s==0?!1:(o=t.before(s),e&&e(n.tr.setSelection(ct.create(n.doc,o))),!0)};function ate(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,s=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(s-1,s)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(o.isTextblock||yl(n.doc,e.pos))?!1:(t&&t(n.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function ok(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,s,i;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(ate(n,e,t))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(s=(i=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&i.matchType(s[0]||o.type).validEnd){if(t){let d=e.pos+o.nodeSize,f=Ne.empty;for(let g=s.length-1;g>=0;g--)f=Ne.from(s[g].create(null,f));f=Ne.from(r.copy(f));let h=n.tr.step(new Bn(e.pos-1,d,e.pos,d,new Ge(f,1,0),s.length,!0)),p=d+2*s.length;yl(h.doc,p)&&h.join(p),t(h.scrollIntoView())}return!0}let a=_t.findFrom(e,1),c=a&&a.$from.blockRange(a.$to),u=c&&Qc(c);if(u!=null&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(l&&_c(o,"start",!0)&&_c(r,"end")){let d=r,f=[];for(;f.push(d),!d.isTextblock;)d=d.lastChild;let h=o,p=1;for(;!h.isTextblock;h=h.firstChild)p++;if(d.canReplace(d.childCount,d.childCount,h.content)){if(t){let g=Ne.empty;for(let v=f.length-1;v>=0;v--)g=Ne.from(f[v].copy(g));let m=n.tr.step(new Bn(e.pos-f.length,e.pos+o.nodeSize,e.pos+p,e.pos+o.nodeSize-p,new Ge(g,f.length,0),0,!0));t(m.scrollIntoView())}return!0}}return!1}function sk(n){return function(e,t){let r=e.selection,o=n<0?r.$from:r.$to,s=o.depth;for(;o.node(s).isInline;){if(!s)return!1;s--}return o.node(s).isTextblock?(t&&t(e.tr.setSelection(Ct.create(e.doc,n<0?o.start(s):o.end(s)))),!0):!1}}const cte=sk(-1),ute=sk(1);function dte(n,e=null){return function(t,r){let{$from:o,$to:s}=t.selection,i=o.blockRange(s),l=i&&Xy(i,n,e);return l?(r&&r(t.tr.wrap(i,l).scrollIntoView()),!0):!1}}function ES(n,e=null){return function(t,r){let o=!1;for(let s=0;s{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(n,e)))if(a.type==n)o=!0;else{let u=t.doc.resolve(c),d=u.index();o=u.parent.canReplaceWith(d,d+1,n)}})}if(!o)return!1;if(r){let s=t.tr;for(let i=0;i=2&&o.node(i.depth-1).type.compatibleContent(n)&&i.startIndex==0){if(o.index(i.depth-1)==0)return!1;let u=t.doc.resolve(i.start-2);a=new Yh(u,u,i.depth),i.endIndex=0;u--)s=Ne.from(t[u].type.create(t[u].attrs,s));n.step(new Bn(e.start-(r?2:0),e.end,e.start,e.end,new Ge(s,0,0),t.length,!0));let i=0;for(let u=0;ui.childCount>0&&i.firstChild.type==n);return s?t?r.node(s.depth-1).type==n?gte(e,t,n,s):mte(e,t,s):!0:!1}}function gte(n,e,t,r){let o=n.tr,s=r.end,i=r.$to.end(r.depth);sg;p--)h-=o.child(p).nodeSize,r.delete(h-1,h+1);let s=r.doc.resolve(t.start),i=s.nodeAfter;if(r.mapping.map(t.end)!=t.start+s.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,a=t.endIndex==o.childCount,c=s.node(-1),u=s.index(-1);if(!c.canReplace(u+(l?0:1),u+1,i.content.append(a?Ne.empty:Ne.from(o))))return!1;let d=s.pos,f=d+i.nodeSize;return r.step(new Bn(d-(l?1:0),f+(a?1:0),d+1,f-1,new Ge((l?Ne.empty:Ne.from(o.copy(Ne.empty))).append(a?Ne.empty:Ne.from(o.copy(Ne.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}function vte(n){return function(e,t){let{$from:r,$to:o}=e.selection,s=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!s)return!1;let i=s.startIndex;if(i==0)return!1;let l=s.parent,a=l.child(i-1);if(a.type!=n)return!1;if(t){let c=a.lastChild&&a.lastChild.type==l.type,u=Ne.from(c?n.create():null),d=new Ge(Ne.from(n.create(null,Ne.from(l.type.create(null,u)))),c?3:1,0),f=s.start,h=s.end;t(e.tr.step(new Bn(f-(c?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}function Cg(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:o}=t,{storedMarks:s}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return s},get selection(){return r},get doc(){return o},get tr(){return r=t.selection,o=t.doc,s=t.storedMarks,t}}}class xg{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:r}=this,{view:o}=t,{tr:s}=r,i=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...u)=>{const d=a(...u)(i);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(s),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:o,state:s}=this,{view:i}=o,l=[],a=!!e,c=e||s.tr,u=()=>(!a&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(c),l.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,h])=>[f,(...g)=>{const m=this.buildProps(c,t),v=h(...g)(m);return l.push(v),d}])),run:u};return d}createCan(e){const{rawCommands:t,state:r}=this,o=!1,s=e||r.tr,i=this.buildProps(s,o);return{...Object.fromEntries(Object.entries(t).map(([a,c])=>[a,(...u)=>c(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(s,o)}}buildProps(e,t=!0){const{rawCommands:r,editor:o,state:s}=this,{view:i}=o,l={tr:e,editor:o,view:i,state:Cg({state:s,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([a,c])=>[a,(...u)=>c(...u)(l)]))}};return l}}class bte{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,t)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(o=>o!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Qe(n,e,t){return n.config[e]===void 0&&n.parent?Qe(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?Qe(n.parent,e,t):null}):n.config[e]}function Sg(n){const e=n.filter(o=>o.type==="extension"),t=n.filter(o=>o.type==="node"),r=n.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:r}}function ik(n){const e=[],{nodeExtensions:t,markExtensions:r}=Sg(n),o=[...t,...r],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage,extensions:o},a=Qe(i,"addGlobalAttributes",l);if(!a)return;a().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([f,h])=>{e.push({type:d,name:f,attribute:{...s,...h}})})})})}),o.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage},a=Qe(i,"addAttributes",l);if(!a)return;const c=a();Object.entries(c).forEach(([u,d])=>{const f={...s,...d};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,e.push({type:i.name,name:u,attribute:f})})}),e}function jn(n,e){if(typeof n=="string"){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function fn(...n){return n.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(([o,s])=>{if(!r[o]){r[o]=s;return}if(o==="class"){const l=s?s.split(" "):[],a=r[o]?r[o].split(" "):[],c=l.filter(u=>!a.includes(u));r[o]=[...a,...c].join(" ")}else o==="style"?r[o]=[r[o],s].join("; "):r[o]=s}),r},{})}function lb(n,e){return e.filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,r)=>fn(t,r),{})}function lk(n){return typeof n=="function"}function Ot(n,e=void 0,...t){return lk(n)?e?n.bind(e)(...t):n(...t):n}function yte(n={}){return Object.keys(n).length===0&&n.constructor===Object}function wte(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function _S(n,e){return"style"in n?n:{...n,getAttrs:t=>{const r=n.getAttrs?n.getAttrs(t):n.attrs;if(r===!1)return!1;const o=e.reduce((s,i)=>{const l=i.attribute.parseHTML?i.attribute.parseHTML(t):wte(t.getAttribute(i.name));return l==null?s:{...s,[i.name]:l}},{});return{...r,...o}}}}function TS(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&yte(t)?!1:t!=null))}function Cte(n,e){var t;const r=ik(n),{nodeExtensions:o,markExtensions:s}=Sg(n),i=(t=o.find(c=>Qe(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(o.map(c=>{const u=r.filter(v=>v.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},f=n.reduce((v,w)=>{const b=Qe(w,"extendNodeSchema",d);return{...v,...b?b(c):{}}},{}),h=TS({...f,content:Ot(Qe(c,"content",d)),marks:Ot(Qe(c,"marks",d)),group:Ot(Qe(c,"group",d)),inline:Ot(Qe(c,"inline",d)),atom:Ot(Qe(c,"atom",d)),selectable:Ot(Qe(c,"selectable",d)),draggable:Ot(Qe(c,"draggable",d)),code:Ot(Qe(c,"code",d)),whitespace:Ot(Qe(c,"whitespace",d)),defining:Ot(Qe(c,"defining",d)),isolating:Ot(Qe(c,"isolating",d)),attrs:Object.fromEntries(u.map(v=>{var w;return[v.name,{default:(w=v==null?void 0:v.attribute)===null||w===void 0?void 0:w.default}]}))}),p=Ot(Qe(c,"parseHTML",d));p&&(h.parseDOM=p.map(v=>_S(v,u)));const g=Qe(c,"renderHTML",d);g&&(h.toDOM=v=>g({node:v,HTMLAttributes:lb(v,u)}));const m=Qe(c,"renderText",d);return m&&(h.toText=m),[c.name,h]})),a=Object.fromEntries(s.map(c=>{const u=r.filter(m=>m.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},f=n.reduce((m,v)=>{const w=Qe(v,"extendMarkSchema",d);return{...m,...w?w(c):{}}},{}),h=TS({...f,inclusive:Ot(Qe(c,"inclusive",d)),excludes:Ot(Qe(c,"excludes",d)),group:Ot(Qe(c,"group",d)),spanning:Ot(Qe(c,"spanning",d)),code:Ot(Qe(c,"code",d)),attrs:Object.fromEntries(u.map(m=>{var v;return[m.name,{default:(v=m==null?void 0:m.attribute)===null||v===void 0?void 0:v.default}]}))}),p=Ot(Qe(c,"parseHTML",d));p&&(h.parseDOM=p.map(m=>_S(m,u)));const g=Qe(c,"renderHTML",d);return g&&(h.toDOM=m=>g({mark:m,HTMLAttributes:lb(m,u)})),[c.name,h]}));return new rA({topNode:i,nodes:l,marks:a})}function Tm(n,e){return e.nodes[n]||e.marks[n]||null}function OS(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const xte=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(o,s,i,l)=>{var a,c;const u=((c=(a=o.type.spec).toText)===null||c===void 0?void 0:c.call(a,{node:o,pos:s,parent:i,index:l}))||o.textContent||"%leaf%";t+=o.isAtom?u:u.slice(0,Math.max(0,r-s))}),t};function c0(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class Eg{constructor(e){this.find=e.find,this.handler=e.handler}}const Ste=(n,e)=>{if(c0(e))return e.exec(n);const t=e(n);if(!t)return null;const r=[t.text];return r.index=t.index,r.input=n,r.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith),r.push(t.replaceWith)),r};function Gf(n){var e;const{editor:t,from:r,to:o,text:s,rules:i,plugin:l}=n,{view:a}=t;if(a.composing)return!1;const c=a.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(f=>f.type.spec.code))return!1;let u=!1;const d=xte(c)+s;return i.forEach(f=>{if(u)return;const h=Ste(d,f.find);if(!h)return;const p=a.state.tr,g=Cg({state:a.state,transaction:p}),m={from:r-(h[0].length-s.length),to:o},{commands:v,chain:w,can:b}=new xg({editor:t,state:g});f.handler({state:g,range:m,match:h,commands:v,chain:w,can:b})===null||!p.steps.length||(p.setMeta(l,{transform:p,from:r,to:o,text:s}),a.dispatch(p),u=!0)}),u}function Ete(n){const{editor:e,rules:t}=n,r=new Kr({state:{init(){return null},apply(o,s){const i=o.getMeta(r);if(i)return i;const l=o.getMeta("applyInputRules");return!!l&&setTimeout(()=>{const{from:c,text:u}=l,d=c+u.length;Gf({editor:e,from:c,to:d,text:u,rules:t,plugin:r})}),o.selectionSet||o.docChanged?null:s}},props:{handleTextInput(o,s,i,l){return Gf({editor:e,from:s,to:i,text:l,rules:t,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:s}=o.state.selection;s&&Gf({editor:e,from:s.pos,to:s.pos,text:"",rules:t,plugin:r})}),!1)},handleKeyDown(o,s){if(s.key!=="Enter")return!1;const{$cursor:i}=o.state.selection;return i?Gf({editor:e,from:i.pos,to:i.pos,text:` -`,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function _te(n){return typeof n=="number"}class Tte{constructor(e){this.find=e.find,this.handler=e.handler}}const Ote=(n,e,t)=>{if(c0(e))return[...n.matchAll(e)];const r=e(n,t);return r?r.map(o=>{const s=[o.text];return s.index=o.index,s.input=n,s.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith),s.push(o.replaceWith)),s}):[]};function Mte(n){const{editor:e,state:t,from:r,to:o,rule:s,pasteEvent:i,dropEvent:l}=n,{commands:a,chain:c,can:u}=new xg({editor:e,state:t}),d=[];return t.doc.nodesBetween(r,o,(h,p)=>{if(!h.isTextblock||h.type.spec.code)return;const g=Math.max(r,p),m=Math.min(o,p+h.content.size),v=h.textBetween(g-p,m-p,void 0,"");Ote(v,s.find,i).forEach(b=>{if(b.index===void 0)return;const y=g+b.index+1,x=y+b[0].length,E={from:t.tr.mapping.map(y),to:t.tr.mapping.map(x)},T=s.handler({state:t,range:E,match:b,commands:a,chain:c,can:u,pasteEvent:i,dropEvent:l});d.push(T)})}),d.every(h=>h!==null)}const Ate=n=>{var e;const t=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=t.clipboardData)===null||e===void 0||e.setData("text/html",n),t};function kte(n){const{editor:e,rules:t}=n;let r=null,o=!1,s=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l=typeof DragEvent<"u"?new DragEvent("drop"):null;const a=({state:u,from:d,to:f,rule:h,pasteEvt:p})=>{const g=u.tr,m=Cg({state:u,transaction:g});if(!(!Mte({editor:e,state:m,from:Math.max(d-1,0),to:f.b-1,rule:h,pasteEvent:p,dropEvent:l})||!g.steps.length))return l=typeof DragEvent<"u"?new DragEvent("drop"):null,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g};return t.map(u=>new Kr({view(d){const f=h=>{var p;r=!((p=d.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(s=r===d.dom.parentElement,l=f,!1),paste:(d,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return i=f,o=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,h)=>{const p=d[0],g=p.getMeta("uiEvent")==="paste"&&!o,m=p.getMeta("uiEvent")==="drop"&&!s,v=p.getMeta("applyPasteRules"),w=!!v;if(!g&&!m&&!w)return;if(w){const{from:x,text:E}=v,T=x+E.length,M=Ate(E);return a({rule:u,state:h,from:x,to:{b:T},pasteEvt:M})}const b=f.doc.content.findDiffStart(h.doc.content),y=f.doc.content.findDiffEnd(h.doc.content);if(!(!_te(b)||!y||b===y.b))return a({rule:u,state:h,from:b,to:y,pasteEvt:i})}}))}function Pte(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class ja{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=ja.resolve(e),this.schema=Cte(this.extensions,t),this.setupExtensions()}static resolve(e){const t=ja.sort(ja.flatten(e));return Pte(t.map(o=>o.name)).length,t}static flatten(e){return e.map(t=>{const r={name:t.name,options:t.options,storage:t.storage},o=Qe(t,"addExtensions",r);return o?[t,...this.flatten(o())]:t}).flat(10)}static sort(e){return e.sort((r,o)=>{const s=Qe(r,"priority")||100,i=Qe(o,"priority")||100;return s>i?-1:s{const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Tm(t.name,this.schema)},o=Qe(t,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=ja.sort([...this.extensions].reverse()),r=[],o=[],s=t.map(i=>{const l={name:i.name,options:i.options,storage:i.storage,editor:e,type:Tm(i.name,this.schema)},a=[],c=Qe(i,"addKeyboardShortcuts",l);let u={};if(i.type==="mark"&&Qe(i,"exitable",l)&&(u.ArrowRight=()=>Wr.handleExit({editor:e,mark:i})),c){const g=Object.fromEntries(Object.entries(c()).map(([m,v])=>[m,()=>v({editor:e})]));u={...u,...g}}const d=Gee(u);a.push(d);const f=Qe(i,"addInputRules",l);OS(i,e.options.enableInputRules)&&f&&r.push(...f());const h=Qe(i,"addPasteRules",l);OS(i,e.options.enablePasteRules)&&h&&o.push(...h());const p=Qe(i,"addProseMirrorPlugins",l);if(p){const g=p();a.push(...g)}return a}).flat();return[Ete({editor:e,rules:r}),...kte({editor:e,rules:o}),...s]}get attributes(){return ik(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Sg(this.extensions);return Object.fromEntries(t.filter(r=>!!Qe(r,"addNodeView")).map(r=>{const o=this.attributes.filter(a=>a.type===r.name),s={name:r.name,options:r.options,storage:r.storage,editor:e,type:jn(r.name,this.schema)},i=Qe(r,"addNodeView",s);if(!i)return[];const l=(a,c,u,d)=>{const f=lb(a,o);return i()({editor:e,node:a,getPos:u,decorations:d,HTMLAttributes:f,extension:r})};return[r.name,l]}))}setupExtensions(){this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const r={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Tm(e.name,this.schema)};e.type==="mark"&&(!((t=Ot(Qe(e,"keepOnSplit",r)))!==null&&t!==void 0)||t)&&this.splittableMarks.push(e.name);const o=Qe(e,"onBeforeCreate",r),s=Qe(e,"onCreate",r),i=Qe(e,"onUpdate",r),l=Qe(e,"onSelectionUpdate",r),a=Qe(e,"onTransaction",r),c=Qe(e,"onFocus",r),u=Qe(e,"onBlur",r),d=Qe(e,"onDestroy",r);o&&this.editor.on("beforeCreate",o),s&&this.editor.on("create",s),i&&this.editor.on("update",i),l&&this.editor.on("selectionUpdate",l),a&&this.editor.on("transaction",a),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}function Nte(n){return Object.prototype.toString.call(n).slice(8,-1)}function qf(n){return Nte(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function _g(n,e){const t={...n};return qf(n)&&qf(e)&&Object.keys(e).forEach(r=>{qf(e[r])&&qf(n[r])?t[r]=_g(n[r],e[r]):t[r]=e[r]}),t}class ar{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ot(Qe(this,"addOptions",{name:this.name}))),this.storage=Ot(Qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ar(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>_g(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new ar({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,t.options=Ot(Qe(t,"addOptions",{name:t.name})),t.storage=Ot(Qe(t,"addStorage",{name:t.name,options:t.options})),t}}function ak(n,e,t){const{from:r,to:o}=e,{blockSeparator:s=` - -`,textSerializers:i={}}=t||{};let l="";return n.nodesBetween(r,o,(a,c,u,d)=>{var f;a.isBlock&&c>r&&(l+=s);const h=i==null?void 0:i[a.type.name];if(h)return u&&(l+=h({node:a,pos:c,parent:u,index:d,range:e})),!1;a.isText&&(l+=(f=a==null?void 0:a.text)===null||f===void 0?void 0:f.slice(Math.max(r,c)-c,o-c))}),l}function ck(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const Ite=ar.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Kr({key:new li("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:r,selection:o}=e,{ranges:s}=o,i=Math.min(...s.map(u=>u.$from.pos)),l=Math.max(...s.map(u=>u.$to.pos)),a=ck(t);return ak(r,{from:i,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),Lte=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Rte=(n=!1)=>({commands:e})=>e.setContent("",n),$te=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:o}=r;return t&&o.forEach(({$from:s,$to:i})=>{n.doc.nodesBetween(s.pos,i.pos,(l,a)=>{if(l.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(a)),f=c.resolve(u.map(a+l.nodeSize)),h=d.blockRange(f);if(!h)return;const p=Qc(h);if(l.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(h.start,g)}(p||p===0)&&e.lift(h,p)})}),!0},Dte=n=>e=>n(e),Vte=()=>({state:n,dispatch:e})=>ste(n,e),Bte=(n,e)=>({editor:t,tr:r})=>{const{state:o}=t,s=o.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const i=r.mapping.map(e);return r.insert(i,s.content),r.setSelection(new Ct(r.doc.resolve(i-1))),!0},Fte=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const o=n.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===r.type){if(e){const l=o.before(s),a=o.after(s);n.delete(l,a).scrollIntoView()}return!0}return!1},zte=n=>({tr:e,state:t,dispatch:r})=>{const o=jn(n,t.schema),s=e.selection.$anchor;for(let i=s.depth;i>0;i-=1)if(s.node(i).type===o){if(r){const a=s.before(i),c=s.after(i);e.delete(a,c).scrollIntoView()}return!0}return!1},jte=n=>({tr:e,dispatch:t})=>{const{from:r,to:o}=n;return t&&e.delete(r,o),!0},Hte=()=>({state:n,dispatch:e})=>qee(n,e),Ute=()=>({commands:n})=>n.keyboardShortcut("Enter"),Wte=()=>({state:n,dispatch:e})=>ote(n,e);function op(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>t.strict?e[o]===n[o]:c0(e[o])?e[o].test(n[o]):e[o]===n[o]):!0}function ab(n,e,t={}){return n.find(r=>r.type===e&&op(r.attrs,t))}function Gte(n,e,t={}){return!!ab(n,e,t)}function u0(n,e,t={}){if(!n||!e)return;let r=n.parent.childAfter(n.parentOffset);if(n.parentOffset===r.offset&&r.offset!==0&&(r=n.parent.childBefore(n.parentOffset)),!r.node)return;const o=ab([...r.node.marks],e,t);if(!o)return;let s=r.index,i=n.start()+r.offset,l=s+1,a=i+r.node.nodeSize;for(ab([...r.node.marks],e,t);s>0&&o.isInSet(n.parent.child(s-1).marks);)s-=1,i-=n.parent.child(s).nodeSize;for(;l({tr:t,state:r,dispatch:o})=>{const s=Cl(n,r.schema),{doc:i,selection:l}=t,{$from:a,from:c,to:u}=l;if(o){const d=u0(a,s,e);if(d&&d.from<=c&&d.to>=u){const f=Ct.create(i,d.from,d.to);t.setSelection(f)}}return!0},Kte=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r({editor:t,view:r,tr:o,dispatch:s})=>{e={scrollIntoView:!0,...e};const i=()=>{f0()&&r.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(r.hasFocus()&&n===null||n===!1)return!0;if(s&&n===null&&!d0(t.state.selection))return i(),!0;const l=uk(o.doc,n)||t.state.selection,a=t.state.selection.eq(l);return s&&(a||o.setSelection(l),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),i()),!0},Jte=(n,e)=>t=>n.every((r,o)=>e(r,{...t,index:o})),Xte=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),dk=n=>{const e=n.childNodes;for(let t=e.length-1;t>=0;t-=1){const r=e[t];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?n.removeChild(r):r.nodeType===1&&dk(r)}return n};function MS(n){const e=`${n}`,t=new window.DOMParser().parseFromString(e,"text/html").body;return dk(t)}function sp(n,e,t){t={slice:!0,parseOptions:{},...t};const r=typeof n=="object"&&n!==null,o=typeof n=="string";if(r)try{return Array.isArray(n)&&n.length>0?Ne.fromArray(n.map(i=>e.nodeFromJSON(i))):e.nodeFromJSON(n)}catch(s){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return sp("",e,t)}if(o){let s=e,i=!1,l="";t.errorOnInvalidContent&&(s=new rA({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,l=typeof u=="string"?u:u.outerHTML,null)}]}})}));const a=Yy.fromSchema(s),c=t.slice?a.parseSlice(MS(n),t.parseOptions).content:a.parse(MS(n),t.parseOptions);if(t.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)});return c}return sp("",e,t)}function Zte(n,e,t){const r=n.steps.length-1;if(r{i===0&&(i=u)}),n.setSelection(_t.near(n.doc.resolve(i),t))}const Qte=n=>!("type"in n),ene=(n,e,t)=>({tr:r,dispatch:o,editor:s})=>{var i;if(o){t={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let l;try{l=sp(e,s.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions},errorOnInvalidContent:(i=t.errorOnInvalidContent)!==null&&i!==void 0?i:s.options.enableContentCheck})}catch{return!1}let{from:a,to:c}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},u=!0,d=!0;if((Qte(l)?l:[l]).forEach(p=>{p.check(),u=u?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),a===c&&d){const{parent:p}=r.doc.resolve(a);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(a-=1,c+=1)}let h;u?(Array.isArray(e)?h=e.map(p=>p.text||"").join(""):typeof e=="object"&&e&&e.text?h=e.text:h=e,r.insertText(h,a,c)):(h=l,r.replaceWith(a,c,h)),t.updateSelection&&Zte(r,r.steps.length-1,-1),t.applyInputRules&&r.setMeta("applyInputRules",{from:a,text:h}),t.applyPasteRules&&r.setMeta("applyPasteRules",{from:a,text:h})}return!0},tne=()=>({state:n,dispatch:e})=>ete(n,e),nne=()=>({state:n,dispatch:e})=>tte(n,e),rne=()=>({state:n,dispatch:e})=>Kee(n,e),one=()=>({state:n,dispatch:e})=>Zee(n,e),sne=()=>({state:n,dispatch:e,tr:t})=>{try{const r=gg(n.doc,n.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},ine=()=>({state:n,dispatch:e,tr:t})=>{try{const r=gg(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},lne=()=>({state:n,dispatch:e})=>Yee(n,e),ane=()=>({state:n,dispatch:e})=>Jee(n,e);function fk(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function cne(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,o,s,i;for(let l=0;l({editor:e,view:t,tr:r,dispatch:o})=>{const s=cne(n).split(/-(?!$)/),i=s.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return a==null||a.steps.forEach(c=>{const u=c.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Ed(n,e,t={}){const{from:r,to:o,empty:s}=n.selection,i=e?jn(e,n.schema):null,l=[];n.doc.nodesBetween(r,o,(d,f)=>{if(d.isText)return;const h=Math.max(r,f),p=Math.min(o,f+d.nodeSize);l.push({node:d,from:h,to:p})});const a=o-r,c=l.filter(d=>i?i.name===d.node.type.name:!0).filter(d=>op(d.node.attrs,t,{strict:!1}));return s?!!c.length:c.reduce((d,f)=>d+f.to-f.from,0)>=a}const dne=(n,e={})=>({state:t,dispatch:r})=>{const o=jn(n,t.schema);return Ed(t,o,e)?nte(t,r):!1},fne=()=>({state:n,dispatch:e})=>ite(n,e),hne=n=>({state:e,dispatch:t})=>{const r=jn(n,e.schema);return pte(r)(e,t)},pne=()=>({state:n,dispatch:e})=>rte(n,e);function Tg(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function AS(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,o)=>(t.includes(o)||(r[o]=n[o]),r),{})}const gne=(n,e)=>({tr:t,state:r,dispatch:o})=>{let s=null,i=null;const l=Tg(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(s=jn(n,r.schema)),l==="mark"&&(i=Cl(n,r.schema)),o&&t.selection.ranges.forEach(a=>{r.doc.nodesBetween(a.$from.pos,a.$to.pos,(c,u)=>{s&&s===c.type&&t.setNodeMarkup(u,void 0,AS(c.attrs,e)),i&&c.marks.length&&c.marks.forEach(d=>{i===d.type&&t.addMark(u,u+c.nodeSize,i.create(AS(d.attrs,e)))})})}),!0):!1},mne=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),vne=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),bne=()=>({state:n,dispatch:e})=>Xee(n,e),yne=()=>({state:n,dispatch:e})=>Qee(n,e),wne=()=>({state:n,dispatch:e})=>lte(n,e),Cne=()=>({state:n,dispatch:e})=>ute(n,e),xne=()=>({state:n,dispatch:e})=>cte(n,e);function cb(n,e,t={},r={}){return sp(n,e,{slice:!1,parseOptions:t,errorOnInvalidContent:r.errorOnInvalidContent})}const Sne=(n,e=!1,t={},r={})=>({editor:o,tr:s,dispatch:i,commands:l})=>{var a,c;const{doc:u}=s;if(t.preserveWhitespace!=="full"){const d=cb(n,o.schema,t,{errorOnInvalidContent:(a=r.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck});return i&&s.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return i&&s.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:u.content.size},n,{parseOptions:t,errorOnInvalidContent:(c=r.errorOnInvalidContent)!==null&&c!==void 0?c:o.options.enableContentCheck})};function uf(n,e){const t=Cl(e,n.schema),{from:r,to:o,empty:s}=n.selection,i=[];s?(n.storedMarks&&i.push(...n.storedMarks),i.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,o,a=>{i.push(...a.marks)});const l=i.find(a=>a.type.name===t.name);return l?{...l.attrs}:{}}function Ene(n){for(let e=0;e0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function h0(n){return e=>_ne(e.$from,n)}function Tne(n,e){const t=Ea.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}function One(n,e){const t={from:0,to:n.content.size};return ak(n,t,e)}function Mne(n,e){const t=jn(e,n.schema),{from:r,to:o}=n.selection,s=[];n.doc.nodesBetween(r,o,l=>{s.push(l)});const i=s.reverse().find(l=>l.type.name===t.name);return i?{...i.attrs}:{}}function Ane(n,e){const t=Tg(typeof e=="string"?e:e.name,n.schema);return t==="node"?Mne(n,e):t==="mark"?uf(n,e):{}}function hk(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(o=>{const s=t.resolve(n-1),i=u0(s,o.type);i&&r.push({mark:o,...i})}):t.nodesBetween(n,e,(o,s)=>{!o||(o==null?void 0:o.nodeSize)===void 0||r.push(...o.marks.map(i=>({from:s,to:s+o.nodeSize,mark:i})))}),r}function Ch(n,e,t){return Object.fromEntries(Object.entries(t).filter(([r])=>{const o=n.find(s=>s.type===e&&s.name===r);return o?o.attribute.keepOnSplit:!1}))}function ub(n,e,t={}){const{empty:r,ranges:o}=n.selection,s=e?Cl(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>op(d.attrs,t,{strict:!1}));let i=0;const l=[];if(o.forEach(({$from:d,$to:f})=>{const h=d.pos,p=f.pos;n.doc.nodesBetween(h,p,(g,m)=>{if(!g.isText&&!g.marks.length)return;const v=Math.max(h,m),w=Math.min(p,m+g.nodeSize),b=w-v;i+=b,l.push(...g.marks.map(y=>({mark:y,from:v,to:w})))})}),i===0)return!1;const a=l.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>op(d.mark.attrs,t,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),c=l.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,f)=>d+f.to-f.from,0);return(a>0?a+c:a)>=i}function kne(n,e,t={}){if(!e)return Ed(n,null,t)||ub(n,null,t);const r=Tg(e,n.schema);return r==="node"?Ed(n,e,t):r==="mark"?ub(n,e,t):!1}function kS(n,e){const{nodeExtensions:t}=Sg(e),r=t.find(i=>i.name===n);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},s=Ot(Qe(r,"group",o));return typeof s!="string"?!1:s.split(" ").includes("list")}function Pne(n){const e=n.type.createAndFill();return e?n.eq(e):!1}function pk(n){return n instanceof ct}function Nne(n,e,t){const o=n.state.doc.content.size,s=js(e,0,o),i=js(t,0,o),l=n.coordsAtPos(s),a=n.coordsAtPos(i,-1),c=Math.min(l.top,a.top),u=Math.max(l.bottom,a.bottom),d=Math.min(l.left,a.left),f=Math.max(l.right,a.right),h=f-d,p=u-c,v={top:c,bottom:u,left:d,right:f,width:h,height:p,x:d,y:c};return{...v,toJSON:()=>v}}function Ine(n,e,t){var r;const{selection:o}=e;let s=null;if(d0(o)&&(s=o.$cursor),s){const l=(r=n.storedMarks)!==null&&r!==void 0?r:s.marks();return!!t.isInSet(l)||!l.some(a=>a.type.excludes(t))}const{ranges:i}=o;return i.some(({$from:l,$to:a})=>{let c=l.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(l.pos,a.pos,(u,d,f)=>{if(c)return!1;if(u.isInline){const h=!f||f.type.allowsMarkType(t),p=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=h&&p}return!c}),c})}const Lne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const{selection:s}=t,{empty:i,ranges:l}=s,a=Cl(n,r.schema);if(o)if(i){const c=uf(r,a);t.addStoredMark(a.create({...c,...e}))}else l.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(f,h)=>{const p=Math.max(h,u),g=Math.min(h+f.nodeSize,d);f.marks.find(v=>v.type===a)?f.marks.forEach(v=>{a===v.type&&t.addMark(p,g,a.create({...v.attrs,...e}))}):t.addMark(p,g,a.create(e))})});return Ine(r,t,a)},Rne=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),$ne=(n,e={})=>({state:t,dispatch:r,chain:o})=>{const s=jn(n,t.schema);return s.isTextblock?o().command(({commands:i})=>ES(s,e)(t)?!0:i.clearNodes()).command(({state:i})=>ES(s,e)(i,r)).run():!1},Dne=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,o=js(n,0,r.content.size),s=ct.create(r,o);e.setSelection(s)}return!0},Vne=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:o,to:s}=typeof n=="number"?{from:n,to:n}:n,i=Ct.atStart(r).from,l=Ct.atEnd(r).to,a=js(o,i,l),c=js(s,i,l),u=Ct.create(r,a,c);e.setSelection(u)}return!0},Bne=n=>({state:e,dispatch:t})=>{const r=jn(n,e.schema);return vte(r)(e,t)};function PS(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(o=>e==null?void 0:e.includes(o.type.name));n.tr.ensureMarks(r)}}const Fne=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:o})=>{const{selection:s,doc:i}=e,{$from:l,$to:a}=s,c=o.extensionManager.attributes,u=Ch(c,l.node().type.name,l.node().attrs);if(s instanceof ct&&s.node.isBlock)return!l.parentOffset||!Ya(i,l.pos)?!1:(r&&(n&&PS(t,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const d=a.parentOffset===a.parent.content.size;s instanceof Ct&&e.deleteSelection();const f=l.depth===0?void 0:Ene(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=d&&f?[{type:f,attrs:u}]:void 0,p=Ya(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!p&&Ya(e.doc,e.mapping.map(l.pos),1,f?[{type:f}]:void 0)&&(p=!0,h=f?[{type:f,attrs:u}]:void 0),p&&(e.split(e.mapping.map(l.pos),1,h),f&&!d&&!l.parentOffset&&l.parent.type!==f)){const g=e.mapping.map(l.before()),m=e.doc.resolve(g);l.node(-1).canReplaceWith(m.index(),m.index()+1,f)&&e.setNodeMarkup(e.mapping.map(l.before()),f)}n&&PS(t,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},zne=n=>({tr:e,state:t,dispatch:r,editor:o})=>{var s;const i=jn(n,t.schema),{$from:l,$to:a}=t.selection,c=t.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(a))return!1;const u=l.node(-1);if(u.type!==i)return!1;const d=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==i||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let m=Ne.empty;const v=l.index(-1)?1:l.index(-2)?2:3;for(let T=l.depth-v;T>=l.depth-3;T-=1)m=Ne.from(l.node(T).copy(m));const w=l.indexAfter(-1){if(E>-1)return!1;T.isTextblock&&T.content.size===0&&(E=M+1)}),E>-1&&e.setSelection(Ct.near(e.doc.resolve(E))),e.scrollIntoView()}return!0}const f=a.pos===l.end()?u.contentMatchAt(0).defaultType:null,h=Ch(d,u.type.name,u.attrs),p=Ch(d,l.node().type.name,l.node().attrs);e.delete(l.pos,a.pos);const g=f?[{type:i,attrs:h},{type:f,attrs:p}]:[{type:i,attrs:h}];if(!Ya(e.doc,l.pos,2))return!1;if(r){const{selection:m,storedMarks:v}=t,{splittableMarks:w}=o.extensionManager,b=v||m.$to.parentOffset&&m.$from.marks();if(e.split(l.pos,2,g).scrollIntoView(),!b||!r)return!0;const y=b.filter(x=>w.includes(x.type.name));e.ensureMarks(y)}return!0},Om=(n,e)=>{const t=h0(i=>i.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&yl(n.doc,t.pos)&&n.join(t.pos),!0},Mm=(n,e)=>{const t=h0(i=>i.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(t.start).after(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&yl(n.doc,r)&&n.join(r),!0},jne=(n,e,t,r={})=>({editor:o,tr:s,state:i,dispatch:l,chain:a,commands:c,can:u})=>{const{extensions:d,splittableMarks:f}=o.extensionManager,h=jn(n,i.schema),p=jn(e,i.schema),{selection:g,storedMarks:m}=i,{$from:v,$to:w}=g,b=v.blockRange(w),y=m||g.$to.parentOffset&&g.$from.marks();if(!b)return!1;const x=h0(E=>kS(E.type.name,d))(g);if(b.depth>=1&&x&&b.depth-x.depth<=1){if(x.node.type===h)return c.liftListItem(p);if(kS(x.node.type.name,d)&&h.validContent(x.node.content)&&l)return a().command(()=>(s.setNodeMarkup(x.pos,h),!0)).command(()=>Om(s,h)).command(()=>Mm(s,h)).run()}return!t||!y||!l?a().command(()=>u().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>Om(s,h)).command(()=>Mm(s,h)).run():a().command(()=>{const E=u().wrapInList(h,r),T=y.filter(M=>f.includes(M.type.name));return s.ensureMarks(T),E?!0:c.clearNodes()}).wrapInList(h,r).command(()=>Om(s,h)).command(()=>Mm(s,h)).run()},Hne=(n,e={},t={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:s=!1}=t,i=Cl(n,r.schema);return ub(r,i,e)?o.unsetMark(i,{extendEmptyMarkRange:s}):o.setMark(i,e)},Une=(n,e,t={})=>({state:r,commands:o})=>{const s=jn(n,r.schema),i=jn(e,r.schema);return Ed(r,s,t)?o.setNode(i):o.setNode(s,t)},Wne=(n,e={})=>({state:t,commands:r})=>{const o=jn(n,t.schema);return Ed(t,o,e)?r.lift(o):r.wrapIn(o,e)},Gne=()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r=0;a-=1)i.step(l.steps[a].invert(l.docs[a]));if(s.text){const a=i.doc.resolve(s.from).marks();i.replaceWith(s.from,s.to,n.schema.text(s.text,a))}else i.delete(s.from,s.to)}return!0}}return!1},qne=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:o}=t;return r||e&&o.forEach(s=>{n.removeMark(s.$from.pos,s.$to.pos)}),!0},Kne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{var s;const{extendEmptyMarkRange:i=!1}=e,{selection:l}=t,a=Cl(n,r.schema),{$from:c,empty:u,ranges:d}=l;if(!o)return!0;if(u&&i){let{from:f,to:h}=l;const p=(s=c.marks().find(m=>m.type===a))===null||s===void 0?void 0:s.attrs,g=u0(c,a,p);g&&(f=g.from,h=g.to),t.removeMark(f,h,a)}else d.forEach(f=>{t.removeMark(f.$from.pos,f.$to.pos,a)});return t.removeStoredMark(a),!0},Yne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{let s=null,i=null;const l=Tg(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(s=jn(n,r.schema)),l==="mark"&&(i=Cl(n,r.schema)),o&&t.selection.ranges.forEach(a=>{const c=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(c,u,(d,f)=>{s&&s===d.type&&t.setNodeMarkup(f,void 0,{...d.attrs,...e}),i&&d.marks.length&&d.marks.forEach(h=>{if(i===h.type){const p=Math.max(f,c),g=Math.min(f+d.nodeSize,u);t.addMark(p,g,i.create({...h.attrs,...e}))}})})}),!0):!1},Jne=(n,e={})=>({state:t,dispatch:r})=>{const o=jn(n,t.schema);return dte(o,e)(t,r)},Xne=(n,e={})=>({state:t,dispatch:r})=>{const o=jn(n,t.schema);return fte(o,e)(t,r)};var Zne=Object.freeze({__proto__:null,blur:Lte,clearContent:Rte,clearNodes:$te,command:Dte,createParagraphNear:Vte,cut:Bte,deleteCurrentNode:Fte,deleteNode:zte,deleteRange:jte,deleteSelection:Hte,enter:Ute,exitCode:Wte,extendMarkRange:qte,first:Kte,focus:Yte,forEach:Jte,insertContent:Xte,insertContentAt:ene,joinBackward:rne,joinDown:nne,joinForward:one,joinItemBackward:sne,joinItemForward:ine,joinTextblockBackward:lne,joinTextblockForward:ane,joinUp:tne,keyboardShortcut:une,lift:dne,liftEmptyBlock:fne,liftListItem:hne,newlineInCode:pne,resetAttributes:gne,scrollIntoView:mne,selectAll:vne,selectNodeBackward:bne,selectNodeForward:yne,selectParentNode:wne,selectTextblockEnd:Cne,selectTextblockStart:xne,setContent:Sne,setMark:Lne,setMeta:Rne,setNode:$ne,setNodeSelection:Dne,setTextSelection:Vne,sinkListItem:Bne,splitBlock:Fne,splitListItem:zne,toggleList:jne,toggleMark:Hne,toggleNode:Une,toggleWrap:Wne,undoInputRule:Gne,unsetAllMarks:qne,unsetMark:Kne,updateAttributes:Yne,wrapIn:Jne,wrapInList:Xne});const Qne=ar.create({name:"commands",addCommands(){return{...Zne}}}),ere=ar.create({name:"editable",addProseMirrorPlugins(){return[new Kr({key:new li("editable"),props:{editable:()=>this.editor.options.editable}})]}}),tre=ar.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new Kr({key:new li("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),nre=ar.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:i})=>[()=>i.undoInputRule(),()=>i.command(({tr:l})=>{const{selection:a,doc:c}=l,{empty:u,$anchor:d}=a,{pos:f,parent:h}=d,p=d.parent.isTextblock&&f>0?l.doc.resolve(f-1):d,g=p.parent.type.spec.isolating,m=d.pos-d.parentOffset,v=g&&p.parent.childCount===1?m===d.pos:_t.atStart(c).from===f;return!u||!h.type.isTextblock||h.textContent.length||!v||v&&d.parent.type.name==="paragraph"?!1:i.clearNodes()}),()=>i.deleteSelection(),()=>i.joinBackward(),()=>i.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:i})=>[()=>i.deleteSelection(),()=>i.deleteCurrentNode(),()=>i.joinForward(),()=>i.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:i})=>[()=>i.newlineInCode(),()=>i.createParagraphNear(),()=>i.liftEmptyBlock(),()=>i.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},s={...r,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return f0()||fk()?s:o},addProseMirrorPlugins(){return[new Kr({key:new li("clearDocument"),appendTransaction:(n,e,t)=>{if(!(n.some(p=>p.docChanged)&&!e.doc.eq(t.doc)))return;const{empty:o,from:s,to:i}=e.selection,l=_t.atStart(e.doc).from,a=_t.atEnd(e.doc).to;if(o||!(s===l&&i===a)||!(t.doc.textBetween(0,t.doc.content.size," "," ").length===0))return;const d=t.tr,f=Cg({state:t,transaction:d}),{commands:h}=new xg({editor:this.editor,state:f});if(h.clearNodes(),!!d.steps.length)return d}})]}}),rre=ar.create({name:"tabindex",addProseMirrorPlugins(){return[new Kr({key:new li("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Bl{get name(){return this.node.type.name}constructor(e,t,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=t,this.currentNode=o}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,r=this.to;if(this.isBlock){if(this.content.size===0)return;t=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:t,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Bl(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Bl(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Bl(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,r)=>{const o=t.isBlock&&!t.isTextblock,s=this.pos+r+1,i=this.resolvedPos.doc.resolve(s);if(!o&&i.depth<=this.depth)return;const l=new Bl(i,this.editor,o,o?t:null);o&&(l.actualDepth=this.depth+1),e.push(new Bl(i,this.editor,o,o?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(t).length>0){const s=o.node.attrs,i=Object.keys(t);for(let l=0;l{r&&o.length>0||(i.node.type.name===e&&s.every(a=>t[a]===i.node.attrs[a])&&o.push(i),!(r&&o.length>0)&&(o=o.concat(i.querySelectorAll(e,t,r))))}),o}setAttribute(e){const t=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(t.from).run()}}const ore=`.ProseMirror { - position: relative; -} - -.ProseMirror { - word-wrap: break-word; - white-space: pre-wrap; - white-space: break-spaces; - -webkit-font-variant-ligatures: none; - font-variant-ligatures: none; - font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ -} - -.ProseMirror [contenteditable="false"] { - white-space: normal; -} - -.ProseMirror [contenteditable="false"] [contenteditable="true"] { - white-space: pre-wrap; -} - -.ProseMirror pre { - white-space: pre-wrap; -} - -img.ProseMirror-separator { - display: inline !important; - border: none !important; - margin: 0 !important; - width: 1px !important; - height: 1px !important; -} - -.ProseMirror-gapcursor { - display: none; - pointer-events: none; - position: absolute; - margin: 0; -} - -.ProseMirror-gapcursor:after { - content: ""; - display: block; - position: absolute; - top: -2px; - width: 20px; - border-top: 1px solid black; - animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; -} - -@keyframes ProseMirror-cursor-blink { - to { - visibility: hidden; - } -} - -.ProseMirror-hideselection *::selection { - background: transparent; -} - -.ProseMirror-hideselection *::-moz-selection { - background: transparent; -} - -.ProseMirror-hideselection * { - caret-color: transparent; -} - -.ProseMirror-focused .ProseMirror-gapcursor { - display: block; -} - -.tippy-box[data-animation=fade][data-state=hidden] { - opacity: 0 -}`;function sre(n,e,t){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute("data-tiptap-style",""),o.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(o),o}let ire=class extends bte{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t}},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=sre(ore,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const r=lk(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const t=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(t))});this.view.updateState(r)}createExtensionManager(){var e,t;const o=[...this.options.enableCoreExtensions?[ere,Ite.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),Qne,tre,nre,rre]:[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new ja(o,this)}createCommandManager(){this.commandManager=new xg({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=cb(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.options.extensions=this.options.extensions.filter(i=>i.name!=="collaboration"),this.createExtensionManager()}}),e=cb(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const t=uk(e,this.options.autofocus);this.view=new Dee(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:za.create({doc:e,selection:t||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(i=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(i)});return}const t=this.state.apply(e),r=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),s=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Ane(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,o=typeof e=="string"?t:e;return kne(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Tne(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` - -`,textSerializers:r={}}=e||{};return One(this.state.doc,{blockSeparator:t,textSerializers:{...ck(this.schema),...r}})}get isEmpty(){return Pne(this.state.doc)}getCharacterCount(){return this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,t))||null}$nodes(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Bl(t,this)}get $doc(){return this.$pos(0)}};function ha(n){return new Eg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=Ot(n.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:s}=e,i=r[r.length-1],l=r[0];if(i){const a=l.search(/\S/),c=t.from+l.indexOf(i),u=c+i.length;if(hk(t.from,t.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===n.type&&g!==h.mark.type)).filter(h=>h.to>c).length)return null;ut.from&&s.delete(t.from+a,c);const f=t.from+a+i.length;s.addMark(t.from+a,f,n.type.create(o||{})),s.removeStoredMark(n.type)}}})}function lre(n){return new Eg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=Ot(n.getAttributes,void 0,r)||{},{tr:s}=e,i=t.from;let l=t.to;const a=n.type.create(o);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=i+c;u>l?u=l:l=u+r[1].length;const d=r[0][r[0].length-1];s.insertText(d,i+r[0].length-1),s.replaceWith(u,l,a)}else if(r[0]){const c=n.type.isInline?i:i-1;s.insert(c,n.type.create(o)).delete(s.mapping.map(i),s.mapping.map(l))}s.scrollIntoView()}})}function db(n){return new Eg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=e.doc.resolve(t.from),s=Ot(n.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,s)}})}function _d(n){return new Eg({find:n.find,handler:({state:e,range:t,match:r,chain:o})=>{const s=Ot(n.getAttributes,void 0,r)||{},i=e.tr.delete(t.from,t.to),a=i.doc.resolve(t.from).blockRange(),c=a&&Xy(a,n.type,s);if(!c)return null;if(i.wrap(a,c),n.keepMarks&&n.editor){const{selection:d,storedMarks:f}=e,{splittableMarks:h}=n.editor.extensionManager,p=f||d.$to.parentOffset&&d.$from.marks();if(p){const g=p.filter(m=>h.includes(m.type.name));i.ensureMarks(g)}}if(n.keepAttributes){const d=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(d,s).run()}const u=i.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&yl(i.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&i.join(t.from-1)}})}class Wr{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ot(Qe(this,"addOptions",{name:this.name}))),this.storage=Ot(Qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Wr(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>_g(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Wr(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,t.options=Ot(Qe(t,"addOptions",{name:t.name})),t.storage=Ot(Qe(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const i=o.marks();if(!!!i.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const a=i.find(c=>(c==null?void 0:c.type.name)===t.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let Yr=class fb{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ot(Qe(this,"addOptions",{name:this.name}))),this.storage=Ot(Qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new fb(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>_g(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new fb(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,t.options=Ot(Qe(t,"addOptions",{name:t.name})),t.storage=Ot(Qe(t,"addStorage",{name:t.name,options:t.options})),t}};function pa(n){return new Tte({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:o})=>{const s=Ot(n.getAttributes,void 0,r,o);if(s===!1||s===null)return null;const{tr:i}=e,l=r[r.length-1],a=r[0];let c=t.to;if(l){const u=a.search(/\S/),d=t.from+a.indexOf(l),f=d+l.length;if(hk(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(m=>m===n.type&&m!==p.mark.type)).filter(p=>p.to>d).length)return null;ft.from&&i.delete(t.from+u,d),c=t.from+u+l.length,i.addMark(t.from+u,c,n.type.create(s||{})),i.removeStoredMark(n.type)}}})}var are="tippy-box",gk="tippy-content",cre="tippy-backdrop",mk="tippy-arrow",vk="tippy-svg-arrow",Il={passive:!0,capture:!0},bk=function(){return document.body};function Am(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function p0(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function yk(n,e){return typeof n=="function"?n.apply(void 0,e):n}function NS(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function ure(n){return n.split(/\s+/).filter(Boolean)}function Va(n){return[].concat(n)}function IS(n,e){n.indexOf(e)===-1&&n.push(e)}function dre(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function fre(n){return n.split("-")[0]}function ip(n){return[].slice.call(n)}function LS(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Wu(){return document.createElement("div")}function Og(n){return["Element","Fragment"].some(function(e){return p0(n,e)})}function hre(n){return p0(n,"NodeList")}function pre(n){return p0(n,"MouseEvent")}function gre(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function mre(n){return Og(n)?[n]:hre(n)?ip(n):Array.isArray(n)?n:ip(document.querySelectorAll(n))}function km(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function RS(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function vre(n){var e,t=Va(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function bre(n,e){var t=e.clientX,r=e.clientY;return n.every(function(o){var s=o.popperRect,i=o.popperState,l=o.props,a=l.interactiveBorder,c=fre(i.placement),u=i.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,g=s.top-r+d>a,m=r-s.bottom-f>a,v=s.left-t+h>a,w=t-s.right-p>a;return g||m||v||w})}function Pm(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[r](o,t)})}function $S(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var ts={isTouch:!1},DS=0;function yre(){ts.isTouch||(ts.isTouch=!0,window.performance&&document.addEventListener("mousemove",wk))}function wk(){var n=performance.now();n-DS<20&&(ts.isTouch=!1,document.removeEventListener("mousemove",wk)),DS=n}function wre(){var n=document.activeElement;if(gre(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function Cre(){document.addEventListener("touchstart",yre,Il),window.addEventListener("blur",wre)}var xre=typeof window<"u"&&typeof document<"u",Sre=xre?!!window.msCrypto:!1,Ere={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_re={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ro=Object.assign({appendTo:bk,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ere,_re),Tre=Object.keys(Ro),Ore=function(e){var t=Object.keys(e);t.forEach(function(r){Ro[r]=e[r]})};function Ck(n){var e=n.plugins||[],t=e.reduce(function(r,o){var s=o.name,i=o.defaultValue;if(s){var l;r[s]=n[s]!==void 0?n[s]:(l=Ro[s])!=null?l:i}return r},{});return Object.assign({},n,t)}function Mre(n,e){var t=e?Object.keys(Ck(Object.assign({},Ro,{plugins:e}))):Tre,r=t.reduce(function(o,s){var i=(n.getAttribute("data-tippy-"+s)||"").trim();if(!i)return o;if(s==="content")o[s]=i;else try{o[s]=JSON.parse(i)}catch{o[s]=i}return o},{});return r}function VS(n,e){var t=Object.assign({},e,{content:yk(e.content,[n])},e.ignoreAttributes?{}:Mre(n,e.plugins));return t.aria=Object.assign({},Ro.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}var Are=function(){return"innerHTML"};function hb(n,e){n[Are()]=e}function BS(n){var e=Wu();return n===!0?e.className=mk:(e.className=vk,Og(n)?e.appendChild(n):hb(e,n)),e}function FS(n,e){Og(e.content)?(hb(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?hb(n,e.content):n.textContent=e.content)}function pb(n){var e=n.firstElementChild,t=ip(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(gk)}),arrow:t.find(function(r){return r.classList.contains(mk)||r.classList.contains(vk)}),backdrop:t.find(function(r){return r.classList.contains(cre)})}}function xk(n){var e=Wu(),t=Wu();t.className=are,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Wu();r.className=gk,r.setAttribute("data-state","hidden"),FS(r,n.props),e.appendChild(t),t.appendChild(r),o(n.props,n.props);function o(s,i){var l=pb(e),a=l.box,c=l.content,u=l.arrow;i.theme?a.setAttribute("data-theme",i.theme):a.removeAttribute("data-theme"),typeof i.animation=="string"?a.setAttribute("data-animation",i.animation):a.removeAttribute("data-animation"),i.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?a.setAttribute("role",i.role):a.removeAttribute("role"),(s.content!==i.content||s.allowHTML!==i.allowHTML)&&FS(c,n.props),i.arrow?u?s.arrow!==i.arrow&&(a.removeChild(u),a.appendChild(BS(i.arrow))):a.appendChild(BS(i.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}xk.$$tippy=!0;var kre=1,Kf=[],Nm=[];function Pre(n,e){var t=VS(n,Object.assign({},Ro,Ck(LS(e)))),r,o,s,i=!1,l=!1,a=!1,c=!1,u,d,f,h=[],p=NS(N,t.interactiveDebounce),g,m=kre++,v=null,w=dre(t.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:m,reference:n,popper:Wu(),popperInstance:v,props:t,state:b,plugins:w,clearDelayTimeouts:ne,setProps:de,setContent:We,show:Ze,hide:Ie,hideWithInteractivity:qe,enable:Pe,disable:se,unmount:he,destroy:Y};if(!t.render)return y;var x=t.render(y),E=x.popper,T=x.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+y.id,y.popper=E,n._tippy=y,E._tippy=y;var M=w.map(function(ie){return ie.fn(y)}),O=n.hasAttribute("aria-expanded");return Oe(),Z(),q(),U("onCreate",[y]),t.showOnCreate&&J(),E.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&ce().addEventListener("mousemove",p)}),y;function k(){var ie=y.props.touch;return Array.isArray(ie)?ie:[ie,0]}function P(){return k()[0]==="hold"}function L(){var ie;return!!((ie=y.props.render)!=null&&ie.$$tippy)}function j(){return g||n}function ce(){var ie=j().parentNode;return ie?vre(ie):document}function R(){return pb(E)}function $(ie){return y.state.isMounted&&!y.state.isVisible||ts.isTouch||u&&u.type==="focus"?0:Am(y.props.delay,ie?0:1,Ro.delay)}function q(ie){ie===void 0&&(ie=!1),E.style.pointerEvents=y.props.interactive&&!ie?"":"none",E.style.zIndex=""+y.props.zIndex}function U(ie,Ae,Se){if(Se===void 0&&(Se=!0),M.forEach(function(it){it[ie]&&it[ie].apply(it,Ae)}),Se){var ze;(ze=y.props)[ie].apply(ze,Ae)}}function W(){var ie=y.props.aria;if(ie.content){var Ae="aria-"+ie.content,Se=E.id,ze=Va(y.props.triggerTarget||n);ze.forEach(function(it){var Ft=it.getAttribute(Ae);if(y.state.isVisible)it.setAttribute(Ae,Ft?Ft+" "+Se:Se);else{var on=Ft&&Ft.replace(Se,"").trim();on?it.setAttribute(Ae,on):it.removeAttribute(Ae)}})}}function Z(){if(!(O||!y.props.aria.expanded)){var ie=Va(y.props.triggerTarget||n);ie.forEach(function(Ae){y.props.interactive?Ae.setAttribute("aria-expanded",y.state.isVisible&&Ae===j()?"true":"false"):Ae.removeAttribute("aria-expanded")})}}function le(){ce().removeEventListener("mousemove",p),Kf=Kf.filter(function(ie){return ie!==p})}function ee(ie){if(!(ts.isTouch&&(a||ie.type==="mousedown"))){var Ae=ie.composedPath&&ie.composedPath()[0]||ie.target;if(!(y.props.interactive&&$S(E,Ae))){if(Va(y.props.triggerTarget||n).some(function(Se){return $S(Se,Ae)})){if(ts.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[y,ie]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||Te())}}}function Me(){a=!0}function ge(){a=!1}function be(){var ie=ce();ie.addEventListener("mousedown",ee,!0),ie.addEventListener("touchend",ee,Il),ie.addEventListener("touchstart",ge,Il),ie.addEventListener("touchmove",Me,Il)}function Te(){var ie=ce();ie.removeEventListener("mousedown",ee,!0),ie.removeEventListener("touchend",ee,Il),ie.removeEventListener("touchstart",ge,Il),ie.removeEventListener("touchmove",Me,Il)}function re(ie,Ae){te(ie,function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&Ae()})}function ae(ie,Ae){te(ie,Ae)}function te(ie,Ae){var Se=R().box;function ze(it){it.target===Se&&(Pm(Se,"remove",ze),Ae())}if(ie===0)return Ae();Pm(Se,"remove",d),Pm(Se,"add",ze),d=ze}function ve(ie,Ae,Se){Se===void 0&&(Se=!1);var ze=Va(y.props.triggerTarget||n);ze.forEach(function(it){it.addEventListener(ie,Ae,Se),h.push({node:it,eventType:ie,handler:Ae,options:Se})})}function Oe(){P()&&(ve("touchstart",I,{passive:!0}),ve("touchend",X,{passive:!0})),ure(y.props.trigger).forEach(function(ie){if(ie!=="manual")switch(ve(ie,I),ie){case"mouseenter":ve("mouseleave",X);break;case"focus":ve(Sre?"focusout":"blur",pe);break;case"focusin":ve("focusout",pe);break}})}function Ye(){h.forEach(function(ie){var Ae=ie.node,Se=ie.eventType,ze=ie.handler,it=ie.options;Ae.removeEventListener(Se,ze,it)}),h=[]}function I(ie){var Ae,Se=!1;if(!(!y.state.isEnabled||fe(ie)||l)){var ze=((Ae=u)==null?void 0:Ae.type)==="focus";u=ie,g=ie.currentTarget,Z(),!y.state.isVisible&&pre(ie)&&Kf.forEach(function(it){return it(ie)}),ie.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||i)&&y.props.hideOnClick!==!1&&y.state.isVisible?Se=!0:J(ie),ie.type==="click"&&(i=!Se),Se&&!ze&&ue(ie)}}function N(ie){var Ae=ie.target,Se=j().contains(Ae)||E.contains(Ae);if(!(ie.type==="mousemove"&&Se)){var ze=B().concat(E).map(function(it){var Ft,on=it._tippy,dr=(Ft=on.popperInstance)==null?void 0:Ft.state;return dr?{popperRect:it.getBoundingClientRect(),popperState:dr,props:t}:null}).filter(Boolean);bre(ze,ie)&&(le(),ue(ie))}}function X(ie){var Ae=fe(ie)||y.props.trigger.indexOf("click")>=0&&i;if(!Ae){if(y.props.interactive){y.hideWithInteractivity(ie);return}ue(ie)}}function pe(ie){y.props.trigger.indexOf("focusin")<0&&ie.target!==j()||y.props.interactive&&ie.relatedTarget&&E.contains(ie.relatedTarget)||ue(ie)}function fe(ie){return ts.isTouch?P()!==ie.type.indexOf("touch")>=0:!1}function _e(){xe();var ie=y.props,Ae=ie.popperOptions,Se=ie.placement,ze=ie.offset,it=ie.getReferenceClientRect,Ft=ie.moveTransition,on=L()?pb(E).arrow:null,dr=it?{getBoundingClientRect:it,contextElement:it.contextElement||j()}:n,fr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Eo){var Jr=Eo.state;if(L()){var ui=R(),Ms=ui.box;["placement","reference-hidden","escaped"].forEach(function($r){$r==="placement"?Ms.setAttribute("data-placement",Jr.placement):Jr.attributes.popper["data-popper-"+$r]?Ms.setAttribute("data-"+$r,""):Ms.removeAttribute("data-"+$r)}),Jr.attributes.popper={}}}},hr=[{name:"offset",options:{offset:ze}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ft}},fr];L()&&on&&hr.push({name:"arrow",options:{element:on,padding:3}}),hr.push.apply(hr,(Ae==null?void 0:Ae.modifiers)||[]),y.popperInstance=CO(dr,E,Object.assign({},Ae,{placement:Se,onFirstUpdate:f,modifiers:hr}))}function xe(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function V(){var ie=y.props.appendTo,Ae,Se=j();y.props.interactive&&ie===bk||ie==="parent"?Ae=Se.parentNode:Ae=yk(ie,[Se]),Ae.contains(E)||Ae.appendChild(E),y.state.isMounted=!0,_e()}function B(){return ip(E.querySelectorAll("[data-tippy-root]"))}function J(ie){y.clearDelayTimeouts(),ie&&U("onTrigger",[y,ie]),be();var Ae=$(!0),Se=k(),ze=Se[0],it=Se[1];ts.isTouch&&ze==="hold"&&it&&(Ae=it),Ae?r=setTimeout(function(){y.show()},Ae):y.show()}function ue(ie){if(y.clearDelayTimeouts(),U("onUntrigger",[y,ie]),!y.state.isVisible){Te();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ie.type)>=0&&i)){var Ae=$(!1);Ae?o=setTimeout(function(){y.state.isVisible&&y.hide()},Ae):s=requestAnimationFrame(function(){y.hide()})}}function Pe(){y.state.isEnabled=!0}function se(){y.hide(),y.state.isEnabled=!1}function ne(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function de(ie){if(!y.state.isDestroyed){U("onBeforeUpdate",[y,ie]),Ye();var Ae=y.props,Se=VS(n,Object.assign({},Ae,LS(ie),{ignoreAttributes:!0}));y.props=Se,Oe(),Ae.interactiveDebounce!==Se.interactiveDebounce&&(le(),p=NS(N,Se.interactiveDebounce)),Ae.triggerTarget&&!Se.triggerTarget?Va(Ae.triggerTarget).forEach(function(ze){ze.removeAttribute("aria-expanded")}):Se.triggerTarget&&n.removeAttribute("aria-expanded"),Z(),q(),T&&T(Ae,Se),y.popperInstance&&(_e(),B().forEach(function(ze){requestAnimationFrame(ze._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[y,ie])}}function We(ie){y.setProps({content:ie})}function Ze(){var ie=y.state.isVisible,Ae=y.state.isDestroyed,Se=!y.state.isEnabled,ze=ts.isTouch&&!y.props.touch,it=Am(y.props.duration,0,Ro.duration);if(!(ie||Ae||Se||ze)&&!j().hasAttribute("disabled")&&(U("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,L()&&(E.style.visibility="visible"),q(),be(),y.state.isMounted||(E.style.transition="none"),L()){var Ft=R(),on=Ft.box,dr=Ft.content;km([on,dr],0)}f=function(){var hr;if(!(!y.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,L()&&y.props.animation){var sn=R(),Eo=sn.box,Jr=sn.content;km([Eo,Jr],it),RS([Eo,Jr],"visible")}W(),Z(),IS(Nm,y),(hr=y.popperInstance)==null||hr.forceUpdate(),U("onMount",[y]),y.props.animation&&L()&&ae(it,function(){y.state.isShown=!0,U("onShown",[y])})}},V()}}function Ie(){var ie=!y.state.isVisible,Ae=y.state.isDestroyed,Se=!y.state.isEnabled,ze=Am(y.props.duration,1,Ro.duration);if(!(ie||Ae||Se)&&(U("onHide",[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,c=!1,i=!1,L()&&(E.style.visibility="hidden"),le(),Te(),q(!0),L()){var it=R(),Ft=it.box,on=it.content;y.props.animation&&(km([Ft,on],ze),RS([Ft,on],"hidden"))}W(),Z(),y.props.animation?L()&&re(ze,y.unmount):y.unmount()}}function qe(ie){ce().addEventListener("mousemove",p),IS(Kf,p),p(ie)}function he(){y.state.isVisible&&y.hide(),y.state.isMounted&&(xe(),B().forEach(function(ie){ie._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Nm=Nm.filter(function(ie){return ie!==y}),y.state.isMounted=!1,U("onHidden",[y]))}function Y(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),Ye(),delete n._tippy,y.state.isDestroyed=!0,U("onDestroy",[y]))}}function df(n,e){e===void 0&&(e={});var t=Ro.plugins.concat(e.plugins||[]);Cre();var r=Object.assign({},e,{plugins:t}),o=mre(n),s=o.reduce(function(i,l){var a=l&&Pre(l,r);return a&&i.push(a),i},[]);return Og(n)?s[0]:s}df.defaultProps=Ro;df.setDefaultProps=Ore;df.currentInput=ts;Object.assign({},Oy,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});df.setDefaultProps({render:xk});class Nre{constructor({editor:e,element:t,view:r,tippyOptions:o={},updateDelay:s=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:l,state:a,from:c,to:u})=>{const{doc:d,selection:f}=a,{empty:h}=f,p=!d.textBetween(c,u).length&&d0(a.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||h||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var a;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,a)=>{const c=!(a!=null&&a.selection.eq(l.state.selection)),u=!(a!=null&&a.doc.eq(l.state.doc));!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,u,a)},this.updateDelay))},this.updateHandler=(l,a,c,u)=>{var d,f,h;const{state:p,composing:g}=l,{selection:m}=p;if(g||!a&&!c)return;this.createTooltip();const{ranges:w}=m,b=Math.min(...w.map(E=>E.$from.pos)),y=Math.max(...w.map(E=>E.$to.pos));if(!((d=this.shouldShow)===null||d===void 0?void 0:d.call(this,{editor:this.editor,view:l,state:p,oldState:u,from:b,to:y}))){this.hide();return}(f=this.tippy)===null||f===void 0||f.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(pk(p.selection)){let E=l.nodeDOM(b);const T=E.dataset.nodeViewWrapper?E:E.querySelector("[data-node-view-wrapper]");if(T&&(E=T.firstChild),E)return E.getBoundingClientRect()}return Nne(l,b,y)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=s,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=df(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,o=r.selection.from!==r.selection.to;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,t);return}const s=!(t!=null&&t.selection.eq(e.state.selection)),i=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,s,i,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Sk=n=>new Kr({key:typeof n.pluginKey=="string"?new li(n.pluginKey):n.pluginKey,view:e=>new Nre({view:e,...n})});ar.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Sk({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});const Ire=me({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=D(null);return ot(()=>{const{updateDelay:r,editor:o,pluginKey:s,shouldShow:i,tippyOptions:l}=n;o.registerPlugin(Sk({updateDelay:r,editor:o,element:t.value,pluginKey:s,shouldShow:i,tippyOptions:l}))}),_n(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return et("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function zS(n){return nI((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class Lre extends ire{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=zS(this.view.state),this.reactiveExtensionStorage=zS(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),Zu(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const Rre=me({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=D(),t=bt();return ls(()=>{const r=n.editor;r&&r.options.element&&e.value&<(()=>{if(!e.value||!r.options.element.firstChild)return;const o=S(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,t&&(r.appContext={...t.appContext,provides:{...t.provides,...t.appContext.provides}}),r.setOptions({element:o}),r.createNodeViews()})}),_n(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,r.appContext=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){return et("div",{ref:n=>{this.rootEl=n}})}}),$re=/^\s*>\s$/,Dre=Yr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[_d({find:$re,type:this.type})]}}),Vre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Bre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Fre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,zre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,jre=Wr.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ha({find:Vre,type:this.type}),ha({find:Fre,type:this.type})]},addPasteRules(){return[pa({find:Bre,type:this.type}),pa({find:zre,type:this.type})]}}),Hre=Yr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",fn(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),jS=Wr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=uf(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),HS=/^\s*([-+*])\s$/,Ure=Yr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Hre.name,this.editor.getAttributes(jS.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=_d({find:HS,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=_d({find:HS,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(jS.name),editor:this.editor})),[n]}}),Wre=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,Gre=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,qre=Wr.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:n}){return["code",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ha({find:Wre,type:this.type})]},addPasteRules(){return[pa({find:Gre,type:this.type})]}}),Kre=/^```([a-z]+)?[\s\n]$/,Yre=/^~~~([a-z]+)?[\s\n]$/,Jre=Yr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var e;const{languageClassPrefix:t}=this.options,s=[...((e=n.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(i=>i.startsWith(t)).map(i=>i.replace(t,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:n,HTMLAttributes:e}){return["pre",fn(this.options.HTMLAttributes,e),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:e})=>e.setNode(this.name,n),toggleCodeBlock:n=>({commands:e})=>e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!n||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=n,{selection:t}=e,{$from:r,empty:o}=t;if(!o||r.parent.type!==this.type)return!1;const s=r.parentOffset===r.parent.nodeSize-2,i=r.parent.textContent.endsWith(` - -`);return!s||!i?!1:n.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=n,{selection:t,doc:r}=e,{$from:o,empty:s}=t;if(!s||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const l=o.after();return l===void 0||r.nodeAt(l)?!1:n.commands.exitCode()}}},addInputRules(){return[db({find:Kre,type:this.type,getAttributes:n=>({language:n[1]})}),db({find:Yre,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new Kr({key:new li("codeBlockVSCodeHandler"),props:{handlePaste:(n,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,s=o==null?void 0:o.mode;if(!t||!s)return!1;const{tr:i,schema:l}=n.state,a=l.text(t.replace(/\r\n?/g,` -`));return i.replaceSelectionWith(this.type.create({language:s},a)),i.selection.$from.parent.type!==this.type&&i.setSelection(Ct.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),n.dispatch(i),!0}}})]}}),Xre=Yr.create({name:"doc",topNode:!0,content:"block+"});function Zre(n={}){return new Kr({view(e){return new Qre(e,n)}})}class Qre{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=t.width)!==null&&r!==void 0?r:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let s=i=>{this[o](i)};return e.dom.addEventListener(o,s),{name:o,handler:s}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,r;if(t){let l=e.nodeBefore,a=e.nodeAfter;if(l||a){let c=this.editorView.nodeDOM(this.cursorPos-(l?l.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=l?u.bottom:u.top;l&&a&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let l=this.editorView.coordsAtPos(this.cursorPos);r={left:l.left-this.width/2,right:l.left+this.width/2,top:l.top,bottom:l.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let s,i;if(!o||o==document.body&&getComputedStyle(o).position=="static")s=-pageXOffset,i=-pageYOffset;else{let l=o.getBoundingClientRect();s=l.left-o.scrollLeft,i=l.top-o.scrollTop}this.element.style.left=r.left-s+"px",this.element.style.top=r.top-i+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),o=r&&r.type.spec.disableDropCursor,s=typeof o=="function"?o(this.editorView,t,e):o;if(t&&!s){let i=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=hA(this.editorView.state.doc,i,this.editorView.dragging.slice);l!=null&&(i=l)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const eoe=ar.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Zre(this.options)]}});class cn extends _t{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return cn.valid(r)?new cn(r):_t.near(r)}content(){return Ge.empty}eq(e){return e instanceof cn&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new cn(e.resolve(t.pos))}getBookmark(){return new g0(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!toe(e)||!noe(e))return!1;let r=t.type.spec.allowGapCursor;if(r!=null)return r;let o=t.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&cn.valid(e))return e;let o=e.pos,s=null;for(let i=e.depth;;i--){let l=e.node(i);if(t>0?e.indexAfter(i)0){s=l.child(t>0?e.indexAfter(i):e.index(i)-1);break}else if(i==0)return null;o+=t;let a=e.doc.resolve(o);if(cn.valid(a))return a}for(;;){let i=t>0?s.firstChild:s.lastChild;if(!i){if(s.isAtom&&!s.isText&&!ct.isSelectable(s)){e=e.doc.resolve(o+s.nodeSize*t),r=!1;continue e}break}s=i,o+=t;let l=e.doc.resolve(o);if(cn.valid(l))return l}return null}}}cn.prototype.visible=!1;cn.findFrom=cn.findGapCursorFrom;_t.jsonID("gapcursor",cn);class g0{constructor(e){this.pos=e}map(e){return new g0(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return cn.valid(t)?new cn(t):_t.near(t)}}function toe(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),r=n.node(e);if(t==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(t-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function noe(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),r=n.node(e);if(t==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(t);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function roe(){return new Kr({props:{decorations:loe,createSelectionBetween(n,e,t){return e.pos==t.pos&&cn.valid(t)?new cn(t):null},handleClick:soe,handleKeyDown:ooe,handleDOMEvents:{beforeinput:ioe}}})}const ooe=QA({ArrowLeft:Yf("horiz",-1),ArrowRight:Yf("horiz",1),ArrowUp:Yf("vert",-1),ArrowDown:Yf("vert",1)});function Yf(n,e){const t=n=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,s){let i=r.selection,l=e>0?i.$to:i.$from,a=i.empty;if(i instanceof Ct){if(!s.endOfTextblock(t)||l.depth==0)return!1;a=!1,l=r.doc.resolve(e>0?l.after():l.before())}let c=cn.findGapCursorFrom(l,e,a);return c?(o&&o(r.tr.setSelection(new cn(c))),!0):!1}}function soe(n,e,t){if(!n||!n.editable)return!1;let r=n.state.doc.resolve(e);if(!cn.valid(r))return!1;let o=n.posAtCoords({left:t.clientX,top:t.clientY});return o&&o.inside>-1&&ct.isSelectable(n.state.doc.nodeAt(o.inside))?!1:(n.dispatch(n.state.tr.setSelection(new cn(r))),!0)}function ioe(n,e){if(e.inputType!="insertCompositionText"||!(n.state.selection instanceof cn))return!1;let{$from:t}=n.state.selection,r=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!r)return!1;let o=Ne.empty;for(let i=r.length-1;i>=0;i--)o=Ne.from(r[i].createAndFill(null,o));let s=n.state.tr.replace(t.pos,t.pos,new Ge(o,0,0));return s.setSelection(Ct.near(s.doc.resolve(t.pos+1))),n.dispatch(s),!1}function loe(n){if(!(n.selection instanceof cn))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Mn.create(n.doc,[ao.widget(n.selection.head,e,{key:"gapcursor"})])}const aoe=ar.create({name:"gapCursor",addProseMirrorPlugins(){return[roe()]},extendNodeSchema(n){var e;const t={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(e=Ot(Qe(n,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),coe=Yr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",fn(this.options.HTMLAttributes,n)]},renderText(){return` -`},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:s}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,a=s||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&i){const d=a.filter(f=>l.includes(f.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),uoe=Yr.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:e}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,fn(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:n=>({commands:e})=>this.options.levels.includes(n.level)?e.setNode(this.name,n):!1,toggleHeading:n=>({commands:e})=>this.options.levels.includes(n.level)?e.toggleNode(this.name,"paragraph",n):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((n,e)=>({...n,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(n=>db({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var lp=200,Fn=function(){};Fn.prototype.append=function(e){return e.length?(e=Fn.from(e),!this.length&&e||e.length=t?Fn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))};Fn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Fn.prototype.forEach=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)};Fn.prototype.map=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(s,i){return o.push(e(s,i))},t,r),o};Fn.from=function(e){return e instanceof Fn?e:e&&e.length?new Ek(e):Fn.empty};var Ek=function(n){function e(r){n.call(this),this.values=r}n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,s){return o==0&&s==this.length?this:new e(this.values.slice(o,s))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,s,i,l){for(var a=s;a=i;a--)if(o(this.values[a],l+a)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=lp)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=lp)return new e(o.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(Fn);Fn.empty=new Ek([]);var doe=function(n){function e(t,r){n.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return rl&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,s)-l,i+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,s,i){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(s,l)-l,i+l)===!1||s=s?this.right.slice(r-s,o-s):this.left.slice(r,s).append(this.right.slice(0,o-s))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(Fn);const foe=500;class ko{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,s;t&&(o=this.remapping(r,this.items.length),s=o.maps.length);let i=e.tr,l,a,c=[],u=[];return this.items.forEach((d,f)=>{if(!d.step){o||(o=this.remapping(r,f+1),s=o.maps.length),s--,u.push(d);return}if(o){u.push(new Qo(d.map));let h=d.step.map(o.slice(s)),p;h&&i.maybeStep(h).doc&&(p=i.mapping.maps[i.mapping.maps.length-1],c.push(new Qo(p,void 0,void 0,c.length+u.length))),s--,p&&o.appendMap(p,s)}else i.maybeStep(d.step);if(d.selection)return l=o?d.selection.map(o.slice(s)):d.selection,a=new ko(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:i,selection:l}}addTransform(e,t,r,o){let s=[],i=this.eventCount,l=this.items,a=!o&&l.length?l.get(l.length-1):null;for(let u=0;upoe&&(l=hoe(l,c),i-=c),new ko(l.append(s),i)}remapping(e,t){let r=new Ka;return this.items.forEach((o,s)=>{let i=o.mirrorOffset!=null&&s-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,i)},e,t),r}addMaps(e){return this.eventCount==0?this:new ko(this.items.append(e.map(t=>new Qo(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-t),s=e.mapping,i=e.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--},o);let a=t;this.items.forEach(f=>{let h=s.getMirror(--a);if(h==null)return;i=Math.min(i,h);let p=s.maps[h];if(f.step){let g=e.steps[h].invert(e.docs[h]),m=f.selection&&f.selection.map(s.slice(a+1,h));m&&l++,r.push(new Qo(p,g,m))}else r.push(new Qo(p))},o);let c=[];for(let f=t;ffoe&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,o=[],s=0;return this.items.forEach((i,l)=>{if(l>=e)o.push(i),i.selection&&s++;else if(i.step){let a=i.step.map(t.slice(r)),c=a&&a.getMap();if(r--,c&&t.appendMap(c,r),a){let u=i.selection&&i.selection.map(t.slice(r));u&&s++;let d=new Qo(c.invert(),a,u),f,h=o.length-1;(f=o.length&&o[h].merge(d))?o[h]=f:o.push(d)}}else i.map&&r--},this.items.length,0),new ko(Fn.from(o.reverse()),s)}}ko.empty=new ko(Fn.empty,0);function hoe(n,e){let t;return n.forEach((r,o)=>{if(r.selection&&e--==0)return t=o,!1}),n.slice(t)}class Qo{constructor(e,t,r,o){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new Qo(t.getMap().invert(),t,this.selection)}}}class ki{constructor(e,t,r,o,s){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=o,this.prevComposition=s}}const poe=20;function goe(n,e,t,r){let o=t.getMeta(ra),s;if(o)return o.historyState;t.getMeta(boe)&&(n=new ki(n.done,n.undone,null,0,-1));let i=t.getMeta("appendedTransaction");if(t.steps.length==0)return n;if(i&&i.getMeta(ra))return i.getMeta(ra).redo?new ki(n.done.addTransform(t,void 0,r,xh(e)),n.undone,US(t.mapping.maps),n.prevTime,n.prevComposition):new ki(n.done,n.undone.addTransform(t,void 0,r,xh(e)),null,n.prevTime,n.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let l=t.getMeta("composition"),a=n.prevTime==0||!i&&n.prevComposition!=l&&(n.prevTime<(t.time||0)-r.newGroupDelay||!moe(t,n.prevRanges)),c=i?Im(n.prevRanges,t.mapping):US(t.mapping.maps);return new ki(n.done.addTransform(t,a?e.selection.getBookmark():void 0,r,xh(e)),ko.empty,c,t.time,l??n.prevComposition)}else return(s=t.getMeta("rebased"))?new ki(n.done.rebased(t,s),n.undone.rebased(t,s),Im(n.prevRanges,t.mapping),n.prevTime,n.prevComposition):new ki(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),Im(n.prevRanges,t.mapping),n.prevTime,n.prevComposition)}function moe(n,e){if(!e)return!1;if(!n.docChanged)return!0;let t=!1;return n.mapping.maps[0].forEach((r,o)=>{for(let s=0;s=e[s]&&(t=!0)}),t}function US(n){let e=[];for(let t=n.length-1;t>=0&&e.length==0;t--)n[t].forEach((r,o,s,i)=>e.push(s,i));return e}function Im(n,e){if(!n)return null;let t=[];for(let r=0;r{let o=ra.getState(t);if(!o||(n?o.undone:o.done).eventCount==0)return!1;if(r){let s=voe(o,t,n);s&&r(e?s.scrollIntoView():s)}return!0}}const Tk=_k(!1,!0),Ok=_k(!0,!0),woe=ar.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:e})=>Tk(n,e),redo:()=>({state:n,dispatch:e})=>Ok(n,e)}},addProseMirrorPlugins(){return[yoe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Coe=Yr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:n}){return["hr",fn(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n,state:e})=>{const{selection:t}=e,{$from:r,$to:o}=t,s=n();return r.parentOffset===0?s.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):pk(t)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:i,dispatch:l})=>{var a;if(l){const{$to:c}=i.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?i.setSelection(Ct.create(i.doc,c.pos+1)):c.nodeAfter.isBlock?i.setSelection(ct.create(i.doc,c.pos)):i.setSelection(Ct.create(i.doc,c.pos));else{const d=(a=c.parent.type.contentMatch.defaultType)===null||a===void 0?void 0:a.create();d&&(i.insert(u,d),i.setSelection(Ct.create(i.doc,u+1)))}i.scrollIntoView()}return!0}).run()}}},addInputRules(){return[lre({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),xoe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Soe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Eoe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,_oe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Toe=Wr.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ha({find:xoe,type:this.type}),ha({find:Eoe,type:this.type})]},addPasteRules(){return[pa({find:Soe,type:this.type}),pa({find:_oe,type:this.type})]}}),Ooe=Yr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",fn(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Moe=Yr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",fn(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),GS=Wr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=uf(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),qS=/^(\d+)\.\s$/,Aoe=Yr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",fn(this.options.HTMLAttributes,t),0]:["ol",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Moe.name,this.editor.getAttributes(GS.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=_d({find:qS,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=_d({find:qS,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(GS.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),koe=Yr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Poe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Noe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Ioe=Wr.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["s",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ha({find:Poe,type:this.type})]},addPasteRules(){return[pa({find:Noe,type:this.type})]}}),Loe=Yr.create({name:"text",group:"inline"}),Roe=ar.create({name:"starterKit",addExtensions(){var n,e,t,r,o,s,i,l,a,c,u,d,f,h,p,g,m,v;const w=[];return this.options.bold!==!1&&w.push(jre.configure((n=this.options)===null||n===void 0?void 0:n.bold)),this.options.blockquote!==!1&&w.push(Dre.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&w.push(Ure.configure((t=this.options)===null||t===void 0?void 0:t.bulletList)),this.options.code!==!1&&w.push(qre.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&w.push(Jre.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&w.push(Xre.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&w.push(eoe.configure((i=this.options)===null||i===void 0?void 0:i.dropcursor)),this.options.gapcursor!==!1&&w.push(aoe.configure((l=this.options)===null||l===void 0?void 0:l.gapcursor)),this.options.hardBreak!==!1&&w.push(coe.configure((a=this.options)===null||a===void 0?void 0:a.hardBreak)),this.options.heading!==!1&&w.push(uoe.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&w.push(woe.configure((u=this.options)===null||u===void 0?void 0:u.history)),this.options.horizontalRule!==!1&&w.push(Coe.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&w.push(Toe.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&w.push(Ooe.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&w.push(Aoe.configure((p=this.options)===null||p===void 0?void 0:p.orderedList)),this.options.paragraph!==!1&&w.push(koe.configure((g=this.options)===null||g===void 0?void 0:g.paragraph)),this.options.strike!==!1&&w.push(Ioe.configure((m=this.options)===null||m===void 0?void 0:m.strike)),this.options.text!==!1&&w.push(Loe.configure((v=this.options)===null||v===void 0?void 0:v.text)),w}}),$oe=Wr.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),Doe=Wr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=uf(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Voe=ar.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:n=>{var e;return(e=n.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:n=>n.color?{style:`color: ${n.color}`}:{}}}}]},addCommands(){return{setColor:n=>({chain:e})=>e().setMark("textStyle",{color:n}).run(),unsetColor:()=>({chain:n})=>n().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),Boe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Foe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,zoe=Wr.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:n}){return["mark",fn(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:e})=>e.setMark(this.name,n),toggleHighlight:n=>({commands:e})=>e.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ha({find:Boe,type:this.type})]},addPasteRules(){return[pa({find:Foe,type:this.type})]}}),joe=ar.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>{const e=n.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:e})=>this.options.alignments.includes(n)?this.options.types.map(t=>e.updateAttributes(t,{textAlign:n})).every(t=>t):!1,unsetTextAlign:()=>({commands:n})=>this.options.types.map(e=>n.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),Hoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Uoe=F("path",{fill:"currentColor",d:"M3 21v-2h18v2zm0-4v-2h12v2zm0-4v-2h18v2zm0-4V7h12v2zm0-4V3h18v2z"},null,-1),Woe=[Uoe];function Goe(n,e){return A(),G("svg",Hoe,[...Woe])}const qoe={name:"material-symbols-format-align-left",render:Goe},Koe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Yoe=F("path",{fill:"currentColor",d:"M3 21v-2h18v2zm4-4v-2h10v2zm-4-4v-2h18v2zm4-4V7h10v2zM3 5V3h18v2z"},null,-1),Joe=[Yoe];function Xoe(n,e){return A(),G("svg",Koe,[...Joe])}const Zoe={name:"material-symbols-format-align-center",render:Xoe},Qoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ese=F("path",{fill:"currentColor",d:"M3 5V3h18v2zm6 4V7h12v2zm-6 4v-2h18v2zm6 4v-2h12v2zm-6 4v-2h18v2z"},null,-1),tse=[ese];function nse(n,e){return A(),G("svg",Qoe,[...tse])}const rse={name:"material-symbols-format-align-right",render:nse},ose={viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},sse=F("path",{fill:"currentColor",d:"M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16M96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0m48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0"},null,-1),ise=[sse];function lse(n,e){return A(),G("svg",ose,[...ise])}const ase={name:"ph-trash",render:lse},cse=me({name:"DialogNode",setup(){const{t:n,tm:e,rt:t}=rn();return{t:n,tm:e,rt:t}},inject:["getGraph","getNode"],data(){return{preview:"",nodeSetFormVisible:!1,varDialogVisible:!1,formLabelWidth:"90px",vars:[],selectedVar:"",nodeData:{nodeName:this.t("lang.dialogNode.nodeName"),dialogText:"",dialogTextType:"",textFromLLM:!1,branches:[],nextStep:"WaitUserResponse",valid:!1,invalidMessages:[],newNode:!0},nextSteps:[{label:this.tm("lang.dialogNode.nextSteps")[0],value:"WaitUserResponse"},{label:this.tm("lang.dialogNode.nextSteps")[1],value:"GotoNextNode"}],loading:!1,lastEditRange:null,robotId:"",robotType:"",predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#c7158577"],editor:null,activeBtnColor:"#626aef",genTextVisible:!1,genTextReq:{system:"",user:""},textGenerating:!1,genTextBtnText:"Generate text",generatedText:""}},mounted(){const n=this.getNode(),e=n.getData();if($n(e,this.nodeData),this.setPreview(),this.nodeData.newNode){this.nodeData.nodeName+=e.nodeCnt.toString();const r=Gi();r.branchType="GotoAnotherNode",this.nodeData.branches.push(r);const o=this.$refs.nodeName.offsetHeight+this.$refs.nodeAnswer.offsetHeight+20,s=this.$refs.nodeName.offsetWidth-15;this.getNode().addPort({group:"absolute",args:{x:s,y:o},markup:[{tagName:"circle",selector:"bopdy"},{tagName:"rect",selector:"bg"}],attrs:{text:{text:this.nextSteps[0].label,fontSize:12},bg:{ref:"text",refWidth:"100%",refHeight:"110%",refX:"-100%",refX2:-15,refY:-5,fill:"rgb(235,238,245)"}}}),this.nodeData.newNode=!1,n.removeData({silent:!0}),n.setData(this.nodeData,{silent:!1})}this.validate(),n.on("change:data",({current:r})=>{this.nodeSetFormVisible=!0}),lt(()=>{this.setPortPos()});const{robotId:t}=Fe("robotId");this.robotId=t,this.robotType=eJ(this.robotId),this.robotType=="TextBot"&&(this.nodeData.dialogTextType=this.robotType=="TextBot"?"TextHtml":"TextPlain",this.editor=new Lre({extensions:[Voe,zoe.configure({multicolor:!0}),Roe,$oe,Doe,joe.configure({types:["heading","paragraph"]})],content:this.nodeData.dialogText,editorProps:{transformPastedText(r){return r.replace(/\u200B/g,"").replace(/\xA0/g," ")},transformPastedHTML(r){return r.replace(/\u200B/g,"").replace(/\xA0/g," ")}},onUpdate:()=>{this.$emit("update:modelValue",this.editor.getHTML()),this.nodeData.dialogText=this.editor.getHTML()}}),this.$emit("update:modelValue",this.nodeData.dialogText))},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{hideForm(){this.nodeSetFormVisible=!1},validate(){const n=this.nodeData,e=n.invalidMessages;e.splice(0,e.length),n.nodeName||e.push(this.tm("lang.dialogNode.errors")[0]),n.dialogText.length<1&&e.push(this.tm("lang.dialogNode.errors")[1]),n.dialogText.length>200&&e.push(this.tm("lang.dialogNode.errors")[2]),n.valid=e.length==0},getTextWidth(){return this.$refs.nodeAnswer.offsetWidth},setPreview(){let n=this.nodeData.dialogText.replace(/<[^>]+>/g,"").replace(/\r/g,"");if(n){const e=n.split(` -`);e.length>3&&e.splice(3,e.length-3,"......");const t=this.getNode();e.forEach(function(r,o,s){if(this.$refs.nodeAnswer.getBoundingClientRect().width>t.size().width){const i=(this.$refs.nodeAnswer.scrollWidth-t.size().width)/t.size().width;s[o]=r.substring(0,Math.floor(i*r.length)-5)+"..."}},this),n=e.join(` -`),lt(()=>{this.setPortPos()})}this.preview=n},setPortPos(){const n=this.getNode(),e=n.getPortAt(0),t=this.$refs.nodeName.offsetHeight+this.$refs.nodeAnswer.offsetHeight+20;n.setPortProp(e.id,["args","y"],t),n.resize(n.size().width,20+t,{direction:"bottom"})},saveForm(){let n="";for(let o=0;o0&&(this.lastEditRange=n.getRangeAt(0))},async showVarsForm(){let n=await tt("GET","variable",null,null,null);n&&n.status==200&&n.data&&(this.vars=n.data),this.varDialogVisible=!0},insertVar(){this.nodeData.dialogText+="`"+this.selectedVar+"`",this.varDialogVisible=!1},changeEditorNote(){if(this.nodeData.dialogText)if(this.textEditor=="1")br.confirm("Switch to plain text and all styles will be lost. Whether to continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{const n=this.nodeData.dialogText.replace(/<\/p>/g,` -`).trim(),e=/(<([^>]+)>)/ig;this.nodeData.dialogText=n.replace(e,"")}).catch(()=>{this.textEditor="2"});else{const n="

"+this.nodeData.dialogText.replace(/\n/g,"

")+"

";this.$refs.editor.setContent(n)}},async genText(){const n=[{role:"user",content:this.genTextReq.user}];this.genTextReq.system&&n.push({role:"system",content:this.genTextReq.system});const e={robot_id:this.robotId,prompt:JSON.stringify(n)};this.textGenerating=!0,this.genTextBtnText="Generating",this.generatedText="";const o=(await fetch("http://localhost:12715/ai/text/generation",{method:"POST",headers:{"Content-Type":"text/event-stream"},body:JSON.stringify(e)})).body.pipeThrough(new TextDecoderStream).getReader();for(;;){const{value:s,done:i}=await o.read();if(this.processGenedText(s),i){if(this.textGenerating=!1,this.genTextVisible=!1,this.editor){const l=this.editor.state.doc.content.size;this.editor.commands.insertContentAt(l,this.generatedText)}else this.nodeData.dialogText+=this.generatedText;break}}},processGenedText(n){if(n==null||n==null)return;const e=n.split(` - -`);let t="";e.forEach((r,o,s)=>{r.split(` -`).forEach((l,a,c)=>{if(l.indexOf("data: ")==0){let u=l.substring(6);u.length>0&&(t+=u)}})}),t.length>0&&(this.generatedText+=t)},showColorPicker(){this.$refs.colorPicker.click()}},components:{EpPlus:Fu,EpWarning:bl,RiBold:eX,RiItalic:sX,RiStrikethrough:uX,RiUnderline:gX,MaterialSymbolsFormatAlignLeft:qoe,MaterialSymbolsFormatAlignCenter:Zoe,MaterialSymbolsFormatAlignRight:rse,BiHighlighter:_X,RiFontColor:wX,RiHeading:kX,RiListUnordered:RX,RiListOrdered:FX,RiChatQuoteLine:WX,IcBaselineHorizontalRule:JX,PhTrash:ase,IcBaselineUndo:tZ,IcBaselineRedo:iZ,EditorContent:Rre,BubbleMenu:Ire},props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],watch:{modelValue(n){this.editor.getHTML()!==n&&this.editor.commands.setContent(n,!1)}}}),use={class:"nodeBox"},dse={ref:"nodeName",class:"nodeTitle"},fse={key:2,class:"menubar"},hse={class:"demo-drawer__footer"},pse={class:"dialog-footer"},gse={class:"dialog-footer"};function mse(n,e,t,r,o,s){const i=at("EpWarning"),l=dt,a=Rr,c=wn,u=nr,d=at("bubble-menu"),f=at("RiBold"),h=Tn,p=at("RiItalic"),g=at("RiStrikethrough"),m=at("RiUnderline"),v=at("MaterialSymbolsFormatAlignLeft"),w=at("MaterialSymbolsFormatAlignCenter"),b=at("MaterialSymbolsFormatAlignRight"),y=at("BiHighlighter"),x=at("RiFontColor"),E=at("RiHeading"),T=at("RiListUnordered"),M=at("RiListOrdered"),O=at("RiChatQuoteLine"),k=at("IcBaselineHorizontalRule"),P=at("PhTrash"),L=at("IcBaselineUndo"),j=at("IcBaselineRedo"),ce=zy,R=at("editor-content"),$=at("EpPlus"),q=Ts,U=_s,W=tr,Z=Ss,le=vl;return A(),G("div",use,[F("div",dse,[H(oe(n.nodeData.nodeName)+" ",1),Le(F("span",null,[C(a,{class:"box-item",effect:"dark",content:n.nodeData.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(l,{color:"red",size:"16"},{default:_(()=>[C(i)]),_:1})]),_:1},8,["content"])],512),[[Ue,n.nodeData.invalidMessages.length>0]])],512),F("div",{ref:"nodeAnswer",style:{"white-space":"pre-wrap","font-size":"12px"}},oe(n.preview),513),C(Z,{modelValue:n.nodeSetFormVisible,"onUpdate:modelValue":e[27]||(e[27]=ee=>n.nodeSetFormVisible=ee),title:n.nodeData.nodeName,direction:"rtl",size:"72%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(W,{model:n.nodeData},{default:_(()=>[C(u,{label:n.t("lang.common.nodeName"),"label-width":n.formLabelWidth},{default:_(()=>[C(c,{modelValue:n.nodeData.nodeName,"onUpdate:modelValue":e[0]||(e[0]=ee=>n.nodeData.nodeName=ee),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),C(u,{label:n.t("lang.dialogNode.form.label"),"label-width":n.formLabelWidth},{default:_(()=>[n.editor==null||n.robotType!="TextBot"?(A(),ye(c,{key:0,ref:"textArea",modelValue:n.nodeData.dialogText,"onUpdate:modelValue":e[1]||(e[1]=ee=>n.nodeData.dialogText=ee),type:"textarea",onBlur:n.getSel},null,8,["modelValue","onBlur"])):we("",!0),n.editor&&n.robotType=="TextBot"?(A(),ye(d,{key:1,id:"bubbleMenu",editor:n.editor,"tippy-options":{duration:100}},{default:_(()=>[F("button",{type:"button",class:Q(["inactive",{"is-active":n.editor.isActive("bold")}]),onClick:e[2]||(e[2]=ee=>n.editor.chain().focus().toggleBold().run())}," bold ",2),F("button",{type:"button",class:Q(["inactive",{"is-active":n.editor.isActive("italic")}]),onClick:e[3]||(e[3]=ee=>n.editor.chain().focus().toggleItalic().run())}," italic ",2),F("button",{type:"button",class:Q(["inactive",{"is-active":n.editor.isActive("strike")}]),onClick:e[4]||(e[4]=ee=>n.editor.chain().focus().toggleStrike().run())}," strike ",2)]),_:1},8,["editor"])):we("",!0),n.editor&&n.robotType=="TextBot"?(A(),G("div",fse,[C(ce,{size:"normal"},{default:_(()=>[C(h,{color:n.editor.isActive("bold")?n.activeBtnColor:"",onClick:e[5]||(e[5]=ee=>n.editor.chain().focus().toggleBold().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(f)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("italic")?n.activeBtnColor:"",onClick:e[6]||(e[6]=ee=>n.editor.chain().focus().toggleItalic().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(p)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("strike")?n.activeBtnColor:"",onClick:e[7]||(e[7]=ee=>n.editor.chain().focus().toggleStrike().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(g)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("underline")?n.activeBtnColor:"",onClick:e[8]||(e[8]=ee=>n.editor.chain().focus().toggleUnderline().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(m)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive({textAlign:"left"})?n.activeBtnColor:"",onClick:e[9]||(e[9]=ee=>n.editor.chain().focus().setTextAlign("left").run())},{default:_(()=>[C(l,null,{default:_(()=>[C(v)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive({textAlign:"center"})?n.activeBtnColor:"",onClick:e[10]||(e[10]=ee=>n.editor.chain().focus().setTextAlign("center").run())},{default:_(()=>[C(l,null,{default:_(()=>[C(w)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive({textAlign:"right"})?n.activeBtnColor:"",onClick:e[11]||(e[11]=ee=>n.editor.chain().focus().setTextAlign("right").run())},{default:_(()=>[C(l,null,{default:_(()=>[C(b)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("highlight")?n.activeBtnColor:"",onClick:e[12]||(e[12]=ee=>n.editor.chain().focus().toggleHighlight().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(y)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.getAttributes("textStyle").color,onClick:n.showColorPicker},{default:_(()=>[C(l,null,{default:_(()=>[C(x)]),_:1})]),_:1},8,["color","onClick"]),C(h,{color:n.editor.isActive("heading",{level:1})?n.activeBtnColor:"",onClick:e[13]||(e[13]=ee=>n.editor.chain().focus().toggleHeading({level:1}).run())},{default:_(()=>[C(l,null,{default:_(()=>[C(E)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("bulletList")?n.activeBtnColor:"",onClick:e[14]||(e[14]=ee=>n.editor.chain().focus().toggleBulletList().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(T)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("orderedList")?n.activeBtnColor:"",onClick:e[15]||(e[15]=ee=>n.editor.chain().focus().toggleOrderedList().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(M)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("blockquote")?n.activeBtnColor:"",onClick:e[16]||(e[16]=ee=>n.editor.chain().focus().toggleBlockquote().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(O)]),_:1})]),_:1},8,["color"]),C(h,{onClick:e[17]||(e[17]=ee=>n.editor.chain().focus().setHorizontalRule().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(k)]),_:1})]),_:1}),C(h,{onClick:e[18]||(e[18]=ee=>n.editor.chain().focus().clearNodes().unsetAllMarks().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(P)]),_:1})]),_:1}),C(h,{onClick:e[19]||(e[19]=ee=>n.editor.chain().focus().undo().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(L)]),_:1})]),_:1}),C(h,{onClick:e[20]||(e[20]=ee=>n.editor.chain().focus().redo().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(j)]),_:1})]),_:1})]),_:1}),F("input",{ref:"colorPicker",type:"color",style:{visibility:"hidden"},onInput:e[21]||(e[21]=ee=>n.editor.chain().focus().setColor(ee.target.value).run())},null,544)])):we("",!0),n.editor&&n.robotType=="TextBot"?(A(),ye(R,{key:3,editor:n.editor,style:{width:"100%",border:"#e5e9f2 1px solid"},modelValue:n.nodeData.dialogText,"onUpdate:modelValue":e[22]||(e[22]=ee=>n.nodeData.dialogText=ee)},null,8,["editor","modelValue"])):we("",!0)]),_:1},8,["label","label-width"]),C(u,{label:"","label-width":n.formLabelWidth},{default:_(()=>[C(h,{onClick:n.showVarsForm},{default:_(()=>[C(l,null,{default:_(()=>[C($)]),_:1}),H(" "+oe(n.t("lang.dialogNode.form.addVar")),1)]),_:1},8,["onClick"]),C(h,{onClick:e[23]||(e[23]=ee=>n.genTextVisible=!0)},{default:_(()=>[H(" Generate text from LLM ")]),_:1})]),_:1},8,["label-width"]),C(u,{label:n.t("lang.dialogNode.form.nextStep"),"label-width":n.formLabelWidth},{default:_(()=>[C(U,{modelValue:n.nodeData.nextStep,"onUpdate:modelValue":e[24]||(e[24]=ee=>n.nodeData.nextStep=ee),placeholder:n.t("lang.dialogNode.form.choose")},{default:_(()=>[(A(!0),G(Re,null,St(n.nextSteps,ee=>(A(),ye(q,{key:ee.label,label:ee.label,value:ee.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","label-width"])]),_:1},8,["model"]),F("div",hse,[C(h,{type:"primary",loading:n.loading,onClick:e[25]||(e[25]=ee=>n.saveForm())},{default:_(()=>[H(oe(n.t("lang.common.save")),1)]),_:1},8,["loading"]),C(h,{onClick:e[26]||(e[26]=ee=>n.hideForm())},{default:_(()=>[H(oe(n.t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"]),C(le,{modelValue:n.varDialogVisible,"onUpdate:modelValue":e[30]||(e[30]=ee=>n.varDialogVisible=ee),title:n.t("lang.dialogNode.var.title"),width:"30%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",pse,[C(h,{type:"primary",onClick:n.insertVar},{default:_(()=>[H(oe(n.t("lang.common.insert")),1)]),_:1},8,["onClick"]),C(h,{onClick:e[29]||(e[29]=ee=>n.varDialogVisible=!1)},{default:_(()=>[H(oe(n.t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(U,{modelValue:n.selectedVar,"onUpdate:modelValue":e[28]||(e[28]=ee=>n.selectedVar=ee),class:"m-2",placeholder:n.t("lang.dialogNode.var.choose"),size:"large"},{default:_(()=>[(A(!0),G(Re,null,St(n.vars,ee=>(A(),ye(q,{key:ee.varName,label:ee.varName,value:ee.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["modelValue","title"]),C(le,{modelValue:n.genTextVisible,"onUpdate:modelValue":e[34]||(e[34]=ee=>n.genTextVisible=ee),title:"Prompt",width:"70%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",gse,[C(h,{type:"primary",onClick:n.genText,loading:n.textGenerating},{default:_(()=>[H(oe(n.genTextBtnText),1)]),_:1},8,["onClick","loading"]),C(h,{onClick:e[33]||(e[33]=ee=>n.genTextVisible=!1)},{default:_(()=>[H(oe(n.t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(W,{model:n.genTextReq},{default:_(()=>[C(u,{label:"System","label-width":n.formLabelWidth},{default:_(()=>[C(c,{modelValue:n.genTextReq.system,"onUpdate:modelValue":e[31]||(e[31]=ee=>n.genTextReq.system=ee),autocomplete:"on"},null,8,["modelValue"])]),_:1},8,["label-width"]),C(u,{label:"User *","label-width":n.formLabelWidth},{default:_(()=>[C(c,{modelValue:n.genTextReq.user,"onUpdate:modelValue":e[32]||(e[32]=ee=>n.genTextReq.user=ee),autocomplete:"on",row:5,type:"textarea"},null,8,["modelValue"])]),_:1},8,["label-width"]),n.generatedText.length>0?(A(),ye(u,{key:0,label:"","label-width":n.formLabelWidth},{default:_(()=>[H(" Following generated text will be inserted when finish. ")]),_:1},8,["label-width"])):we("",!0),C(u,{label:"","label-width":n.formLabelWidth},{default:_(()=>[H(oe(n.generatedText),1)]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}const vse=So(cse,[["render",mse],["__scopeId","data-v-794c26b8"]]),bse={class:"nodeBox"},yse={class:"demo-drawer__footer"},KS="90px",wse={__name:"EndNode",setup(n){const{t:e,tm:t,rt:r}=rn(),o=D(!1),s=vt({nodeName:"The end",endingText:"",valid:!1,invalidMessages:[],newNode:!0}),i=D(),l=Fe("getNode");l().on("change:data",({current:h})=>{o.value=!0}),ot(async()=>{const p=l().getData();$n(p,s),s.newNode&&(s.nodeName+=p.nodeCnt.toString(),s.newNode=!1),c()});function c(){const h=s,p=h.invalidMessages;p.splice(0,p.length),h.endingText&&h.endingText.length>1e4&&p.push(""),h.valid=p.length==0}function u(){o.value=!1}const d=D();function f(){const h=l();c(),h.removeData({silent:!0}),h.setData(s,{silent:!1}),u();const p=i.value.offsetHeight+d.value.offsetHeight;h.resize(h.size().width,20+p,{direction:"bottom"})}return(h,p)=>{const g=dt,m=Rr,v=wn,w=nr,b=tr,y=Tn,x=Ss;return A(),G("div",bse,[F("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[H(oe(s.nodeName)+" ",1),Le(F("span",null,[C(m,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(g,{color:"red",size:"16"},{default:_(()=>[C(S(bl))]),_:1})]),_:1},8,["content"])],512),[[Ue,s.invalidMessages.length>0]])],512),F("div",{ref_key:"nodeAnswer",ref:d,style:{"white-space":"pre-wrap","font-size":"12px"}},oe(s.endingText),513),C(x,{modelValue:o.value,"onUpdate:modelValue":p[4]||(p[4]=E=>o.value=E),title:s.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(b,{"label-position":h.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:_(()=>[C(w,{label:S(e)("lang.common.nodeName"),"label-width":KS},{default:_(()=>[C(v,{modelValue:s.nodeName,"onUpdate:modelValue":p[0]||(p[0]=E=>s.nodeName=E)},null,8,["modelValue"])]),_:1},8,["label"]),C(w,{label:"Ending text","label-width":KS},{default:_(()=>[C(v,{modelValue:s.endingText,"onUpdate:modelValue":p[1]||(p[1]=E=>s.endingText=E),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["label-position","model"]),F("div",yse,[C(y,{type:"primary",loading:h.loading,onClick:p[2]||(p[2]=E=>f())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(y,{onClick:p[3]||(p[3]=E=>u())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Cse=So(wse,[["__scopeId","data-v-51676cd2"]]),xse={class:"nodeBox"},Sse={class:"nodeTitle"},fu="110px",Ese={__name:"GotoNode",setup(n){const{t:e,tm:t,rt:r}=rn(),o=Fe("getNode"),{subflowNames:s,updateSubFlowNames:i}=Fe("subFlowNamesFn"),l=D(!1),a=D([]),c=D([]),u=t("lang.gotoNode.types"),d=[{label:u[1],value:"GotoMainFlow",disabled:!1},{label:u[2],value:"GotoSubFlow",disabled:!1},{label:u[3],value:"GotoExternalLink",disabled:!1}],f=vt({nodeName:e("lang.gotoNode.nodeName"),brief:"",gotoType:"",gotoMainFlowId:"",gotoSubFlowName:"",gotoSubFlowId:"",externalLink:"",valid:!1,invalidMessages:[],newNode:!0}),h=D(!1);o().on("change:data",({current:x})=>{l.value=!0}),ot(async()=>{const E=o().getData();$n(E,f),p(f.goToType),f.newNode&&(f.nodeName+=E.nodeCnt.toString()),f.newNode=!1,v();const T=await tt("GET","mainflow",null,null,null);T.status==200&&(a.value=T.data),E.gotoSubFlowId&&await g(E.gotoMainFlowId)});async function p(x){x=="GotoMainFlow"||x=="GotoSubFlow"&&(c.value=i(),h.value=!0)}async function g(x){if(x){const E=await tt("GET","subflow/simple",{mainFlowId:x,data:""},null,null);E.status==200&&(c.value=E.data)}else c.value=i();h.value=!0}const m=t("lang.gotoNode.errors");function v(){const x=f,E=x.invalidMessages;E.splice(0,E.length),x.nodeName||E.push(m[0]),x.gotoType||E.push(m[1]),x.gotoType=="GotoSubFlow"&&!x.gotoSubFlowId&&E.push(m[2]),x.gotoType=="GotoExternalLink"&&!x.externalLink&&E.push(m[3]),x.valid=E.length==0}function w(){l.value=!1}const b=t("lang.gotoNode.briefs");function y(){if(f.brief=b[0]+": ",f.gotoType=="Terminate")f.brief+=b[1];else if(f.gotoType=="GotoMainFlow"){f.brief+=b[4]+` -`;for(let E=0;E{const T=dt,M=Rr,O=wn,k=nr,P=Ts,L=_s,j=tr,ce=Tn,R=Ss;return A(),G("div",xse,[F("div",Sse,[H(oe(f.nodeName)+" ",1),Le(F("span",null,[C(M,{class:"box-item",effect:"dark",content:f.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(T,{color:"red",size:"16"},{default:_(()=>[C(S(bl))]),_:1})]),_:1},8,["content"])],512),[[Ue,f.invalidMessages.length>0]])]),F("div",null,oe(f.brief),1),l.value?(A(),ye(R,{key:0,modelValue:l.value,"onUpdate:modelValue":E[7]||(E[7]=$=>l.value=$),title:f.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(j,{"label-position":x.labelPosition,"label-width":"70px",model:f,style:{"max-width":"700px"}},{default:_(()=>[C(k,{label:S(e)("lang.common.nodeName"),"label-width":fu},{default:_(()=>[C(O,{modelValue:f.nodeName,"onUpdate:modelValue":E[0]||(E[0]=$=>f.nodeName=$)},null,8,["modelValue"])]),_:1},8,["label"]),C(k,{label:S(e)("lang.gotoNode.gotoType"),"label-width":fu},{default:_(()=>[C(L,{modelValue:f.gotoType,"onUpdate:modelValue":E[1]||(E[1]=$=>f.gotoType=$),placeholder:S(e)("lang.gotoNode.gotoTypePH"),onChange:p},{default:_(()=>[(A(),G(Re,null,St(d,$=>C(P,{key:$.label,label:$.label,value:$.value,disabled:$.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Le(F("div",null,[C(k,{label:S(e)("lang.gotoNode.gotoMainFlow"),"label-width":fu},{default:_(()=>[C(L,{modelValue:f.gotoMainFlowId,"onUpdate:modelValue":E[2]||(E[2]=$=>f.gotoMainFlowId=$),placeholder:S(e)("lang.gotoNode.gotoMainFlowPH"),onChange:g},{default:_(()=>[(A(!0),G(Re,null,St(a.value,$=>(A(),ye(P,{key:$.id,label:$.name,value:$.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[Ue,f.gotoType==="GotoMainFlow"]]),Le(F("div",null,[C(k,{label:S(e)("lang.gotoNode.gotoSubFlow"),"label-width":fu},{default:_(()=>[C(L,{modelValue:f.gotoSubFlowId,"onUpdate:modelValue":E[3]||(E[3]=$=>f.gotoSubFlowId=$),placeholder:S(e)("lang.gotoNode.gotoSubFlowPH")},{default:_(()=>[(A(!0),G(Re,null,St(c.value,$=>(A(),ye(P,{key:$.id,label:$.name,value:$.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[Ue,h.value]]),Le(F("div",null,[C(k,{label:S(e)("lang.gotoNode.externalLink"),"label-width":fu},{default:_(()=>[C(O,{modelValue:f.externalLink,"onUpdate:modelValue":E[4]||(E[4]=$=>f.externalLink=$)},null,8,["modelValue"])]),_:1},8,["label"])],512),[[Ue,f.gotoType==="GotoExternalLink"]])]),_:1},8,["label-position","model"]),F("div",null,[C(ce,{type:"primary",loading:x.loading,onClick:E[5]||(E[5]=$=>y())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(ce,{onClick:E[6]||(E[6]=$=>w())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):we("",!0)])}}},_se=So(Ese,[["__scopeId","data-v-49c90c90"]]),m0=n=>(Bd("data-v-dc1ae126"),n=n(),Fd(),n),Tse={class:"nodeBox"},Ose=m0(()=>F("div",null,[F("strong",null,"Please note"),H(" that this is just calling the interface, but the returned data will be ignored.")],-1)),Mse=m0(()=>F("div",null,"If you need to obtain data, please create a variable and select a certain interface as the source of the data.",-1)),Ase=m0(()=>F("div",null,"Checkout tutorial.",-1)),kse={class:"demo-drawer__footer"},Rm="100px",Pse={__name:"ExternalHttpNode",setup(n){const{t:e,tm:t,rt:r}=rn(),o=D(!1),s=Fe("getNode"),{robotId:i}=Fe("robotId"),l=s(),a=vt([]),c=D(),u=D(),d=vt({nodeName:"ExternalHttpNode",httpApiName:"",httpApiId:"",valid:!1,invalidMessages:[],newNode:!0,branches:[]}),f=()=>{const m=d,v=m.invalidMessages;v.splice(0,v.length),(d.httpApiName==""||d.httpApiId=="")&&v.push("Please choose a HTTP interface"),s().getPortAt(0).id==""&&v.push('Please connect "Next" to another node'),m.valid=v.length==0},h=()=>{const m=s().getPortAt(0),v=d.branches[0];v.branchName="Next",v.branchId=m.id,f(),l.removeData({silent:!0}),l.setData(d,{silent:!1}),g()},p=m=>{for(var v in a)if(a[v].id==m){d.httpApiName=a[v].name;break}},g=()=>{o.value=!1};return l.on("change:data",({current:m})=>{o.value=!0}),ot(async()=>{const m=await tt("GET","external/http",{robotId:i},null,null);if(m.status==200)for(var v in m.data)m.data.hasOwnProperty(v)&&a.push(m.data[v]);l.addPort({group:"absolute",args:{x:c.value.offsetWidth-15,y:c.value.offsetHeight+50},attrs:{text:{text:"Next",fontSize:12}}}),d.branches.push(Gi())}),(m,v)=>{const w=dt,b=Rr,y=wn,x=nr,E=Ts,T=_s,M=Ky,O=tr,k=Tn,P=Ss;return A(),G("div",Tse,[F("div",{ref_key:"nodeName",ref:c,class:"nodeTitle"},[H(oe(d.nodeName)+" ",1),Le(F("span",null,[C(b,{class:"box-item",effect:"dark",content:d.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(w,{color:"red",size:"16"},{default:_(()=>[C(S(bl))]),_:1})]),_:1},8,["content"])],512),[[Ue,d.invalidMessages.length>0]])],512),F("div",null,"Call Http: "+oe(d.httpApiName),1),C(P,{modelValue:o.value,"onUpdate:modelValue":v[5]||(v[5]=L=>o.value=L),title:d.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(O,{"label-position":m.labelPosition,"label-width":"70px",model:d,style:{"max-width":"850px"}},{default:_(()=>[C(x,{label:S(e)("lang.common.nodeName"),"label-width":Rm},{default:_(()=>[C(y,{modelValue:d.nodeName,"onUpdate:modelValue":v[0]||(v[0]=L=>d.nodeName=L)},null,8,["modelValue"])]),_:1},8,["label"]),C(x,{label:"HTTP APIs","label-width":Rm},{default:_(()=>[C(T,{ref_key:"apisRef",ref:u,modelValue:d.httpApiId,"onUpdate:modelValue":v[1]||(v[1]=L=>d.httpApiId=L),placeholder:"Choose an http interface",onChange:v[2]||(v[2]=L=>p(L))},{default:_(()=>[(A(!0),G(Re,null,St(a,L=>(A(),ye(E,{key:L.id,label:L.name,value:L.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(x,{label:"","label-width":Rm},{default:_(()=>[C(M,{size:"large"},{default:_(()=>[Ose,Mse,Ase]),_:1})]),_:1})]),_:1},8,["label-position","model"]),F("div",kse,[C(k,{type:"primary",loading:m.loading,onClick:v[3]||(v[3]=L=>h())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(k,{onClick:v[4]||(v[4]=L=>g())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Nse=So(Pse,[["__scopeId","data-v-dc1ae126"]]),Ise=n=>(Bd("data-v-ec944c20"),n=n(),Fd(),n),Lse={class:"nodeBox"},Rse=["checked"],$se=Ise(()=>F("label",{for:"_asyncSend_"},"Send asynchronously",-1)),Dse={class:"demo-drawer__footer"},Vse={__name:"SendEmailNode",setup(n){const{t:e,tm:t}=rn(),r=vt({nodeName:"Send email node",from:"",to:"",toRecipients:[],cc:"",ccRecipients:[],bcc:"",bccRecipients:[],subject:"",content:"",contentType:"TextHtml",asyncSend:!0,valid:!1,invalidMessages:[],branches:[],newNode:!0});let o=!0;const s=D(),i=D(""),l=D(""),a=D(!1),c=Fe("getNode"),u=c(),d=[];u.on("change:data",({current:m})=>{a.value=!0}),ot(async()=>{const m=u.getData();$n(m,r),r.newNode?(r.nodeName+=m.nodeCnt.toString(),f(),r.newNode=!1):o=r.asyncSend;let v=await tt("GET","variable",null,null,null);v&&v.status==200&&v.data&&(d.splice(0,d.length),v.data.forEach(function(w,b,y){this.push({label:w.varName,value:w.varName})},d)),v=await tt("GET","management/settings",null,null,null),v&&v.status==200&&v.data&&(i.value=v.data.smtpHost,l.value=v.data.emailVerificationRegex),h()});const f=()=>{u.removePorts();const m=s.value.offsetHeight+50,v=s.value.offsetWidth-15;r.asyncSend?u.addPort({group:"absolute",args:{x:v,y:m},attrs:{text:{text:t("lang.dialogNode.nextSteps")[1],fontSize:12}}}):(u.addPort({group:"absolute",args:{x:v,y:m},attrs:{text:{text:t("lang.collectNode.branches")[0],fontSize:12}}}),u.addPort({group:"absolute",args:{x:v,y:m+20},attrs:{text:{text:t("lang.collectNode.branches")[1],fontSize:12}}}),u.resize(u.size().width,40+m,{direction:"bottom"}))},h=()=>{const m=r,v=m.invalidMessages;v.splice(0,v.length),i.value||v.push("SMTP host is not configured"),m.nodeName||v.push("Need to fill in the node name");const w=new RegExp(l.value);m.to?m.to.split(";").forEach(function(b){b.match(w)?m.toRecipients.push(b):v.push(b+" is not a valid email format")}):v.push("Need to fill in the email recipient"),m.cc&&m.cc.split(";").forEach(function(b){b.match(w)?m.ccRecipients.push(b):v.push(b+" is not a valid email format")}),m.bcc&&m.bcc.split(";").forEach(function(b){b.match(w)?m.bccRecipients.push(b):v.push(b+" is not a valid email format")}),m.subject||v.push("Need to fill in the email subject"),m.content||v.push("Need to fill in the email content"),(m.branches==null||m.branches.length==0)&&v.push("Wrong node branch information"),m.valid=v.length==0},p=()=>{o!=r.asyncSend&&(o=r.asyncSend,f());const m=c(),v=m.getPorts();r.branches.splice(0,r.branches.length);for(let w=0;w1?"EmailSentSuccessfully":"GotoAnotherNode",r.branches.push(b)}h(),m.removeData({silent:!0}),m.setData(r,{silent:!1}),g()},g=()=>{a.value=!1};return(m,v)=>{const w=dt,b=Rr,y=wn,x=nr,E=jy,T=ag,M=tr,O=Tn,k=Ss;return A(),G("div",Lse,[F("div",{ref_key:"nodeName",ref:s,class:"nodeTitle"},[H(oe(r.nodeName)+" ",1),Le(F("span",null,[C(b,{class:"box-item",effect:"dark",content:r.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(w,{color:"yellow",size:"16"},{default:_(()=>[C(S(bl))]),_:1})]),_:1},8,["content"])],512),[[Ue,r.invalidMessages.length>0]])],512),F("div",null,"To: "+oe(r.to),1),F("div",null,"Subject: "+oe(r.subject),1),C(k,{modelValue:a.value,"onUpdate:modelValue":v[11]||(v[11]=P=>a.value=P),title:r.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(M,{"label-position":m.labelPosition,"label-width":"100px",model:r,style:{"max-width":"500px"}},{default:_(()=>[C(x,{label:S(e)("lang.common.nodeName")},{default:_(()=>[C(y,{modelValue:r.nodeName,"onUpdate:modelValue":v[0]||(v[0]=P=>r.nodeName=P)},null,8,["modelValue"])]),_:1},8,["label"]),C(x,{label:"From","label-width":m.formLabelWidth},{default:_(()=>[C(y,{modelValue:r.from,"onUpdate:modelValue":v[1]||(v[1]=P=>r.from=P),placeholder:""},null,8,["modelValue"])]),_:1},8,["label-width"]),C(x,{label:"To"},{default:_(()=>[C(y,{modelValue:r.to,"onUpdate:modelValue":v[2]||(v[2]=P=>r.to=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(x,{label:""},{default:_(()=>[H(" Separate multiple recipients with semicolons ")]),_:1}),C(x,{label:"Cc"},{default:_(()=>[C(y,{modelValue:r.cc,"onUpdate:modelValue":v[3]||(v[3]=P=>r.cc=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(x,{label:"Bcc"},{default:_(()=>[C(y,{modelValue:r.bcc,"onUpdate:modelValue":v[4]||(v[4]=P=>r.bcc=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(x,{label:"Subject"},{default:_(()=>[C(y,{modelValue:r.subject,"onUpdate:modelValue":v[5]||(v[5]=P=>r.subject=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(x,{label:"Content"},{default:_(()=>[C(y,{modelValue:r.content,"onUpdate:modelValue":v[6]||(v[6]=P=>r.content=P),rows:2,type:"textarea",placeholder:"Please input"},null,8,["modelValue"])]),_:1}),C(x,{label:"Content type"},{default:_(()=>[C(T,{modelValue:r.contentType,"onUpdate:modelValue":v[7]||(v[7]=P=>r.contentType=P),class:"ml-4"},{default:_(()=>[C(E,{label:"TextHtml",size:"large"},{default:_(()=>[H("text/html")]),_:1}),C(E,{label:"TextPlain",size:"large"},{default:_(()=>[H("text/plain")]),_:1})]),_:1},8,["modelValue"])]),_:1}),C(x,{label:""},{default:_(()=>[Le(F("input",{type:"checkbox",id:"_asyncSend_","onUpdate:modelValue":v[8]||(v[8]=P=>r.asyncSend=P),checked:r.asyncSend},null,8,Rse),[[Xi,r.asyncSend]]),$se]),_:1})]),_:1},8,["label-position","model"]),F("div",Dse,[C(O,{type:"primary",loading:m.loading,onClick:v[9]||(v[9]=P=>p())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(O,{onClick:v[10]||(v[10]=P=>g())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Bse=So(Vse,[["__scopeId","data-v-ec944c20"]]),Fse={class:"nodeBox"},zse=["innerHTML"],jse={__name:"LlmChatNode",setup(n){const{t:e,tm:t,rt:r}=rn(),o=vt({nodeName:"Llm chat node",brief:"",prompt:"",promptText:"",nodeExitType:"exitByIntent",contextLength:5,exitCondition:{"":""},exitIntent:"",exitSpecialInputs:"",maxChatTimes:1,responseStreaming:!1,connectTimeout:1e3,readTimeout:1e4,whenTimeoutThen:null,valid:!1,invalidMessages:[],branches:[],newNode:!0}),s=vt({}),i=Fe("getNode"),{robotId:l}=Fe("robotId"),a=D(!1),c=vt([]),u=D(""),d=D(""),f=D(),h=D(!1),p=D("DoNothing"),g=D("");i().on("change:data",({current:y})=>{a.value=!0}),ot(async()=>{const y=i(),x=y.getData();$n(x,o),o.newNode&&(o.nodeName+=x.nodeCnt.toString(),y.addPort({group:"absolute",args:{x:f.value.offsetWidth-15,y:104},markup:[{tagName:"circle",selector:"bopdy"},{tagName:"rect",selector:"bg"}],attrs:{text:{text:"Next",fontSize:12},bg:{ref:"text",refWidth:"100%",refHeight:"110%",refX:"-100%",refX2:-15,refY:-5,fill:"rgb(235,238,245)"}}})),o.newNode=!1,typeof o.whenTimeoutThen=="string"?p.value=o.whenTimeoutThen:(p.value="ResponseAlternateText",g.value=o.whenTimeoutThen.ResponseAlternateText),v(),tt("GET","management/settings",{robotId:l},null,null).then(T=>{T.data&&($n(T.data,s),m(),o.connectTimeout>0&&o.readTimeout>0&&(h.value=!0),o.connectTimeout||(o.connectTimeout=s.chatProvider.connectTimeoutMillis),o.readTimeout||(o.readTimeout=s.chatProvider.readTimeoutMillis))});const E=await tt("GET","intent",{robotId:l},null,null);E.status==200&&c.splice(0,c.length,...E.data)});const m=()=>{u.value=s.chatProvider.provider.id,d.value=s.chatProvider.provider.model;let y="Chat model: "+s.chatProvider.provider.model+" of "+s.chatProvider.provider.id;y+="
History context length: "+o.contextLength,y+="
Exit this node by: "+o.nodeExitType,o.brief=y},v=()=>{const y=o,x=y.invalidMessages;x.splice(0,x.length),y.prompt||x.push('Please fill out "prompt" field.'),y.nodeExitType=="exitByIntent"&&!y.exitIntent&&x.push("Please select an intent to use for exiting."),y.nodeExitType=="exitBySpecialInputs"&&!y.exitSpecialInputs&&x.push("Please type some special inputs for exiting."),p.value=="ResponseAlternateText"&&!g.value&&x.push("Please enter alternate text."),y.valid=x.length==0},w=()=>{const y=i(),x=y.getPorts(),E=Gi();E.branchName=x[0].attrs.text.text,E.branchId=x[0].id,E.branchType="GotoAnotherNode",o.branches.splice(0,o.branches.length,E),v(),delete o.exitCondition,o.exitCondition={};const T=o.nodeExitType.replace(/exitBy/,"");T=="Intent"?o.exitCondition[T]=o.exitIntent:T=="SpecialInputs"?o.exitCondition[T]=o.exitSpecialInputs:T=="MaxChatTimes"&&(o.exitCondition[T]=o.maxChatTimes),o.prompt=JSON.stringify([{role:"user",content:o.promptText}]),h.value||(o.connectTimeout=null,o.readTimeout=null),delete o.whenTimeoutThen,p.value=="ResponseAlternateText"?o.whenTimeoutThen={ResponseAlternateText:g}:o.whenTimeoutThen=p,y.removeData({silent:!0}),y.setData(o,{silent:!1}),m(),b()},b=()=>{a.value=!1};return(y,x)=>{const E=dt,T=Rr,M=wn,O=nr,k=at("router-link"),P=dg,L=jy,j=ag,ce=Ts,R=_s,$=Js,q=rf,U=Tn,W=tr,Z=Ss;return A(),G("div",Fse,[F("div",{ref_key:"nodeName",ref:f,class:"nodeTitle"},[H(oe(o.nodeName)+" ",1),Le(F("span",null,[C(T,{class:"box-item",effect:"dark",content:o.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(E,{color:"red",size:"16"},{default:_(()=>[C(S(bl))]),_:1})]),_:1},8,["content"])],512),[[Ue,o.invalidMessages.length>0]])],512),F("div",{innerHTML:o.brief},null,8,zse),a.value?(A(),ye(Z,{key:0,modelValue:a.value,"onUpdate:modelValue":x[14]||(x[14]=le=>a.value=le),title:o.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(W,{"label-position":y.labelPosition,"label-width":"135px",model:o,style:{"max-width":"800px"}},{default:_(()=>[C(O,{label:S(e)("lang.common.nodeName"),"label-width":y.formLabelWidth},{default:_(()=>[C(M,{modelValue:o.nodeName,"onUpdate:modelValue":x[0]||(x[0]=le=>o.nodeName=le)},null,8,["modelValue"])]),_:1},8,["label","label-width"]),C(O,{label:"Chat model","label-width":y.formLabelWidth},{default:_(()=>[H(oe(u.value)+" - "+oe(d.value)+" (",1),C(k,{to:{name:"settings",params:{robotId:S(l)}}},{default:_(()=>[H("change")]),_:1},8,["to"]),H(") ")]),_:1},8,["label-width"]),C(O,{label:"Prompt","label-width":y.formLabelWidth},{default:_(()=>[C(M,{modelValue:o.promptText,"onUpdate:modelValue":x[1]||(x[1]=le=>o.promptText=le),rows:6,type:"textarea",placeholder:""},null,8,["modelValue"])]),_:1},8,["label-width"]),C(O,{label:"Context length","label-width":y.formLabelWidth},{default:_(()=>[C(P,{modelValue:o.contextLength,"onUpdate:modelValue":x[2]||(x[2]=le=>o.contextLength=le),min:0,max:50,step:5},null,8,["modelValue"]),H(" How many chat history records will be added in prompt. ")]),_:1},8,["label-width"]),C(O,{label:"Exit condition","label-width":y.formLabelWidth},{default:_(()=>[C(j,{modelValue:o.nodeExitType,"onUpdate:modelValue":x[3]||(x[3]=le=>o.nodeExitType=le)},{default:_(()=>[C(L,{value:"exitByIntent"},{default:_(()=>[H("Intent")]),_:1}),C(L,{value:"exitBySpecialInputs"},{default:_(()=>[H("Special inputs")]),_:1}),C(L,{value:"exitByMaxChatTimes"},{default:_(()=>[H("Max chat times")]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width"]),C(O,{label:"","label-width":y.formLabelWidth},{default:_(()=>[Le(C(R,{modelValue:o.exitIntent,"onUpdate:modelValue":x[4]||(x[4]=le=>o.exitIntent=le)},{default:_(()=>[(A(!0),G(Re,null,St(c,le=>(A(),ye(ce,{key:le.id,label:le.name,value:le.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),[[Ue,o.nodeExitType=="exitByIntent"]]),Le(C(M,{modelValue:o.exitSpecialInputs,"onUpdate:modelValue":x[5]||(x[5]=le=>o.exitSpecialInputs=le)},null,8,["modelValue"]),[[Ue,o.nodeExitType=="exitBySpecialInputs"]]),Le(C(P,{modelValue:o.maxChatTimes,"onUpdate:modelValue":x[6]||(x[6]=le=>o.maxChatTimes=le),min:1,max:200,step:1},null,8,["modelValue"]),[[Ue,o.nodeExitType=="exitByMaxChatTimes"]])]),_:1},8,["label-width"]),C(O,{label:"Timeout","label-width":y.formLabelWidth},{default:_(()=>[C($,{label:"Override timeout of settings",modelValue:h.value,"onUpdate:modelValue":x[7]||(x[7]=le=>h.value=le)},null,8,["modelValue"]),C(q,{direction:"vertical"}),H(" Current settings are: [Connect: "+oe(s.chatProvider.connectTimeoutMillis)+" millis, Read: "+oe(s.chatProvider.readTimeoutMillis)+" mills] ",1)]),_:1},8,["label-width"]),C(O,{label:"Connection","label-width":y.formLabelWidth},{default:_(()=>[C(P,{modelValue:o.connectTimeout,"onUpdate:modelValue":x[8]||(x[8]=le=>o.connectTimeout=le),min:100,max:65500,disabled:!h.value},null,8,["modelValue","disabled"])]),_:1},8,["label-width"]),C(O,{label:"Read","label-width":y.formLabelWidth},{default:_(()=>[C(P,{modelValue:o.readTimeout,"onUpdate:modelValue":x[9]||(x[9]=le=>o.readTimeout=le),min:200,max:65500,disabled:!h.value},null,8,["modelValue","disabled"])]),_:1},8,["label-width"]),C(O,{label:"When timeout then","label-width":y.formLabelWidth},{default:_(()=>[C(j,{modelValue:p.value,"onUpdate:modelValue":x[10]||(x[10]=le=>p.value=le)},{default:_(()=>[C(L,{value:"GotoAnotherNode"},{default:_(()=>[H("Goto next node")]),_:1}),C(L,{value:"ResponseAlternateText"},{default:_(()=>[H("Response alternate text")]),_:1}),C(L,{value:"DoNothing"},{default:_(()=>[H("Do nothing")]),_:1}),C(T,{effect:"light",placement:"right"},{content:_(()=>[H(" Stay at this node until meet one of exiting condition. ")]),default:_(()=>[C(U,{size:"small",circle:""},{default:_(()=>[H("?")]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width"]),Le(C(O,{label:"Alternate text","label-width":y.formLabelWidth},{default:_(()=>[C(M,{modelValue:g.value,"onUpdate:modelValue":x[11]||(x[11]=le=>g.value=le)},null,8,["modelValue"])]),_:1},8,["label-width"]),[[Ue,p.value=="ResponseAlternateText"]])]),_:1},8,["label-position","model"]),F("div",null,[C(U,{type:"primary",onClick:x[12]||(x[12]=le=>w())},{default:_(()=>[H(oe(S(e)("lang.common.save")),1)]),_:1}),C(U,{onClick:x[13]||(x[13]=le=>b())},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):we("",!0)])}}},Hse=So(jse,[["__scopeId","data-v-abd3abfe"]]);typeof window=="object"&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);typeof window<"u"&&function(n){n.forEach(e=>{Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value(...t){const r=document.createDocumentFragment();t.forEach(o=>{const s=o instanceof Node;r.appendChild(s?o:document.createTextNode(String(o)))}),this.appendChild(r)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);class Xs{get disposed(){return this._disposed===!0}dispose(){this._disposed=!0}}(function(n){function e(){return(t,r,o)=>{const s=o.value,i=t.__proto__;o.value=function(...l){this.disposed||(s.call(this,...l),i.dispose.call(this))}}}n.dispose=e})(Xs||(Xs={}));class YS{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach(e=>{e.dispose()}),this.items.clear())}contains(e){return this.items.has(e)}add(e){this.items.add(e)}remove(e){this.items.delete(e)}clear(){this.items.clear()}}(function(n){function e(t){const r=new n;return t.forEach(o=>{r.add(o)}),r}n.from=e})(YS||(YS={}));function Mk(n,e,t){if(t)switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2]);case 4:return n.call(e,t[0],t[1],t[2],t[3]);case 5:return n.call(e,t[0],t[1],t[2],t[3],t[4]);case 6:return n.call(e,t[0],t[1],t[2],t[3],t[4],t[5]);default:return n.apply(e,t)}return n.call(e)}function pt(n,e,...t){return Mk(n,e,t)}function Use(n){return typeof n=="object"&&n.then&&typeof n.then=="function"}function JS(n){return n!=null&&(n instanceof Promise||Use(n))}function Ak(...n){const e=[];if(n.forEach(r=>{Array.isArray(r)?e.push(...r):e.push(r)}),e.some(r=>JS(r))){const r=e.map(o=>JS(o)?o:Promise.resolve(o!==!1));return Promise.all(r).then(o=>o.reduce((s,i)=>i!==!1&&s,!0))}return e.every(r=>r!==!1)}function $m(n,e){const t=[];for(let r=0;r(this.off(e,o),$m([t,r],s));return this.on(e,o,this)}off(e,t,r){if(!(e||t||r))return this.listeners={},this;const o=this.listeners;return(e?[e]:Object.keys(o)).forEach(i=>{const l=o[i];if(l){if(!(t||r)){delete o[i];return}for(let a=l.length-2;a>=0;a-=2)t&&l[a]!==t||r&&l[a+1]!==r||l.splice(a,2)}}),this}trigger(e,...t){let r=!0;if(e!=="*"){const s=this.listeners[e];s!=null&&(r=$m([...s],t))}const o=this.listeners["*"];return o!=null?Ak([r,$m([...o],[e,...t])]):r}emit(e,...t){return this.trigger(e,...t)}}function Gse(n,...e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(n.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r))})})}const qse=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])};function Kse(n,e){qse(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}class Yse{}const Jse=/^\s*class\s+/.test(`${Yse}`)||/^\s*class\s*\{/.test(`${class{}}`);function v0(n,e){let t;return Jse?t=class extends e{}:(t=function(){return e.apply(this,arguments)},Kse(t,e)),Object.defineProperty(t,"name",{value:n}),t}function XS(n){return n==="__proto__"}function b0(n,e,t="/"){let r;const o=Array.isArray(e)?e:e.split(t);if(o.length)for(r=n;o.length;){const s=o.shift();if(Object(r)===r&&s&&s in r)r=r[s];else return}return r}function eu(n,e,t,r="/"){const o=Array.isArray(e)?e:e.split(r),s=o.pop();if(s&&!XS(s)){let i=n;o.forEach(l=>{XS(l)||(i[l]==null&&(i[l]={}),i=i[l])}),i[s]=t}return n}function ZS(n,e,t="/"){const r=Array.isArray(e)?e.slice():e.split(t),o=r.pop();if(o)if(r.length>0){const s=b0(n,r);s&&delete s[o]}else delete n[o];return n}var Xse=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class Gr extends Wse{dispose(){this.off()}}Xse([Xs.dispose()],Gr.prototype,"dispose",null);(function(n){n.dispose=Xs.dispose})(Gr||(Gr={}));Gse(Gr,Xs);const kk=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},Pk=kk(n=>n.replace(/\B([A-Z])/g,"-$1").toLowerCase()),y0=kk(n=>D6(Yp(n)).replace(/ /g,""));function Dm(n){let e=2166136261,t=!1,r=n;for(let o=0,s=r.length;o127&&!t&&(r=unescape(encodeURIComponent(r)),i=r.charCodeAt(o),t=!0),e^=i,e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24)}return e>>>0}function ap(){let n="";const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let t=0,r=e.length;tt?l-t:1,u=e.length>t+l?t+l:e.length;o[0]=l;let d=l;for(let h=1;ht)return;const f=r;r=o,o=f}const i=r[e.length];return i>t?void 0:i}function Zs(n){return typeof n=="string"&&n.slice(-1)==="%"}function Bo(n,e){if(n==null)return 0;let t;if(typeof n=="string"){if(t=parseFloat(n),Zs(n)&&(t/=100,Number.isFinite(t)))return t*e}else t=n;return Number.isFinite(t)?t>0&&t<1?t*e:t:0}function ga(n){if(typeof n=="object"){let t=0,r=0,o=0,s=0;return n.vertical!=null&&Number.isFinite(n.vertical)&&(r=s=n.vertical),n.horizontal!=null&&Number.isFinite(n.horizontal)&&(o=t=n.horizontal),n.left!=null&&Number.isFinite(n.left)&&(t=n.left),n.top!=null&&Number.isFinite(n.top)&&(r=n.top),n.right!=null&&Number.isFinite(n.right)&&(o=n.right),n.bottom!=null&&Number.isFinite(n.bottom)&&(s=n.bottom),{top:r,right:o,bottom:s,left:t}}let e=0;return n!=null&&Number.isFinite(n)&&(e=n),{top:e,right:e,bottom:e,left:e}}let w0=!1,Nk=!1,Ik=!1,Lk=!1,Rk=!1,$k=!1,Dk=!1,Vk=!1,Bk=!1,Fk=!1,zk=!1,jk=!1,Hk=!1,Uk=!1,Wk=!1,Gk=!1;if(typeof navigator=="object"){const n=navigator.userAgent;w0=n.indexOf("Macintosh")>=0,Nk=!!n.match(/(iPad|iPhone|iPod)/g),Ik=n.indexOf("Windows")>=0,Lk=n.indexOf("MSIE")>=0,Rk=!!n.match(/Trident\/7\./),$k=!!n.match(/Edge\//),Dk=n.indexOf("Mozilla/")>=0&&n.indexOf("MSIE")<0&&n.indexOf("Edge/")<0,Bk=n.indexOf("Chrome/")>=0&&n.indexOf("Edge/")<0,Fk=n.indexOf("Opera/")>=0||n.indexOf("OPR/")>=0,zk=n.indexOf("Firefox/")>=0,jk=n.indexOf("AppleWebKit/")>=0&&n.indexOf("Chrome/")<0&&n.indexOf("Edge/")<0,typeof document=="object"&&(Gk=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||n.indexOf("Opera/")>=0)}typeof window=="object"&&(Vk=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,Uk=window.PointerEvent!=null&&!w0);if(typeof document=="object"){Hk="ontouchstart"in document.documentElement;try{const n=Object.defineProperty({},"passive",{get(){Wk=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",()=>{},n)}catch{}}var nl;(function(n){n.IS_MAC=w0,n.IS_IOS=Nk,n.IS_WINDOWS=Ik,n.IS_IE=Lk,n.IS_IE11=Rk,n.IS_EDGE=$k,n.IS_NETSCAPE=Dk,n.IS_CHROME_APP=Vk,n.IS_CHROME=Bk,n.IS_OPERA=Fk,n.IS_FIREFOX=zk,n.IS_SAFARI=jk,n.SUPPORT_TOUCH=Hk,n.SUPPORT_POINTER=Uk,n.SUPPORT_PASSIVE=Wk,n.NO_FOREIGNOBJECT=Gk,n.SUPPORT_FOREIGNOBJECT=!n.NO_FOREIGNOBJECT})(nl||(nl={}));(function(n){function e(){const s=window.module;return s!=null&&s.hot!=null&&s.hot.status!=null?s.hot.status():"unkonwn"}n.getHMRStatus=e;function t(){return e()==="apply"}n.isApplyingHMR=t;const r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function o(s){const i=document.createElement(r[s]||"div"),l=`on${s}`;let a=l in i;return a||(i.setAttribute(l,"return;"),a=typeof i[l]=="function"),a}n.isEventSupported=o})(nl||(nl={}));const C0=/[\t\r\n\f]/g,x0=/\S+/g,Tc=n=>` ${n} `;function Oc(n){return n&&n.getAttribute&&n.getAttribute("class")||""}function ff(n,e){if(n==null||e==null)return!1;const t=Tc(Oc(n)),r=Tc(e);return n.nodeType===1?t.replace(C0," ").includes(r):!1}function Nt(n,e){if(!(n==null||e==null)){if(typeof e=="function")return Nt(n,e(Oc(n)));if(typeof e=="string"&&n.nodeType===1){const t=e.match(x0)||[],r=Tc(Oc(n)).replace(C0," ");let o=t.reduce((s,i)=>s.indexOf(Tc(i))<0?`${s}${i} `:s,r);o=o.trim(),r!==o&&n.setAttribute("class",o)}}}function co(n,e){if(n!=null){if(typeof e=="function")return co(n,e(Oc(n)));if((!e||typeof e=="string")&&n.nodeType===1){const t=(e||"").match(x0)||[],r=Tc(Oc(n)).replace(C0," ");let o=t.reduce((s,i)=>{const l=Tc(i);return s.indexOf(l)>-1?s.replace(l," "):s},r);o=e?o.trim():"",r!==o&&n.setAttribute("class",o)}}}function qk(n,e,t){if(!(n==null||e==null)){if(t!=null&&typeof e=="string"){t?Nt(n,e):co(n,e);return}if(typeof e=="function")return qk(n,e(Oc(n),t),t);typeof e=="string"&&(e.match(x0)||[]).forEach(o=>{ff(n,o)?co(n,o):Nt(n,o)})}}let QS=0;function eie(){return QS+=1,`v${QS}`}function S0(n){return(n.id==null||n.id==="")&&(n.id=eie()),n.id}function rl(n){return n==null?!1:typeof n.getScreenCTM=="function"&&n instanceof SVGElement}const Ln={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},eE="1.1";function tE(n,e=document){return e.createElement(n)}function E0(n,e=Ln.xhtml,t=document){return t.createElementNS(e,n)}function Jo(n,e=document){return E0(n,Ln.svg,e)}function cp(n){if(n){const t=`${n}`,{documentElement:r}=tie(t,{async:!1});return r}const e=document.createElementNS(Ln.svg,"svg");return e.setAttributeNS(Ln.xmlns,"xmlns:xlink",Ln.xlink),e.setAttribute("version",eE),e}function tie(n,e={}){let t;try{const r=new DOMParser;if(e.async!=null){const o=r;o.async=e.async}t=r.parseFromString(n,e.mimeType||"text/xml")}catch{t=void 0}if(!t||t.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${n}`);return t}function nie(n,e=!0){const t=n.nodeName;return e?t.toLowerCase():t.toUpperCase()}function _0(n){let e=0,t=n.previousSibling;for(;t;)t.nodeType===1&&(e+=1),t=t.previousSibling;return e}function rie(n,e){return n.querySelectorAll(e)}function oie(n,e){return n.querySelector(e)}function Kk(n,e,t){const r=n.ownerSVGElement;let o=n.parentNode;for(;o&&o!==t&&o!==r;){if(ff(o,e))return o;o=o.parentNode}return null}function Yk(n,e){const t=e&&e.parentNode;return n===t||!!(t&&t.nodeType===1&&n.compareDocumentPosition(t)&16)}function Mc(n){n&&(Array.isArray(n)?n:[n]).forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)})}function hf(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function pf(n,e){(Array.isArray(e)?e:[e]).forEach(r=>{r!=null&&n.appendChild(r)})}function sie(n,e){const t=n.firstChild;return t?T0(t,e):pf(n,e)}function T0(n,e){const t=n.parentNode;t&&(Array.isArray(e)?e:[e]).forEach(o=>{o!=null&&t.insertBefore(o,n)})}function iie(n,e){e!=null&&e.appendChild(n)}function nE(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}const Jk=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function lie(n,e){return n.getAttribute(e)}function Xk(n,e){const t=Qk(e);t.ns?n.hasAttributeNS(t.ns,t.local)&&n.removeAttributeNS(t.ns,t.local):n.hasAttribute(e)&&n.removeAttribute(e)}function O0(n,e,t){if(t==null)return Xk(n,e);const r=Qk(e);r.ns&&typeof t=="string"?n.setAttributeNS(r.ns,e,t):e==="id"?n.id=`${t}`:n.setAttribute(e,`${t}`)}function Zk(n,e){Object.keys(e).forEach(t=>{O0(n,t,e[t])})}function Gt(n,e,t){if(e==null){const r=n.attributes,o={};for(let s=0;s{const r=Jk.includes(t)?t:Pk(t);e[r]=n[t]}),e}function Jf(n){const e={};return n.split(";").forEach(r=>{const o=r.trim();if(o){const s=o.split("=");s.length&&(e[s[0].trim()]=s[1]?s[1].trim():"")}}),e}function gb(n,e){return Object.keys(e).forEach(t=>{if(t==="class")n[t]=n[t]?`${n[t]} ${e[t]}`:e[t];else if(t==="style"){const r=typeof n[t]=="object",o=typeof e[t]=="object";let s,i;r&&o?(s=n[t],i=e[t]):r?(s=n[t],i=Jf(e[t])):o?(s=Jf(n[t]),i=e[t]):(s=Jf(n[t]),i=Jf(e[t])),n[t]=gb(s,i)}else n[t]=e[t]}),n}function aie(n,e,t={}){const r=t.offset||0,o=[],s=[];let i,l,a=null;for(let c=0;c=h&&cu(null,c));return}const d=()=>{u(new Error(`Failed to load image: ${c}`))},f=window.FileReader?p=>{if(p.status===200){const g=new FileReader;g.onload=m=>{const v=m.target.result;u(null,v)},g.onerror=d,g.readAsDataURL(p.response)}else d()}:p=>{const g=m=>{const w=[];for(let b=0;bf(h)),h.send()}n.imageToDataUri=t;function r(c){let u=c.replace(/\s/g,"");u=decodeURIComponent(u);const d=u.indexOf(","),f=u.slice(0,d),h=f.split(":")[1].split(";")[0],p=u.slice(d+1);let g;f.indexOf("base64")>=0?g=atob(p):g=unescape(encodeURIComponent(p));const m=new Uint8Array(g.length);for(let v=0;v]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return u&&u[2]?u[2].replace(/\s+/," ").split(" "):null}function l(c){const u=parseFloat(c);return Number.isNaN(u)?null:u}function a(c,u={}){let d=null;const f=b=>(d==null&&(d=i(c)),d!=null?l(d[b]):null),h=b=>{const y=c.match(b);return y&&y[2]?l(y[2]):null};let p=u.width;if(p==null&&(p=h(/]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),p==null&&(p=f(2)),p==null)throw new Error("Can not parse width from svg string");let g=u.height;if(g==null&&(g=h(/]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),g==null&&(g=f(3)),g==null)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(c).replace(/'/g,"%27").replace(/"/g,"%22")}`}n.svgToDataUrl=a})(rE||(rE={}));let Fl;const uie={px(n){return n},mm(n){return Fl*n},cm(n){return Fl*n*10},in(n){return Fl*n*25.4},pt(n){return Fl*(25.4*n/72)},pc(n){return Fl*(25.4*n/6)}};var oE;(function(n){function e(r,o,s){const i=document.createElement("div"),l=i.style;l.display="inline-block",l.position="absolute",l.left="-15000px",l.top="-15000px",l.width=r+(s||"px"),l.height=o+(s||"px"),document.body.appendChild(i);const a=i.getBoundingClientRect(),c={width:a.width||0,height:a.height||0};return document.body.removeChild(i),c}n.measure=e;function t(r,o){Fl==null&&(Fl=e("1","1","mm").width);const s=o?uie[o]:null;return s?s(r):r}n.toPx=t})(oE||(oE={}));const die=/-(.)/g;function fie(n){return n.replace(die,(e,t)=>t.toUpperCase())}const Vm={},sE=["webkit","ms","moz","o"],eP=typeof document<"u"?document.createElement("div").style:{};function hie(n){for(let e=0;e{r[o]=lE(n,o)}),r}if(typeof e=="string"){if(t===void 0)return lE(n,e);yie(n,e,t);return}for(const r in e)ma(n,r,e[r])}class ft{get[Symbol.toStringTag](){return ft.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}constructor(e,t,r){if(!e)throw new TypeError("Invalid element to create vector");let o;if(ft.isVector(e))o=e.node;else if(typeof e=="string")if(e.toLowerCase()==="svg")o=cp();else if(e[0]==="<"){const s=cp(e);o=document.importNode(s.firstChild,!0)}else o=document.createElementNS(Ln.svg,e);else o=e;this.node=o,t&&this.setAttributes(t),r&&this.append(r)}transform(e,t){return e==null?Ac(this.node):(Ac(this.node,e,t),this)}translate(e,t=0,r={}){return e==null?cE(this.node):(cE(this.node,e,t,r),this)}rotate(e,t,r,o={}){return e==null?bb(this.node):(bb(this.node,e,t,r,o),this)}scale(e,t){return e==null?yb(this.node):(yb(this.node,e,t),this)}getTransformToElement(e){const t=ft.toNode(e);return qu(this.node,t)}removeAttribute(e){return Xk(this.node,e),this}getAttribute(e){return lie(this.node,e)}setAttribute(e,t){return O0(this.node,e,t),this}setAttributes(e){return Zk(this.node,e),this}attr(e,t){return e==null?Gt(this.node):typeof e=="string"&&t===void 0?Gt(this.node,e):(typeof e=="object"?Gt(this.node,e):Gt(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:ft.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?ft.create(t):ft.create("defs").appendTo(e)}text(e,t={}){return nP(this.node,e,t),this}tagName(){return nie(this.node)}clone(){return ft.create(this.node.cloneNode(!0))}remove(){return Mc(this.node),this}empty(){return hf(this.node),this}append(e){return pf(this.node,ft.toNodes(e)),this}appendTo(e){return iie(this.node,ft.isVector(e)?e.node:e),this}prepend(e){return sie(this.node,ft.toNodes(e)),this}before(e){return T0(this.node,ft.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(ft.toNode(e),this.node),ft.create(e)}first(){return this.node.firstChild?ft.create(this.node.firstChild):null}last(){return this.node.lastChild?ft.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?ft.create(t):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(ft.toNode(e))}find(e){const t=[],r=rie(this.node,e);if(r)for(let o=0,s=r.length;oo(l)):[o(i)]}n.toNodes=s})(ft||(ft={}));function wie(n,e){const t=ft.create(e),r=ft.create("textPath"),o=n.d;if(o&&n["xlink:href"]===void 0){const s=ft.create("path").attr("d",o).appendTo(t.defs());r.attr("xlink:href",`#${s.id}`)}return typeof n=="object"&&r.attr(n),r.node}function Cie(n,e,t){const r=t.eol,o=t.baseSize,s=t.lineHeight;let i=0,l;const a={},c=e.length-1;for(let u=0;u<=c;u+=1){let d=e[u],f=null;if(typeof d=="object"){const h=d.attrs,p=ft.create("tspan",h);l=p.node;let g=d.t;r&&u===c&&(g+=r),l.textContent=g;const m=h.class;m&&p.addClass(m),t.includeAnnotationIndices&&p.attr("annotations",d.annotations.join(",")),f=parseFloat(h["font-size"]),f===void 0&&(f=o),f&&f>i&&(i=f)}else r&&u===c&&(d+=r),l=document.createTextNode(d||" "),o&&o>i&&(i=o);n.appendChild(l)}return i&&(a.maxFontSize=i),s?a.lineHeight=s:i&&(a.lineHeight=i*1.2),a}const tP=/em$/;function Xf(n,e){const t=parseFloat(n);return tP.test(n)?t*e:t}function xie(n,e,t,r){if(!Array.isArray(e))return 0;const o=e.length;if(!o)return 0;let s=e[0];const i=Xf(s.maxFontSize,t)||t;let l=0;const a=Xf(r,t);for(let d=1;d0&&P.setAttribute("dy",w),(O>0||o)&&P.setAttribute("x",l),P.className.baseVal=k,v.appendChild(P),b+=j.length+1}if(i)if(c)w=xie(s,E,m,f);else if(s==="top")w="0.8em";else{let O;switch(T>0?(O=parseFloat(f)||1,O*=T,tP.test(f)||(O/=m)):O=0,s){case"middle":w=`${.3-O/2}em`;break;case"bottom":w=`${-O-.3}em`;break}}else s===0?w="0em":s?w=s:(w=0,n.getAttribute("y")==null&&n.setAttribute("y",`${y||"0.8em"}`));v.firstChild.setAttribute("dy",w),n.appendChild(v)}function Gu(n,e={}){const t=document.createElement("canvas").getContext("2d");if(!n)return{width:0};const r=[],o=e["font-size"]?`${parseFloat(e["font-size"])}px`:"14px";return r.push(e["font-style"]||"normal"),r.push(e["font-variant"]||"normal"),r.push(e["font-weight"]||400),r.push(o),r.push(e["font-family"]||"sans-serif"),t.font=r.join(" "),t.measureText(n)}function aE(n,e,t,r={}){if(e>=t)return[n,""];const o=n.length,s={};let i=Math.round(e/t*o-1);for(i<0&&(i=0);i>=0&&ie)i-=1;else if(u<=e)i+=1;else break}return[n.slice(0,i),n.slice(i)]}function rP(n,e,t={},r={}){const o=e.width,s=e.height,i=r.eol||` -`,l=t.fontSize||14,a=t.lineHeight?parseFloat(t.lineHeight):Math.ceil(l*1.4),c=Math.floor(s/a);if(n.indexOf(i)>-1){const m=ap(),v=[];return n.split(i).map(w=>{const b=rP(w,Object.assign(Object.assign({},e),{height:Number.MAX_SAFE_INTEGER}),t,Object.assign(Object.assign({},r),{eol:m}));b&&v.push(...b.split(m))}),v.slice(0,c).join(i)}const{width:u}=Gu(n,t);if(uo)if(m===c-1){const[w]=aE(f,o-g,h,t);d.push(p?`${w}${p}`:w)}else{const[w,b]=aE(f,o,h,t);d.push(w),f=b,h=Gu(f,t).width}else{d.push(f);break}return d.join(i)}const mb=.551784;function Yn(n,e,t=NaN){const r=n.getAttribute(e);if(r==null)return t;const o=parseFloat(r);return Number.isNaN(o)?t:o}function Sie(n,e=1){const t=n.getTotalLength(),r=[];let o=0,s;for(;o`${t.x} ${t.y}`).join(" L")}`}function dp(n){const e=[],t=n.points;if(t)for(let r=0,o=t.numberOfItems;r=0){const i=Od(n),l=Lie(i);e=[l.translateX,l.translateY],t=[l.rotation],r=[l.scaleX,l.scaleY];const a=[];(e[0]!==0||e[1]!==0)&&a.push(`translate(${e.join(",")})`),(r[0]!==1||r[1]!==1)&&a.push(`scale(${r.join(",")})`),t[0]!==0&&a.push(`rotate(${t[0]})`),n=a.join(" ")}else{const i=n.match(/translate\((.*?)\)/);i&&(e=i[1].split(s));const l=n.match(/rotate\((.*?)\)/);l&&(t=l[1].split(s));const a=n.match(/scale\((.*?)\)/);a&&(r=a[1].split(s))}}const o=r&&r[0]?parseFloat(r[0]):1;return{raw:n||"",translation:{tx:e&&e[0]?parseInt(e[0],10):0,ty:e&&e[1]?parseInt(e[1],10):0},rotation:{angle:t&&t[0]?parseInt(t[0],10):0,cx:t&&t[1]?parseInt(t[1],10):void 0,cy:t&&t[2]?parseInt(t[2],10):void 0},scale:{sx:o,sy:r&&r[1]?parseFloat(r[1]):o}}}function vb(n,e){const t=e.x*n.a+e.y*n.c+0,r=e.x*n.b+e.y*n.d+0;return{x:t,y:r}}function Lie(n){const e=vb(n,{x:0,y:1}),t=vb(n,{x:1,y:0}),r=180/Math.PI*Math.atan2(e.y,e.x)-90,o=180/Math.PI*Math.atan2(t.y,t.x);return{skewX:r,skewY:o,translateX:n.e,translateY:n.f,scaleX:Math.sqrt(n.a*n.a+n.b*n.b),scaleY:Math.sqrt(n.c*n.c+n.d*n.d),rotation:r}}function Rie(n){let e,t,r,o;return n?(e=n.a==null?1:n.a,o=n.d==null?1:n.d,t=n.b,r=n.c):e=o=1,{sx:t?Math.sqrt(e*e+t*t):e,sy:r?Math.sqrt(r*r+o*o):o}}function $ie(n){let e={x:0,y:1};n&&(e=vb(n,e));const t=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:t%360+(t<0?360:0)}}function Die(n){return{tx:n&&n.e||0,ty:n&&n.f||0}}function Ac(n,e,t={}){if(e==null)return Od(Gt(n,"transform"));if(t.absolute){n.setAttribute("transform",tu(e));return}const r=n.transform,o=bu(e);r.baseVal.appendItem(o)}function cE(n,e,t=0,r={}){let o=Gt(n,"transform");const s=Mg(o);if(e==null)return s.translation;o=s.raw,o=o.replace(/translate\([^)]*\)/g,"").trim();const i=r.absolute?e:s.translation.tx+e,l=r.absolute?t:s.translation.ty+t,a=`translate(${i},${l})`;n.setAttribute("transform",`${a} ${o}`.trim())}function bb(n,e,t,r,o={}){let s=Gt(n,"transform");const i=Mg(s);if(e==null)return i.rotation;s=i.raw,s=s.replace(/rotate\([^)]*\)/g,"").trim(),e%=360;const l=o.absolute?e:i.rotation.angle+e,a=t!=null&&r!=null?`,${t},${r}`:"",c=`rotate(${l}${a})`;n.setAttribute("transform",`${s} ${c}`.trim())}function yb(n,e,t){let r=Gt(n,"transform");const o=Mg(r);if(e==null)return o.scale;t=t??e,r=o.raw,r=r.replace(/scale\([^)]*\)/g,"").trim();const s=`scale(${e},${t})`;n.setAttribute("transform",`${r} ${s}`.trim())}function qu(n,e){if(rl(e)&&rl(n)){const t=e.getScreenCTM(),r=n.getScreenCTM();if(t&&r)return t.inverse().multiply(r)}return Hn()}function Vie(n,e){let t=Hn();if(rl(e)&&rl(n)){let r=n;const o=[];for(;r&&r!==e;){const s=r.getAttribute("transform")||null,i=Od(s);o.push(i),r=r.parentNode}o.reverse().forEach(s=>{t=t.multiply(s)})}return t}function Bie(n,e,t){const r=n instanceof SVGSVGElement?n:n.ownerSVGElement,o=r.createSVGPoint();o.x=e,o.y=t;try{const s=r.getScreenCTM(),i=o.matrixTransform(s.inverse()),l=qu(n,r).inverse();return i.matrixTransform(l)}catch{return o}}var so;(function(n){const e={};function t(s){return e[s]||{}}n.get=t;function r(s,i){e[s]=i}n.register=r;function o(s){delete e[s]}n.unregister=o})(so||(so={}));var ql;(function(n){const e=new WeakMap;function t(s){return e.has(s)||e.set(s,{events:Object.create(null)}),e.get(s)}n.ensure=t;function r(s){return e.get(s)}n.get=r;function o(s){return e.delete(s)}n.remove=o})(ql||(ql={}));var yt;(function(n){n.returnTrue=()=>!0,n.returnFalse=()=>!1;function e(o){o.stopPropagation()}n.stopPropagationCallback=e;function t(o,s,i){o.addEventListener!=null&&o.addEventListener(s,i)}n.addEventListener=t;function r(o,s,i){o.removeEventListener!=null&&o.removeEventListener(s,i)}n.removeEventListener=r})(yt||(yt={}));(function(n){const e=/[^\x20\t\r\n\f]+/g,t=/^([^.]*)(?:\.(.+)|)/;function r(l){return(l||"").match(e)||[""]}n.splitType=r;function o(l){const a=t.exec(l)||[];return{originType:a[1]?a[1].trim():a[1],namespaces:a[2]?a[2].split(".").map(c=>c.trim()).sort():[]}}n.normalizeType=o;function s(l){return l.nodeType===1||l.nodeType===9||!+l.nodeType}n.isValidTarget=s;function i(l,a){if(a){const c=l;return c.querySelector!=null&&c.querySelector(a)!=null}return!0}n.isValidSelector=i})(yt||(yt={}));(function(n){let e=0;const t=new WeakMap;function r(l){return t.has(l)||(t.set(l,e),e+=1),t.get(l)}n.ensureHandlerId=r;function o(l){return t.get(l)}n.getHandlerId=o;function s(l){return t.delete(l)}n.removeHandlerId=s;function i(l,a){return t.set(l,a)}n.setHandlerId=i})(yt||(yt={}));(function(n){function e(t,r){const o=[],s=ql.get(t),i=s&&s.events&&s.events[r.type],l=i&&i.handlers||[],a=i?i.delegateCount:0;if(a>0&&!(r.type==="click"&&typeof r.button=="number"&&r.button>=1)){for(let c=r.target;c!==t;c=c.parentNode||t)if(c.nodeType===1&&!(r.type==="click"&&c.disabled===!0)){const u=[],d={};for(let f=0;f{m.push(v)}),d[p]=m.includes(c)}d[p]&&u.push(h)}u.length&&o.push({elem:c,handlers:u})}}return a{const r=this.originalEvent;this.isDefaultPrevented=yt.returnTrue,r&&!this.isSimulated&&r.preventDefault()},this.stopPropagation=()=>{const r=this.originalEvent;this.isPropagationStopped=yt.returnTrue,r&&!this.isSimulated&&r.stopPropagation()},this.stopImmediatePropagation=()=>{const r=this.originalEvent;this.isImmediatePropagationStopped=yt.returnTrue,r&&!this.isSimulated&&r.stopImmediatePropagation(),this.stopPropagation()},typeof e=="string"?this.type=e:e.type&&(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?yt.returnTrue:yt.returnFalse,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.timeStamp=e.timeStamp),t&&Object.assign(this,t),this.timeStamp||(this.timeStamp=Date.now())}}(function(n){function e(t){return t instanceof n?t:new n(t)}n.create=e})(us||(us={}));(function(n){function e(t,r){Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,get:typeof r=="function"?function(){if(this.originalEvent)return r(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set(o){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:o})}})}n.addProperty=e})(us||(us={}));(function(n){const e={bubbles:!0,cancelable:!0,eventPhase:!0,detail:!0,view:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pageX:!0,pageY:!0,screenX:!0,screenY:!0,toElement:!0,pointerId:!0,pointerType:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,touches:!0,changedTouches:!0,targetTouches:!0,which:!0,altKey:!0,ctrlKey:!0,metaKey:!0,shiftKey:!0};Object.keys(e).forEach(t=>n.addProperty(t,e[t]))})(us||(us={}));(function(n){so.register("load",{noBubble:!0})})();(function(n){so.register("beforeunload",{postDispatch(e,t){t.result!==void 0&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}})})();(function(n){so.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(e,t){let r;const o=t.relatedTarget,s=t.handleObj;return(!o||o!==e&&!yt.contains(e,o))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseover"),r}}),so.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(e,t){let r;const o=t.relatedTarget,s=t.handleObj;return(!o||o!==e&&!yt.contains(e,o))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseout"),r}})})();var Fie=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const{originType:m,namespaces:v}=yt.normalizeType(g);if(!m)return;let w=m,b=so.get(w);w=(u?b.delegateType:b.bindType)||w,b=so.get(w);const y=Object.assign({type:w,originType:m,data:c,selector:u,guid:p,handler:a,namespace:v.join(".")},d),x=f.events;let E=x[w];E||(E=x[w]={handlers:[],delegateCount:0},(!b.setup||b.setup(i,c,v,h)===!1)&&yt.addEventListener(i,w,h)),b.add&&(yt.removeHandlerId(y.handler),b.add(i,y),yt.setHandlerId(y.handler,p)),u?(E.handlers.splice(E.delegateCount,0,y),E.delegateCount+=1):E.handlers.push(y)})}n.on=t;function r(i,l,a,c,u){const d=ql.get(i);if(!d)return;const f=d.events;f&&(yt.splitType(l).forEach(h=>{const{originType:p,namespaces:g}=yt.normalizeType(h);if(!p){Object.keys(f).forEach(x=>{r(i,x+h,a,c,!0)});return}let m=p;const v=so.get(m);m=(c?v.delegateType:v.bindType)||m;const w=f[m];if(!w)return;const b=g.length>0?new RegExp(`(^|\\.)${g.join("\\.(?:.*\\.|)")}(\\.|$)`):null,y=w.handlers.length;for(let x=w.handlers.length-1;x>=0;x-=1){const E=w.handlers[x];(u||p===E.originType)&&(!a||yt.getHandlerId(a)===E.guid)&&(b==null||E.namespace&&b.test(E.namespace))&&(c==null||c===E.selector||c==="**"&&E.selector)&&(w.handlers.splice(x,1),E.selector&&(w.delegateCount-=1),v.remove&&v.remove(i,E))}y&&w.handlers.length===0&&((!v.teardown||v.teardown(i,g,d.handler)===!1)&&yt.removeEventListener(i,m,d.handler),delete f[m])}),Object.keys(f).length===0&&ql.remove(i))}n.off=r;function o(i,l,...a){const c=us.create(l);c.delegateTarget=i;const u=so.get(c.type);if(u.preDispatch&&u.preDispatch(i,c)===!1)return;const d=yt.getHandlerQueue(i,c);for(let f=0,h=d.length;f-1&&(f=d.split("."),d=f.shift(),f.sort());const p=d.indexOf(":")<0&&`on${d}`;u=i instanceof us?i:new us(d,typeof i=="object"?i:null),u.namespace=f.join("."),u.rnamespace=u.namespace?new RegExp(`(^|\\.)${f.join("\\.(?:.*\\.|)")}(\\.|$)`):null,u.result=void 0,u.target||(u.target=h);const g=[u];Array.isArray(l)?g.push(...l):g.push(l);const m=so.get(d);if(!c&&m.trigger&&m.trigger(h,u,l)===!1)return;let v;const w=[h];if(!c&&!m.noBubble&&!yt.isWindow(h)){v=m.delegateType||d;let y=h,x=h.parentNode;for(;x!=null;)w.push(x),y=x,x=x.parentNode;const E=h.ownerDocument||document;if(y===E){const T=y.defaultView||y.parentWindow||window;w.push(T)}}let b=h;for(let y=0,x=w.length;y1?v:m.bindType||d;const T=ql.get(E);T&&T.events[u.type]&&T.handler&&T.handler.call(E,...g);const M=p&&E[p]||null;M&&yt.isValidTarget(E)&&(u.result=M.call(E,...g),u.result===!1&&u.preventDefault())}if(u.type=d,!c&&!u.isDefaultPrevented()){const y=m.preventDefault;if((y==null||y(w.pop(),u,l)===!1)&&yt.isValidTarget(h)&&p&&typeof h[d]=="function"&&!yt.isWindow(h)){const x=h[p];x&&(h[p]=null),e=d,u.isPropagationStopped()&&b.addEventListener(d,yt.stopPropagationCallback),h[d](),u.isPropagationStopped()&&b.removeEventListener(d,yt.stopPropagationCallback),e=void 0,x&&(h[p]=x)}}return u.result}n.trigger=s})(Md||(Md={}));var Gn;(function(n){function e(s,i,l,a,c){return Ku.on(s,i,l,a,c),s}n.on=e;function t(s,i,l,a,c){return Ku.on(s,i,l,a,c,!0),s}n.once=t;function r(s,i,l,a){return Ku.off(s,i,l,a),s}n.off=r;function o(s,i,l,a){return Md.trigger(i,l,s,a),s}n.trigger=o})(Gn||(Gn={}));var Ku;(function(n){function e(r,o,s,i,l,a){if(typeof o=="object"){typeof s!="string"&&(i=i||s,s=void 0),Object.keys(o).forEach(c=>e(r,c,s,i,o[c],a));return}if(i==null&&l==null?(l=s,i=s=void 0):l==null&&(typeof s=="string"?(l=i,i=void 0):(l=i,i=s,s=void 0)),l===!1)l=yt.returnFalse;else if(!l)return;if(a){const c=l;l=function(u,...d){return n.off(r,u),c.call(this,u,...d)},yt.setHandlerId(l,yt.ensureHandlerId(c))}Md.on(r,o,l,i,s)}n.on=e;function t(r,o,s,i){const l=o;if(l&&l.preventDefault!=null&&l.handleObj!=null){const a=l.handleObj;t(l.delegateTarget,a.namespace?`${a.originType}.${a.namespace}`:a.originType,a.selector,a.handler);return}if(typeof o=="object"){const a=o;Object.keys(a).forEach(c=>t(r,c,s,a[c]));return}(s===!1||typeof s=="function")&&(i=s,s=void 0),i===!1&&(i=yt.returnFalse),Md.off(r,o,i,s)}n.off=t})(Ku||(Ku={}));class aP{constructor(e,t,r){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=nl.isEventSupported("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=t,this.onWheelGuard=r,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){this.target.addEventListener(this.eventName,this.onWheel,{passive:!1})}disable(){this.target.removeEventListener(this.eventName,this.onWheel)}onWheel(e){if(this.onWheelGuard!=null&&!this.onWheelGuard(e))return;this.deltaX+=e.deltaX,this.deltaY+=e.deltaY,e.preventDefault();let t;(this.deltaX!==0||this.deltaY!==0)&&(e.stopPropagation(),t=!0),t===!0&&this.animationFrameId===0&&(this.animationFrameId=requestAnimationFrame(()=>{this.didWheel(e)}))}didWheel(e){this.animationFrameId=0,this.onWheelCallback(e,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}function cP(n,e=60){let t=null;return(...r)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{n.apply(this,r)},e)}}function zie(n){let e=null,t=[];const r=()=>{if(getComputedStyle(n).position==="static"){const c=n.style;c.position="relative"}const a=document.createElement("object");return a.onload=()=>{a.contentDocument.defaultView.addEventListener("resize",o),o()},a.style.display="block",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.height="100%",a.style.width="100%",a.style.overflow="hidden",a.style.pointerEvents="none",a.style.zIndex="-1",a.style.opacity="0",a.setAttribute("tabindex","-1"),a.type="text/html",n.appendChild(a),a.data="about:blank",a},o=cP(()=>{t.forEach(a=>a(n))}),s=a=>{e||(e=r()),t.indexOf(a)===-1&&t.push(a)},i=()=>{e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",o),e.parentNode.removeChild(e),e=null,t=[])};return{element:n,bind:s,destroy:i,unbind:a=>{const c=t.indexOf(a);c!==-1&&t.splice(c,1),t.length===0&&e&&i()}}}function jie(n){let e=null,t=[];const r=cP(()=>{t.forEach(a=>{a(n)})}),o=()=>{const a=new ResizeObserver(r);return a.observe(n),r(),a},s=a=>{e||(e=o()),t.indexOf(a)===-1&&t.push(a)},i=()=>{e&&(e.disconnect(),t=[],e=null)};return{element:n,bind:s,destroy:i,unbind:a=>{const c=t.indexOf(a);c!==-1&&t.splice(c,1),t.length===0&&e&&i()}}}const Hie=typeof ResizeObserver<"u"?jie:zie;var fp;(function(n){const e=new WeakMap;function t(o){let s=e.get(o);return s||(s=Hie(o),e.set(o,s),s)}function r(o){o.destroy(),e.delete(o.element)}n.bind=(o,s)=>{const i=t(o);return i.bind(s),()=>i.unbind(s)},n.clear=o=>{const s=t(o);r(s)}})(fp||(fp={}));class Ad{constructor(e={}){this.comparator=e.comparator||Ad.defaultComparator,this.index={},this.data=e.data||[],this.heapify()}isEmpty(){return this.data.length===0}insert(e,t,r){const o={priority:e,value:t},s=this.data.length;return r&&(o.id=r,this.index[r]=s),this.data.push(o),this.bubbleUp(s),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(e,t){const r=this.index[e];if(typeof r>"u")throw new Error(`Node with id '${e}' was not found in the heap.`);const o=this.data,s=o[r].priority,i=this.comparator(t,s);i<0?(o[r].priority=t,this.bubbleUp(r)):i>0&&(o[r].priority=t,this.bubbleDown(r))}remove(){const e=this.data,t=e[0],r=e.pop();return t.id&&delete this.index[t.id],e.length>0&&(e[0]=r,r.id&&(this.index[r.id]=0),this.bubbleDown(0)),t?t.value:null}heapify(){for(let e=0;e0&&(o=s-1>>>1,this.comparator(t[s].priority,t[o].priority)<0);){r=t[o],t[o]=t[s];let i=t[s].id;i!=null&&(this.index[i]=o),t[s]=r,i=t[s].id,i!=null&&(this.index[i]=s),s=o}}bubbleDown(e){const t=this.data,r=t.length-1;let o=e;for(;;){const s=(o<<1)+1,i=s+1;let l=o;if(s<=r&&this.comparator(t[s].priority,t[l].priority)<0&&(l=s),i<=r&&this.comparator(t[i].priority,t[l].priority)<0&&(l=i),l!==o){const a=t[l];t[l]=t[o];let c=t[o].id;c!=null&&(this.index[c]=l),t[o]=a,c=t[o].id,c!=null&&(this.index[c]=o),o=l}else break}}}(function(n){n.defaultComparator=(e,t)=>e-t})(Ad||(Ad={}));var wb;(function(n){function e(t,r,o=(s,i)=>1){const s={},i={},l={},a=new Ad;for(s[r]=0,Object.keys(t).forEach(c=>{c!==r&&(s[c]=1/0),a.insert(s[c],c,c)});!a.isEmpty();){const c=a.remove();l[c]=!0;const u=t[c]||[];for(let d=0;d{const r=this[t].toString(16);return r.length<2?`0${r}`:r}).join("")}`}toRGBA(){return this.toArray()}toHSLA(){return Hs.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(e){const t=`${this.r},${this.g},${this.b},`;return e?`rgb(${t})`:`rgba(${t},${this.a})`}toGrey(){return Hs.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}(function(n){function e(b){return new n(b)}n.fromArray=e;function t(b){return new n([...p(b),1])}n.fromHex=t;function r(b){const y=b.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(y){const x=y[1].split(/\s*,\s*/).map(E=>parseInt(E,10));return new n(x)}return null}n.fromRGBA=r;function o(b,y,x){x<0&&++x,x>1&&--x;const E=6*x;return E<1?b+(y-b)*E:2*x<1?y:3*x<2?b+(y-b)*(2/3-x)*6:b}function s(b){const y=b.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(y){const x=y[2].split(/\s*,\s*/),E=(parseFloat(x[0])%360+360)%360/360,T=parseFloat(x[1])/100,M=parseFloat(x[2])/100,O=x[3]==null?1:parseInt(x[3],10);return new n(c(E,T,M,O))}return null}n.fromHSLA=s;function i(b){if(b.startsWith("#"))return t(b);if(b.startsWith("rgb"))return r(b);const y=n.named[b];return y?t(y):s(b)}n.fromString=i;function l(b,y){return n.fromArray([b,b,b,y])}n.makeGrey=l;function a(b,y,x,E){const T=Array.isArray(b)?b[0]:b,M=Array.isArray(b)?b[1]:y,O=Array.isArray(b)?b[2]:x,k=Array.isArray(b)?b[3]:E,P=Math.max(T,M,O),L=Math.min(T,M,O),j=(P+L)/2;let ce=0,R=0;if(L!==P){const $=P-L;switch(R=j>.5?$/(2-P-L):$/(P+L),P){case T:ce=(M-O)/$+(M186?"#000000":"#ffffff":`${O?"#":""}${g(255-k,255-P,255-L)}`}const x=b[0],E=b[1],T=b[2],M=b[3];return y?x*.299+E*.587+T*.114>186?[0,0,0,M]:[255,255,255,M]:[255-x,255-E,255-T,M]}n.invert=h;function p(b){const y=b.indexOf("#")===0?b:`#${b}`;let x=+`0x${y.substr(1)}`;if(!(y.length===4||y.length===7)||Number.isNaN(x))throw new Error("Invalid hex color.");const E=y.length===4?4:8,T=(1<{const O=x&T;return x>>=E,E===4?17*O:O});return[M[2],M[1],M[0]]}function g(b,y,x){const E=T=>T.length<2?`0${T}`:T;return`${E(b.toString(16))}${E(y.toString(16))}${E(x.toString(16))}`}function m(b,y){return w(b,y)}n.lighten=m;function v(b,y){return w(b,-y)}n.darken=v;function w(b,y){if(typeof b=="string"){const T=b[0]==="#",M=parseInt(T?b.substr(1):b,16),O=lo((M>>16)+y,0,255),k=lo((M>>8&255)+y,0,255),P=lo((M&255)+y,0,255);return`${T?"#":""}${(P|k<<8|O<<16).toString(16)}`}const x=g(b[0],b[1],b[2]),E=p(w(x,y));return[E[0],E[1],E[2],b[3]]}})(Hs||(Hs={}));(function(n){n.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}})(Hs||(Hs={}));class Cb{constructor(){this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(e){return this.map.has(e)}get(e){return this.map.get(e)}set(e,t){this.map.set(e,t),this.arr.push(e)}delete(e){const t=this.arr.indexOf(e);t>=0&&this.arr.splice(t,1);const r=this.map.get(e);return this.map.delete(e),r}each(e){this.arr.forEach(t=>{const r=this.map.get(t);e(r,t)})}dispose(){this.clear()}}var kc;(function(n){function e(o){const s=[],i=[];return Array.isArray(o)?s.push(...o):o.split("|").forEach(l=>{l.indexOf("&")===-1?s.push(l):i.push(...l.split("&"))}),{or:s,and:i}}n.parse=e;function t(o,s){if(o!=null&&s!=null){const i=e(o),l=e(s),a=i.or.sort(),c=l.or.sort(),u=i.and.sort(),d=l.and.sort(),f=(h,p)=>h.length===p.length&&(h.length===0||h.every((g,m)=>g===p[m]));return f(a,c)&&f(u,d)}return o==null&&s==null}n.equals=t;function r(o,s,i){if(s==null||Array.isArray(s)&&s.length===0)return i?o.altKey!==!0&&o.ctrlKey!==!0&&o.metaKey!==!0&&o.shiftKey!==!0:!0;const{or:l,and:a}=e(s),c=u=>{const d=`${u.toLowerCase()}Key`;return o[d]===!0};return l.some(u=>c(u))&&a.every(u=>c(u))}n.isMatch=r})(kc||(kc={}));var va;(function(n){n.linear=e=>e,n.quad=e=>e*e,n.cubic=e=>e*e*e,n.inout=e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)},n.exponential=e=>Math.pow(2,10*(e-1)),n.bounce=e=>{for(let t=0,r=1;;t+=r,r/=2)if(e>=(7-4*t)/11){const o=(11-6*t-11*e)/4;return-o*o+r*r}}})(va||(va={}));(function(n){n.decorators={reverse(e){return t=>1-e(1-t)},reflect(e){return t=>.5*(t<.5?e(2*t):2-e(2-2*t))},clamp(e,t=0,r=1){return o=>{const s=e(o);return sr?r:s}},back(e=1.70158){return t=>t*t*((e+1)*t-e)},elastic(e=1.5){return t=>Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)}}})(va||(va={}));(function(n){function e(R){return-1*Math.cos(R*(Math.PI/2))+1}n.easeInSine=e;function t(R){return Math.sin(R*(Math.PI/2))}n.easeOutSine=t;function r(R){return-.5*(Math.cos(Math.PI*R)-1)}n.easeInOutSine=r;function o(R){return R*R}n.easeInQuad=o;function s(R){return R*(2-R)}n.easeOutQuad=s;function i(R){return R<.5?2*R*R:-1+(4-2*R)*R}n.easeInOutQuad=i;function l(R){return R*R*R}n.easeInCubic=l;function a(R){const $=R-1;return $*$*$+1}n.easeOutCubic=a;function c(R){return R<.5?4*R*R*R:(R-1)*(2*R-2)*(2*R-2)+1}n.easeInOutCubic=c;function u(R){return R*R*R*R}n.easeInQuart=u;function d(R){const $=R-1;return 1-$*$*$*$}n.easeOutQuart=d;function f(R){const $=R-1;return R<.5?8*R*R*R*R:1-8*$*$*$*$}n.easeInOutQuart=f;function h(R){return R*R*R*R*R}n.easeInQuint=h;function p(R){const $=R-1;return 1+$*$*$*$*$}n.easeOutQuint=p;function g(R){const $=R-1;return R<.5?16*R*R*R*R*R:1+16*$*$*$*$*$}n.easeInOutQuint=g;function m(R){return R===0?0:Math.pow(2,10*(R-1))}n.easeInExpo=m;function v(R){return R===1?1:-Math.pow(2,-10*R)+1}n.easeOutExpo=v;function w(R){if(R===0||R===1)return R;const $=R*2,q=$-1;return $<1?.5*Math.pow(2,10*q):.5*(-Math.pow(2,-10*q)+2)}n.easeInOutExpo=w;function b(R){const $=R/1;return-1*(Math.sqrt(1-$*R)-1)}n.easeInCirc=b;function y(R){const $=R-1;return Math.sqrt(1-$*$)}n.easeOutCirc=y;function x(R){const $=R*2,q=$-2;return $<1?-.5*(Math.sqrt(1-$*$)-1):.5*(Math.sqrt(1-q*q)+1)}n.easeInOutCirc=x;function E(R,$=1.70158){return R*R*(($+1)*R-$)}n.easeInBack=E;function T(R,$=1.70158){const q=R/1-1;return q*q*(($+1)*q+$)+1}n.easeOutBack=T;function M(R,$=1.70158){const q=R*2,U=q-2,W=$*1.525;return q<1?.5*q*q*((W+1)*q-W):.5*(U*U*((W+1)*U+W)+2)}n.easeInOutBack=M;function O(R,$=.7){if(R===0||R===1)return R;const U=R/1-1,W=1-$,Z=W/(2*Math.PI)*Math.asin(1);return-(Math.pow(2,10*U)*Math.sin((U-Z)*(2*Math.PI)/W))}n.easeInElastic=O;function k(R,$=.7){const q=1-$,U=R*2;if(R===0||R===1)return R;const W=q/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*U)*Math.sin((U-W)*(2*Math.PI)/q)+1}n.easeOutElastic=k;function P(R,$=.65){const q=1-$;if(R===0||R===1)return R;const U=R*2,W=U-1,Z=q/(2*Math.PI)*Math.asin(1);return U<1?-.5*(Math.pow(2,10*W)*Math.sin((W-Z)*(2*Math.PI)/q)):Math.pow(2,-10*W)*Math.sin((W-Z)*(2*Math.PI)/q)*.5+1}n.easeInOutElastic=P;function L(R){const $=R/1;if($<1/2.75)return 7.5625*$*$;if($<2/2.75){const q=$-.5454545454545454;return 7.5625*q*q+.75}if($<2.5/2.75){const q=$-.8181818181818182;return 7.5625*q*q+.9375}{const q=$-.9545454545454546;return 7.5625*q*q+.984375}}n.easeOutBounce=L;function j(R){return 1-L(1-R)}n.easeInBounce=j;function ce(R){return R<.5?j(R*2)*.5:L(R*2-1)*.5+.5}n.easeInOutBounce=ce})(va||(va={}));var Kl;(function(n){n.number=(e,t)=>{const r=t-e;return o=>e+r*o},n.object=(e,t)=>{const r=Object.keys(e);return o=>{const s={};for(let i=r.length-1;i!==-1;i-=1){const l=r[i];s[l]=e[l]+(t[l]-e[l])*o}return s}},n.unit=(e,t)=>{const r=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,o=r.exec(e),s=r.exec(t),i=s?s[1]:"",l=o?+o[1]:0,a=s?+s[1]:0,c=i.indexOf("."),u=c>0?i[1].length-c-1:0,d=a-l,f=o?o[2]:"";return h=>(l+d*h).toFixed(u)+f},n.color=(e,t)=>{const r=parseInt(e.slice(1),16),o=parseInt(t.slice(1),16),s=r&255,i=(o&255)-s,l=r&65280,a=(o&65280)-l,c=r&16711680,u=(o&16711680)-c;return d=>{const f=s+i*d&255,h=l+a*d&65280,p=c+u*d&16711680;return`#${(1<<24|f|h|p).toString(16).slice(1)}`}}})(Kl||(Kl={}));const Yu=[];function Uie(n,e){const t=Yu.find(r=>r.name===n);if(!(t&&(t.loadTimes+=1,t.loadTimes>1))&&!nl.isApplyingHMR()){const r=document.createElement("style");r.setAttribute("type","text/css"),r.textContent=e;const o=document.querySelector("head");o&&o.insertBefore(r,o.firstChild),Yu.push({name:n,loadTimes:1,styleElement:r})}}function Wie(n){const e=Yu.findIndex(t=>t.name===n);if(e>-1){const t=Yu[e];if(t.loadTimes-=1,t.loadTimes>0)return;let r=t.styleElement;r&&r.parentNode&&r.parentNode.removeChild(r),r=null,Yu.splice(e,1)}}var Wt;(function(n){function e(r){return 180*r/Math.PI%360}n.toDeg=e,n.toRad=function(r,o=!1){return(o?r:r%360)*Math.PI/180};function t(r){return r%360+(r<0?360:0)}n.normalize=t})(Wt||(Wt={}));var Ht;(function(n){function e(l,a=0){return Number.isInteger(l)?l:+l.toFixed(a)}n.round=e;function t(l,a){let c,u;if(a==null?(u=l??1,c=0):(u=a,c=l??0),uc?c:l:la?a:l}n.clamp=r;function o(l,a){return a*Math.round(l/a)}n.snapToGrid=o;function s(l,a){return a!=null&&l!=null&&a.x>=l.x&&a.x<=l.x+l.width&&a.y>=l.y&&a.y<=l.y+l.height}n.containsPoint=s;function i(l,a){const c=l.x-a.x,u=l.y-a.y;return c*c+u*u}n.squaredLength=i})(Ht||(Ht={}));class xl{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class K extends xl{constructor(e,t){super(),this.x=e??0,this.y=t??0}round(e=0){return this.x=Ht.round(this.x,e),this.y=Ht.round(this.y,e),this}add(e,t){const r=K.create(e,t);return this.x+=r.x,this.y+=r.y,this}update(e,t){const r=K.create(e,t);return this.x=r.x,this.y=r.y,this}translate(e,t){const r=K.create(e,t);return this.x+=r.x,this.y+=r.y,this}rotate(e,t){const r=K.rotate(this,e,t);return this.x=r.x,this.y=r.y,this}scale(e,t,r=new K){const o=K.create(r);return this.x=o.x+e*(this.x-o.x),this.y=o.y+t*(this.y-o.y),this}closest(e){if(e.length===1)return K.create(e[0]);let t=null,r=1/0;return e.forEach(o=>{const s=this.squaredDistance(o);so&&(l=(this.x+this.width-o)/(g.x-o)),g.y>s&&(d=(this.y+this.height-s)/(g.y-s));const m=r.topRight;m.x>o&&(a=(this.x+this.width-o)/(m.x-o)),m.ys&&(h=(this.y+this.height-s)/(v.y-s)),{sx:Math.min(i,l,a,c),sy:Math.min(u,d,f,h)}}getMaxUniformScaleToFit(e,t=this.center){const r=this.getMaxScaleToFit(e,t);return Math.min(r.sx,r.sy)}containsPoint(e,t){return Ht.containsPoint(this,K.create(e,t))}containsRect(e,t,r,o){const s=$e.create(e,t,r,o),i=this.x,l=this.y,a=this.width,c=this.height,u=s.x,d=s.y,f=s.width,h=s.height;return a===0||c===0||f===0||h===0?!1:u>=i&&d>=l&&u+f<=i+a&&d+h<=l+c}intersectsWithLine(e){const t=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],r=[],o=[];return t.forEach(s=>{const i=e.intersectsWithLine(s);i!==null&&o.indexOf(i.toString())<0&&(r.push(i),o.push(i.toString()))}),r.length>0?r:null}intersectsWithLineFromCenterToPoint(e,t){const r=K.clone(e),o=this.center;let s=null;t!=null&&t!==0&&r.rotate(t,o);const i=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],l=new Ke(o,r);for(let a=i.length-1;a>=0;a-=1){const c=i[a].intersectsWithLine(l);if(c!==null){s=c;break}}return s&&t!=null&&t!==0&&s.rotate(-t,o),s}intersectsWithRect(e,t,r,o){const s=$e.create(e,t,r,o);if(!this.isIntersectWithRect(s))return null;const i=this.origin,l=this.corner,a=s.origin,c=s.corner,u=Math.max(i.x,a.x),d=Math.max(i.y,a.y);return new $e(u,d,Math.min(l.x,c.x)-u,Math.min(l.y,c.y)-d)}isIntersectWithRect(e,t,r,o){const s=$e.create(e,t,r,o),i=this.origin,l=this.corner,a=s.origin,c=s.corner;return!(c.x<=i.x||c.y<=i.y||a.x>=l.x||a.y>=l.y)}normalize(){let e=this.x,t=this.y,r=this.width,o=this.height;return this.width<0&&(e=this.x+this.width,r=-this.width),this.height<0&&(t=this.y+this.height,o=-this.height),this.x=e,this.y=t,this.width=r,this.height=o,this}union(e){const t=$e.clone(e),r=this.origin,o=this.corner,s=t.origin,i=t.corner,l=Math.min(r.x,s.x),a=Math.min(r.y,s.y),c=Math.max(o.x,i.x),u=Math.max(o.y,i.y);return new $e(l,a,c-l,u-a)}getNearestSideToPoint(e){const t=K.clone(e),r=t.x-this.x,o=this.x+this.width-t.x,s=t.y-this.y,i=this.y+this.height-t.y;let l=r,a="left";return o=1?r.clone():t.lerp(r,e)}pointAtLength(e){const t=this.start,r=this.end;let o=!0;e<0&&(o=!1,e=-e);const s=this.length();if(e>=s)return o?r.clone():t.clone();const i=(o?e:s-e)/s;return this.pointAt(i)}divideAt(e){const t=this.pointAt(e);return[new Ke(this.start,t),new Ke(t,this.end)]}divideAtLength(e){const t=this.pointAtLength(e);return[new Ke(this.start,t),new Ke(t,this.end)]}containsPoint(e){const t=this.start,r=this.end;if(t.cross(e,r)!==0)return!1;const o=this.length();return!(new Ke(t,e).length()>o||new Ke(e,r).length()>o)}intersect(e,t){const r=e.intersectsWithLine(this,t);return r?Array.isArray(r)?r:[r]:null}intersectsWithLine(e){const t=new K(this.end.x-this.start.x,this.end.y-this.start.y),r=new K(e.end.x-e.start.x,e.end.y-e.start.y),o=t.x*r.y-t.y*r.x,s=new K(e.start.x-this.start.x,e.start.y-this.start.y),i=s.x*r.y-s.y*r.x,l=s.x*t.y-s.y*t.x;if(o===0||i*o<0||l*o<0)return null;if(o>0){if(i>o||l>o)return null}else if(i0&&(o-=i,s-=l,a=o*i+s*l,a<0&&(a=0))),a<0?-1:a>0?1:0}equals(e){return e!=null&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}clone(){return new Ke(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(n){function e(t){return t!=null&&t instanceof n}n.isLine=e})(Ke||(Ke={}));class Wo extends xl{get center(){return new K(this.x,this.y)}constructor(e,t,r,o){super(),this.x=e??0,this.y=t??0,this.a=r??0,this.b=o??0}bbox(){return $e.fromEllipse(this)}getCenter(){return this.center}inflate(e,t){const r=e,o=t??e;return this.a+=2*r,this.b+=2*o,this}normalizedDistance(e,t){const r=K.create(e,t),o=r.x-this.x,s=r.y-this.y,i=this.a,l=this.b;return o*o/(i*i)+s*s/(l*l)}containsPoint(e,t){return this.normalizedDistance(e,t)<=1}intersectsWithLine(e){const t=[],r=this.a,o=this.b,s=e.start,i=e.end,l=e.vector(),a=s.diff(new K(this.x,this.y)),c=new K(l.x/(r*r),l.y/(o*o)),u=new K(a.x/(r*r),a.y/(o*o)),d=l.dot(c),f=l.dot(u),h=a.dot(u)-1,p=f*f-d*h;if(p<0)return null;if(p>0){const g=Math.sqrt(p),m=(-f-g)/d,v=(-f+g)/d;if((m<0||m>1)&&(v<0||v>1))return null;m>=0&&m<=1&&t.push(s.lerp(i,m)),v>=0&&v<=1&&t.push(s.lerp(i,v))}else{const g=-f/d;if(g>=0&&g<=1)t.push(s.lerp(i,g));else return null}return t}intersectsWithLineFromCenterToPoint(e,t=0){const r=K.clone(e);t&&r.rotate(t,this.getCenter());const o=r.x-this.x,s=r.y-this.y;let i;if(o===0)return i=this.bbox().getNearestPointToPoint(r),t?i.rotate(-t,this.getCenter()):i;const l=s/o,a=l*l,c=this.a*this.a,u=this.b*this.b;let d=Math.sqrt(1/(1/c+a/u));d=o<0?-d:d;const f=l*d;return i=new K(this.x+d,this.y+f),t?i.rotate(-t,this.getCenter()):i}tangentTheta(e){const t=K.clone(e),r=t.x,o=t.y,s=this.a,i=this.b,l=this.bbox().center,a=l.x,c=l.y,u=30,d=r>l.x+s/2,f=rl.x?o-u:o+u,h=s*s/(r-a)-s*s*(o-c)*(p-c)/(i*i*(r-a))+a):(h=o>l.y?r+u:r-u,p=i*i/(o-c)-i*i*(r-a)*(h-a)/(s*s*(o-c))+c),new K(h,p).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const r=$e.fromEllipse(this);r.rotate(e,t);const o=Wo.fromRect(r);return this.a=o.a,this.b=o.b,this.x=o.x,this.y=o.y,this}translate(e,t){const r=K.create(e,t);return this.x+=r.x,this.y+=r.y,this}equals(e){return e!=null&&e.x===this.x&&e.y===this.y&&e.a===this.a&&e.b===this.b}clone(){return new Wo(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}(function(n){function e(t){return t!=null&&t instanceof n}n.isEllipse=e})(Wo||(Wo={}));(function(n){function e(o,s,i,l){return o==null||typeof o=="number"?new n(o,s,i,l):t(o)}n.create=e;function t(o){return n.isEllipse(o)?o.clone():Array.isArray(o)?new n(o[0],o[1],o[2],o[3]):new n(o.x,o.y,o.a,o.b)}n.parse=t;function r(o){const s=o.center;return new n(s.x,s.y,o.width/2,o.height/2)}n.fromRect=r})(Wo||(Wo={}));const Gie=new RegExp("^[\\s\\dLMCZz,.]*$");function qie(n){return typeof n!="string"?!1:Gie.test(n)}function Bm(n,e){return(n%e+e)%e}function Kie(n,e,t,r,o){const s=[],i=n[n.length-1],l=e!=null&&e>0,a=e||0;if(r&&l){n=n.slice();const d=n[0],f=new K(i.x+(d.x-i.x)/2,i.y+(d.y-i.y)/2);n.splice(0,0,f)}let c=n[0],u=1;for(t?s.push("M",c.x,c.y):s.push("L",c.x,c.y);u<(r?n.length:n.length-1);){let d=n[Bm(u,n.length)],f=c.x-d.x,h=c.y-d.y;if(l&&(f!==0||h!==0)&&(o==null||o.indexOf(u-1)<0)){let p=Math.sqrt(f*f+h*h);const g=f*Math.min(a,p/2)/p,m=h*Math.min(a,p/2)/p,v=d.x+g,w=d.y+m;s.push("L",v,w);let b=n[Bm(u+1,n.length)];for(;utypeof d=="string"?d:+d.toFixed(3)).join(" ")}function uP(n,e={}){const t=[];return n&&n.length&&n.forEach(r=>{Array.isArray(r)?t.push({x:r[0],y:r[1]}):t.push({x:r.x,y:r.y})}),Kie(t,e.round,e.initialMove==null||e.initialMove,e.close,e.exclude)}function hp(n,e,t,r,o=0,s=0,i=0,l,a){if(t===0||r===0)return[];l-=n,a-=e,t=Math.abs(t),r=Math.abs(r);const c=-l/2,u=-a/2,d=Math.cos(o*Math.PI/180),f=Math.sin(o*Math.PI/180),h=d*c+f*u,p=-1*f*c+d*u,g=h*h,m=p*p,v=t*t,w=r*r,b=g/v+m/w;let y;if(b>1)t=Math.sqrt(b)*t,r=Math.sqrt(b)*r,y=0;else{let re=1;s===i&&(re=-1),y=re*Math.sqrt((v*w-v*m-w*g)/(v*m+w*g))}const x=y*t*p/r,E=-1*y*r*h/t,T=d*x-f*E+l/2,M=f*x+d*E+a/2;let O=Math.atan2((p-E)/r,(h-x)/t)-Math.atan2(0,1),k=O>=0?O:2*Math.PI+O;O=Math.atan2((-p-E)/r,(-h-x)/t)-Math.atan2((p-E)/r,(h-x)/t);let P=O>=0?O:2*Math.PI+O;i===0&&P>0?P-=2*Math.PI:i!==0&&P<0&&(P+=2*Math.PI);const L=P*2/Math.PI,j=Math.ceil(L<0?-1*L:L),ce=P/j,R=8/3*Math.sin(ce/4)*Math.sin(ce/4)/Math.sin(ce/2),$=d*t,q=d*r,U=f*t,W=f*r;let Z=Math.cos(k),le=Math.sin(k),ee=-R*($*le+W*Z),Me=-R*(U*le-q*Z),ge=0,be=0;const Te=[];for(let re=0;re+re.toFixed(2))}function Yie(n,e,t,r,o=0,s=0,i=0,l,a){const c=[],u=hp(n,e,t,r,o,s,i,l,a);if(u!=null)for(let d=0,f=u.length;dK.create(t))}else this.points=[]}scale(e,t,r=new K){return this.points.forEach(o=>o.scale(e,t,r)),this}rotate(e,t){return this.points.forEach(r=>r.rotate(e,t)),this}translate(e,t){const r=K.create(e,t);return this.points.forEach(o=>o.translate(r.x,r.y)),this}round(e=0){return this.points.forEach(t=>t.round(e)),this}bbox(){if(this.points.length===0)return new $e;let e=1/0,t=-1/0,r=1/0,o=-1/0;const s=this.points;for(let i=0,l=s.length;it&&(t=c),uo&&(o=u)}return new $e(e,r,t-e,o-r)}closestPoint(e){const t=this.closestPointLength(e);return this.pointAtLength(t)}closestPointLength(e){const t=this.points,r=t.length;if(r===0||r===1)return 0;let o=0,s=0,i=1/0;for(let l=0,a=r-1;ld.y||o>u.y&&o<=d.y){const h=u.x-r>d.x-r?u.x-r:d.x-r;if(h>=0){const p=new K(r+h,o),g=new Ke(e,p);f.intersectsWithLine(g)&&(a+=1)}}l=c}return a%2===1}intersectsWithLine(e){const t=[];for(let r=0,o=this.points.length-1;r0?t:null}isDifferentiable(){for(let e=0,t=this.points.length-1;e=1)return t[r-1].clone();const s=this.length()*e;return this.pointAtLength(s)}pointAtLength(e){const t=this.points,r=t.length;if(r===0)return null;if(r===1)return t[0].clone();let o=!0;e<0&&(o=!1,e=-e);let s=0;for(let l=0,a=r-1;l1&&(e=1);const s=this.length()*e;return this.tangentAtLength(s)}tangentAtLength(e){const t=this.points,r=t.length;if(r===0||r===1)return null;let o=!0;e<0&&(o=!1,e=-e);let s,i=0;for(let l=0,a=r-1;lr.x)&&(r=e[f]);const o=[];for(let f=0;f{let p=f[2]-h[2];return p===0&&(p=h[1]-f[1]),p}),o.length>2){const f=o[o.length-1];o.unshift(f)}const s={},i=[],l=f=>`${f[0].toString()}@${f[1]}`;for(;o.length!==0;){const f=o.pop(),h=f[0];if(s[l(f)])continue;let p=!1;for(;!p;)if(i.length<2)i.push(f),p=!0;else{const g=i.pop(),m=g[0],v=i.pop(),w=v[0],b=w.cross(m,h);if(b<0)i.push(v),i.push(g),i.push(f),p=!0;else if(b===0){const x=m.angleBetween(w,h);Math.abs(x-180)<1e-10||m.equals(h)||w.equals(m)?(s[l(g)]=m,i.push(v)):Math.abs((x+1)%360-1)<1e-10&&(i.push(v),o.push(g))}else s[l(g)]=m,i.push(v)}}i.length>2&&i.pop();let a,c=-1;for(let f=0,h=i.length;f0){const f=i.slice(c),h=i.slice(0,c);u=f.concat(h)}else u=i;const d=[];for(let f=0,h=u.length;ft.equals(this.points[r]))}clone(){return new gn(this.points.map(e=>e.clone()))}toJSON(){return this.points.map(e=>e.toJSON())}serialize(){return this.points.map(e=>`${e.serialize()}`).join(" ")}}(function(n){function e(t){return t!=null&&t instanceof n}n.isPolyline=e})(gn||(gn={}));(function(n){function e(t){const r=t.trim();if(r==="")return new n;const o=[],s=r.split(/\s*,\s*|\s+/);for(let i=0,l=s.length;i0&&w<1&&h.push(w);continue}x=m*m-4*v*g,E=Math.sqrt(x),!(x<0)&&(b=(-m+E)/(2*g),b>0&&b<1&&h.push(b),y=(-m-E)/(2*g),y>0&&y<1&&h.push(y))}let T,M,O,k=h.length;const P=k;for(;k;)k-=1,w=h[k],O=1-w,T=O*O*O*s+3*O*O*w*l+3*O*w*w*c+w*w*w*d,p[0][k]=T,M=O*O*O*i+3*O*O*w*a+3*O*w*w*u+w*w*w*f,p[1][k]=M;h[P]=0,h[P+1]=1,p[0][P]=s,p[1][P]=i,p[0][P+1]=d,p[1][P+1]=f,h.length=P+2,p[0].length=P+2,p[1].length=P+2;const L=Math.min.apply(null,p[0]),j=Math.min.apply(null,p[1]),ce=Math.max.apply(null,p[0]),R=Math.max.apply(null,p[1]);return new $e(L,j,ce-L,R-j)}closestPoint(e,t={}){return this.pointAtT(this.closestPointT(e,t))}closestPointLength(e,t={}){const r=this.getOptions(t);return this.lengthAtT(this.closestPointT(e,r),r)}closestPointNormalizedLength(e,t={}){const r=this.getOptions(t),o=this.closestPointLength(e,r);if(!o)return 0;const s=this.length(r);return s===0?0:o/s}closestPointT(e,t={}){const r=this.getPrecision(t),o=this.getDivisions(t),s=Math.pow(10,-r);let i=null,l=0,a=0,c=0,u=0,d=0,f=null;const h=o.length;let p=h>0?1/h:0;for(o.forEach((g,m)=>{const v=g.start.distance(e),w=g.end.distance(e),b=v+w;(f==null||b=1)return this.divideAtT(1);const r=this.tAt(e,t);return this.divideAtT(r)}divideAtLength(e,t={}){const r=this.tAtLength(e,t);return this.divideAtT(r)}divide(e){return this.divideAtT(e)}divideAtT(e){const t=this.start,r=this.controlPoint1,o=this.controlPoint2,s=this.end;if(e<=0)return[new ln(t,t,t,t),new ln(t,r,o,s)];if(e>=1)return[new ln(t,r,o,s),new ln(s,s,s,s)];const i=this.getSkeletonPoints(e),l=i.startControlPoint1,a=i.startControlPoint2,c=i.divider,u=i.dividerControlPoint1,d=i.dividerControlPoint2;return[new ln(t,l,a,c),new ln(c,u,d,s)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const t=this.start,r=this.controlPoint1,o=this.controlPoint2,s=this.end;if(e<=0)return{startControlPoint1:t.clone(),startControlPoint2:t.clone(),divider:t.clone(),dividerControlPoint1:r.clone(),dividerControlPoint2:o.clone()};if(e>=1)return{startControlPoint1:r.clone(),startControlPoint2:o.clone(),divider:s.clone(),dividerControlPoint1:s.clone(),dividerControlPoint2:s.clone()};const i=new Ke(t,r).pointAt(e),l=new Ke(r,o).pointAt(e),a=new Ke(o,s).pointAt(e),c=new Ke(i,l).pointAt(e),u=new Ke(l,a).pointAt(e),d=new Ke(c,u).pointAt(e);return{startControlPoint1:i,startControlPoint2:c,divider:d,dividerControlPoint1:u,dividerControlPoint2:a}}getSubdivisions(e={}){const t=this.getPrecision(e);let r=[new ln(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(t===0)return r;let o=this.endpointDistance();const s=Math.pow(10,-t);let i=0;for(;;){i+=1;const l=[];r.forEach(u=>{const d=u.divide(.5);l.push(d[0],d[1])});const a=l.reduce((u,d)=>u+d.endpointDistance(),0),c=a!==0?(a-o)/a:0;if(i>1&&cr+o.endpointDistance(),0)}lengthAtT(e,t={}){if(e<=0)return 0;const r=t.precision===void 0?this.PRECISION:t.precision;return this.divide(e)[0].length({precision:r})}pointAt(e,t={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const r=this.tAt(e,t);return this.pointAtT(r)}pointAtLength(e,t={}){const r=this.tAtLength(e,t);return this.pointAtT(r)}pointAtT(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}isDifferentiable(){const e=this.start,t=this.controlPoint1,r=this.controlPoint2,o=this.end;return!(e.equals(t)&&t.equals(r)&&r.equals(o))}tangentAt(e,t={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const r=this.tAt(e,t);return this.tangentAtT(r)}tangentAtLength(e,t={}){if(!this.isDifferentiable())return null;const r=this.tAtLength(e,t);return this.tangentAtT(r)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const t=this.getSkeletonPoints(e),r=t.startControlPoint2,o=t.dividerControlPoint1,s=t.divider,i=new Ke(r,o);return i.translate(s.x-r.x,s.y-r.y),i}getPrecision(e={}){return e.precision==null?this.PRECISION:e.precision}getDivisions(e={}){if(e.subdivisions!=null)return e.subdivisions;const t=this.getPrecision(e);return this.getSubdivisions({precision:t})}getOptions(e={}){const t=this.getPrecision(e),r=this.getDivisions(e);return{precision:t,subdivisions:r}}tAt(e,t={}){if(e<=0)return 0;if(e>=1)return 1;const r=this.getOptions(t),s=this.length(r)*e;return this.tAtLength(s,r)}tAtLength(e,t={}){let r=!0;e<0&&(r=!1,e=-e);const o=this.getPrecision(t),s=this.getDivisions(t),i={precision:o,subdivisions:s};let l=null,a,c,u=0,d=0,f=0;const h=s.length;let p=h>0?1/h:0;for(let v=0;vr.push(o.end.clone())),r}toPolyline(e={}){return new gn(this.toPoints(e))}scale(e,t,r){return this.start.scale(e,t,r),this.controlPoint1.scale(e,t,r),this.controlPoint2.scale(e,t,r),this.end.scale(e,t,r),this}rotate(e,t){return this.start.rotate(e,t),this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}translate(e,t){return typeof e=="number"?(this.start.translate(e,t),this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return e!=null&&this.start.equals(e.start)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)&&this.end.equals(e.end)}clone(){return new ln(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}(function(n){function e(t){return t!=null&&t instanceof n}n.isCurve=e})(ln||(ln={}));(function(n){function e(o){const s=o.length,i=[],l=[];let a=2;i[0]=o[0]/a;for(let c=1;cK.clone(f)),i=[],l=[],a=s.length-1;if(a===1)return i[0]=new K((2*s[0].x+s[1].x)/3,(2*s[0].y+s[1].y)/3),l[0]=new K(2*i[0].x-s[0].x,2*i[0].y-s[0].y),[i,l];const c=[];for(let f=1;f=1?r:r*e}divideAtT(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class lr extends Ag{constructor(e,t){super(),Ke.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=K.create(e,t).round(2)}get type(){return"L"}get line(){return new Ke(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[new lr(t[0]),new lr(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new lr(t[0]),new lr(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return this.previousSegment==null?!1:!this.start.equals(this.end)}clone(){return new lr(this.end)}scale(e,t,r){return this.end.scale(e,t,r),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return typeof e=="number"?this.end.translate(e,t):this.end.translate(e),this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}(function(n){function e(...t){const r=t.length,o=t[0];if(Ke.isLine(o))return new n(o);if(K.isPointLike(o))return r===1?new n(o):t.map(i=>new n(i));if(r===2)return new n(+t[0],+t[1]);const s=[];for(let i=0;i1&&($=Math.sqrt($),t=$*t,r=$*r);const q=t*t,U=r*r,W=(s===i?-1:1)*Math.sqrt(Math.abs((q*U-q*R*R-U*ce*ce)/(q*R*R+U*ce*ce)));m=W*t*R/r+(n+l)/2,v=W*-r*ce/t+(e+a)/2,p=Math.asin((e-v)/r),g=Math.asin((a-v)/r),p=ng&&(p-=Math.PI*2),!i&&g>p&&(g-=Math.PI*2)}let w=g-p;if(Math.abs(w)>u){const ce=g,R=l,$=a;g=p+u*(i&&g>p?1:-1),l=m+t*Math.cos(g),a=v+r*Math.sin(g),f=dP(l,a,t,r,o,0,i,R,$,[g,ce,m,v])}w=g-p;const b=Math.cos(p),y=Math.sin(p),x=Math.cos(g),E=Math.sin(g),T=Math.tan(w/4),M=4/3*(t*T),O=4/3*(r*T),k=[n,e],P=[n+M*y,e-O*b],L=[l+M*E,a-O*x],j=[l,a];if(P[0]=2*k[0]-P[0],P[1]=2*k[1]-P[1],c)return[P,L,j].concat(f);{f=[P,L,j].concat(f).join().split(",");const ce=[],R=f.length;for(let $=0;${const c=[];let u=l.toLowerCase();a.replace(r,(f,h)=>(h&&c.push(+h),f)),u==="m"&&c.length>2&&(s.push([l,...c.splice(0,2)]),u="l",l=l==="m"?"l":"L");const d=o[u];for(;c.length>=d&&(s.push([l,...c.splice(0,d)]),!!d););return i}),s}function Xie(n){const e=Jie(n);if(!e||!e.length)return[["M",0,0]];let t=0,r=0,o=0,s=0;const i=[];for(let l=0,a=e.length;l7){a[c].shift();const u=a[c];for(;u.length;)s[c]="A",c+=1,a.splice(c,0,["C"].concat(u.splice(0,6)));a.splice(c,1),l=e.length}}const s=[];let i="",l=e.length;for(let a=0;a0&&(i=s[a-1])),e[a]=r(e[a],t,i),s[a]!=="A"&&c==="C"&&(s[a]="C"),o(e,a);const u=e[a],d=u.length;t.x=u[d-2],t.y=u[d-1],t.bx=parseFloat(u[d-4])||t.x,t.by=parseFloat(u[d-3])||t.y}return(!e[0][0]||e[0][0]!=="M")&&e.unshift(["M",0,0]),e}function Qie(n){return Zie(n).map(e=>e.map(t=>typeof t=="string"?t:Ht.round(t,2))).join(",").split(",").join(" ")}class rt extends xl{constructor(e){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(e))if(Ke.isLine(e[0])||ln.isCurve(e[0])){let t=null;e.forEach((o,s)=>{s===0&&this.appendSegment(rt.createSegment("M",o.start)),t!=null&&!t.end.equals(o.start)&&this.appendSegment(rt.createSegment("M",o.start)),Ke.isLine(o)?this.appendSegment(rt.createSegment("L",o.end)):ln.isCurve(o)&&this.appendSegment(rt.createSegment("C",o.controlPoint1,o.controlPoint2,o.end)),t=o})}else e.forEach(r=>{r.isSegment&&this.appendSegment(r)});else e!=null&&(Ke.isLine(e)?(this.appendSegment(rt.createSegment("M",e.start)),this.appendSegment(rt.createSegment("L",e.end))):ln.isCurve(e)?(this.appendSegment(rt.createSegment("M",e.start)),this.appendSegment(rt.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):gn.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((t,r)=>{const o=r===0?rt.createSegment("M",t):rt.createSegment("L",t);this.appendSegment(o)}):e.isSegment&&this.appendSegment(e))}get start(){const e=this.segments,t=e.length;if(t===0)return null;for(let r=0;r=0;r-=1){const o=e[r];if(o.isVisible)return o.end}return e[t-1].end}moveTo(...e){return this.appendSegment(Nc.create.call(null,...e))}lineTo(...e){return this.appendSegment(lr.create.call(null,...e))}curveTo(...e){return this.appendSegment(no.create.call(null,...e))}arcTo(e,t,r,o,s,i,l){const a=this.end||new K,c=typeof i=="number"?hp(a.x,a.y,e,t,r,o,s,i,l):hp(a.x,a.y,e,t,r,o,s,i.x,i.y);if(c!=null)for(let u=0,d=c.length;ur||e<0)throw new Error("Index out of range.");let o,s=null,i=null;if(r!==0&&(e>=1?(s=this.segments[e-1],i=s.nextSegment):(s=null,i=this.segments[0])),!Array.isArray(t))o=this.prepareSegment(t,s,i),this.segments.splice(e,0,o);else for(let l=0,a=t.length;l=t||r<0)throw new Error("Index out of range.");return r}segmentAt(e,t={}){const r=this.segmentIndexAt(e,t);return r?this.getSegment(r):null}segmentAtLength(e,t={}){const r=this.segmentIndexAtLength(e,t);return r?this.getSegment(r):null}segmentIndexAt(e,t={}){if(this.segments.length===0)return null;const r=Ht.clamp(e,0,1),o=this.getOptions(t),i=this.length(o)*r;return this.segmentIndexAtLength(i,o)}segmentIndexAtLength(e,t={}){const r=this.segments.length;if(r===0)return null;let o=!0;e<0&&(o=!1,e=-e);const s=this.getPrecision(t),i=this.getSubdivisions(t);let l=0,a=null;for(let c=0;c=1)return this.end.clone();const r=this.getOptions(t),s=this.length(r)*e;return this.pointAtLength(s,r)}pointAtLength(e,t={}){if(this.segments.length===0)return null;if(e===0)return this.start.clone();let r=!0;e<0&&(r=!1,e=-e);const o=this.getPrecision(t),s=this.getSubdivisions(t);let i,l=0;for(let c=0,u=this.segments.length;c=r)return t[r-1].pointAtT(1);const s=Ht.clamp(e.value,0,1);return t[o].pointAtT(s)}divideAt(e,t={}){if(this.segments.length===0)return null;const r=Ht.clamp(e,0,1),o=this.getOptions(t),i=this.length(o)*r;return this.divideAtLength(i,o)}divideAtLength(e,t={}){if(this.segments.length===0)return null;let r=!0;e<0&&(r=!1,e=-e);const o=this.getPrecision(t),s=this.getSubdivisions(t);let i=0,l,a,c,u,d;for(let x=0,E=this.segments.length;x=r&&(o=r-1,s=1);const i=this.getPrecision(t),l=this.getSubdivisions(t);let a=0;for(let d=0;d=t)return this.segments[t-1].tangentAtT(1);const o=Ht.clamp(e.value,0,1);return this.segments[r].tangentAtT(o)}getPrecision(e={}){return e.precision==null?this.PRECISION:e.precision}getSubdivisions(e={}){if(e.segmentSubdivisions==null){const t=this.getPrecision(e);return this.getSegmentSubdivisions({precision:t})}return e.segmentSubdivisions}getOptions(e={}){const t=this.getPrecision(e),r=this.getSubdivisions(e);return{precision:t,segmentSubdivisions:r}}toPoints(e={}){const t=this.segments,r=t.length;if(r===0)return null;const o=this.getSubdivisions(e),s=[];let i=[];for(let l=0;l0?c.forEach(u=>i.push(u.start)):i.push(a.start)}else i.length>0&&(i.push(t[l-1].end),s.push(i),i=[])}return i.length>0&&(i.push(this.end),s.push(i)),s}toPolylines(e={}){const t=this.toPoints(e);return t?t.map(r=>new gn(r)):null}scale(e,t,r){return this.segments.forEach(o=>o.scale(e,t,r)),this}rotate(e,t){return this.segments.forEach(r=>r.rotate(e,t)),this}translate(e,t){return typeof e=="number"?this.segments.forEach(r=>r.translate(e,t)):this.segments.forEach(r=>r.translate(e)),this}clone(){const e=new rt;return this.segments.forEach(t=>e.appendSegment(t.clone())),e}equals(e){if(e==null)return!1;const t=this.segments,r=e.segments,o=t.length;if(r.length!==o)return!1;for(let s=0;se.toJSON())}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map(e=>e.serialize()).join(" ")}toString(){return this.serialize()}}(function(n){function e(t){return t!=null&&t instanceof n}n.isPath=e})(rt||(rt={}));(function(n){function e(r){if(!r)return new n;const o=new n,s=/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g,i=n.normalize(r).match(s);if(i!=null)for(let l=0,a=i.length;l+g),p=t.call(null,f,...h);o.appendSegment(p)}}return o}n.parse=e;function t(r,...o){if(r==="M")return Nc.create.call(null,...o);if(r==="L")return lr.create.call(null,...o);if(r==="C")return no.create.call(null,...o);if(r==="z"||r==="Z")return Pc.create();throw new Error(`Invalid path segment type "${r}"`)}n.createSegment=t})(rt||(rt={}));(function(n){n.normalize=Qie,n.isValid=qie,n.drawArc=Yie,n.drawPoints=uP,n.arcToCurves=hp})(rt||(rt={}));class bn{constructor(e){this.options=Object.assign({},e),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}get names(){return Object.keys(this.data)}register(e,t,r=!1){if(typeof e=="object"){Object.entries(e).forEach(([i,l])=>{this.register(i,l,t)});return}this.exist(e)&&!r&&!nl.isApplyingHMR()&&this.onDuplicated(e);const o=this.options.process,s=o?pt(o,this,e,t):t;return this.data[e]=s,s}unregister(e){const t=e?this.data[e]:null;return delete this.data[e],t}get(e){return e?this.data[e]:null}exist(e){return e?this.data[e]!=null:!1}onDuplicated(e){try{throw this.options.onConflict&&pt(this.options.onConflict,this,e),new Error(`${Dh(this.options.type)} with name '${e}' already registered.`)}catch(t){throw t}}onNotFound(e,t){throw new Error(this.getSpellingSuggestion(e,t))}getSpellingSuggestion(e,t){const r=this.getSpellingSuggestionForName(e),o=t?`${t} ${v6(this.options.type)}`:this.options.type;return`${Dh(o)} with name '${e}' does not exist.${r?` Did you mean '${r}'?`:""}`}getSpellingSuggestionForName(e){return Zse(e,Object.keys(this.data),t=>t)}}(function(n){function e(t){return new n(t)}n.create=e})(bn||(bn={}));const ele={color:"#aaaaaa",thickness:1,markup:"rect",update(n,e){const t=e.thickness*e.sx,r=e.thickness*e.sy;Gt(n,{width:t,height:r,rx:t,ry:r,fill:e.color})}},tle={color:"#aaaaaa",thickness:1,markup:"rect",update(n,e){const t=e.sx<=1?e.thickness*e.sx:e.thickness;Gt(n,{width:t,height:t,rx:t,ry:t,fill:e.color})}},nle={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(n,e){let t;const r=e.width,o=e.height,s=e.thickness;r-s>=0&&o-s>=0?t=["M",r,0,"H0 M0 0 V0",o].join(" "):t="M 0 0 0 0",Gt(n,{d:t,stroke:e.color,"stroke-width":e.thickness})}},rle=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(n,e){let t;const r=e.width,o=e.height,s=e.thickness;r-s>=0&&o-s>=0?t=["M",r,0,"H0 M0 0 V0",o].join(" "):t="M 0 0 0 0",Gt(n,{d:t,stroke:e.color,"stroke-width":e.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(n,e){let t;const r=e.factor||1,o=e.width*r,s=e.height*r,i=e.thickness;o-i>=0&&s-i>=0?t=["M",o,0,"H0 M0 0 V0",s].join(" "):t="M 0 0 0 0",e.width=o,e.height=s,Gt(n,{d:t,stroke:e.color,"stroke-width":e.thickness})}}],ole=Object.freeze(Object.defineProperty({__proto__:null,dot:ele,doubleMesh:rle,fixedDot:tle,mesh:nle},Symbol.toStringTag,{value:"Module"}));class ji{constructor(){this.patterns={},this.root=ft.create(cp(),{width:"100%",height:"100%"},[Jo("defs")]).node}add(e,t){const r=this.root.childNodes[0];r&&r.appendChild(t),this.patterns[e]=t,ft.create("rect",{width:"100%",height:"100%",fill:`url(#${e})`}).appendTo(this.root)}get(e){return this.patterns[e]}has(e){return this.patterns[e]!=null}}(function(n){n.presets=ole,n.registry=bn.create({type:"grid"}),n.registry.register(n.presets,!0)})(ji||(ji={}));const fP=function(n){const e=document.createElement("canvas"),t=n.width,r=n.height;e.width=t*2,e.height=r;const o=e.getContext("2d");return o.drawImage(n,0,0,t,r),o.translate(2*t,0),o.scale(-1,1),o.drawImage(n,0,0,t,r),e},hP=function(n){const e=document.createElement("canvas"),t=n.width,r=n.height;e.width=t,e.height=r*2;const o=e.getContext("2d");return o.drawImage(n,0,0,t,r),o.translate(0,2*r),o.scale(1,-1),o.drawImage(n,0,0,t,r),e},pP=function(n){const e=document.createElement("canvas"),t=n.width,r=n.height;e.width=2*t,e.height=2*r;const o=e.getContext("2d");return o.drawImage(n,0,0,t,r),o.setTransform(-1,0,0,-1,e.width,e.height),o.drawImage(n,0,0,t,r),o.setTransform(-1,0,0,1,e.width,0),o.drawImage(n,0,0,t,r),o.setTransform(1,0,0,-1,0,e.height),o.drawImage(n,0,0,t,r),e},sle=function(n,e){const t=n.width,r=n.height,o=document.createElement("canvas");o.width=t*3,o.height=r*3;const s=o.getContext("2d"),i=e.angle!=null?-e.angle:-20,l=Wt.toRad(i),a=o.width/4,c=o.height/4;for(let u=0;u<4;u+=1)for(let d=0;d<4;d+=1)(u+d)%2>0&&(s.setTransform(1,0,0,1,(2*u-1)*a,(2*d-1)*c),s.rotate(l),s.drawImage(n,-t/2,-r/2,t,r));return o},ile=Object.freeze(Object.defineProperty({__proto__:null,flipX:fP,flipXY:pP,flipY:hP,watermark:sle},Symbol.toStringTag,{value:"Module"}));var kd;(function(n){n.presets=Object.assign({},ile),n.presets["flip-x"]=fP,n.presets["flip-y"]=hP,n.presets["flip-xy"]=pP,n.registry=bn.create({type:"background pattern"}),n.registry.register(n.presets,!0)})(kd||(kd={}));function M0(n,e){return n??e}function Dn(n,e){return n!=null&&Number.isFinite(n)?n:e}function lle(n={}){const e=M0(n.color,"blue"),t=Dn(n.width,1),r=Dn(n.margin,2),o=Dn(n.opacity,1),s=r,i=r+t;return` - - - - - - - - - - - - `.trim()}function ale(n={}){const e=M0(n.color,"red"),t=Dn(n.blur,0),r=Dn(n.width,1),o=Dn(n.opacity,1);return` - - - - - - - - `.trim()}function cle(n={}){const e=Dn(n.x,2);return` - - - - `.trim()}function ule(n={}){const e=Dn(n.dx,0),t=Dn(n.dy,0),r=M0(n.color,"black"),o=Dn(n.blur,4),s=Dn(n.opacity,1);return"SVGFEDropShadowElement"in window?` - - `.trim():` - - - - - - - - - - - - `.trim()}function dle(n={}){const e=Dn(n.amount,1),t=.2126+.7874*(1-e),r=.7152-.7152*(1-e),o=.0722-.0722*(1-e),s=.2126-.2126*(1-e),i=.7152+.2848*(1-e),l=.0722-.0722*(1-e),a=.2126-.2126*(1-e),c=.0722+.9278*(1-e);return` - - - - `.trim()}function fle(n={}){const e=Dn(n.amount,1),t=.393+.607*(1-e),r=.769-.769*(1-e),o=.189-.189*(1-e),s=.349-.349*(1-e),i=.686+.314*(1-e),l=.168-.168*(1-e),a=.272-.272*(1-e),c=.534-.534*(1-e),u=.131+.869*(1-e);return` - - - - `.trim()}function hle(n={}){return` - - - - `.trim()}function ple(n={}){return` - - - - `.trim()}function gle(n={}){const e=Dn(n.amount,1),t=1-e;return` - - - - - - - - `.trim()}function mle(n={}){const e=Dn(n.amount,1);return` - - - - - - - - `.trim()}function vle(n={}){const e=Dn(n.amount,1),t=.5-e/2;return` - - - - - - - - `.trim()}const ble=Object.freeze(Object.defineProperty({__proto__:null,blur:cle,brightness:mle,contrast:vle,dropShadow:ule,grayScale:dle,highlight:ale,hueRotate:ple,invert:gle,outline:lle,saturate:hle,sepia:fle},Symbol.toStringTag,{value:"Module"}));var Ic;(function(n){n.presets=ble,n.registry=bn.create({type:"filter"}),n.registry.register(n.presets,!0)})(Ic||(Ic={}));const yle={xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"},wle={},gP={position:kg("x","width","origin")},mP={position:kg("y","height","origin")},Cle={position:kg("x","width","corner")},xle={position:kg("y","height","corner")},vP={set:ol("width","width")},bP={set:ol("height","height")},Sle={set:ol("rx","width")},Ele={set:ol("ry","height")},yP={set:(n=>{const e=ol(n,"width"),t=ol(n,"height");return function(r,o){const s=o.refBBox,i=s.height>s.width?e:t;return pt(i,this,r,o)}})("r")},_le={set(n,{refBBox:e}){let t=parseFloat(n);const r=Zs(n);r&&(t/=100);const o=Math.sqrt(e.height*e.height+e.width*e.width);let s;return Number.isFinite(t)&&(r||t>=0&&t<=1?s=t*o:s=Math.max(t+o,0)),{r:s}}},Tle={set:ol("cx","width")},Ole={set:ol("cy","height")},wP={set:SP({resetOffset:!0})},Mle={set:SP({resetOffset:!1})},CP={set:EP({resetOffset:!0})},Ale={set:EP({resetOffset:!1})},kle=yP,Ple=wP,Nle=CP,Ile=gP,Lle=mP,Rle=vP,$le=bP;function kg(n,e,t){return(r,{refBBox:o})=>{if(r==null)return null;let s=parseFloat(r);const i=Zs(r);i&&(s/=100);let l;if(Number.isFinite(s)){const c=o[t];i||s>0&&s<1?l=c[n]+o[e]*s:l=c[n]+s}const a=new K;return a[n]=l||0,a}}function ol(n,e){return function(t,{refBBox:r}){let o=parseFloat(t);const s=Zs(t);s&&(o/=100);const i={};if(Number.isFinite(o)){const l=s||o>=0&&o<=1?o*r[e]:Math.max(o+r[e],0);i[n]=l}return i}}function xP(n,e){const t="x6-shape",r=e&&e.resetOffset;return function(o,{elem:s,refBBox:i}){let l=ma(s,t);if(!l||l.value!==o){const g=n(o);l={value:o,shape:g,shapeBBox:g.bbox()},ma(s,t,l)}const a=l.shape.clone(),c=l.shapeBBox.clone(),u=c.getOrigin(),d=i.getOrigin();c.x=d.x,c.y=d.y;const f=i.getMaxScaleToFit(c,d),h=c.width===0||i.width===0?1:f.sx,p=c.height===0||i.height===0?1:f.sy;return a.scale(h,p,u),r&&a.translate(-u.x,-u.y),a}}function SP(n){function e(r){return rt.parse(r)}const t=xP(e,n);return(r,o)=>({d:t(r,o).serialize()})}function EP(n){const e=xP(t=>new gn(t),n);return(t,r)=>({points:e(t,r).serialize()})}const Dle={qualify:Cs,set(n,{view:e}){return`url(#${e.graph.defineGradient(n)})`}},Vle={qualify:Cs,set(n,{view:e}){const t=e.cell,r=Object.assign({},n);if(t.isEdge()&&r.type==="linearGradient"){const o=e,s=o.sourcePoint,i=o.targetPoint;r.id=`gradient-${r.type}-${t.id}`,r.attrs=Object.assign(Object.assign({},r.attrs),{x1:s.x,y1:s.y,x2:i.x,y2:i.y,gradientUnits:"userSpaceOnUse"}),e.graph.defs.remove(r.id)}return`url(#${e.graph.defineGradient(r)})`}},_P={qualify(n,{attrs:e}){return e.textWrap==null||!Cs(e.textWrap)},set(n,{view:e,elem:t,attrs:r}){const o="x6-text",s=ma(t,o),i=u=>{try{return JSON.parse(u)}catch{return u}},l={x:r.x,eol:r.eol,annotations:i(r.annotations),textPath:i(r["text-path"]||r.textPath),textVerticalAnchor:r["text-vertical-anchor"]||r.textVerticalAnchor,displayEmpty:(r["display-empty"]||r.displayEmpty)==="true",lineHeight:r["line-height"]||r.lineHeight},a=r["font-size"]||r.fontSize,c=JSON.stringify([n,l]);if(a&&t.setAttribute("font-size",a),s==null||s!==c){const u=l.textPath;if(u!=null&&typeof u=="object"){const d=u.selector;if(typeof d=="string"){const f=e.find(d)[0];f instanceof SVGPathElement&&(S0(f),l.textPath=Object.assign({"xlink:href":`#${f.id}`},u))}}nP(t,`${n}`,l),ma(t,o,c)}}},Ble={qualify:Cs,set(n,{view:e,elem:t,attrs:r,refBBox:o}){const s=n,i=s.width||0;Zs(i)?o.width*=parseFloat(i)/100:i<=0?o.width+=i:o.width=i;const l=s.height||0;Zs(l)?o.height*=parseFloat(l)/100:l<=0?o.height+=l:o.height=l;let a,c=s.text;c==null&&(c=r.text||(t==null?void 0:t.textContent)),c!=null?a=rP(`${c}`,o,{"font-weight":r["font-weight"]||r.fontWeight,"font-size":r["font-size"]||r.fontSize,"font-family":r["font-family"]||r.fontFamily,lineHeight:r.lineHeight},{ellipsis:s.ellipsis}):a="",pt(_P.set,this,a,{view:e,elem:t,attrs:r,refBBox:o,cell:e.cell})}},nu=(n,{attrs:e})=>e.text!==void 0,Fle={qualify:nu},zle={qualify:nu},jle={qualify:nu},Hle={qualify:nu},Ule={qualify:nu},Wle={qualify:nu},Gle={qualify(n,{elem:e}){return e instanceof SVGElement},set(n,{elem:e}){const t="x6-title",r=`${n}`,o=ma(e,t);if(o==null||o!==r){ma(e,t,r);const s=e.firstChild;if(s&&s.tagName.toUpperCase()==="TITLE"){const i=s;i.textContent=r}else{const i=document.createElementNS(e.namespaceURI,"title");i.textContent=r,e.insertBefore(i,s)}}}},qle={offset:TP("x","width","right")},Kle={offset:TP("y","height","bottom")},Yle={offset(n,{refBBox:e}){return n?{x:-e.x,y:-e.y}:{x:0,y:0}}};function TP(n,e,t){return(r,{refBBox:o})=>{const s=new K;let i;return r==="middle"?i=o[e]/2:r===t?i=o[e]:typeof r=="number"&&Number.isFinite(r)?i=r>-1&&r<1?-o[e]*r:-r:Zs(r)?i=o[e]*parseFloat(r)/100:i=0,s[n]=-(o[n]+i),s}}const Jle={qualify:Cs,set(n,{elem:e}){gf(e,n)}},Xle={set(n,{elem:e}){e.innerHTML=`${n}`}},Zle={qualify:Cs,set(n,{view:e}){return`url(#${e.graph.defineFilter(n)})`}},Qle={set(n){return n!=null&&typeof n=="object"&&n.id?n.id:n}};function Sl(n,e,t){let r,o;typeof e=="object"?(r=e.x,o=e.y):(r=e,o=t);const s=rt.parse(n),i=s.bbox();if(i){let l=-i.height/2-i.y,a=-i.width/2-i.x;typeof r=="number"&&(a-=r),typeof o=="number"&&(l-=o),s.translate(a,l)}return s.serialize()}var OP=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{size:e,width:t,height:r,offset:o,open:s}=n,i=OP(n,["size","width","height","offset","open"]);return MP({size:e,width:t,height:r,offset:o},s===!0,!0,void 0,i)},tae=n=>{var{size:e,width:t,height:r,offset:o,factor:s}=n,i=OP(n,["size","width","height","offset","factor"]);return MP({size:e,width:t,height:r,offset:o},!1,!1,s,i)};function MP(n,e,t,r=3/4,o={}){const s=n.size||10,i=n.width||s,l=n.height||s,a=new rt,c={};if(e)a.moveTo(i,0).lineTo(0,l/2).lineTo(i,l),c.fill="none";else{if(a.moveTo(0,l/2),a.lineTo(i,0),!t){const u=lo(r,0,1);a.lineTo(i*u,l/2)}a.lineTo(i,l),a.close()}return Object.assign(Object.assign(Object.assign({},c),o),{tagName:"path",d:Sl(a.serialize(),{x:n.offset!=null?n.offset:-i/2})})}var nae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{size:e,width:t,height:r,offset:o}=n,s=nae(n,["size","width","height","offset"]);const i=e||10,l=t||i,a=r||i,c=new rt;return c.moveTo(0,a/2).lineTo(l/2,0).lineTo(l,a/2).lineTo(l/2,a).close(),Object.assign(Object.assign({},s),{tagName:"path",d:Sl(c.serialize(),o??-l/2)})};var oae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{d:e,offsetX:t,offsetY:r}=n,o=oae(n,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},o),{tagName:"path",d:Sl(e,t,r)})};var iae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{size:e,width:t,height:r,offset:o}=n,s=iae(n,["size","width","height","offset"]);const i=e||10,l=t||i,a=r||i,c=new rt;return c.moveTo(0,0).lineTo(l,a).moveTo(0,a).lineTo(l,0),Object.assign(Object.assign({},s),{tagName:"path",fill:"none",d:Sl(c.serialize(),o||-l/2)})};var aae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{width:e,height:t,offset:r,open:o,flip:s}=n,i=aae(n,["width","height","offset","open","flip"]);let l=t||6;const a=e||10,c=o===!0,u=s===!0,d=Object.assign(Object.assign({},i),{tagName:"path"});u&&(l=-l);const f=new rt;return f.moveTo(0,l).lineTo(a,0),c?d.fill="none":(f.lineTo(a,l),f.close()),d.d=Sl(f.serialize(),{x:r||-a/2,y:l/2}),d};var AP=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{r:e}=n,t=AP(n,["r"]);const r=e||5;return Object.assign(Object.assign({cx:r},t),{tagName:"circle",r})},uae=n=>{var{r:e}=n,t=AP(n,["r"]);const r=e||5,o=new rt;return o.moveTo(r,0).lineTo(r,r*2),o.moveTo(0,r).lineTo(r*2,r),{children:[Object.assign(Object.assign({},kP({r})),{fill:"none"}),Object.assign(Object.assign({},t),{tagName:"path",d:Sl(o.serialize(),-r)})]}};var dae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{rx:e,ry:t}=n,r=dae(n,["rx","ry"]);const o=e||5,s=t||5;return Object.assign(Object.assign({cx:o},r),{tagName:"ellipse",rx:o,ry:s})},hae=Object.freeze(Object.defineProperty({__proto__:null,async:cae,block:eae,circle:kP,circlePlus:uae,classic:tae,cross:lae,diamond:rae,ellipse:fae,path:sae},Symbol.toStringTag,{value:"Module"}));var sl;(function(n){n.presets=hae,n.registry=bn.create({type:"marker"}),n.registry.register(n.presets,!0)})(sl||(sl={}));(function(n){n.normalize=Sl})(sl||(sl={}));var pae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o1){const i=Math.ceil(s/2);t.refX=e==="marker-start"?i:-i}}return t}const mf=(n,{view:e})=>e.cell.isEdge(),yae={qualify:mf,set(n,e){var t,r,o,s;const i=e.view,l=n.reverse||!1,a=n.stubs||0;let c;if(Number.isFinite(a)&&a!==0)if(l){let u,d;const f=i.getConnectionLength()||0;a<0?(u=(f+a)/2,d=-a):(u=a,d=f-a*2);const h=i.getConnection();c=(s=(o=(r=(t=h==null?void 0:h.divideAtLength(u))===null||t===void 0?void 0:t[1])===null||r===void 0?void 0:r.divideAtLength(d))===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.serialize()}else{let u;a<0?u=((i.getConnectionLength()||0)+a)/2:u=a;const d=i.getConnection();if(d){const f=d.divideAtLength(u),h=d.divideAtLength(-u);f&&h&&(c=`${f[0].serialize()} ${h[1].serialize()}`)}}return{d:c||i.getConnectionPathData()}}},PP={qualify:mf,set:Pg("getTangentAtLength",{rotate:!0})},wae={qualify:mf,set:Pg("getTangentAtLength",{rotate:!1})},NP={qualify:mf,set:Pg("getTangentAtRatio",{rotate:!0})},Cae={qualify:mf,set:Pg("getTangentAtRatio",{rotate:!1})},xae=PP,Sae=NP;function Pg(n,e){const t={x:1,y:0};return(r,o)=>{let s,i;const l=o.view,a=l[n](Number(r));return a?(i=e.rotate?a.vector().vectorAngle(t):0,s=a.start):(s=l.path.start,i=0),i===0?{transform:`translate(${s.x},${s.y}')`}:{transform:`translate(${s.x},${s.y}') rotate(${i})`}}}const Eae=Object.freeze(Object.defineProperty({__proto__:null,annotations:Hle,atConnectionLength:xae,atConnectionLengthIgnoreGradient:wae,atConnectionLengthKeepGradient:PP,atConnectionRatio:Sae,atConnectionRatioIgnoreGradient:Cae,atConnectionRatioKeepGradient:NP,connection:yae,displayEmpty:Wle,eol:Ule,fill:Dle,filter:Zle,html:Xle,lineHeight:Fle,port:Qle,ref:wle,refCx:Tle,refCy:Ole,refD:Ple,refDKeepOffset:Mle,refDResetOffset:wP,refDx:Cle,refDy:xle,refHeight:bP,refHeight2:$le,refPoints:Nle,refPointsKeepOffset:Ale,refPointsResetOffset:CP,refR:kle,refRCircumscribed:_le,refRInscribed:yP,refRx:Sle,refRy:Ele,refWidth:vP,refWidth2:Rle,refX:gP,refX2:Ile,refY:mP,refY2:Lle,resetOffset:Yle,sourceMarker:gae,stroke:Vle,style:Jle,targetMarker:mae,text:_P,textPath:jle,textVerticalAnchor:zle,textWrap:Ble,title:Gle,vertexMarker:vae,xAlign:qle,yAlign:Kle},Symbol.toStringTag,{value:"Module"}));var bs;(function(n){function e(t,r,o){return!!(t!=null&&(typeof t=="string"||typeof t.qualify!="function"||pt(t.qualify,this,r,o)))}n.isValidDefinition=e})(bs||(bs={}));(function(n){n.presets=Object.assign(Object.assign({},yle),Eae),n.registry=bn.create({type:"attribute definition"}),n.registry.register(n.presets,!0)})(bs||(bs={}));const Go={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,prefix(n){return`${Go.prefixCls}-${n}`}},dE=Go.prefix("highlighted"),_ae={highlight(n,e,t){const r=t&&t.className||dE;Nt(e,r)},unhighlight(n,e,t){const r=t&&t.className||dE;co(e,r)}},fE=Go.prefix("highlight-opacity"),Tae={highlight(n,e){Nt(e,fE)},unhighlight(n,e){co(e,fE)}};var Vt;(function(n){n.normalizeMarker=Sl;function e(f,h){const p=Iie(f.x,f.y).matrixTransform(h);return new K(p.x,p.y)}n.transformPoint=e;function t(f,h){return new Ke(e(f.start,h),e(f.end,h))}n.transformLine=t;function r(f,h){let p=f instanceof gn?f.points:f;return Array.isArray(p)||(p=[]),new gn(p.map(g=>e(g,h)))}n.transformPolyline=r;function o(f,h){const g=Jo("svg").createSVGPoint();g.x=f.x,g.y=f.y;const m=g.matrixTransform(h);g.x=f.x+f.width,g.y=f.y;const v=g.matrixTransform(h);g.x=f.x+f.width,g.y=f.y+f.height;const w=g.matrixTransform(h);g.x=f.x,g.y=f.y+f.height;const b=g.matrixTransform(h),y=Math.min(m.x,v.x,w.x,b.x),x=Math.max(m.x,v.x,w.x,b.x),E=Math.min(m.y,v.y,w.y,b.y),T=Math.max(m.y,v.y,w.y,b.y);return new $e(y,E,x-y,T-E)}n.transformRectangle=o;function s(f,h,p){let g;const m=f.ownerSVGElement;if(!m)return new $e(0,0,0,0);try{g=f.getBBox()}catch{g={x:f.clientLeft,y:f.clientTop,width:f.clientWidth,height:f.clientHeight}}if(h)return $e.create(g);const v=qu(f,p||m);return o(g,v)}n.bbox=s;function i(f,h={}){let p;if(!f.ownerSVGElement||!rl(f)){if(nE(f)){const{left:w,top:b,width:y,height:x}=l(f);return new $e(w,b,y,x)}return new $e(0,0,0,0)}let m=h.target;if(!h.recursive){try{p=f.getBBox()}catch{p={x:f.clientLeft,y:f.clientTop,width:f.clientWidth,height:f.clientHeight}}if(!m)return $e.create(p);const w=qu(f,m);return o(p,w)}{const w=f.childNodes,b=w.length;if(b===0)return i(f,{target:m});m||(m=f);for(let y=0;y{const g=f.getAttribute(p),m=g?parseFloat(g):0;return Number.isNaN(m)?0:m};switch(f instanceof SVGElement&&f.nodeName.toLowerCase()){case"rect":return new $e(h("x"),h("y"),h("width"),h("height"));case"circle":return new Wo(h("cx"),h("cy"),h("r"),h("r"));case"ellipse":return new Wo(h("cx"),h("cy"),h("rx"),h("ry"));case"polyline":{const p=dp(f);return new gn(p)}case"polygon":{const p=dp(f);return p.length>1&&p.push(p[0]),new gn(p)}case"path":{let p=f.getAttribute("d");return rt.isValid(p)||(p=rt.normalize(p)),rt.parse(p)}case"line":return new Ke(h("x1"),h("y1"),h("x2"),h("y2"))}return i(f)}n.toGeometryShape=a;function c(f,h,p,g){const m=K.create(h),v=K.create(p);g||(g=f instanceof SVGSVGElement?f:f.ownerSVGElement);const w=yb(f);f.setAttribute("transform","");const b=i(f,{target:g}).scale(w.sx,w.sy),y=bu();y.setTranslate(-b.x-b.width/2,-b.y-b.height/2);const x=bu(),E=m.angleBetween(v,m.clone().translate(1,0));E&&x.setRotate(E,0,0);const T=bu(),M=m.clone().move(v,b.width/2);T.setTranslate(2*m.x-M.x,2*m.y-M.y);const O=qu(f,g),k=bu();k.setMatrix(T.matrix.multiply(x.matrix.multiply(y.matrix.multiply(O.scale(w.sx,w.sy))))),f.setAttribute("transform",tu(k.matrix))}n.translateAndAutoOrient=c;function u(f){if(f==null)return null;let h=f;do{let p=h.tagName;if(typeof p!="string")return null;if(p=p.toUpperCase(),ff(h,"x6-port"))h=h.nextElementSibling;else if(p==="G")h=h.firstElementChild;else if(p==="TITLE")h=h.nextElementSibling;else break}while(h);return h}n.findShapeNode=u;function d(f){const h=u(f);if(!rl(h)){if(nE(f)){const{left:m,top:v,width:w,height:b}=l(f);return new $e(m,v,w,b)}return new $e(0,0,0,0)}return a(h).bbox()||$e.create()}n.getBBoxV2=d})(Vt||(Vt={}));const Oae={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},Mae={highlight(n,e,t){const r=Pi.getHighlighterId(e,t);if(Pi.hasCache(r))return;t=BT({},t,Oae);const o=ft.create(e);let s,i;try{s=o.toPathData()}catch{i=Vt.bbox(o.node,!0),s=sP(Object.assign(Object.assign({},t),i))}const l=Jo("path");if(Gt(l,Object.assign({d:s,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},t.attrs?Td(t.attrs):null)),n.isEdgeElement(e))Gt(l,"d",n.getConnectionPathData());else{let u=o.getTransformToElement(n.container);const d=t.padding;if(d){i==null&&(i=Vt.bbox(o.node,!0));const f=i.x+i.width/2,h=i.y+i.height/2;i=Vt.transformRectangle(i,u);const p=Math.max(i.width,1),g=Math.max(i.height,1),m=(p+d)/p,v=(g+d)/g,w=Hn({a:m,b:0,c:0,d:v,e:f-m*f,f:h-v*h});u=u.multiply(w)}Ac(l,u)}Nt(l,Go.prefix("highlight-stroke"));const a=n.cell,c=()=>Pi.removeHighlighter(r);a.on("removed",c),a.model&&a.model.on("reseted",c),n.container.appendChild(l),Pi.setCache(r,l)},unhighlight(n,e,t){Pi.removeHighlighter(Pi.getHighlighterId(e,t))}};var Pi;(function(n){function e(i,l){return S0(i),i.id+JSON.stringify(l)}n.getHighlighterId=e;const t={};function r(i,l){t[i]=l}n.setCache=r;function o(i){return t[i]!=null}n.hasCache=o;function s(i){const l=t[i];l&&(Mc(l),delete t[i])}n.removeHighlighter=s})(Pi||(Pi={}));const Aae=Object.freeze(Object.defineProperty({__proto__:null,className:_ae,opacity:Tae,stroke:Mae},Symbol.toStringTag,{value:"Module"}));var qs;(function(n){function e(t,r){if(typeof r.highlight!="function")throw new Error(`Highlighter '${t}' is missing required \`highlight()\` method`);if(typeof r.unhighlight!="function")throw new Error(`Highlighter '${t}' is missing required \`unhighlight()\` method`)}n.check=e})(qs||(qs={}));(function(n){n.presets=Aae,n.registry=bn.create({type:"highlighter"}),n.registry.register(n.presets,!0)})(qs||(qs={}));function xb(n,e={}){return new K(Bo(e.x,n.width),Bo(e.y,n.height))}function P0(n,e,t){return Object.assign({angle:e,position:n.toJSON()},t)}const kae=(n,e)=>n.map(({x:t,y:r,angle:o})=>P0(xb(e,{x:t,y:r}),o||0)),Pae=(n,e,t)=>{const r=t.start||0,o=t.step||20;return IP(n,e,r,(s,i)=>(s+.5-i/2)*o)},Nae=(n,e,t)=>{const r=t.start||0,o=t.step||360/n.length;return IP(n,e,r,s=>s*o)};function IP(n,e,t,r){const o=e.getCenter(),s=e.getTopCenter(),i=e.width/e.height,l=Wo.fromRect(e),a=n.length;return n.map((c,u)=>{const d=t+r(u,a),f=s.clone().rotate(-d,o).scale(i,1,o),h=c.compensateRotate?-l.tangentTheta(f):0;return(c.dx||c.dy)&&f.translate(c.dx||0,c.dy||0),c.dr&&f.move(o,c.dr),P0(f.round(),h,c)})}var Iae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const r=xb(e,t.start||e.getOrigin()),o=xb(e,t.end||e.getCorner());return vf(n,r,o,t)},Rae=(n,e,t)=>vf(n,e.getTopLeft(),e.getBottomLeft(),t),$ae=(n,e,t)=>vf(n,e.getTopRight(),e.getBottomRight(),t),Dae=(n,e,t)=>vf(n,e.getTopLeft(),e.getTopRight(),t),Vae=(n,e,t)=>vf(n,e.getBottomLeft(),e.getBottomRight(),t);function vf(n,e,t,r){const o=new Ke(e,t),s=n.length;return n.map((i,l)=>{var{strict:a}=i,c=Iae(i,["strict"]);const u=a||r.strict?(l+1)/(s+1):(l+.5)/s,d=o.pointAt(u);return(c.dx||c.dy)&&d.translate(c.dx||0,c.dy||0),P0(d.round(),0,c)})}const Bae=Object.freeze(Object.defineProperty({__proto__:null,absolute:kae,bottom:Vae,ellipse:Pae,ellipseSpread:Nae,left:Rae,line:Lae,right:$ae,top:Dae},Symbol.toStringTag,{value:"Module"}));var oa;(function(n){n.presets=Bae,n.registry=bn.create({type:"port layout"}),n.registry.register(n.presets,!0)})(oa||(oa={}));const Fae={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function El(n,e){const{x:t,y:r,angle:o,attrs:s}=e||{};return BT({},{angle:o,attrs:s,position:{x:t,y:r}},n,Fae)}const zae=(n,e,t)=>El({position:e.getTopLeft()},t),jae=(n,e,t)=>El({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},t),Hae=(n,e,t)=>El({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},t),Uae=(n,e,t)=>El({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},t),Wae=(n,e,t)=>El({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},t),Gae=(n,e,t)=>LP(n,e,!1,t),qae=(n,e,t)=>LP(n,e,!0,t),Kae=(n,e,t)=>RP(n,e,!1,t),Yae=(n,e,t)=>RP(n,e,!0,t);function LP(n,e,t,r){const o=r.offset!=null?r.offset:15,s=e.getCenter().theta(n),i=$P(e);let l,a,c,u,d=0;return si[2]?(l=".3em",a=o,c=0,u="start"):si[2]?(l=".3em",a=-o,c=0,u="end"):sDP(n.diff(e.getCenter()),!1,t),Xae=(n,e,t)=>DP(n.diff(e.getCenter()),!0,t);function DP(n,e,t){const r=t.offset!=null?t.offset:20,o=new K(0,0),s=-n.theta(o),i=n.clone().move(o,r).diff(n).round();let l=".3em",a,c=s;return(s+90)%180===0?(a=e?"end":"middle",!e&&s===-270&&(l="0em")):s>-270&&s<-90?(a="start",c=s-180):a="end",El({position:i.round().toJSON(),angle:e?c:0,attrs:{".":{y:l,"text-anchor":a}}},t)}const Zae=Object.freeze(Object.defineProperty({__proto__:null,bottom:Wae,inside:Kae,insideOriented:Yae,left:jae,manual:zae,outside:Gae,outsideOriented:qae,radial:Jae,radialOriented:Xae,right:Hae,top:Uae},Symbol.toStringTag,{value:"Module"}));var Lc;(function(n){n.presets=Zae,n.registry=bn.create({type:"port label layout"}),n.registry.register(n.presets,!0)})(Lc||(Lc={}));var Qae=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class tn extends Gr{get priority(){return 2}get disposeContainer(){return!0}constructor(){super(),this.cid=Sb.uniqueId(),tn.views[this.cid]=this}confirmUpdate(e,t){return 0}empty(e=this.container){return hf(e),this}unmount(e=this.container){return Mc(e),this}remove(e=this.container){return e===this.container?(this.removeEventListeners(document),this.onRemove(),delete tn.views[this.cid],this.disposeContainer&&this.unmount(e)):this.unmount(e),this}onRemove(){}setClass(e,t=this.container){t.classList.value=Array.isArray(e)?e.join(" "):e}addClass(e,t=this.container){return Nt(t,Array.isArray(e)?e.join(" "):e),this}removeClass(e,t=this.container){return co(t,Array.isArray(e)?e.join(" "):e),this}setStyle(e,t=this.container){return gf(t,e),this}setAttrs(e,t=this.container){return e!=null&&t!=null&&Gt(t,e),this}findAttr(e,t=this.container){let r=t;for(;r&&r.nodeType===1;){const o=r.getAttribute(e);if(o!=null)return o;if(r===this.container)return null;r=r.parentNode}return null}find(e,t=this.container,r=this.selectors){return tn.find(e,t,r).elems}findOne(e,t=this.container,r=this.selectors){const o=this.find(e,t,r);return o.length>0?o[0]:null}findByAttr(e,t=this.container){let r=t;for(;r&&r.getAttribute;){const o=r.getAttribute(e);if((o!=null||r===this.container)&&o!=="false")return r;r=r.parentNode}return null}getSelector(e,t){let r;if(e===this.container)return typeof t=="string"&&(r=`> ${t}`),r;if(e){const o=_0(e)+1;r=`${e.tagName.toLowerCase()}:nth-child(${o})`,t&&(r+=` > ${t}`),r=this.getSelector(e.parentNode,r)}return r}prefixClassName(e){return Go.prefix(e)}delegateEvents(e,t){if(e==null)return this;t||this.undelegateEvents();const r=/^(\S+)\s*(.*)$/;return Object.keys(e).forEach(o=>{const s=o.match(r);if(s==null)return;const i=this.getEventHandler(e[o]);typeof i=="function"&&this.delegateEvent(s[1],s[2],i)}),this}undelegateEvents(){return Gn.off(this.container,this.getEventNamespace()),this}delegateDocumentEvents(e,t){return this.addEventListeners(document,e,t),this}undelegateDocumentEvents(){return this.removeEventListeners(document),this}delegateEvent(e,t,r){return Gn.on(this.container,e+this.getEventNamespace(),t,r),this}undelegateEvent(e,t,r){const o=e+this.getEventNamespace();return t==null?Gn.off(this.container,o):typeof t=="string"?Gn.off(this.container,o,t,r):Gn.off(this.container,o,t),this}addEventListeners(e,t,r){if(t==null)return this;const o=this.getEventNamespace();return Object.keys(t).forEach(s=>{const i=this.getEventHandler(t[s]);typeof i=="function"&&Gn.on(e,s+o,r,i)}),this}removeEventListeners(e){return e!=null&&Gn.off(e,this.getEventNamespace()),this}getEventNamespace(){return`.${Go.prefixCls}-event-${this.cid}`}getEventHandler(e){let t;if(typeof e=="string"){const r=this[e];typeof r=="function"&&(t=(...o)=>r.call(this,...o))}else t=(...r)=>e.call(this,...r);return t}getEventTarget(e,t={}){const{target:r,type:o,clientX:s=0,clientY:i=0}=e;return t.fromPoint||o==="touchmove"||o==="touchend"?document.elementFromPoint(s,i):r}stopPropagation(e){return this.setEventData(e,{propagationStopped:!0}),this}isPropagationStopped(e){return this.getEventData(e).propagationStopped===!0}getEventData(e){return this.eventData(e)}setEventData(e,t){return this.eventData(e,t)}eventData(e,t){if(e==null)throw new TypeError("Event object required");let r=e.data;const o=`__${this.cid}__`;return t==null?r==null?{}:r[o]||{}:(r==null&&(r=e.data={}),r[o]==null?r[o]=Object.assign({},t):r[o]=Object.assign(Object.assign({},r[o]),t),r[o])}normalizeEvent(e){return tn.normalizeEvent(e)}dispose(){this.remove()}}Qae([tn.dispose()],tn.prototype,"dispose",null);(function(n){function e(o,s){return s?Jo(o||"g"):E0(o||"div")}n.createElement=e;function t(o,s,i){if(!o||o===".")return{elems:[s]};if(i){const l=i[o];if(l)return{elems:Array.isArray(l)?l:[l]}}{const l=o.includes(">")?`:scope ${o}`:o;return{isCSSSelector:!0,elems:Array.prototype.slice.call(s.querySelectorAll(l))}}}n.find=t;function r(o){let s=o;const i=o.originalEvent,l=i&&i.changedTouches&&i.changedTouches[0];if(l){for(const a in o)l[a]===void 0&&(l[a]=o[a]);s=l}return s}n.normalizeEvent=r})(tn||(tn={}));(function(n){n.views={};function e(t){return n.views[t]||null}n.getView=e})(tn||(tn={}));var Sb;(function(n){let e=0;function t(){const r=`v${e}`;return e+=1,r}n.uniqueId=t})(Sb||(Sb={}));class ece{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new Cb,this.pathCache={}}get(e){return this.elemCache.has(e)||this.elemCache.set(e,{}),this.elemCache.get(e)}getData(e){const t=this.get(e);return t.data||(t.data={}),t.data}getMatrix(e){const t=this.get(e);if(t.matrix==null){const r=this.view.container;t.matrix=Vie(e,r)}return Hn(t.matrix)}getShape(e){const t=this.get(e);return t.shape==null&&(t.shape=Vt.toGeometryShape(e)),t.shape.clone()}getBoundingRect(e){const t=this.get(e);return t.boundingRect==null&&(t.boundingRect=Vt.getBBoxV2(e)),t.boundingRect.clone()}}var Jt;(function(n){function e(c){return c!=null&&!t(c)}n.isJSONMarkup=e;function t(c){return c!=null&&typeof c=="string"}n.isStringMarkup=t;function r(c){return c==null||t(c)?c:an(c)}n.clone=r;function o(c){return`${c}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")}n.sanitize=o;function s(c,u={ns:Ln.svg}){const d=document.createDocumentFragment(),f={},h={},p=[{markup:Array.isArray(c)?c:[c],parent:d,ns:u.ns}];for(;p.length>0;){const g=p.pop();let m=g.ns||Ln.svg;const v=g.markup,w=g.parent;v.forEach(b=>{const y=b.tagName;if(!y)throw new TypeError("Invalid tagName");b.ns&&(m=b.ns);const x=m?E0(y,m):tE(y),E=b.attrs;E&&Gt(x,Td(E));const T=b.style;T&&gf(x,T);const M=b.className;M!=null&&x.setAttribute("class",Array.isArray(M)?M.join(" "):M),b.textContent&&(x.textContent=b.textContent);const O=b.selector;if(O!=null){if(h[O])throw new TypeError("Selector must be unique");h[O]=x}if(b.groupSelector){let P=b.groupSelector;Array.isArray(P)||(P=[P]),P.forEach(L=>{f[L]||(f[L]=[]),f[L].push(x)})}w.appendChild(x);const k=b.children;Array.isArray(k)&&p.push({ns:m,markup:k,parent:x})})}return Object.keys(f).forEach(g=>{if(h[g])throw new Error("Ambiguous group selector");h[g]=f[g]}),{fragment:d,selectors:h,groups:f}}n.parseJSONMarkup=s;function i(c){return c instanceof SVGElement?Jo("g"):tE("div")}function l(c){if(t(c)){const h=ft.createVectors(c),p=h.length;if(p===1)return{elem:h[0].node};if(p>1){const g=i(h[0].node);return h.forEach(m=>{g.appendChild(m.node)}),{elem:g}}return{}}const u=s(c),d=u.fragment;let f=null;return d.childNodes.length>1?(f=i(d.firstChild),f.appendChild(d)):f=d.firstChild,{elem:f,selectors:u.selectors}}n.renderMarkup=l;function a(c){const u=ft.createVectors(c),d=document.createDocumentFragment();for(let f=0,h=u.length;f ${i} > ${o}`:s=`> ${i}`,s;const l=t.parentNode;if(l&&l.childNodes.length>1){const a=_0(t)+1;s=`${i}:nth-child(${a})`}else s=i;return o&&(s+=` > ${o}`),e(t.parentNode,r,s)}return o}n.getSelector=e})(Jt||(Jt={}));(function(n){function e(){return"g"}n.getPortContainerMarkup=e;function t(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}}n.getPortMarkup=t;function r(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}n.getPortLabelMarkup=r})(Jt||(Jt={}));(function(n){function e(){return[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}]}n.getEdgeMarkup=e})(Jt||(Jt={}));(function(n){function e(t=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:Ln.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:Ln.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:t?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}n.getForeignObjectMarkup=e})(Jt||(Jt={}));class VP{constructor(e){this.view=e}get cell(){return this.view.cell}getDefinition(e){return this.cell.getAttrDefinition(e)}processAttrs(e,t){let r,o,s,i;const l=[];return Object.keys(t).forEach(a=>{const c=t[a],u=this.getDefinition(a),d=pt(bs.isValidDefinition,this.view,u,c,{elem:e,attrs:t,cell:this.cell,view:this.view});if(u&&d)typeof u=="string"?(r==null&&(r={}),r[u]=c):c!==null&&l.push({name:a,definition:u});else{r==null&&(r={});const f=Jk.includes(a)?a:Pk(a);r[f]=c}}),l.forEach(({name:a,definition:c})=>{const u=t[a];typeof c.set=="function"&&(o==null&&(o={}),o[a]=u),typeof c.offset=="function"&&(s==null&&(s={}),s[a]=u),typeof c.position=="function"&&(i==null&&(i={}),i[a]=u)}),{raw:t,normal:r,set:o,offset:s,position:i}}mergeProcessedAttrs(e,t){e.set=Object.assign(Object.assign({},e.set),t.set),e.position=Object.assign(Object.assign({},e.position),t.position),e.offset=Object.assign(Object.assign({},e.offset),t.offset);const r=e.normal&&e.normal.transform;r!=null&&t.normal&&(t.normal.transform=r),e.normal=t.normal}findAttrs(e,t,r,o){const s=[],i=new Cb;return Object.keys(e).forEach(l=>{const a=e[l];if(!Cs(a))return;const{isCSSSelector:c,elems:u}=tn.find(l,t,o);r[l]=u;for(let d=0,f=u.length;d{const a=i.get(l),c=a.attrs;a.attrs=c.reduceRight((u,d)=>un(u,d),{})}),i}updateRelativeAttrs(e,t,r){const o=t.raw||{};let s=t.normal||{};const i=t.set,l=t.position,a=t.offset,c=()=>({elem:e,cell:this.cell,view:this.view,attrs:o,refBBox:r.clone()});if(i!=null&&Object.keys(i).forEach(m=>{const v=i[m],w=this.getDefinition(m);if(w!=null){const b=pt(w.set,this.view,v,c());typeof b=="object"?s=Object.assign(Object.assign({},s),b):b!=null&&(s[m]=b)}}),e instanceof HTMLElement){this.view.setAttrs(s,e);return}const u=s.transform,d=u?`${u}`:null,f=Od(d),h=new K(f.e,f.f);u&&(delete s.transform,f.e=0,f.f=0);let p=!1;l!=null&&Object.keys(l).forEach(m=>{const v=l[m],w=this.getDefinition(m);if(w!=null){const b=pt(w.position,this.view,v,c());b!=null&&(p=!0,h.translate(K.create(b)))}}),this.view.setAttrs(s,e);let g=!1;if(a!=null){const m=this.view.getBoundingRectOfElement(e);if(m.width>0&&m.height>0){const v=Vt.transformRectangle(m,f);Object.keys(a).forEach(w=>{const b=a[w],y=this.getDefinition(w);if(y!=null){const x=pt(y.offset,this.view,b,{elem:e,cell:this.cell,view:this.view,attrs:o,refBBox:v});x!=null&&(g=!0,h.translate(K.create(x)))}})}}(u!=null||p||g)&&(h.round(1),f.e=h.x,f.f=h.y,e.setAttribute("transform",tu(f)))}update(e,t,r){const o={},s=this.findAttrs(r.attrs||t,e,o,r.selectors),i=r.attrs?this.findAttrs(t,e,o,r.selectors):s,l=[];s.each(u=>{const d=u.elem,f=u.attrs,h=this.processAttrs(d,f);if(h.set==null&&h.position==null&&h.offset==null)this.view.setAttrs(h.normal,d);else{const p=i.get(d),g=p?p.attrs:null,m=g&&f.ref==null?g.ref:f.ref;let v;if(m){if(v=(o[m]||this.view.find(m,e,r.selectors))[0],!v)throw new Error(`"${m}" reference does not exist.`)}else v=null;const w={node:d,refNode:v,attributes:g,processedAttributes:h},b=l.findIndex(y=>y.refNode===d);b>-1?l.splice(b,0,w):l.push(w)}});const a=new Cb;let c;l.forEach(u=>{const d=u.node,f=u.refNode;let h;const p=f!=null&&r.rotatableNode!=null&&Yk(r.rotatableNode,f);if(f&&(h=a.get(f)),!h){const v=p?r.rotatableNode:e;h=f?Vt.getBBox(f,{target:v}):r.rootBBox,f&&a.set(f,h)}let g;r.attrs&&u.attributes?(g=this.processAttrs(d,u.attributes),this.mergeProcessedAttrs(g,u.processedAttributes)):g=u.processedAttributes;let m=h;p&&r.rotatableNode!=null&&!r.rotatableNode.contains(d)&&(c||(c=Od(Gt(r.rotatableNode,"transform"))),m=Vt.transformRectangle(h,c)),this.updateRelativeAttrs(d,g,m)})}}class BP{get cell(){return this.view.cell}constructor(e,t,r=[]){this.view=e;const o={},s={};let i=0;Object.keys(t).forEach(a=>{let c=t[a];Array.isArray(c)||(c=[c]),c.forEach(u=>{let d=o[u];d||(i+=1,d=o[u]=1<{o[a]||(i+=1,o[a]=1<25)throw new Error("Maximum number of flags exceeded.");this.flags=o,this.attrs=s,this.bootstrap=r}getFlag(e){const t=this.flags;return t==null?0:Array.isArray(e)?e.reduce((r,o)=>r|t[o],0):t[e]|0}hasAction(e,t){return e&this.getFlag(t)}removeAction(e,t){return e^e&this.getFlag(t)}getBootstrapFlag(){return this.getFlag(this.bootstrap)}getChangedFlag(){let e=0;return this.attrs&&Object.keys(this.attrs).forEach(t=>{this.cell.hasChanged(t)&&(e|=this.attrs[t])}),e}}var tce=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s},nce=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);ou!=null?qT([...Array.isArray(c)?c:[c],...Array.isArray(u)?u:[u]]):Array.isArray(c)?[...c]:[c],r=an(this.getDefaults()),{bootstrap:o,actions:s,events:i,documentEvents:l}=e,a=nce(e,["bootstrap","actions","events","documentEvents"]);return o&&(r.bootstrap=t(r.bootstrap,o)),s&&Object.entries(s).forEach(([c,u])=>{const d=r.actions[c];u&&d?r.actions[c]=t(d,u):u&&(r.actions[c]=t(u))}),i&&(r.events=Object.assign(Object.assign({},r.events),i)),e.documentEvents&&(r.documentEvents=Object.assign(Object.assign({},r.documentEvents),l)),un(r,a)}get[Symbol.toStringTag](){return mn.toStringTag}constructor(e,t={}){super(),this.cell=e,this.options=this.ensureOptions(t),this.graph=this.options.graph,this.attr=new VP(this),this.flag=new BP(this,this.options.actions,this.options.bootstrap),this.cache=new ece(this),this.setContainer(this.ensureContainer()),this.setup(),this.init()}init(){}onRemove(){this.removeTools()}get priority(){return this.options.priority}get rootSelector(){return this.options.rootSelector}getConstructor(){return this.constructor}ensureOptions(e){return this.getConstructor().getOptions(e)}getContainerTagName(){return this.options.isSvgElement?"g":"div"}getContainerStyle(){}getContainerAttrs(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}getContainerClassName(){return this.prefixClassName("cell")}ensureContainer(){return tn.createElement(this.getContainerTagName(),this.options.isSvgElement)}setContainer(e){if(this.container!==e){this.undelegateEvents(),this.container=e,this.options.events!=null&&this.delegateEvents(this.options.events);const t=this.getContainerAttrs();t!=null&&this.setAttrs(t,e);const r=this.getContainerStyle();r!=null&&this.setStyle(r,e);const o=this.getContainerClassName();o!=null&&this.addClass(o,e)}return this}isNodeView(){return!1}isEdgeView(){return!1}render(){return this}confirmUpdate(e,t={}){return 0}getBootstrapFlag(){return this.flag.getBootstrapFlag()}getFlag(e){return this.flag.getFlag(e)}hasAction(e,t){return this.flag.hasAction(e,t)}removeAction(e,t){return this.flag.removeAction(e,t)}handleAction(e,t,r,o){if(this.hasAction(e,t)){r();const s=[t];return o&&(typeof o=="string"?s.push(o):s.push(...o)),this.removeAction(e,s)}return e}setup(){this.cell.on("changed",this.onCellChanged,this)}onCellChanged({options:e}){this.onAttrsChange(e)}onAttrsChange(e){let t=this.flag.getChangedFlag();e.updated||!t||(e.dirty&&this.hasAction(t,"update")&&(t|=this.getFlag("render")),e.toolId&&(e.async=!1),this.graph!=null&&this.graph.renderer.requestViewUpdate(this,t,e))}parseJSONMarkup(e,t){const r=Jt.parseJSONMarkup(e),o=r.selectors,s=this.rootSelector;if(t&&s){if(o[s])throw new Error("Invalid root selector");o[s]=t}return r}can(e){let t=this.graph.options.interacting;if(typeof t=="function"&&(t=pt(t,this.graph,this)),typeof t=="object"){let r=t[e];return typeof r=="function"&&(r=pt(r,this.graph,this)),r!==!1}return typeof t=="boolean"?t:!1}cleanCache(){return this.cache.clean(),this}getCache(e){return this.cache.get(e)}getDataOfElement(e){return this.cache.getData(e)}getMatrixOfElement(e){return this.cache.getMatrix(e)}getShapeOfElement(e){return this.cache.getShape(e)}getBoundingRectOfElement(e){return this.cache.getBoundingRect(e)}getBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),r=this.getMatrixOfElement(e),o=this.getRootRotatedMatrix(),s=this.getRootTranslatedMatrix();return Vt.transformRectangle(t,s.multiply(o).multiply(r))}getUnrotatedBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),r=this.getMatrixOfElement(e),o=this.getRootTranslatedMatrix();return Vt.transformRectangle(t,o.multiply(r))}getBBox(e={}){let t;if(e.useCellGeometry){const r=this.cell,o=r.isNode()?r.getAngle():0;t=r.getBBox().bbox(o)}else t=this.getBBoxOfElement(this.container);return this.graph.coord.localToGraphRect(t)}getRootTranslatedMatrix(){const e=this.cell,t=e.isNode()?e.getPosition():{x:0,y:0};return Hn().translate(t.x,t.y)}getRootRotatedMatrix(){let e=Hn();const t=this.cell,r=t.isNode()?t.getAngle():0;if(r){const o=t.getBBox(),s=o.width/2,i=o.height/2;e=e.translate(s,i).rotate(r).translate(-s,-i)}return e}findMagnet(e=this.container){return this.findByAttr("magnet",e)}updateAttrs(e,t,r={}){r.rootBBox==null&&(r.rootBBox=new $e),r.selectors==null&&(r.selectors=this.selectors),this.attr.update(e,t,r)}isEdgeElement(e){return this.cell.isEdge()&&(e==null||e===this.container)}prepareHighlight(e,t={}){const r=e||this.container;return t.partial=r===this.container,r}highlight(e,t={}){const r=this.prepareHighlight(e,t);return this.notify("cell:highlight",{magnet:r,options:t,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:r,options:t,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:r,options:t,view:this,node:this.cell,cell:this.cell}),this}unhighlight(e,t={}){const r=this.prepareHighlight(e,t);return this.notify("cell:unhighlight",{magnet:r,options:t,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:r,options:t,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:r,options:t,view:this,edge:this.cell,cell:this.cell}),this}notifyUnhighlight(e,t){}getEdgeTerminal(e,t,r,o,s){const i=this.cell,l=this.findAttr("port",e),a=e.getAttribute("data-selector"),c={cell:i.id};return a!=null&&(c.magnet=a),l!=null?(c.port=l,i.isNode()&&!i.hasPort(l)&&a==null&&(c.selector=this.getSelector(e))):a==null&&this.container!==e&&(c.selector=this.getSelector(e)),c}getMagnetFromEdgeTerminal(e){const t=this.cell,r=this.container,o=e.port;let s=e.magnet,i;return o!=null&&t.isNode()&&t.hasPort(o)?i=this.findPortElem(o,s)||r:(s||(s=e.selector),!s&&o!=null&&(s=`[port="${o}"]`),i=this.findOne(s,r,this.selectors)),i}hasTools(e){const t=this.tools;return t==null?!1:e==null?!0:t.name===e}addTools(e){if(this.removeTools(),e){if(!this.can("toolsAddable"))return this;const t=En.isToolsView(e)?e:new En(e);this.tools=t,t.config({view:this}),t.mount()}return this}updateTools(e={}){return this.tools&&this.tools.update(e),this}removeTools(){return this.tools&&(this.tools.remove(),this.tools=null),this}hideTools(){return this.tools&&this.tools.hide(),this}showTools(){return this.tools&&this.tools.show(),this}renderTools(){const e=this.cell.getTools();return this.addTools(e),this}notify(e,t){return this.trigger(e,t),this.graph.trigger(e,t),this}getEventArgs(e,t,r){const o=this,s=o.cell;return t==null||r==null?{e,view:o,cell:s}:{e,x:t,y:r,view:o,cell:s}}onClick(e,t,r){this.notify("cell:click",this.getEventArgs(e,t,r))}onDblClick(e,t,r){this.notify("cell:dblclick",this.getEventArgs(e,t,r))}onContextMenu(e,t,r){this.notify("cell:contextmenu",this.getEventArgs(e,t,r))}onMouseDown(e,t,r){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,t,r))}onMouseUp(e,t,r){this.notify("cell:mouseup",this.getEventArgs(e,t,r)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(e,t,r){this.notify("cell:mousemove",this.getEventArgs(e,t,r))}onMouseOver(e){this.notify("cell:mouseover",this.getEventArgs(e))}onMouseOut(e){this.notify("cell:mouseout",this.getEventArgs(e))}onMouseEnter(e){this.notify("cell:mouseenter",this.getEventArgs(e))}onMouseLeave(e){this.notify("cell:mouseleave",this.getEventArgs(e))}onMouseWheel(e,t,r,o){this.notify("cell:mousewheel",Object.assign({delta:o},this.getEventArgs(e,t,r)))}onCustomEvent(e,t,r,o){this.notify("cell:customevent",Object.assign({name:t},this.getEventArgs(e,r,o))),this.notify(t,Object.assign({},this.getEventArgs(e,r,o)))}onMagnetMouseDown(e,t,r,o){}onMagnetDblClick(e,t,r,o){}onMagnetContextMenu(e,t,r,o){}onLabelMouseDown(e,t,r){}checkMouseleave(e){const t=this.getEventTarget(e,{fromPoint:!0}),r=this.graph.findViewByElem(t);r!==this&&(this.onMouseLeave(e),r&&r.onMouseEnter(e))}dispose(){this.cell.off("changed",this.onCellChanged,this)}}mn.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}};tce([mn.dispose()],mn.prototype,"dispose",null);(function(n){n.Flag=BP,n.Attr=VP})(mn||(mn={}));(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.isNodeView=="function"&&typeof o.isEdgeView=="function"&&typeof o.confirmUpdate=="function"}n.isCellView=e})(mn||(mn={}));(function(n){function e(r){return function(o){o.config({priority:r})}}n.priority=e;function t(r){return function(o){o.config({bootstrap:r})}}n.bootstrap=t})(mn||(mn={}));(function(n){n.registry=bn.create({type:"view"})})(mn||(mn={}));class En extends tn{get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return En.toStringTag}constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}createContainer(e,t){const r=e?tn.createElement("g",!0):tn.createElement("div",!1);return Nt(r,this.prefixClassName("cell-tools")),t.className&&Nt(r,t.className),r}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!mn.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(Nt(this.svgContainer,this.prefixClassName("edge-tools")),Nt(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(Nt(this.svgContainer,this.prefixClassName("node-tools")),Nt(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));const t=this.options.items;if(!Array.isArray(t))return this;this.tools=[];const r=[];t.forEach(o=>{En.ToolItem.isToolItem(o)?o.name==="vertices"?r.unshift(o):r.push(o):(typeof o=="object"?o.name:o)==="vertices"?r.unshift(o):r.push(o)});for(let o=0;o{e.toolId!==r.cid&&r.isVisible()&&r.update()}),this}focus(e){const t=this.tools;return t&&t.forEach(r=>{e===r?r.show():r.hide()}),this}blur(e){const t=this.tools;return t&&t.forEach(r=>{r!==e&&!r.isVisible()&&(r.show(),r.update())}),this}hide(){return this.focus(null)}show(){return this.blur(null)}remove(){const e=this.tools;return e&&(e.forEach(t=>t.remove()),this.tools=null),Mc(this.svgContainer),Mc(this.htmlContainer),super.remove()}mount(){const e=this.tools,t=this.cellView;if(t&&e){const r=e.some(s=>s.options.isSVGElement!==!1),o=e.some(s=>s.options.isSVGElement===!1);r&&(this.options.local?t.container:t.graph.view.decorator).appendChild(this.svgContainer),o&&this.graph.container.appendChild(this.htmlContainer)}return this}}(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&o.graph!=null&&o.cell!=null&&typeof o.config=="function"&&typeof o.update=="function"&&typeof o.focus=="function"&&typeof o.blur=="function"&&typeof o.show=="function"&&typeof o.hide=="function"}n.isToolsView=e})(En||(En={}));(function(n){class e extends tn{static getDefaults(){return this.defaults}static config(r){this.defaults=this.getOptions(r)}static getOptions(r){return un(an(this.getDefaults()),r)}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get name(){return this.options.name}get[Symbol.toStringTag](){return e.toStringTag}constructor(r={}){super(),this.visible=!0,this.options=this.getOptions(r),this.container=tn.createElement(this.options.tagName||"g",this.options.isSVGElement!==!1),Nt(this.container,this.prefixClassName("cell-tool")),typeof this.options.className=="string"&&Nt(this.container,this.options.className),this.init()}init(){}getOptions(r){return this.constructor.getOptions(r)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(r,o){return this.cellView=r,this.parent=o,this.stamp(this.container),this.cell.isEdge()?Nt(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&Nt(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}render(){this.empty();const r=this.options.markup;if(r){const o=Jt.parseJSONMarkup(r);this.container.appendChild(o.fragment),this.childNodes=o.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(r){r&&r.setAttribute("data-cell-id",this.cellView.cell.id)}show(){return this.container.style.display="",this.visible=!0,this}hide(){return this.container.style.display="none",this.visible=!1,this}isVisible(){return this.visible}focus(){const r=this.options.focusOpacity;return r!=null&&Number.isFinite(r)&&(this.container.style.opacity=`${r}`),this.parent.focus(this),this}blur(){return this.container.style.opacity="",this.parent.blur(this),this}guard(r){return this.graph==null||this.cellView==null?!0:this.graph.view.guard(r,this.cellView)}}e.defaults={isSVGElement:!0,tagName:"g"},n.ToolItem=e,function(t){let r=0;function o(i){return i?y0(i):(r+=1,`CustomTool${r}`)}function s(i){const l=v0(o(i.name),this);return l.config(i),l}t.define=s}(e=n.ToolItem||(n.ToolItem={})),function(t){t.toStringTag=`X6.${t.name}`;function r(o){if(o==null)return!1;if(o instanceof t)return!0;const s=o[Symbol.toStringTag],i=o;return(s==null||s===t.toStringTag)&&i.graph!=null&&i.cell!=null&&typeof i.config=="function"&&typeof i.update=="function"&&typeof i.focus=="function"&&typeof i.blur=="function"&&typeof i.show=="function"&&typeof i.hide=="function"&&typeof i.isVisible=="function"}t.isToolItem=r}(e=n.ToolItem||(n.ToolItem={}))})(En||(En={}));const rce=n=>n;function hE(n,e){return e===0?"0%":`${Math.round(n/e*100)}%`}function FP(n){return(t,r,o,s)=>r.isEdgeElement(o)?sce(n,t,r,o,s):oce(n,t,r,o,s)}function oce(n,e,t,r,o){const s=t.cell,i=s.getAngle(),l=t.getUnrotatedBBoxOfElement(r),a=s.getBBox().getCenter(),c=K.create(o).rotate(i,a);let u=c.x-l.x,d=c.y-l.y;return n&&(u=hE(u,l.width),d=hE(d,l.height)),e.anchor={name:"topLeft",args:{dx:u,dy:d,rotate:!0}},e}function sce(n,e,t,r,o){const s=t.getConnection();if(!s)return e;const i=s.closestPointLength(o);if(n){const l=s.length();e.anchor={name:"ratio",args:{ratio:i/l}}}else e.anchor={name:"length",args:{length:i}};return e}const ice=FP(!0),lce=FP(!1),ace=Object.freeze(Object.defineProperty({__proto__:null,noop:rce,pinAbsolute:lce,pinRelative:ice},Symbol.toStringTag,{value:"Module"}));var Eb;(function(n){n.presets=ace,n.registry=bn.create({type:"connection strategy"}),n.registry.register(n.presets,!0)})(Eb||(Eb={}));function zP(n,e,t,r){return pt(Eb.presets.pinRelative,this.graph,{},e,t,n,this.cell,r,{}).anchor}function jP(n,e){return e?n.cell.getBBox():n.cell.isEdge()?n.getConnection().bbox():n.getUnrotatedBBoxOfElement(n.container)}class il extends En.ToolItem{onRender(){Nt(this.container,this.prefixClassName("cell-tool-button")),this.update()}update(){return this.updatePosition(),this}updatePosition(){const t=this.cellView.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();Ac(this.container,t,{absolute:!0})}getNodeMatrix(){const e=this.cellView,t=this.options;let{x:r=0,y:o=0}=t;const{offset:s,useCellGeometry:i,rotate:l}=t;let a=jP(e,i);const c=e.cell.getAngle();l||(a=a.bbox(c));let u=0,d=0;typeof s=="number"?(u=s,d=s):typeof s=="object"&&(u=s.x,d=s.y),r=Bo(r,a.width),o=Bo(o,a.height);let f=Hn().translate(a.x+a.width/2,a.y+a.height/2);return l&&(f=f.rotate(c)),f=f.translate(r+u-a.width/2,o+d-a.height/2),f}getEdgeMatrix(){const e=this.cellView,t=this.options,{offset:r=0,distance:o=0,rotate:s}=t;let i,l,a;const c=Bo(o,1);c>=0&&c<=1?i=e.getTangentAtRatio(c):i=e.getTangentAtLength(c),i?(l=i.start,a=i.vector().vectorAngle(new K(1,0))||0):(l=e.getConnection().start,a=0);let u=Hn().translate(l.x,l.y).rotate(a);return typeof r=="object"?u=u.translate(r.x||0,r.y||0):u=u.translate(0,r),s||(u=u.rotate(-a)),u}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const t=this.options.onClick;typeof t=="function"&&pt(t,this.cellView,{e,view:this.cellView,cell:this.cellView.cell,btn:this})}}(function(n){n.config({name:"button",useCellGeometry:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})})(il||(il={}));(function(n){n.Remove=n.define({name:"button-remove",markup:[{tagName:"circle",selector:"button",attrs:{r:7,fill:"#FF1D00",cursor:"pointer"}},{tagName:"path",selector:"icon",attrs:{d:"M -3 -3 3 3 M -3 3 3 -3",fill:"none",stroke:"#FFFFFF","stroke-width":2,"pointer-events":"none"}}],distance:60,offset:0,useCellGeometry:!0,onClick({view:e,btn:t}){t.parent.remove(),e.cell.remove({ui:!0,toolId:t.cid})}})})(il||(il={}));var cce=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{this.stopHandleListening(t),t.remove()})}renderHandles(){const e=this.vertices;for(let t=0,r=e.length;tthis.guard(a),attrs:this.options.attrs||{}});i&&i(l),l.updatePosition(o.x,o.y),this.stamp(l.container),this.container.appendChild(l.container),this.handles.push(l),this.startHandleListening(l)}}updateHandles(){const e=this.vertices;for(let t=0,r=e.length;t0?r[e-1]:t.sourceAnchor,s=e0){const o=this.getNeighborPoints(t),s=o.prev,i=o.next;Math.abs(e.x-s.x)new n.Handle(t),markup:[{tagName:"path",selector:"connection",className:e,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${e}`]:"onPathMouseDown",[`touchstart .${e}`]:"onPathMouseDown"}})})(Pd||(Pd={}));class Nd extends En.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){Nt(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const e=this.cellView,t=[...this.vertices];t.unshift(e.sourcePoint),t.push(e.targetPoint);for(let r=0,o=t.length;rthis.guard(s),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(o),this.updateHandle(o,e,t),this.container.appendChild(o.container),this.startHandleListening(o),o}startHandleListening(e){e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)}stopHandleListening(e){e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)}resetHandles(){const e=this.handles;this.handles=[],e&&e.forEach(t=>{this.stopHandleListening(t),t.remove()})}shiftHandleIndexes(e){const t=this.handles;for(let r=0,o=t.length;rnew n.Handle(e),anchor:zP})})(Nd||(Nd={}));class gp extends En.ToolItem{get type(){return this.options.type}onRender(){Nt(this.container,this.prefixClassName(`edge-tool-${this.type}-anchor`)),this.toggleArea(!1),this.update()}update(){const e=this.type;return this.cellView.getTerminalView(e)?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}updateAnchor(){const e=this.childNodes;if(!e)return;const t=e.anchor;if(!t)return;const r=this.type,o=this.cellView,s=this.options,i=o.getTerminalAnchor(r),l=o.cell.prop([r,"anchor"]);t.setAttribute("transform",`translate(${i.x}, ${i.y})`);const a=l?s.customAnchorAttrs:s.defaultAnchorAttrs;a&&Object.keys(a).forEach(c=>{t.setAttribute(c,a[c])})}updateArea(){const e=this.childNodes;if(!e)return;const t=e.area;if(!t)return;const r=this.type,o=this.cellView,s=o.getTerminalView(r);if(s){const i=s.cell,l=o.getTerminalMagnet(r);let a=this.options.areaPadding||0;Number.isFinite(a)||(a=0);let c,u,d;s.isEdgeElement(l)?(c=s.getBBox(),u=0,d=c.getCenter()):(c=s.getUnrotatedBBoxOfElement(l),u=i.getAngle(),d=c.getCenter(),u&&d.rotate(-u,i.getBBox().getCenter())),c.inflate(a),Gt(t,{x:-c.width/2,y:-c.height/2,width:c.width,height:c.height,transform:`translate(${d.x}, ${d.y}) rotate(${u})`})}}toggleArea(e){if(this.childNodes){const t=this.childNodes.area;t&&(t.style.display=e?"":"none")}}onMouseDown(e){this.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}resetAnchor(e){const t=this.type,r=this.cell;e?r.prop([t,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):r.removeProp([t,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(e){const t=this.type,r=this.cellView,o=r.getTerminalView(t);if(o==null)return;const s=this.normalizeEvent(e),i=o.cell,l=r.getTerminalMagnet(t);let a=this.graph.coord.clientToLocalPoint(s.clientX,s.clientY);const c=this.options.snap;if(typeof c=="function"){const f=pt(c,r,a,o,l,t,r,this);a=K.create(f)}if(this.options.restrictArea)if(o.isEdgeElement(l)){const f=o.getClosestPoint(a);f&&(a=f)}else{const f=o.getUnrotatedBBoxOfElement(l),h=i.getAngle(),p=i.getBBox().getCenter(),g=a.clone().rotate(h,p);f.containsPoint(g)||(a=f.getNearestPointToPoint(g).rotate(-h,p))}let u;const d=this.options.anchor;typeof d=="function"&&(u=pt(d,r,a,o,l,t,r,this)),this.resetAnchor(u),this.update()}onMouseUp(e){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);const t=this.cellView;this.options.removeRedundancies&&t.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}onDblClick(){const e=this.options.resetAnchor;e&&this.resetAnchor(e===!0?void 0:e),this.update()}}(function(n){n.config({tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:zP,snap(e,t,r,o,s,i){const l=i.options.snapRadius||0,a=o==="source",c=a?0:-1,u=this.cell.getVertexAt(c)||this.getTerminalAnchor(a?"target":"source");return u&&(Math.abs(u.x-e.x){this.editor&&(this.editor.focus(),this.selectText())})}selectText(){if(window.getSelection&&this.editor){const e=document.createRange(),t=window.getSelection();e.selectNodeContents(this.editor),t.removeAllRanges(),t.addRange(e)}}getCellText(){const{getText:e}=this.options;if(typeof e=="function")return pt(e,this.cellView,{cell:this.cell,index:this.labelIndex});if(typeof e=="string"){if(this.cell.isNode())return this.cell.attr(e);if(this.cell.isEdge()&&this.labelIndex!==-1)return this.cell.prop(`labels/${this.labelIndex}/attrs/${e}`)}}setCellText(e){const t=this.options.setText;if(typeof t=="function"){pt(t,this.cellView,{cell:this.cell,value:e,index:this.labelIndex,distance:this.distance});return}if(typeof t=="string"){if(this.cell.isNode()){e!==null&&this.cell.attr(t,e);return}if(this.cell.isEdge()){const r=this.cell;if(this.labelIndex===-1){if(e){const o={position:{distance:this.distance},attrs:{}};eu(o,`attrs/${t}`,e),r.appendLabel(o)}}else e!==null?r.prop(`labels/${this.labelIndex}/attrs/${t}`,e):typeof this.labelIndex=="number"&&r.removeLabelAt(this.labelIndex)}}}onRemove(){const e=this.cellView;e&&e.off("cell:dblclick",this.dblClick),this.removeElement()}}(function(n){n.config({tagName:"div",isSVGElement:!1,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"},documentEvents:{mouseup:"onDocumentMouseUp",touchend:"onDocumentMouseUp",touchcancel:"onDocumentMouseUp"}})})(Rc||(Rc={}));(function(n){n.NodeEditor=n.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText:"text/text",setText:"text/text"}),n.EdgeEditor=n.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},labelAddable:!0,getText:"label/text",setText:"label/text"})})(Rc||(Rc={}));var HP=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o1&&(o/=100),n.getPointAtRatio(o)},Pce=function(n,e,t,r){const o=r.length!=null?r.length:20;return n.getPointAtLength(o)},WP=function(n,e,t,r){const o=n.getClosestPoint(t);return o??new K},Nce=Ng(WP),Ice=function(n,e,t,r){const s=n.getConnection(),i=n.getConnectionSubdivisions(),l=new Ke(t.clone().translate(0,1e6),t.clone().translate(0,-1e6)),a=new Ke(t.clone().translate(1e6,0),t.clone().translate(-1e6,0)),c=l.intersect(s,{segmentSubdivisions:i}),u=a.intersect(s,{segmentSubdivisions:i}),d=[];return c&&d.push(...c),u&&d.push(...u),d.length>0?t.closest(d):r.fallbackAt!=null?UP(n,r.fallbackAt):pt(WP,this,n,e,t,r)},Lce=Ng(Ice),Rce=Object.freeze(Object.defineProperty({__proto__:null,closest:Nce,length:Pce,orth:Lce,ratio:kce},Symbol.toStringTag,{value:"Module"}));var Bc;(function(n){n.presets=Rce,n.registry=bn.create({type:"edge endpoint"}),n.registry.register(n.presets,!0)})(Bc||(Bc={}));function Ig(n,e,t){let r;if(typeof t=="object"){if(Number.isFinite(t.y)){const s=new Ke(e,n),{start:i,end:l}=s.parallel(t.y);e=i,n=l}r=t.x}else r=t;if(r==null||!Number.isFinite(r))return n;const o=n.distance(e);return r===0&&o>0?n:n.move(e,-Math.min(r,o-1))}function vp(n){const e=n.getAttribute("stroke-width");return e===null?0:parseFloat(e)||0}function $ce(n){if(n==null)return null;let e=n;do{let t=e.tagName;if(typeof t!="string")return null;if(t=t.toUpperCase(),t==="G")e=e.firstElementChild;else if(t==="TITLE")e=e.nextElementSibling;else break}while(e);return e}const GP=function(n,e,t,r){const o=e.getBBoxOfElement(t);r.stroked&&o.inflate(vp(t)/2);const s=n.intersect(o),i=s&&s.length?n.start.closest(s):n.end;return Ig(i,n.start,r.offset)},Dce=function(n,e,t,r,o){const s=e.cell,i=s.isNode()?s.getAngle():0;if(i===0)return pt(GP,this,n,e,t,r,o);const l=e.getUnrotatedBBoxOfElement(t);r.stroked&&l.inflate(vp(t)/2);const a=l.getCenter(),c=n.clone().rotate(i,a),u=c.setLength(1e6).intersect(l),d=u&&u.length?c.start.closest(u).rotate(-i,a):n.end;return Ig(d,n.start,r.offset)},Vce=function(n,e,t,r){let o,s;const i=n.end,l=r.selector;if(typeof l=="string"?o=e.findOne(l):Array.isArray(l)?o=b0(t,l):o=$ce(t),!rl(o)){if(o===t||!rl(t))return i;o=t}const a=e.getShapeOfElement(o),c=e.getMatrixOfElement(o),u=e.getRootTranslatedMatrix(),d=e.getRootRotatedMatrix(),f=u.multiply(d).multiply(c),h=f.inverse(),p=Vt.transformLine(n,h),g=p.start.clone(),m=e.getDataOfElement(o);if(r.insideout===!1){m.shapeBBox==null&&(m.shapeBBox=a.bbox());const y=m.shapeBBox;if(y!=null&&y.containsPoint(g))return i}r.extrapolate===!0&&p.setLength(1e6);let v;if(rt.isPath(a)){const y=r.precision||2;m.segmentSubdivisions==null&&(m.segmentSubdivisions=a.getSegmentSubdivisions({precision:y})),v={precision:y,segmentSubdivisions:m.segmentSubdivisions},s=p.intersect(a,v)}else s=p.intersect(a);s?Array.isArray(s)&&(s=g.closest(s)):r.sticky===!0&&($e.isRectangle(a)?s=a.getNearestPointToPoint(g):Wo.isEllipse(a)?s=a.intersectsWithLineFromCenterToPoint(g):s=a.closestPoint(g,v));const w=s?Vt.transformPoint(s,f):i;let b=r.offset||0;return r.stroked!==!1&&(typeof b=="object"?(b=Object.assign({},b),b.x==null&&(b.x=0),b.x+=vp(o)/2):b+=vp(o)/2),Ig(w,n.start,b)};function Bce(n,e,t=0){const{start:r,end:o}=n;let s,i,l,a;switch(e){case"left":a="x",s=o,i=r,l=-1;break;case"right":a="x",s=r,i=o,l=1;break;case"top":a="y",s=o,i=r,l=-1;break;case"bottom":a="y",s=r,i=o,l=1;break;default:return}r[a]0?a[c]=l[c]:l[c]=a[c],[l.toJSON(),...n,a.toJSON()]};function Qf(n){return new $e(n.x,n.y,0,0)}function bp(n={}){const e=ga(n.padding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function qP(n,e={}){return n.sourceBBox.clone().moveAndExpand(bp(e))}function KP(n,e={}){return n.targetBBox.clone().moveAndExpand(bp(e))}function Uce(n,e={}){return n.sourceAnchor?n.sourceAnchor:qP(n,e).getCenter()}function Wce(n,e={}){return n.targetAnchor?n.targetAnchor:KP(n,e).getCenter()}const YP=function(n,e,t){let r=qP(t,e),o=KP(t,e);const s=Uce(t,e),i=Wce(t,e);r=r.union(Qf(s)),o=o.union(Qf(i));const l=n.map(u=>K.create(u));l.unshift(s),l.push(i);let a=null;const c=[];for(let u=0,d=l.length-1;uf.y?"N":"S":d.y===f.y?d.x>f.x?"W":"E":null}n.getBearing=s;function i(d,f,h){const p=new K(d.x,f.y),g=new K(f.x,d.y),m=s(d,p),v=s(d,g),w=h?e[h]:null,b=m===h||m!==w&&(v===w||v!==h)?p:g;return{points:[b],direction:s(b,f)}}n.vertexToVertex=i;function l(d,f,h){const p=r(d,f,h);return{points:[p],direction:s(p,f)}}n.nodeToVertex=l;function a(d,f,h,p){const g=[new K(d.x,f.y),new K(f.x,d.y)],m=g.filter(b=>!h.containsPoint(b)),v=m.filter(b=>s(b,d)!==p);let w;if(v.length>0)return w=v.filter(b=>s(d,b)===p).pop(),w=w||v[0],{points:[w],direction:s(w,f)};{w=n6(g,m)[0];const b=K.create(f).move(w,-o(h,p)/2);return{points:[r(b,d,h),b],direction:s(b,f)}}}n.vertexToNode=a;function c(d,f,h,p){let g=l(f,d,p);const m=g.points[0];if(h.containsPoint(m)){g=l(d,f,h);const v=g.points[0];if(p.containsPoint(v)){const w=K.create(d).move(v,-o(h,s(d,v))/2),b=K.create(f).move(m,-o(p,s(f,m))/2),y=new Ke(w,b).getCenter(),x=l(d,y,h),E=i(y,f,x.direction);g.points=[x.points[0],E.points[0]],g.direction=E.direction}}return g}n.nodeToNode=c;function u(d,f,h,p,g){const m=h.union(p).inflate(1),v=m.getCenter(),w=v.distance(f)>v.distance(d),b=w?f:d,y=w?d:f;let x,E,T;g?(x=K.fromPolar(m.width+m.height,t[g],b),x=m.getNearestPointToPoint(x).move(x,-1)):x=m.getNearestPointToPoint(b).move(b,1),E=r(x,y,m);let M;x.round().equals(E.round())?(E=K.fromPolar(m.width+m.height,Wt.toRad(x.theta(b))+Math.PI/2,y),E=m.getNearestPointToPoint(E).move(y,1).round(),T=r(x,E,m),M=w?[E,T,x]:[x,T,E]):M=w?[E,x]:[x,E];const O=s(w?x:E,f);return{points:M,direction:O}}n.insideNode=u})(Qr||(Qr={}));const Gce={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeNodes:[],excludeShapes:[],startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost(){return Di(this.step,this)},directions(){const n=Di(this.step,this),e=Di(this.cost,this);return[{cost:e,offsetX:n,offsetY:0},{cost:e,offsetX:-n,offsetY:0},{cost:e,offsetX:0,offsetY:n},{cost:e,offsetX:0,offsetY:-n}]},penalties(){const n=Di(this.step,this);return{0:0,45:n/2,90:n/2}},paddingBox(){const n=Di(this.step,this);return{x:-n,y:-n,width:2*n,height:2*n}},fallbackRouter:YP,draggingRouter:null,snapToGrid:!0};function Di(n,e){return typeof n=="function"?n.call(e):n}function qce(n){const e=Object.keys(n).reduce((t,r)=>{const o=t;return r==="fallbackRouter"||r==="draggingRouter"||r==="fallbackRoute"?o[r]=n[r]:o[r]=Di(n[r],n),t},{});if(e.padding){const t=ga(e.padding);e.paddingBox={x:-t.left,y:-t.top,width:t.left+t.right,height:t.top+t.bottom}}return e.directions.forEach(t=>{const r=new K(0,0),o=new K(t.offsetX,t.offsetY);t.angle=Wt.normalize(r.theta(o))}),e}const pE=1,gE=2;class Kce{constructor(){this.items=[],this.hash={},this.values={}}add(e,t){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=pE,this.values[e]=t;const r=$6(this.items,e,o=>this.values[o]);this.items.splice(r,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=gE),e}isOpen(e){return this.hash[e]===pE}isClose(e){return this.hash[e]===gE}isEmpty(){return this.items.length===0}}class Yce{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}build(e,t){const r=this.options,o=r.excludeTerminals.reduce((c,u)=>{const d=t[u];if(d){const f=e.getCell(d.cell);f&&c.push(f)}return c},[]);let s=[];const i=e.getCell(t.getSourceCellId());i&&(s=xC(s,i.getAncestors().map(c=>c.id)));const l=e.getCell(t.getTargetCellId());l&&(s=xC(s,l.getAncestors().map(c=>c.id)));const a=this.mapGridSize;return e.getNodes().reduce((c,u)=>{const d=o.some(m=>m.id===u.id),f=u.shape?r.excludeShapes.includes(u.shape):!1,h=r.excludeNodes.some(m=>typeof m=="string"?u.id===m:m===u),p=s.includes(u.id),g=f||d||h||p;if(u.isVisible()&&!g){const m=u.getBBox().moveAndExpand(r.paddingBox),v=m.getOrigin().snapToGrid(a),w=m.getCorner().snapToGrid(a);for(let b=v.x;b<=w.x;b+=a)for(let y=v.y;y<=w.y;y+=a){const x=new K(b,y).toString();c[x]==null&&(c[x]=[]),c[x].push(m)}}return c},this.map),this}isAccessible(e){const t=e.clone().snapToGrid(this.mapGridSize).toString(),r=this.map[t];return r?r.every(o=>!o.containsPoint(e)):!0}}function JP(n,e){const t=n.sourceBBox.clone();return e&&e.paddingBox?t.moveAndExpand(e.paddingBox):t}function XP(n,e){const t=n.targetBBox.clone();return e&&e.paddingBox?t.moveAndExpand(e.paddingBox):t}function ZP(n,e){return n.sourceAnchor?n.sourceAnchor:JP(n,e).getCenter()}function Jce(n,e){return n.targetAnchor?n.targetAnchor:XP(n,e).getCenter()}function Fm(n,e,t,r,o){const s=360/t,i=n.theta(Xce(n,e,r,o)),l=Wt.normalize(i+s/2);return s*Math.floor(l/s)}function Xce(n,e,t,r){const o=r.step,s=e.x-n.x,i=e.y-n.y,l=s/t.x,a=i/t.y,c=l*o,u=a*o;return new K(n.x+c,n.y+u)}function mE(n,e){const t=Math.abs(n-e);return t>180?360-t:t}function Zce(n,e){const t=e.step;return e.directions.forEach(r=>{r.gridOffsetX=r.offsetX/t*n.x,r.gridOffsetY=r.offsetY/t*n.y}),e.directions}function Qce(n,e,t){return{source:e.clone(),x:vE(t.x-e.x,n),y:vE(t.y-e.y,n)}}function vE(n,e){if(!n)return e;const t=Math.abs(n),r=Math.round(t/e);if(!r)return t;const o=r*e,i=(t-o)/r;return e+i}function eue(n,e){const t=e.source,r=Ht.snapToGrid(n.x-t.x,e.x)+t.x,o=Ht.snapToGrid(n.y-t.y,e.y)+t.y;return new K(r,o)}function yu(n,e){return n.round(e)}function Sh(n,e,t){return yu(eue(n.clone(),e),t)}function Ju(n){return n.toString()}function zm(n){return new K(n.x===0?0:Math.abs(n.x)/n.x,n.y===0?0:Math.abs(n.y)/n.y)}function bE(n,e){let t=1/0;for(let r=0,o=e.length;r{if(t.includes(u)){const d=i[u],f=new K(n.x+d.x*(Math.abs(l.x)+e.width),n.y+d.y*(Math.abs(l.y)+e.height)),p=new Ke(n,f).intersect(e)||[];let g,m=null;for(let v=0;vg)&&(g=b,m=w)}if(m){let v=Sh(m,r,s);e.containsPoint(v)&&(v=Sh(v.translate(d.x*r.x,d.y*r.y),r,s)),c.push(v)}}return c},[]);return e.containsPoint(n)||a.push(Sh(n,r,s)),a}function tue(n,e,t,r,o){const s=[];let i=zm(o.diff(t)),l=Ju(t),a=n[l],c;for(;a;){c=e[l];const f=zm(c.diff(a));f.equals(i)||(s.unshift(c),i=f),l=Ju(a),a=n[l]}const u=e[l];return zm(u.diff(r)).equals(i)||s.unshift(u),s}function nue(n,e,t,r,o){const s=o.precision;let i,l;$e.isRectangle(e)?i=yu(ZP(n,o).clone(),s):i=yu(e.clone(),s),$e.isRectangle(t)?l=yu(Jce(n,o).clone(),s):l=yu(t.clone(),s);const a=Qce(o.step,i,l),c=i,u=l;let d,f;if($e.isRectangle(e)?d=yE(c,e,o.startDirections,a,o):d=[c],$e.isRectangle(t)?f=yE(l,t,o.endDirections,a,o):f=[u],d=d.filter(h=>r.isAccessible(h)),f=f.filter(h=>r.isAccessible(h)),d.length>0&&f.length>0){const h=new Kce,p={},g={},m={};for(let k=0,P=d.length;k{const L=Ju(P);return k.push(L),k},[]),M=K.equalPoints(d,f);let O=o.maxLoopCount;for(;!h.isEmpty()&&O>0;){const k=h.pop(),P=p[k],L=g[k],j=m[k],ce=P.equals(c),R=L==null;let $;if(R?w?ce?$=null:$=Fm(c,P,E,a,o):$=v:$=Fm(L,P,E,a,o),!(R&&M)&&T.indexOf(k)>=0)return o.previousDirectionAngle=$,tue(g,p,P,c,u);for(let U=0;Uo.maxDirectionChange)continue;const Z=Sh(P.clone().translate(b.gridOffsetX||0,b.gridOffsetY||0),a,s),le=Ju(Z);if(h.isClose(le)||!r.isAccessible(Z))continue;if(T.indexOf(le)>=0&&!Z.equals(u)){const Te=Fm(Z,u,E,a,o);if(mE(W,Te)>o.maxDirectionChange)continue}const ee=b.cost,Me=ce?0:o.penalties[y],ge=j+ee+Me;(!h.isOpen(le)||geK.create(h)),c=[];let u=i,d,f;for(let h=0,p=a.length;h<=p;h+=1){let g=null;if(d=f||o,f=a[h],f==null){f=s;const v=t.cell;if((v.getSourceCellId()==null||v.getTargetCellId()==null)&&typeof r.draggingRouter=="function"){const b=d===o?i:d,y=f.getOrigin();g=pt(r.draggingRouter,t,b,y,r)}}if(g==null&&(g=nue(t,d,f,l,r)),g===null)return pt(r.fallbackRouter,this,n,r,t);const m=g[0];m&&m.equals(u)&&g.shift(),u=g[g.length-1]||u,c.push(...g)}return r.snapToGrid?rue(c,t.graph.grid.getGridSize()):c},QP=function(n,e,t){return pt(oue,this,n,Object.assign(Object.assign({},Gce),e),t)},sue={maxDirectionChange:45,directions(){const n=Di(this.step,this),e=Di(this.cost,this),t=Math.ceil(Math.sqrt(n*n<<1));return[{cost:e,offsetX:n,offsetY:0},{cost:t,offsetX:n,offsetY:n},{cost:e,offsetX:0,offsetY:n},{cost:t,offsetX:-n,offsetY:n},{cost:e,offsetX:-n,offsetY:0},{cost:t,offsetX:-n,offsetY:-n},{cost:e,offsetX:0,offsetY:-n},{cost:t,offsetX:n,offsetY:-n}]},fallbackRoute(n,e,t){const r=n.theta(e),o=[];let s={x:e.x,y:n.y},i={x:n.x,y:e.y};if(r%180>90){const b=s;s=i,i=b}const l=r%90<45?s:i,a=new Ke(n,l),c=90*Math.ceil(r/90),u=K.fromPolar(a.squaredLength(),Wt.toRad(c+135),l),d=new Ke(e,u),f=a.intersectsWithLine(d),h=f||e,p=f?h:n,g=360/t.directions.length,m=p.theta(e),v=Wt.normalize(m+g/2),w=g*Math.floor(v/g);return t.previousDirectionAngle=w,h&&o.push(h.round()),o.push(e),o}},iue=function(n,e,t){return pt(QP,this,n,Object.assign(Object.assign({},sue),e),t)},lue=function(n,e,t){const r=e.offset||32,o=e.min==null?16:e.min;let s=0,i=e.direction;const l=t.sourceBBox,a=t.targetBBox,c=l.getCenter(),u=a.getCenter();if(typeof r=="number"&&(s=r),i==null){let v=a.left-l.right,w=a.top-l.bottom;v>=0&&w>=0?i=v>=w?"L":"T":v<=0&&w>=0?(v=l.left-a.right,v>=0?i=v>=w?"R":"T":i="T"):v>=0&&w<=0?(w=l.top-a.bottom,w>=0?i=v>=w?"L":"B":i="L"):(v=l.left-a.right,w=l.top-a.bottom,v>=0&&w>=0?i=v>=w?"R":"B":v<=0&&w>=0?i="B":v>=0&&w<=0?i="R":i=Math.abs(v)>Math.abs(w)?"R":"B")}i==="H"?i=u.x-c.x>=0?"L":"R":i==="V"&&(i=u.y-c.y>=0?"T":"B"),r==="center"&&(i==="L"?s=(a.left-l.right)/2:i==="R"?s=(l.left-a.right)/2:i==="T"?s=(a.top-l.bottom)/2:i==="B"&&(s=(l.top-a.bottom)/2));let d,f,h;const p=i==="L"||i==="R";if(p){if(u.y===c.y)return[...n];h=i==="L"?1:-1,d="x",f="width"}else{if(u.x===c.x)return[...n];h=i==="T"?1:-1,d="y",f="height"}const g=c.clone(),m=u.clone();if(g[d]+=h*(l[f]/2+s),m[d]-=h*(a[f]/2+s),p){const v=g.x,w=m.x,b=l.width/2+o,y=a.width/2+o;u.x>c.x?w<=v&&(g.x=Math.max(w,c.x+b),m.x=Math.min(v,u.x-y)):w>=v&&(g.x=Math.min(w,c.x-b),m.x=Math.max(v,u.x+y))}else{const v=g.y,w=m.y,b=l.height/2+o,y=a.height/2+o;u.y>c.y?w<=v&&(g.y=Math.max(w,c.y+b),m.y=Math.min(v,u.y-y)):w>=v&&(g.y=Math.min(w,c.y-b),m.y=Math.max(v,u.y+y))}return[g.toJSON(),...n,m.toJSON()]};function Pa(n,e){if(e!=null&&e!==!1){const t=typeof e=="boolean"?0:e;if(t>0){const r=K.create(n[1]).move(n[2],t),o=K.create(n[1]).move(n[0],t);return[r.toJSON(),...n,o.toJSON()]}{const r=n[1];return[Object.assign({},r),...n,Object.assign({},r)]}}return n}const aue=function(n,e,t){const r=e.width||50,s=(e.height||80)/2,i=e.angle||"auto",l=t.sourceAnchor,a=t.targetAnchor,c=t.sourceBBox,u=t.targetBBox;if(l.equals(a)){const d=v=>{const w=Wt.toRad(v),b=Math.sin(w),y=Math.cos(w),x=new K(l.x+y*r,l.y+b*r),E=new K(x.x-y*s,x.y-b*s),T=E.clone().rotate(-90,x),M=E.clone().rotate(90,x);return[T.toJSON(),x.toJSON(),M.toJSON()]},f=v=>{const w=l.clone().move(v,-1),b=new Ke(w,v);return!c.containsPoint(v)&&!c.intersectsWithLine(b)},h=[0,90,180,270,45,135,225,315];if(typeof i=="number")return Pa(d(i),e.merge);const p=c.getCenter();if(p.equals(l))return Pa(d(0),e.merge);const g=p.angleBetween(l,p.clone().translate(1,0));let m=d(g);if(f(m[1]))return Pa(m,e.merge);for(let v=1,w=h.length;v1&&(s.rotate(180-u,c),i.rotate(180-u,c),l.rotate(180-u,c))}const a=` - M ${n.x} ${n.y} - Q ${s.x} ${s.y} ${l.x} ${l.y} - Q ${i.x} ${i.y} ${e.x} ${e.y} - `;return r.raw?rt.parse(a):a},fue=function(n,e,t,r={}){const o=new rt;o.appendSegment(rt.createSegment("M",n));const s=1/3,i=2/3,l=r.radius||10;let a,c;for(let u=0,d=t.length;u=Math.abs(n.y-e.y)?"H":"V"),s==="H"){const i=(n.x+e.x)/2;o.appendSegment(rt.createSegment("C",i,n.y,i,e.y,e.x,e.y))}else{const i=(n.y+e.y)/2;o.appendSegment(rt.createSegment("C",n.x,i,e.x,i,e.x,e.y))}return r.raw?o:o.serialize()},wE=1,eh=1/3,th=2/3;function pue(n){let e=n.graph._jumpOverUpdateList;if(e==null&&(e=n.graph._jumpOverUpdateList=[],n.graph.on("cell:mouseup",()=>{const t=n.graph._jumpOverUpdateList;setTimeout(()=>{for(let r=0;r{e=n.graph._jumpOverUpdateList=[]})),e.indexOf(n)<0){e.push(n);const t=()=>e.splice(e.indexOf(n),1);n.cell.once("change:connector",t),n.cell.once("removed",t)}}function jm(n,e,t=[]){const r=[n,...t,e],o=[];return r.forEach((s,i)=>{const l=r[i+1];l!=null&&o.push(new Ke(s,l))}),o}function gue(n,e){const t=[];return e.forEach(r=>{const o=n.intersectsWithLine(r);o&&t.push(o)}),t}function CE(n,e){return new Ke(n,e).squaredLength()}function mue(n,e,t){return e.reduce((r,o,s)=>{if(yp.includes(o))return r;const i=r.pop()||n,l=K.create(o).move(i.start,-t);let a=K.create(o).move(i.start,+t);const c=e[s+1];if(c!=null){const f=a.distance(c);f<=t&&(a=c.move(i.start,f),yp.push(c))}else if(l.distance(i.end){if(Id.includes(i)){let a,c,u,d;if(t==="arc"){a=-90,c=i.start.diff(i.end),(c.x<0||c.x===0&&c.y<0)&&(a+=180);const h=i.getCenter(),p=new Ke(h,i.end).rotate(a,h);let g;g=new Ke(i.start,h),u=g.pointAt(2/3).rotate(a,i.start),d=p.pointAt(1/3).rotate(-a,p.end),s=rt.createSegment("C",u,d,p.end),o.appendSegment(s),g=new Ke(h,i.end),u=p.pointAt(1/3).rotate(a,p.end),d=g.pointAt(1/3).rotate(-a,i.end),s=rt.createSegment("C",u,d,i.end),o.appendSegment(s)}else if(t==="gap")s=rt.createSegment("M",i.end),o.appendSegment(s);else if(t==="cubic"){a=i.start.theta(i.end);const f=e*.6;let h=e*1.35;c=i.start.diff(i.end),(c.x<0||c.x===0&&c.y<0)&&(h*=-1),u=new K(i.start.x+f,i.start.y+h).rotate(a,i.start),d=new K(i.end.x-f,i.end.y+h).rotate(a,i.end),s=rt.createSegment("C",u,d,i.end),o.appendSegment(s)}}else{const a=n[l+1];r===0||!a||Id.includes(a)?(s=rt.createSegment("L",i.end),o.appendSegment(s)):vue(r,o,i.end,i.start,a.end)}}),o}function vue(n,e,t,r,o){const s=t.distance(r)/2,i=t.distance(o)/2,l=-Math.min(n,s),a=-Math.min(n,i),c=t.clone().move(r,l).round(),u=t.clone().move(o,a).round(),d=new K(eh*c.x+th*t.x,th*t.y+eh*c.y),f=new K(eh*u.x+th*t.x,th*t.y+eh*u.y);let h;h=rt.createSegment("L",c),e.appendSegment(h),h=rt.createSegment("C",d,f,u),e.appendSegment(h)}let Id,yp;const bue=function(n,e,t,r={}){Id=[],yp=[],pue(this);const o=r.size||5,s=r.type||"arc",i=r.radius||0,l=r.ignoreConnectors||["smooth"],a=this.graph,u=a.model.getEdges();if(u.length===1)return xE(jm(n,e,t),o,s,i);const d=this.cell,f=u.indexOf(d),h=a.options.connecting.connector||{},p=u.filter((y,x)=>{const E=y.getConnector()||h;return l.includes(E.name)?!1:x>f?E.name!=="jumpover":!0}),g=p.map(y=>a.findViewByCell(y)),m=jm(n,e,t),v=g.map(y=>y==null?[]:y===this?m:jm(y.sourcePoint,y.targetPoint,y.routePoints)),w=[];m.forEach(y=>{const x=p.reduce((E,T,M)=>{if(T!==d){const O=gue(y,v[M]);E.push(...O)}return E},[]).sort((E,T)=>CE(y.start,E)-CE(y.start,T));x.length>0?w.push(...mue(y,x,o)):w.push(y)});const b=xE(w,o,s,i);return Id=[],yp=[],r.raw?b:b.serialize()},yue=Object.freeze(Object.defineProperty({__proto__:null,jumpover:bue,loop:due,normal:uue,rounded:fue,smooth:hue},Symbol.toStringTag,{value:"Module"}));var sa;(function(n){n.presets=yue,n.registry=bn.create({type:"connector"}),n.registry.register(n.presets,!0)})(sa||(sa={}));var wue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class eN extends Gr{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(an(e)),this.changed={}}mutate(e,t={}){const r=t.unset===!0,o=t.silent===!0,s=[],i=this.changing;this.changing=!0,i||(this.previous=an(this.data),this.changed={});const l=this.data,a=this.previous,c=this.changed;if(Object.keys(e).forEach(u=>{const d=u,f=e[d];Mr(l[d],f)||s.push(d),Mr(a[d],f)?delete c[d]:c[d]=f,r?delete l[d]:l[d]=f}),!o&&s.length>0&&(this.pending=!0,this.pendingOptions=t,s.forEach(u=>{this.emit("change:*",{key:u,options:t,store:this,current:l[u],previous:a[u]})})),i)return this;if(!o)for(;this.pending;)this.pending=!1,this.emit("changed",{current:l,previous:a,store:this,options:this.pendingOptions});return this.pending=!1,this.changing=!1,this.pendingOptions=null,this}get(e,t){if(e==null)return this.data;const r=this.data[e];return r??t}getPrevious(e){if(this.previous){const t=this.previous[e];return t??void 0}}set(e,t,r){return e!=null&&(typeof e=="object"?this.mutate(e,t):this.mutate({[e]:t},r)),this}remove(e,t){const o={};let s;if(typeof e=="string")o[e]=void 0,s=t;else if(Array.isArray(e))e.forEach(i=>o[i]=void 0),s=t;else{for(const i in this.data)o[i]=void 0;s=e}return this.mutate(o,Object.assign(Object.assign({},s),{unset:!0})),this}getByPath(e){return b0(this.data,e,"/")}setByPath(e,t,r={}){const o="/",s=Array.isArray(e)?[...e]:e.split(o),i=Array.isArray(e)?e.join(o):e,l=s[0],a=s.length;if(r.propertyPath=i,r.propertyValue=t,r.propertyPathArray=s,a===1)this.set(l,t,r);else{const c={};let u=c,d=l;for(let p=1;p0:e in this.changed}getChanges(e){if(e==null)return this.hasChanged()?an(this.changed):null;const t=this.changing?this.previous:this.data,r={};let o;for(const s in e){const i=e[s];Mr(t[s],i)||(r[s]=i,o=!0)}return o?an(r):null}toJSON(){return an(this.data)}clone(){const e=this.constructor;return new e(this.data)}dispose(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}wue([Gr.dispose()],eN.prototype,"dispose",null);class Ld{constructor(e){this.cell=e,this.ids={},this.cache={}}get(){return Object.keys(this.ids)}start(e,t,r={},o="/"){const s=this.cell.getPropByPath(e),i=JF(r,Ld.defaultOptions),l=this.getTiming(i.timing),a=this.getInterp(i.interp,s,t);let c=0;const u=Array.isArray(e)?e.join(o):e,d=Array.isArray(e)?e:e.split(o),f=()=>{const h=new Date().getTime();c===0&&(c=h);let g=(h-c)/i.duration;g<1?this.ids[u]=requestAnimationFrame(f):g=1;const m=a(l(g));this.cell.setPropByPath(d,m),r.progress&&r.progress(Object.assign({progress:g,currentValue:m},this.getArgs(u))),g===1&&(this.cell.notify("transition:complete",this.getArgs(u)),r.complete&&r.complete(this.getArgs(u)),this.cell.notify("transition:finish",this.getArgs(u)),r.finish&&r.finish(this.getArgs(u)),this.clean(u))};return setTimeout(()=>{this.stop(e,void 0,o),this.cache[u]={startValue:s,targetValue:t,options:i},this.ids[u]=requestAnimationFrame(f),this.cell.notify("transition:start",this.getArgs(u)),r.start&&r.start(this.getArgs(u))},r.delay),this.stop.bind(this,e,o,r)}stop(e,t={},r="/"){const o=Array.isArray(e)?e:e.split(r);return Object.keys(this.ids).filter(s=>Mr(o,s.split(r).slice(0,o.length))).forEach(s=>{cancelAnimationFrame(this.ids[s]);const i=this.cache[s],l=this.getArgs(s),a=Object.assign(Object.assign({},i.options),t),c=a.jumpedToEnd;c&&i.targetValue!=null&&(this.cell.setPropByPath(s,i.targetValue),this.cell.notify("transition:end",Object.assign({},l)),this.cell.notify("transition:complete",Object.assign({},l)),a.complete&&a.complete(Object.assign({},l)));const u=Object.assign({jumpedToEnd:c},l);this.cell.notify("transition:stop",Object.assign({},u)),a.stop&&a.stop(Object.assign({},u)),this.cell.notify("transition:finish",Object.assign({},l)),a.finish&&a.finish(Object.assign({},l)),this.clean(s)}),this}clean(e){delete this.ids[e],delete this.cache[e]}getTiming(e){return typeof e=="string"?va[e]:e}getInterp(e,t,r){return e?e(t,r):typeof r=="number"?Kl.number(t,r):typeof r=="string"?r[0]==="#"?Kl.color(t,r):Kl.unit(t,r):Kl.object(t,r)}getArgs(e){const t=this.cache[e];return{path:e,startValue:t.startValue,targetValue:t.targetValue,cell:this.cell}}}(function(n){n.defaultOptions={delay:10,duration:100,timing:"linear"}})(Ld||(Ld={}));var Cue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s},tN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{typeof i=="function"&&this.propHooks.push(i)})),o&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),o)),this.defaults=un({},this.defaults,s)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:an(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,t){return this.propHooks.reduce((r,o)=>o?pt(o,e,r):r,t)}get[Symbol.toStringTag](){return At.toStringTag}constructor(e={}){super();const r=this.constructor.getDefaults(!0),o=un({},this.preprocess(r),this.preprocess(e));this.id=o.id||ap(),this.store=new eN(o),this.animation=new Ld(this),this.setup(),this.init(),this.postprocess(e)}init(){}get model(){return this._model}set model(e){this._model!==e&&(this._model=e)}preprocess(e,t){const r=e.id,s=this.constructor.applyPropHooks(this,e);return r==null&&t!==!0&&(s.id=ap()),s}postprocess(e){}setup(){this.store.on("change:*",e=>{const{key:t,current:r,previous:o,options:s}=e;this.notify("change:*",{key:t,options:s,current:r,previous:o,cell:this}),this.notify(`change:${t}`,{options:s,current:r,previous:o,cell:this});const i=t;(i==="source"||i==="target")&&this.notify("change:terminal",{type:i,current:r,previous:o,options:s,cell:this})}),this.store.on("changed",({options:e})=>this.notify("changed",{options:e,cell:this}))}notify(e,t){this.trigger(e,t);const r=this.model;return r&&(r.notify(`cell:${e}`,t),this.isNode()?r.notify(`node:${e}`,Object.assign(Object.assign({},t),{node:this})):this.isEdge()&&r.notify(`edge:${e}`,Object.assign(Object.assign({},t),{edge:this}))),this}isNode(){return!1}isEdge(){return!1}isSameStore(e){return this.store===e.store}get view(){return this.store.get("view")}get shape(){return this.store.get("shape","")}getProp(e,t){return e==null?this.store.get():this.store.get(e,t)}setProp(e,t,r){if(typeof e=="string")this.store.set(e,t,r);else{const o=this.preprocess(e,!0);this.store.set(un({},this.getProp(),o),t),this.postprocess(e)}return this}removeProp(e,t){return typeof e=="string"||Array.isArray(e)?this.store.removeByPath(e,t):this.store.remove(t),this}hasChanged(e){return e==null?this.store.hasChanged():this.store.hasChanged(e)}getPropByPath(e){return this.store.getByPath(e)}setPropByPath(e,t,r={}){return this.model&&(e==="children"?this._children=t?t.map(o=>this.model.getCell(o)).filter(o=>o!=null):null:e==="parent"&&(this._parent=t?this.model.getCell(t):null)),this.store.setByPath(e,t,r),this}removePropByPath(e,t={}){const r=Array.isArray(e)?e:e.split("/");return r[0]==="attrs"&&(t.dirty=!0),this.store.removeByPath(r,t),this}prop(e,t,r){return e==null?this.getProp():typeof e=="string"||Array.isArray(e)?arguments.length===1?this.getPropByPath(e):t==null?this.removePropByPath(e,r||{}):this.setPropByPath(e,t,r||{}):this.setProp(e,t||{})}previous(e){return this.store.getPrevious(e)}get zIndex(){return this.getZIndex()}set zIndex(e){e==null?this.removeZIndex():this.setZIndex(e)}getZIndex(){return this.store.get("zIndex")}setZIndex(e,t={}){return this.store.set("zIndex",e,t),this}removeZIndex(e={}){return this.store.remove("zIndex",e),this}toFront(e={}){const t=this.model;if(t){let r=t.getMaxZIndex(),o;e.deep?(o=this.getDescendants({deep:!0,breadthFirst:!0}),o.unshift(this)):o=[this],r=r-o.length+1;const s=t.total();let i=t.indexOf(this)!==s-o.length;i||(i=o.some((l,a)=>l.getZIndex()!==r+a)),i&&this.batchUpdate("to-front",()=>{r+=o.length,o.forEach((l,a)=>{l.setZIndex(r+a,e)})})}return this}toBack(e={}){const t=this.model;if(t){let r=t.getMinZIndex(),o;e.deep?(o=this.getDescendants({deep:!0,breadthFirst:!0}),o.unshift(this)):o=[this];let s=t.indexOf(this)!==0;s||(s=o.some((i,l)=>i.getZIndex()!==r+l)),s&&this.batchUpdate("to-back",()=>{r-=o.length,o.forEach((i,l)=>{i.setZIndex(r+l,e)})})}return this}get markup(){return this.getMarkup()}set markup(e){e==null?this.removeMarkup():this.setMarkup(e)}getMarkup(){let e=this.store.get("markup");return e==null&&(e=this.constructor.getMarkup()),e}setMarkup(e,t={}){return this.store.set("markup",e,t),this}removeMarkup(e={}){return this.store.remove("markup",e),this}get attrs(){return this.getAttrs()}set attrs(e){e==null?this.removeAttrs():this.setAttrs(e)}getAttrs(){const e=this.store.get("attrs");return e?Object.assign({},e):{}}setAttrs(e,t={}){if(e==null)this.removeAttrs(t);else{const r=o=>this.store.set("attrs",o,t);if(t.overwrite===!0)r(e);else{const o=this.getAttrs();t.deep===!1?r(Object.assign(Object.assign({},o),e)):r(un({},o,e))}}return this}replaceAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{deep:!1}))}removeAttrs(e={}){return this.store.remove("attrs",e),this}getAttrDefinition(e){if(!e)return null;const r=this.constructor.getAttrHooks()||{};let o=r[e]||bs.registry.get(e);if(!o){const s=Yp(e);o=r[s]||bs.registry.get(s)}return o||null}getAttrByPath(e){return e==null||e===""?this.getAttrs():this.getPropByPath(this.prefixAttrPath(e))}setAttrByPath(e,t,r={}){return this.setPropByPath(this.prefixAttrPath(e),t,r),this}removeAttrByPath(e,t={}){return this.removePropByPath(this.prefixAttrPath(e),t),this}prefixAttrPath(e){return Array.isArray(e)?["attrs"].concat(e):`attrs/${e}`}attr(e,t,r){return e==null?this.getAttrByPath():typeof e=="string"||Array.isArray(e)?arguments.length===1?this.getAttrByPath(e):t==null?this.removeAttrByPath(e,r||{}):this.setAttrByPath(e,t,r||{}):this.setAttrs(e,t||{})}get visible(){return this.isVisible()}set visible(e){this.setVisible(e)}setVisible(e,t={}){return this.store.set("visible",e,t),this}isVisible(){return this.store.get("visible")!==!1}show(e={}){return this.isVisible()||this.setVisible(!0,e),this}hide(e={}){return this.isVisible()&&this.setVisible(!1,e),this}toggleVisible(e,t={}){const r=typeof e=="boolean"?e:!this.isVisible(),o=typeof e=="boolean"?t:e;return r?this.show(o):this.hide(o),this}get data(){return this.getData()}set data(e){this.setData(e)}getData(){return this.store.get("data")}setData(e,t={}){if(e==null)this.removeData(t);else{const r=o=>this.store.set("data",o,t);if(t.overwrite===!0)r(e);else{const o=this.getData();t.deep===!1?r(typeof e=="object"?Object.assign(Object.assign({},o),e):e):r(un({},o,e))}}return this}replaceData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{deep:!1}))}removeData(e={}){return this.store.remove("data",e),this}get parent(){return this.getParent()}get children(){return this.getChildren()}getParentId(){return this.store.get("parent")}getParent(){const e=this.getParentId();if(e&&this.model){const t=this.model.getCell(e);return this._parent=t,t}return null}getChildren(){const e=this.store.get("children");if(e&&e.length&&this.model){const t=e.map(r=>{var o;return(o=this.model)===null||o===void 0?void 0:o.getCell(r)}).filter(r=>r!=null);return this._children=t,[...t]}return null}hasParent(){return this.parent!=null}isParentOf(e){return e!=null&&e.getParent()===this}isChildOf(e){return e!=null&&this.getParent()===e}eachChild(e,t){return this.children&&this.children.forEach(e,t),this}filterChild(e,t){return this.children?this.children.filter(e,t):[]}getChildCount(){return this.children==null?0:this.children.length}getChildIndex(e){return this.children==null?-1:this.children.indexOf(e)}getChildAt(e){return this.children!=null&&e>=0?this.children[e]:null}getAncestors(e={}){const t=[];let r=this.getParent();for(;r;)t.push(r),r=e.deep!==!1?r.getParent():null;return t}getDescendants(e={}){if(e.deep!==!1){if(e.breadthFirst){const t=[],r=this.getChildren()||[];for(;r.length>0;){const o=r.shift(),s=o.getChildren();t.push(o),s&&r.push(...s)}return t}{const t=this.getChildren()||[];return t.forEach(r=>{t.push(...r.getDescendants(e))}),t}}return this.getChildren()||[]}isDescendantOf(e,t={}){if(e==null)return!1;if(t.deep!==!1){let r=this.getParent();for(;r;){if(r===e)return!0;r=r.getParent()}return!1}return this.isChildOf(e)}isAncestorOf(e,t={}){return e==null?!1:e.isDescendantOf(this,t)}contains(e){return this.isAncestorOf(e)}getCommonAncestor(...e){return At.getCommonAncestor(this,...e)}setParent(e,t={}){return this._parent=e,e?this.store.set("parent",e.id,t):this.store.remove("parent",t),this}setChildren(e,t={}){return this._children=e,e!=null?this.store.set("children",e.map(r=>r.id),t):this.store.remove("children",t),this}unembed(e,t={}){const r=this.children;if(r!=null&&e!=null){const o=this.getChildIndex(e);o!==-1&&(r.splice(o,1),e.setParent(null,t),this.setChildren(r,t))}return this}embed(e,t={}){return e.addTo(this,t),this}addTo(e,t={}){return At.isCell(e)?e.addChild(this,t):e.addCell(this,t),this}insertTo(e,t,r={}){return e.insertChild(this,t,r),this}addChild(e,t={}){return this.insertChild(e,void 0,t)}insertChild(e,t,r={}){if(e!=null&&e!==this){const o=e.getParent(),s=this!==o;let i=t;if(i==null&&(i=this.getChildCount(),s||(i-=1)),o){const a=o.getChildren();if(a){const c=a.indexOf(e);c>=0&&(e.setParent(null,r),a.splice(c,1),o.setChildren(a,r))}}let l=this.children;if(l==null?(l=[],l.push(e)):l.splice(i,0,e),e.setParent(this,r),this.setChildren(l,r),s&&this.model){const a=this.model.getIncomingEdges(this),c=this.model.getOutgoingEdges(this);a&&a.forEach(u=>u.updateParent(r)),c&&c.forEach(u=>u.updateParent(r))}this.model&&this.model.addCell(e,r)}return this}removeFromParent(e={}){const t=this.getParent();if(t!=null){const r=t.getChildIndex(this);t.removeChildAt(r,e)}return this}removeChild(e,t={}){const r=this.getChildIndex(e);return this.removeChildAt(r,t)}removeChildAt(e,t={}){const r=this.getChildAt(e);return this.children!=null&&r!=null&&(this.unembed(r,t),r.remove(t)),r}remove(e={}){return this.batchUpdate("remove",()=>{const t=this.getParent();t&&t.removeChild(this,e),e.deep!==!1&&this.eachChild(r=>r.remove(e)),this.model&&this.model.removeCell(this,e)}),this}transition(e,t,r={},o="/"){return this.animation.start(e,t,r,o)}stopTransition(e,t,r="/"){return this.animation.stop(e,t,r),this}getTransitions(){return this.animation.get()}translate(e,t,r){return this}scale(e,t,r,o){return this}addTools(e,t,r){const o=Array.isArray(e)?e:[e],s=typeof t=="string"?t:null,i=typeof t=="object"?t:typeof r=="object"?r:{};if(i.reset)return this.setTools({name:s,items:o,local:i.local},i);let l=an(this.getTools());if(l==null||s==null||l.name===s)return l==null&&(l={}),l.items||(l.items=[]),l.name=s,l.items=[...l.items,...o],this.setTools(Object.assign({},l),i)}setTools(e,t={}){return e==null?this.removeTools():this.store.set("tools",At.normalizeTools(e),t),this}getTools(){return this.store.get("tools")}removeTools(e={}){return this.store.remove("tools",e),this}hasTools(e){const t=this.getTools();return t==null?!1:e==null?!0:t.name===e}hasTool(e){const t=this.getTools();return t==null?!1:t.items.some(r=>typeof r=="string"?r===e:r.name===e)}removeTool(e,t={}){const r=an(this.getTools());if(r){let o=!1;const s=r.items.slice(),i=l=>{s.splice(l,1),o=!0};if(typeof e=="number")i(e);else for(let l=s.length-1;l>=0;l-=1){const a=s[l];(typeof a=="string"?a===e:a.name===e)&&i(l)}o&&(r.items=s,this.setTools(r,t))}return this}getBBox(e){return new $e}getConnectionPoint(e,t){return new K}toJSON(e={}){const t=Object.assign({},this.store.get()),r=Object.prototype.toString,o=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!t.shape){const p=this.constructor;throw new Error(`Unable to serialize ${o} missing "shape" prop, check the ${o} "${p.name||r.call(p)}"`)}const s=this.constructor,i=e.diff===!0,l=t.attrs||{},a=s.getDefaults(!0),c=i?this.preprocess(a,!0):a,u=c.attrs||{},d={};Object.entries(t).forEach(([p,g])=>{if(g!=null&&!Array.isArray(g)&&typeof g=="object"&&!Cs(g))throw new Error(`Can only serialize ${o} with plain-object props, but got a "${r.call(g)}" type of key "${p}" on ${o} "${this.id}"`);if(p!=="attrs"&&p!=="shape"&&i){const m=c[p];Mr(g,m)&&delete t[p]}}),Object.keys(l).forEach(p=>{const g=l[p],m=u[p];Object.keys(g).forEach(v=>{const w=g[v],b=m?m[v]:null;w!=null&&typeof w=="object"&&!Array.isArray(w)?Object.keys(w).forEach(y=>{const x=w[y];if(m==null||b==null||!dn(b)||!Mr(b[y],x)){d[p]==null&&(d[p]={}),d[p][v]==null&&(d[p][v]={});const E=d[p][v];E[y]=x}}):(m==null||!Mr(b,w))&&(d[p]==null&&(d[p]={}),d[p][v]=w)})});const f=Object.assign(Object.assign({},t),{attrs:zT(d)?void 0:d});f.attrs==null&&delete f.attrs;const h=f;return h.angle===0&&delete h.angle,an(h)}clone(e={}){if(!e.deep){const r=Object.assign({},this.store.get());e.keepId||delete r.id,delete r.parent,delete r.children;const o=this.constructor;return new o(r)}return At.deepClone(this)[this.id]}findView(e){return e.findViewByCell(this)}startBatch(e,t={},r=this.model){return this.notify("batch:start",{name:e,data:t,cell:this}),r&&r.startBatch(e,Object.assign(Object.assign({},t),{cell:this})),this}stopBatch(e,t={},r=this.model){return r&&r.stopBatch(e,Object.assign(Object.assign({},t),{cell:this})),this.notify("batch:stop",{name:e,data:t,cell:this}),this}batchUpdate(e,t,r){const o=this.model;this.startBatch(e,r,o);const s=t();return this.stopBatch(e,r,o),s}dispose(){this.removeFromParent(),this.store.dispose()}}At.defaults={};At.attrHooks={};At.propHooks=[];Cue([Gr.dispose()],At.prototype,"dispose",null);(function(n){function e(t){return typeof t=="string"?{items:[t]}:Array.isArray(t)?{items:t}:t.items?t:{items:[t]}}n.normalizeTools=e})(At||(At={}));(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.isNode=="function"&&typeof o.isEdge=="function"&&typeof o.prop=="function"&&typeof o.attr=="function"}n.isCell=e})(At||(At={}));(function(n){function e(...s){const i=s.filter(a=>a!=null).map(a=>a.getAncestors()).sort((a,c)=>a.length-c.length);return i.shift().find(a=>i.every(c=>c.includes(a)))||null}n.getCommonAncestor=e;function t(s,i={}){let l=null;for(let a=0,c=s.length;a(a[c.id]=c.clone(),a),{});return i.forEach(a=>{const c=l[a.id];if(c.isEdge()){const f=c.getSourceCellId(),h=c.getTargetCellId();f&&l[f]&&c.setSource(Object.assign(Object.assign({},c.getSource()),{cell:l[f].id})),h&&l[h]&&c.setTarget(Object.assign(Object.assign({},c.getTarget()),{cell:l[h].id}))}const u=a.getParent();u&&l[u.id]&&c.setParent(l[u.id]);const d=a.getChildren();if(d&&d.length){const f=d.reduce((h,p)=>(l[p.id]&&h.push(l[p.id]),h),[]);f.length>0&&c.setChildren(f)}}),l}n.cloneCells=o})(At||(At={}));(function(n){n.config({propHooks(e){var{tools:t}=e,r=tN(e,["tools"]);return t&&(r.tools=n.normalizeTools(t)),r}})})(At||(At={}));var zc;(function(n){let e,t;function r(i,l){return l?e!=null&&e.exist(i):t!=null&&t.exist(i)}n.exist=r;function o(i){e=i}n.setEdgeRegistry=o;function s(i){t=i}n.setNodeRegistry=s})(zc||(zc={}));class xue{constructor(e){this.ports=[],this.groups={},this.init(an(e))}getPorts(){return this.ports}getGroup(e){return e!=null?this.groups[e]:null}getPortsByGroup(e){return this.ports.filter(t=>t.group===e||t.group==null&&e==null)}getPortsLayoutByGroup(e,t){const r=this.getPortsByGroup(e),o=e?this.getGroup(e):null,s=o?o.position:null,i=s?s.name:null;let l;if(i!=null){const d=oa.registry.get(i);if(d==null)return oa.registry.onNotFound(i);l=d}else l=oa.presets.left;const a=r.map(d=>d&&d.position&&d.position.args||{}),c=s&&s.args||{};return l(a,t,c).map((d,f)=>{const h=r[f];return{portLayout:d,portId:h.id,portSize:h.size,portAttrs:h.attrs,labelSize:h.label.size,labelLayout:this.getPortLabelLayout(h,K.create(d.position),t)}})}init(e){const{groups:t,items:r}=e;t!=null&&Object.keys(t).forEach(o=>{this.groups[o]=this.parseGroup(t[o])}),Array.isArray(r)&&r.forEach(o=>{this.ports.push(this.parsePort(o))})}parseGroup(e){return Object.assign(Object.assign({},e),{label:this.getLabel(e,!0),position:this.getPortPosition(e.position,!0)})}parsePort(e){const t=Object.assign({},e),r=this.getGroup(e.group)||{};return t.markup=t.markup||r.markup,t.attrs=un({},r.attrs,t.attrs),t.position=this.createPosition(r,t),t.label=un({},r.label,this.getLabel(t)),t.zIndex=this.getZIndex(r,t),t.size=Object.assign(Object.assign({},r.size),t.size),t}getZIndex(e,t){return typeof t.zIndex=="number"?t.zIndex:typeof e.zIndex=="number"||e.zIndex==="auto"?e.zIndex:"auto"}createPosition(e,t){return un({name:"left",args:{}},e.position,{args:t.args})}getPortPosition(e,t=!1){if(e==null){if(t)return{name:"left",args:{}}}else{if(typeof e=="string")return{name:e,args:{}};if(Array.isArray(e))return{name:"absolute",args:{x:e[0],y:e[1]}};if(typeof e=="object")return e}return{args:{}}}getPortLabelPosition(e,t=!1){if(e==null){if(t)return{name:"left",args:{}}}else{if(typeof e=="string")return{name:e,args:{}};if(typeof e=="object")return e}return{args:{}}}getLabel(e,t=!1){const r=e.label||{};return r.position=this.getPortLabelPosition(r.position,t),r}getPortLabelLayout(e,t,r){const o=e.label.position.name||"left",s=e.label.position.args||{},i=Lc.registry.get(o)||Lc.presets.left;return i?i(t,r,s):null}}var Lg=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var l;((l=r.exclude)===null||l===void 0?void 0:l.includes(i))||i.translate(e,t,r)})):(this.startBatch("translate",r),this.store.set("position",s,r),this.eachChild(i=>{var l;((l=r.exclude)===null||l===void 0?void 0:l.includes(i))||i.translate(e,t,r)}),this.stopBatch("translate",r)),this}angle(e,t){return e==null?this.getAngle():this.rotate(e,t)}getAngle(){return this.store.get("angle",0)}rotate(e,t={}){const r=this.getAngle();if(t.center){const o=this.getSize(),s=this.getPosition(),i=this.getBBox().getCenter();i.rotate(r-e,t.center);const l=i.x-o.width/2-s.x,a=i.y-o.height/2-s.y;this.startBatch("rotate",{angle:e,options:t}),this.setPosition(s.x+l,s.y+a,t),this.rotate(e,Object.assign(Object.assign({},t),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",t.absolute?e:(r+e)%360,t);return this}getBBox(e={}){if(e.deep){const t=this.getDescendants({deep:!0,breadthFirst:!0});return t.push(this),At.getCellsBBox(t)}return $e.fromPositionAndSize(this.getPosition(),this.getSize())}getConnectionPoint(e,t){const r=this.getBBox(),o=r.getCenter(),s=e.getTerminal(t);if(s==null)return o;const i=s.port;if(!i||!this.hasPort(i))return o;const l=this.getPort(i);if(!l||!l.group)return o;const c=this.getPortsPosition(l.group)[i].position,u=K.create(c).translate(r.getOrigin()),d=this.getAngle();return d&&u.rotate(-d,o),u}fit(e={}){const r=(this.getChildren()||[]).filter(c=>c.isNode());if(r.length===0)return this;this.startBatch("fit-embeds",e),e.deep&&r.forEach(c=>c.fit(e));let{x:o,y:s,width:i,height:l}=At.getCellsBBox(r);const a=ga(e.padding);return o-=a.left,s-=a.top,i+=a.left+a.right,l+=a.bottom+a.top,this.store.set({position:{x:o,y:s},size:{width:i,height:l}},e),this.stopBatch("fit-embeds"),this}get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(e){this.setPortContainerMarkup(e)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||Jt.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,t={}){return this.store.set("portContainerMarkup",Jt.clone(e),t),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||Jt.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,t={}){return this.store.set("portMarkup",Jt.clone(e),t),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||Jt.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,t={}){return this.store.set("portLabelMarkup",Jt.clone(e),t),this}get ports(){const e=this.store.get("ports",{items:[]});return e.items==null&&(e.items=[]),e}getPorts(){return an(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter(t=>t.group===e)}getPort(e){return an(this.ports.items.find(t=>t.id&&t.id===e))}getPortAt(e){return this.ports.items[e]||null}hasPorts(){return this.ports.items.length>0}hasPort(e){return this.getPortIndex(e)!==-1}getPortIndex(e){const t=typeof e=="string"?e:e.id;return t!=null?this.ports.items.findIndex(r=>r.id===t):-1}getPortsPosition(e){const t=this.getSize();return this.port.getPortsLayoutByGroup(e,new $e(0,0,t.width,t.height)).reduce((o,s)=>{const i=s.portLayout;return o[s.portId]={position:Object.assign({},i.position),angle:i.angle||0},o},{})}getPortProp(e,t){return this.getPropByPath(this.prefixPortPath(e,t))}setPortProp(e,t,r,o){if(typeof t=="string"||Array.isArray(t)){const l=this.prefixPortPath(e,t),a=r;return this.setPropByPath(l,a,o)}const s=this.prefixPortPath(e),i=t;return this.setPropByPath(s,i,r)}removePortProp(e,t,r){return typeof t=="string"||Array.isArray(t)?this.removePropByPath(this.prefixPortPath(e,t),r):this.removePropByPath(this.prefixPortPath(e),t)}portProp(e,t,r,o){return t==null?this.getPortProp(e):typeof t=="string"||Array.isArray(t)?arguments.length===2?this.getPortProp(e,t):r==null?this.removePortProp(e,t,o):this.setPortProp(e,t,r,o):this.setPortProp(e,t,r)}prefixPortPath(e,t){const r=this.getPortIndex(e);if(r===-1)throw new Error(`Unable to find port with id: "${e}"`);return t==null||t===""?["ports","items",`${r}`]:Array.isArray(t)?["ports","items",`${r}`,...t]:`ports/items/${r}/${t}`}addPort(e,t){const r=[...this.ports.items];return r.push(e),this.setPropByPath("ports/items",r,t),this}addPorts(e,t){return this.setPropByPath("ports/items",[...this.ports.items,...e],t),this}insertPort(e,t,r){const o=[...this.ports.items];return o.splice(e,0,t),this.setPropByPath("ports/items",o,r),this}removePort(e,t={}){return this.removePortAt(this.getPortIndex(e),t)}removePortAt(e,t={}){if(e>=0){const r=[...this.ports.items];r.splice(e,1),t.rewrite=!0,this.setPropByPath("ports/items",r,t)}return this}removePorts(e,t){let r;if(Array.isArray(e)){if(r=t||{},e.length){r.rewrite=!0;const s=[...this.ports.items].filter(i=>!e.some(l=>{const a=typeof l=="string"?l:l.id;return i.id===a}));this.setPropByPath("ports/items",s,r)}}else r=e||{},r.rewrite=!0,this.setPropByPath("ports/items",[],r);return this}getParsedPorts(){return this.port.getPorts()}getParsedGroups(){return this.port.groups}getPortsLayoutByGroup(e,t){return this.port.getPortsLayoutByGroup(e,t)}initPorts(){this.updatePortData(),this.on("change:ports",()=>{this.processRemovedPort(),this.updatePortData()})}processRemovedPort(){const e=this.ports,t={};e.items.forEach(i=>{i.id&&(t[i.id]=!0)});const r={};(this.store.getPrevious("ports")||{items:[]}).items.forEach(i=>{i.id&&!t[i.id]&&(r[i.id]=!0)});const s=this.model;s&&!zT(r)&&(s.getConnectedEdges(this,{incoming:!0}).forEach(a=>{const c=a.getTargetPortId();c&&r[c]&&a.remove()}),s.getConnectedEdges(this,{outgoing:!0}).forEach(a=>{const c=a.getSourcePortId();c&&r[c]&&a.remove()}))}validatePorts(){const e={},t=[];return this.ports.items.forEach(r=>{typeof r!="object"&&t.push(`Invalid port ${r}.`),r.id==null&&(r.id=this.generatePortId()),e[r.id]&&t.push("Duplicitied port id."),e[r.id]=!0}),t}generatePortId(){return ap()}updatePortData(){const e=this.validatePorts();if(e.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(e.join(" "));const t=this.port?this.port.getPorts():null;this.port=new xue(this.ports);const r=this.port.getPorts(),o=t?r.filter(i=>t.find(l=>l.id===i.id)?null:i):[...r],s=t?t.filter(i=>r.find(l=>l.id===i.id)?null:i):[];o.length>0&&this.notify("ports:added",{added:o,cell:this,node:this}),s.length>0&&this.notify("ports:removed",{removed:s,cell:this,node:this})}};yn.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}};(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.isNode=="function"&&typeof o.isEdge=="function"&&typeof o.prop=="function"&&typeof o.attr=="function"&&typeof o.size=="function"&&typeof o.position=="function"}n.isNode=e})(yn||(yn={}));(function(n){n.config({propHooks(e){var{ports:t}=e,r=Lg(e,["ports"]);return t&&(r.ports=Array.isArray(t)?{items:t}:t),r}})})(yn||(yn={}));(function(n){n.registry=bn.create({type:"node",process(e,t){if(zc.exist(e,!0))throw new Error(`Node with name '${e}' was registered by anthor Edge`);if(typeof t=="function")return t.config({shape:e}),t;let r=n;const{inherit:o}=t,s=Lg(t,["inherit"]);if(o)if(typeof o=="string"){const l=this.get(o);l==null?this.onNotFound(o,"inherited"):r=l}else r=o;s.constructorName==null&&(s.constructorName=e);const i=r.define.call(r,s);return i.config({shape:e}),i}}),zc.setNodeRegistry(n.registry)})(yn||(yn={}));(function(n){let e=0;function t(s){return s?y0(s):(e+=1,`CustomNode${e}`)}function r(s){const{constructorName:i,overwrite:l}=s,a=Lg(s,["constructorName","overwrite"]),c=v0(t(i||a.shape),this);return c.config(a),a.shape&&n.registry.register(a.shape,c,l),c}n.define=r;function o(s){const i=s.shape||"rect",l=n.registry.get(i);return l?new l(s):n.registry.onNotFound(i)}n.create=o})(yn||(yn={}));var Rg=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);otypeof p=="string"||typeof p=="number";if(r!=null)if(At.isCell(r))f.source={cell:r.id};else if(h(r))f.source={cell:r};else if(K.isPoint(r))f.source=r.toJSON();else if(Array.isArray(r))f.source={x:r[0],y:r[1]};else{const p=r.cell;At.isCell(p)?f.source=Object.assign(Object.assign({},r),{cell:p.id}):f.source=r}if(o!=null||s!=null){let p=f.source;if(o!=null){const g=h(o)?o:o.id;p?p.cell=g:p=f.source={cell:g}}s!=null&&p&&(p.port=s)}else i!=null&&(f.source=K.create(i).toJSON());if(l!=null)if(At.isCell(l))f.target={cell:l.id};else if(h(l))f.target={cell:l};else if(K.isPoint(l))f.target=l.toJSON();else if(Array.isArray(l))f.target={x:l[0],y:l[1]};else{const p=l.cell;At.isCell(p)?f.target=Object.assign(Object.assign({},l),{cell:p.id}):f.target=l}if(a!=null||c!=null){let p=f.target;if(a!=null){const g=h(a)?a:a.id;p?p.cell=g:p=f.target={cell:g}}c!=null&&p&&(p.port=c)}else u!=null&&(f.target=K.create(u).toJSON());return super.preprocess(f,t)}setup(){super.setup(),this.on("change:labels",e=>this.onLabelsChanged(e)),this.on("change:vertices",e=>this.onVertexsChanged(e))}isEdge(){return!0}disconnect(e={}){return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},e),this}get source(){return this.getSource()}set source(e){this.setSource(e)}getSource(){return this.getTerminal("source")}getSourceCellId(){return this.source.cell}getSourcePortId(){return this.source.port}setSource(e,t,r={}){return this.setTerminal("source",e,t,r)}get target(){return this.getTarget()}set target(e){this.setTarget(e)}getTarget(){return this.getTerminal("target")}getTargetCellId(){return this.target.cell}getTargetPortId(){return this.target.port}setTarget(e,t,r={}){return this.setTerminal("target",e,t,r)}getTerminal(e){return Object.assign({},this.store.get(e))}setTerminal(e,t,r,o={}){if(At.isCell(t))return this.store.set(e,un({},r,{cell:t.id}),o),this;const s=t;return K.isPoint(t)||s.x!=null&&s.y!=null?(this.store.set(e,un({},r,{x:s.x,y:s.y}),o),this):(this.store.set(e,an(t),o),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const t=this[e];if(K.isPointLike(t))return K.create(t);const r=this.getTerminalCell(e);return r?r.getConnectionPoint(this,e):new K}getSourceCell(){return this.getTerminalCell("source")}getTargetCell(){return this.getTerminalCell("target")}getTerminalCell(e){if(this.model){const t=e==="source"?this.getSourceCellId():this.getTargetCellId();if(t)return this.model.getCell(t)}return null}getSourceNode(){return this.getTerminalNode("source")}getTargetNode(){return this.getTerminalNode("target")}getTerminalNode(e){let t=this;const r={};for(;t&&t.isEdge();){if(r[t.id])return null;r[t.id]=!0,t=t.getTerminalCell(e)}return t&&t.isNode()?t:null}get router(){return this.getRouter()}set router(e){e==null?this.removeRouter():this.setRouter(e)}getRouter(){return this.store.get("router")}setRouter(e,t,r){return typeof e=="object"?this.store.set("router",e,t):this.store.set("router",{name:e,args:t},r),this}removeRouter(e={}){return this.store.remove("router",e),this}get connector(){return this.getConnector()}set connector(e){e==null?this.removeConnector():this.setConnector(e)}getConnector(){return this.store.get("connector")}setConnector(e,t,r){return typeof e=="object"?this.store.set("connector",e,t):this.store.set("connector",{name:e,args:t},r),this}removeConnector(e={}){return this.store.remove("connector",e)}getDefaultLabel(){const e=this.constructor,t=this.store.get("defaultLabel")||e.defaultLabel||{};return an(t)}get labels(){return this.getLabels()}set labels(e){this.setLabels(e)}getLabels(){return[...this.store.get("labels",[])].map(e=>this.parseLabel(e))}setLabels(e,t={}){return this.store.set("labels",Array.isArray(e)?e:[e],t),this}insertLabel(e,t,r={}){const o=this.getLabels(),s=o.length;let i=t!=null&&Number.isFinite(t)?t:s;return i<0&&(i=s+i+1),o.splice(i,0,this.parseLabel(e)),this.setLabels(o,r)}appendLabel(e,t={}){return this.insertLabel(e,-1,t)}getLabelAt(e){const t=this.getLabels();return e!=null&&Number.isFinite(e)?this.parseLabel(t[e]):null}setLabelAt(e,t,r={}){if(e!=null&&Number.isFinite(e)){const o=this.getLabels();o[e]=this.parseLabel(t),this.setLabels(o,r)}return this}removeLabelAt(e,t={}){const r=this.getLabels(),o=e!=null&&Number.isFinite(e)?e:-1,s=r.splice(o,1);return this.setLabels(r,t),s.length?s[0]:null}parseLabel(e){return typeof e=="string"?this.constructor.parseStringLabel(e):e}onLabelsChanged({previous:e,current:t}){const r=e&&t?t.filter(s=>e.find(i=>s===i||Mr(s,i))?null:s):t?[...t]:[],o=e&&t?e.filter(s=>t.find(i=>s===i||Mr(s,i))?null:s):e?[...e]:[];r.length>0&&this.notify("labels:added",{added:r,cell:this,edge:this}),o.length>0&&this.notify("labels:removed",{removed:o,cell:this,edge:this})}get vertices(){return this.getVertices()}set vertices(e){this.setVertices(e)}getVertices(){return[...this.store.get("vertices",[])]}setVertices(e,t={}){const r=Array.isArray(e)?e:[e];return this.store.set("vertices",r.map(o=>K.toJSON(o)),t),this}insertVertex(e,t,r={}){const o=this.getVertices(),s=o.length;let i=t!=null&&Number.isFinite(t)?t:s;return i<0&&(i=s+i+1),o.splice(i,0,K.toJSON(e)),this.setVertices(o,r)}appendVertex(e,t={}){return this.insertVertex(e,-1,t)}getVertexAt(e){return e!=null&&Number.isFinite(e)?this.getVertices()[e]:null}setVertexAt(e,t,r={}){if(e!=null&&Number.isFinite(e)){const o=this.getVertices();o[e]=t,this.setVertices(o,r)}return this}removeVertexAt(e,t={}){const r=this.getVertices(),o=e!=null&&Number.isFinite(e)?e:-1;return r.splice(o,1),this.setVertices(r,t)}onVertexsChanged({previous:e,current:t}){const r=e&&t?t.filter(s=>e.find(i=>K.equals(s,i))?null:s):t?[...t]:[],o=e&&t?e.filter(s=>t.find(i=>K.equals(s,i))?null:s):e?[...e]:[];r.length>0&&this.notify("vertexs:added",{added:r,cell:this,edge:this}),o.length>0&&this.notify("vertexs:removed",{removed:o,cell:this,edge:this})}getDefaultMarkup(){return this.store.get("defaultMarkup")||Jt.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}translate(e,t,r={}){return r.translateBy=r.translateBy||this.id,r.tx=e,r.ty=t,this.applyToPoints(o=>({x:(o.x||0)+e,y:(o.y||0)+t}),r)}scale(e,t,r,o={}){return this.applyToPoints(s=>K.create(s).scale(e,t,r).toJSON(),o)}applyToPoints(e,t={}){const r={},o=this.getSource(),s=this.getTarget();K.isPointLike(o)&&(r.source=e(o)),K.isPointLike(s)&&(r.target=e(s));const i=this.getVertices();return i.length>0&&(r.vertices=i.map(e)),this.store.set(r,t),this}getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const e=[this.getSourcePoint(),...this.getVertices().map(t=>K.create(t)),this.getTargetPoint()];return new gn(e)}updateParent(e){let t=null;const r=this.getSourceCell(),o=this.getTargetCell(),s=this.getParent();return r&&o&&(r===o||r.isDescendantOf(o)?t=o:o.isDescendantOf(r)?t=r:t=At.getCommonAncestor(r,o)),s&&t&&t.id!==s.id&&s.unembed(this,e),t&&(!s||s.id!==t.id)&&t.embed(this,e),t}hasLoop(e={}){const t=this.getSource(),r=this.getTarget(),o=t.cell,s=r.cell;if(!o||!s)return!1;let i=o===s;if(!i&&e.deep&&this._model){const l=this.getSourceCell(),a=this.getTargetCell();l&&a&&(i=l.isAncestorOf(a,e)||a.isAncestorOf(l,e))}return i}getFragmentAncestor(){const e=[this,this.getSourceNode(),this.getTargetNode()].filter(t=>t!=null);return this.getCommonAncestor(...e)}isFragmentDescendantOf(e){const t=this.getFragmentAncestor();return!!t&&(t.id===e.id||t.isDescendantOf(e))}};hn.defaults={};(function(n){function e(t,r){const o=t,s=r;return o.cell===s.cell?o.port===s.port||o.port==null&&s.port==null:!1}n.equalTerminals=e})(hn||(hn={}));(function(n){n.defaultLabel={markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{text:{fill:"#000",fontSize:14,textAnchor:"middle",textVerticalAnchor:"middle",pointerEvents:"none"},rect:{ref:"label",fill:"#fff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}};function e(t){return{attrs:{label:{text:t}}}}n.parseStringLabel=e})(hn||(hn={}));(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.isNode=="function"&&typeof o.isEdge=="function"&&typeof o.prop=="function"&&typeof o.attr=="function"&&typeof o.disconnect=="function"&&typeof o.getSource=="function"&&typeof o.getTarget=="function"}n.isEdge=e})(hn||(hn={}));(function(n){n.registry=bn.create({type:"edge",process(e,t){if(zc.exist(e,!1))throw new Error(`Edge with name '${e}' was registered by anthor Node`);if(typeof t=="function")return t.config({shape:e}),t;let r=n;const{inherit:o="edge"}=t,s=Rg(t,["inherit"]);if(typeof o=="string"){const l=this.get(o||"edge");l==null&&o?this.onNotFound(o,"inherited"):r=l}else r=o;s.constructorName==null&&(s.constructorName=e);const i=r.define.call(r,s);return i.config({shape:e}),i}}),zc.setEdgeRegistry(n.registry)})(hn||(hn={}));(function(n){let e=0;function t(s){return s?y0(s):(e+=1,`CustomEdge${e}`)}function r(s){const{constructorName:i,overwrite:l}=s,a=Rg(s,["constructorName","overwrite"]),c=v0(t(i||a.shape),this);return c.config(a),a.shape&&n.registry.register(a.shape,c,l),c}n.define=r;function o(s){const i=s.shape||"edge",l=n.registry.get(i);return l?new l(s):n.registry.onNotFound(i)}n.create=o})(hn||(hn={}));(function(n){const e="basic.edge";n.config({shape:e,propHooks(t){const{label:r,vertices:o}=t,s=Rg(t,["label","vertices"]);if(r){s.labels==null&&(s.labels=[]);const i=typeof r=="string"?n.parseStringLabel(r):r;s.labels.push(i)}return o&&Array.isArray(o)&&(s.vertices=o.map(i=>K.create(i).toJSON())),s}}),n.registry.register(e,n)})(hn||(hn={}));var Sue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class _b extends Gr{constructor(e,t={}){super(),this.length=0,this.comparator=t.comparator||"zIndex",this.clean(),e&&this.reset(e,{silent:!0})}toJSON(){return this.cells.map(e=>e.toJSON())}add(e,t,r){let o,s;typeof t=="number"?(o=t,s=Object.assign({merge:!1},r)):(o=this.length,s=Object.assign({merge:!1},t)),o>this.length&&(o=this.length),o<0&&(o+=this.length+1);const i=Array.isArray(e)?e:[e],l=this.comparator&&typeof t!="number"&&s.sort!==!1,a=this.comparator||null;let c=!1;const u=[],d=[];return i.forEach(f=>{const h=this.get(f);h?s.merge&&!f.isSameStore(h)&&(h.setProp(f.getProp(),r),d.push(h),l&&!c&&(a==null||typeof a=="function"?c=h.hasChanged():typeof a=="string"?c=h.hasChanged(a):c=a.some(p=>h.hasChanged(p)))):(u.push(f),this.reference(f))}),u.length&&(l&&(c=!0),this.cells.splice(o,0,...u),this.length=this.cells.length),c&&this.sort({silent:!0}),s.silent||(u.forEach((f,h)=>{const p={cell:f,index:o+h,options:s};this.trigger("added",p),s.dryrun||f.notify("added",Object.assign({},p))}),c&&this.trigger("sorted"),(u.length||d.length)&&this.trigger("updated",{added:u,merged:d,removed:[],options:s})),this}remove(e,t={}){const r=Array.isArray(e)?e:[e],o=this.removeCells(r,t);return!t.silent&&o.length>0&&this.trigger("updated",{options:t,removed:o,added:[],merged:[]}),Array.isArray(e)?o:o[0]}removeCells(e,t){const r=[];for(let o=0;othis.unreference(o)),this.clean(),this.add(e,Object.assign({silent:!0},t)),!t.silent){const o=this.cells.slice();this.trigger("reseted",{options:t,previous:r,current:o});const s=[],i=[];o.forEach(l=>{r.some(c=>c.id===l.id)||s.push(l)}),r.forEach(l=>{o.some(c=>c.id===l.id)||i.push(l)}),this.trigger("updated",{options:t,added:s,removed:i,merged:[]})}return this}push(e,t){return this.add(e,this.length,t)}pop(e){const t=this.at(this.length-1);return this.remove(t,e)}unshift(e,t){return this.add(e,0,t)}shift(e){const t=this.at(0);return this.remove(t,e)}get(e){if(e==null)return null;const t=typeof e=="string"||typeof e=="number"?e:e.id;return this.map[t]||null}has(e){return this.get(e)!=null}at(e){return e<0&&(e+=this.length),this.cells[e]||null}first(){return this.at(0)}last(){return this.at(-1)}indexOf(e){return this.cells.indexOf(e)}toArray(){return this.cells.slice()}sort(e={}){return this.comparator!=null&&(this.cells=O6(this.cells,this.comparator),e.silent||this.trigger("sorted")),this}clone(){const e=this.constructor;return new e(this.cells.slice(),{comparator:this.comparator})}reference(e){this.map[e.id]=e,e.on("*",this.notifyCellEvent,this)}unreference(e){e.off("*",this.notifyCellEvent,this),delete this.map[e.id]}notifyCellEvent(e,t){const r=t.cell;this.trigger(`cell:${e}`,t),r&&(r.isNode()?this.trigger(`node:${e}`,Object.assign(Object.assign({},t),{node:r})):r.isEdge()&&this.trigger(`edge:${e}`,Object.assign(Object.assign({},t),{edge:r})))}clean(){this.length=0,this.cells=[],this.map={}}dispose(){this.reset([])}}Sue([_b.dispose()],_b.prototype,"dispose",null);var Eue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class Fo extends Gr{get[Symbol.toStringTag](){return Fo.toStringTag}constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new _b(e),this.setup()}notify(e,t){this.trigger(e,t);const r=this.graph;return r&&(e==="sorted"||e==="reseted"||e==="updated"?r.trigger(`model:${e}`,t):r.trigger(e,t)),this}setup(){const e=this.collection;e.on("sorted",()=>this.notify("sorted",null)),e.on("updated",t=>this.notify("updated",t)),e.on("cell:change:zIndex",()=>this.sortOnChangeZ()),e.on("added",({cell:t})=>{this.onCellAdded(t)}),e.on("removed",t=>{const r=t.cell;this.onCellRemoved(r,t.options),this.notify("cell:removed",t),r.isNode()?this.notify("node:removed",Object.assign(Object.assign({},t),{node:r})):r.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},t),{edge:r}))}),e.on("reseted",t=>{this.onReset(t.current),this.notify("reseted",t)}),e.on("edge:change:source",({edge:t})=>this.onEdgeTerminalChanged(t,"source")),e.on("edge:change:target",({edge:t})=>{this.onEdgeTerminalChanged(t,"target")})}sortOnChangeZ(){this.collection.sort()}onCellAdded(e){const t=e.id;e.isEdge()?(e.updateParent(),this.edges[t]=!0,this.onEdgeTerminalChanged(e,"source"),this.onEdgeTerminalChanged(e,"target")):this.nodes[t]=!0}onCellRemoved(e,t){const r=e.id;if(e.isEdge()){delete this.edges[r];const o=e.getSource(),s=e.getTarget();if(o&&o.cell){const i=this.outgoings[o.cell],l=i?i.indexOf(r):-1;l>=0&&(i.splice(l,1),i.length===0&&delete this.outgoings[o.cell])}if(s&&s.cell){const i=this.incomings[s.cell],l=i?i.indexOf(r):-1;l>=0&&(i.splice(l,1),i.length===0&&delete this.incomings[s.cell])}}else delete this.nodes[r];t.clear||(t.disconnectEdges?this.disconnectConnectedEdges(e,t):this.removeConnectedEdges(e,t)),e.model===this&&(e.model=null)}onReset(e){this.nodes={},this.edges={},this.outgoings={},this.incomings={},e.forEach(t=>this.onCellAdded(t))}onEdgeTerminalChanged(e,t){const r=t==="source"?this.outgoings:this.incomings,o=e.previous(t);if(o&&o.cell){const i=At.isCell(o.cell)?o.cell.id:o.cell,l=r[i],a=l?l.indexOf(e.id):-1;a>=0&&(l.splice(a,1),l.length===0&&delete r[i])}const s=e.getTerminal(t);if(s&&s.cell){const i=At.isCell(s.cell)?s.cell.id:s.cell,l=r[i]||[];l.indexOf(e.id)===-1&&l.push(e.id),r[i]=l}}prepareCell(e,t){return!e.model&&(!t||!t.dryrun)&&(e.model=this),e.zIndex==null&&e.setZIndex(this.getMaxZIndex()+1,{silent:!0}),e}resetCells(e,t={}){return e.map(r=>this.prepareCell(r,Object.assign(Object.assign({},t),{dryrun:!0}))),this.collection.reset(e,t),e.map(r=>this.prepareCell(r,{options:t})),this}clear(e={}){const t=this.getCells();if(t.length===0)return this;const r=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",()=>{const o=t.sort((s,i)=>{const l=s.isEdge()?1:2,a=i.isEdge()?1:2;return l-a});for(;o.length>0;){const s=o.shift();s&&s.remove(r)}},r),this}addNode(e,t={}){const r=yn.isNode(e)?e:this.createNode(e);return this.addCell(r,t),r}updateNode(e,t={}){const r=this.createNode(e),o=r.getProp();return r.dispose(),this.updateCell(o,t)}createNode(e){return yn.create(e)}addEdge(e,t={}){const r=hn.isEdge(e)?e:this.createEdge(e);return this.addCell(r,t),r}createEdge(e){return hn.create(e)}updateEdge(e,t={}){const r=this.createEdge(e),o=r.getProp();return r.dispose(),this.updateCell(o,t)}addCell(e,t={}){return Array.isArray(e)?this.addCells(e,t):(!this.collection.has(e)&&!this.addings.has(e)&&(this.addings.set(e,!0),this.collection.add(this.prepareCell(e,t),t),e.eachChild(r=>this.addCell(r,t)),this.addings.delete(e)),this)}addCells(e,t={}){const r=e.length;if(r===0)return this;const o=Object.assign(Object.assign({},t),{position:r-1,maxPosition:r-1});return this.startBatch("add",Object.assign(Object.assign({},o),{cells:e})),e.forEach(s=>{this.addCell(s,o),o.position-=1}),this.stopBatch("add",Object.assign(Object.assign({},o),{cells:e})),this}updateCell(e,t={}){const r=e.id&&this.getCell(e.id);return r?this.batchUpdate("update",()=>(Object.entries(e).forEach(([o,s])=>r.setProp(o,s,t)),!0),e):!1}removeCell(e,t={}){const r=typeof e=="string"?this.getCell(e):e;return r&&this.has(r)?this.collection.remove(r,t):null}updateCellId(e,t){if(e.id===t)return;this.startBatch("update",{id:t}),e.prop("id",t);const r=e.clone({keepId:!0});return this.addCell(r),this.getConnectedEdges(e).forEach(s=>{const i=s.getSourceCell(),l=s.getTargetCell();i===e&&s.setSource(Object.assign(Object.assign({},s.getSource()),{cell:t})),l===e&&s.setTarget(Object.assign(Object.assign({},s.getTarget()),{cell:t}))}),this.removeCell(e),this.stopBatch("update",{id:t}),r}removeCells(e,t={}){return e.length?this.batchUpdate("remove",()=>e.map(r=>this.removeCell(r,t))):[]}removeConnectedEdges(e,t={}){const r=this.getConnectedEdges(e);return r.forEach(o=>{o.remove(t)}),r}disconnectConnectedEdges(e,t={}){const r=typeof e=="string"?e:e.id;this.getConnectedEdges(e).forEach(o=>{const s=o.getSourceCellId(),i=o.getTargetCellId();s===r&&o.setSource({x:0,y:0},t),i===r&&o.setTarget({x:0,y:0},t)})}has(e){return this.collection.has(e)}total(){return this.collection.length}indexOf(e){return this.collection.indexOf(e)}getCell(e){return this.collection.get(e)}getCells(){return this.collection.toArray()}getFirstCell(){return this.collection.first()}getLastCell(){return this.collection.last()}getMinZIndex(){const e=this.collection.first();return e&&e.getZIndex()||0}getMaxZIndex(){const e=this.collection.last();return e&&e.getZIndex()||0}getCellsFromCache(e){return e?Object.keys(e).map(t=>this.getCell(t)).filter(t=>t!=null):[]}getNodes(){return this.getCellsFromCache(this.nodes)}getEdges(){return this.getCellsFromCache(this.edges)}getOutgoingEdges(e){const t=typeof e=="string"?e:e.id,r=this.outgoings[t];return r?r.map(o=>this.getCell(o)).filter(o=>o&&o.isEdge()):null}getIncomingEdges(e){const t=typeof e=="string"?e:e.id,r=this.incomings[t];return r?r.map(o=>this.getCell(o)).filter(o=>o&&o.isEdge()):null}getConnectedEdges(e,t={}){const r=[],o=typeof e=="string"?this.getCell(e):e;if(o==null)return r;const s={},i=t.indirect;let l=t.incoming,a=t.outgoing;l==null&&a==null&&(l=a=!0);const c=(u,d)=>{const f=d?this.getOutgoingEdges(u):this.getIncomingEdges(u);if(f!=null&&f.forEach(h=>{s[h.id]||(r.push(h),s[h.id]=!0,i&&(l&&c(h,!1),a&&c(h,!0)))}),i&&u.isEdge()){const h=d?u.getTargetCell():u.getSourceCell();h&&h.isEdge()&&(s[h.id]||(r.push(h),c(h,d)))}};if(a&&c(o,!0),l&&c(o,!1),t.deep){const u=o.getDescendants({deep:!0}),d={};u.forEach(h=>{h.isNode()&&(d[h.id]=!0)});const f=(h,p)=>{const g=p?this.getOutgoingEdges(h.id):this.getIncomingEdges(h.id);g!=null&&g.forEach(m=>{if(!s[m.id]){const v=m.getSourceCell(),w=m.getTargetCell();if(!t.enclosed&&v&&d[v.id]&&w&&d[w.id])return;r.push(m),s[m.id]=!0}})};u.forEach(h=>{h.isEdge()||(a&&f(h,!0),l&&f(h,!1))})}return r}isBoundary(e,t){const r=typeof e=="string"?this.getCell(e):e,o=t?this.getIncomingEdges(r):this.getOutgoingEdges(r);return o==null||o.length===0}getBoundaryNodes(e){const t=[];return Object.keys(this.nodes).forEach(r=>{if(this.isBoundary(r,e)){const o=this.getCell(r);o&&t.push(o)}}),t}getRoots(){return this.getBoundaryNodes(!0)}getLeafs(){return this.getBoundaryNodes(!1)}isRoot(e){return this.isBoundary(e,!0)}isLeaf(e){return this.isBoundary(e,!1)}getNeighbors(e,t={}){let r=t.incoming,o=t.outgoing;r==null&&o==null&&(r=o=!0);const i=this.getConnectedEdges(e,t).reduce((l,a)=>{const c=a.hasLoop(t),u=a.getSourceCell(),d=a.getTargetCell();return r&&u&&u.isNode()&&!l[u.id]&&(c||u!==e&&(!t.deep||!u.isDescendantOf(e)))&&(l[u.id]=u),o&&d&&d.isNode()&&!l[d.id]&&(c||d!==e&&(!t.deep||!d.isDescendantOf(e)))&&(l[d.id]=d),l},{});if(e.isEdge()){if(r){const l=e.getSourceCell();l&&l.isNode()&&!i[l.id]&&(i[l.id]=l)}if(o){const l=e.getTargetCell();l&&l.isNode()&&!i[l.id]&&(i[l.id]=l)}}return Object.keys(i).map(l=>i[l])}isNeighbor(e,t,r={}){let o=r.incoming,s=r.outgoing;return o==null&&s==null&&(o=s=!0),this.getConnectedEdges(e,r).some(i=>{const l=i.getSourceCell(),a=i.getTargetCell();return!!(o&&l&&l.id===t.id||s&&a&&a.id===t.id)})}getSuccessors(e,t={}){const r=[];return this.search(e,(o,s)=>{o!==e&&this.matchDistance(s,t.distance)&&r.push(o)},Object.assign(Object.assign({},t),{outgoing:!0})),r}isSuccessor(e,t,r={}){let o=!1;return this.search(e,(s,i)=>{if(s===t&&s!==e&&this.matchDistance(i,r.distance))return o=!0,!1},Object.assign(Object.assign({},r),{outgoing:!0})),o}getPredecessors(e,t={}){const r=[];return this.search(e,(o,s)=>{o!==e&&this.matchDistance(s,t.distance)&&r.push(o)},Object.assign(Object.assign({},t),{incoming:!0})),r}isPredecessor(e,t,r={}){let o=!1;return this.search(e,(s,i)=>{if(s===t&&s!==e&&this.matchDistance(i,r.distance))return o=!0,!1},Object.assign(Object.assign({},r),{incoming:!0})),o}matchDistance(e,t){return t==null?!0:typeof t=="function"?t(e):Array.isArray(t)&&t.includes(e)?!0:e===t}getCommonAncestor(...e){const t=[];return e.forEach(r=>{r&&(Array.isArray(r)?t.push(...r):t.push(r))}),At.getCommonAncestor(...t)}getSubGraph(e,t={}){const r=[],o={},s=[],i=[],l=a=>{o[a.id]||(r.push(a),o[a.id]=a,a.isEdge()&&i.push(a),a.isNode()&&s.push(a))};return e.forEach(a=>{l(a),t.deep&&a.getDescendants({deep:!0}).forEach(u=>l(u))}),i.forEach(a=>{const c=a.getSourceCell(),u=a.getTargetCell();c&&!o[c.id]&&(r.push(c),o[c.id]=c,c.isNode()&&s.push(c)),u&&!o[u.id]&&(r.push(u),o[u.id]=u,u.isNode()&&s.push(u))}),s.forEach(a=>{this.getConnectedEdges(a,t).forEach(u=>{const d=u.getSourceCell(),f=u.getTargetCell();!o[u.id]&&d&&o[d.id]&&f&&o[f.id]&&(r.push(u),o[u.id]=u)})}),r}cloneSubGraph(e,t={}){const r=this.getSubGraph(e,t);return this.cloneCells(r)}cloneCells(e){return At.cloneCells(e)}getNodesFromPoint(e,t){const r=typeof e=="number"?{x:e,y:t||0}:e;return this.getNodes().filter(o=>o.getBBox().containsPoint(r))}getNodesInArea(e,t,r,o,s){const i=typeof e=="number"?new $e(e,t,r,o):$e.create(e),l=typeof e=="number"?s:t,a=l&&l.strict;return this.getNodes().filter(c=>{const u=c.getBBox();return a?i.containsRect(u):i.isIntersectWithRect(u)})}getEdgesInArea(e,t,r,o,s){const i=typeof e=="number"?new $e(e,t,r,o):$e.create(e),l=typeof e=="number"?s:t,a=l&&l.strict;return this.getEdges().filter(c=>{const u=c.getBBox();return u.width===0?u.inflate(1,0):u.height===0&&u.inflate(0,1),a?i.containsRect(u):i.isIntersectWithRect(u)})}getNodesUnderNode(e,t={}){const r=e.getBBox();return(t.by==null||t.by==="bbox"?this.getNodesInArea(r):this.getNodesFromPoint(r[t.by])).filter(s=>e.id!==s.id&&!s.isDescendantOf(e))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(e,t={}){return At.getCellsBBox(e,t)}search(e,t,r={}){r.breadthFirst?this.breadthFirstSearch(e,t,r):this.depthFirstSearch(e,t,r)}breadthFirstSearch(e,t,r={}){const o=[],s={},i={};for(o.push(e),i[e.id]=0;o.length>0;){const l=o.shift();if(l==null||s[l.id]||(s[l.id]=!0,pt(t,this,l,i[l.id])===!1))continue;this.getNeighbors(l,r).forEach(c=>{i[c.id]=i[l.id]+1,o.push(c)})}}depthFirstSearch(e,t,r={}){const o=[],s={},i={};for(o.push(e),i[e.id]=0;o.length>0;){const l=o.pop();if(l==null||s[l.id]||(s[l.id]=!0,pt(t,this,l,i[l.id])===!1))continue;const a=this.getNeighbors(l,r),c=o.length;a.forEach(u=>{i[u.id]=i[l.id]+1,o.splice(c,0,u)})}}getShortestPath(e,t,r={}){const o={};this.getEdges().forEach(c=>{const u=c.getSourceCellId(),d=c.getTargetCellId();u&&d&&(o[u]||(o[u]=[]),o[d]||(o[d]=[]),o[u].push(d),r.directed||o[d].push(u))});const s=typeof e=="string"?e:e.id,i=wb.run(o,s,r.weight),l=[];let a=typeof t=="string"?t:t.id;for(i[a]&&l.push(a);a=i[a];)l.unshift(a);return l}translate(e,t,r){return this.getCells().filter(o=>!o.hasParent()).forEach(o=>o.translate(e,t,r)),this}resize(e,t,r){return this.resizeCells(e,t,this.getCells(),r)}resizeCells(e,t,r,o={}){const s=this.getCellsBBox(r);if(s){const i=Math.max(e/s.width,0),l=Math.max(t/s.height,0),a=s.getOrigin();r.forEach(c=>c.scale(i,l,a,o))}return this}toJSON(e={}){return Fo.toJSON(this.getCells(),e)}parseJSON(e){return Fo.fromJSON(e)}fromJSON(e,t={}){const r=this.parseJSON(e);return this.resetCells(r,t),this}startBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)+1,this.notify("batch:start",{name:e,data:t}),this}stopBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)-1,this.notify("batch:stop",{name:e,data:t}),this}batchUpdate(e,t,r={}){this.startBatch(e,r);const o=t();return this.stopBatch(e,r),o}hasActiveBatch(e=Object.keys(this.batches)){return(Array.isArray(e)?e:[e]).some(r=>this.batches[r]>0)}dispose(){this.collection.dispose()}}Eue([Fo.dispose()],Fo.prototype,"dispose",null);(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.addNode=="function"&&typeof o.addEdge=="function"&&o.collection!=null}n.isModel=e})(Fo||(Fo={}));(function(n){function e(r,o={}){return{cells:r.map(s=>s.toJSON(o))}}n.toJSON=e;function t(r){const o=[];return Array.isArray(r)?o.push(...r):(r.cells&&o.push(...r.cells),r.nodes&&r.nodes.forEach(s=>{s.shape==null&&(s.shape="rect"),o.push(s)}),r.edges&&r.edges.forEach(s=>{s.shape==null&&(s.shape="edge"),o.push(s)})),o.map(s=>{const i=s.shape;if(i){if(yn.registry.exist(i))return yn.create(s);if(hn.registry.exist(i))return hn.create(s)}throw new Error("The `shape` should be specified when creating a node/edge instance")})}n.fromJSON=t})(Fo||(Fo={}));var _ue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const{imageUrl:r,imageWidth:o,imageHeight:s}=t,i=Tue(t,["imageUrl","imageWidth","imageHeight"]);if(r!=null||o!=null||s!=null){const l=()=>{if(i.attrs){const a=i.attrs.image;r!=null&&(a[n]=r),o!=null&&(a.width=o),s!=null&&(a.height=s),i.attrs.image=a}};i.attrs?(i.attrs.image==null&&(i.attrs.image={}),l()):(i.attrs={image:{}},l())}return i}}function ru(n,e,t={}){const r={constructorName:n,markup:Oue(n,t.selector),attrs:{[n]:Object.assign({},ll.bodyAttr)}};return(t.parent||ll).define(un(r,e,{shape:n}))}ru("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}});const Aue=hn.define({shape:"edge",markup:[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}],attrs:{lines:{connection:!0,strokeLinejoin:"round"},wrap:{strokeWidth:10},line:{stroke:"#333",strokeWidth:2,targetMarker:"classic"}}});ru("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});var kue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);oArray.isArray(r)?r.join(","):K.isPointLike(r)?`${r.x}, ${r.y}`:"").join(" ")}n.pointsToString=e,n.config({propHooks(t){const{points:r}=t,o=kue(t,["points"]);if(r){const s=e(r);s&&eu(o,"attrs/body/refPoints",s)}return o}})})(jc||(jc={}));ru("polygon",{},{parent:jc});ru("polyline",{},{parent:jc});var Pue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);othis.resize(),"update"),r=this.handleAction(r,"update",()=>this.update(),"ports"),r=this.handleAction(r,"translate",()=>this.translate()),r=this.handleAction(r,"rotate",()=>this.rotate()),r=this.handleAction(r,"ports",()=>this.renderPorts()),r=this.handleAction(r,"tools",()=>{this.getFlag("tools")===e?this.renderTools():this.updateTools(t)})),r}update(e){this.cleanCache(),this.removePorts();const t=this.cell,r=t.getSize(),o=t.getAttrs();this.updateAttrs(this.container,o,{attrs:e===o?null:e,rootBBox:new $e(0,0,r.width,r.height),selectors:this.selectors}),this.renderPorts()}renderMarkup(){const e=this.cell.markup;if(e){if(typeof e=="string")throw new TypeError("Not support string markup.");return this.renderJSONMarkup(e)}throw new TypeError("Invalid node markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.appendChild(t.fragment)}render(){return this.empty(),this.renderMarkup(),this.resize(),this.updateTransform(),this.renderTools(),this}resize(){this.cell.getAngle()&&this.rotate(),this.update()}translate(){this.updateTransform()}rotate(){this.updateTransform()}getTranslationString(){const e=this.cell.getPosition();return`translate(${e.x},${e.y})`}getRotationString(){const e=this.cell.getAngle();if(e){const t=this.cell.getSize();return`rotate(${e},${t.width/2},${t.height/2})`}}updateTransform(){let e=this.getTranslationString();const t=this.getRotationString();t&&(e+=` ${t}`),this.container.setAttribute("transform",e)}findPortElem(e,t){const r=e?this.portsCache[e]:null;if(!r)return null;const o=r.portContentElement,s=r.portContentSelectors||{};return this.findOne(t,o,s)}cleanPortsCache(){this.portsCache={}}removePorts(){Object.values(this.portsCache).forEach(e=>{Mc(e.portElement)})}renderPorts(){const e=this.container,t=[];e.childNodes.forEach(i=>{t.push(i)});const r=this.cell.getParsedPorts(),o=wC(r,"zIndex"),s="auto";o[s]&&o[s].forEach(i=>{const l=this.getPortElement(i);e.append(l),t.push(l)}),Object.keys(o).forEach(i=>{if(i!==s){const l=parseInt(i,10);this.appendPorts(o[i],l,t)}}),this.updatePorts()}appendPorts(e,t,r){const o=e.map(s=>this.getPortElement(s));r[t]||t<0?T0(r[Math.max(t,0)],o):pf(this.container,o)}getPortElement(e){const t=this.portsCache[e.id];return t?t.portElement:this.createPortElement(e)}createPortElement(e){let t=Jt.renderMarkup(this.cell.getPortContainerMarkup());const r=t.elem;if(r==null)throw new Error("Invalid port container markup.");t=Jt.renderMarkup(this.getPortMarkup(e));const o=t.elem,s=t.selectors;if(o==null)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},o);let i="x6-port";e.group&&(i+=` x6-port-${e.group}`),Nt(r,i),Nt(r,"x6-port"),Nt(o,"x6-port-body"),r.appendChild(o);let l=s,a,c;if(this.existPortLabel(e)){if(t=Jt.renderMarkup(this.getPortLabelMarkup(e.label)),a=t.elem,c=t.selectors,a==null)throw new Error("Invalid port label markup.");if(s&&c){for(const d in c)if(s[d]&&d!==this.rootSelector)throw new Error("Selectors within port must be unique.");l=Object.assign(Object.assign({},s),c)}Nt(a,"x6-port-label"),r.appendChild(a)}return this.portsCache[e.id]={portElement:r,portSelectors:l,portLabelElement:a,portLabelSelectors:c,portContentElement:o,portContentSelectors:s},this.graph.options.onPortRendered&&this.graph.options.onPortRendered({port:e,node:this.cell,container:r,selectors:l,labelContainer:a,labelSelectors:c,contentContainer:o,contentSelectors:s}),r}updatePorts(){const e=this.cell.getParsedGroups(),t=Object.keys(e);t.length===0?this.updatePortGroup():t.forEach(r=>this.updatePortGroup(r))}updatePortGroup(e){const t=$e.fromSize(this.cell.getSize()),r=this.cell.getPortsLayoutByGroup(e,t);for(let o=0,s=r.length;os.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:t},this.getEventArgs(e,r,o)))}onMagnetDblClick(e,t,r,o){this.notify("node:magnet:dblclick",Object.assign({magnet:t},this.getEventArgs(e,r,o)))}onMagnetContextMenu(e,t,r,o){this.notify("node:magnet:contextmenu",Object.assign({magnet:t},this.getEventArgs(e,r,o)))}onMagnetMouseDown(e,t,r,o){this.startMagnetDragging(e,r,o)}onCustomEvent(e,t,r,o){this.notify("node:customevent",Object.assign({name:t},this.getEventArgs(e,r,o))),super.onCustomEvent(e,t,r,o)}prepareEmbedding(e){const t=this.graph,o=this.getEventData(e).cell||this.cell,s=t.findViewByCell(o),i=t.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e,node:o,view:s,cell:o,x:i.x,y:i.y,currentParent:o.getParent()})}processEmbedding(e,t){const r=t.cell||this.cell,o=t.graph||this.graph,s=o.options.embedding,i=s.findParent;let l=typeof i=="function"?pt(i,o,{view:this,node:this.cell}).filter(f=>At.isCell(f)&&this.cell.id!==f.id&&!f.isDescendantOf(this.cell)):o.model.getNodesUnderNode(r,{by:i});if(s.frontOnly&&l.length>0){const f=wC(l,"zIndex"),h=y6(Object.keys(f).map(p=>parseInt(p,10)));h&&(l=f[h])}l=l.filter(f=>f.visible);let a=null;const c=t.candidateEmbedView,u=s.validate;for(let f=l.length-1;f>=0;f-=1){const h=l[f];if(c&&c.cell.id===h.id){a=c;break}else{const p=h.findView(o);if(u&&pt(u,o,{child:this.cell,parent:p.cell,childView:this,parentView:p})){a=p;break}}}this.clearEmbedding(t),a&&a.highlight(null,{type:"embedding"}),t.candidateEmbedView=a;const d=o.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e,cell:r,node:r,view:o.findViewByCell(r),x:d.x,y:d.y,currentParent:r.getParent(),candidateParent:a?a.cell:null})}clearEmbedding(e){const t=e.candidateEmbedView;t&&(t.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null)}finalizeEmbedding(e,t){this.graph.startBatch("embedding");const r=t.cell||this.cell,o=t.graph||this.graph,s=o.findViewByCell(r),i=r.getParent(),l=t.candidateEmbedView;if(l?(l.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null,(i==null||i.id!==l.cell.id)&&l.cell.insertChild(r,void 0,{ui:!0})):i&&i.unembed(r,{ui:!0}),o.model.getConnectedEdges(r,{deep:!0}).forEach(a=>{a.updateParent({ui:!0})}),s&&l){const a=o.snapToGrid(e.clientX,e.clientY);s.notify("node:embedded",{e,cell:r,x:a.x,y:a.y,node:r,view:o.findViewByCell(r),previousParent:i,currentParent:r.getParent()})}this.graph.stopBatch("embedding")}getDelegatedView(){let e=this.cell,t=this;for(;t&&!e.isEdge();){if(!e.hasParent()||t.can("stopDelegateOnDragging"))return t;e=e.getParent(),t=this.graph.findViewByCell(e)}return null}validateMagnet(e,t,r){if(t.getAttribute("magnet")!=="passive"){const o=this.graph.options.connecting.validateMagnet;return o?pt(o,this.graph,{e:r,magnet:t,view:e,cell:e.cell}):!0}return!1}startMagnetDragging(e,t,r){if(!this.can("magnetConnectable"))return;e.stopPropagation();const o=e.currentTarget,s=this.graph;this.setEventData(e,{targetMagnet:o}),this.validateMagnet(this,o,e)?(s.options.magnetThreshold<=0&&this.startConnectting(e,o,t,r),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,t,r),s.view.delegateDragEvents(e,this)}startConnectting(e,t,r,o){this.graph.model.startBatch("add-edge");const s=this.createEdgeFromMagnet(t,r,o);s.setEventData(e,s.prepareArrowheadDragging("target",{x:r,y:o,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:s}),s.notifyMouseDown(e,r,o)}getDefaultEdge(e,t){let r;const o=this.graph.options.connecting.createEdge;return o&&(r=pt(o,this.graph,{sourceMagnet:t,sourceView:e,sourceCell:e.cell})),r}createEdgeFromMagnet(e,t,r){const o=this.graph,s=o.model,i=this.getDefaultEdge(this,e);return i.setSource(Object.assign(Object.assign({},i.getSource()),this.getEdgeTerminal(e,t,r,i,"source"))),i.setTarget(Object.assign(Object.assign({},i.getTarget()),{x:t,y:r})),i.addTo(s,{async:!1,ui:!0}),i.findView(o)}dragMagnet(e,t,r){const o=this.getEventData(e),s=o.edgeView;if(s)s.onMouseMove(e,t,r),this.autoScrollGraph(e.clientX,e.clientY);else{const i=this.graph,l=i.options.magnetThreshold,a=this.getEventTarget(e),c=o.targetMagnet;if(l==="onleave"){if(c===a||c.contains(a))return}else if(i.view.getMouseMovedCount(e)<=l)return;this.startConnectting(e,c,t,r)}}stopMagnetDragging(e,t,r){const s=this.eventData(e).edgeView;s&&(s.onMouseUp(e,t,r),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(e,t,r){this.notify("node:unhandled:mousedown",{e,x:t,y:r,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(e,t,r,o,s){let i=[s];const l=this.graph.getPlugin("selection");if(l&&l.isSelectionMovable()){const a=l.getSelectedCells();a.includes(s)&&(i=a.filter(c=>c.isNode()))}i.forEach(a=>{this.notify(e,{e:t,x:r,y:o,cell:a,node:a,view:a.findView(this.graph)})})}getRestrictArea(e){const t=this.graph.options.translating.restrict,r=typeof t=="function"?pt(t,this.graph,e):t;return typeof r=="number"?this.graph.transform.getGraphArea().inflate(r):r===!0?this.graph.transform.getGraphArea():r||null}startNodeDragging(e,t,r){const o=this.getDelegatedView();if(o==null||!o.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,t,r);this.setEventData(e,{targetView:o,action:"move"});const s=K.create(o.cell.getPosition());o.setEventData(e,{moving:!1,offset:s.diff(t,r),restrict:this.getRestrictArea(o)})}dragNode(e,t,r){const o=this.cell,s=this.graph,i=s.getGridSize(),l=this.getEventData(e),a=l.offset,c=l.restrict;l.moving||(l.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,t,r,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);const u=Ht.snapToGrid(t+a.x,i),d=Ht.snapToGrid(r+a.y,i);o.setPosition(u,d,{restrict:c,deep:!0,ui:!0}),s.options.embedding.enabled&&(l.embedding||(this.prepareEmbedding(e),l.embedding=!0),this.processEmbedding(e,l))}stopNodeDragging(e,t,r){const o=this.getEventData(e);o.embedding&&this.finalizeEmbedding(e,o),o.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,t,r,this.cell)),o.moving=!1,o.embedding=!1}autoScrollGraph(e,t){const r=this.graph.getPlugin("scroller");r&&r.autoScroll(e,t)}}(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.isNodeView=="function"&&typeof o.isEdgeView=="function"&&typeof o.confirmUpdate=="function"&&typeof o.update=="function"&&typeof o.findPortElem=="function"&&typeof o.resize=="function"&&typeof o.rotate=="function"&&typeof o.translate=="function"}n.isNodeView=e})(qr||(qr={}));qr.config({isSvgElement:!0,priority:0,bootstrap:["render"],actions:{view:["render"],markup:["render"],attrs:["update"],size:["resize","ports","tools"],angle:["rotate","tools"],position:["translate","tools"],ports:["ports"],tools:["tools"]}});qr.registry.register("node",qr,!0);var Iue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);othis.update(t)),r=this.handleAction(r,"labels",()=>this.onLabelsChange(t)),r=this.handleAction(r,"tools",()=>this.renderTools()),r)}render(){return this.empty(),this.renderMarkup(),this.labelContainer=null,this.renderLabels(),this.update(),this.renderTools(),this}renderMarkup(){const e=this.cell.markup;if(e){if(typeof e=="string")throw new TypeError("Not support string markup.");return this.renderJSONMarkup(e)}throw new TypeError("Invalid edge markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.append(t.fragment)}customizeLabels(){if(this.labelContainer){const e=this.cell,t=e.labels;for(let r=0,o=t.length;r1){const s=r[1];if(t[s]){if(o===2)return typeof e.propertyValue=="object"&&Af(e.propertyValue,"markup");if(r[2]!=="markup")return!1}}}return!0}parseLabelMarkup(e){return e?typeof e=="string"?this.parseLabelStringMarkup(e):this.parseJSONMarkup(e):null}parseLabelStringMarkup(e){const t=ft.createVectors(e),r=document.createDocumentFragment();for(let o=0,s=t.length;o1||o[0].nodeName.toUpperCase()!=="G"?r=ft.create("g").append(t):r=ft.create(o[0]),r.addClass(this.prefixClassName("edge-label")),{node:r.node,selectors:e.selectors}}updateLabels(){if(this.labelContainer){const e=this.cell,t=e.labels,r=this.can("edgeLabelMovable"),o=e.getDefaultLabel();for(let s=0,i=t.length;sc.toJSON()),a=l.length;return s===a?0:(t.setVertices(l.slice(1,a-1),e),s-a)}getTerminalView(e){switch(e){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalAnchor(e){switch(e){case"source":return K.create(this.sourceAnchor);case"target":return K.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return K.create(this.sourcePoint);case"target":return K.create(this.targetPoint);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalMagnet(e,t={}){switch(e){case"source":{if(t.raw)return this.sourceMagnet;const r=this.sourceView;return r?this.sourceMagnet||r.container:null}case"target":{if(t.raw)return this.targetMagnet;const r=this.targetView;return r?this.targetMagnet||r.container:null}default:throw new Error(`Unknown terminal type '${e}'`)}}updateConnection(e={}){const t=this.cell;if(e.translateBy&&t.isFragmentDescendantOf(e.translateBy)){const r=e.tx||0,o=e.ty||0;this.routePoints=new gn(this.routePoints).translate(r,o).points,this.translateConnectionPoints(r,o),this.path.translate(r,o)}else{const r=t.getVertices(),o=this.findAnchors(r);this.sourceAnchor=o.source,this.targetAnchor=o.target,this.routePoints=this.findRoutePoints(r);const s=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=s.source,this.targetPoint=s.target;const i=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);this.path=this.findPath(this.routePoints,i.source||this.sourcePoint,i.target||this.targetPoint)}this.cleanCache()}findAnchors(e){const t=this.cell,r=t.source,o=t.target,s=e[0],i=e[e.length-1];return o.priority&&!r.priority?this.findAnchorsOrdered("target",i,"source",s):this.findAnchorsOrdered("source",s,"target",i)}findAnchorsOrdered(e,t,r,o){let s,i;const l=this.cell,a=l[e],c=l[r],u=this.getTerminalView(e),d=this.getTerminalView(r),f=this.getTerminalMagnet(e),h=this.getTerminalMagnet(r);if(u){let p;t?p=K.create(t):d?p=h:p=K.create(c),s=this.getAnchor(a.anchor,u,f,p,e)}else s=K.create(a);if(d){const p=K.create(o||s);i=this.getAnchor(c.anchor,d,h,p,r)}else i=K.isPointLike(c)?K.create(c):new K;return{[e]:s,[r]:i}}getAnchor(e,t,r,o,s){const i=t.isEdgeElement(r),l=this.graph.options.connecting;let a=typeof e=="string"?{name:e}:e;if(!a){const d=i?(s==="source"?l.sourceEdgeAnchor:l.targetEdgeAnchor)||l.edgeAnchor:(s==="source"?l.sourceAnchor:l.targetAnchor)||l.anchor;a=typeof d=="string"?{name:d}:d}if(!a)throw new Error("Anchor should be specified.");let c;const u=a.name;if(i){const d=Bc.registry.get(u);if(typeof d!="function")return Bc.registry.onNotFound(u);c=pt(d,this,t,r,o,a.args||{},s)}else{const d=Vc.registry.get(u);if(typeof d!="function")return Vc.registry.onNotFound(u);c=pt(d,this,t,r,o,a.args||{},s)}return c?c.round(this.POINT_ROUNDING):new K}findRoutePoints(e=[]){const t=this.graph.options.connecting.router||Hi.presets.normal,r=this.cell.getRouter()||t;let o;if(typeof r=="function")o=pt(r,this,e,{},this);else{const s=typeof r=="string"?r:r.name,i=typeof r=="string"?{}:r.args||{},l=s?Hi.registry.get(s):Hi.presets.normal;if(typeof l!="function")return Hi.registry.onNotFound(s);o=pt(l,this,e,i,this)}return o==null?e.map(s=>K.create(s)):o.map(s=>K.create(s))}findConnectionPoints(e,t,r){const o=this.cell,s=this.graph.options.connecting,i=o.getSource(),l=o.getTarget(),a=this.sourceView,c=this.targetView,u=e[0],d=e[e.length-1];let f;if(a&&!a.isEdgeElement(this.sourceMagnet)){const p=this.sourceMagnet||a.container,g=u||r,m=new Ke(g,t),v=i.connectionPoint||s.sourceConnectionPoint||s.connectionPoint;f=this.getConnectionPoint(v,a,p,m,"source")}else f=t;let h;if(c&&!c.isEdgeElement(this.targetMagnet)){const p=this.targetMagnet||c.container,g=l.connectionPoint||s.targetConnectionPoint||s.connectionPoint,m=d||t,v=new Ke(m,r);h=this.getConnectionPoint(g,c,p,v,"target")}else h=r;return{source:f,target:h}}getConnectionPoint(e,t,r,o,s){const i=o.end;if(e==null)return i;const l=typeof e=="string"?e:e.name,a=typeof e=="string"?{}:e.args,c=Fc.registry.get(l);if(typeof c!="function")return Fc.registry.onNotFound(l);const u=pt(c,this,o,t,r,a||{},s);return u?u.round(this.POINT_ROUNDING):i}findMarkerPoints(e,t,r){const o=d=>{const f=this.cell.getAttrs(),h=Object.keys(f);for(let p=0,g=h.length;p0?m/g:0),u&&(m=-1*(g-m)||1),s.distance=m;let v;a||(v=d.tangentAtT(p));let w;if(v)w=v.pointOffset(h);else{const b=d.pointAtT(p),y=h.diff(b);w={x:y.x,y:y.y}}return s.offset=w,s.angle=i,s}normalizeLabelPosition(e){return typeof e=="number"?{distance:e}:e}getLabelTransformationMatrix(e){const t=this.normalizeLabelPosition(e),r=t.options||{},o=t.angle||0,s=t.distance,i=s>0&&s<=1;let l=0;const a={x:0,y:0},c=t.offset;c&&(typeof c=="number"?l=c:(c.x!=null&&(a.x=c.x),c.y!=null&&(a.y=c.y)));const u=a.x!==0||a.y!==0||l===0,d=r.keepGradient,f=r.ensureLegibility,h=this.path,p={segmentSubdivisions:this.getConnectionSubdivisions()},g=i?s*this.getConnectionLength():s,m=h.tangentAtLength(g,p);let v,w=o;if(m){if(u)v=m.start,v.translate(a);else{const b=m.clone();b.rotate(-90,m.start),b.setLength(l),v=b.end}d&&(w=m.angle()+o,f&&(w=Wt.normalize((w+90)%180-90)))}else v=h.start,u&&v.translate(a);return Hn().translate(v.x,v.y).rotate(w)}getVertexIndex(e,t){const o=this.cell.getVertices(),s=this.getClosestPointLength(new K(e,t));let i=0;if(s!=null)for(const l=o.length;i(t[s]=a,t[s+1]=a.container===c?void 0:c,t)}beforeArrowheadDragging(e){e.zIndex=this.cell.zIndex,this.cell.toFront();const t=this.container.style;e.pointerEvents=t.pointerEvents,t.pointerEvents="none",this.graph.options.connecting.highlight&&this.highlightAvailableMagnets(e)}afterArrowheadDragging(e){e.zIndex!=null&&(this.cell.setZIndex(e.zIndex,{ui:!0}),e.zIndex=null);const t=this.container;t.style.pointerEvents=e.pointerEvents||"",this.graph.options.connecting.highlight&&this.unhighlightAvailableMagnets(e)}validateConnection(e,t,r,o,s,i,l){const a=this.graph.options.connecting,c=a.allowLoop,u=a.allowNode,d=a.allowEdge,f=a.allowPort,h=a.allowMulti,p=a.validateConnection,g=i?i.cell:null,m=s==="target"?r:e,v=s==="target"?o:t;let w=!0;const b=y=>{const x=s==="source"?l?l.port:null:g?g.getSourcePortId():null,E=s==="target"?l?l.port:null:g?g.getTargetPortId():null;return pt(y,this.graph,{edge:g,edgeView:i,sourceView:e,targetView:r,sourcePort:x,targetPort:E,sourceMagnet:t,targetMagnet:o,sourceCell:e?e.cell:null,targetCell:r?r.cell:null,type:s})};if(c!=null&&(typeof c=="boolean"?!c&&e===r&&(w=!1):w=b(c)),w&&f!=null&&(typeof f=="boolean"?!f&&v&&(w=!1):w=b(f)),w&&d!=null&&(typeof d=="boolean"?!d&&Qs.isEdgeView(m)&&(w=!1):w=b(d)),w&&u!=null&&v==null&&(typeof u=="boolean"?!u&&qr.isNodeView(m)&&(w=!1):w=b(u)),w&&h!=null&&i){const y=i.cell,x=s==="source"?l:y.getSource(),E=s==="target"?l:y.getTarget(),T=l?this.graph.getCellById(l.cell):null;if(x&&E&&x.cell&&E.cell&&T)if(typeof h=="function")w=b(h);else{const M=this.graph.model.getConnectedEdges(T,{outgoing:s==="source",incoming:s==="target"});M.length&&(h==="withPort"?M.some(k=>{const P=k.getSource(),L=k.getTarget();return P&&L&&P.cell===x.cell&&L.cell===E.cell&&P.port!=null&&P.port===x.port&&L.port!=null&&L.port===E.port})&&(w=!1):h||M.some(k=>{const P=k.getSource(),L=k.getTarget();return P&&L&&P.cell===x.cell&&L.cell===E.cell})&&(w=!1))}}return w&&p!=null&&(w=b(p)),w}allowConnectToBlank(e){const t=this.graph,o=t.options.connecting.allowBlank;if(typeof o!="function")return!!o;const s=t.findViewByCell(e),i=e.getSourceCell(),l=e.getTargetCell(),a=t.findViewByCell(i),c=t.findViewByCell(l);return pt(o,t,{edge:e,edgeView:s,sourceCell:i,targetCell:l,sourceView:a,targetView:c,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:s.sourceMagnet,targetMagnet:s.targetMagnet})}validateEdge(e,t,r){const o=this.graph;if(!this.allowConnectToBlank(e)){const i=e.getSourceCellId(),l=e.getTargetCellId();if(!(i&&l))return!1}const s=o.options.connecting.validateEdge;return s?pt(s,o,{edge:e,type:t,previous:r}):!0}arrowheadDragging(e,t,r,o){o.x=t,o.y=r,o.currentTarget!==e&&(o.currentMagnet&&o.currentView&&o.currentView.unhighlight(o.currentMagnet,{type:"magnetAdsorbed"}),o.currentView=this.graph.findViewByElem(e),o.currentView?(o.currentMagnet=o.currentView.findMagnet(e),o.currentMagnet&&this.validateConnection(...o.getValidateConnectionArgs(o.currentView,o.currentMagnet),o.currentView.getEdgeTerminal(o.currentMagnet,t,r,this.cell,o.terminalType))?o.currentView.highlight(o.currentMagnet,{type:"magnetAdsorbed"}):o.currentMagnet=null):o.currentMagnet=null),o.currentTarget=e,this.cell.prop(o.terminalType,{x:t,y:r},Object.assign(Object.assign({},o.options),{ui:!0}))}arrowheadDragged(e,t,r){const o=e.currentView,s=e.currentMagnet;if(!s||!o)return;o.unhighlight(s,{type:"magnetAdsorbed"});const i=e.terminalType,l=o.getEdgeTerminal(s,t,r,this.cell,i);this.cell.setTerminal(i,l,{ui:!0})}snapArrowhead(e,t,r){const o=this.graph,{snap:s,allowEdge:i}=o.options.connecting,l=typeof s=="object"&&s.radius||50,a=typeof s=="object"&&s.anchor||"center",c=o.renderer.findViewsInArea({x:e-l,y:t-l,width:2*l,height:2*l},{nodeOnly:!0});if(i){const y=o.renderer.findEdgeViewsFromPoint({x:e,y:t},l).filter(x=>x!==this);c.push(...y)}const u=r.closestView||null,d=r.closestMagnet||null;r.closestView=null,r.closestMagnet=null;let f,h=Number.MAX_SAFE_INTEGER;const p=new K(e,t);c.forEach(y=>{if(y.container.getAttribute("magnet")!=="false"){if(y.isNodeView())f=a==="center"?y.cell.getBBox().getCenter().distance(p):y.cell.getBBox().getNearestPointToPoint(p).distance(p);else if(y.isEdgeView()){const x=y.getClosestPoint(p);x?f=x.distance(p):f=Number.MAX_SAFE_INTEGER}f{if(x.getAttribute("magnet")!=="false"){const E=y.getBBoxOfElement(x);f=p.distance(E.getCenter()),fthis.validateConnection(...e.getValidateConnectionArgs(i,c),i.getEdgeTerminal(c,e.x,e.y,this.cell,e.terminalType)));if(a.length>0){for(let c=0,u=a.length;c{const o=this.graph.findViewByCell(r);o&&(t[r].forEach(i=>{o.unhighlight(i,{type:"magnetAvailable"})}),o.unhighlight(null,{type:"nodeAvailable"}))}),e.marked=null}startArrowheadDragging(e,t,r){if(!this.can("arrowheadMovable")){this.notifyUnhandledMouseDown(e,t,r);return}const s=e.target.getAttribute("data-terminal"),i=this.prepareArrowheadDragging(s,{x:t,y:r});this.setEventData(e,i)}dragArrowhead(e,t,r){const o=this.getEventData(e);this.graph.options.connecting.snap?this.snapArrowhead(t,r,o):this.arrowheadDragging(this.getEventTarget(e),t,r,o)}stopArrowheadDragging(e,t,r){const o=this.graph,s=this.getEventData(e);o.options.connecting.snap?this.snapArrowheadEnd(s):this.arrowheadDragged(s,t,r),this.validateEdge(this.cell,s.terminalType,s.initialTerminal)?(this.finishEmbedding(s),this.notifyConnectionEvent(s,e)):this.fallbackConnection(s),this.afterArrowheadDragging(s)}startLabelDragging(e,t,r){if(this.can("edgeLabelMovable")){const o=e.currentTarget,s=parseInt(o.getAttribute("data-index"),10),i=this.getLabelPositionAngle(s),l=this.getLabelPositionArgs(s),a=this.getDefaultLabelPositionArgs(),c=this.mergeLabelPositionArgs(l,a);this.setEventData(e,{index:s,positionAngle:i,positionArgs:c,stopPropagation:!0,action:"drag-label"})}else this.setEventData(e,{stopPropagation:!0});this.graph.view.delegateDragEvents(e,this)}dragLabel(e,t,r){const o=this.getEventData(e),s=this.cell.getLabelAt(o.index),i=un({},s,{position:this.getLabelPosition(t,r,o.positionAngle,o.positionArgs)});this.cell.setLabelAt(o.index,i)}stopLabelDragging(e,t,r){}}(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.isNodeView=="function"&&typeof o.isEdgeView=="function"&&typeof o.confirmUpdate=="function"&&typeof o.update=="function"&&typeof o.getConnection=="function"}n.isEdgeView=e})(Qs||(Qs={}));Qs.config({isSvgElement:!0,priority:1,bootstrap:["render","source","target"],actions:{view:["render"],markup:["render"],attrs:["update"],source:["source","update"],target:["target","update"],router:["update"],connector:["update"],labels:["labels"],defaultLabel:["labels"],tools:["tools"],vertices:["vertices","update"]}});Qs.registry.register("edge",Qs,!0);var Lue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class ys extends tn{get disposeContainer(){return!1}get options(){return this.graph.options}constructor(e){super(),this.graph=e;const{selectors:t,fragment:r}=Jt.parseJSONMarkup(ys.markup);this.background=t.background,this.grid=t.grid,this.svg=t.svg,this.defs=t.defs,this.viewport=t.viewport,this.primer=t.primer,this.stage=t.stage,this.decorator=t.decorator,this.overlay=t.overlay,this.container=this.options.container,this.restore=ys.snapshoot(this.container),Nt(this.container,this.prefixClassName("graph")),pf(this.container,r),this.delegateEvents()}delegateEvents(){const e=this.constructor;return super.delegateEvents(e.events),this}guard(e,t){return e.type==="mousedown"&&e.button===2||this.options.guard&&this.options.guard(e,t)?!0:e.data&&e.data.guarded!==void 0?e.data.guarded:!(t&&t.cell&&At.isCell(t.cell)||this.svg===e.target||this.container===e.target||this.svg.contains(e.target))}findView(e){return this.graph.findViewByElem(e)}onDblClick(e){this.options.preventDefaultDblClick&&e.preventDefault();const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onDblClick(t,o.x,o.y):this.graph.trigger("blank:dblclick",{e:t,x:o.x,y:o.y})}onClick(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onClick(t,o.x,o.y):this.graph.trigger("blank:click",{e:t,x:o.x,y:o.y})}}isPreventDefaultContextMenu(e){let t=this.options.preventDefaultContextMenu;return typeof t=="function"&&(t=pt(t,this.graph,{view:e})),t}onContextMenu(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.isPreventDefaultContextMenu(r)&&e.preventDefault(),this.guard(t,r))return;const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onContextMenu(t,o.x,o.y):this.graph.trigger("blank:contextmenu",{e:t,x:o.x,y:o.y})}delegateDragEvents(e,t){e.data==null&&(e.data={}),this.setEventData(e,{currentView:t||null,mouseMovedCount:0,startPosition:{x:e.clientX,y:e.clientY}});const r=this.constructor;this.delegateDocumentEvents(r.documentEvents,e.data),this.undelegateEvents()}getMouseMovedCount(e){return this.getEventData(e).mouseMovedCount||0}onMouseDown(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;this.options.preventDefaultMouseDown&&e.preventDefault();const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onMouseDown(t,o.x,o.y):(this.options.preventDefaultBlankAction&&["touchstart"].includes(t.type)&&e.preventDefault(),this.graph.trigger("blank:mousedown",{e:t,x:o.x,y:o.y})),this.delegateDragEvents(t,r)}onMouseMove(e){const t=this.getEventData(e),r=t.startPosition;if(r&&r.x===e.clientX&&r.y===e.clientY||(t.mouseMovedCount==null&&(t.mouseMovedCount=0),t.mouseMovedCount+=1,t.mouseMovedCount<=this.options.moveThreshold))return;const s=this.normalizeEvent(e),i=this.graph.snapToGrid(s.clientX,s.clientY),l=t.currentView;l?l.onMouseMove(s,i.x,i.y):this.graph.trigger("blank:mousemove",{e:s,x:i.x,y:i.y}),this.setEventData(s,t)}onMouseUp(e){this.undelegateDocumentEvents();const t=this.normalizeEvent(e),r=this.graph.snapToGrid(t.clientX,t.clientY),s=this.getEventData(e).currentView;if(s?s.onMouseUp(t,r.x,r.y):this.graph.trigger("blank:mouseup",{e:t,x:r.x,y:r.y}),!e.isPropagationStopped()){const i=new us(e,{type:"click",data:e.data});this.onClick(i)}e.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(!this.guard(t,r))if(r)r.onMouseOver(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseover",{e:t})}}onMouseOut(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(!this.guard(t,r))if(r)r.onMouseOut(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseout",{e:t})}}onMouseEnter(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.findViewByElem(t.relatedTarget);if(r){if(o===r)return;r.onMouseEnter(t)}else{if(o)return;this.graph.trigger("graph:mouseenter",{e:t})}}onMouseLeave(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.findViewByElem(t.relatedTarget);if(r){if(o===r)return;r.onMouseLeave(t)}else{if(o)return;this.graph.trigger("graph:mouseleave",{e:t})}}onMouseWheel(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=t.originalEvent,s=this.graph.snapToGrid(o.clientX,o.clientY),i=Math.max(-1,Math.min(1,o.wheelDelta||-o.detail));r?r.onMouseWheel(t,s.x,s.y,i):this.graph.trigger("blank:mousewheel",{e:t,delta:i,x:s.x,y:s.y})}onCustomEvent(e){const t=e.currentTarget,r=t.getAttribute("event")||t.getAttribute("data-event");if(r){const o=this.findView(t);if(o){const s=this.normalizeEvent(e);if(this.guard(s,o))return;const i=this.graph.snapToGrid(s.clientX,s.clientY);o.onCustomEvent(s,r,i.x,i.y)}}}handleMagnetEvent(e,t){const r=e.currentTarget,o=r.getAttribute("magnet");if(o&&o.toLowerCase()!=="false"){const s=this.findView(r);if(s){const i=this.normalizeEvent(e);if(this.guard(i,s))return;const l=this.graph.snapToGrid(i.clientX,i.clientY);pt(t,this.graph,s,i,r,l.x,l.y)}}}onMagnetMouseDown(e){this.handleMagnetEvent(e,(t,r,o,s,i)=>{t.onMagnetMouseDown(r,o,s,i)})}onMagnetDblClick(e){this.handleMagnetEvent(e,(t,r,o,s,i)=>{t.onMagnetDblClick(r,o,s,i)})}onMagnetContextMenu(e){const t=this.findView(e.target);this.isPreventDefaultContextMenu(t)&&e.preventDefault(),this.handleMagnetEvent(e,(r,o,s,i,l)=>{r.onMagnetContextMenu(o,s,i,l)})}onLabelMouseDown(e){const t=e.currentTarget,r=this.findView(t);if(r){const o=this.normalizeEvent(e);if(this.guard(o,r))return;const s=this.graph.snapToGrid(o.clientX,o.clientY);r.onLabelMouseDown(o,s.x,s.y)}}onImageDragStart(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}Lue([tn.dispose()],ys.prototype,"dispose",null);(function(n){const e=`${Go.prefixCls}-graph`;n.markup=[{ns:Ln.xhtml,tagName:"div",selector:"background",className:`${e}-background`},{ns:Ln.xhtml,tagName:"div",selector:"grid",className:`${e}-grid`},{ns:Ln.svg,tagName:"svg",selector:"svg",className:`${e}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":Ln.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${e}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${e}-svg-primer`},{tagName:"g",selector:"stage",className:`${e}-svg-stage`},{tagName:"g",selector:"decorator",className:`${e}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${e}-svg-overlay`}]}]}];function t(r){const o=r.cloneNode();return r.childNodes.forEach(s=>o.appendChild(s)),()=>{for(hf(r);r.attributes.length>0;)r.removeAttribute(r.attributes[0].name);for(let s=0,i=o.attributes.length;sr.appendChild(s))}}n.snapshoot=t})(ys||(ys={}));(function(n){const e=Go.prefixCls;n.events={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel",[`mouseenter .${e}-cell`]:"onMouseEnter",[`mouseleave .${e}-cell`]:"onMouseLeave",[`mouseenter .${e}-cell-tools`]:"onMouseEnter",[`mouseleave .${e}-cell-tools`]:"onMouseLeave",[`mousedown .${e}-cell [event]`]:"onCustomEvent",[`touchstart .${e}-cell [event]`]:"onCustomEvent",[`mousedown .${e}-cell [data-event]`]:"onCustomEvent",[`touchstart .${e}-cell [data-event]`]:"onCustomEvent",[`dblclick .${e}-cell [magnet]`]:"onMagnetDblClick",[`contextmenu .${e}-cell [magnet]`]:"onMagnetContextMenu",[`mousedown .${e}-cell [magnet]`]:"onMagnetMouseDown",[`touchstart .${e}-cell [magnet]`]:"onMagnetMouseDown",[`dblclick .${e}-cell [data-magnet]`]:"onMagnetDblClick",[`contextmenu .${e}-cell [data-magnet]`]:"onMagnetContextMenu",[`mousedown .${e}-cell [data-magnet]`]:"onMagnetMouseDown",[`touchstart .${e}-cell [data-magnet]`]:"onMagnetMouseDown",[`dragstart .${e}-cell image`]:"onImageDragStart",[`mousedown .${e}-edge .${e}-edge-label`]:"onLabelMouseDown",[`touchstart .${e}-edge .${e}-edge-label`]:"onLabelMouseDown"},n.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}})(ys||(ys={}));const Rue=`.x6-graph { - position: relative; - overflow: hidden; - outline: none; - touch-action: none; -} -.x6-graph-background, -.x6-graph-grid, -.x6-graph-svg { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; -} -.x6-graph-background-stage, -.x6-graph-grid-stage, -.x6-graph-svg-stage { - user-select: none; -} -.x6-graph.x6-graph-pannable { - cursor: grab; - cursor: -moz-grab; - cursor: -webkit-grab; -} -.x6-graph.x6-graph-panning { - cursor: grabbing; - cursor: -moz-grabbing; - cursor: -webkit-grabbing; - user-select: none; -} -.x6-node { - cursor: move; - /* stylelint-disable-next-line */ -} -.x6-node.x6-node-immovable { - cursor: default; -} -.x6-node * { - -webkit-user-drag: none; -} -.x6-node .scalable * { - vector-effect: non-scaling-stroke; -} -.x6-node [magnet='true'] { - cursor: crosshair; - transition: opacity 0.3s; -} -.x6-node [magnet='true']:hover { - opacity: 0.7; -} -.x6-node foreignObject { - display: block; - overflow: visible; - background-color: transparent; -} -.x6-node foreignObject > body { - position: static; - width: 100%; - height: 100%; - margin: 0; - padding: 0; - overflow: visible; - background-color: transparent; -} -.x6-edge .source-marker, -.x6-edge .target-marker { - vector-effect: non-scaling-stroke; -} -.x6-edge .connection { - stroke-linejoin: round; - fill: none; -} -.x6-edge .connection-wrap { - cursor: move; - opacity: 0; - fill: none; - stroke: #000; - stroke-width: 15; - stroke-linecap: round; - stroke-linejoin: round; -} -.x6-edge .connection-wrap:hover { - opacity: 0.4; - stroke-opacity: 0.4; -} -.x6-edge .vertices { - cursor: move; - opacity: 0; -} -.x6-edge .vertices .vertex { - fill: #1abc9c; -} -.x6-edge .vertices .vertex :hover { - fill: #34495e; - stroke: none; -} -.x6-edge .vertices .vertex-remove { - cursor: pointer; - fill: #fff; -} -.x6-edge .vertices .vertex-remove-area { - cursor: pointer; - opacity: 0.1; -} -.x6-edge .vertices .vertex-group:hover .vertex-remove-area { - opacity: 1; -} -.x6-edge .arrowheads { - cursor: move; - opacity: 0; -} -.x6-edge .arrowheads .arrowhead { - fill: #1abc9c; -} -.x6-edge .arrowheads .arrowhead :hover { - fill: #f39c12; - stroke: none; -} -.x6-edge .tools { - cursor: pointer; - opacity: 0; -} -.x6-edge .tools .tool-options { - display: none; -} -.x6-edge .tools .tool-remove circle { - fill: #f00; -} -.x6-edge .tools .tool-remove path { - fill: #fff; -} -.x6-edge:hover .vertices, -.x6-edge:hover .arrowheads, -.x6-edge:hover .tools { - opacity: 1; -} -.x6-highlight-opacity { - opacity: 0.3; -} -.x6-cell-tool-editor { - position: relative; - display: inline-block; - min-height: 1em; - margin: 0; - padding: 0; - line-height: 1; - white-space: normal; - text-align: center; - vertical-align: top; - overflow-wrap: normal; - outline: none; - transform-origin: 0 0; - -webkit-user-drag: none; -} -.x6-edge-tool-editor { - border: 1px solid #275fc5; - border-radius: 2px; -} -`;class Un extends Xs{get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}constructor(e){super(),this.graph=e,this.init()}init(){}}var $ue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class Tb extends Un{init(){Uie("core",Rue)}dispose(){Wie("core")}}$ue([Tb.dispose()],Tb.prototype,"dispose",null);var Due=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const h=t[f];typeof h=="boolean"?c[f].enabled=h:c[f]=Object.assign(Object.assign({},c[f]),h)}),c}n.get=e})(Rd||(Rd={}));(function(n){n.defaults={x:0,y:0,scaling:{min:.01,max:16},grid:{size:10,visible:!1},background:!1,panning:{enabled:!1,eventTypes:["leftMouseDown"]},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:Go.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:Go.prefix("available-magnet")}}},connecting:{snap:!1,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,allowBlank:!0,allowMulti:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",router:"normal",connector:"normal",validateConnection({type:e,sourceView:t,targetView:r}){return(e==="target"?r:t)!=null},createEdge(){return new Aue}},translating:{restrict:!1},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:()=>!0},moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},async:!0,virtual:!1,guard:()=>!1}})(Rd||(Rd={}));var Vue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s},Bue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const u=`pattern_${c}`,d=r.a||1,f=r.d||1,{update:h,markup:p}=a,g=Bue(a,["update","markup"]),m=Object.assign(Object.assign(Object.assign({},g),s[c]),{sx:d,sy:f,ox:r.e||0,oy:r.f||0,width:t*d,height:t*f});o.has(u)||o.add(u,ft.create("pattern",{id:u,patternUnits:"userSpaceOnUse"},ft.createVectors(p)).node);const v=o.get(u);typeof h=="function"&&h(v.childNodes[0],m);let w=m.ox%m.width;w<0&&(w+=m.width);let b=m.oy%m.height;b<0&&(b+=m.height),Gt(v,{x:w,y:b,width:m.width,height:m.height})});const i=new XMLSerializer().serializeToString(o.root),l=`url(data:image/svg+xml;base64,${btoa(i)})`;this.elem.style.backgroundImage=l}getInstance(){return this.instance||(this.instance=new ji),this.instance}resolveGrid(e){if(!e)return[];const t=e.type;if(t==null)return[Object.assign(Object.assign({},ji.presets.dot),e.args)];const r=ji.registry.get(t);if(r){let o=e.args||[];return Array.isArray(o)||(o=[o]),Array.isArray(r)?r.map((s,i)=>Object.assign(Object.assign({},s),o[i])):[Object.assign(Object.assign({},r),o[0])]}return ji.registry.onNotFound(t)}dispose(){this.stopListening(),this.clear()}}Vue([Un.dispose()],N0.prototype,"dispose",null);class oN extends Un{get container(){return this.graph.view.container}get viewport(){return this.graph.view.viewport}get stage(){return this.graph.view.stage}init(){this.resize()}getMatrix(){const e=this.viewport.getAttribute("transform");return e!==this.viewportTransformString&&(this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=e),Hn(this.viewportMatrix)}setMatrix(e){const t=Hn(e),r=tu(t);this.viewport.setAttribute("transform",r),this.viewportMatrix=t,this.viewportTransformString=r}resize(e,t){let r=e===void 0?this.options.width:e,o=t===void 0?this.options.height:t;this.options.width=r,this.options.height=o,typeof r=="number"&&(r=Math.round(r)),typeof o=="number"&&(o=Math.round(o)),this.container.style.width=r==null?"":`${r}px`,this.container.style.height=o==null?"":`${o}px`;const s=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},s)),this}getComputedSize(){let e=this.options.width,t=this.options.height;return CC(e)||(e=this.container.clientWidth),CC(t)||(t=this.container.clientHeight),{width:e,height:t}}getScale(){return Rie(this.getMatrix())}scale(e,t=e,r=0,o=0){if(e=this.clampScale(e),t=this.clampScale(t),r||o){const i=this.getTranslation(),l=i.tx-r*(e-1),a=i.ty-o*(t-1);(l!==i.tx||a!==i.ty)&&this.translate(l,a)}const s=this.getMatrix();return s.a=e,s.d=t,this.setMatrix(s),this.graph.trigger("scale",{sx:e,sy:t,ox:r,oy:o}),this}clampScale(e){const t=this.graph.options.scaling;return lo(e,t.min||.01,t.max||16)}getZoom(){return this.getScale().sx}zoom(e,t){t=t||{};let r=e,o=e;const s=this.getScale(),i=this.getComputedSize();let l=i.width/2,a=i.height/2;if(t.absolute||(r+=s.sx,o+=s.sy),t.scaleGrid&&(r=Math.round(r/t.scaleGrid)*t.scaleGrid,o=Math.round(o/t.scaleGrid)*t.scaleGrid),t.maxScale&&(r=Math.min(t.maxScale,r),o=Math.min(t.maxScale,o)),t.minScale&&(r=Math.max(t.minScale,r),o=Math.max(t.minScale,o)),t.center&&(l=t.center.x,a=t.center.y),r=this.clampScale(r),o=this.clampScale(o),l||a){const c=this.getTranslation(),u=l-(l-c.tx)*(r/s.sx),d=a-(a-c.ty)*(o/s.sy);(u!==c.tx||d!==c.ty)&&this.translate(u,d)}return this.scale(r,o),this}getRotation(){return $ie(this.getMatrix())}rotate(e,t,r){if(t==null||r==null){const s=Vt.getBBox(this.stage);t=s.width/2,r=s.height/2}const o=this.getMatrix().translate(t,r).rotate(e).translate(-t,-r);return this.setMatrix(o),this}getTranslation(){return Die(this.getMatrix())}translate(e,t){const r=this.getMatrix();r.e=e||0,r.f=t||0,this.setMatrix(r);const o=this.getTranslation();return this.options.x=o.tx,this.options.y=o.ty,this.graph.trigger("translate",Object.assign({},o)),this}setOrigin(e,t){return this.translate(e||0,t||0)}fitToContent(e,t,r,o){if(typeof e=="object"){const b=e;e=b.gridWidth||1,t=b.gridHeight||1,r=b.padding||0,o=b}else e=e||1,t=t||1,r=r||0,o==null&&(o={});const s=ga(r),i=o.border||0,l=o.contentArea?$e.create(o.contentArea):this.getContentArea(o);i>0&&l.inflate(i);const a=this.getScale(),c=this.getTranslation(),u=a.sx,d=a.sy;l.x*=u,l.y*=d,l.width*=u,l.height*=d;let f=Math.max(Math.ceil((l.width+l.x)/e),1)*e,h=Math.max(Math.ceil((l.height+l.y)/t),1)*t,p=0,g=0;(o.allowNewOrigin==="negative"&&l.x<0||o.allowNewOrigin==="positive"&&l.x>=0||o.allowNewOrigin==="any")&&(p=Math.ceil(-l.x/e)*e,p+=s.left,f+=p),(o.allowNewOrigin==="negative"&&l.y<0||o.allowNewOrigin==="positive"&&l.y>=0||o.allowNewOrigin==="any")&&(g=Math.ceil(-l.y/t)*t,g+=s.top,h+=g),f+=s.right,h+=s.bottom,f=Math.max(f,o.minWidth||0),h=Math.max(h,o.minHeight||0),f=Math.min(f,o.maxWidth||Number.MAX_SAFE_INTEGER),h=Math.min(h,o.maxHeight||Number.MAX_SAFE_INTEGER);const m=this.getComputedSize(),v=f!==m.width||h!==m.height;return(p!==c.tx||g!==c.ty)&&this.translate(p,g),v&&this.resize(f,h),new $e(-p/u,-g/d,f/u,h/d)}scaleContentToFit(e={}){this.scaleContentToFitImpl(e)}scaleContentToFitImpl(e={},t=!0){let r,o;if(e.contentArea){const v=e.contentArea;r=this.graph.localToGraph(v),o=K.create(v)}else r=this.getContentBBox(e),o=this.graph.graphToLocal(r);if(!r.width||!r.height)return;const s=ga(e.padding),i=e.minScale||0,l=e.maxScale||Number.MAX_SAFE_INTEGER,a=e.minScaleX||i,c=e.maxScaleX||l,u=e.minScaleY||i,d=e.maxScaleY||l;let f;if(e.viewportArea)f=e.viewportArea;else{const v=this.getComputedSize(),w=this.getTranslation();f={x:w.tx,y:w.ty,width:v.width,height:v.height}}f=$e.create(f).moveAndExpand({x:s.left,y:s.top,width:-s.left-s.right,height:-s.top-s.bottom});const h=this.getScale();let p=f.width/r.width*h.sx,g=f.height/r.height*h.sy;e.preserveAspectRatio!==!1&&(p=g=Math.min(p,g));const m=e.scaleGrid;if(m&&(p=m*Math.floor(p/m),g=m*Math.floor(g/m)),p=lo(p,a,c),g=lo(g,u,d),this.scale(p,g),t){const v=this.options,w=f.x-o.x*p-v.x,b=f.y-o.y*g-v.y;this.translate(w,b)}}getContentArea(e={}){return e.useCellGeometry!==!1?this.model.getAllCellsBBox()||new $e:Vt.getBBox(this.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=$e.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,t={}){const r=$e.create(e),o=this.graph;t.contentArea=r,t.viewportArea==null&&(t.viewportArea={x:o.options.x,y:o.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(t,!1);const s=r.getCenter();return this.centerPoint(s.x,s.y),this}zoomToFit(e={}){return this.zoomToRect(this.getContentArea(e),e)}centerPoint(e,t){const r=this.getComputedSize(),o=this.getScale(),s=this.getTranslation(),i=r.width/2,l=r.height/2;e=typeof e=="number"?e:i,t=typeof t=="number"?t:l,e=i-e*o.sx,t=l-t*o.sy,(s.tx!==e||s.ty!==t)&&this.translate(e,t)}centerContent(e){const r=this.graph.getContentArea(e).getCenter();this.centerPoint(r.x,r.y)}centerCell(e){return this.positionCell(e,"center")}positionPoint(e,t,r){const o=this.getComputedSize();t=Bo(t,Math.max(0,o.width)),t<0&&(t=o.width+t),r=Bo(r,Math.max(0,o.height)),r<0&&(r=o.height+r);const s=this.getTranslation(),i=this.getScale(),l=t-e.x*i.sx,a=r-e.y*i.sy;(s.tx!==l||s.ty!==a)&&this.translate(l,a)}positionRect(e,t){const r=$e.create(e);switch(t){case"center":return this.positionPoint(r.getCenter(),"50%","50%");case"top":return this.positionPoint(r.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(r.getTopRight(),"100%",0);case"right":return this.positionPoint(r.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(r.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(r.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(r.getBottomLeft(),0,"100%");case"left":return this.positionPoint(r.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(r.getTopLeft(),0,0);default:return this}}positionCell(e,t){const r=e.getBBox();return this.positionRect(r,t)}positionContent(e,t){const r=this.graph.getContentArea(t);return this.positionRect(r,e)}}var Fue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class I0 extends Un{get elem(){return this.view.background}init(){this.startListening(),this.options.background&&this.draw(this.options.background)}startListening(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}stopListening(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}updateBackgroundImage(e={}){let t=e.size||"auto auto",r=e.position||"center";const o=this.graph.transform.getScale(),s=this.graph.translate();if(typeof r=="object"){const i=s.tx+o.sx*(r.x||0),l=s.ty+o.sy*(r.y||0);r=`${i}px ${l}px`}typeof t=="object"&&(t=$e.fromSize(t).scale(o.sx,o.sy),t=`${t.width}px ${t.height}px`),this.elem.style.backgroundSize=t,this.elem.style.backgroundPosition=r}drawBackgroundImage(e,t={}){if(!(e instanceof HTMLImageElement)){this.elem.style.backgroundImage="";return}const r=this.optionsCache;if(r&&r.image!==t.image)return;let o;const s=t.opacity,i=t.size;let l=t.repeat||"no-repeat";const a=kd.registry.get(l);if(typeof a=="function"){const u=t.quality||1;e.width*=u,e.height*=u;const d=a(e,t);if(!(d instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");o=d.toDataURL("image/png"),t.repeat&&l!==t.repeat?l=t.repeat:l="repeat",typeof i=="object"?(i.width*=d.width/e.width,i.height*=d.height/e.height):i===void 0&&(t.size={width:d.width/u,height:d.height/u})}else o=e.src,i===void 0&&(t.size={width:e.width,height:e.height});r!=null&&typeof t.size=="object"&&t.image===r.image&&t.repeat===r.repeat&&t.quality===r.quality&&(r.size=ud(t.size));const c=this.elem.style;c.backgroundImage=`url(${o})`,c.backgroundRepeat=l,c.opacity=s==null||s>=1?"":`${s}`,this.updateBackgroundImage(t)}updateBackgroundColor(e){this.elem.style.backgroundColor=e||""}updateBackgroundOptions(e){this.graph.options.background=e}update(){this.optionsCache&&this.updateBackgroundImage(this.optionsCache)}draw(e){const t=e||{};if(this.updateBackgroundOptions(e),this.updateBackgroundColor(t.color),t.image){this.optionsCache=ud(t);const r=document.createElement("img");r.onload=()=>this.drawBackgroundImage(r,e),r.setAttribute("crossorigin","anonymous"),r.src=t.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}Fue([Un.dispose()],I0.prototype,"dispose",null);var zue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class L0 extends Un{get widgetOptions(){return this.options.panning}get pannable(){return this.widgetOptions&&this.widgetOptions.enabled===!0}init(){this.onRightMouseDown=this.onRightMouseDown.bind(this),this.onSpaceKeyDown=this.onSpaceKeyDown.bind(this),this.onSpaceKeyUp=this.onSpaceKeyUp.bind(this),this.startListening(),this.updateClassName()}startListening(){this.graph.on("blank:mousedown",this.onMouseDown,this),this.graph.on("node:unhandled:mousedown",this.onMouseDown,this),this.graph.on("edge:unhandled:mousedown",this.onMouseDown,this),Gn.on(this.graph.container,"mousedown",this.onRightMouseDown),Gn.on(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle=new aP(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()}stopListening(){this.graph.off("blank:mousedown",this.onMouseDown,this),this.graph.off("node:unhandled:mousedown",this.onMouseDown,this),this.graph.off("edge:unhandled:mousedown",this.onMouseDown,this),Gn.off(this.graph.container,"mousedown",this.onRightMouseDown),Gn.off(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle&&this.mousewheelHandle.disable()}allowPanning(e,t){return e.spaceKey=this.isSpaceKeyPressed,this.pannable&&kc.isMatch(e,this.widgetOptions.modifiers,t)}startPanning(e){const t=this.view.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.panning=!0,this.updateClassName(),Gn.on(document.body,{"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this),"mouseleave.panning":this.stopPanning.bind(this)}),Gn.on(window,"mouseup.panning",this.stopPanning.bind(this))}pan(e){const t=this.view.normalizeEvent(e),r=t.clientX-this.clientX,o=t.clientY-this.clientY;this.clientX=t.clientX,this.clientY=t.clientY,this.graph.translateBy(r,o)}stopPanning(e){this.panning=!1,this.updateClassName(),Gn.off(document.body,".panning"),Gn.off(window,".panning")}updateClassName(){const e=this.view.container,t=this.view.prefixClassName("graph-panning"),r=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(Nt(e,t),co(e,r)):(co(e,t),Nt(e,r)):(co(e,t),co(e,r))}onMouseDown({e}){if(!this.allowBlankMouseDown(e))return;const t=this.graph.getPlugin("selection"),r=t&&t.allowRubberband(e,!0);(this.allowPanning(e,!0)||this.allowPanning(e)&&!r)&&this.startPanning(e)}onRightMouseDown(e){const t=this.widgetOptions.eventTypes;t!=null&&t.includes("rightMouseDown")&&e.button===2&&this.allowPanning(e,!0)&&this.startPanning(e)}onMouseWheel(e,t,r){this.graph.translateBy(-t,-r)}onSpaceKeyDown(e){e.which===32&&(this.isSpaceKeyPressed=!0)}onSpaceKeyUp(e){e.which===32&&(this.isSpaceKeyPressed=!1)}allowBlankMouseDown(e){const t=this.widgetOptions.eventTypes;return(t==null?void 0:t.includes("leftMouseDown"))&&e.button===0||(t==null?void 0:t.includes("mouseWheelDown"))&&e.button===1}allowMouseWheel(e){var t;return this.pannable&&!e.ctrlKey&&((t=this.widgetOptions.eventTypes)===null||t===void 0?void 0:t.includes("mouseWheel"))}autoPanning(e,t){const o=this.graph.getGraphArea();let s=0,i=0;e<=o.left+10&&(s=-10),t<=o.top+10&&(i=-10),e>=o.right-10&&(s=10),t>=o.bottom-10&&(i=10),(s!==0||i!==0)&&this.graph.translateBy(-s,-i)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}zue([Un.dispose()],L0.prototype,"dispose",null);var jue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class R0 extends Un{constructor(){super(...arguments),this.cumulatedFactor=1}get widgetOptions(){return this.options.mousewheel}init(){this.container=this.graph.container,this.target=this.widgetOptions.global?document:this.container,this.mousewheelHandle=new aP(this.target,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.widgetOptions.enabled&&this.enable(!0)}get disabled(){return this.widgetOptions.enabled!==!0}enable(e){(this.disabled||e)&&(this.widgetOptions.enabled=!0,this.mousewheelHandle.enable())}disable(){this.disabled||(this.widgetOptions.enabled=!1,this.mousewheelHandle.disable())}allowMouseWheel(e){const t=this.widgetOptions.guard;return(t==null||t(e))&&kc.isMatch(e,this.widgetOptions.modifiers)}onMouseWheel(e){const t=this.widgetOptions.guard;if((t==null||t(e))&&kc.isMatch(e,this.widgetOptions.modifiers)){const r=this.widgetOptions.factor||1.2;this.currentScale==null&&(this.startPos={x:e.clientX,y:e.clientY},this.currentScale=this.graph.transform.getScale().sx),e.deltaY<0?this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:(this.cumulatedFactor=Math.round(this.currentScale*r*20)/20/this.currentScale,this.cumulatedFactor===1&&(this.cumulatedFactor=1.05)):this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:(this.cumulatedFactor=Math.round(this.currentScale*(1/r)*20)/20/this.currentScale,this.cumulatedFactor===1&&(this.cumulatedFactor=.95)),this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);const s=this.currentScale;let i=this.graph.transform.clampScale(s*this.cumulatedFactor);const l=this.widgetOptions.minScale||Number.MIN_SAFE_INTEGER,a=this.widgetOptions.maxScale||Number.MAX_SAFE_INTEGER;if(i=lo(i,l,a),i!==s)if(this.widgetOptions.zoomAtMousePosition){const u=!!this.graph.getPlugin("scroller")?this.graph.clientToLocal(this.startPos):this.graph.clientToGraph(this.startPos);this.graph.zoom(i,{absolute:!0,center:u.clone()})}else this.graph.zoom(i,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}jue([Xs.dispose()],R0.prototype,"dispose",null);var Hue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class sN extends Un{init(){this.resetRenderArea=ah(this.resetRenderArea,200,{leading:!0}),this.resetRenderArea(),this.startListening()}startListening(){this.graph.on("translate",this.resetRenderArea,this),this.graph.on("scale",this.resetRenderArea,this),this.graph.on("resize",this.resetRenderArea,this)}stopListening(){this.graph.off("translate",this.resetRenderArea,this),this.graph.off("scale",this.resetRenderArea,this),this.graph.off("resize",this.resetRenderArea,this)}enableVirtualRender(){this.options.virtual=!0,this.resetRenderArea()}disableVirtualRender(){this.options.virtual=!1,this.graph.renderer.setRenderArea(void 0)}resetRenderArea(){if(this.options.virtual){const e=this.graph.getGraphArea();this.graph.renderer.setRenderArea(e)}}dispose(){this.stopListening()}}Hue([Un.dispose()],sN.prototype,"dispose",null);class Uue{constructor(){this.isFlushing=!1,this.isFlushPending=!1,this.scheduleId=0,this.queue=[],this.frameInterval=33,this.initialTime=Date.now()}queueJob(e){if(e.priority&Bs.PRIOR)e.cb();else{const t=this.findInsertionIndex(e);t>=0&&this.queue.splice(t,0,e)}}queueFlush(){!this.isFlushing&&!this.isFlushPending&&(this.isFlushPending=!0,this.scheduleJob())}queueFlushSync(){!this.isFlushing&&!this.isFlushPending&&(this.isFlushPending=!0,this.flushJobsSync())}clearJobs(){this.queue.length=0,this.isFlushing=!1,this.isFlushPending=!1,this.cancelScheduleJob()}flushJobs(){this.isFlushPending=!1,this.isFlushing=!0;const e=this.getCurrentTime();let t;for(;(t=this.queue.shift())&&(t.cb(),!(this.getCurrentTime()-e>=this.frameInterval)););this.isFlushing=!1,this.queue.length&&this.queueFlush()}flushJobsSync(){this.isFlushPending=!1,this.isFlushing=!0;let e;for(;e=this.queue.shift();)try{e.cb()}catch{}this.isFlushing=!1}findInsertionIndex(e){let t=0,r=this.queue.length,o=r-1;const s=e.priority;for(;t<=o;){const i=(o-t>>1)+t;s<=this.queue[i].priority?t=i+1:(r=i,o=i-1)}return r}scheduleJob(){"requestIdleCallback"in window?(this.scheduleId&&this.cancelScheduleJob(),this.scheduleId=window.requestIdleCallback(this.flushJobs.bind(this),{timeout:100})):(this.scheduleId&&this.cancelScheduleJob(),this.scheduleId=window.setTimeout(this.flushJobs.bind(this)))}cancelScheduleJob(){"cancelIdleCallback"in window?(this.scheduleId&&window.cancelIdleCallback(this.scheduleId),this.scheduleId=0):(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduleId=0)}getCurrentTime(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()-this.initialTime}}var Bs;(function(n){n[n.Update=2]="Update",n[n.RenderEdge=4]="RenderEdge",n[n.RenderNode=8]="RenderNode",n[n.PRIOR=1048576]="PRIOR"})(Bs||(Bs={}));var Wue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class On extends Xs{get model(){return this.graph.model}get container(){return this.graph.view.stage}constructor(e){super(),this.views={},this.willRemoveViews={},this.queue=new Uue,this.graph=e,this.init()}init(){this.startListening(),this.renderViews(this.model.getCells())}startListening(){this.model.on("reseted",this.onModelReseted,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}stopListening(){this.model.off("reseted",this.onModelReseted,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}onModelReseted({options:e}){this.queue.clearJobs(),this.removeZPivots(),this.resetViews();const t=this.model.getCells();this.renderViews(t,Object.assign(Object.assign({},e),{queue:t.map(r=>r.id)}))}onCellAdded({cell:e,options:t}){this.renderViews([e],t)}onCellRemoved({cell:e}){this.removeViews([e])}onCellZIndexChanged({cell:e,options:t}){const r=this.views[e.id];r&&this.requestViewUpdate(r.view,On.FLAG_INSERT,t,Bs.Update,!0)}onCellVisibleChanged({cell:e,current:t}){this.toggleVisible(e,!!t)}requestViewUpdate(e,t,r={},o=Bs.Update,s=!0){const i=e.cell.id,l=this.views[i];if(!l)return;l.flag=t,l.options=r,(e.hasAction(t,["translate","resize","rotate"])||r.async===!1)&&(o=Bs.PRIOR,s=!1),this.queue.queueJob({id:i,priority:o,cb:()=>{this.renderViewInArea(e,t,r);const u=r.queue;if(u){const d=u.indexOf(e.cell.id);d>=0&&u.splice(d,1),u.length===0&&this.graph.trigger("render:done")}}}),this.getEffectedEdges(e).forEach(u=>{this.requestViewUpdate(u.view,u.flag,r,o,!1)}),s&&this.flush()}setRenderArea(e){this.renderArea=e,this.flushWaitingViews()}isViewMounted(e){if(e==null)return!1;const t=this.views[e.cell.id];return t?t.state===On.ViewState.MOUNTED:!1}renderViews(e,t={}){e.sort((r,o)=>r.isNode()&&o.isEdge()?-1:0),e.forEach(r=>{const o=r.id,s=this.views;let i=0,l=s[o];if(l)i=On.FLAG_INSERT;else{const a=this.createCellView(r);a&&(a.graph=this.graph,i=On.FLAG_INSERT|a.getBootstrapFlag(),l={view:a,flag:i,options:t,state:On.ViewState.CREATED},this.views[o]=l)}l&&this.requestViewUpdate(l.view,i,t,this.getRenderPriority(l.view),!1)}),this.flush()}renderViewInArea(e,t,r={}){const o=e.cell,s=o.id,i=this.views[s];if(!i)return;let l=0;this.isUpdatable(e)?(l=this.updateView(e,t,r),i.flag=l):i.state===On.ViewState.MOUNTED?(l=this.updateView(e,t,r),i.flag=l):i.state=On.ViewState.WAITING,l&&o.isEdge()&&!(l&e.getFlag(["source","target"]))&&this.queue.queueJob({id:s,priority:Bs.RenderEdge,cb:()=>{this.updateView(e,t,r)}})}removeViews(e){e.forEach(t=>{const r=t.id,o=this.views[r];o&&(this.willRemoveViews[r]=o,delete this.views[r],this.queue.queueJob({id:r,priority:this.getRenderPriority(o.view),cb:()=>{this.removeView(o.view)}}))}),this.flush()}flush(){this.graph.options.async?this.queue.queueFlush():this.queue.queueFlushSync()}flushWaitingViews(){Object.values(this.views).forEach(e=>{if(e&&e.state===On.ViewState.WAITING){const{view:t,flag:r,options:o}=e;this.requestViewUpdate(t,r,o,this.getRenderPriority(t),!1)}}),this.flush()}updateView(e,t,r={}){if(e==null)return 0;if(mn.isCellView(e)){if(t&On.FLAG_REMOVE)return this.removeView(e.cell),0;t&On.FLAG_INSERT&&(this.insertView(e),t^=On.FLAG_INSERT)}return t?e.confirmUpdate(t,r):0}insertView(e){const t=this.views[e.cell.id];if(t){const r=e.cell.getZIndex(),o=this.addZPivot(r);this.container.insertBefore(e.container,o),e.cell.isVisible()||this.toggleVisible(e.cell,!1),t.state=On.ViewState.MOUNTED,this.graph.trigger("view:mounted",{view:e})}}resetViews(){this.willRemoveViews=Object.assign(Object.assign({},this.views),this.willRemoveViews),Object.values(this.willRemoveViews).forEach(e=>{e&&this.removeView(e.view)}),this.views={},this.willRemoveViews={}}removeView(e){const t=e.cell,r=this.willRemoveViews[t.id];r&&e&&(r.view.remove(),delete this.willRemoveViews[t.id],this.graph.trigger("view:unmounted",{view:e}))}toggleVisible(e,t){const r=this.model.getConnectedEdges(e);for(let s=0,i=r.length;so&&(o=l,e-1)}const s=this.container;if(o!==-1/0){const i=t[o];s.insertBefore(r,i.nextSibling)}else s.insertBefore(r,s.firstChild);return r}removeZPivots(){this.zPivots&&Object.values(this.zPivots).forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),this.zPivots={}}createCellView(e){const t={graph:this.graph},r=this.graph.options.createCellView;if(r){const s=pt(r,this.graph,e);if(s)return new s(e,t);if(s===null)return null}const o=e.view;if(o!=null&&typeof o=="string"){const s=mn.registry.get(o);return s?new s(e,t):mn.registry.onNotFound(o)}return e.isNode()?new qr(e,t):e.isEdge()?new Qs(e,t):null}getEffectedEdges(e){const t=[],r=e.cell,o=this.model.getConnectedEdges(r);for(let s=0,i=o.length;s{this.views[e].view.dispose()}),this.views={}}}Wue([Xs.dispose()],On.prototype,"dispose",null);(function(n){n.FLAG_INSERT=1<<30,n.FLAG_REMOVE=1<<29,n.FLAG_RENDER=(1<<26)-1})(On||(On={}));(function(n){(function(e){e[e.CREATED=0]="CREATED",e[e.MOUNTED=1]="MOUNTED",e[e.WAITING=2]="WAITING"})(n.ViewState||(n.ViewState={}))})(On||(On={}));var Gue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class $0 extends Un{constructor(){super(...arguments),this.schedule=new On(this.graph)}requestViewUpdate(e,t,r={}){this.schedule.requestViewUpdate(e,t,r)}isViewMounted(e){return this.schedule.isViewMounted(e)}setRenderArea(e){this.schedule.setRenderArea(e)}findViewByElem(e){if(e==null)return null;const t=this.options.container,r=typeof e=="string"?t.querySelector(e):e instanceof Element?e:e[0];if(r){const o=this.graph.view.findAttr("data-cell-id",r);if(o){const s=this.schedule.views;if(s[o])return s[o].view}}return null}findViewByCell(e){if(e==null)return null;const t=At.isCell(e)?e.id:e,r=this.schedule.views;return r[t]?r[t].view:null}findViewsFromPoint(e){const t={x:e.x,y:e.y};return this.model.getCells().map(r=>this.findViewByCell(r)).filter(r=>r!=null?Vt.getBBox(r.container,{target:this.view.stage}).containsPoint(t):!1)}findEdgeViewsFromPoint(e,t=5){return this.model.getEdges().map(r=>this.findViewByCell(r)).filter(r=>{if(r!=null){const o=r.getClosestPoint(e);if(o)return o.distance(e)<=t}return!1})}findViewsInArea(e,t={}){const r=$e.create(e);return this.model.getCells().map(o=>this.findViewByCell(o)).filter(o=>{if(o){if(t.nodeOnly&&!o.isNodeView())return!1;const s=Vt.getBBox(o.container,{target:this.view.stage});return s.width===0?s.inflate(1,0):s.height===0&&s.inflate(0,1),t.strict?r.containsRect(s):r.isIntersectWithRect(s)}return!1})}dispose(){this.schedule.dispose()}}Gue([Un.dispose()],$0.prototype,"dispose",null);var SE=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const c=a.opacity!=null&&Number.isFinite(a.opacity)?a.opacity:1;return``}),i=`<${r}>${s.join("")}`,l=Object.assign({id:t},e.attrs);ft.create(i,l).appendTo(this.defs)}return t}marker(e){const{id:t,refX:r,refY:o,markerUnits:s,markerOrient:i,tagName:l,children:a}=e,c=SE(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let u=t;if(u||(u=`marker-${this.cid}-${Dm(JSON.stringify(e))}`),!this.isDefined(u)){l!=="path"&&delete c.d;const d=ft.create("marker",{refX:r,refY:o,id:u,overflow:"visible",orient:i??"auto",markerUnits:s||"userSpaceOnUse"},a?a.map(f=>{var{tagName:h}=f,p=SE(f,["tagName"]);return ft.create(`${h}`||"path",Td(Object.assign(Object.assign({},c),p)))}):[ft.create(l||"path",Td(c))]);this.defs.appendChild(d.node)}return u}remove(e){const t=this.svg.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}class lN extends Un{getClientMatrix(){return Hn(this.view.stage.getScreenCTM())}getClientOffset(){const e=this.view.svg.getBoundingClientRect();return new K(e.left,e.top)}getPageOffset(){return this.getClientOffset().translate(window.scrollX,window.scrollY)}snapToGrid(e,t){return(typeof e=="number"?this.clientToLocalPoint(e,t):this.clientToLocalPoint(e.x,e.y)).snapToGrid(this.graph.getGridSize())}localToGraphPoint(e,t){const r=K.create(e,t);return Vt.transformPoint(r,this.graph.matrix())}localToClientPoint(e,t){const r=K.create(e,t);return Vt.transformPoint(r,this.getClientMatrix())}localToPagePoint(e,t){return(typeof e=="number"?this.localToGraphPoint(e,t):this.localToGraphPoint(e)).translate(this.getPageOffset())}localToGraphRect(e,t,r,o){const s=$e.create(e,t,r,o);return Vt.transformRectangle(s,this.graph.matrix())}localToClientRect(e,t,r,o){const s=$e.create(e,t,r,o);return Vt.transformRectangle(s,this.getClientMatrix())}localToPageRect(e,t,r,o){return(typeof e=="number"?this.localToGraphRect(e,t,r,o):this.localToGraphRect(e)).translate(this.getPageOffset())}graphToLocalPoint(e,t){const r=K.create(e,t);return Vt.transformPoint(r,this.graph.matrix().inverse())}clientToLocalPoint(e,t){const r=K.create(e,t);return Vt.transformPoint(r,this.getClientMatrix().inverse())}clientToGraphPoint(e,t){const r=K.create(e,t);return Vt.transformPoint(r,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,t){const o=K.create(e,t).diff(this.getPageOffset());return this.graphToLocalPoint(o)}graphToLocalRect(e,t,r,o){const s=$e.create(e,t,r,o);return Vt.transformRectangle(s,this.graph.matrix().inverse())}clientToLocalRect(e,t,r,o){const s=$e.create(e,t,r,o);return Vt.transformRectangle(s,this.getClientMatrix().inverse())}clientToGraphRect(e,t,r,o){const s=$e.create(e,t,r,o);return Vt.transformRectangle(s,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,t,r,o){const s=$e.create(e,t,r,o),i=this.getPageOffset();return s.x-=i.x,s.y-=i.y,this.graphToLocalRect(s)}}var que=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class wp extends Un{constructor(){super(...arguments),this.highlights={}}init(){this.startListening()}startListening(){this.graph.on("cell:highlight",this.onCellHighlight,this),this.graph.on("cell:unhighlight",this.onCellUnhighlight,this)}stopListening(){this.graph.off("cell:highlight",this.onCellHighlight,this),this.graph.off("cell:unhighlight",this.onCellUnhighlight,this)}onCellHighlight({view:e,magnet:t,options:r={}}){const o=this.resolveHighlighter(r);if(!o)return;const s=this.getHighlighterId(t,o);if(!this.highlights[s]){const i=o.highlighter;i.highlight(e,t,Object.assign({},o.args)),this.highlights[s]={cellView:e,magnet:t,highlighter:i,args:o.args}}}onCellUnhighlight({magnet:e,options:t={}}){const r=this.resolveHighlighter(t);if(!r)return;const o=this.getHighlighterId(e,r);this.unhighlight(o)}resolveHighlighter(e){const t=this.options;let r=e.highlighter;if(r==null){const l=e.type;r=l&&t.highlighting[l]||t.highlighting.default}if(r==null)return null;const o=typeof r=="string"?{name:r}:r,s=o.name,i=qs.registry.get(s);return i==null?qs.registry.onNotFound(s):(qs.check(s,i),{name:s,highlighter:i,args:o.args||{}})}getHighlighterId(e,t){return S0(e),t.name+e.id+JSON.stringify(t.args)}unhighlight(e){const t=this.highlights[e];t&&(t.highlighter.unhighlight(t.cellView,t.magnet,t.args),delete this.highlights[e])}dispose(){Object.keys(this.highlights).forEach(e=>this.unhighlight(e)),this.stopListening()}}que([wp.dispose()],wp.prototype,"dispose",null);var Kue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class aN extends Un{getScroller(){const e=this.graph.getPlugin("scroller");return e&&e.options.enabled?e:null}getContainer(){const e=this.getScroller();return e?e.container.parentElement:this.graph.container.parentElement}getSensorTarget(){const e=this.options.autoResize;if(e)return typeof e=="boolean"?this.getContainer():e}init(){if(this.options.autoResize){const t=this.getSensorTarget();t&&fp.bind(t,()=>{const r=t.offsetWidth,o=t.offsetHeight;this.resize(r,o)})}}resize(e,t){const r=this.getScroller();r?r.resize(e,t):this.graph.transform.resize(e,t)}dispose(){fp.clear(this.graph.container)}}Kue([Un.dispose()],aN.prototype,"dispose",null);var Yue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class cr extends Gr{get container(){return this.options.container}get[Symbol.toStringTag](){return cr.toStringTag}constructor(e){super(),this.installedPlugins=new Set,this.options=Rd.get(e),this.css=new Tb(this),this.view=new ys(this),this.defs=new iN(this),this.coord=new lN(this),this.transform=new oN(this),this.highlight=new wp(this),this.grid=new N0(this),this.background=new I0(this),this.options.model?this.model=this.options.model:(this.model=new Fo,this.model.graph=this),this.renderer=new $0(this),this.panning=new L0(this),this.mousewheel=new R0(this),this.virtualRender=new sN(this),this.size=new aN(this)}isNode(e){return e.isNode()}isEdge(e){return e.isEdge()}resetCells(e,t={}){return this.model.resetCells(e,t),this}clearCells(e={}){return this.model.clear(e),this}toJSON(e={}){return this.model.toJSON(e)}parseJSON(e){return this.model.parseJSON(e)}fromJSON(e,t={}){return this.model.fromJSON(e,t),this}getCellById(e){return this.model.getCell(e)}addNode(e,t={}){return this.model.addNode(e,t)}addNodes(e,t={}){return this.addCell(e.map(r=>yn.isNode(r)?r:this.createNode(r)),t)}createNode(e){return this.model.createNode(e)}removeNode(e,t={}){return this.model.removeCell(e,t)}addEdge(e,t={}){return this.model.addEdge(e,t)}addEdges(e,t={}){return this.addCell(e.map(r=>hn.isEdge(r)?r:this.createEdge(r)),t)}removeEdge(e,t={}){return this.model.removeCell(e,t)}createEdge(e){return this.model.createEdge(e)}addCell(e,t={}){return this.model.addCell(e,t),this}removeCell(e,t={}){return this.model.removeCell(e,t)}removeCells(e,t={}){return this.model.removeCells(e,t)}removeConnectedEdges(e,t={}){return this.model.removeConnectedEdges(e,t)}disconnectConnectedEdges(e,t={}){return this.model.disconnectConnectedEdges(e,t),this}hasCell(e){return this.model.has(e)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}getNodes(){return this.model.getNodes()}getEdges(){return this.model.getEdges()}getOutgoingEdges(e){return this.model.getOutgoingEdges(e)}getIncomingEdges(e){return this.model.getIncomingEdges(e)}getConnectedEdges(e,t={}){return this.model.getConnectedEdges(e,t)}getRootNodes(){return this.model.getRoots()}getLeafNodes(){return this.model.getLeafs()}isRootNode(e){return this.model.isRoot(e)}isLeafNode(e){return this.model.isLeaf(e)}getNeighbors(e,t={}){return this.model.getNeighbors(e,t)}isNeighbor(e,t,r={}){return this.model.isNeighbor(e,t,r)}getSuccessors(e,t={}){return this.model.getSuccessors(e,t)}isSuccessor(e,t,r={}){return this.model.isSuccessor(e,t,r)}getPredecessors(e,t={}){return this.model.getPredecessors(e,t)}isPredecessor(e,t,r={}){return this.model.isPredecessor(e,t,r)}getCommonAncestor(...e){return this.model.getCommonAncestor(...e)}getSubGraph(e,t={}){return this.model.getSubGraph(e,t)}cloneSubGraph(e,t={}){return this.model.cloneSubGraph(e,t)}cloneCells(e){return this.model.cloneCells(e)}getNodesFromPoint(e,t){return this.model.getNodesFromPoint(e,t)}getNodesInArea(e,t,r,o,s){return this.model.getNodesInArea(e,t,r,o,s)}getNodesUnderNode(e,t={}){return this.model.getNodesUnderNode(e,t)}searchCell(e,t,r={}){return this.model.search(e,t,r),this}getShortestPath(e,t,r={}){return this.model.getShortestPath(e,t,r)}getAllCellsBBox(){return this.model.getAllCellsBBox()}getCellsBBox(e,t={}){return this.model.getCellsBBox(e,t)}startBatch(e,t={}){this.model.startBatch(e,t)}stopBatch(e,t={}){this.model.stopBatch(e,t)}batchUpdate(e,t,r){const o=typeof e=="string"?e:"update",s=typeof e=="string"?t:e,i=typeof t=="function"?r:t;this.startBatch(o,i);const l=s();return this.stopBatch(o,i),l}updateCellId(e,t){return this.model.updateCellId(e,t)}findView(e){return At.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return $e.isRectangleLike(e)?this.findViewsInArea(e):K.isPointLike(e)?this.findViewsFromPoint(e):[]}findViewByCell(e){return this.renderer.findViewByCell(e)}findViewByElem(e){return this.renderer.findViewByElem(e)}findViewsFromPoint(e,t){const r=typeof e=="number"?{x:e,y:t}:e;return this.renderer.findViewsFromPoint(r)}findViewsInArea(e,t,r,o,s){const i=typeof e=="number"?{x:e,y:t,width:r,height:o}:e,l=typeof e=="number"?s:t;return this.renderer.findViewsInArea(i,l)}matrix(e){return typeof e>"u"?this.transform.getMatrix():(this.transform.setMatrix(e),this)}resize(e,t){const r=this.getPlugin("scroller");return r?r.resize(e,t):this.transform.resize(e,t),this}scale(e,t=e,r=0,o=0){return typeof e>"u"?this.transform.getScale():(this.transform.scale(e,t,r,o),this)}zoom(e,t){const r=this.getPlugin("scroller");if(r){if(typeof e>"u")return r.zoom();r.zoom(e,t)}else{if(typeof e>"u")return this.transform.getZoom();this.transform.zoom(e,t)}return this}zoomTo(e,t={}){const r=this.getPlugin("scroller");return r?r.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})):this.transform.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})),this}zoomToRect(e,t={}){const r=this.getPlugin("scroller");return r?r.zoomToRect(e,t):this.transform.zoomToRect(e,t),this}zoomToFit(e={}){const t=this.getPlugin("scroller");return t?t.zoomToFit(e):this.transform.zoomToFit(e),this}rotate(e,t,r){return typeof e>"u"?this.transform.getRotation():(this.transform.rotate(e,t,r),this)}translate(e,t){return typeof e>"u"?this.transform.getTranslation():(this.transform.translate(e,t),this)}translateBy(e,t){const r=this.translate(),o=r.tx+e,s=r.ty+t;return this.translate(o,s)}getGraphArea(){return this.transform.getGraphArea()}getContentArea(e={}){return this.transform.getContentArea(e)}getContentBBox(e={}){return this.transform.getContentBBox(e)}fitToContent(e,t,r,o){return this.transform.fitToContent(e,t,r,o)}scaleContentToFit(e={}){return this.transform.scaleContentToFit(e),this}center(e){return this.centerPoint(e)}centerPoint(e,t,r){const o=this.getPlugin("scroller");return o?o.centerPoint(e,t,r):this.transform.centerPoint(e,t),this}centerContent(e){const t=this.getPlugin("scroller");return t?t.centerContent(e):this.transform.centerContent(e),this}centerCell(e,t){const r=this.getPlugin("scroller");return r?r.centerCell(e,t):this.transform.centerCell(e),this}positionPoint(e,t,r,o={}){const s=this.getPlugin("scroller");return s?s.positionPoint(e,t,r,o):this.transform.positionPoint(e,t,r),this}positionRect(e,t,r){const o=this.getPlugin("scroller");return o?o.positionRect(e,t,r):this.transform.positionRect(e,t),this}positionCell(e,t,r){const o=this.getPlugin("scroller");return o?o.positionCell(e,t,r):this.transform.positionCell(e,t),this}positionContent(e,t){const r=this.getPlugin("scroller");return r?r.positionContent(e,t):this.transform.positionContent(e,t),this}snapToGrid(e,t){return this.coord.snapToGrid(e,t)}pageToLocal(e,t,r,o){return $e.isRectangleLike(e)?this.coord.pageToLocalRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.pageToLocalRect(e,t,r,o):this.coord.pageToLocalPoint(e,t)}localToPage(e,t,r,o){return $e.isRectangleLike(e)?this.coord.localToPageRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.localToPageRect(e,t,r,o):this.coord.localToPagePoint(e,t)}clientToLocal(e,t,r,o){return $e.isRectangleLike(e)?this.coord.clientToLocalRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.clientToLocalRect(e,t,r,o):this.coord.clientToLocalPoint(e,t)}localToClient(e,t,r,o){return $e.isRectangleLike(e)?this.coord.localToClientRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.localToClientRect(e,t,r,o):this.coord.localToClientPoint(e,t)}localToGraph(e,t,r,o){return $e.isRectangleLike(e)?this.coord.localToGraphRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.localToGraphRect(e,t,r,o):this.coord.localToGraphPoint(e,t)}graphToLocal(e,t,r,o){return $e.isRectangleLike(e)?this.coord.graphToLocalRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.graphToLocalRect(e,t,r,o):this.coord.graphToLocalPoint(e,t)}clientToGraph(e,t,r,o){return $e.isRectangleLike(e)?this.coord.clientToGraphRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.clientToGraphRect(e,t,r,o):this.coord.clientToGraphPoint(e,t)}defineFilter(e){return this.defs.filter(e)}defineGradient(e){return this.defs.gradient(e)}defineMarker(e){return this.defs.marker(e)}getGridSize(){return this.grid.getGridSize()}setGridSize(e){return this.grid.setGridSize(e),this}showGrid(){return this.grid.show(),this}hideGrid(){return this.grid.hide(),this}clearGrid(){return this.grid.clear(),this}drawGrid(e){return this.grid.draw(e),this}updateBackground(){return this.background.update(),this}drawBackground(e,t){const r=this.getPlugin("scroller");return r!=null&&(this.options.background==null||!t)?r.drawBackground(e,t):this.background.draw(e),this}clearBackground(e){const t=this.getPlugin("scroller");return t!=null&&(this.options.background==null||!e)?t.clearBackground(e):this.background.clear(),this}enableVirtualRender(){return this.virtualRender.enableVirtualRender(),this}disableVirtualRender(){return this.virtualRender.disableVirtualRender(),this}isMouseWheelEnabled(){return!this.mousewheel.disabled}enableMouseWheel(){return this.mousewheel.enable(),this}disableMouseWheel(){return this.mousewheel.disable(),this}toggleMouseWheel(e){return e==null?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():e?this.enableMouseWheel():this.disableMouseWheel(),this}isPannable(){const e=this.getPlugin("scroller");return e?e.isPannable():this.panning.pannable}enablePanning(){const e=this.getPlugin("scroller");return e?e.enablePanning():this.panning.enablePanning(),this}disablePanning(){const e=this.getPlugin("scroller");return e?e.disablePanning():this.panning.disablePanning(),this}togglePanning(e){return e==null?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}use(e,...t){return this.installedPlugins.has(e)||(this.installedPlugins.add(e),e.init(this,...t)),this}getPlugin(e){return Array.from(this.installedPlugins).find(t=>t.name===e)}getPlugins(e){return Array.from(this.installedPlugins).filter(t=>e.includes(t.name))}enablePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const r=this.getPlugins(t);return r==null||r.forEach(o=>{var s;(s=o==null?void 0:o.enable)===null||s===void 0||s.call(o)}),this}disablePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const r=this.getPlugins(t);return r==null||r.forEach(o=>{var s;(s=o==null?void 0:o.disable)===null||s===void 0||s.call(o)}),this}isPluginEnabled(e){var t;const r=this.getPlugin(e);return(t=r==null?void 0:r.isEnabled)===null||t===void 0?void 0:t.call(r)}disposePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const r=this.getPlugins(t);return r==null||r.forEach(o=>{o.dispose(),this.installedPlugins.delete(o)}),this}dispose(e=!0){e&&this.model.dispose(),this.css.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.highlight.dispose(),this.background.dispose(),this.mousewheel.dispose(),this.panning.dispose(),this.view.dispose(),this.renderer.dispose(),this.installedPlugins.forEach(t=>{t.dispose()})}}Yue([Gr.dispose()],cr.prototype,"dispose",null);(function(n){n.View=ys,n.Renderer=$0,n.MouseWheel=R0,n.DefsManager=iN,n.GridManager=N0,n.CoordManager=lN,n.TransformManager=oN,n.HighlightManager=wp,n.BackgroundManager=I0,n.PanningManager=L0})(cr||(cr={}));(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag];return r==null||r===n.toStringTag}n.isGraph=e})(cr||(cr={}));(function(n){function e(t,r){const o=t instanceof HTMLElement?new n({container:t}):new n(t);return r!=null&&o.fromJSON(r),o}n.render=e})(cr||(cr={}));(function(n){n.registerNode=yn.registry.register,n.registerEdge=hn.registry.register,n.registerView=mn.registry.register,n.registerAttr=bs.registry.register,n.registerGrid=ji.registry.register,n.registerFilter=Ic.registry.register,n.registerNodeTool=$c.registry.register,n.registerEdgeTool=Dc.registry.register,n.registerBackground=kd.registry.register,n.registerHighlighter=qs.registry.register,n.registerPortLayout=oa.registry.register,n.registerPortLabelLayout=Lc.registry.register,n.registerMarker=sl.registry.register,n.registerRouter=Hi.registry.register,n.registerConnector=sa.registry.register,n.registerAnchor=Vc.registry.register,n.registerEdgeAnchor=Bc.registry.register,n.registerConnectionPoint=Fc.registry.register})(cr||(cr={}));(function(n){n.unregisterNode=yn.registry.unregister,n.unregisterEdge=hn.registry.unregister,n.unregisterView=mn.registry.unregister,n.unregisterAttr=bs.registry.unregister,n.unregisterGrid=ji.registry.unregister,n.unregisterFilter=Ic.registry.unregister,n.unregisterNodeTool=$c.registry.unregister,n.unregisterEdgeTool=Dc.registry.unregister,n.unregisterBackground=kd.registry.unregister,n.unregisterHighlighter=qs.registry.unregister,n.unregisterPortLayout=oa.registry.unregister,n.unregisterPortLabelLayout=Lc.registry.unregister,n.unregisterMarker=sl.registry.unregister,n.unregisterRouter=Hi.registry.unregister,n.unregisterConnector=sa.registry.unregister,n.unregisterAnchor=Vc.registry.unregister,n.unregisterEdgeAnchor=Bc.registry.unregister,n.unregisterConnectionPoint=Fc.registry.unregister})(cr||(cr={}));var Jue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s},Xue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);othis.renderHTMLComponent())}renderHTMLComponent(){const r=this.selectors&&this.selectors.foContent;if(r){hf(r);const o=n.shapeMaps[this.cell.shape];if(!o)return;let{html:s}=o;typeof s=="function"&&(s=s(this.cell)),s&&(typeof s=="string"?r.innerHTML=s:pf(r,s))}}dispose(){this.cell.off("change:*",this.onCellChangeAny,this)}}Jue([e.dispose()],e.prototype,"dispose",null),n.View=e,function(t){t.action="html",t.config({bootstrap:[t.action],actions:{html:t.action}}),qr.registry.register("html-view",t,!0)}(e=n.View||(n.View={}))})(Hc||(Hc={}));(function(n){n.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},Jt.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),yn.registry.register("html",n,!0)})(Hc||(Hc={}));(function(n){n.shapeMaps={};function e(t){const{shape:r,html:o,effect:s,inherit:i}=t,l=Xue(t,["shape","html","effect","inherit"]);if(!r)throw new Error("should specify shape in config");n.shapeMaps[r]={html:o,effect:s},cr.registerNode(r,Object.assign({inherit:i||"html"},l),!0)}n.register=e})(Hc||(Hc={}));class EE extends yn{}(function(n){function e(t){const r=[],o=Jt.getForeignObjectMarkup();return t?r.push({tagName:t,selector:"body"},o):r.push(o),r}n.config({view:"vue-shape-view",markup:e(),attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}},propHooks(t){if(t.markup==null){const r=t.primer;if(r){t.markup=e(r);let o={};switch(r){case"circle":o={refCx:"50%",refCy:"50%",refR:"50%"};break;case"ellipse":o={refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"};break}t.attrs=un({},{body:Object.assign({refWidth:null,refHeight:null},o)},t.attrs||{})}}return t}}),yn.registry.register("vue-shape",n,!0)})(EE||(EE={}));var Zue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);oet(jd,{to:t},[et(e,{node:r,graph:o})]),provide:()=>({getNode:()=>r,getGraph:()=>o})})))}function ede(n){$g&&delete Cp[n]}function _E(){return $g}function tde(){return $g=!0,me({setup(){return()=>et(Re,{},Object.keys(Cp).map(n=>et(Cp[n])))}})}class xp extends qr{getComponentContainer(){return this.selectors&&this.selectors.foContent}confirmUpdate(e){const t=super.confirmUpdate(e);return this.handleAction(t,xp.action,()=>{this.renderVueComponent()})}targetId(){return`${this.graph.view.cid}:${this.cell.id}`}renderVueComponent(){this.unmountVueComponent();const e=this.getComponentContainer(),t=this.cell,r=this.graph;if(e){const{component:o}=cN[t.shape];o&&(_E()?Que(this.targetId(),o,e,t,r):(this.vm=Zb({render(){return et(o,{node:t,graph:r})},provide(){return{getNode:()=>t,getGraph:()=>r}}}),this.vm.mount(e)))}}unmountVueComponent(){const e=this.getComponentContainer();return this.vm&&(this.vm.unmount(),this.vm=null),e&&(e.innerHTML=""),e}onMouseDown(e,t,r){const o=e.target;if(o.tagName.toLowerCase()==="input"){const i=o.getAttribute("type");if(i==null||["text","password","number","email","search","tel","url"].includes(i))return}super.onMouseDown(e,t,r)}unmount(){return _E()&&ede(this.targetId()),this.unmountVueComponent(),super.unmount(),this}}(function(n){n.action="vue",n.config({bootstrap:[n.action],actions:{component:n.action}}),qr.registry.register("vue-shape-view",n,!0)})(xp||(xp={}));const nde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},rde=F("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"},null,-1),ode=[rde];function sde(n,e){return A(),G("svg",nde,[...ode])}const ide={name:"ep-delete",render:sde},lde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ade=F("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"},null,-1),cde=F("path",{fill:"currentColor",d:"m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),ude=[ade,cde];function dde(n,e){return A(),G("svg",lde,[...ude])}const fde={name:"ep-edit",render:dde},hde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pde=F("path",{fill:"currentColor",d:"M280.768 753.728L691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"},null,-1),gde=[pde];function mde(n,e){return A(),G("svg",hde,[...gde])}const vde={name:"ep-finished",render:mde},bde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},yde=F("path",{fill:"currentColor",d:"m64 448l832-320l-128 704l-446.08-243.328L832 192L242.816 545.472zm256 512V657.024L512 768z"},null,-1),wde=[yde];function Cde(n,e){return A(),G("svg",bde,[...wde])}const xde={name:"ep-promotion",render:Cde},Sde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ede=F("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0a30.592 30.592 0 0 1 0-42.752L764.736 512L452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0a30.592 30.592 0 0 1 0-42.752L508.736 512L196.864 192a30.592 30.592 0 0 1 0-42.688"},null,-1),_de=[Ede];function Tde(n,e){return A(),G("svg",Sde,[..._de])}const TE={name:"ep-d-arrow-right",render:Tde},Ode={class:"text-large font-600 mr-3"},Mde={class:"flex items-center"},Ade=["id","onClick"],kde=["onClick"],Pde={class:"nodesBox"},Nde=["onDragend"],Ide={class:"dialog-footer"},Lde={style:{flex:"auto"}},Rde={__name:"SubFlow",setup(n){const{t:e,tm:t,rt:r}=rn(),o=ni(),s=xo(),i=o.params.robotId,l=tde(),a=D([]),c=D([]);function u(){const I=new Array;for(let N=0;N-1;ot(async()=>{const I=document.getElementById("canvas");h=new cr({container:I,width:I.offsetWidth-10,height:I.offsetHeight,background:{color:"#F2F7FA"},autoResize:!1,connecting:{allowBlank:!1,allowLoop:!1,allowNode:!0,allowMulti:!0,createEdge(){return this.createEdge({shape:"edge",attrs:{line:{stroke:"#8f8f8f",strokeWidth:1,targetMarker:{name:"block",width:12,height:8}}}})}},highlighting:{magnetAvailable:{name:"stroke",args:{padding:4,attrs:{"stroke-width":2,stroke:"black"}}}},panning:!0}),h.on("node:click",({e:X,x:pe,y:fe,node:_e,view:xe})=>{_e.setTools([{name:"button-remove",args:{x:0,y:0}}])}),h.on("node:mouseleave",({e:X,x:pe,y:fe,node:_e,view:xe})=>{_e.hasTool("button-remove")&&_e.removeTool("button-remove")}),h.on("node:dblclick",({e:X,x:pe,y:fe,node:_e,view:xe})=>{_e.setData({currentTime:Date.now()}),p=!0}),h.on("edge:click",({e:X,x:pe,y:fe,edge:_e,view:xe})=>{_e.setTools(["button-remove"])});const N=await tt("GET","subflow",{robotId:i,mainFlowId:g,data:""},null,null);x(v?{status:200,data:N}:N),lt(()=>{k(0)})}),ws(()=>{h!=null&&h.dispose()});function w(I,N,X){const pe=h.addNode({shape:X.type,x:I,y:N});X.cnt++,pe.setData({nodeType:X.type,nodeCnt:X.cnt}),p=!0}function b(I,N){const X=h.pageToLocal(I.pageX,I.pageY);w(X.x,X.y,N)}function y(I){I.preventDefault()}function x(I){I&&I.status==200&&I.data&&(a.value=I.data)}const E=D(!1),T=D("");async function M(){await L();const I=await tt("POST","subflow/new",{robotId:i,mainFlowId:g,data:T.value},null,null);if(I.status==200){const N=a.value.length;x(I),lt(()=>{k(N),T.value=""})}}function O(I){a.value.length<2?Qt.error(e("lang.flow.needOne")):br.confirm(e("lang.flow.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{(await tt("DELETE","subflow",{robotId:i,mainFlowId:g,data:f},null,null)).status==200&&(f=-1,a.value.splice(I,1),k(0)),Qt({type:"success",message:e("lang.common.deleted")})}).catch(()=>{})}async function k(I){I!=f&&(p?br.confirm(e("lang.flow.changeSaveTip"),"Warning",{confirmButtonText:e("lang.common.save"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{await L(),P(I),p=!1}).catch(()=>{}):P(I))}function P(I){const N=document.getElementById(j(f));N&&(N.style.backgroundColor="white",N.style.color="black"),f=I;const X=document.getElementById(j(f));if(X.style.backgroundColor="rgb(245,246,249)",X.style.color="rgb(131,88,179)",a.value[f].canvas){const fe=JSON.parse(a.value[f].canvas).cells;h.fromJSON(fe)}else h.clearCells()}async function L(){$.value=!0,q.value=!0;const I=h.toJSON();I.cells.forEach(function(xe,V,B){xe.shape!="edge"&&(xe.data.nodeId=xe.id)},d);const X=a.value[f],pe=[];for(let xe=0;xe0&&!ge.value)return;W.value=!0,ge.value&&ae(ge.value,"userText","TextPlan"),Te||(Te=re());const I={robotId:i,mainFlowId:g,sessionId:Te,userInputResult:be.value.length==0||ge.value?"Successful":"Timeout",userInput:ge.value,importVariables:[]},N=await tt("POST","flow/answer",null,null,I);if(N.status==200){const X=N.data,pe=X.answers;for(let fe=0;fe{le.value.setScrollTop(ee.value.clientHeight)})}else zf({title:e("lang.common.errTip"),message:et("b",{style:"color: teal"},N.err.message),type:"error"});W.value=!1,Oe.value.focus()}async function ve(){be.value.splice(0,be.value.length),ge.value="",Te="",Z.value=!1,await te()}const Oe=D(),Ye=async()=>{Me.value=!0,await te()};return(I,N)=>{const X=dt,pe=Ky,fe=Tn,_e=Es,xe=LW,V=IW,B=Rr,J=RW,ue=NW,Pe=wn,se=nr,ne=tr,de=vl,We=sg,Ze=zy,Ie=Ss,qe=uY;return A(),G("div",null,[C(ue,null,{default:_(()=>[C(xe,{height:"40px"},{default:_(()=>[C(_e,{title:S(e)("lang.common.back"),onBack:ce},{content:_(()=>[F("span",Ode,oe(S(m)),1)]),extra:_(()=>[F("div",Mde,[Le(C(pe,null,{default:_(()=>[H(oe(I.$tm("lang.flow.steps")[0])+" ",1),C(X,{size:20},{default:_(()=>[C(S(TE))]),_:1})]),_:1},512),[[Ue,v]]),Le(C(fe,{type:"primary",class:"ml-2",onClick:L,loading:q.value,size:"large"},{default:_(()=>[C(X,{size:20},{default:_(()=>[C(S(fde))]),_:1}),H(oe(I.$t("lang.flow.save")),1)]),_:1},8,["loading"]),[[Ue,!v]]),C(fe,{type:"success",onClick:R,loading:U.value,size:"large"},{default:_(()=>[C(X,{size:20},{default:_(()=>[C(S(vde))]),_:1}),H(oe(I.$t("lang.flow.pub")),1)]),_:1},8,["loading"]),Le(C(pe,null,{default:_(()=>[H(oe(I.$tm("lang.flow.steps")[1])+" ",1),C(X,null,{default:_(()=>[C(S(TE))]),_:1})]),_:1},512),[[Ue,v]]),C(fe,{color:"#626aef",class:"ml-2",onClick:Ye,size:"large"},{default:_(()=>[C(X,{size:20},{default:_(()=>[C(S(xde))]),_:1}),H(" "+oe(I.$t("lang.flow.test")),1)]),_:1})])]),_:1},8,["title"])]),_:1}),C(ue,null,{default:_(()=>[C(V,{width:"150px"},{default:_(()=>[F("div",{class:"newSubFlowBtn",onClick:N[0]||(N[0]=he=>E.value=!0)},[C(X,{size:"16px"},{default:_(()=>[C(S(Fu))]),_:1}),H(" "+oe(I.$t("lang.flow.addSubFlow")),1)]),(A(!0),G(Re,null,St(a.value,(he,Y)=>(A(),G("div",{id:j(Y),key:he.label,onClick:ie=>k(Y),class:"subFlowBtn"},[H(oe(he.name)+" ",1),F("span",{onClick:ie=>O(Y)},[C(X,null,{default:_(()=>[C(S(ide))]),_:1})],8,kde)],8,Ade))),128))]),_:1}),Le((A(),ye(J,null,{default:_(()=>[F("div",Pde,[(A(),G(Re,null,St(d,he=>F("div",{key:he.type,class:Q(["node-btn",he.type]),draggable:"true",onDragend:Y=>b(Y,he)},[C(B,{class:"box-item",effect:"dark",content:he.desc,placement:"right-start"},{default:_(()=>[F("span",null,oe(he.name),1)]),_:2},1032,["content"])],42,Nde)),64))]),F("div",{id:"canvas",onDragover:y,style:{border:"1px #000 solid"}},null,32),C(S(l))]),_:1})),[[qe,$.value]])]),_:1})]),_:1}),C(de,{modelValue:E.value,"onUpdate:modelValue":N[4]||(N[4]=he=>E.value=he),title:I.$t("lang.flow.addSubFlow")},{footer:_(()=>[F("span",Ide,[C(fe,{type:"primary",onClick:N[2]||(N[2]=he=>{E.value=!1,M()})},{default:_(()=>[H(oe(I.$t("lang.common.add")),1)]),_:1}),C(fe,{onClick:N[3]||(N[3]=he=>E.value=!1)},{default:_(()=>[H(oe(I.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(ne,{model:I.form},{default:_(()=>[C(se,{label:S(e)("lang.flow.form.name"),"label-width":"110px"},{default:_(()=>[C(Pe,{modelValue:T.value,"onUpdate:modelValue":N[1]||(N[1]=he=>T.value=he),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),C(Ie,{modelValue:Me.value,"onUpdate:modelValue":N[7]||(N[7]=he=>Me.value=he),direction:"rtl"},{header:_(()=>[F("b",null,oe(I.$t("lang.flow.test")),1)]),default:_(()=>[C(We,{ref_key:"chatScrollbarRef",ref:le,height:"100%",always:""},{default:_(()=>[F("div",{ref_key:"dryrunChatRecords",ref:ee},[(A(!0),G(Re,null,St(be.value,he=>(A(),G("div",{key:he.id,class:Q(he.cssClass)},[he.answerType=="TextPlain"?(A(),ye(pe,{key:0},{default:_(()=>[H(oe(he.text),1)]),_:2},1024)):(A(),ye(pe,{key:1,innerHTML:he.text},null,8,["innerHTML"]))],2))),128))],512)]),_:1},512)]),footer:_(()=>[F("div",Lde,[C(Pe,{ref_key:"dryrunInput",ref:Oe,disabled:Z.value,modelValue:ge.value,"onUpdate:modelValue":N[5]||(N[5]=he=>ge.value=he),placeholder:"",style:{width:"200px"},onKeypress:N[6]||(N[6]=he=>{he.keyCode==13&&te()})},null,8,["disabled","modelValue"]),C(Ze,null,{default:_(()=>[C(fe,{type:"primary",disabled:Z.value,onClick:te,loading:W.value},{default:_(()=>[H(oe(I.$t("lang.flow.send")),1)]),_:1},8,["disabled","loading"]),C(fe,{onClick:ve},{default:_(()=>[H(oe(I.$t("lang.flow.reset")),1)]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}},OE=So(Rde,[["__scopeId","data-v-4b7fadc9"]]),$de={class:"text-large font-600 mr-3"},Dde={class:"flex items-center"},Vde={class:"dialog-footer"},Bde="70px",Fde={__name:"IntentList",setup(n){const{t:e,tm:t,rt:r}=rn(),o=ni(),s=xo(),i=D([]),l=D(!1),a=D(""),c=o.params.robotId;ot(async()=>{await d()});const u=()=>{s.push({name:"robotDetail",params:{robotId:c}})};async function d(){const w=await tt("GET","intent",{robotId:c},null,null);w.status==200&&(i.value=w.data)}async function f(){const w={robotId:c,id:"",data:a.value};(await tt("POST","intent",null,null,w)).status==200&&await d()}function h(w,b){s.push({path:"/intent/detail",query:{robotId:c,id:i.value[w].id,idx:w,name:b.name}})}async function p(w,b){br.confirm(e("lang.intent.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{const y={robotId:c,id:i.value[w].id,data:w.toString()},x=await tt("DELETE","intent",null,null,y);x.status==200?(await d(),Qt({type:"success",message:x("lang.common.deleted")})):Qt({type:"error",message:x.err.message})}).catch(()=>{})}const g=D(""),m=D("");async function v(){if(g.value==null||g.value.length<1)return;const w={robotId:c,id:"",data:g.value},b=await tt("POST","intent/detect",null,null,w);b.status==200&&(b.data==null?m.value="No intention detected.":m.value="The detected intention is: "+b.data)}return(w,b)=>{const y=Tn,x=Es,E=sf,T=of,M=rf,O=wn,k=nr,P=tr,L=vl;return A(),G(Re,null,[C(x,{title:S(e)("lang.common.back"),onBack:u},{content:_(()=>[F("span",$de,oe(w.$t("lang.intent.title")),1)]),extra:_(()=>[F("div",Dde,[C(y,{type:"primary",class:"ml-2",onClick:b[0]||(b[0]=j=>l.value=!0)},{default:_(()=>[H(oe(w.$t("lang.intent.add")),1)]),_:1})])]),_:1},8,["title"]),C(T,{data:i.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(E,{prop:"name",label:S(t)("lang.intent.table")[0],width:"180"},null,8,["label"]),C(E,{prop:"keyword_num",label:S(t)("lang.intent.table")[1],width:"180"},null,8,["label"]),C(E,{prop:"regex_num",label:S(t)("lang.intent.table")[2],width:"180"},null,8,["label"]),C(E,{prop:"phrase_num",label:S(t)("lang.intent.table")[3],width:"230"},null,8,["label"]),C(E,{fixed:"right",label:S(t)("lang.intent.table")[4],width:"120"},{default:_(j=>[C(y,{link:"",type:"primary",size:"small",onClick:ce=>h(j.$index,j.row)},{default:_(()=>[H(oe(w.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),C(y,{link:"",type:"primary",size:"small",onClick:ce=>p(j.$index,j.row)},{default:_(()=>[H(oe(w.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(M),C(O,{modelValue:g.value,"onUpdate:modelValue":b[1]||(b[1]=j=>g.value=j),style:{width:"240px"},placeholder:"Please input some texts",onChange:v},null,8,["modelValue"]),C(y,{type:"primary",onClick:v},{default:_(()=>[H("Test intent detection")]),_:1}),F("div",null,oe(m.value),1),C(L,{modelValue:l.value,"onUpdate:modelValue":b[5]||(b[5]=j=>l.value=j),title:S(e)("lang.intent.form.title")},{footer:_(()=>[F("span",Vde,[C(y,{type:"primary",onClick:b[3]||(b[3]=j=>{l.value=!1,f()})},{default:_(()=>[H(oe(w.$t("lang.common.add")),1)]),_:1}),C(y,{onClick:b[4]||(b[4]=j=>l.value=!1)},{default:_(()=>[H(oe(w.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(P,{model:w.form},{default:_(()=>[C(k,{label:S(e)("lang.intent.form.name"),"label-width":Bde},{default:_(()=>[C(O,{modelValue:a.value,"onUpdate:modelValue":b[2]||(b[2]=j=>a.value=j),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}},zde={class:"text-large font-600 mr-3"},jde=F("b",null,"local model files were missing",-1),Hde=F("b",null,"api-key of OpenAI is empty",-1),Ude={__name:"IntentDetail",setup(n){const{t:e,tm:t,rt:r}=rn(),o=ni(),s=xo(),i=o.query.robotId,l=vt({keywords:[],regexes:[],phrases:[]}),a={robotId:"",id:"",data:""};ot(async()=>{a.robotId=i,a.id=o.query.id;let U=await tt("GET","intent/detail",a,null,null);U.status==200&&U.data&&(l.keywords=U.data.keywords,l.regexes=U.data.regexes,l.phrases=U.data.phrases.map((W,Z,le)=>W.phrase)),U=await tt("GET","management/settings/model/check/embedding",{robotId:i},null,null),E.value=U==null||U.status==null||U.status!=200});const c=D(""),u=D(!1),d=D(),f=()=>{u.value=!0,lt(()=>{d.value.focus()})};async function h(){c.value&&(a.id=o.query.id,a.data=c.value,(await tt("POST","intent/keyword",{id:a.id,data:o.query.idx},null,a)).status==200&&l.keywords.push(c.value)),u.value=!1,c.value=""}async function p(U){br.confirm(U+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const W=l.keywords.indexOf(U);a.id=o.query.id,a.data=W.toString(),(await tt("DELETE","intent/keyword",null,null,a)).status==200&&(l.keywords.splice(W,1),Qt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const g=D(""),m=D(!1),v=D(),w=()=>{m.value=!0,lt(()=>{v.value.focus()})};async function b(){g.value&&(a.id=o.query.id,a.data=g.value,(await tt("POST","intent/regex",{id:a.id,data:o.query.idx},null,a)).status==200&&l.regexes.push(g.value)),m.value=!1,g.value=""}async function y(U){br.confirm(U+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const W=l.regexes.indexOf(U);a.id=o.query.id,a.data=W.toString(),(await tt("DELETE","intent/regex",null,null,a)).status==200&&(l.regexes.splice(W,1),Qt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const x=D(""),E=D(!0),T=D(!1),M=D(),O=D(""),k=D(!1),P=D(!1),L=()=>{T.value=!0,lt(()=>{M.value.focus()})};async function j(){if(x.value){a.id=o.query.id,a.data=x.value;const U=await tt("POST","intent/phrase",{robotId:i,id:a.id,data:o.query.idx},null,a);U.status==200?l.phrases.push(x.value):(O.value="Added similar sentence failed: "+U.err.message,k.value=!0)}T.value=!1,x.value=""}async function ce(U){br.confirm(U+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const W=l.phrases.indexOf(U);a.id=o.query.id,a.data=W.toString(),(await tt("DELETE","intent/phrase",null,null,a)).status==200&&(l.phrases.splice(W,1),Qt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const R=async()=>{const U=await tt("GET","management/settings",{robotId:i},null,null);if(U.status==200&&U.data&&U.data.sentenceEmbeddingProvider.provider.id=="OpenAI"){br.confirm("The sentence embedding providor is OpenAI, this will incur some fees. Continue?","Warning",{confirmButtonText:"Regenerate all",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{$()}).catch(()=>{});return}$()},$=async()=>{P.value=!0,tt("GET","intent/phrase/regenerate-all",{robotId:i,id:a.id,data:""},null,null).then(U=>P.value=!1)},q=()=>{s.push({name:"intents",params:{robotId:i}})};return(U,W)=>{const Z=Es,le=cM,ee=wn,Me=Tn,ge=at("router-link"),be=rf,Te=Ry;return A(),G(Re,null,[C(Z,{title:S(e)("lang.common.back"),onBack:q},{content:_(()=>[F("span",zde,oe(U.$t("lang.intent.detail.edit"))+": "+oe(S(o).query.name),1)]),_:1},8,["title"]),F("h3",null,oe(U.$t("lang.intent.detail.kw")),1),(A(!0),G(Re,null,St(l.keywords,re=>(A(),ye(le,{type:"info",key:re,class:"mx-1",closable:"","disable-transitions":!1,onClose:ae=>p(re)},{default:_(()=>[H(oe(re),1)]),_:2},1032,["onClose"]))),128)),u.value?(A(),ye(ee,{key:0,ref_key:"keywordInputRef",ref:d,modelValue:c.value,"onUpdate:modelValue":W[0]||(W[0]=re=>c.value=re),class:"ml-1 w-20",size:"small",onKeyup:ir(h,["enter"]),onBlur:h},null,8,["modelValue"])):(A(),ye(Me,{key:1,class:"button-new-tag ml-1",size:"small",onClick:f},{default:_(()=>[H(" + "+oe(U.$t("lang.intent.detail.addKw")),1)]),_:1})),F("h3",null,oe(U.$t("lang.intent.detail.re")),1),(A(!0),G(Re,null,St(l.regexes,re=>(A(),ye(le,{type:"info",key:re,class:"mx-1",closable:"","disable-transitions":!1,onClose:ae=>y(re)},{default:_(()=>[H(oe(re),1)]),_:2},1032,["onClose"]))),128)),m.value?(A(),ye(ee,{key:2,ref_key:"regexInputRef",ref:v,modelValue:g.value,"onUpdate:modelValue":W[1]||(W[1]=re=>g.value=re),class:"ml-1 w-20",size:"small",onKeyup:ir(b,["enter"]),onBlur:b},null,8,["modelValue"])):(A(),ye(Me,{key:3,class:"button-new-tag ml-1",size:"small",onClick:w},{default:_(()=>[H(" + "+oe(U.$t("lang.intent.detail.addRe")),1)]),_:1})),F("h3",null,oe(U.$t("lang.intent.detail.sp")),1),(A(!0),G(Re,null,St(l.phrases,re=>(A(),ye(le,{type:"info",key:re,class:"mx-1",closable:"","disable-transitions":!1,onClose:ae=>ce(re)},{default:_(()=>[H(oe(re),1)]),_:2},1032,["onClose"]))),128)),T.value?(A(),ye(ee,{key:4,ref_key:"phraseInputRef",ref:M,modelValue:x.value,"onUpdate:modelValue":W[2]||(W[2]=re=>x.value=re),class:"ml-1 w-20",size:"small",onKeyup:ir(j,["enter"]),onBlur:j},null,8,["modelValue"])):(A(),ye(Me,{key:5,class:"button-new-tag ml-1",size:"small",onClick:L,disabled:E.value},{default:_(()=>[H(" + "+oe(U.$t("lang.intent.detail.addSp")),1)]),_:1},8,["disabled"])),Le(F("div",null,[H(" This feature was disabled because "),jde,H(" or "),Hde,H(", please goto "),C(ge,{to:{name:"settings",params:{robotId:S(i)}}},{default:_(()=>[H("settings")]),_:1},8,["to"]),H(" and select one model first. ")],512),[[Ue,E.value]]),C(be),Le(C(Te,{title:O.value,type:"error",description:"But don't worry, maybe you switched different embedding provider caused this. You can press 'Regenerate all similar sentences.' button below to fix this issue.","show-icon":""},null,8,["title"]),[[Ue,k.value]]),Le(F("div",null,[C(Me,{type:"warning",plain:"",loading:P.value,onClick:R},{default:_(()=>[H(" Regenerate all similar sentences. ")]),_:1},8,["loading"])],512),[[Ue,!E.value]])],64)}}},Wde={class:"text-large font-600 mr-3"},Gde={class:"flex items-center"},qde=F("br",null,null,-1),Kde=["checked"],Yde=F("label",{for:"_cacheEnabled_"},"Enable",-1),Jde={key:0},Xde={key:1},Zde={class:"demo-drawer__footer"},Ls="160px",Qde={__name:"Variable",setup(n){const{t:e,tm:t,rt:r}=rn(),o=ni(),s=xo(),i=o.params.robotId,l=vt({varName:"",varType:"",varValueSource:"",varConstantValue:"",varAssociateData:"",obtainValueExpressionType:"None",obtainValueExpression:"",cacheEnabled:!0}),a=[{label:t("lang.var.types")[0],value:"Str"},{label:t("lang.var.types")[1],value:"Num"}],c=new Map;a.forEach(function(O,k,P){this.set(O.value,O.label)},c);const u=[{label:t("lang.var.sources")[0],value:"Import",disabled:!1},{label:t("lang.var.sources")[1],value:"Collect",disabled:!1},{label:"User input",value:"UserInput",disabled:!1},{label:"Constant value",value:"Constant",disabled:!1},{label:t("lang.var.sources")[2],value:"ExternalHttp",disabled:!1}],d=new Map;u.forEach(function(O,k,P){this.set(O.value,O.label)},d);const f=[{label:"JSON Pointer",value:"JsonPointer",disabled:!1},{label:"Html Scrape",value:"HtmlScrape",disabled:!1}],h=D(!1),p=D([]),g=D([]);async function m(){const O=await tt("GET","variable",{robotId:i},null,null);v(O)}ot(async()=>{const O=await tt("GET","external/http",{robotId:i},null,null);O&&O.status==200&&(g.value=O.data==null?[]:O.data),await m()});const v=O=>{O&&O.status==200&&(p.value=O.data==null?[]:O.data,p.value.forEach(function(k,P,L){k.varTypeT=c.get(k.varType),k.varValueSourceT=d.get(k.varValueSource)}))},w=()=>{s.push({name:"robotDetail",params:{robotId:i}})},b=()=>{l.varName="",l.varType="",l.varValueSource="",l.constantValue="",l.externalAssociateId="",l.obtainValueExpressionType="None",l.obtainValueExpression="",l.cacheEnabled=!1,E()},y=(O,k)=>{$n(k,l),E()},x=async(O,k)=>{br.confirm(k.varName+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{$n(k,l),(await tt("DELETE","variable",{robotId:i},null,l)).status==200&&(await m(),Qt({type:"success",message:"Delete completed"}))}).catch(()=>{})};function E(){h.value=!0}function T(){h.value=!1}async function M(){const O=await tt("POST","variable",{robotId:i},null,l);await m(),T()}return(O,k)=>{const P=Tn,L=Es,j=sf,ce=of,R=wn,$=nr,q=Ts,U=_s,W=at("router-link"),Z=tr,le=Ss;return A(),G(Re,null,[C(L,{title:S(e)("lang.common.back"),onBack:w},{content:_(()=>[F("span",Wde,oe(O.$t("lang.var.title")),1)]),extra:_(()=>[F("div",Gde,[C(P,{type:"primary",class:"ml-2",onClick:k[0]||(k[0]=ee=>b())},{default:_(()=>[H(oe(O.$t("lang.var.add")),1)]),_:1})])]),_:1},8,["title"]),C(ce,{data:p.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(j,{prop:"varName",label:S(t)("lang.var.table")[0],width:"300"},null,8,["label"]),C(j,{prop:"varTypeT",label:S(t)("lang.var.table")[1],width:"180"},null,8,["label"]),C(j,{prop:"varValueSourceT",label:S(t)("lang.var.table")[2],width:"200"},null,8,["label"]),C(j,{fixed:"right",label:S(t)("lang.var.table")[3],width:"120"},{default:_(ee=>[C(P,{link:"",type:"primary",size:"small",onClick:Me=>y(ee.$index,ee.row)},{default:_(()=>[H(oe(O.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),C(P,{link:"",type:"primary",size:"small",onClick:Me=>x(ee.$index,ee.row)},{default:_(()=>[H(oe(O.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(le,{modelValue:h.value,"onUpdate:modelValue":k[11]||(k[11]=ee=>h.value=ee),title:O.$t("lang.var.form.title"),direction:"rtl",size:"50%"},{default:_(()=>[C(Z,{model:O.nodeData},{default:_(()=>[C($,{label:O.$t("lang.var.form.name"),"label-width":Ls},{default:_(()=>[C(R,{modelValue:l.varName,"onUpdate:modelValue":k[1]||(k[1]=ee=>l.varName=ee),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),C($,{label:O.$t("lang.var.form.type"),"label-width":Ls},{default:_(()=>[C(U,{modelValue:l.varType,"onUpdate:modelValue":k[2]||(k[2]=ee=>l.varType=ee),placeholder:O.$t("lang.var.form.choose1")},{default:_(()=>[(A(),G(Re,null,St(a,ee=>C(q,{key:ee.label,label:ee.label,value:ee.value,disabled:ee.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),C($,{label:O.$t("lang.var.form.source"),"label-width":Ls},{default:_(()=>[C(U,{modelValue:l.varValueSource,"onUpdate:modelValue":k[3]||(k[3]=ee=>l.varValueSource=ee),placeholder:O.$t("lang.var.form.choose2")},{default:_(()=>[(A(),G(Re,null,St(u,ee=>C(q,{key:ee.label,label:ee.label,value:ee.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l.varValueSource=="Constant"?(A(),ye($,{key:0,label:"Constant value","label-width":Ls},{default:_(()=>[C(R,{modelValue:l.varConstantValue,"onUpdate:modelValue":k[4]||(k[4]=ee=>l.varConstantValue=ee),autocomplete:"on"},null,8,["modelValue"])]),_:1})):we("",!0),l.varValueSource=="ExternalHttp"?(A(),ye($,{key:1,label:"HTTP API","label-width":Ls},{default:_(()=>[C(U,{modelValue:l.varAssociateData,"onUpdate:modelValue":k[5]||(k[5]=ee=>l.varAssociateData=ee),placeholder:"Choose a HTTP API"},{default:_(()=>[(A(!0),G(Re,null,St(g.value,ee=>(A(),ye(q,{key:ee.id,label:ee.name,value:ee.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),qde,C(W,{to:{name:"externalHttpApiDetail",params:{robotId:S(i),id:"new"}}},{default:_(()=>[H("Add new HTTP API")]),_:1},8,["to"])]),_:1})):we("",!0),l.varValueSource=="ExternalHttp"?(A(),ye($,{key:2,label:"Value expression type","label-width":Ls},{default:_(()=>[C(U,{modelValue:l.obtainValueExpressionType,"onUpdate:modelValue":k[6]||(k[6]=ee=>l.obtainValueExpressionType=ee),placeholder:"Value expression type"},{default:_(()=>[(A(),G(Re,null,St(f,ee=>C(q,{key:ee.label,label:ee.label,value:ee.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})):we("",!0),l.varValueSource=="ExternalHttp"?(A(),ye($,{key:3,label:"Obtain value expression","label-width":Ls},{default:_(()=>[C(R,{modelValue:l.obtainValueExpression,"onUpdate:modelValue":k[7]||(k[7]=ee=>l.obtainValueExpression=ee),autocomplete:"on",placeholder:l.obtainValueExpressionType=="JsonPointer"?"/data/book/name":"CSS selector syntax like: h1.foo div#bar"},null,8,["modelValue","placeholder"])]),_:1})):we("",!0),l.varValueSource=="ExternalHttp"?(A(),ye($,{key:4,label:"Cache value","label-width":Ls},{default:_(()=>[Le(F("input",{type:"checkbox",id:"_cacheEnabled_","onUpdate:modelValue":k[8]||(k[8]=ee=>l.cacheEnabled=ee),checked:l.cacheEnabled},null,8,Kde),[[Xi,l.cacheEnabled]]),Yde]),_:1})):we("",!0),l.varValueSource=="ExternalHttp"?(A(),ye($,{key:5,label:"","label-width":Ls},{default:_(()=>[l.cacheEnabled?(A(),G("span",Jde,"After requesting once, the variable value will be stored in the cache and subsequently read from the cache.")):we("",!0),l.cacheEnabled?we("",!0):(A(),G("span",Xde,"HTTP API will be requested every time"))]),_:1})):we("",!0)]),_:1},8,["model"]),F("div",Zde,[C(P,{type:"primary",loading:O.loading,onClick:k[9]||(k[9]=ee=>M())},{default:_(()=>[H(oe(O.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(P,{onClick:k[10]||(k[10]=ee=>T())},{default:_(()=>[H(oe(O.$t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])],64)}}},efe={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},tfe=F("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"},null,-1),nfe=[tfe];function rfe(n,e){return A(),G("svg",efe,[...nfe])}const Ni={name:"ep-arrow-right-bold",render:rfe},ofe={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},sfe=F("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256"},null,-1),ife=[sfe];function lfe(n,e){return A(),G("svg",ofe,[...ife])}const Ob={name:"ep-setting",render:lfe},afe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},cfe=F("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[F("path",{d:"M3 10c0-3.771 0-5.657 1.172-6.828C5.343 2 7.229 2 11 2h2c3.771 0 5.657 0 6.828 1.172C21 4.343 21 6.229 21 10v4c0 3.771 0 5.657-1.172 6.828C18.657 22 16.771 22 13 22h-2c-3.771 0-5.657 0-6.828-1.172C3 19.657 3 17.771 3 14z"}),F("path",{"stroke-linecap":"round",d:"M8 12h8M8 8h8m-8 8h5"})],-1),ufe=[cfe];function dfe(n,e){return A(),G("svg",afe,[...ufe])}const uN={name:"solar-document-text-linear",render:dfe},ffe={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},hfe=F("g",{fill:"currentColor","fill-rule":"evenodd"},[F("path",{d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),F("path",{d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})],-1),pfe=[hfe];function gfe(n,e){return A(),G("svg",ffe,[...pfe])}const dN={name:"bi-box-arrow-up-right",render:gfe},mfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vfe=F("path",{fill:"currentColor",d:"M13.5 2c0 .444-.193.843-.5 1.118V5h5a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h5V3.118A1.5 1.5 0 1 1 13.5 2M6 7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-7zm-4 3H0v6h2zm20 0h2v6h-2zM9 14.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3"},null,-1),bfe=[vfe];function yfe(n,e){return A(),G("svg",mfe,[...bfe])}const wfe={name:"ri-robot-2-line",render:yfe},Cfe="/assets/outbound-bot-EmsLuWRN.png",xfe="/assets/inbound-bot-PJJg_rST.png",Sfe="/assets/text-bot-CWb_Poym.png",ci=n=>(Bd("data-v-4145b158"),n=n(),Fd(),n),Efe=ci(()=>F("span",{class:"header"}," Workspace ",-1)),_fe=ci(()=>F("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[F("path",{d:"M256 504c137 0 248-111 248-248S393 8 256 8S8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256S145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",fill:"currentColor"})],-1)),Tfe={style:{margin:"0",padding:"0"}},Ofe=["id"],Mfe=ci(()=>F("a",{href:"https://github.com/dialogflowchatbot/dialogflow/releases"},"Go to download",-1)),Afe={style:{"margin-left":"50px"}},kfe=ci(()=>F("h1",null,null,-1)),Pfe={class:"title"},Nfe={class:"description"},Ife={class:"title"},Lfe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},Rfe={class:"description"},$fe={class:"text-center"},Dfe=ci(()=>F("br",null,null,-1)),Vfe=ci(()=>F("a",{href:"https://dialogflowchatbot.github.io/",target:"_blank"},"https://dialogflowchatbot.github.io/",-1)),Bfe=ci(()=>F("br",null,null,-1)),Ffe=ci(()=>F("a",{href:"https://github.com/dialogflowchatbot/dialogflow/discussions",target:"_blank"},"discussion",-1)),zfe=ci(()=>F("div",{class:"text-center"},[H(" Icons were created by "),F("a",{href:"https://www.flaticon.com/",target:"_blank"},"Flaticon")],-1)),ME="90px",jfe={__name:"Home",setup(n){rn();const e=xo(),t=D(""),r=D(0),o=D(!1),s=D(""),i=vt([]),l=D(!1),a=async()=>{o.value=!0;const w=await tt("GET","check-new-version.json",null,null,null);w.status==200?w.data!=null?(s.value=w.data.version,i.splice(0,i.length),$n(w.data.changelog,i),r.value=1):r.value=2:r.value=3,o.value=!1},c=()=>{e.push("/settings")},u=vt([]),d=vt({robotId:"",robotName:"",robotType:""});ot(async()=>{await f();const w=await tt("GET","version.json",null,null,null);t.value=w});async function f(){const w=await tt("GET","robot",null,null,null);w.status==200&&u.splice(0,u.length,...w.data.reverse())}async function h(){(await tt("POST","robot",null,null,d)).status==200&&await f(),l.value=!1}function p(){d.robotId="",d.robotName="",d.robotType="",l.value=!0}function g(w,b){e.push({name:"robotDetail",params:{robotId:w,name:zM(b)}})}const m=w=>w=="OutboundCallBot"?Cfe:w=="InboundCallBot"?xfe:w=="TextBot"?Sfe:"",v=w=>w=="OutboundCallBot"?"Telephone outbound bot":w=="InboundCallBot"?"Telephone incoming bot":w=="TextBot"?"Text chat bot":"";return(w,b)=>{const y=dt,x=Tn,E=ug,T=cg,M=Oq,O=Ry,k=wM,P=Nq,L=SM,j=at("router-link"),ce=wn,R=nr,$=Ts,q=_s,U=tr,W=vl;return A(),G(Re,null,[C(T,{class:"header-row"},{default:_(()=>[C(E,{span:8},{default:_(()=>[Efe,C(x,{size:"large",loading:o.value,onClick:a},{default:_(()=>[C(y,{size:"large"},{default:_(()=>[_fe]),_:1})]),_:1},8,["loading"]),C(x,{size:"large",onClick:c},{default:_(()=>[C(y,{size:"large"},{default:_(()=>[C(S(Ob))]),_:1})]),_:1})]),_:1})]),_:1}),C(M,{ref:"popover",placement:"right",title:"Changelog",width:300,trigger:"hover"},{reference:_(()=>[Le(C(x,{class:"m-2",type:"warning",text:""},{default:_(()=>[H("Found new verion: "+oe(s.value),1)]),_:1},512),[[Ue,r.value==1]])]),default:_(()=>[F("ol",Tfe,[(A(!0),G(Re,null,St(i,(Z,le)=>(A(),G("li",{id:le,key:le},oe(Z),9,Ofe))),128))]),Mfe]),_:1},512),Le(C(O,{title:"You're using the latest verion.",type:"success",onClose:b[0]||(b[0]=Z=>r.value=0)},null,512),[[Ue,r.value==2]]),Le(C(O,{title:"Failed to query update information, please try again later.",type:"danger",onClose:b[1]||(b[1]=Z=>r.value=0)},null,512),[[Ue,r.value==3]]),F("p",Afe,[C(T,null,{default:_(()=>[C(E,{span:12},{default:_(()=>[F("h1",null,[C(y,{size:50},{default:_(()=>[C(S(wfe))]),_:1}),H(" Choose a robot to start "),C(x,{size:"large",onClick:p,type:"success"},{default:_(()=>[H(" Create a new robot ")]),_:1})])]),_:1}),C(E,{span:12},{default:_(()=>[kfe]),_:1})]),_:1}),C(L,{wrap:"",size:"large"},{default:_(()=>[(A(!0),G(Re,null,St(u,Z=>(A(),G("div",{class:"grid-content bg-color-light",key:Z.robotId},[C(P,{title:Z.robotName,"sub-title":v(Z.robotType)},{icon:_(()=>[C(k,{src:m(Z.robotType)},null,8,["src"])]),extra:_(()=>[C(x,{type:"primary",onClick:le=>g(Z.robotId,Z.robotName)},{default:_(()=>[H("Detail")]),_:2},1032,["onClick"])]),_:2},1032,["title","sub-title"])]))),128))]),_:1}),F("div",Pfe,[C(y,{size:30},{default:_(()=>[C(S(Ob))]),_:1}),H(" Global settings ")]),F("p",null,[C(y,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),C(j,{to:"/settings"},{default:_(()=>[H("Global settings")]),_:1}),F("div",Nfe,oe(w.$t("lang.guide.desc4")),1)]),F("div",Ife,[C(y,{size:30},{default:_(()=>[C(S(uN))]),_:1}),H(" "+oe(w.$t("lang.guide.title5")),1)]),F("p",null,[C(y,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),F("a",Lfe,[H(oe(w.$t("lang.guide.nav5"))+" ",1),C(y,null,{default:_(()=>[C(S(dN))]),_:1})]),F("div",Rfe,oe(w.$t("lang.guide.desc5")),1)])]),F("p",null,[F("div",$fe,[H(" Version: "+oe(t.value),1),Dfe,Vfe,Bfe,H(" If you have any questions or suggestions, please create a "),Ffe,H(" on Github or email to: dialogflow@yeah.net ")]),zfe]),C(W,{modelValue:l.value,"onUpdate:modelValue":b[6]||(b[6]=Z=>l.value=Z),title:"Create a new robot",width:"60%"},{footer:_(()=>[C(x,{type:"primary",loading:w.loading,onClick:b[4]||(b[4]=Z=>h())},{default:_(()=>[H(oe(w.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(x,{onClick:b[5]||(b[5]=Z=>l.value=!1)},{default:_(()=>[H(oe(w.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[C(U,{model:d},{default:_(()=>[C(R,{label:"Name","label-width":ME},{default:_(()=>[C(ce,{modelValue:d.robotName,"onUpdate:modelValue":b[2]||(b[2]=Z=>d.robotName=Z),autocomplete:"off"},null,8,["modelValue"])]),_:1}),C(R,{label:"Type","label-width":ME},{default:_(()=>[C(q,{modelValue:d.robotType,"onUpdate:modelValue":b[3]||(b[3]=Z=>d.robotType=Z),placeholder:""},{default:_(()=>[C($,{label:"Text bot",value:"TextBot"}),C($,{label:"Inbound call bot",value:"InboundCallBot"}),C($,{label:"Outbound call bot",value:"OutboundCallBot"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},Hfe=So(jfe,[["__scopeId","data-v-4145b158"]]),Ufe=F("span",{class:"text-large font-600 mr-3"}," External HTTP API list ",-1),Wfe={class:"flex items-center"},Gfe={style:{padding:"10px",border:"1px solid #E6A23C","background-color":"#fdf6ec",margin:"10px"}},qfe={__name:"HttpApiList",setup(n){const{t:e,tm:t,rt:r}=rn(),o=ni(),s=xo(),i=o.params.robotId,l=D([]);ot(async()=>{const f=await tt("GET","external/http",{robotId:i},null,null);f&&f.status==200&&(l.value=f.data==null?[]:f.data)});const a=()=>{s.push({name:"robotDetail",params:{robotId:i}})},c=()=>{s.push({name:"externalHttpApiDetail",params:{id:"new"}})},u=(f,h)=>{s.push({name:"externalHttpApiDetail",params:{id:h.id}})},d=(f,h)=>{br.confirm("Confirm whether to permanently delete this record?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const p=await tt("DELETE","external/http/"+h.id,{robotId:i},null,null);p&&p.status==200?(Qt({showClose:!0,message:"Successfully deleted.",type:"success"}),l.value.splice(f,1)):Qt({showClose:!0,message:"Delete failed.",type:"error"})}).catch(()=>{})};return(f,h)=>{const p=Tn,g=Es,m=at("router-link"),v=sf,w=of;return A(),G(Re,null,[C(g,{title:S(e)("lang.common.back"),onBack:a},{content:_(()=>[Ufe]),extra:_(()=>[F("div",Wfe,[C(p,{type:"primary",class:"ml-2",onClick:h[0]||(h[0]=b=>c())},{default:_(()=>[H("Add new external API")]),_:1})])]),_:1},8,["title"]),F("div",Gfe,[H(" Now you can not only send data to the outside, but also get data from the outside and save it in variables by setting value source to a HTTP API. "),C(m,{to:{name:"variables",params:{robotId:S(i)}}},{default:_(()=>[H("Add new variable")]),_:1},8,["to"])]),C(w,{data:l.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(v,{prop:"name",label:"HTTP name",width:"450"}),C(v,{prop:"description",label:"Description",width:"500"}),C(v,{fixed:"right",label:S(t)("lang.mainflow.table")[2],width:"270"},{default:_(b=>[C(p,{link:"",type:"primary",size:"small",onClick:y=>u(b.$index,b.row)},{default:_(()=>[H(" Edit ")]),_:2},1032,["onClick"]),H(" | "),C(p,{link:"",type:"primary",size:"small",onClick:y=>d(b.$index,b.row)},{default:_(()=>[H(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])],64)}}},D0=n=>(Bd("data-v-4fd34b5d"),n=n(),Fd(),n),Kfe={class:"mainBody"},Yfe=D0(()=>F("span",{class:"text-large font-600 mr-3"}," External HTTP API ",-1)),Jfe=D0(()=>F("p",null,null,-1)),Xfe=["checked"],Zfe=D0(()=>F("label",{for:"_asyncReq_"},"Asynchronous",-1)),Qfe={class:"my-header"},ehe=["id"],the={class:"dialog-footer"},nhe={__name:"HttpApiDetail",setup(n){const{t:e,tm:t,rt:r}=rn(),o=ni(),s=xo(),i=o.params.robotId,l=vt({id:"",name:"",description:"",protocol:"http://",method:"GET",address:"",timeoutMilliseconds:"1500",postContentType:"UrlEncoded",headers:[],queryParams:[],formData:[],requestBody:"",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/123.0",asyncReq:!1}),a=vt({name:"",value:"",valueSource:""}),c=D(!1),u=D(!1),d=D(""),f=D("h"),h=D(0),p=vt([]),g=D(""),m=D(),v=o.params.id;ot(async()=>{if(v&&v!="new"){const L=await tt("GET","external/http/"+v,{robotId:i},null,null);L&&L.status==200&&$n(L.data,l)}let k=await tt("GET","variable",{robotId:i},null,null);if(k&&k.status==200&&k.data)for(var P in k.data)k.data.hasOwnProperty(P)&&p.push(k.data[P])});const w=()=>{a.name="",a.value="",a.valueSource="Val",h.value=-1;const k=f.value;k=="h"?d.value="Add header parameter":k=="q"?d.value="Add query parameter":k=="f"&&(d.value="Add POST parameter"),c.value=!0},b=()=>{const k=Si(a),P=h.value;P>-1?f.value=="h"?l.headers[P]=k:f.value=="q"?l.queryParams[P]=k:f.value=="f"&&(l.formData[P]=k):f.value=="h"?l.headers.push(k):f.value=="q"?l.queryParams.push(k):f.value=="f"&&l.formData.push(k),c.value=!1},y=k=>{h.value=k,f.value=="h"?$n(l.headers[k],a):f.value=="q"?$n(l.queryParams[k],a):f.value=="f"&&$n(l.formData[k],a),c.value=!0},x=async()=>{l.protocol=l.protocol.replace("://","").toUpperCase();const k=await tt("POST","external/http/"+v,{robotId:i},null,l);k&&k.status==200?(Qt({showClose:!0,message:"All data has been saved.",type:"success"}),T()):Qt({showClose:!0,message:"Oops, this is something wrong.",type:"error"})},E=()=>{l.requestBody+="`"+g.value+"`",u.value=!1},T=()=>{s.push({name:"externalHttpApis",params:{robotId:i}})},M=(k,P)=>{},O=k=>{k!="POST"&&f.value=="f"&&(f.value="q")};return(k,P)=>{const L=Es,j=wn,ce=nr,R=Ts,$=_s,q=tr,U=Ky,W=dg,Z=sf,le=Tn,ee=of,Me=eY,ge=jy,be=ag,Te=QK,re=SM,ae=vl;return A(),G("div",Kfe,[C(L,{title:S(e)("lang.common.back"),onBack:T},{content:_(()=>[Yfe]),_:1},8,["title"]),Jfe,C(q,{model:l,"label-width":"90px"},{default:_(()=>[C(ce,{label:"Api name"},{default:_(()=>[C(j,{modelValue:l.name,"onUpdate:modelValue":P[0]||(P[0]=te=>l.name=te)},null,8,["modelValue"])]),_:1}),C(ce,{label:"Description"},{default:_(()=>[C(j,{modelValue:l.description,"onUpdate:modelValue":P[1]||(P[1]=te=>l.description=te),maxlength:"256",placeholder:"Some descriptions of this API","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1}),C(ce,{label:"Method"},{default:_(()=>[C($,{modelValue:l.method,"onUpdate:modelValue":P[2]||(P[2]=te=>l.method=te),placeholder:"",onChange:O},{default:_(()=>[C(R,{label:"GET",value:"GET"}),C(R,{label:"POST",value:"POST"})]),_:1},8,["modelValue"])]),_:1}),C(ce,{label:"Protocol"},{default:_(()=>[C($,{modelValue:l.protocol,"onUpdate:modelValue":P[3]||(P[3]=te=>l.protocol=te),placeholder:""},{default:_(()=>[C(R,{label:"HTTP",value:"http://"}),C(R,{label:"HTTPS",value:"https://"})]),_:1},8,["modelValue"])]),_:1}),C(ce,{label:"Address"},{default:_(()=>[C(j,{modelValue:l.address,"onUpdate:modelValue":P[4]||(P[4]=te=>l.address=te)},{prepend:_(()=>[H(oe(l.method)+" "+oe(l.protocol),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),C(U,{tag:"b",size:"large"},{default:_(()=>[H("Advanced")]),_:1}),C(q,{model:l,"label-width":"90px"},{default:_(()=>[C(ce,{label:"Timed out"},{default:_(()=>[C(W,{modelValue:l.timeoutMilliseconds,"onUpdate:modelValue":P[5]||(P[5]=te=>l.timeoutMilliseconds=te),min:200,max:6e5},null,8,["modelValue"]),H(" milliseconds ")]),_:1}),C(ce,{label:"Parameters"},{default:_(()=>[C(Te,{modelValue:f.value,"onUpdate:modelValue":P[9]||(P[9]=te=>f.value=te),class:"demo-tabs",onTabClick:M},{default:_(()=>[C(Me,{label:"Header",name:"h"},{default:_(()=>[C(ee,{data:l.headers,stripe:"",style:{width:"100%"}},{default:_(()=>[C(Z,{prop:"name",label:"Parameter name",width:"300"}),C(Z,{prop:"value",label:"Parameter value",width:"200"}),C(Z,{fixed:"right",label:S(t)("lang.mainflow.table")[2],width:"270"},{default:_(te=>[C(le,{link:"",type:"primary",size:"small",onClick:ve=>y(te.$index)},{default:_(()=>[H(" Edit ")]),_:2},1032,["onClick"]),H(" | "),C(le,{link:"",type:"primary",size:"small",onClick:ve=>k.delApi(te.$index,te.row)},{default:_(()=>[H(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(le,{type:"warning",onClick:w},{default:_(()=>[H("+Add header")]),_:1})]),_:1}),C(Me,{label:"Query parameters",name:"q"},{default:_(()=>[C(ee,{data:l.queryParams,stripe:"",style:{width:"100%"}},{default:_(()=>[C(Z,{prop:"name",label:"Parameter name",width:"300"}),C(Z,{prop:"value",label:"Parameter value",width:"200"}),C(Z,{fixed:"right",label:S(t)("lang.mainflow.table")[2],width:"270"},{default:_(te=>[C(le,{link:"",type:"primary",size:"small",onClick:ve=>y(te.$index)},{default:_(()=>[H(" Edit ")]),_:2},1032,["onClick"]),H(" | "),C(le,{link:"",type:"primary",size:"small",onClick:ve=>k.delApi(te.$index,te.row)},{default:_(()=>[H(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(le,{type:"warning",onClick:w},{default:_(()=>[H("+Add query parameter")]),_:1})]),_:1}),l.method=="POST"?(A(),ye(Me,{key:0,label:"Request body",name:"f"},{default:_(()=>[H(" Request body type: "),C(be,{modelValue:l.postContentType,"onUpdate:modelValue":P[6]||(P[6]=te=>l.postContentType=te),class:"ml-4"},{default:_(()=>[C(ge,{label:"UrlEncoded",size:"large"},{default:_(()=>[H("application/x-www-form-urlencoded")]),_:1}),C(ge,{label:"JSON",size:"large"},{default:_(()=>[H("JSON")]),_:1})]),_:1},8,["modelValue"]),l.postContentType=="UrlEncoded"?(A(),ye(ee,{key:0,data:l.formData,stripe:"",style:{width:"100%"}},{default:_(()=>[C(Z,{prop:"name",label:"Parameter name",width:"300"}),C(Z,{prop:"value",label:"Parameter value",width:"200"}),C(Z,{fixed:"right",label:S(t)("lang.mainflow.table")[2],width:"270"},{default:_(te=>[C(le,{link:"",type:"primary",size:"small",onClick:ve=>y(te.$index)},{default:_(()=>[H(" Edit ")]),_:2},1032,["onClick"]),H(" | "),C(le,{link:"",type:"primary",size:"small",onClick:ve=>k.delApi(te.$index,te.row)},{default:_(()=>[H(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])):we("",!0),l.postContentType=="UrlEncoded"?(A(),ye(le,{key:1,type:"warning",onClick:w},{default:_(()=>[H("+Add form data")]),_:1})):we("",!0),l.postContentType=="JSON"?(A(),ye(j,{key:2,ref_key:"requestBodyRef",ref:m,modelValue:l.requestBody,"onUpdate:modelValue":P[7]||(P[7]=te=>l.requestBody=te),maxlength:"10240",placeholder:"JSON","show-word-limit":"",type:"textarea"},null,8,["modelValue"])):we("",!0),l.postContentType=="JSON"?(A(),ye(le,{key:3,type:"warning",onClick:P[8]||(P[8]=te=>u.value=!0)},{default:_(()=>[H("+Insert a variable")]),_:1})):we("",!0)]),_:1})):we("",!0)]),_:1},8,["modelValue"])]),_:1}),C(ce,{label:"User agent"},{default:_(()=>[C(j,{modelValue:l.userAgent,"onUpdate:modelValue":P[10]||(P[10]=te=>l.userAgent=te)},null,8,["modelValue"])]),_:1}),C(ce,{label:"Sync/Async","label-width":k.formLabelWidth},{default:_(()=>[Le(F("input",{type:"checkbox",id:"_asyncReq_","onUpdate:modelValue":P[11]||(P[11]=te=>l.asyncReq=te),checked:l.asyncReq},null,8,Xfe),[[Xi,l.asyncReq]]),Zfe]),_:1},8,["label-width"]),C(ce,null,{default:_(()=>[C(le,{type:"primary",onClick:x},{default:_(()=>[H("Save")]),_:1}),C(le,{type:"info",disabled:""},{default:_(()=>[H("Test (WIP)")]),_:1}),C(le,{onClick:T},{default:_(()=>[H("Cancel")]),_:1})]),_:1})]),_:1},8,["model"]),C(ae,{modelValue:c.value,"onUpdate:modelValue":P[17]||(P[17]=te=>c.value=te),width:"60%"},{header:_(({close:te,titleId:ve,titleClass:Oe})=>[F("div",Qfe,[F("h4",{id:ve,class:Q(Oe)},oe(d.value),11,ehe)])]),footer:_(()=>[C(le,{type:"primary",loading:k.loading,onClick:b},{default:_(()=>[H(oe(k.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(le,{onClick:P[16]||(P[16]=te=>c.value=!1)},{default:_(()=>[H(oe(k.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[C(q,{model:a},{default:_(()=>[C(ce,{label:"Name","label-width":k.formLabelWidth},{default:_(()=>[C(j,{modelValue:a.name,"onUpdate:modelValue":P[12]||(P[12]=te=>a.name=te),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),C(ce,{label:"Value","label-width":k.formLabelWidth},{default:_(()=>[C(re,{size:"10",spacer:"-"},{default:_(()=>[C($,{modelValue:a.valueSource,"onUpdate:modelValue":P[13]||(P[13]=te=>a.valueSource=te),placeholder:"",style:{width:"150px"}},{default:_(()=>[C(R,{label:"Const value",value:"Val"}),C(R,{label:"From a variable",value:"Var"})]),_:1},8,["modelValue"]),a.valueSource=="Val"?(A(),ye(j,{key:0,modelValue:a.value,"onUpdate:modelValue":P[14]||(P[14]=te=>a.value=te),autocomplete:"off",style:{width:"400px"}},null,8,["modelValue"])):we("",!0),a.valueSource=="Var"?(A(),ye($,{key:1,modelValue:g.value,"onUpdate:modelValue":P[15]||(P[15]=te=>g.value=te),placeholder:"Select a varaible",style:{width:"400px"}},{default:_(()=>[(A(!0),G(Re,null,St(p,te=>(A(),ye(R,{key:te.varName,label:te.varName,value:te.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):we("",!0)]),_:1})]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"]),C(ae,{modelValue:u.value,"onUpdate:modelValue":P[20]||(P[20]=te=>u.value=te),title:"Insert a variable",width:"30%"},{footer:_(()=>[F("span",the,[C(le,{type:"primary",onClick:E},{default:_(()=>[H(oe(S(e)("lang.common.insert")),1)]),_:1}),C(le,{onClick:P[19]||(P[19]=te=>u.value=!1)},{default:_(()=>[H(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C($,{modelValue:g.value,"onUpdate:modelValue":P[18]||(P[18]=te=>g.value=te),class:"m-2",placeholder:"Choose a variable",size:"large"},{default:_(()=>[(A(!0),G(Re,null,St(p,te=>(A(),ye(R,{key:te.varName,label:te.varName,value:te.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}},rhe=So(nhe,[["__scopeId","data-v-4fd34b5d"]]),ohe={key:0},she={__name:"Demos",props:{parentPage:{type:String,default:"home"}},setup(n){const e=n,{t,locale:r}=rn(),o=xo();function s(i,l){ZY()?br.alert(t("lang.home.demoUnvailableContent"),t("lang.home.demoUnvailableTitle"),{dangerouslyUseHTMLString:!0,confirmButtonText:"OK",callback:a=>{}}):o.push({name:"subflow",params:{id:i,name:l}})}return(i,l)=>{const a=WG;return A(),G("div",null,[H(oe(i.$t("lang.home.demo"))+": ",1),e.parentPage=="home"?(A(),G("ol",ohe,[F("li",null,[C(a,{type:"success",onClick:l[0]||(l[0]=c=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:_(()=>[H(oe(i.$t("lang.home.demo1")),1)]),_:1})]),F("li",null,[C(a,{type:"success",onClick:l[1]||(l[1]=c=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:_(()=>[H(oe(i.$t("lang.home.demo2")),1)]),_:1})]),F("li",null,[C(a,{type:"success",onClick:l[2]||(l[2]=c=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:_(()=>[H(oe(i.$t("lang.home.demo3")),1)]),_:1})])])):(A(),G(Re,{key:1},[C(a,{type:"success",onClick:l[3]||(l[3]=c=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:_(()=>[H(oe(i.$t("lang.home.demo1")),1)]),_:1}),H(" | "),C(a,{type:"success",onClick:l[4]||(l[4]=c=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:_(()=>[H(oe(i.$t("lang.home.demo2")),1)]),_:1}),H(" | "),C(a,{type:"success",onClick:l[5]||(l[5]=c=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:_(()=>[H(oe(i.$t("lang.home.demo3")),1)]),_:1})],64))])}}},ihe={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},lhe=F("g",{fill:"currentColor"},[F("path",{d:"M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333L6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),F("path",{d:"M5 6a1 1 0 1 1-2 0a1 1 0 0 1 2 0m4 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0m4 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0"})],-1),ahe=[lhe];function che(n,e){return A(),G("svg",ihe,[...ahe])}const uhe={name:"bi-chat-square-dots",render:che},dhe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fhe=F("path",{fill:"currentColor",d:"M10.614 17.796a.946.946 0 0 1-1.744 0l-.877-2.01a7.742 7.742 0 0 0-3.94-3.992l-2.416-1.072c-.768-.341-.768-1.458 0-1.8l2.34-1.038a7.747 7.747 0 0 0 3.997-4.125l.89-2.142a.946.946 0 0 1 1.757 0l.89 2.142a7.747 7.747 0 0 0 3.997 4.125l2.34 1.039c.768.34.768 1.458 0 1.799l-2.415 1.072a7.742 7.742 0 0 0-3.941 3.991zM4.54 9.822c2.285 1.015 4.144 2.683 5.202 4.978c1.059-2.295 2.917-3.963 5.203-4.978c-2.313-1.026-4.177-2.776-5.203-5.111c-1.025 2.335-2.89 4.085-5.202 5.111M19.4 22.69l.247-.566a4.365 4.365 0 0 1 2.221-2.25l.76-.339a.53.53 0 0 0 0-.963l-.717-.319a4.368 4.368 0 0 1-2.253-2.326l-.254-.611a.507.507 0 0 0-.942 0l-.254.61a4.368 4.368 0 0 1-2.253 2.327l-.718.32a.53.53 0 0 0 0 .962l.76.338a4.365 4.365 0 0 1 2.222 2.251l.247.566c.18.414.754.414.934 0m-1.026-3.643l.562-.559l.55.559l-.55.543z"},null,-1),hhe=[fhe];function phe(n,e){return A(),G("svg",dhe,[...hhe])}const ghe={name:"ri-bard-line",render:phe},mhe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vhe=F("path",{fill:"currentColor","fill-rule":"evenodd",d:"M12 1.25a.75.75 0 0 1 .75.75v10.973l1.68-1.961a.75.75 0 1 1 1.14.976l-3 3.5a.75.75 0 0 1-1.14 0l-3-3.5a.75.75 0 1 1 1.14-.976l1.68 1.96V2a.75.75 0 0 1 .75-.75M6.996 8.252a.75.75 0 0 1 .008 1.5c-1.093.006-1.868.034-2.457.142c-.566.105-.895.272-1.138.515c-.277.277-.457.666-.556 1.4c-.101.755-.103 1.756-.103 3.191v1c0 1.436.002 2.437.103 3.192c.099.734.28 1.122.556 1.4c.277.276.665.456 1.4.555c.754.102 1.756.103 3.191.103h8c1.435 0 2.436-.001 3.192-.103c.734-.099 1.122-.279 1.399-.556c.277-.277.457-.665.556-1.399c.101-.755.103-1.756.103-3.192v-1c0-1.435-.002-2.436-.103-3.192c-.099-.733-.28-1.122-.556-1.399c-.244-.243-.572-.41-1.138-.515c-.589-.108-1.364-.136-2.457-.142a.75.75 0 1 1 .008-1.5c1.082.006 1.983.032 2.72.167c.758.14 1.403.405 1.928.93c.602.601.86 1.36.982 2.26c.116.866.116 1.969.116 3.336v1.11c0 1.368 0 2.47-.116 3.337c-.122.9-.38 1.658-.982 2.26c-.602.602-1.36.86-2.26.982c-.867.116-1.97.116-3.337.116h-8.11c-1.367 0-2.47 0-3.337-.116c-.9-.121-1.658-.38-2.26-.982c-.602-.602-.86-1.36-.981-2.26c-.117-.867-.117-1.97-.117-3.337v-1.11c0-1.367 0-2.47.117-3.337c.12-.9.38-1.658.981-2.26c.525-.524 1.17-.79 1.928-.929c.737-.135 1.638-.161 2.72-.167","clip-rule":"evenodd"},null,-1),bhe=[vhe];function yhe(n,e){return A(),G("svg",mhe,[...bhe])}const whe={name:"solar-download-outline",render:yhe},Che={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xhe=F("g",{fill:"none"},[F("path",{stroke:"currentColor","stroke-width":"1.5",d:"M2 5.257C2 3.458 3.567 2 5.5 2S9 3.458 9 5.257C9 7.042 7.883 9.125 6.14 9.87a1.638 1.638 0 0 1-1.28 0C3.117 9.125 2 7.042 2 5.257Zm13 12C15 15.458 16.567 14 18.5 14s3.5 1.458 3.5 3.257c0 1.785-1.117 3.868-2.86 4.613a1.638 1.638 0 0 1-1.28 0c-1.743-.745-2.86-2.828-2.86-4.613Z"}),F("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.5 17.5h.009M5.49 5.5h.01"}),F("path",{fill:"currentColor",d:"M12 4.25a.75.75 0 0 0 0 1.5zM12 19l.53.53a.75.75 0 0 0 0-1.06zm5.206-10.313l.402.633zM6.795 15.313l.402.632zm4.236 1.657a.75.75 0 1 0-1.061 1.06zm-1.061 3a.75.75 0 1 0 1.06 1.06zm6.162-15.72H12v1.5h4.132zM12 18.25H7.868v1.5H12zm4.803-10.195L6.392 14.68l.805 1.265L17.61 9.32zM12.53 18.47l-1.5-1.5l-1.06 1.06l1.5 1.5zm-1.06 0l-1.5 1.5l1.06 1.06l1.5-1.5zm-3.602-.22c-1.25 0-1.726-1.633-.67-2.305l-.806-1.265c-2.321 1.477-1.275 5.07 1.476 5.07zm8.264-12.5c1.25 0 1.726 1.633.671 2.305l.805 1.265c2.322-1.477 1.275-5.07-1.476-5.07z"})],-1),She=[xhe];function Ehe(n,e){return A(),G("svg",Che,[...She])}const _he={name:"solar-routing-2-linear",render:Ehe},Dg=n=>(Bd("data-v-0ba8fb96"),n=n(),Fd(),n),The=Dg(()=>F("span",{class:"text-large font-600 mr-3"}," Robot detail ",-1)),Ohe={class:"header"},Mhe={style:{"margin-left":"50px"}},Ahe={class:"title"},khe={class:"description"},Phe={class:"title"},Nhe={class:"description"},Ihe=Dg(()=>F("br",null,null,-1)),Lhe={class:"title"},Rhe={class:"description"},$he={class:"title"},Dhe=Dg(()=>F("div",{class:"description"},"By using this function, you can send data to external URLs and receive response.",-1)),Vhe={class:"title"},Bhe=Dg(()=>F("div",{class:"description"},"Change maximum session idle time, Embedding provider and Email STMP information.",-1)),Fhe={class:"title"},zhe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},jhe={class:"description"},Hhe={class:"dialog-footer"},Uhe="guide",Whe={__name:"RobotDetail",setup(n){rn();const e=ni(),t=xo(),r=e.params.robotId;let o="";const s=vt({robotId:"",robotName:"",robotType:""}),i=D(!1),l=()=>{t.push("/")};ot(async()=>{const u=await tt("GET","robot/detail",{robotId:r},null,null);u.status==200&&u.data!=null?($n(u.data,s),o=s.robotName,QY(u.data.robotId,u.data.robotType)):Qt.error("Can NOT find robot information by robotId.")});async function a(){const u=await tt("POST","robot",null,null,s);u.status==200?Qt.success("Changed successfully."):Qt.error(u.err.message)}async function c(){br.confirm("Do you confirm that delete this robot and its all data?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const u=await tt("DELETE","robot",{robotId:r},null,null);u.status==200?l():Qt.error(u.err.message)}).catch(()=>{})}return(u,d)=>{const f=Es,h=Tn,p=ug,g=cg,m=dt,v=at("router-link"),w=wn,b=nr,y=tr,x=vl;return A(),G(Re,null,[C(f,{title:"Robots list",onBack:l},{content:_(()=>[The]),_:1}),C(g,{class:"header-row"},{default:_(()=>[C(p,{span:18},{default:_(()=>[F("span",Ohe,oe(s.robotName),1),C(h,{type:"primary",text:"",onClick:d[0]||(d[0]=E=>{i.value=!0})},{default:_(()=>[H(" Change robot name ")]),_:1})]),_:1}),C(p,{span:3},{default:_(()=>[C(h,{type:"danger",onClick:c},{default:_(()=>[H(" Delete this robot ")]),_:1})]),_:1})]),_:1}),F("p",Mhe,[F("div",Ahe,[C(m,{size:30},{default:_(()=>[C(S(uhe))]),_:1}),H(oe(u.$t("lang.guide.title1")),1)]),F("p",null,[C(m,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),C(v,{to:{name:"mainflows",params:{robotId:S(r)}}},{default:_(()=>[H(oe(u.$t("lang.guide.nav1")),1)]),_:1},8,["to"]),F("div",khe,[C(she,{parentPage:Uhe})])]),F("div",Phe,[C(m,{size:30},{default:_(()=>[C(S(ghe))]),_:1}),H(" "+oe(u.$t("lang.guide.title2")),1)]),F("p",null,[C(m,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),C(v,{to:{name:"intents",params:{robotId:S(r)}}},{default:_(()=>[H(oe(u.$t("lang.guide.nav2")),1)]),_:1},8,["to"]),F("div",Nhe,[H(oe(u.$t("lang.guide.desc2")),1),Ihe,H(` We have built-in "Positive" and "Negative" intentions. If that's not enough, you can add your own `)])]),F("div",Lhe,[C(m,{size:30},{default:_(()=>[C(S(whe))]),_:1}),H(" "+oe(u.$t("lang.guide.title3")),1)]),F("p",null,[C(m,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),C(v,{to:{name:"variables",params:{robotId:S(r)}}},{default:_(()=>[H(oe(u.$t("lang.guide.nav3")),1)]),_:1},8,["to"]),F("div",Rhe,oe(u.$t("lang.guide.desc3")),1)]),F("div",$he,[C(m,{size:30},{default:_(()=>[C(S(_he))]),_:1}),H(" External APIs call ")]),F("p",null,[C(m,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),C(v,{to:{name:"externalHttpApis",params:{robotId:S(r)}}},{default:_(()=>[H("External HTTP API list")]),_:1},8,["to"]),Dhe]),F("div",Vhe,[C(m,{size:30},{default:_(()=>[C(S(Ob))]),_:1}),H(" "+oe(u.$t("lang.guide.title4")),1)]),F("p",null,[C(m,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),C(v,{to:{name:"settings",params:{robotId:S(r)}}},{default:_(()=>[H(oe(u.$t("lang.guide.nav4")),1)]),_:1},8,["to"]),Bhe]),F("div",Fhe,[C(m,{size:30},{default:_(()=>[C(S(uN))]),_:1}),H(" "+oe(u.$t("lang.guide.title5")),1)]),F("p",null,[C(m,{size:15},{default:_(()=>[C(S(Ni))]),_:1}),F("a",zhe,[H(oe(u.$t("lang.guide.nav5"))+" ",1),C(m,null,{default:_(()=>[C(S(dN))]),_:1})]),F("div",jhe,oe(u.$t("lang.guide.desc5")),1)])]),C(x,{modelValue:i.value,"onUpdate:modelValue":d[4]||(d[4]=E=>i.value=E),title:"Change robot name"},{footer:_(()=>[F("span",Hhe,[C(h,{type:"primary",onClick:d[2]||(d[2]=E=>{i.value=!1,a()})},{default:_(()=>[H(oe(u.$t("lang.common.save")),1)]),_:1}),C(h,{onClick:d[3]||(d[3]=E=>{s.robotName=S(o),i.value=!1})},{default:_(()=>[H(oe(u.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(y,{model:u.form},{default:_(()=>[C(b,{label:"Name","label-width":u.formLabelWidth},{default:_(()=>[C(w,{modelValue:s.robotName,"onUpdate:modelValue":d[1]||(d[1]=E=>s.robotName=E),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},Ghe=So(Whe,[["__scopeId","data-v-0ba8fb96"]]),qhe=[{path:"/",component:Hfe},{path:"/demo/:demo",component:OE},{path:"/mainflows/:robotId",name:"mainflows",component:OJ},{path:"/subflow/:robotId/:id/:name",name:"subflow",component:OE,props:!0},{path:"/settings",component:iJ},{path:"/settings/:robotId",name:"settings",component:SJ},{path:"/robot/:robotId",name:"robotDetail",component:Ghe},{path:"/intents/:robotId",name:"intents",component:Fde},{path:"/intent/detail",component:Ude},{path:"/variables/:robotId",name:"variables",component:Qde},{path:"/external/httpApis/:robotId",name:"externalHttpApis",component:qfe},{path:"/external/httpApi/:robotId/:id",name:"externalHttpApiDetail",component:rhe}],Khe=q3({history:C3(),routes:qhe,scrollBehavior(n,e,t){return{top:0}}}),V0=Zb(Z$);V0.use(Khe);V0.use(X$);V0.mount("#app")});export default Yhe(); diff --git a/src/resources/assets/assets/index-DqXuk36F.css b/src/resources/assets/assets/index-DqXuk36F.css new file mode 100644 index 0000000..0eaed73 --- /dev/null +++ b/src/resources/assets/assets/index-DqXuk36F.css @@ -0,0 +1 @@ +@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px;color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(121.3,187.1,255);--el-color-primary-light-5:rgb(159.5,206.5,255);--el-color-primary-light-7:rgb(197.7,225.9,255);--el-color-primary-light-8:rgb(216.8,235.6,255);--el-color-primary-light-9:rgb(235.9,245.3,255);--el-color-primary-dark-2:rgb(51.2,126.4,204);--el-color-success:#67c23a;--el-color-success-light-3:rgb(148.6,212.3,117.1);--el-color-success-light-5:rgb(179,224.5,156.5);--el-color-success-light-7:rgb(209.4,236.7,195.9);--el-color-success-light-8:rgb(224.6,242.8,215.6);--el-color-success-light-9:rgb(239.8,248.9,235.3);--el-color-success-dark-2:rgb(82.4,155.2,46.4);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(237.5,189.9,118.5);--el-color-warning-light-5:rgb(242.5,208.5,157.5);--el-color-warning-light-7:rgb(247.5,227.1,196.5);--el-color-warning-light-8:rgb(250,236.4,216);--el-color-warning-light-9:rgb(252.5,245.7,235.5);--el-color-warning-dark-2:rgb(184,129.6,48);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(248,152.1,152.1);--el-color-danger-light-5:rgb(250,181.5,181.5);--el-color-danger-light-7:rgb(252,210.9,210.9);--el-color-danger-light-8:rgb(253,225.6,225.6);--el-color-danger-light-9:rgb(254,240.3,240.3);--el-color-danger-dark-2:rgb(196,86.4,86.4);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(248,152.1,152.1);--el-color-error-light-5:rgb(250,181.5,181.5);--el-color-error-light-7:rgb(252,210.9,210.9);--el-color-error-light-8:rgb(253,225.6,225.6);--el-color-error-light-9:rgb(254,240.3,240.3);--el-color-error-dark-2:rgb(196,86.4,86.4);--el-color-info:#909399;--el-color-info-light-3:rgb(177.3,179.4,183.6);--el-color-info-light-5:rgb(199.5,201,204);--el-color-info-light-7:rgb(221.7,222.6,224.4);--el-color-info-light-8:rgb(232.8,233.4,234.6);--el-color-info-light-9:rgb(243.9,244.2,244.8);--el-color-info-dark-2:rgb(115.2,117.6,122.4);--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--inline .el-form-item{display:inline-flex;margin-right:32px;vertical-align:middle}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{justify-content:flex-start}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:inline-block;height:auto;line-height:22px;margin-bottom:8px;text-align:left;vertical-align:middle}.el-form-item__label-wrap{display:flex}.el-form-item__label{align-items:flex-start;box-sizing:border-box;color:var(--el-text-color-regular);display:inline-flex;flex:0 0 auto;font-size:var(--el-form-label-font-size);height:32px;justify-content:flex-end;line-height:32px;padding:0 12px 0 0}.el-form-item__content{align-items:center;display:flex;flex:1;flex-wrap:wrap;font-size:var(--font-size);line-height:32px;min-width:0;position:relative}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;left:0;line-height:1;padding-top:2px;position:absolute;top:100%}.el-form-item__error--inline{display:inline-block;left:auto;margin-left:10px;position:relative;top:auto}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{color:var(--el-color-danger);content:"*";margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{color:var(--el-color-danger);content:"*";margin-left:4px}.el-form-item.is-error .el-input-tag__wrapper,.el-form-item.is-error .el-input-tag__wrapper.is-focus,.el-form-item.is-error .el-input-tag__wrapper:focus,.el-form-item.is-error .el-input-tag__wrapper:hover,.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper.is-focus,.el-form-item.is-error .el-input__wrapper:focus,.el-form-item.is-error .el-input__wrapper:hover,.el-form-item.is-error .el-select__wrapper,.el-form-item.is-error .el-select__wrapper.is-focus,.el-form-item.is-error .el-select__wrapper:focus,.el-form-item.is-error .el-select__wrapper:hover,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner.is-focus,.el-form-item.is-error .el-textarea__inner:focus,.el-form-item.is-error .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:inset 0 0 0 1px transparent}.el-form-item.is-error .el-input-group__append .el-input__validateIcon,.el-form-item.is-error .el-input-group__prepend .el-input__validateIcon{display:none}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255,255,255,.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-text-color-secondary);--el-button-active-color:var(--el-text-color-primary);align-items:center;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);box-sizing:border-box;color:var(--el-button-text-color);cursor:pointer;display:inline-flex;font-weight:var(--el-button-font-weight);height:32px;justify-content:center;line-height:1;outline:none;text-align:center;transition:.1s;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-button:hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color);color:var(--el-button-hover-text-color);outline:none}.el-button:active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{align-items:center;display:inline-flex}.el-button+.el-button{margin-left:12px}.el-button{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base)}.el-button,.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{background-color:var(--el-button-disabled-bg-color);background-image:none;border-color:var(--el-button-disabled-border-color);color:var(--el-button-disabled-text-color);cursor:not-allowed}.el-button.is-loading{pointer-events:none;position:relative}.el-button.is-loading:before{background-color:var(--el-mask-color-extra-light);border-radius:inherit;bottom:-1px;content:"";left:-1px;pointer-events:none;position:absolute;right:-1px;top:-1px;z-index:1}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px;width:32px}.el-button.is-text{background-color:transparent;border:0 solid transparent;color:var(--el-button-text-color)}.el-button.is-text.is-disabled{background-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{background:transparent;border-color:transparent;color:var(--el-button-text-color);height:auto;padding:2px}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-link:not(.is-disabled):active,.el-button.is-link:not(.is-disabled):hover{background-color:transparent;border-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color)}.el-button--text{background:transparent;border-color:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button--text:not(.is-disabled):hover{background-color:transparent;border-color:transparent;color:var(--el-color-primary-light-3)}.el-button--text:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-color-primary-dark-2)}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--large{--el-button-size:40px;height:var(--el-button-size)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base);padding:12px 19px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{padding:12px;width:var(--el-button-size)}.el-button--small{--el-button-size:24px;height:var(--el-button-size)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small{border-radius:calc(var(--el-border-radius-base) - 1px);font-size:12px;padding:5px 11px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{padding:5px;width:var(--el-button-size)}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;font-size:var(--el-font-size-base);position:relative;vertical-align:bottom;width:100%}.el-textarea__inner{-webkit-appearance:none;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:block;font-family:inherit;font-size:inherit;line-height:1.5;padding:5px 11px;position:relative;resize:vertical;transition:var(--el-transition-box-shadow);width:100%}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset;outline:none}.el-textarea .el-input__count{background:var(--el-fill-color-blank);bottom:5px;color:var(--el-color-info);font-size:12px;line-height:14px;position:absolute;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);box-sizing:border-box;display:inline-flex;font-size:var(--el-font-size-base);line-height:var(--el-input-height);position:relative;vertical-align:middle;width:var(--el-input-width)}.el-input::-webkit-scrollbar{width:6px;z-index:11}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{background:var(--el-text-color-disabled);border-radius:5px;width:6px}.el-input::-webkit-scrollbar-corner,.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);cursor:pointer;font-size:14px}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{align-items:center;color:var(--el-color-info);display:inline-flex;font-size:12px;height:100%}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);display:inline-block;line-height:normal;padding-left:8px}.el-input__wrapper{align-items:center;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;cursor:text;display:inline-flex;flex-grow:1;justify-content:center;padding:1px 11px;transform:translateZ(0);transition:var(--el-transition-box-shadow)}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));flex-grow:1;font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);outline:none;padding:0;width:100%}.el-input__inner:focus{outline:none}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__prefix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__suffix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{align-items:center;display:flex;height:inherit;justify-content:center;line-height:inherit;margin-left:8px;transition:all var(--el-transition-duration)}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{align-items:stretch;display:inline-flex;width:100%}.el-input-group__append,.el-input-group__prepend{align-items:center;background-color:var(--el-fill-color-light);border-radius:var(--el-input-border-radius);color:var(--el-color-info);display:inline-flex;justify-content:center;min-height:100%;padding:0 20px;position:relative;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{background-color:transparent;border-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper,.el-input-group__append{border-bottom-left-radius:0;border-top-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-input-number{display:inline-flex;line-height:30px;position:relative;vertical-align:middle;width:150px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;line-height:1;text-align:center}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-input-number__decrease,.el-input-number__increase{align-items:center;background:var(--el-fill-color-light);bottom:1px;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:13px;height:auto;justify-content:center;position:absolute;top:1px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:32px;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{border-left:var(--el-border);border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;right:1px}.el-input-number__decrease{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border);left:1px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{line-height:38px;width:180px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{font-size:14px;width:40px}.el-input-number--large .el-input--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{line-height:22px;width:120px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{font-size:12px;width:24px}.el-input-number--small .el-input--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-bottom:var(--el-border);border-radius:0 var(--el-border-radius-base) 0 0;bottom:auto;left:auto}.el-input-number.is-controls-right .el-input-number__decrease{border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0;border-right:none;left:auto;right:1px;top:auto}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-divider{position:relative}.el-divider--horizontal{border-top:1px var(--el-border-color) var(--el-border-style);display:block;height:1px;margin:24px 0;width:100%}.el-divider--vertical{border-left:1px var(--el-border-color) var(--el-border-style);display:inline-block;height:1em;margin:0 8px;position:relative;vertical-align:middle;width:1px}.el-divider__text{background-color:var(--el-bg-color);color:var(--el-text-color-primary);font-size:14px;font-weight:500;padding:0 20px;position:absolute}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{align-items:center;display:flex;justify-content:space-between;line-height:24px}.el-page-header__left{align-items:center;display:flex;margin-right:40px;position:relative}.el-page-header__back{align-items:center;cursor:pointer;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;display:flex;font-size:16px;margin-right:10px}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;left:50%;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;top:20px;transform:translate(-50%);transition:opacity var(--el-transition-duration),transform .4s,top .4s;width:-moz-fit-content;width:fit-content}.el-message.is-center{justify-content:center}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;align-items:center;background-color:var(--el-color-white);border-radius:var(--el-alert-border-radius-base);box-sizing:border-box;display:flex;margin:0;opacity:1;overflow:hidden;padding:var(--el-alert-padding);position:relative;transition:opacity var(--el-transition-duration-fast);width:100%}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color)}.el-alert--success.is-light,.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color)}.el-alert--info.is-light,.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color)}.el-alert--warning.is-light,.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color)}.el-alert--error.is-light,.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:flex;flex-direction:column;gap:4px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);margin-right:8px;width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);margin-right:12px;width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{cursor:pointer;font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;right:16px;top:12px}.el-alert .el-alert__close-btn.is-customed{font-size:var(--el-alert-close-customed-font-size);font-style:normal;line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{height:100%;width:100%}.el-image{display:inline-block;overflow:hidden;position:relative}.el-image__inner{opacity:1;vertical-align:top}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{left:0;position:absolute;top:0}.el-image__error,.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{align-items:center;color:var(--el-text-color-placeholder);display:flex;font-size:14px;justify-content:center;vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{bottom:0;left:0;position:fixed;right:0;top:0}.el-image-viewer__wrapper:focus{outline:none!important}.el-image-viewer__btn{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.el-image-viewer__btn .el-icon{cursor:pointer;font-size:inherit}.el-image-viewer__close{font-size:40px;height:40px;right:40px;top:40px;width:40px}.el-image-viewer__canvas{align-items:center;display:flex;height:100%;justify-content:center;position:static;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.el-image-viewer__actions{background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px;bottom:30px;height:44px;left:50%;padding:0 23px;transform:translate(-50%);width:282px}.el-image-viewer__actions__inner{align-items:center;color:#fff;cursor:default;display:flex;font-size:23px;height:100%;justify-content:space-around;width:100%}.el-image-viewer__prev{left:40px}.el-image-viewer__next,.el-image-viewer__prev{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;top:50%;transform:translateY(-50%);width:44px}.el-image-viewer__next{right:40px;text-indent:2px}.el-image-viewer__close{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;width:44px}.el-image-viewer__mask{background:#000;height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.viewer-fade-enter-active{animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{animation:viewer-fade-out var(--el-transition-duration)}@keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-checkbox-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-checkbox-font-weight);height:var(--el-checkbox-height,32px);margin-right:30px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{border-radius:calc(var(--el-border-radius-base) - 1px);padding:0 11px 0 7px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{border-radius:var(--el-checkbox-border-radius);outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px}.el-checkbox__input{cursor:pointer;display:inline-flex;outline:none;position:relative;white-space:nowrap}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-icon-color);cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-checked-icon-color);transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-checked-icon-color);content:"";display:block;height:2px;left:0;position:absolute;right:0;top:5px;transform:scale(.5)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{background-color:var(--el-checkbox-bg-color);border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;display:inline-block;height:var(--el-checkbox-input-height);position:relative;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46);width:var(--el-checkbox-input-width);z-index:var(--el-index-normal)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{border:1px solid transparent;border-left:0;border-top:0;box-sizing:content-box;content:"";height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);transform-origin:center;transition:transform .15s ease-in .05s;width:3px}.el-checkbox__original{height:0;margin:0;opacity:0;outline:none;position:absolute;width:0;z-index:-1}.el-checkbox__label{display:inline-block;font-size:var(--el-checkbox-font-size);line-height:1;padding-left:8px}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox:last-of-type{margin-right:0}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px;align-items:center;background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);border-radius:var(--el-tag-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;color:var(--el-tag-text-color);display:inline-flex;font-size:var(--el-tag-font-size);height:24px;justify-content:center;line-height:1;padding:0 9px;vertical-align:middle;white-space:nowrap;--el-icon-size:14px}.el-tag,.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color);flex-shrink:0}.el-tag .el-tag__close:hover{background-color:var(--el-tag-hover-color);color:var(--el-color-white)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-text-color:var(--el-color-white)}.el-tag--dark,.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info,.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--plain,.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{height:32px;padding:0 11px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{height:20px;padding:0 7px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;overflow:hidden;position:relative}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));border-radius:inherit;cursor:pointer;display:block;height:0;opacity:var(--el-scrollbar-opacity,.3);position:relative;transition:var(--el-transition-duration) background-color;width:0}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{border-radius:4px;bottom:2px;position:absolute;right:2px;z-index:1}.el-scrollbar__bar.is-vertical{top:2px;width:6px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);border-radius:var(--el-popper-border-radius);font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;padding:5px 11px;position:absolute;visibility:visible;z-index:2000}.el-popper.is-dark{color:var(--el-bg-color)}.el-popper.is-dark,.el-popper.is-dark>.el-popper__arrow:before{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark>.el-popper__arrow:before{right:0}.el-popper.is-light,.el-popper.is-light>.el-popper__arrow:before{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light>.el-popper__arrow:before{right:0}.el-popper.is-pure{padding:0}.el-popper__arrow,.el-popper__arrow:before{height:10px;position:absolute;width:10px;z-index:-1}.el-popper__arrow:before{background:var(--el-text-color-primary);box-sizing:border-box;content:" ";transform:rotate(45deg)}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-left-color:transparent!important;border-top-color:transparent!important}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty,.el-select-dropdown__loading{color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0;text-align:center}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:6px 0}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);height:34px;line-height:34px;overflow:hidden;padding:0 32px 0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{background-color:unset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{list-style:none;margin:0;padding:0;position:relative}.el-select-group__title{box-sizing:border-box;color:var(--el-color-info);font-size:12px;line-height:34px;overflow:hidden;padding:0 20px;text-overflow:ellipsis;white-space:nowrap}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;gap:6px;line-height:24px;min-height:32px;padding:4px 12px;position:relative;text-align:left;transform:translateZ(0);transition:var(--el-transition-duration)}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select__wrapper.is-disabled,.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag{cursor:not-allowed}.el-select__prefix,.el-select__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;gap:6px}.el-select__caret{color:var(--el-select-input-color);cursor:pointer;font-size:var(--el-select-input-font-size);transform:rotate(0);transition:var(--el-transition-duration)}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__selection{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0;position:relative}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{border-color:transparent;cursor:pointer}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__tags-text{line-height:normal}.el-select__placeholder,.el-select__tags-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{color:var(--el-input-text-color,var(--el-text-color-regular));position:absolute;top:50%;transform:translateY(-50%);width:100%}.el-select__placeholder.is-transparent{color:var(--el-text-color-placeholder);-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper,.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{max-width:100%}.el-select__input-wrapper.is-hidden{opacity:0;position:absolute}.el-select__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-select-multiple-input-color);font-family:inherit;font-size:inherit;height:24px;max-width:100%;outline:none;padding:0}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-select--large .el-select__wrapper{font-size:14px;gap:6px;line-height:24px;min-height:40px;padding:8px 16px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{font-size:12px;gap:4px;line-height:20px;min-height:24px;padding:2px 8px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-radio-group{align-items:center;display:inline-flex;flex-wrap:wrap;font-size:0}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button,.el-radio-button__inner{display:inline-block;outline:none;position:relative}.el-radio-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));line-height:1;margin:0;padding:8px 15px;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner{background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-text-color,var(--el-color-white))}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));border-radius:var(--el-border-radius-base);box-shadow:none;outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2}.el-radio-button__original-radio:disabled+.el-radio-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.el-overlay.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input,.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0,0,0,.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0,0,0,.15);--el-table-index:var(--el-index-normal);background-color:var(--el-table-bg-color);box-sizing:border-box;color:var(--el-table-text-color);font-size:var(--el-font-size-base);height:-moz-fit-content;height:fit-content;max-width:100%;overflow:hidden;position:relative;width:100%}.el-table__inner-wrapper{display:flex;flex-direction:column;height:100%;position:relative}.el-table__inner-wrapper:before{bottom:0;height:1px;left:0}.el-table tbody:focus-visible{outline:none}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{align-items:center;display:flex;justify-content:center;left:0;min-height:60px;position:sticky;text-align:center;width:100%}.el-table__empty-text{color:var(--el-text-color-secondary);line-height:60px;width:50%}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table__expand-icon{color:var(--el-text-color-regular);cursor:pointer;font-size:12px;height:20px;position:relative;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-bottom:0;border-right:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table--fit .el-table__inner-wrapper:before{width:100%}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{box-sizing:border-box;min-width:0;padding:8px 0;position:relative;text-align:left;text-overflow:ellipsis;vertical-align:middle;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{border-bottom-width:0;border-right-width:0;padding:0;width:15px}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;line-height:23px;overflow:hidden;overflow-wrap:break-word;padding:0 12px;text-overflow:ellipsis;white-space:normal}.el-table .cell.el-tooltip{min-width:50px;white-space:nowrap}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:var(--el-font-size-base)}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:var(--el-font-size-extra-small)}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{background:#ff4d51;border-radius:50%;content:"";display:inline-block;height:8px;margin-right:5px;vertical-align:middle;width:8px}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{background-color:var(--el-table-border-color);content:"";position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{height:1px;left:0;top:0;width:100%;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{height:100%;left:0;top:-1px;width:1px}.el-table--border:after{height:100%;right:0;top:-1px;width:1px}.el-table--border .el-table__inner-wrapper{border-bottom:none;border-right:none}.el-table--border .el-table__footer-wrapper{flex-shrink:0;position:relative}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background:inherit;position:sticky!important;z-index:calc(var(--el-table-index) + 1)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{bottom:-1px;box-shadow:none;content:"";overflow-x:hidden;overflow-y:hidden;pointer-events:none;position:absolute;top:0;touch-action:none;width:10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{box-shadow:none;right:-10px}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{background:#fff;position:sticky!important;right:0;z-index:calc(var(--el-table-index) + 1)}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{border-collapse:separate;table-layout:fixed}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{flex-shrink:0;overflow:hidden}.el-table__footer-wrapper tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{align-items:center;display:inline-flex;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{flex:1;overflow:hidden;position:relative}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{align-items:center;cursor:pointer;display:inline-flex;flex-direction:column;height:14px;overflow:initial;position:relative;vertical-align:middle;width:24px}.el-table .sort-caret{border:5px solid transparent;height:0;left:7px;position:absolute;width:0}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{position:absolute;visibility:hidden;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell,.el-table__body tr>td.hover-cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{bottom:0;position:sticky;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{border-left:var(--el-table-border);bottom:0;left:200px;position:absolute;top:0;width:0;z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{cursor:pointer;display:inline-block}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{height:100%;top:0;width:1px}.el-table__border-bottom-patch,.el-table__border-left-patch{background-color:var(--el-table-border-color);left:0;position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table__border-bottom-patch{height:1px}.el-table__border-right-patch{background-color:var(--el-table-border-color);height:100%;position:absolute;top:0;width:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;height:12px;line-height:12px;margin-right:8px;text-align:center;width:12px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{background-color:#fff;border:1px solid var(--el-border-color-lighter);border-radius:2px;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{list-style:none;margin:0;min-width:100px;padding:5px 0}.el-table-filter__list-item{cursor:pointer;font-size:var(--el-font-size-base);line-height:36px;padding:0 10px}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:transparent;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:none}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{align-items:center;display:flex;height:unset;margin-bottom:12px;margin-left:5px;margin-right:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{background-color:var(--el-mask-color);bottom:0;left:0;margin:0;position:absolute;right:0;top:0;transition:opacity var(--el-transition-duration);z-index:2000}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{margin-top:calc((0px - var(--el-loading-spinner-size))/2);position:absolute;text-align:center;top:50%;width:100%}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);font-size:14px;margin:3px 0}.el-loading-spinner .circular{animation:loading-rotate 2s linear infinite;display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size)}.el-loading-spinner .path{animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:absolute;transition:all var(--el-transition-duration)}.el-drawer .btt,.el-drawer .ltr,.el-drawer .rtl,.el-drawer .ttb{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{flex:1;font-size:16px;line-height:inherit;margin:0}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{background-color:transparent;border:none;color:inherit;cursor:pointer;display:inline-flex;font-size:var(--el-font-size-extra-large);outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;overflow:auto;padding:var(--el-drawer-padding-primary)}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{bottom:0;height:100%;top:0}.el-drawer.btt,.el-drawer.ttb{left:0;right:0;width:100%}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{background-color:transparent!important}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{content:"";display:table}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.el-button-group>.el-button:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-bottom-left-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-top-right-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button.is-active,.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-dropdown>.el-button{border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color);border-top-left-radius:0}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-container{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0}.el-container.is-vertical{flex-direction:column}.el-aside{box-sizing:border-box;flex-shrink:0;overflow:auto;width:var(--el-aside-width,300px)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height);padding:var(--el-footer-padding)}.el-header{--el-header-padding:0 20px;--el-header-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-header-height);padding:var(--el-header-padding)}.el-main{--el-main-padding:20px;box-sizing:border-box;display:block;flex:1;flex-basis:auto;overflow:auto;padding:var(--el-main-padding)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular);align-self:center;color:var(--el-text-color);font-size:var(--el-text-font-size);margin:0;overflow-wrap:break-word;padding:0}.el-text.is-truncated{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-text.is-line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.nodeBox[data-v-e11d3d33]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-e11d3d33]{background-color:#5ad5eb;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-e11d3d33]{width:110px}.nodeBox[data-v-872789fa]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff}.nodeTitle[data-v-872789fa]{background-color:#9171e3;color:#fff;font-weight:500;font-size:.9rem;padding:5px}.optionWidth[data-v-872789fa]{width:130px}.nodeBox[data-v-0dbd5c44]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;overflow:hidden}.nodeTitle[data-v-0dbd5c44]{background-color:#ffc400;color:#fff;font-weight:500;font-size:14px;padding:5px}.tiptap :first-child{margin-top:0}.tiptap blockquote{border-left:3px solid gray;margin:1.5rem 0;padding-left:1rem}.tiptap mark{background-color:#faf594;border-radius:.4rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.1rem .3rem}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-radio-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-radio-font-weight);height:32px;margin-right:30px;outline:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{border-color:var(--el-border-color-lighter);cursor:not-allowed}.el-radio.is-bordered.el-radio--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{border-radius:var(--el-border-radius-base);padding:0 11px 0 7px}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{cursor:pointer;display:inline-flex;outline:none;position:relative;vertical-align:middle;white-space:nowrap}.el-radio__input.is-disabled .el-radio__inner{border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled .el-radio__inner,.el-radio__input.is-disabled .el-radio__inner:after{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{background:var(--el-color-primary);border-color:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{background-color:var(--el-radio-input-bg-color);border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--el-radio-input-height);position:relative;width:var(--el-radio-input-width)}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{background-color:var(--el-color-white);border-radius:var(--el-radio-input-border-radius);content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in;width:4px}.el-radio__original{bottom:0;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;z-index:-1}.el-radio__original:focus-visible+.el-radio__inner{border-radius:var(--el-radio-input-border-radius);outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{height:12px;width:12px}.nodeBox[data-v-6c2041fc]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-6c2041fc]{background-color:#efb7ba;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-b0afa238]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-b0afa238]{background-color:#22196a;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-49c90c90]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-49c90c90]{background-color:#43d399;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-dc1ae126]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-dc1ae126]{background-color:#01a5bc;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-dc1ae126]{width:110px}.nodeBox[data-v-33ffb78d]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-33ffb78d]{background-color:#ff6555;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-abd3abfe]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-abd3abfe]{background-color:#6a2c70;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-abd3abfe]{width:110px}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size,16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);background-color:var(--el-bg-color-overlay);border:1px solid var(--el-notification-border-color);border-radius:var(--el-notification-radius);box-shadow:var(--el-notification-shadow);box-sizing:border-box;display:flex;overflow:hidden;overflow-wrap:break-word;padding:var(--el-notification-padding);position:fixed;transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);width:var(--el-notification-width);z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{color:var(--el-notification-title-color);font-size:var(--el-notification-title-font-size);font-weight:700;line-height:var(--el-notification-icon-size);margin:0}.el-notification__content{color:var(--el-notification-content-color);font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0}.el-notification__content p{margin:0}.el-notification .el-notification__icon{font-size:var(--el-notification-icon-size);height:var(--el-notification-icon-size);width:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{color:var(--el-notification-close-color);cursor:pointer;font-size:var(--el-notification-close-font-size);position:absolute;right:15px;top:18px}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-container[data-v-0cdd70b6],.el-header[data-v-0cdd70b6],.el-main[data-v-0cdd70b6],.el-footer[data-v-0cdd70b6]{padding:0}.el-main[data-v-0cdd70b6]{position:relative!important}#canvas[data-v-0cdd70b6]{min-height:85vh}.node-btn[data-v-0cdd70b6]{cursor:pointer;border:1px solid #eee;padding:10px;margin-bottom:6px;font-size:9pt;width:100px;background-color:#fff}.DialogNode[data-v-0cdd70b6]{border-left:5px solid rgb(255,196,0)}.KnowledgeBaseAnswerNode[data-v-0cdd70b6]{border-left:5px solid #EFB7BA}.ConditionNode[data-v-0cdd70b6]{border-left:5px solid rgb(145,113,227)}.CollectNode[data-v-0cdd70b6]{border-left:5px solid rgb(90,213,235)}.GotoNode[data-v-0cdd70b6]{border-left:5px solid rgb(67,211,153)}.ExternalHttpNode[data-v-0cdd70b6]{border-left:5px solid rgb(1,165,188)}.SendEmailNode[data-v-0cdd70b6]{border-left:5px solid rgb(255,101,85)}.EndNode[data-v-0cdd70b6]{border-left:5px solid rgb(34,25,106)}.LlmChatNode[data-v-0cdd70b6]{border-left:5px solid #6a2c70}.nodesBox[data-v-0cdd70b6]{display:flex;flex-direction:column;position:absolute;top:20px;left:20px;z-index:100;width:100px}.subFlowBtn[data-v-0cdd70b6]{padding:5px;border-bottom:gray solid 1px;cursor:pointer;font-size:13px}.userText[data-v-0cdd70b6]{text-align:right;margin-bottom:16px}.userText span[data-v-0cdd70b6]{padding:4px;border:#91b6ff 1px solid;border-radius:6px;background-color:#f1f6ff}.responseText[data-v-0cdd70b6]{text-align:left;margin-bottom:16px}.responseText span[data-v-0cdd70b6]{padding:4px;border:#8bda1d 1px solid;border-radius:6px;background-color:#efffd8;white-space:pre-wrap;display:inline-block}.terminateText[data-v-0cdd70b6]{text-align:center;margin-bottom:16px}.terminateText span[data-v-0cdd70b6]{padding:4px;border:#d3d3d3 1px solid;border-radius:6px;background-color:#ebebeb;white-space:pre-wrap;display:inline-block}.newSubFlowBtn[data-v-0cdd70b6]{color:#fff;padding-left:5px;padding-top:5px;padding-bottom:5px;background:linear-gradient(45deg,#e68dbf,pink);cursor:pointer;font-size:16px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-result-padding);text-align:center}.el-result__icon svg{height:var(--el-result-icon-font-size);width:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{color:var(--el-text-color-primary);font-size:var(--el-result-title-font-size);line-height:1.3;margin:0}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1.3;margin:0}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder);align-items:center;color:var(--el-link-text-color);cursor:pointer;display:inline-flex;flex-direction:row;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);justify-content:center;outline:none;padding:0;position:relative;text-decoration:none;vertical-align:middle}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{border-bottom:1px solid var(--el-link-hover-text-color);bottom:0;content:"";height:0;left:0;position:absolute;right:0}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{align-items:center;display:inline-flex;justify-content:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary.is-underline:hover:after,.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success.is-underline:hover:after,.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning.is-underline:hover:after,.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger.is-underline:hover:after,.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error.is-underline:hover:after,.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info.is-underline:hover:after,.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.header-row[data-v-1465bd1e]{margin-top:20px}.header[data-v-1465bd1e]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-1465bd1e]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-1465bd1e]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-1465bd1e]{text-align:right;margin-right:30px}#robotList .el-col[data-v-1465bd1e]{border-radius:4px;margin-bottom:20px}.bg-color-light[data-v-1465bd1e]{border:#e5e9f2 1px solid;border-left:3px solid #d3dce6;text-align:center;line-height:30px}.grid-content[data-v-1465bd1e]{border-radius:4px;min-height:36px}.el-tabs{--el-tabs-header-height:40px;display:flex}.el-tabs__header{align-items:center;display:flex;justify-content:space-between;margin:0 0 15px;padding:0;position:relative}.el-tabs__header-vertical{flex-direction:column}.el-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.el-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.el-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__new-tab-vertical{margin-left:0}.el-tabs__nav-wrap{flex:1 auto;margin-bottom:-1px;overflow:hidden;position:relative}.el-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{display:flex;min-width:100%}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.el-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active,.el-tabs__item:hover{color:var(--el-color-primary)}.el-tabs__item:hover{cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{flex-grow:1;overflow:hidden;position:relative}.el-tabs--bottom>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:0}.el-tabs--bottom>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top>.el-tabs__header .el-tabs__item:last-child{padding-right:0}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom{flex-direction:column}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{bottom:0;right:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left{flex-direction:row-reverse}.el-tabs--left .el-tabs__header.is-left{margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--right .el-tabs__header.is-right{margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--top{flex-direction:column-reverse}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.mainBody[data-v-6ae0116a]{margin-left:20px;margin-right:20px}.my-header[data-v-6ae0116a]{display:flex;flex-direction:row;justify-content:space-between}.header-row[data-v-dd59be65]{margin-top:20px}.header[data-v-dd59be65]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-dd59be65]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-dd59be65]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-dd59be65]{text-align:right;margin-right:30px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{background-color:var(--el-menu-bg-color);border-right:1px solid var(--el-menu-border-color);box-sizing:border-box;list-style:none;margin:0;padding-left:0;position:relative}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level)*var(--el-menu-level-padding));white-space:nowrap}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{border-right:none;display:flex;flex-wrap:nowrap;height:var(--el-menu-horizontal-height)}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:1px solid var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{align-items:center;border-bottom:2px solid transparent;color:var(--el-menu-text-color);display:inline-flex;height:100%;justify-content:center;margin:0}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:none}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{border-bottom:2px solid transparent;color:var(--el-menu-text-color);height:100%}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{align-items:center;background-color:var(--el-menu-bg-color);color:var(--el-menu-text-color);display:flex;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{background-color:var(--el-menu-hover-bg-color);color:var(--el-menu-hover-text-color);outline:none}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{border:none;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light);min-width:200px;padding:5px 0;z-index:100}.el-menu .el-icon{flex-shrink:0}.el-menu-item{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:none}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-menu-item [class^=el-icon]{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{align-items:center;box-sizing:border-box;display:inline-flex;height:100%;left:0;padding:0 var(--el-menu-base-level-padding);position:absolute;top:0;width:100%}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:none}.el-sub-menu__title.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu .el-icon{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;margin-right:0;margin-top:-6px;position:absolute;right:var(--el-menu-base-level-padding);top:50%;transition:transform var(--el-transition-duration);width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{color:var(--el-text-color-secondary);font-size:12px;line-height:normal;padding:7px 0 7px var(--el-menu-base-level-padding)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{opacity:0;transition:var(--el-transition-duration-fast)}.toggle-button[data-v-b3987811]{background-color:#4a5064;font-size:10px;line-height:24px;color:#fff;text-align:center;letter-spacing:.2em;cursor:pointer}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px;align-items:center;cursor:pointer;display:inline-flex;justify-content:center;outline:none}.el-upload.is-disabled{cursor:not-allowed}.el-upload.is-disabled:focus{color:inherit}.el-upload.is-disabled:focus,.el-upload.is-disabled:focus .el-upload-dragger{border-color:var(--el-border-color-darker)}.el-upload.is-disabled .el-upload-dragger{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-upload.is-disabled .el-upload-dragger .el-upload__text{color:var(--el-text-color-placeholder)}.el-upload.is-disabled .el-upload-dragger .el-upload__text em{color:var(--el-disabled-text-color)}.el-upload.is-disabled .el-upload-dragger:hover{border-color:var(--el-border-color-darker)}.el-upload__input{display:none}.el-upload__tip{color:var(--el-text-color-regular);font-size:12px;margin-top:7px}.el-upload iframe{filter:alpha(opacity=0);left:0;opacity:0;position:absolute;top:0;z-index:-1}.el-upload--picture-card{--el-upload-picture-card-size:148px;align-items:center;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:var(--el-upload-picture-card-size);justify-content:center;vertical-align:top;width:var(--el-upload-picture-card-size)}.el-upload--picture-card>i{color:var(--el-text-color-secondary);font-size:28px}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{color:var(--el-color-primary)}.el-upload:focus,.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);position:relative;text-align:center}.el-upload-dragger .el-icon--upload{color:var(--el-text-color-placeholder);font-size:67px;line-height:50px;margin-bottom:16px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary);padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px)}.el-upload-list{list-style:none;margin:10px 0 0;padding:0;position:relative}.el-upload-list__item{border-radius:4px;box-sizing:border-box;color:var(--el-text-color-regular);font-size:14px;margin-bottom:5px;position:relative;transition:all .5s cubic-bezier(.55,0,.1,1);width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{color:var(--el-text-color-regular);cursor:pointer;display:none;opacity:.75;position:absolute;right:5px;top:50%;transform:translateY(-50%);transition:opacity var(--el-transition-duration)}.el-upload-list__item .el-icon--close:hover{color:var(--el-color-primary);opacity:1}.el-upload-list__item .el-icon--close-tip{color:var(--el-color-primary);cursor:pointer;display:none;font-size:12px;font-style:normal;opacity:1;position:absolute;right:5px;top:1px}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;flex-direction:column;justify-content:center;margin-left:4px;width:calc(100% - 30px)}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{align-items:center;color:var(--el-text-color-regular);display:inline-flex;font-size:var(--el-font-size-base);padding:0 4px;text-align:center;transition:color var(--el-transition-duration)}.el-upload-list__item-name .el-icon{color:var(--el-text-color-secondary);margin-right:6px}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{align-items:center;display:none;height:100%;justify-content:center;line-height:inherit;position:absolute;right:5px;top:0;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{color:var(--el-text-color-regular);display:none;font-size:12px;position:absolute;right:10px;top:0}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:inline-flex;height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;overflow:hidden;padding:0;width:var(--el-upload-list-picture-card-size)}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:block;opacity:0}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{align-items:center;background-color:var(--el-overlay-color-lighter);color:#fff;cursor:default;display:inline-flex;font-size:20px;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;transition:opacity var(--el-transition-duration);width:100%}.el-upload-list--picture-card .el-upload-list__item-actions span{cursor:pointer;display:none}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:16px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{color:inherit;font-size:inherit;position:static}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:flex;margin-top:10px;overflow:hidden;padding:10px;z-index:0}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{display:inline-flex;opacity:0}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{align-items:center;background-color:var(--el-color-white);display:inline-flex;height:70px;justify-content:center;-o-object-fit:contain;object-fit:contain;position:relative;width:70px;z-index:1}.el-upload-list--picture .el-upload-list__item-status-label{background:var(--el-color-success);height:26px;position:absolute;right:-17px;text-align:center;top:-7px;transform:rotate(45deg);width:46px}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{cursor:default;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:10}.el-upload-cover:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;height:100%;width:100%}.el-upload-cover__label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-cover__label i{color:#fff;font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-cover__progress{display:inline-block;position:static;vertical-align:middle;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{height:100%;left:0;position:absolute;top:0;width:100%}.el-upload-cover__interact{background-color:var(--el-overlay-color-light);bottom:0;height:100%;left:0;position:absolute;text-align:center;width:100%}.el-upload-cover__interact .btn{color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin-top:60px;transition:var(--el-transition-md-fade);vertical-align:middle}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{background-color:#fff;bottom:0;color:var(--el-text-color-primary);font-size:14px;font-weight:400;height:36px;left:0;line-height:36px;margin:0;overflow:hidden;padding:0 10px;position:absolute;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-progress{align-items:center;display:flex;line-height:1;position:relative}.el-progress__text{color:var(--el-text-color-regular);font-size:14px;line-height:1;margin-left:5px;min-width:50px}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{box-sizing:border-box;flex-grow:1}.el-progress-bar__outer{background-color:var(--el-border-color-lighter);border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:var(--el-color-primary);border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{animation:indeterminate 3s infinite;transform:translateZ(0)}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0,transparent 50%,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 75%,transparent 0,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{color:#fff;display:inline-block;font-size:12px;margin:0 5px;vertical-align:middle}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}body{transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding:0}a,.green{text-decoration:none;color:#00bd7e;transition:.4s}@media (hover: hover){a:hover{background-color:#00bd7e33}}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.m-2{margin:.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-3{margin-right:.75rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.w-20{width:5rem}.flex{display:flex}.table{display:table}.border-collapse{border-collapse:collapse}.items-center{align-items:center}.b,.border{border-width:1px}.text-center{text-align:center}.font-600{font-weight:600}.italic{font-style:italic}.underline{text-decoration-line:underline}.blur{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}