diff --git a/src/ai/completion.rs b/src/ai/completion.rs index 0aaf64a..c4140c1 100644 --- a/src/ai/completion.rs +++ b/src/ai/completion.rs @@ -84,9 +84,9 @@ pub(crate) async fn completion( #[macro_export] macro_rules! sse_send ( ($sender: expr, $message: expr) => ({ - println!("sse_send0"); + // println!("sse_send0"); if !$sender.is_closed() { - println!("sse_send1"); + // println!("sse_send1"); let sender = $sender.clone(); // tokio::spawn(async move { // log::info!("sse_send {}",&$message); @@ -123,7 +123,7 @@ async fn huggingface( sender: &Sender, ) -> Result<()> { let info = m.get_info(); - log::info!("model_type={:?}", &info.model_type); + // log::info!("model_type={:?}", &info.model_type); let new_prompt = info.convert_prompt(prompt)?; match info.model_type { HuggingFaceModelType::Gemma => { diff --git a/src/ai/gemma.rs b/src/ai/gemma.rs index 8f9d1cd..56cc96a 100644 --- a/src/ai/gemma.rs +++ b/src/ai/gemma.rs @@ -1,5 +1,5 @@ use std::collections::HashMap; -use std::io::Write; +// use std::io::Write; use std::sync::{Mutex, OnceLock}; use candle::{DType, Tensor}; @@ -116,7 +116,7 @@ pub(super) fn gen_text( ); } } - std::io::stdout().flush()?; + // std::io::stdout().flush()?; println!( "\n{generated_tokens} tokens generated ({:.2} token/s)", generated_tokens as f64 / dt.as_secs_f64(), diff --git a/src/ai/llama.rs b/src/ai/llama.rs index bd8c98e..88599f2 100644 --- a/src/ai/llama.rs +++ b/src/ai/llama.rs @@ -61,8 +61,8 @@ pub(super) fn gen_text( }; // log::info!("tokens len={}",tokens.len()); let mut tokenizer = super::token_output_stream::TokenOutputStream::new(tokenizer.clone()); - log::info!("starting the inference loop"); - log::info!("{prompt}"); + // log::info!("starting the inference loop"); + // log::info!("{prompt}"); let mut logits_processor = { let sampling = if super::completion::TEMPERATURE <= 0. { Sampling::ArgMax @@ -89,7 +89,7 @@ pub(super) fn gen_text( let mut rng = Rand::new(); LogitsProcessor::from_sampling(rng.gen::(), sampling) }; - log::info!("logits_processor finished"); + // log::info!("logits_processor finished"); let start_gen = std::time::Instant::now(); let mut index_pos = 0; let mut token_generated = 0; @@ -136,7 +136,7 @@ pub(super) fn gen_text( // ); // break; // } - log::info!("{}", &t); + // log::info!("{}", &t); if sender.is_closed() { break; } diff --git a/src/ai/phi3.rs b/src/ai/phi3.rs index de176d8..4c302a6 100644 --- a/src/ai/phi3.rs +++ b/src/ai/phi3.rs @@ -45,7 +45,7 @@ pub(super) fn gen_text( }; let (model, tokenizer) = model.get(robot_id).unwrap(); - log::info!("starting the inference loop"); + // log::info!("starting the inference loop"); let mut tokenizer = super::token_output_stream::TokenOutputStream::new(tokenizer.clone()); let mut tokens = match tokenizer.tokenizer().encode(prompt, true) { Ok(t) => t.get_ids().to_vec(), @@ -65,7 +65,7 @@ pub(super) fn gen_text( ))) } }; - log::info!("{prompt}"); + // log::info!("{prompt}"); // std::io::stdout().flush()?; let start_gen = std::time::Instant::now(); let mut pos = 0; diff --git a/src/resources/assets/assets/index-B2kCm4YY.css b/src/resources/assets/assets/index-CFMBpwmb.css similarity index 59% rename from src/resources/assets/assets/index-B2kCm4YY.css rename to src/resources/assets/assets/index-CFMBpwmb.css index 816d090..930f727 100644 --- a/src/resources/assets/assets/index-B2kCm4YY.css +++ b/src/resources/assets/assets/index-CFMBpwmb.css @@ -1 +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}: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--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.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--large.el-form--label-top .el-form-item .el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{line-height:20px;margin-bottom:4px}.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-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-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__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-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-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}.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;width:100%}.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 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);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.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-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-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-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-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)}}: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:1rem;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-9ad43495]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-9ad43495]{background-color:#5ad5eb;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-9ad43495]{width:110px}.nodeBox[data-v-7702009f]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff}.nodeTitle[data-v-7702009f]{background-color:#9171e3;color:#fff;font-weight:500;font-size:.9rem;padding:5px}.optionWidth[data-v-7702009f]{width:130px}.nodeBox[data-v-a74fd6be]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;overflow:hidden}.nodeTitle[data-v-a74fd6be]{background-color:#ffc400;color:#fff;font-weight:500;font-size:14px;padding:5px}#bubbleMenu button[data-v-a74fd6be],.menubar button[data-v-a74fd6be]{border-left:1px solid black;border-top:1px solid black;border-bottom:1px solid black;border-right:none}#bubbleMenu button[data-v-a74fd6be]:last-child,.menubar button[data-v-a74fd6be]:last-child{border:1px solid black}.is-active[data-v-a74fd6be]{color:#fff;background-color:#000}.nodeBox[data-v-42225c28]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-42225c28]{background-color:#22196a;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-e844225f]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-e844225f]{background-color:#43d399;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-cfe08cad]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-cfe08cad]{background-color:#01a5bc;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-cfe08cad]{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-abe7dc58]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-abe7dc58]{background-color:#ff6555;color:#fff;font-weight:500;font-size:14px;padding:5px}.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-3d106c8d],.el-header[data-v-3d106c8d],.el-main[data-v-3d106c8d],.el-footer[data-v-3d106c8d]{padding:0}.el-main[data-v-3d106c8d]{position:relative!important}#canvas[data-v-3d106c8d]{min-height:85vh}.node-btn[data-v-3d106c8d]{cursor:pointer;border:1px solid #eee;padding:10px;margin-bottom:6px;font-size:9pt;width:100px;background-color:#fff}.DialogNode[data-v-3d106c8d]{border-left:5px solid rgb(255,196,0)}.ConditionNode[data-v-3d106c8d]{border-left:5px solid rgb(145,113,227)}.CollectNode[data-v-3d106c8d]{border-left:5px solid rgb(90,213,235)}.GotoNode[data-v-3d106c8d]{border-left:5px solid rgb(67,211,153)}.ExternalHttpNode[data-v-3d106c8d]{border-left:5px solid rgb(1,165,188)}.SendEmailNode[data-v-3d106c8d]{border-left:5px solid rgb(255,101,85)}.EndNode[data-v-3d106c8d]{border-left:5px solid rgb(34,25,106)}.nodesBox[data-v-3d106c8d]{display:flex;flex-direction:column;position:absolute;top:20px;left:20px;z-index:100;width:100px}.subFlowBtn[data-v-3d106c8d]{padding:5px;border-bottom:gray solid 1px;cursor:pointer;font-size:13px}.userText[data-v-3d106c8d]{text-align:right;margin-bottom:16px}.userText span[data-v-3d106c8d]{padding:4px;border:#91b6ff 1px solid;border-radius:6px;background-color:#f1f6ff}.responseText[data-v-3d106c8d]{text-align:left;margin-bottom:16px}.responseText span[data-v-3d106c8d]{padding:4px;border:#8bda1d 1px solid;border-radius:6px;background-color:#efffd8;white-space:pre-wrap;display:inline-block}.terminateText[data-v-3d106c8d]{text-align:center;margin-bottom:16px}.terminateText span[data-v-3d106c8d]{padding:4px;border:#d3d3d3 1px solid;border-radius:6px;background-color:#ebebeb;white-space:pre-wrap;display:inline-block}.newSubFlowBtn[data-v-3d106c8d]{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-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-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-5f721b00]{margin-top:20px}.header[data-v-5f721b00]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-5f721b00]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-5f721b00]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-5f721b00]{text-align:right;margin-right:30px}#robotList .el-col[data-v-5f721b00]{border-radius:4px;margin-bottom:20px}.bg-color-light[data-v-5f721b00]{border:#e5e9f2 1px solid;border-left:3px solid #d3dce6;text-align:center;line-height:30px}.grid-content[data-v-5f721b00]{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}.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)} +@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--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.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--large.el-form--label-top .el-form-item .el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{line-height:20px;margin-bottom:4px}.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-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-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__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-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-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}.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-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-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-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-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)}}: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:1rem;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-9ad43495]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-9ad43495]{background-color:#5ad5eb;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-9ad43495]{width:110px}.nodeBox[data-v-dc114d51]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff}.nodeTitle[data-v-dc114d51]{background-color:#9171e3;color:#fff;font-weight:500;font-size:.9rem;padding:5px}.optionWidth[data-v-dc114d51]{width:130px}.nodeBox[data-v-270c2cb3]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;overflow:hidden}.nodeTitle[data-v-270c2cb3]{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-42225c28]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-42225c28]{background-color:#22196a;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-e844225f]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-e844225f]{background-color:#43d399;color:#fff;font-weight:500;font-size:14px;padding:5px}.nodeBox[data-v-cfe08cad]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-cfe08cad]{background-color:#01a5bc;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-cfe08cad]{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-abe7dc58]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-abe7dc58]{background-color:#ff6555;color:#fff;font-weight:500;font-size:14px;padding:5px}.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-3d106c8d],.el-header[data-v-3d106c8d],.el-main[data-v-3d106c8d],.el-footer[data-v-3d106c8d]{padding:0}.el-main[data-v-3d106c8d]{position:relative!important}#canvas[data-v-3d106c8d]{min-height:85vh}.node-btn[data-v-3d106c8d]{cursor:pointer;border:1px solid #eee;padding:10px;margin-bottom:6px;font-size:9pt;width:100px;background-color:#fff}.DialogNode[data-v-3d106c8d]{border-left:5px solid rgb(255,196,0)}.ConditionNode[data-v-3d106c8d]{border-left:5px solid rgb(145,113,227)}.CollectNode[data-v-3d106c8d]{border-left:5px solid rgb(90,213,235)}.GotoNode[data-v-3d106c8d]{border-left:5px solid rgb(67,211,153)}.ExternalHttpNode[data-v-3d106c8d]{border-left:5px solid rgb(1,165,188)}.SendEmailNode[data-v-3d106c8d]{border-left:5px solid rgb(255,101,85)}.EndNode[data-v-3d106c8d]{border-left:5px solid rgb(34,25,106)}.nodesBox[data-v-3d106c8d]{display:flex;flex-direction:column;position:absolute;top:20px;left:20px;z-index:100;width:100px}.subFlowBtn[data-v-3d106c8d]{padding:5px;border-bottom:gray solid 1px;cursor:pointer;font-size:13px}.userText[data-v-3d106c8d]{text-align:right;margin-bottom:16px}.userText span[data-v-3d106c8d]{padding:4px;border:#91b6ff 1px solid;border-radius:6px;background-color:#f1f6ff}.responseText[data-v-3d106c8d]{text-align:left;margin-bottom:16px}.responseText span[data-v-3d106c8d]{padding:4px;border:#8bda1d 1px solid;border-radius:6px;background-color:#efffd8;white-space:pre-wrap;display:inline-block}.terminateText[data-v-3d106c8d]{text-align:center;margin-bottom:16px}.terminateText span[data-v-3d106c8d]{padding:4px;border:#d3d3d3 1px solid;border-radius:6px;background-color:#ebebeb;white-space:pre-wrap;display:inline-block}.newSubFlowBtn[data-v-3d106c8d]{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-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-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-5e1c915c]{margin-top:20px}.header[data-v-5e1c915c]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-5e1c915c]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-5e1c915c]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-5e1c915c]{text-align:right;margin-right:30px}#robotList .el-col[data-v-5e1c915c]{border-radius:4px;margin-bottom:20px}.bg-color-light[data-v-5e1c915c]{border:#e5e9f2 1px solid;border-left:3px solid #d3dce6;text-align:center;line-height:30px}.grid-content[data-v-5e1c915c]{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-CGwDfCl8.js b/src/resources/assets/assets/index-CGwDfCl8.js new file mode 100644 index 0000000..094ebd3 --- /dev/null +++ b/src/resources/assets/assets/index-CGwDfCl8.js @@ -0,0 +1,414 @@ +var dN=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var The=dN((Lr,Rr)=>{(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 wb(n,e){const t=new Set(n.split(","));return r=>t.has(r)}const Jt={},Fa=[],un=()=>{},fN=()=>!1,yp=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Cb=n=>n.startsWith("onUpdate:"),hn=Object.assign,xb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},hN=Object.prototype.hasOwnProperty,wt=(n,e)=>hN.call(n,e),Re=Array.isArray,Ba=n=>Ld(n)==="[object Map]",wp=n=>Ld(n)==="[object Set]",R0=n=>Ld(n)==="[object Date]",We=n=>typeof n=="function",ft=n=>typeof n=="string",as=n=>typeof n=="symbol",pt=n=>n!==null&&typeof n=="object",xE=n=>(pt(n)||We(n))&&We(n.then)&&We(n.catch),SE=Object.prototype.toString,Ld=n=>SE.call(n),Qf=n=>Ld(n).slice(8,-1),EE=n=>Ld(n)==="[object Object]",Sb=n=>ft(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,yu=wb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cp=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},pN=/-(\w)/g,Lo=Cp(n=>n.replace(pN,(e,t)=>t?t.toUpperCase():"")),gN=/\B([A-Z])/g,tl=Cp(n=>n.replace(gN,"-$1").toLowerCase()),Rd=Cp(n=>n.charAt(0).toUpperCase()+n.slice(1)),eh=Cp(n=>n?`on${Rd(n)}`:""),Hi=(n,e)=>!Object.is(n,e),th=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:r,value:t})},Dm=n=>{const e=parseFloat(n);return isNaN(e)?n:e},mN=n=>{const e=ft(n)?Number(n):NaN;return isNaN(e)?n:e};let $0;const TE=()=>$0||($0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bt(n){if(Re(n)){const e={};for(let t=0;t{if(t){const r=t.split(bN);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function X(n){let e="";if(ft(n))e=n;else if(Re(n))for(let t=0;tKa(t,e))}const AE=n=>!!(n&&n.__v_isRef===!0),ie=n=>ft(n)?n:n==null?"":Re(n)||pt(n)&&(n.toString===SE||!We(n.toString))?AE(n)?ie(n.value):JSON.stringify(n,kE,2):String(n),kE=(n,e)=>AE(e)?kE(n,e.value):Ba(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,o],s)=>(t[Pg(r,s)+" =>"]=o,t),{})}:wp(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Pg(t))}:as(e)?Pg(e):pt(e)&&!Re(e)&&!EE(e)?String(e):e,Pg=(n,e="")=>{var t;return as(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 kr;class PE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=kr,!e&&kr&&(this.index=(kr.scopes||(kr.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=kr;try{return kr=this,e()}finally{kr=t}}}on(){kr=this}off(){kr=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),rl()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Vi,t=Hl;try{return Vi=!0,Hl=this,this._runnings++,D0(this),this.fn()}finally{V0(this),this._runnings--,Hl=t,Vi=e}}stop(){this.active&&(D0(this),V0(this),this.onStop&&this.onStop(),this.active=!1)}}function _N(n){return n.value}function D0(n){n._trackId++,n._depsLength=0}function V0(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},wh=new WeakMap,Ul=Symbol(""),Bm=Symbol("");function _r(n,e,t){if(Vi&&Hl){let r=wh.get(n);r||wh.set(n,r=new Map);let o=r.get(t);o||r.set(t,o=FE(()=>r.delete(t))),DE(Hl,o)}}function Ds(n,e,t,r,o,s){const i=wh.get(n);if(!i)return;let l=[];if(e==="clear")l=[...i.values()];else if(t==="length"&&Re(n)){const a=Number(r);i.forEach((c,u)=>{(u==="length"||!as(u)&&u>=a)&&l.push(c)})}else switch(t!==void 0&&l.push(i.get(t)),e){case"add":Re(n)?Sb(t)&&l.push(i.get("length")):(l.push(i.get(Ul)),Ba(n)&&l.push(i.get(Bm)));break;case"delete":Re(n)||(l.push(i.get(Ul)),Ba(n)&&l.push(i.get(Bm)));break;case"set":Ba(n)&&l.push(i.get(Ul));break}_b();for(const a of l)a&&VE(a,4);Tb()}function TN(n,e){const t=wh.get(n);return t&&t.get(e)}const ON=wb("__proto__,__v_isRef,__isVue"),BE=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(as)),F0=MN();function MN(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const r=At(this);for(let s=0,i=this.length;s{n[e]=function(...t){nl(),_b();const r=At(this)[e].apply(this,t);return Tb(),rl(),r}}),n}function AN(n){as(n)||(n=String(n));const e=At(this);return _r(e,"has",n),e.hasOwnProperty(n)}class zE{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?jN:WE:s?UE:HE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=Re(e);if(!o){if(i&&wt(F0,t))return Reflect.get(F0,t,r);if(t==="hasOwnProperty")return AN}const l=Reflect.get(e,t,r);return(as(t)?BE.has(t):ON(t))||(o||_r(e,"get",t),s)?l:Wt(l)?i&&Sb(t)?l:l.value:pt(l)?o?$d(l):Ct(l):l}}class jE extends zE{constructor(e=!1){super(!1,e)}set(e,t,r,o){let s=e[t];if(!this._isShallow){const a=Ju(s);if(!Ch(r)&&!Ju(r)&&(s=At(s),r=At(r)),!Re(e)&&Wt(s)&&!Wt(r))return a?!1:(s.value=r,!0)}const i=Re(e)&&Sb(t)?Number(t)n,xp=n=>Reflect.getPrototypeOf(n);function vf(n,e,t=!1,r=!1){n=n.__v_raw;const o=At(n),s=At(e);t||(Hi(e,s)&&_r(o,"get",e),_r(o,"get",s));const{has:i}=xp(o),l=r?Ob:t?Pb:Zu;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 bf(n,e=!1){const t=this.__v_raw,r=At(t),o=At(n);return e||(Hi(n,o)&&_r(r,"has",n),_r(r,"has",o)),n===o?t.has(n):t.has(n)||t.has(o)}function yf(n,e=!1){return n=n.__v_raw,!e&&_r(At(n),"iterate",Ul),Reflect.get(n,"size",n)}function B0(n){n=At(n);const e=At(this);return xp(e).has.call(e,n)||(e.add(n),Ds(e,"add",n,n)),this}function z0(n,e){e=At(e);const t=At(this),{has:r,get:o}=xp(t);let s=r.call(t,n);s||(n=At(n),s=r.call(t,n));const i=o.call(t,n);return t.set(n,e),s?Hi(e,i)&&Ds(t,"set",n,e):Ds(t,"add",n,e),this}function j0(n){const e=At(this),{has:t,get:r}=xp(e);let o=t.call(e,n);o||(n=At(n),o=t.call(e,n)),r&&r.call(e,n);const s=e.delete(n);return o&&Ds(e,"delete",n,void 0),s}function H0(){const n=At(this),e=n.size!==0,t=n.clear();return e&&Ds(n,"clear",void 0,void 0),t}function wf(n,e){return function(r,o){const s=this,i=s.__v_raw,l=At(i),a=e?Ob:n?Pb:Zu;return!n&&_r(l,"iterate",Ul),i.forEach((c,u)=>r.call(o,a(c),a(u),s))}}function Cf(n,e,t){return function(...r){const o=this.__v_raw,s=At(o),i=Ba(s),l=n==="entries"||n===Symbol.iterator&&i,a=n==="keys"&&i,c=o[n](...r),u=t?Ob:e?Pb:Zu;return!e&&_r(s,"iterate",a?Bm:Ul),{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 li(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function LN(){const n={get(s){return vf(this,s)},get size(){return yf(this)},has:bf,add:B0,set:z0,delete:j0,clear:H0,forEach:wf(!1,!1)},e={get(s){return vf(this,s,!1,!0)},get size(){return yf(this)},has:bf,add:B0,set:z0,delete:j0,clear:H0,forEach:wf(!1,!0)},t={get(s){return vf(this,s,!0)},get size(){return yf(this,!0)},has(s){return bf.call(this,s,!0)},add:li("add"),set:li("set"),delete:li("delete"),clear:li("clear"),forEach:wf(!0,!1)},r={get(s){return vf(this,s,!0,!0)},get size(){return yf(this,!0)},has(s){return bf.call(this,s,!0)},add:li("add"),set:li("set"),delete:li("delete"),clear:li("clear"),forEach:wf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Cf(s,!1,!1),t[s]=Cf(s,!0,!1),e[s]=Cf(s,!1,!0),r[s]=Cf(s,!0,!0)}),[n,t,e,r]}const[RN,$N,DN,VN]=LN();function Mb(n,e){const t=e?n?VN:DN:n?$N:RN;return(r,o,s)=>o==="__v_isReactive"?!n:o==="__v_isReadonly"?n:o==="__v_raw"?r:Reflect.get(wt(t,o)&&o in r?t:r,o,s)}const FN={get:Mb(!1,!1)},BN={get:Mb(!1,!0)},zN={get:Mb(!0,!1)},HE=new WeakMap,UE=new WeakMap,WE=new WeakMap,jN=new WeakMap;function HN(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function UN(n){return n.__v_skip||!Object.isExtensible(n)?0:HN(Qf(n))}function Ct(n){return Ju(n)?n:kb(n,!1,PN,FN,HE)}function Ab(n){return kb(n,!1,IN,BN,UE)}function $d(n){return kb(n,!0,NN,zN,WE)}function kb(n,e,t,r,o){if(!pt(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const s=o.get(n);if(s)return s;const i=UN(n);if(i===0)return n;const l=new Proxy(n,i===2?r:t);return o.set(n,l),l}function wu(n){return Ju(n)?wu(n.__v_raw):!!(n&&n.__v_isReactive)}function Ju(n){return!!(n&&n.__v_isReadonly)}function Ch(n){return!!(n&&n.__v_isShallow)}function GE(n){return n?!!n.__v_raw:!1}function At(n){const e=n&&n.__v_raw;return e?At(e):n}function Xu(n){return Object.isExtensible(n)&&_E(n,"__v_skip",!0),n}const Zu=n=>pt(n)?Ct(n):n,Pb=n=>pt(n)?$d(n):n;class qE{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 Eb(()=>e(this._value),()=>Cu(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=At(this);return(!e._cacheable||e.effect.dirty)&&Hi(e._value,e._value=e.effect.run())&&Cu(e,4),Nb(e),e.effect._dirtyLevel>=2&&Cu(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function WN(n,e,t=!1){let r,o;const s=We(n);return s?(r=n,o=un):(r=n.get,o=n.set),new qE(r,o,s||!o,t)}function Nb(n){var e;Vi&&Hl&&(n=At(n),DE(Hl,(e=n.dep)!=null?e:n.dep=FE(()=>n.dep=void 0,n instanceof qE?n:void 0)))}function Cu(n,e=4,t,r){n=At(n);const o=n.dep;o&&VE(o,e)}function Wt(n){return!!(n&&n.__v_isRef===!0)}function z(n){return KE(n,!1)}function Ao(n){return KE(n,!0)}function KE(n,e){return Wt(n)?n:new GN(n,e)}class GN{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:At(e),this._value=t?e:Zu(e)}get value(){return Nb(this),this._value}set value(e){const t=this.__v_isShallow||Ch(e)||Ju(e);e=t?e:At(e),Hi(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Zu(e),Cu(this,4))}}function C(n){return Wt(n)?n.value:n}const qN={get:(n,e,t)=>C(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const o=n[e];return Wt(o)&&!Wt(t)?(o.value=t,!0):Reflect.set(n,e,t,r)}};function YE(n){return wu(n)?n:new Proxy(n,qN)}class KN{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:r}=e(()=>Nb(this),()=>Cu(this));this._get=t,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function YN(n){return new KN(n)}function Gs(n){const e=Re(n)?new Array(n.length):{};for(const t in n)e[t]=JE(n,t);return e}class JN{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 TN(At(this._object),this._key)}}class XN{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Eo(n,e,t){return Wt(n)?n:We(n)?new XN(n):pt(n)&&arguments.length>1?JE(n,e,t):z(n)}function JE(n,e,t){const r=n[e];return Wt(r)?r:new JN(n,e,t)}/** +* @vue/runtime-core v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Fi(n,e,t,r){try{return r?n(...r):n()}catch(o){Sp(o,e,t)}}function ro(n,e,t,r){if(We(n)){const o=Fi(n,e,t,r);return o&&xE(o)&&o.catch(s=>{Sp(s,e,t)}),o}if(Re(n)){const o=[];for(let s=0;s>>1,o=er[r],s=ed(o);sZo&&er.splice(e,1)}function eI(n){Re(n)?za.push(...n):(!yi||!yi.includes(n,n.allowRecurse?Ml+1:Ml))&&za.push(n),ZE()}function U0(n,e,t=Qu?Zo+1:0){for(;ted(t)-ed(r));if(za.length=0,yi){yi.push(...e);return}for(yi=e,Ml=0;Mln.id==null?1/0:n.id,tI=(n,e)=>{const t=ed(n)-ed(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function e2(n){zm=!1,Qu=!0,er.sort(tI);try{for(Zo=0;Zoft(h)?h.trim():h)),d&&(o=t.map(Dm))}let l,a=r[l=eh(e)]||r[l=eh(Lo(e))];!a&&s&&(a=r[l=eh(tl(e))]),a&&ro(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,ro(c,n,6,o)}}function t2(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(!We(n)){const a=c=>{const u=t2(c,e,!0);u&&(l=!0,hn(i,u))};!t&&e.mixins.length&&e.mixins.forEach(a),n.extends&&a(n.extends),n.mixins&&n.mixins.forEach(a)}return!s&&!l?(pt(n)&&r.set(n,null),null):(Re(s)?s.forEach(a=>i[a]=null):hn(i,s),pt(n)&&r.set(n,i),i)}function Ep(n,e){return!n||!yp(e)?!1:(e=e.slice(2).replace(/Once$/,""),wt(n,e[0].toLowerCase()+e.slice(1))||wt(n,tl(e))||wt(n,e))}let Nn=null,_p=null;function xh(n){const e=Nn;return Nn=n,_p=n&&n.type.__scopeId||null,e}function Dd(n){_p=n}function Vd(){_p=null}function _(n,e=Nn,t){if(!e||n._n)return n;const r=(...o)=>{r._d&&s1(-1);const s=xh(e);let i;try{i=n(...o)}finally{xh(s),r._d&&s1(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Ng(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=xh(n);let v,w;try{if(t.shapeFlag&4){const y=o||r,S=y;v=Jo(c.call(S,y,u,d,h,f,p)),w=l}else{const y=e;v=Jo(y.length>1?y(d,{attrs:l,slots:i,emit:a}):y(d,null)),w=e.props?l:rI(l)}}catch(y){Tu.length=0,Sp(y,n,1),v=x(Gn)}let b=v;if(w&&g!==!1){const y=Object.keys(w),{shapeFlag:S}=b;y.length&&S&7&&(s&&y.some(Cb)&&(w=oI(w,s)),b=zs(b,w,!1,!0))}return t.dirs&&(b=zs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(t.dirs):t.dirs),t.transition&&(b.transition=t.transition),v=b,xh(m),v}const rI=n=>{let e;for(const t in n)(t==="class"||t==="style"||yp(t))&&((e||(e={}))[t]=n[t]);return e},oI=(n,e)=>{const t={};for(const r in n)(!Cb(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function sI(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?W0(r,i,c):!!i;if(a&8){const u=e.dynamicProps;for(let d=0;dn.__isSuspense;function cI(n,e){e&&e.pendingBranch?Re(n)?e.effects.push(...n):e.effects.push(n):eI(n)}function Tp(n,e,t=qn,r=!1){if(t){const o=t[n]||(t[n]=[]),s=e.__weh||(e.__weh=(...i)=>{nl();const l=Bd(t),a=ro(e,t,n,i);return l(),rl(),a});return r?o.unshift(s):o.push(s),s}}const qs=n=>(e,t=qn)=>{(!Mp||n==="sp")&&Tp(n,(...r)=>e(...r),t)},Fd=qs("bm"),rt=qs("m"),uI=qs("bu"),pa=qs("u"),wn=qs("bum"),vs=qs("um"),dI=qs("sp"),fI=qs("rtg"),hI=qs("rtc");function pI(n,e=qn){Tp("ec",n,e)}function Fe(n,e){if(Nn===null)return n;const t=Ap(Nn),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 We(n)?hn({name:n.name},e,{setup:n}):n}const xu=n=>!!n.type.__asyncLoader;function _e(n,e,t={},r,o){if(Nn.isCE||Nn.parent&&xu(Nn.parent)&&Nn.parent.isCE)return e!=="default"&&(t.name=e),x("slot",t,r&&r());let s=n[e];s&&s._c&&(s._d=!1),P();const i=s&&r2(s(t)),l=we(Le,{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 r2(n){return n.some(e=>On(e)?!(e.type===Gn||e.type===Le&&!r2(e.children)):!0)?n:null}const jm=n=>n?O2(n)?Ap(n):jm(n.parent):null,Su=hn(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=>jm(n.parent),$root:n=>jm(n.root),$emit:n=>n.emit,$options:n=>Vb(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,Lb(n.update)}),$nextTick:n=>n.n||(n.n=nt.bind(n.proxy)),$watch:n=>RI.bind(n)}),Ig=(n,e)=>n!==Jt&&!n.__isScriptSetup&&wt(n,e),mI={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(Ig(r,e))return i[e]=1,r[e];if(o!==Jt&&wt(o,e))return i[e]=2,o[e];if((c=n.propsOptions[0])&&wt(c,e))return i[e]=3,s[e];if(t!==Jt&&wt(t,e))return i[e]=4,t[e];Hm&&(i[e]=0)}}const u=Su[e];let d,f;if(u)return e==="$attrs"&&_r(n.attrs,"get",""),u(n);if((d=l.__cssModules)&&(d=d[e]))return d;if(t!==Jt&&wt(t,e))return i[e]=4,t[e];if(f=a.config.globalProperties,wt(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:o,ctx:s}=n;return Ig(o,e)?(o[e]=t,!0):r!==Jt&&wt(r,e)?(r[e]=t,!0):wt(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!==Jt&&wt(n,i)||Ig(e,i)||(l=s[0])&&wt(l,i)||wt(r,i)||wt(Su,i)||wt(o.config.globalProperties,i)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:wt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function Bo(){return s2().slots}function o2(){return s2().attrs}function s2(){const n=vt();return n.setupContext||(n.setupContext=A2(n))}function q0(n){return Re(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Hm=!0;function vI(n){const e=Vb(n),t=n.proxy,r=n.ctx;Hm=!1,e.beforeCreate&&K0(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:S,renderTracked:E,renderTriggered:T,errorCaptured:M,serverPrefetch:O,expose:A,inheritAttrs:k,components:L,directives:j,filters:ne}=e;if(c&&bI(c,r,null),i)for(const U in i){const Z=i[U];We(Z)&&(r[U]=Z.bind(t))}if(o){const U=o.call(t,t);pt(U)&&(n.data=Ct(U))}if(Hm=!0,s)for(const U in s){const Z=s[U],Y=We(Z)?Z.bind(t,t):We(Z.get)?Z.get.bind(t,t):un,K=!We(Z)&&We(Z.set)?Z.set.bind(t):un,fe=B({get:Y,set:K});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>fe.value,set:H=>fe.value=H})}if(l)for(const U in l)i2(l[U],r,t,U);if(a){const U=We(a)?a.call(t):a;Reflect.ownKeys(U).forEach(Z=>{Ut(Z,U[Z])})}u&&K0(u,n,"c");function R(U,Z){Re(Z)?Z.forEach(Y=>U(Y.bind(t))):Z&&U(Z.bind(t))}if(R(Fd,d),R(rt,f),R(uI,h),R(pa,p),R($I,g),R(b2,m),R(pI,M),R(hI,E),R(fI,T),R(wn,w),R(vs,y),R(dI,O),Re(A))if(A.length){const U=n.exposed||(n.exposed={});A.forEach(Z=>{Object.defineProperty(U,Z,{get:()=>t[Z],set:Y=>t[Z]=Y})})}else n.exposed||(n.exposed={});S&&n.render===un&&(n.render=S),k!=null&&(n.inheritAttrs=k),L&&(n.components=L),j&&(n.directives=j)}function bI(n,e,t=un){Re(n)&&(n=Um(n));for(const r in n){const o=n[r];let s;pt(o)?"default"in o?s=De(o.from||r,o.default,!0):s=De(o.from||r):s=De(o),Wt(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):e[r]=s}}function K0(n,e,t){ro(Re(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function i2(n,e,t,r){const o=r.includes(".")?v2(t,r):()=>t[r];if(ft(n)){const s=e[n];We(s)&&$e(o,s)}else if(We(n))$e(o,n.bind(t));else if(pt(n))if(Re(n))n.forEach(s=>i2(s,e,t,r));else{const s=We(n.handler)?n.handler.bind(t):e[n.handler];We(s)&&$e(o,s,n)}}function Vb(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=>Sh(a,c,i,!0)),Sh(a,e,i)),pt(e)&&s.set(e,a),a}function Sh(n,e,t,r=!1){const{mixins:o,extends:s}=e;s&&Sh(n,s,t,!0),o&&o.forEach(i=>Sh(n,i,t,!0));for(const i in e)if(!(r&&i==="expose")){const l=yI[i]||t&&t[i];n[i]=l?l(n[i],e[i]):e[i]}return n}const yI={data:Y0,props:J0,emits:J0,methods:fu,computed:fu,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:fu,directives:fu,watch:CI,provide:Y0,inject:wI};function Y0(n,e){return e?n?function(){return hn(We(n)?n.call(this,this):n,We(e)?e.call(this,this):e)}:e:n}function wI(n,e){return fu(Um(n),Um(e))}function Um(n){if(Re(n)){const e={};for(let t=0;t1)return t&&We(e)?e.call(r&&r.proxy):e}}const a2={},c2=()=>Object.create(a2),u2=n=>Object.getPrototypeOf(n)===a2;function EI(n,e,t,r=!1){const o={},s=c2();n.propsDefaults=Object.create(null),d2(n,e,o,s);for(const i in n.propsOptions[0])i in o||(o[i]=void 0);t?n.props=r?o:Ab(o):n.type.props?n.props=o:n.props=s,n.attrs=s}function _I(n,e,t,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=n,l=At(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]=f2(d,e,!0);hn(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 pt(n)&&r.set(n,Fa),Fa;if(Re(s))for(let u=0;u-1,h[1]=g<0||p-1||wt(h,"default"))&&l.push(d)}}}const c=[i,l];return pt(n)&&r.set(n,c),c}function X0(n){return n[0]!=="$"&&!yu(n)}function Z0(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function Q0(n,e){return Z0(n)===Z0(e)}function e1(n,e){return Re(e)?e.findIndex(t=>Q0(t,n)):We(e)&&Q0(e,n)?0:-1}const h2=n=>n[0]==="_"||n==="$stable",Fb=n=>Re(n)?n.map(Jo):[Jo(n)],TI=(n,e,t)=>{if(e._n)return e;const r=_((...o)=>Fb(e(...o)),t);return r._c=!1,r},p2=(n,e,t)=>{const r=n._ctx;for(const o in n){if(h2(o))continue;const s=n[o];if(We(s))e[o]=TI(o,s,r);else if(s!=null){const i=Fb(s);e[o]=()=>i}}},g2=(n,e)=>{const t=Fb(e);n.slots.default=()=>t},OI=(n,e)=>{const t=n.slots=c2();if(n.vnode.shapeFlag&32){const r=e._;r?(hn(t,e),_E(t,"_",r,!0)):p2(e,t)}else e&&g2(n,e)},MI=(n,e,t)=>{const{vnode:r,slots:o}=n;let s=!0,i=Jt;if(r.shapeFlag&32){const l=e._;l?t&&l===1?s=!1:(hn(o,e),!t&&l===1&&delete o._):(s=!e.$stable,p2(e,o)),i=e}else e&&(g2(n,e),i={default:1});if(s)for(const l in o)!h2(l)&&i[l]==null&&delete o[l]};function Gm(n,e,t,r,o=!1){if(Re(n)){n.forEach((f,h)=>Gm(f,e&&(Re(e)?e[h]:e),t,r,o));return}if(xu(r)&&!o)return;const s=r.shapeFlag&4?Ap(r.component):r.el,i=o?null:s,{i:l,r:a}=n,c=e&&e.r,u=l.refs===Jt?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ft(c)?(u[c]=null,wt(d,c)&&(d[c]=null)):Wt(c)&&(c.value=null)),We(a))Fi(a,l,12,[i,u]);else{const f=ft(a),h=Wt(a);if(f||h){const p=()=>{if(n.f){const g=f?wt(d,a)?d[a]:u[a]:a.value;o?Re(g)&&xb(g,s):Re(g)?g.includes(s)||g.push(s):f?(u[a]=[s],wt(d,a)&&(d[a]=u[a])):(a.value=[s],n.k&&(u[n.k]=a.value))}else f?(u[a]=i,wt(d,a)&&(d[a]=i)):h&&(a.value=i,n.k&&(u[n.k]=i))};i?(p.id=-1,br(p,t)):p()}}}const br=cI;function AI(n){return kI(n)}function kI(n,e){const t=TE();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=un,insertStaticContent:p}=n,g=($,N,te,pe=null,ge=null,ae=null,Ee=void 0,D=null,V=!!N.dynamicChildren)=>{if($===N)return;$&&!Al($,N)&&(pe=W($),H($,ge,ae,!0),$=null),N.patchFlag===-2&&(V=!1,N.dynamicChildren=null);const{type:J,ref:le,shapeFlag:Oe}=N;switch(J){case ga:m($,N,te,pe);break;case Gn:v($,N,te,pe);break;case $g:$==null&&w(N,te,pe,Ee);break;case Le:L($,N,te,pe,ge,ae,Ee,D,V);break;default:Oe&1?S($,N,te,pe,ge,ae,Ee,D,V):Oe&6?j($,N,te,pe,ge,ae,Ee,D,V):(Oe&64||Oe&128)&&J.process($,N,te,pe,ge,ae,Ee,D,V,ve)}le!=null&&ge&&Gm(le,$&&$.ref,ae,N||$,!N)},m=($,N,te,pe)=>{if($==null)r(N.el=l(N.children),te,pe);else{const ge=N.el=$.el;N.children!==$.children&&c(ge,N.children)}},v=($,N,te,pe)=>{$==null?r(N.el=a(N.children||""),te,pe):N.el=$.el},w=($,N,te,pe)=>{[$.el,$.anchor]=p($.children,N,te,pe,$.el,$.anchor)},b=({el:$,anchor:N},te,pe)=>{let ge;for(;$&&$!==N;)ge=f($),r($,te,pe),$=ge;r(N,te,pe)},y=({el:$,anchor:N})=>{let te;for(;$&&$!==N;)te=f($),o($),$=te;o(N)},S=($,N,te,pe,ge,ae,Ee,D,V)=>{N.type==="svg"?Ee="svg":N.type==="math"&&(Ee="mathml"),$==null?E(N,te,pe,ge,ae,Ee,D,V):O($,N,ge,ae,Ee,D,V)},E=($,N,te,pe,ge,ae,Ee,D)=>{let V,J;const{props:le,shapeFlag:Oe,transition:oe,dirs:Q}=$;if(V=$.el=i($.type,ae,le&&le.is,le),Oe&8?u(V,$.children):Oe&16&&M($.children,V,null,pe,ge,Lg($,ae),Ee,D),Q&&yl($,null,pe,"created"),T(V,$,$.scopeId,Ee,pe),le){for(const Ue in le)Ue!=="value"&&!yu(Ue)&&s(V,Ue,null,le[Ue],ae,$.children,pe,ge,ye);"value"in le&&s(V,"value",null,le.value,ae),(J=le.onVnodeBeforeMount)&&Ko(J,pe,$)}Q&&yl($,null,pe,"beforeMount");const de=PI(ge,oe);de&&oe.beforeEnter(V),r(V,N,te),((J=le&&le.onVnodeMounted)||de||Q)&&br(()=>{J&&Ko(J,pe,$),de&&oe.enter(V),Q&&yl($,null,pe,"mounted")},ge)},T=($,N,te,pe,ge)=>{if(te&&h($,te),pe)for(let ae=0;ae{for(let J=V;J<$.length;J++){const le=$[J]=D?Ci($[J]):Jo($[J]);g(null,le,N,te,pe,ge,ae,Ee,D)}},O=($,N,te,pe,ge,ae,Ee)=>{const D=N.el=$.el;let{patchFlag:V,dynamicChildren:J,dirs:le}=N;V|=$.patchFlag&16;const Oe=$.props||Jt,oe=N.props||Jt;let Q;if(te&&wl(te,!1),(Q=oe.onVnodeBeforeUpdate)&&Ko(Q,te,N,$),le&&yl(N,$,te,"beforeUpdate"),te&&wl(te,!0),J?A($.dynamicChildren,J,D,te,pe,Lg(N,ge),ae):Ee||Z($,N,D,null,te,pe,Lg(N,ge),ae,!1),V>0){if(V&16)k(D,N,Oe,oe,te,pe,ge);else if(V&2&&Oe.class!==oe.class&&s(D,"class",null,oe.class,ge),V&4&&s(D,"style",Oe.style,oe.style,ge),V&8){const de=N.dynamicProps;for(let Ue=0;Ue{Q&&Ko(Q,te,N,$),le&&yl(N,$,te,"updated")},pe)},A=($,N,te,pe,ge,ae,Ee)=>{for(let D=0;D{if(te!==pe){if(te!==Jt)for(const D in te)!yu(D)&&!(D in pe)&&s($,D,te[D],null,Ee,N.children,ge,ae,ye);for(const D in pe){if(yu(D))continue;const V=pe[D],J=te[D];V!==J&&D!=="value"&&s($,D,J,V,Ee,N.children,ge,ae,ye)}"value"in pe&&s($,"value",te.value,pe.value,Ee)}},L=($,N,te,pe,ge,ae,Ee,D,V)=>{const J=N.el=$?$.el:l(""),le=N.anchor=$?$.anchor:l("");let{patchFlag:Oe,dynamicChildren:oe,slotScopeIds:Q}=N;Q&&(D=D?D.concat(Q):Q),$==null?(r(J,te,pe),r(le,te,pe),M(N.children||[],te,le,ge,ae,Ee,D,V)):Oe>0&&Oe&64&&oe&&$.dynamicChildren?(A($.dynamicChildren,oe,te,ge,ae,Ee,D),(N.key!=null||ge&&N===ge.subTree)&&Bb($,N,!0)):Z($,N,te,le,ge,ae,Ee,D,V)},j=($,N,te,pe,ge,ae,Ee,D,V)=>{N.slotScopeIds=D,$==null?N.shapeFlag&512?ge.ctx.activate(N,te,pe,Ee,V):ne(N,te,pe,ge,ae,Ee,V):I($,N,V)},ne=($,N,te,pe,ge,ae,Ee)=>{const D=$.component=KI($,pe,ge);if(Op($)&&(D.ctx.renderer=ve),YI(D),D.asyncDep){if(ge&&ge.registerDep(D,R,Ee),!$.el){const V=D.subTree=x(Gn);v(null,V,N,te)}}else R(D,$,N,te,ge,ae,Ee)},I=($,N,te)=>{const pe=N.component=$.component;if(sI($,N,te))if(pe.asyncDep&&!pe.asyncResolved){U(pe,N,te);return}else pe.next=N,QN(pe.update),pe.effect.dirty=!0,pe.update();else N.el=$.el,pe.vnode=N},R=($,N,te,pe,ge,ae,Ee)=>{const D=()=>{if($.isMounted){let{next:le,bu:Oe,u:oe,parent:Q,vnode:de}=$;{const Je=m2($);if(Je){le&&(le.el=de.el,U($,le,Ee)),Je.asyncDep.then(()=>{$.isUnmounted||D()});return}}let Ue=le,Ke;wl($,!1),le?(le.el=de.el,U($,le,Ee)):le=de,Oe&&th(Oe),(Ke=le.props&&le.props.onVnodeBeforeUpdate)&&Ko(Ke,Q,le,de),wl($,!0);const Ae=Ng($),Me=$.subTree;$.subTree=Ae,g(Me,Ae,d(Me.el),W(Me),$,ge,ae),le.el=Ae.el,Ue===null&&iI($,Ae.el),oe&&br(oe,ge),(Ke=le.props&&le.props.onVnodeUpdated)&&br(()=>Ko(Ke,Q,le,de),ge)}else{let le;const{el:Oe,props:oe}=N,{bm:Q,m:de,parent:Ue}=$,Ke=xu(N);if(wl($,!1),Q&&th(Q),!Ke&&(le=oe&&oe.onVnodeBeforeMount)&&Ko(le,Ue,N),wl($,!0),Oe&&Se){const Ae=()=>{$.subTree=Ng($),Se(Oe,$.subTree,$,ge,null)};Ke?N.type.__asyncLoader().then(()=>!$.isUnmounted&&Ae()):Ae()}else{const Ae=$.subTree=Ng($);g(null,Ae,te,pe,$,ge,ae),N.el=Ae.el}if(de&&br(de,ge),!Ke&&(le=oe&&oe.onVnodeMounted)){const Ae=N;br(()=>Ko(le,Ue,Ae),ge)}(N.shapeFlag&256||Ue&&xu(Ue.vnode)&&Ue.vnode.shapeFlag&256)&&$.a&&br($.a,ge),$.isMounted=!0,N=te=pe=null}},V=$.effect=new Eb(D,un,()=>Lb(J),$.scope),J=$.update=()=>{V.dirty&&V.run()};J.id=$.uid,wl($,!0),J()},U=($,N,te)=>{N.component=$;const pe=$.vnode.props;$.vnode=N,$.next=null,_I($,N.props,pe,te),MI($,N.children,te),nl(),U0($),rl()},Z=($,N,te,pe,ge,ae,Ee,D,V=!1)=>{const J=$&&$.children,le=$?$.shapeFlag:0,Oe=N.children,{patchFlag:oe,shapeFlag:Q}=N;if(oe>0){if(oe&128){K(J,Oe,te,pe,ge,ae,Ee,D,V);return}else if(oe&256){Y(J,Oe,te,pe,ge,ae,Ee,D,V);return}}Q&8?(le&16&&ye(J,ge,ae),Oe!==J&&u(te,Oe)):le&16?Q&16?K(J,Oe,te,pe,ge,ae,Ee,D,V):ye(J,ge,ae,!0):(le&8&&u(te,""),Q&16&&M(Oe,te,pe,ge,ae,Ee,D,V))},Y=($,N,te,pe,ge,ae,Ee,D,V)=>{$=$||Fa,N=N||Fa;const J=$.length,le=N.length,Oe=Math.min(J,le);let oe;for(oe=0;oele?ye($,ge,ae,!0,!1,Oe):M(N,te,pe,ge,ae,Ee,D,V,Oe)},K=($,N,te,pe,ge,ae,Ee,D,V)=>{let J=0;const le=N.length;let Oe=$.length-1,oe=le-1;for(;J<=Oe&&J<=oe;){const Q=$[J],de=N[J]=V?Ci(N[J]):Jo(N[J]);if(Al(Q,de))g(Q,de,te,null,ge,ae,Ee,D,V);else break;J++}for(;J<=Oe&&J<=oe;){const Q=$[Oe],de=N[oe]=V?Ci(N[oe]):Jo(N[oe]);if(Al(Q,de))g(Q,de,te,null,ge,ae,Ee,D,V);else break;Oe--,oe--}if(J>Oe){if(J<=oe){const Q=oe+1,de=Qoe)for(;J<=Oe;)H($[J],ge,ae,!0),J++;else{const Q=J,de=J,Ue=new Map;for(J=de;J<=oe;J++){const Ve=N[J]=V?Ci(N[J]):Jo(N[J]);Ve.key!=null&&Ue.set(Ve.key,J)}let Ke,Ae=0;const Me=oe-de+1;let Je=!1,it=0;const he=new Array(Me);for(J=0;J=Me){H(Ve,ge,ae,!0);continue}let lt;if(Ve.key!=null)lt=Ue.get(Ve.key);else for(Ke=de;Ke<=oe;Ke++)if(he[Ke-de]===0&&Al(Ve,N[Ke])){lt=Ke;break}lt===void 0?H(Ve,ge,ae,!0):(he[lt-de]=J+1,lt>=it?it=lt:Je=!0,g(Ve,N[lt],te,null,ge,ae,Ee,D,V),Ae++)}const Ne=Je?NI(he):Fa;for(Ke=Ne.length-1,J=Me-1;J>=0;J--){const Ve=de+J,lt=N[Ve],ct=Ve+1{const{el:ae,type:Ee,transition:D,children:V,shapeFlag:J}=$;if(J&6){fe($.component.subTree,N,te,pe);return}if(J&128){$.suspense.move(N,te,pe);return}if(J&64){Ee.move($,N,te,ve);return}if(Ee===Le){r(ae,N,te);for(let Oe=0;OeD.enter(ae),ge);else{const{leave:Oe,delayLeave:oe,afterLeave:Q}=D,de=()=>r(ae,N,te),Ue=()=>{Oe(ae,()=>{de(),Q&&Q()})};oe?oe(ae,de,Ue):Ue()}else r(ae,N,te)},H=($,N,te,pe=!1,ge=!1)=>{const{type:ae,props:Ee,ref:D,children:V,dynamicChildren:J,shapeFlag:le,patchFlag:Oe,dirs:oe,memoIndex:Q}=$;if(Oe===-2&&(ge=!1),D!=null&&Gm(D,null,te,$,!0),Q!=null&&(N.renderCache[Q]=void 0),le&256){N.ctx.deactivate($);return}const de=le&1&&oe,Ue=!xu($);let Ke;if(Ue&&(Ke=Ee&&Ee.onVnodeBeforeUnmount)&&Ko(Ke,N,$),le&6)be($.component,te,pe);else{if(le&128){$.suspense.unmount(te,pe);return}de&&yl($,null,N,"beforeUnmount"),le&64?$.type.remove($,N,te,ve,pe):J&&(ae!==Le||Oe>0&&Oe&64)?ye(J,N,te,!1,!0):(ae===Le&&Oe&384||!ge&&le&16)&&ye(V,N,te),pe&&se($)}(Ue&&(Ke=Ee&&Ee.onVnodeUnmounted)||de)&&br(()=>{Ke&&Ko(Ke,N,$),de&&yl($,null,N,"unmounted")},te)},se=$=>{const{type:N,el:te,anchor:pe,transition:ge}=$;if(N===Le){ue(te,pe);return}if(N===$g){y($);return}const ae=()=>{o(te),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if($.shapeFlag&1&&ge&&!ge.persisted){const{leave:Ee,delayLeave:D}=ge,V=()=>Ee(te,ae);D?D($.el,ae,V):V()}else ae()},ue=($,N)=>{let te;for(;$!==N;)te=f($),o($),$=te;o(N)},be=($,N,te)=>{const{bum:pe,scope:ge,update:ae,subTree:Ee,um:D,m:V,a:J}=$;t1(V),t1(J),pe&&th(pe),ge.stop(),ae&&(ae.active=!1,H(Ee,$,N,te)),D&&br(D,N),br(()=>{$.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},ye=($,N,te,pe=!1,ge=!1,ae=0)=>{for(let Ee=ae;Ee<$.length;Ee++)H($[Ee],N,te,pe,ge)},W=$=>$.shapeFlag&6?W($.component.subTree):$.shapeFlag&128?$.suspense.next():f($.anchor||$.el);let ce=!1;const re=($,N,te)=>{$==null?N._vnode&&H(N._vnode,null,null,!0):g(N._vnode||null,$,N,null,null,null,te),ce||(ce=!0,U0(),QE(),ce=!1),N._vnode=$},ve={p:g,um:H,m:fe,r:se,mt:ne,mc:M,pc:Z,pbc:A,n:W,o:n};let ke,Se;return{render:re,hydrate:ke,createApp:SI(re,ke)}}function Lg({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 wl({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function PI(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function Bb(n,e,t=!1){const r=n.children,o=e.children;if(Re(r)&&Re(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 m2(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:m2(e)}function t1(n){if(n)for(let e=0;eDe(II);function rs(n,e){return zb(n,null,e)}const xf={};function $e(n,e,t){return zb(n,e,t)}function zb(n,e,{immediate:t,deep:r,flush:o,once:s,onTrack:i,onTrigger:l}=Jt){if(e&&s){const E=e;e=(...T)=>{E(...T),S()}}const a=qn,c=E=>r===!0?E:Oi(E,r===!1?1:void 0);let u,d=!1,f=!1;if(Wt(n)?(u=()=>n.value,d=Ch(n)):wu(n)?(u=()=>c(n),d=!0):Re(n)?(f=!0,d=n.some(E=>wu(E)||Ch(E)),u=()=>n.map(E=>{if(Wt(E))return E.value;if(wu(E))return c(E);if(We(E))return Fi(E,a,2)})):We(n)?e?u=()=>Fi(n,a,2):u=()=>(h&&h(),ro(n,a,3,[p])):u=un,e&&r){const E=u;u=()=>Oi(E())}let h,p=E=>{h=b.onStop=()=>{Fi(E,a,4),h=b.onStop=void 0}},g;if(Mp)if(p=un,e?t&&ro(e,a,3,[u(),f?[]:void 0,p]):u(),o==="sync"){const E=LI();g=E.__watcherHandles||(E.__watcherHandles=[])}else return un;let m=f?new Array(n.length).fill(xf):xf;const v=()=>{if(!(!b.active||!b.dirty))if(e){const E=b.run();(r||d||(f?E.some((T,M)=>Hi(T,m[M])):Hi(E,m)))&&(h&&h(),ro(e,a,3,[E,m===xf?void 0:f&&m[0]===xf?[]:m,p]),m=E)}else b.run()};v.allowRecurse=!!e;let w;o==="sync"?w=v:o==="post"?w=()=>br(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),w=()=>Lb(v));const b=new Eb(u,un,w),y=IE(),S=()=>{b.stop(),y&&xb(y.effects,b)};return e?t?v():m=b.run():o==="post"?br(b.run.bind(b),a&&a.suspense):b.run(),g&&g.push(S),S}function RI(n,e,t){const r=this.proxy,o=ft(n)?n.includes(".")?v2(r,n):()=>r[n]:n.bind(r,r);let s;We(e)?s=e:(s=e.handler,t=e);const i=Bd(this),l=zb(o,s.bind(r),t);return i(),l}function v2(n,e){const t=e.split(".");return()=>{let r=n;for(let o=0;o{Oi(r,e,t)});else if(EE(n)){for(const r in n)Oi(n[r],e,t);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Oi(n[r],e,t)}return n}const Op=n=>n.type.__isKeepAlive;function $I(n,e){y2(n,"a",e)}function b2(n,e){y2(n,"da",e)}function y2(n,e,t=qn){const r=n.__wdc||(n.__wdc=()=>{let o=t;for(;o;){if(o.isDeactivated)return;o=o.parent}return n()});if(Tp(e,r,t),t){let o=t.parent;for(;o&&o.parent;)Op(o.parent.vnode)&&DI(r,e,t,o),o=o.parent}}function DI(n,e,t,r){const o=Tp(e,n,r,!0);vs(()=>{xb(r[e],o)},t)}const wi=Symbol("_leaveCb"),Sf=Symbol("_enterCb");function w2(){const n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return rt(()=>{n.isMounted=!0}),wn(()=>{n.isUnmounting=!0}),n}const Ur=[Function,Array],C2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ur,onEnter:Ur,onAfterEnter:Ur,onEnterCancelled:Ur,onBeforeLeave:Ur,onLeave:Ur,onAfterLeave:Ur,onLeaveCancelled:Ur,onBeforeAppear:Ur,onAppear:Ur,onAfterAppear:Ur,onAppearCancelled:Ur},x2=n=>{const e=n.subTree;return e.component?x2(e.component):e},VI={name:"BaseTransition",props:C2,setup(n,{slots:e}){const t=vt(),r=w2();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!==Gn){s=f;break}}const i=At(n),{mode:l}=i;if(r.isLeaving)return Rg(s);const a=n1(s);if(!a)return Rg(s);let c=td(a,i,r,t,f=>c=f);Ya(a,c);const u=t.subTree,d=u&&n1(u);if(d&&d.type!==Gn&&!Al(a,d)&&x2(t).type!==Gn){const f=td(d,i,r,t);if(Ya(d,f),l==="out-in"&&a.type!==Gn)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,t.update.active!==!1&&(t.effect.dirty=!0,t.update())},Rg(s);l==="in-out"&&a.type!==Gn&&(f.delayLeave=(h,p,g)=>{const m=S2(r,d);m[String(d.key)]=d,h[wi]=()=>{p(),h[wi]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return s}}},FI=VI;function S2(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 td(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),S=S2(t,n),E=(O,A)=>{O&&ro(O,r,9,A)},T=(O,A)=>{const k=A[1];E(O,A),Re(O)?O.every(L=>L.length<=1)&&k():O.length<=1&&k()},M={mode:i,persisted:l,beforeEnter(O){let A=a;if(!t.isMounted)if(s)A=m||a;else return;O[wi]&&O[wi](!0);const k=S[y];k&&Al(n,k)&&k.el[wi]&&k.el[wi](),E(A,[O])},enter(O){let A=c,k=u,L=d;if(!t.isMounted)if(s)A=v||c,k=w||u,L=b||d;else return;let j=!1;const ne=O[Sf]=I=>{j||(j=!0,I?E(L,[O]):E(k,[O]),M.delayedLeave&&M.delayedLeave(),O[Sf]=void 0)};A?T(A,[O,ne]):ne()},leave(O,A){const k=String(n.key);if(O[Sf]&&O[Sf](!0),t.isUnmounting)return A();E(f,[O]);let L=!1;const j=O[wi]=ne=>{L||(L=!0,A(),ne?E(g,[O]):E(p,[O]),O[wi]=void 0,S[k]===n&&delete S[k])};S[k]=n,h?T(h,[O,j]):j()},clone(O){const A=td(O,e,t,r,o);return o&&o(A),A}};return M}function Rg(n){if(Op(n))return n=zs(n),n.children=null,n}function n1(n){if(!Op(n))return n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&We(t.default))return t.default()}}function Ya(n,e){n.shapeFlag&6&&n.component?Ya(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,_u=n=>n&&(n.disabled||n.disabled===""),r1=n=>typeof SVGElement<"u"&&n instanceof SVGElement,o1=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,qm=(n,e)=>{const t=n&&n.to;return ft(t)?e?e(t):null:t},zI={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=_u(e.props);let{shapeFlag:w,children:b,dynamicChildren:y}=e;if(n==null){const S=e.el=g(""),E=e.anchor=g("");h(S,t,r),h(E,t,r);const T=e.target=qm(e.props,p),M=e.targetAnchor=g("");T&&(h(M,T),i==="svg"||r1(T)?i="svg":(i==="mathml"||o1(T))&&(i="mathml"));const O=(A,k)=>{w&16&&u(b,A,k,o,s,i,l,a)};v?O(t,E):T&&O(T,M)}else{e.el=n.el;const S=e.anchor=n.anchor,E=e.target=n.target,T=e.targetAnchor=n.targetAnchor,M=_u(n.props),O=M?t:E,A=M?S:T;if(i==="svg"||r1(E)?i="svg":(i==="mathml"||o1(E))&&(i="mathml"),y?(f(n.dynamicChildren,y,O,o,s,i,l),Bb(n,e,!0)):a||d(n,e,O,A,o,s,i,l,!1),v)M?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Ef(e,t,S,c,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const k=e.target=qm(e.props,p);k&&Ef(e,k,null,c,0)}else M&&Ef(e,E,T,c,1)}E2(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||!_u(d);for(let h=0;h0?_o||Fa:null,HI(),nd>0&&_o&&_o.push(n),n}function G(n,e,t,r,o,s){return _2(F(n,e,t,r,o,s,!0))}function we(n,e,t,r,o){return _2(x(n,e,t,r,o,!0))}function On(n){return n?n.__v_isVNode===!0:!1}function Al(n,e){return n.type===e.type&&n.key===e.key}const T2=({key:n})=>n??null,nh=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?ft(n)||Wt(n)||We(n)?{i:Nn,r:n,k:e,f:!!t}:n:null);function F(n,e=null,t=null,r=0,o=null,s=n===Le?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&T2(e),ref:e&&nh(e),scopeId:_p,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:Nn};return l?(Hb(a,t),s&128&&n.normalize(a)):t&&(a.shapeFlag|=ft(t)?8:16),nd>0&&!i&&_o&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&_o.push(a),a}const x=UI;function UI(n,e=null,t=null,r=0,o=null,s=!1){if((!n||n===n2)&&(n=Gn),On(n)){const l=zs(n,e,!0);return t&&Hb(l,t),nd>0&&!s&&_o&&(l.shapeFlag&6?_o[_o.indexOf(n)]=l:_o.push(l)),l.patchFlag=-2,l}if(QI(n)&&(n=n.__vccOpts),e){e=WI(e);let{class:l,style:a}=e;l&&!ft(l)&&(e.class=X(l)),pt(a)&&(GE(a)&&!Re(a)&&(a=hn({},a)),e.style=bt(a))}const i=ft(n)?1:aI(n)?128:BI(n)?64:pt(n)?4:We(n)?2:0;return F(n,e,t,r,o,i,s,!0)}function WI(n){return n?GE(n)||u2(n)?hn({},n):n:null}function zs(n,e,t=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:l,transition:a}=n,c=e?$r(o||{},e):o,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:c,key:c&&T2(c),ref:e&&e.ref?t&&s?Re(s)?s.concat(nh(e)):[s,nh(e)]:nh(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!==Le?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&&zs(n.ssContent),ssFallback:n.ssFallback&&zs(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return a&&r&&Ya(u,a.clone(u)),u}function ee(n=" ",e=0){return x(ga,null,n,e)}function Ce(n="",e=!1){return e?(P(),we(Gn,null,n)):x(Gn,null,n)}function Jo(n){return n==null||typeof n=="boolean"?x(Gn):Re(n)?x(Le,null,n.slice()):typeof n=="object"?Ci(n):x(ga,null,String(n))}function Ci(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:zs(n)}function Hb(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(Re(e))t=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),Hb(n,o()),o._c&&(o._d=!0));return}else{t=32;const o=e._;!o&&!u2(e)?e._ctx=Nn:o===3&&Nn&&(Nn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else We(e)?(e={default:e,_ctx:Nn},t=32):(e=String(e),r&64?(t=16,e=[ee(e)]):t=8);n.children=e,n.shapeFlag|=t}function $r(...n){const e={};for(let t=0;tqn||Nn;let Eh,Km;{const n=TE(),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)}};Eh=e("__VUE_INSTANCE_SETTERS__",t=>qn=t),Km=e("__VUE_SSR_SETTERS__",t=>Mp=t)}const Bd=n=>{const e=qn;return Eh(n),n.scope.on(),()=>{n.scope.off(),Eh(e)}},i1=()=>{qn&&qn.scope.off(),Eh(null)};function O2(n){return n.vnode.shapeFlag&4}let Mp=!1;function YI(n,e=!1){e&&Km(e);const{props:t,children:r}=n.vnode,o=O2(n);EI(n,t,o,e),OI(n,r);const s=o?JI(n,e):void 0;return e&&Km(!1),s}function JI(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,mI);const{setup:r}=t;if(r){const o=n.setupContext=r.length>1?A2(n):null,s=Bd(n);nl();const i=Fi(r,n,0,[n.props,o]);if(rl(),s(),xE(i)){if(i.then(i1,i1),e)return i.then(l=>{l1(n,l,e)}).catch(l=>{Sp(l,n,0)});n.asyncDep=i}else l1(n,i,e)}else M2(n,e)}function l1(n,e,t){We(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:pt(e)&&(n.setupState=YE(e)),M2(n,t)}let a1;function M2(n,e,t){const r=n.type;if(!n.render){if(!e&&a1&&!r.render){const o=r.template||Vb(n).template;if(o){const{isCustomElement:s,compilerOptions:i}=n.appContext.config,{delimiters:l,compilerOptions:a}=r,c=hn(hn({isCustomElement:s,delimiters:l},i),a);r.render=a1(o,c)}}n.render=r.render||un}{const o=Bd(n);nl();try{vI(n)}finally{rl(),o()}}}const XI={get(n,e){return _r(n,"get",""),n[e]}};function A2(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,XI),slots:n.slots,emit:n.emit,expose:e}}function Ap(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(YE(Xu(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Su)return Su[t](n)},has(e,t){return t in e||t in Su}})):n.proxy}function ZI(n,e=!0){return We(n)?n.displayName||n.name:n.name||e&&n.__name}function QI(n){return We(n)&&"__vccOpts"in n}const B=(n,e)=>WN(n,e,Mp);function Ye(n,e,t){const r=arguments.length;return r===2?pt(e)&&!Re(e)?On(e)?x(n,null,[e]):x(n,e):x(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&On(t)&&(t=[t]),x(n,e,t))}const eL="3.4.31",tL=un;/** +* @vue/runtime-dom v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const nL="http://www.w3.org/2000/svg",rL="http://www.w3.org/1998/Math/MathML",As=typeof document<"u"?document:null,c1=As&&As.createElement("template"),oL={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"?As.createElementNS(nL,n):e==="mathml"?As.createElementNS(rL,n):t?As.createElement(n,{is:t}):As.createElement(n);return n==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:n=>As.createTextNode(n),createComment:n=>As.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>As.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{c1.innerHTML=r==="svg"?`${n}`:r==="mathml"?`${n}`:n;const l=c1.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]}},ai="transition",ru="animation",Ja=Symbol("_vtc"),Tr=(n,{slots:e})=>Ye(FI,P2(n),e);Tr.displayName="Transition";const k2={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},sL=Tr.props=hn({},C2,k2),Cl=(n,e=[])=>{Re(n)?n.forEach(t=>t(...e)):n&&n(...e)},u1=n=>n?Re(n)?n.some(e=>e.length>1):n.length>1:!1;function P2(n){const e={};for(const L in n)L in k2||(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=iL(o),g=p&&p[0],m=p&&p[1],{onBeforeEnter:v,onEnter:w,onEnterCancelled:b,onLeave:y,onLeaveCancelled:S,onBeforeAppear:E=v,onAppear:T=w,onAppearCancelled:M=b}=e,O=(L,j,ne)=>{hi(L,j?u:l),hi(L,j?c:i),ne&&ne()},A=(L,j)=>{L._isLeaving=!1,hi(L,d),hi(L,h),hi(L,f),j&&j()},k=L=>(j,ne)=>{const I=L?T:w,R=()=>O(j,L,ne);Cl(I,[j,R]),d1(()=>{hi(j,L?a:s),Ms(j,L?u:l),u1(I)||f1(j,r,g,R)})};return hn(e,{onBeforeEnter(L){Cl(v,[L]),Ms(L,s),Ms(L,i)},onBeforeAppear(L){Cl(E,[L]),Ms(L,a),Ms(L,c)},onEnter:k(!1),onAppear:k(!0),onLeave(L,j){L._isLeaving=!0;const ne=()=>A(L,j);Ms(L,d),Ms(L,f),I2(),d1(()=>{L._isLeaving&&(hi(L,d),Ms(L,h),u1(y)||f1(L,r,m,ne))}),Cl(y,[L,ne])},onEnterCancelled(L){O(L,!1),Cl(b,[L])},onAppearCancelled(L){O(L,!0),Cl(M,[L])},onLeaveCancelled(L){A(L),Cl(S,[L])}})}function iL(n){if(n==null)return null;if(pt(n))return[Dg(n.enter),Dg(n.leave)];{const e=Dg(n);return[e,e]}}function Dg(n){return mN(n)}function Ms(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Ja]||(n[Ja]=new Set)).add(e)}function hi(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[Ja];t&&(t.delete(e),t.size||(n[Ja]=void 0))}function d1(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let lL=0;function f1(n,e,t,r){const o=n._endId=++lL,s=()=>{o===n._endId&&r()};if(t)return setTimeout(s,t);const{type:i,timeout:l,propCount:a}=N2(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(`${ai}Delay`),s=r(`${ai}Duration`),i=h1(o,s),l=r(`${ru}Delay`),a=r(`${ru}Duration`),c=h1(l,a);let u=null,d=0,f=0;e===ai?i>0&&(u=ai,d=i,f=s.length):e===ru?c>0&&(u=ru,d=c,f=a.length):(d=Math.max(i,c),u=d>0?i>c?ai:ru:null,f=u?u===ai?s.length:a.length:0);const h=u===ai&&/\b(transform|all)(,|$)/.test(r(`${ai}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function h1(n,e){for(;n.lengthp1(t)+p1(n[r])))}function p1(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function I2(){return document.body.offsetHeight}function aL(n,e,t){const r=n[Ja];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const _h=Symbol("_vod"),L2=Symbol("_vsh"),Qe={beforeMount(n,{value:e},{transition:t}){n[_h]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):ou(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),ou(n,!0),r.enter(n)):r.leave(n,()=>{ou(n,!1)}):ou(n,e))},beforeUnmount(n,{value:e}){ou(n,e)}};function ou(n,e){n.style.display=e?n[_h]:"none",n[L2]=!e}const cL=Symbol(""),uL=/(^|;)\s*display\s*:/;function dL(n,e,t){const r=n.style,o=ft(t);let s=!1;if(t&&!o){if(e)if(ft(e))for(const i of e.split(";")){const l=i.slice(0,i.indexOf(":")).trim();t[l]==null&&rh(r,l,"")}else for(const i in e)t[i]==null&&rh(r,i,"");for(const i in t)i==="display"&&(s=!0),rh(r,i,t[i])}else if(o){if(e!==t){const i=r[cL];i&&(t+=";"+i),r.cssText=t,s=uL.test(t)}}else e&&n.removeAttribute("style");_h in n&&(n[_h]=s?r.display:"",n[L2]&&(r.display="none"))}const g1=/\s*!important$/;function rh(n,e,t){if(Re(t))t.forEach(r=>rh(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=fL(n,e);g1.test(t)?n.setProperty(tl(r),t.replace(g1,""),"important"):n[r]=t}}const m1=["Webkit","Moz","ms"],Vg={};function fL(n,e){const t=Vg[e];if(t)return t;let r=Lo(e);if(r!=="filter"&&r in n)return Vg[e]=r;r=Rd(r);for(let o=0;oFg||(vL.then(()=>Fg=0),Fg=Date.now());function yL(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;ro(wL(r,t.value),e,5,[r])};return t.value=n,t.attached=bL(),t}function wL(n,e){if(Re(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 C1=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,CL=(n,e,t,r,o,s,i,l,a)=>{const c=o==="svg";e==="class"?aL(n,r,c):e==="style"?dL(n,t,r):yp(e)?Cb(e)||gL(n,e,t,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):xL(n,e,r,c))?(hL(n,e,r,s,i,l,a),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&b1(n,e,r,c,i,e!=="value")):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),b1(n,e,r,c))};function xL(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&C1(e)&&We(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 C1(e)&&ft(t)?!1:e in n}const R2=new WeakMap,$2=new WeakMap,Th=Symbol("_moveCb"),x1=Symbol("_enterCb"),D2={name:"TransitionGroup",props:hn({},sL,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=vt(),r=w2();let o,s;return pa(()=>{if(!o.length)return;const i=n.moveClass||`${n.name||"v"}-move`;if(!ML(o[0].el,t.vnode.el,i))return;o.forEach(_L),o.forEach(TL);const l=o.filter(OL);I2(),l.forEach(a=>{const c=a.el,u=c.style;Ms(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Th]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Th]=null,hi(c,i))};c.addEventListener("transitionend",d)})}),()=>{const i=At(n),l=P2(i);let a=i.tag||Le;if(o=[],s)for(let c=0;cdelete n.mode;D2.props;const EL=D2;function _L(n){const e=n.el;e[Th]&&e[Th](),e[x1]&&e[x1]()}function TL(n){$2.set(n,n.el.getBoundingClientRect())}function OL(n){const e=R2.get(n),t=$2.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 ML(n,e,t){const r=n.cloneNode(),o=n[Ja];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}=N2(r);return s.removeChild(r),i}const Xa=n=>{const e=n.props["onUpdate:modelValue"]||!1;return Re(e)?t=>th(e,t):e};function AL(n){n.target.composing=!0}function S1(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Vs=Symbol("_assign"),kL={created(n,{modifiers:{lazy:e,trim:t,number:r}},o){n[Vs]=Xa(o);const s=r||o.props&&o.props.type==="number";Mi(n,e?"change":"input",i=>{if(i.target.composing)return;let l=n.value;t&&(l=l.trim()),s&&(l=Dm(l)),n[Vs](l)}),t&&Mi(n,"change",()=>{n.value=n.value.trim()}),e||(Mi(n,"compositionstart",AL),Mi(n,"compositionend",S1),Mi(n,"change",S1))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:r,trim:o,number:s}},i){if(n[Vs]=Xa(i),n.composing)return;const l=(s||n.type==="number")&&!/^0\d/.test(n.value)?Dm(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))}},Ui={deep:!0,created(n,e,t){n[Vs]=Xa(t),Mi(n,"change",()=>{const r=n._modelValue,o=F2(n),s=n.checked,i=n[Vs];if(Re(r)){const l=ME(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(wp(r)){const l=new Set(r);s?l.add(o):l.delete(o),i(l)}else i(B2(n,s))})},mounted:E1,beforeUpdate(n,e,t){n[Vs]=Xa(t),E1(n,e,t)}};function E1(n,{value:e,oldValue:t},r){n._modelValue=e,Re(e)?n.checked=ME(e,r.props.value)>-1:wp(e)?n.checked=e.has(r.props.value):e!==t&&(n.checked=Ka(e,B2(n,!0)))}const V2={created(n,{value:e},t){n.checked=Ka(e,t.props.value),n[Vs]=Xa(t),Mi(n,"change",()=>{n[Vs](F2(n))})},beforeUpdate(n,{value:e,oldValue:t},r){n[Vs]=Xa(r),e!==t&&(n.checked=Ka(e,r.props.value))}};function F2(n){return"_value"in n?n._value:n.value}function B2(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const PL=["ctrl","shift","alt","meta"],NL={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)=>PL.some(t=>n[`${t}Key`]&&!e.includes(t))},Nt=(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=tl(o.key);if(e.some(i=>i===s||IL[i]===s))return n(o)})},LL=hn({patchProp:CL},oL);let _1;function z2(){return _1||(_1=AI(LL))}const Wi=(...n)=>{z2().render(...n)},Ub=(...n)=>{const e=z2().createApp(...n),{mount:t}=e;return e.mount=r=>{const o=$L(r);if(!o)return;const s=e._component;!We(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=t(o,!1,RL(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},e};function RL(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function $L(n){return ft(n)?document.querySelector(n):n}/*! + * vue-router v4.4.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const Ma=typeof document<"u";function DL(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const $t=Object.assign;function Bg(n,e){const t={};for(const r in e){const o=e[r];t[r]=Ro(o)?o.map(n):n(o)}return t}const Ou=()=>{},Ro=Array.isArray,j2=/#/g,VL=/&/g,FL=/\//g,BL=/=/g,zL=/\?/g,H2=/\+/g,jL=/%5B/g,HL=/%5D/g,U2=/%5E/g,UL=/%60/g,W2=/%7B/g,WL=/%7C/g,G2=/%7D/g,GL=/%20/g;function Wb(n){return encodeURI(""+n).replace(WL,"|").replace(jL,"[").replace(HL,"]")}function qL(n){return Wb(n).replace(W2,"{").replace(G2,"}").replace(U2,"^")}function Ym(n){return Wb(n).replace(H2,"%2B").replace(GL,"+").replace(j2,"%23").replace(VL,"%26").replace(UL,"`").replace(W2,"{").replace(G2,"}").replace(U2,"^")}function KL(n){return Ym(n).replace(BL,"%3D")}function YL(n){return Wb(n).replace(j2,"%23").replace(zL,"%3F")}function JL(n){return n==null?"":YL(n).replace(FL,"%2F")}function rd(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const XL=/\/$/,ZL=n=>n.replace(XL,"");function zg(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=nR(r??e,t),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:rd(i)}}function QL(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function T1(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function eR(n,e,t){const r=e.matched.length-1,o=t.matched.length-1;return r>-1&&r===o&&Za(e.matched[r],t.matched[o])&&q2(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Za(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function q2(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!tR(n[t],e[t]))return!1;return!0}function tR(n,e){return Ro(n)?O1(n,e):Ro(e)?O1(e,n):n===e}function O1(n,e){return Ro(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function nR(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 ci={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var od;(function(n){n.pop="pop",n.push="push"})(od||(od={}));var Mu;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Mu||(Mu={}));function rR(n){if(!n)if(Ma){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),ZL(n)}const oR=/^[^#]+#/;function sR(n,e){return n.replace(oR,"#")+e}function iR(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 kp=()=>({left:window.scrollX,top:window.scrollY});function lR(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=iR(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 M1(n,e){return(history.state?history.state.position-e:-1)+n}const Jm=new Map;function aR(n,e){Jm.set(n,e)}function cR(n){const e=Jm.get(n);return Jm.delete(n),e}let uR=()=>location.protocol+"//"+location.host;function K2(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),T1(a,"")}return T1(t,n)+r+o}function dR(n,e,t,r){let o=[],s=[],i=null;const l=({state:f})=>{const h=K2(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:od.pop,direction:m?m>0?Mu.forward:Mu.back:Mu.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($t({},f.state,{scroll:kp()}),"")}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 A1(n,e,t,r=!1,o=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:o?kp():null}}function fR(n){const{history:e,location:t}=window,r={value:K2(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:uR()+n+a;try{e[u?"replaceState":"pushState"](c,"",f),o.value=c}catch{t[u?"replace":"assign"](f)}}function i(a,c){const u=$t({},e.state,A1(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=$t({},o.value,e.state,{forward:a,scroll:kp()});s(u.current,u,!0);const d=$t({},A1(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 hR(n){n=rR(n);const e=fR(n),t=dR(n,e.state,e.location,e.replace);function r(s,i=!0){i||t.pauseListeners(),history.go(s)}const o=$t({location:"",base:n,go:r,createHref:sR.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 pR(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),hR(n)}function gR(n){return typeof n=="string"||n&&typeof n=="object"}function Y2(n){return typeof n=="string"||typeof n=="symbol"}const J2=Symbol("");var k1;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(k1||(k1={}));function Qa(n,e){return $t(new Error,{type:n,[J2]:!0},e)}function xs(n,e){return n instanceof Error&&J2 in n&&(e==null||!!(n.type&e))}const P1="[^/]+?",mR={sensitive:!1,strict:!1,start:!0,end:!0},vR=/[.+*?^${}()[\]/\\]/g;function bR(n,e){const t=$t({},mR,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 X2(n,e){let t=0;const r=n.score,o=e.score;for(;t0&&e[e.length-1]<0}const wR={type:0,value:""},CR=/[a-zA-Z0-9_]/;function xR(n){if(!n)return[[]];if(n==="/")return[[wR]];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)}:Ou}function i(d){if(Y2(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=MR(d,t);t.splice(f,0,d),d.record.name&&!L1(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 Qa(1,{location:d});m=h.record.name,p=$t(I1(f.params,h.keys.filter(b=>!b.optional).concat(h.parent?h.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),d.params&&I1(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 Qa(1,{location:d,currentLocation:f});m=h.record.name,p=$t({},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:OR(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 I1(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function _R(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:TR(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 TR(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 L1(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function OR(n){return n.reduce((e,t)=>$t(e,t.meta),{})}function R1(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function MR(n,e){let t=0,r=e.length;for(;t!==r;){const s=t+r>>1;X2(n,e[s])<0?r=s:t=s+1}const o=AR(n);return o&&(r=e.lastIndexOf(o,r-1)),r}function AR(n){let e=n;for(;e=e.parent;)if(Z2(e)&&X2(n,e)===0)return e}function Z2({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function kR(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let o=0;os&&Ym(s)):[r&&Ym(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function PR(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=Ro(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const NR=Symbol(""),D1=Symbol(""),Pp=Symbol(""),Gb=Symbol(""),Xm=Symbol("");function su(){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 xi(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(Qa(4,{from:t,to:e})):f instanceof Error?a(f):gR(f)?a(Qa(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 jg(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(IR(a)){const u=(a.__vccOpts||a)[e];u&&s.push(xi(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=DL(u)?u.default:u;i.components[l]=d;const h=(d.__vccOpts||d)[e];return h&&xi(h,t,r,i,l,o)()}))}}return s}function IR(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function V1(n){const e=De(Pp),t=De(Gb),r=B(()=>{const a=C(n.to);return e.resolve(a)}),o=B(()=>{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(Za.bind(null,u));if(f>-1)return f;const h=F1(a[c-2]);return c>1&&F1(u)===h&&d[d.length-1].path!==h?d.findIndex(Za.bind(null,a[c-2])):f}),s=B(()=>o.value>-1&&DR(t.params,r.value.params)),i=B(()=>o.value>-1&&o.value===t.matched.length-1&&q2(t.params,r.value.params));function l(a={}){return $R(a)?e[C(n.replace)?"replace":"push"](C(n.to)).catch(Ou):Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}const LR=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:V1,setup(n,{slots:e}){const t=Ct(V1(n)),{options:r}=De(Pp),o=B(()=>({[B1(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[B1(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return n.custom?s:Ye("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:o.value},s)}}}),RR=LR;function $R(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 DR(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(!Ro(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function F1(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const B1=(n,e,t)=>n??e??t,VR=me({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=De(Xm),o=B(()=>n.route||r.value),s=De(D1,0),i=B(()=>{let c=C(s);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=B(()=>o.value.matched[i.value]);Ut(D1,B(()=>i.value+1)),Ut(NR,l),Ut(Xm,o);const a=z();return $e(()=>[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||!Za(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 z1(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=Ye(f,$t({},p,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return z1(t.default,{Component:m,route:c})||m}}});function z1(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const FR=VR;function BR(n){const e=ER(n.routes,n),t=n.parseQuery||kR,r=n.stringifyQuery||$1,o=n.history,s=su(),i=su(),l=su(),a=Ao(ci);let c=ci;Ma&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Bg.bind(null,W=>""+W),d=Bg.bind(null,JL),f=Bg.bind(null,rd);function h(W,ce){let re,ve;return Y2(W)?(re=e.getRecordMatcher(W),ve=ce):ve=W,e.addRoute(ve,re)}function p(W){const ce=e.getRecordMatcher(W);ce&&e.removeRoute(ce)}function g(){return e.getRoutes().map(W=>W.record)}function m(W){return!!e.getRecordMatcher(W)}function v(W,ce){if(ce=$t({},ce||a.value),typeof W=="string"){const N=zg(t,W,ce.path),te=e.resolve({path:N.path},ce),pe=o.createHref(N.fullPath);return $t(N,te,{params:f(te.params),hash:rd(N.hash),redirectedFrom:void 0,href:pe})}let re;if(W.path!=null)re=$t({},W,{path:zg(t,W.path,ce.path).path});else{const N=$t({},W.params);for(const te in N)N[te]==null&&delete N[te];re=$t({},W,{params:d(N)}),ce.params=d(ce.params)}const ve=e.resolve(re,ce),ke=W.hash||"";ve.params=u(f(ve.params));const Se=QL(r,$t({},W,{hash:qL(ke),path:ve.path})),$=o.createHref(Se);return $t({fullPath:Se,hash:ke,query:r===$1?PR(W.query):W.query||{}},ve,{redirectedFrom:void 0,href:$})}function w(W){return typeof W=="string"?zg(t,W,a.value.path):$t({},W)}function b(W,ce){if(c!==W)return Qa(8,{from:ce,to:W})}function y(W){return T(W)}function S(W){return y($t(w(W),{replace:!0}))}function E(W){const ce=W.matched[W.matched.length-1];if(ce&&ce.redirect){const{redirect:re}=ce;let ve=typeof re=="function"?re(W):re;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=w(ve):{path:ve},ve.params={}),$t({query:W.query,hash:W.hash,params:ve.path!=null?{}:W.params},ve)}}function T(W,ce){const re=c=v(W),ve=a.value,ke=W.state,Se=W.force,$=W.replace===!0,N=E(re);if(N)return T($t(w(N),{state:typeof N=="object"?$t({},ke,N.state):ke,force:Se,replace:$}),ce||re);const te=re;te.redirectedFrom=ce;let pe;return!Se&&eR(r,ve,re)&&(pe=Qa(16,{to:te,from:ve}),fe(ve,ve,!0,!1)),(pe?Promise.resolve(pe):A(te,ve)).catch(ge=>xs(ge)?xs(ge,2)?ge:K(ge):Z(ge,te,ve)).then(ge=>{if(ge){if(xs(ge,2))return T($t({replace:$},w(ge.to),{state:typeof ge.to=="object"?$t({},ke,ge.to.state):ke,force:Se}),ce||te)}else ge=L(te,ve,!0,$,ke);return k(te,ve,ge),ge})}function M(W,ce){const re=b(W,ce);return re?Promise.reject(re):Promise.resolve()}function O(W){const ce=ue.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(W):W()}function A(W,ce){let re;const[ve,ke,Se]=zR(W,ce);re=jg(ve.reverse(),"beforeRouteLeave",W,ce);for(const N of ve)N.leaveGuards.forEach(te=>{re.push(xi(te,W,ce))});const $=M.bind(null,W,ce);return re.push($),ye(re).then(()=>{re=[];for(const N of s.list())re.push(xi(N,W,ce));return re.push($),ye(re)}).then(()=>{re=jg(ke,"beforeRouteUpdate",W,ce);for(const N of ke)N.updateGuards.forEach(te=>{re.push(xi(te,W,ce))});return re.push($),ye(re)}).then(()=>{re=[];for(const N of Se)if(N.beforeEnter)if(Ro(N.beforeEnter))for(const te of N.beforeEnter)re.push(xi(te,W,ce));else re.push(xi(N.beforeEnter,W,ce));return re.push($),ye(re)}).then(()=>(W.matched.forEach(N=>N.enterCallbacks={}),re=jg(Se,"beforeRouteEnter",W,ce,O),re.push($),ye(re))).then(()=>{re=[];for(const N of i.list())re.push(xi(N,W,ce));return re.push($),ye(re)}).catch(N=>xs(N,8)?N:Promise.reject(N))}function k(W,ce,re){l.list().forEach(ve=>O(()=>ve(W,ce,re)))}function L(W,ce,re,ve,ke){const Se=b(W,ce);if(Se)return Se;const $=ce===ci,N=Ma?history.state:{};re&&(ve||$?o.replace(W.fullPath,$t({scroll:$&&N&&N.scroll},ke)):o.push(W.fullPath,ke)),a.value=W,fe(W,ce,re,$),K()}let j;function ne(){j||(j=o.listen((W,ce,re)=>{if(!be.listening)return;const ve=v(W),ke=E(ve);if(ke){T($t(ke,{replace:!0}),ve).catch(Ou);return}c=ve;const Se=a.value;Ma&&aR(M1(Se.fullPath,re.delta),kp()),A(ve,Se).catch($=>xs($,12)?$:xs($,2)?(T($.to,ve).then(N=>{xs(N,20)&&!re.delta&&re.type===od.pop&&o.go(-1,!1)}).catch(Ou),Promise.reject()):(re.delta&&o.go(-re.delta,!1),Z($,ve,Se))).then($=>{$=$||L(ve,Se,!1),$&&(re.delta&&!xs($,8)?o.go(-re.delta,!1):re.type===od.pop&&xs($,20)&&o.go(-1,!1)),k(ve,Se,$)}).catch(Ou)}))}let I=su(),R=su(),U;function Z(W,ce,re){K(W);const ve=R.list();return ve.length&&ve.forEach(ke=>ke(W,ce,re)),Promise.reject(W)}function Y(){return U&&a.value!==ci?Promise.resolve():new Promise((W,ce)=>{I.add([W,ce])})}function K(W){return U||(U=!W,ne(),I.list().forEach(([ce,re])=>W?re(W):ce()),I.reset()),W}function fe(W,ce,re,ve){const{scrollBehavior:ke}=n;if(!Ma||!ke)return Promise.resolve();const Se=!re&&cR(M1(W.fullPath,0))||(ve||!re)&&history.state&&history.state.scroll||null;return nt().then(()=>ke(W,ce,Se)).then($=>$&&lR($)).catch($=>Z($,W,ce))}const H=W=>o.go(W);let se;const ue=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:S,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:R.add,isReady:Y,install(W){const ce=this;W.component("RouterLink",RR),W.component("RouterView",FR),W.config.globalProperties.$router=ce,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>C(a)}),Ma&&!se&&a.value===ci&&(se=!0,y(o.location).catch(ke=>{}));const re={};for(const ke in ci)Object.defineProperty(re,ke,{get:()=>a.value[ke],enumerable:!0});W.provide(Pp,ce),W.provide(Gb,Ab(re)),W.provide(Xm,a);const ve=W.unmount;ue.add(W),W.unmount=function(){ue.delete(W),ue.size<1&&(c=ci,j&&j(),j=null,a.value=ci,se=!1,U=!1),ve()}}};function ye(W){return W.reduce((ce,re)=>ce.then(()=>O(re)),Promise.resolve())}return be}function zR(n,e){const t=[],r=[],o=[],s=Math.max(e.matched.length,n.matched.length);for(let i=0;iZa(c,l))?r.push(l):t.push(l));const a=n.matched[i];a&&(e.matched.find(c=>Za(c,a))||o.push(a))}return[t,r,o]}function go(){return De(Pp)}function Ks(n){return De(Gb)}/*! + * shared v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const Oh=typeof window<"u",ol=(n,e=!1)=>e?Symbol.for(n):Symbol(n),jR=(n,e,t)=>HR({l:n,k:e,s:t}),HR=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),_n=n=>typeof n=="number"&&isFinite(n),UR=n=>e_(n)==="[object Date]",Gi=n=>e_(n)==="[object RegExp]",Np=n=>gt(n)&&Object.keys(n).length===0,Yn=Object.assign;let j1;const Is=()=>j1||(j1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function H1(n){return n.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const WR=Object.prototype.hasOwnProperty;function Mh(n,e){return WR.call(n,e)}const Zt=Array.isArray,qt=n=>typeof n=="function",ze=n=>typeof n=="string",Ot=n=>typeof n=="boolean",It=n=>n!==null&&typeof n=="object",GR=n=>It(n)&&qt(n.then)&&qt(n.catch),Q2=Object.prototype.toString,e_=n=>Q2.call(n),gt=n=>{if(!It(n))return!1;const e=Object.getPrototypeOf(n);return e===null||e.constructor===Object},qR=n=>n==null?"":Zt(n)||gt(n)&&n.toString===Q2?JSON.stringify(n,null,2):String(n);function KR(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}function Ip(n){let e=n;return()=>++e}function YR(n,e){}const _f=n=>!It(n)||Zt(n);function oh(n,e){if(_f(n)||_f(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=>{_f(r[s])||_f(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 JR(n,e,t){return{line:n,column:e,offset:t}}function Ah(n,e,t){return{start:n,end:e}}const XR=/\{([0-9a-zA-Z]+)\}/g;function t_(n,...e){return e.length===1&&ZR(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(XR,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const n_=Object.assign,U1=n=>typeof n=="string",ZR=n=>n!==null&&typeof n=="object";function r_(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}const qb={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},QR={[qb.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function e3(n,e,...t){const r=t_(QR[n],...t||[]),o={message:String(r),code:n};return e&&(o.location=e),o}const at={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},t3={[at.EXPECTED_TOKEN]:"Expected token: '{0}'",[at.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[at.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[at.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[at.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[at.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[at.EMPTY_PLACEHOLDER]:"Empty placeholder",[at.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[at.INVALID_LINKED_FORMAT]:"Invalid linked format",[at.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[at.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[at.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[at.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[at.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[at.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function zc(n,e,t={}){const{domain:r,messages:o,args:s}=t,i=t_((o||t3)[n]||"",...s||[]),l=new SyntaxError(String(i));return l.code=n,e&&(l.location=e),l.domain=r,l}function n3(n){throw n}const Ss=" ",r3="\r",ur=` +`,o3="\u2028",s3="\u2029";function i3(n){const e=n;let t=0,r=1,o=1,s=0;const i=T=>e[T]===r3&&e[T+1]===ur,l=T=>e[T]===ur,a=T=>e[T]===s3,c=T=>e[T]===o3,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)?ur: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 S(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:S,skipToPeek:E}}const ui=void 0,l3=".",W1="'",a3="tokenizer";function c3(n,e={}){const t=e.location!==!1,r=i3(n),o=()=>r.index(),s=()=>JR(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(D,V,J,...le){const Oe=c();if(V.column+=J,V.offset+=J,u){const oe=t?Ah(Oe.startLoc,V):null,Q=zc(D,oe,{domain:a3,args:le});u(Q)}}function f(D,V,J){D.endLoc=s(),D.currentType=V;const le={type:V};return t&&(le.loc=Ah(D.startLoc,D.endLoc)),J!=null&&(le.value=J),le}const h=D=>f(D,14);function p(D,V){return D.currentChar()===V?(D.next(),V):(d(at.EXPECTED_TOKEN,s(),0,V),"")}function g(D){let V="";for(;D.currentPeek()===Ss||D.currentPeek()===ur;)V+=D.currentPeek(),D.peek();return V}function m(D){const V=g(D);return D.skipToPeek(),V}function v(D){if(D===ui)return!1;const V=D.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function w(D){if(D===ui)return!1;const V=D.charCodeAt(0);return V>=48&&V<=57}function b(D,V){const{currentType:J}=V;if(J!==2)return!1;g(D);const le=v(D.currentPeek());return D.resetPeek(),le}function y(D,V){const{currentType:J}=V;if(J!==2)return!1;g(D);const le=D.currentPeek()==="-"?D.peek():D.currentPeek(),Oe=w(le);return D.resetPeek(),Oe}function S(D,V){const{currentType:J}=V;if(J!==2)return!1;g(D);const le=D.currentPeek()===W1;return D.resetPeek(),le}function E(D,V){const{currentType:J}=V;if(J!==8)return!1;g(D);const le=D.currentPeek()===".";return D.resetPeek(),le}function T(D,V){const{currentType:J}=V;if(J!==9)return!1;g(D);const le=v(D.currentPeek());return D.resetPeek(),le}function M(D,V){const{currentType:J}=V;if(!(J===8||J===12))return!1;g(D);const le=D.currentPeek()===":";return D.resetPeek(),le}function O(D,V){const{currentType:J}=V;if(J!==10)return!1;const le=()=>{const oe=D.currentPeek();return oe==="{"?v(D.peek()):oe==="@"||oe==="%"||oe==="|"||oe===":"||oe==="."||oe===Ss||!oe?!1:oe===ur?(D.peek(),le()):L(D,!1)},Oe=le();return D.resetPeek(),Oe}function A(D){g(D);const V=D.currentPeek()==="|";return D.resetPeek(),V}function k(D){const V=g(D),J=D.currentPeek()==="%"&&D.peek()==="{";return D.resetPeek(),{isModulo:J,hasSpace:V.length>0}}function L(D,V=!0){const J=(Oe=!1,oe="",Q=!1)=>{const de=D.currentPeek();return de==="{"?oe==="%"?!1:Oe:de==="@"||!de?oe==="%"?!0:Oe:de==="%"?(D.peek(),J(Oe,"%",!0)):de==="|"?oe==="%"||Q?!0:!(oe===Ss||oe===ur):de===Ss?(D.peek(),J(!0,Ss,Q)):de===ur?(D.peek(),J(!0,ur,Q)):!0},le=J();return V&&D.resetPeek(),le}function j(D,V){const J=D.currentChar();return J===ui?ui:V(J)?(D.next(),J):null}function ne(D){const V=D.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function I(D){return j(D,ne)}function R(D){const V=D.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function U(D){return j(D,R)}function Z(D){const V=D.charCodeAt(0);return V>=48&&V<=57}function Y(D){return j(D,Z)}function K(D){const V=D.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function fe(D){return j(D,K)}function H(D){let V="",J="";for(;V=Y(D);)J+=V;return J}function se(D){m(D);const V=D.currentChar();return V!=="%"&&d(at.EXPECTED_TOKEN,s(),0,V),D.next(),"%"}function ue(D){let V="";for(;;){const J=D.currentChar();if(J==="{"||J==="}"||J==="@"||J==="|"||!J)break;if(J==="%")if(L(D))V+=J,D.next();else break;else if(J===Ss||J===ur)if(L(D))V+=J,D.next();else{if(A(D))break;V+=J,D.next()}else V+=J,D.next()}return V}function be(D){m(D);let V="",J="";for(;V=U(D);)J+=V;return D.currentChar()===ui&&d(at.UNTERMINATED_CLOSING_BRACE,s(),0),J}function ye(D){m(D);let V="";return D.currentChar()==="-"?(D.next(),V+=`-${H(D)}`):V+=H(D),D.currentChar()===ui&&d(at.UNTERMINATED_CLOSING_BRACE,s(),0),V}function W(D){return D!==W1&&D!==ur}function ce(D){m(D),p(D,"'");let V="",J="";for(;V=j(D,W);)V==="\\"?J+=re(D):J+=V;const le=D.currentChar();return le===ur||le===ui?(d(at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),le===ur&&(D.next(),p(D,"'")),J):(p(D,"'"),J)}function re(D){const V=D.currentChar();switch(V){case"\\":case"'":return D.next(),`\\${V}`;case"u":return ve(D,V,4);case"U":return ve(D,V,6);default:return d(at.UNKNOWN_ESCAPE_SEQUENCE,s(),0,V),""}}function ve(D,V,J){p(D,V);let le="";for(let Oe=0;Oe{const le=D.currentChar();return le==="{"||le==="%"||le==="@"||le==="|"||le==="("||le===")"||!le||le===Ss?J:(J+=le,D.next(),V(J))};return V("")}function te(D){m(D);const V=p(D,"|");return m(D),V}function pe(D,V){let J=null;switch(D.currentChar()){case"{":return V.braceNest>=1&&d(at.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),D.next(),J=f(V,2,"{"),m(D),V.braceNest++,J;case"}":return V.braceNest>0&&V.currentType===2&&d(at.EMPTY_PLACEHOLDER,s(),0),D.next(),J=f(V,3,"}"),V.braceNest--,V.braceNest>0&&m(D),V.inLinked&&V.braceNest===0&&(V.inLinked=!1),J;case"@":return V.braceNest>0&&d(at.UNTERMINATED_CLOSING_BRACE,s(),0),J=ge(D,V)||h(V),V.braceNest=0,J;default:{let Oe=!0,oe=!0,Q=!0;if(A(D))return V.braceNest>0&&d(at.UNTERMINATED_CLOSING_BRACE,s(),0),J=f(V,1,te(D)),V.braceNest=0,V.inLinked=!1,J;if(V.braceNest>0&&(V.currentType===5||V.currentType===6||V.currentType===7))return d(at.UNTERMINATED_CLOSING_BRACE,s(),0),V.braceNest=0,ae(D,V);if(Oe=b(D,V))return J=f(V,5,be(D)),m(D),J;if(oe=y(D,V))return J=f(V,6,ye(D)),m(D),J;if(Q=S(D,V))return J=f(V,7,ce(D)),m(D),J;if(!Oe&&!oe&&!Q)return J=f(V,13,Se(D)),d(at.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,J.value),m(D),J;break}}return J}function ge(D,V){const{currentType:J}=V;let le=null;const Oe=D.currentChar();switch((J===8||J===9||J===12||J===10)&&(Oe===ur||Oe===Ss)&&d(at.INVALID_LINKED_FORMAT,s(),0),Oe){case"@":return D.next(),le=f(V,8,"@"),V.inLinked=!0,le;case".":return m(D),D.next(),f(V,9,".");case":":return m(D),D.next(),f(V,10,":");default:return A(D)?(le=f(V,1,te(D)),V.braceNest=0,V.inLinked=!1,le):E(D,V)||M(D,V)?(m(D),ge(D,V)):T(D,V)?(m(D),f(V,12,$(D))):O(D,V)?(m(D),Oe==="{"?pe(D,V)||le:f(V,11,N(D))):(J===8&&d(at.INVALID_LINKED_FORMAT,s(),0),V.braceNest=0,V.inLinked=!1,ae(D,V))}}function ae(D,V){let J={type:14};if(V.braceNest>0)return pe(D,V)||h(V);if(V.inLinked)return ge(D,V)||h(V);switch(D.currentChar()){case"{":return pe(D,V)||h(V);case"}":return d(at.UNBALANCED_CLOSING_BRACE,s(),0),D.next(),f(V,3,"}");case"@":return ge(D,V)||h(V);default:{if(A(D))return J=f(V,1,te(D)),V.braceNest=0,V.inLinked=!1,J;const{isModulo:Oe,hasSpace:oe}=k(D);if(Oe)return oe?f(V,0,ue(D)):f(V,4,se(D));if(L(D))return f(V,0,ue(D));break}}return J}function Ee(){const{currentType:D,offset:V,startLoc:J,endLoc:le}=a;return a.lastType=D,a.lastOffset=V,a.lastStartLoc=J,a.lastEndLoc=le,a.offset=o(),a.startLoc=s(),r.currentChar()===ui?f(a,14):ae(r,a)}return{nextToken:Ee,currentOffset:o,currentPosition:s,context:c}}const u3="parser",d3=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function f3(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 h3(n={}){const e=n.location!==!1,{onError:t,onWarn:r}=n;function o(b,y,S,E,...T){const M=b.currentPosition();if(M.offset+=E,M.column+=E,t){const O=e?Ah(S,M):null,A=zc(y,O,{domain:u3,args:T});t(A)}}function s(b,y,S,E,...T){const M=b.currentPosition();if(M.offset+=E,M.column+=E,r){const O=e?Ah(S,M):null;r(e3(y,O,T))}}function i(b,y,S){const E={type:b};return e&&(E.start=y,E.end=y,E.loc={start:S,end:S}),E}function l(b,y,S,E){e&&(b.end=y,b.loc&&(b.loc.end=S))}function a(b,y){const S=b.context(),E=i(3,S.offset,S.startLoc);return E.value=y,l(E,b.currentOffset(),b.currentPosition()),E}function c(b,y){const S=b.context(),{lastOffset:E,lastStartLoc:T}=S,M=i(5,E,T);return M.index=parseInt(y,10),b.nextToken(),l(M,b.currentOffset(),b.currentPosition()),M}function u(b,y,S){const E=b.context(),{lastOffset:T,lastStartLoc:M}=E,O=i(4,T,M);return O.key=y,S===!0&&(O.modulo=!0),b.nextToken(),l(O,b.currentOffset(),b.currentPosition()),O}function d(b,y){const S=b.context(),{lastOffset:E,lastStartLoc:T}=S,M=i(9,E,T);return M.value=y.replace(d3,f3),b.nextToken(),l(M,b.currentOffset(),b.currentPosition()),M}function f(b){const y=b.nextToken(),S=b.context(),{lastOffset:E,lastStartLoc:T}=S,M=i(8,E,T);return y.type!==12?(o(b,at.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),M.value="",l(M,E,T),{nextConsumeToken:y,node:M}):(y.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,bo(y)),M.value=y.value||"",l(M,b.currentOffset(),b.currentPosition()),{node:M})}function h(b,y){const S=b.context(),E=i(7,S.offset,S.startLoc);return E.value=y,l(E,b.currentOffset(),b.currentPosition()),E}function p(b){const y=b.context(),S=i(6,y.offset,y.startLoc);let E=b.nextToken();if(E.type===9){const T=f(b);S.modifier=T.node,E=T.nextConsumeToken||b.nextToken()}switch(E.type!==10&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(E)),E=b.nextToken(),E.type===2&&(E=b.nextToken()),E.type){case 11:E.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(E)),S.key=h(b,E.value||"");break;case 5:E.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(E)),S.key=u(b,E.value||"");break;case 6:E.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(E)),S.key=c(b,E.value||"");break;case 7:E.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(E)),S.key=d(b,E.value||"");break;default:{o(b,at.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),S.key=M,l(S,T.offset,T.startLoc),{nextConsumeToken:E,node:S}}}return l(S,b.currentOffset(),b.currentPosition()),{node:S}}function g(b){const y=b.context(),S=y.currentType===1?b.currentOffset():y.offset,E=y.currentType===1?y.endLoc:y.startLoc,T=i(2,S,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,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(L)),T.items.push(a(b,L.value||""));break;case 6:L.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(L)),T.items.push(c(b,L.value||""));break;case 4:O=!0;break;case 5:L.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(L)),T.items.push(u(b,L.value||"",!!O)),O&&(s(b,qb.USE_MODULO_SYNTAX,y.lastStartLoc,0,bo(L)),O=null);break;case 7:L.value==null&&o(b,at.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,bo(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 A=y.currentType===1?y.lastOffset:b.currentOffset(),k=y.currentType===1?y.lastEndLoc:b.currentPosition();return l(T,A,k),T}function m(b,y,S,E){const T=b.context();let M=E.items.length===0;const O=i(1,y,S);O.cases=[],O.cases.push(E);do{const A=g(b);M||(M=A.items.length===0),O.cases.push(A)}while(T.currentType!==14);return M&&o(b,at.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),l(O,b.currentOffset(),b.currentPosition()),O}function v(b){const y=b.context(),{offset:S,startLoc:E}=y,T=g(b);return y.currentType===14?T:m(b,S,E,T)}function w(b){const y=c3(b,n_({},n)),S=y.context(),E=i(0,S.offset,S.startLoc);return e&&E.loc&&(E.loc.source=b),E.body=v(y),n.onCacheKey&&(E.cacheKey=n.onCacheKey(b)),S.currentType!==14&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,b[S.offset]||""),l(E,y.currentOffset(),y.currentPosition()),E}return{parse:w}}function bo(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 p3(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:s=>(t.helpers.add(s),s)}}function G1(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 w3(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),ec(n,e.key),e.modifier?(n.push(", "),ec(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function C3(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=U1(e.mode)?e.mode:"normal",r=U1(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=y3(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 { ${r_(l.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),ec(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 _3(n,e={}){const t=n_({},e),r=!!t.jit,o=!!t.minify,s=t.optimize==null?!0:t.optimize,l=h3(t).parse(n);return r?(s&&m3(l),o&&Aa(l),{ast:l,code:""}):(g3(l,t),E3(l,t))}/*! + * core-base v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function T3(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Is().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Is().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const sl=[];sl[0]={w:[0],i:[3,0],"[":[4],o:[7]};sl[1]={w:[1],".":[2],"[":[4],o:[7]};sl[2]={w:[2],i:[3,0],0:[3,0]};sl[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};sl[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};sl[5]={"'":[4,0],o:8,l:[5,0]};sl[6]={'"':[4,0],o:8,l:[6,0]};const O3=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M3(n){return O3.test(n)}function A3(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 k3(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 P3(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:M3(e)?A3(e):"*"+e}function N3(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=P3(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=k3(s),d=sl[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 K1=new Map;function I3(n,e){return It(n)?n[e]:null}function L3(n,e){if(!It(n))return null;let t=K1.get(e);if(t||(t=N3(e),t&&K1.set(e,t)),!t)return null;const r=t.length;let o=n,s=0;for(;sn,$3=n=>"",D3="text",V3=n=>n.length===0?"":KR(n),F3=qR;function Y1(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function B3(n){const e=_n(n.pluralIndex)?n.pluralIndex:-1;return n.named&&(_n(n.named.count)||_n(n.named.n))?_n(n.named.count)?n.named.count:_n(n.named.n)?n.named.n:e:e}function z3(n,e){e.count||(e.count=n),e.n||(e.n=n)}function j3(n={}){const e=n.locale,t=B3(n),r=It(n.pluralRules)&&ze(e)&&qt(n.pluralRules[e])?n.pluralRules[e]:Y1,o=It(n.pluralRules)&&ze(e)&&qt(n.pluralRules[e])?Y1:void 0,s=v=>v[r(t,v.length,o)],i=n.list||[],l=v=>i[v],a=n.named||{};_n(n.pluralIndex)&&z3(t,a);const c=v=>a[v];function u(v){const w=qt(n.messages)?n.messages(v):It(n.messages)?n.messages[v]:!1;return w||(n.parent?n.parent.message(v):$3)}const d=v=>n.modifiers?n.modifiers[v]:R3,f=gt(n.processor)&&qt(n.processor.normalize)?n.processor.normalize:V3,h=gt(n.processor)&&qt(n.processor.interpolate)?n.processor.interpolate:F3,p=gt(n.processor)&&ze(n.processor.type)?n.processor.type:D3,m={list:l,named:c,plural:s,linked:(v,...w)=>{const[b,y]=w;let S="text",E="";w.length===1?It(b)?(E=b.modifier||E,S=b.type||S):ze(b)&&(E=b||E):w.length===2&&(ze(b)&&(E=b||E),ze(y)&&(S=y||S));const T=u(v)(m),M=S==="vnode"&&Zt(T)&&E?T[0]:T;return E?d(E)(M,S):M},message:u,type:p,interpolate:h,normalize:f,values:Yn({},i,a)};return m}let sd=null;function H3(n){sd=n}function U3(n,e,t){sd&&sd.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const W3=G3("function:translate");function G3(n){return e=>sd&&sd.emit(n,e)}const o_=qb.__EXTEND_POINT__,xl=Ip(o_),q3={NOT_FOUND_KEY:o_,FALLBACK_TO_TRANSLATE:xl(),CANNOT_FORMAT_NUMBER:xl(),FALLBACK_TO_NUMBER_FORMAT:xl(),CANNOT_FORMAT_DATE:xl(),FALLBACK_TO_DATE_FORMAT:xl(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:xl(),__EXTEND_POINT__:xl()},s_=at.__EXTEND_POINT__,Sl=Ip(s_),To={INVALID_ARGUMENT:s_,INVALID_DATE_ARGUMENT:Sl(),INVALID_ISO_DATE_ARGUMENT:Sl(),NOT_SUPPORT_NON_STRING_MESSAGE:Sl(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Sl(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Sl(),NOT_SUPPORT_LOCALE_TYPE:Sl(),__EXTEND_POINT__:Sl()};function es(n){return zc(n,null,void 0)}function Yb(n,e){return e.locale!=null?J1(e.locale):J1(n.locale)}let Hg;function J1(n){if(ze(n))return n;if(qt(n)){if(n.resolvedOnce&&Hg!=null)return Hg;if(n.constructor.name==="Function"){const e=n();if(GR(e))throw es(To.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Hg=e}else throw es(To.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw es(To.NOT_SUPPORT_LOCALE_TYPE)}function K3(n,e,t){return[...new Set([t,...Zt(e)?e:It(e)?Object.keys(e):ze(e)?[e]:[t]])]}function i_(n,e,t){const r=ze(t)?t:tc,o=n;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[t];for(;Zt(i);)i=X1(s,i,e);const l=Zt(e)||!gt(e)?e:e.default?e.default:null;i=ze(l)?[l]:l,Zt(i)&&X1(s,i,!1),o.__localeChainCache.set(r,s)}return s}function X1(n,e,t){let r=!0;for(let o=0;o`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function Z3(){return{upper:(n,e)=>e==="text"&&ze(n)?n.toUpperCase():e==="vnode"&&It(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&ze(n)?n.toLowerCase():e==="vnode"&&It(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&ze(n)?Q1(n):e==="vnode"&&It(n)&&"__v_isVNode"in n?Q1(n.children):n}}let l_;function ew(n){l_=n}let a_;function Q3(n){a_=n}let c_;function e$(n){c_=n}let u_=null;const t$=n=>{u_=n},n$=()=>u_;let d_=null;const tw=n=>{d_=n},r$=()=>d_;let nw=0;function o$(n={}){const e=qt(n.onWarn)?n.onWarn:YR,t=ze(n.version)?n.version:X3,r=ze(n.locale)||qt(n.locale)?n.locale:tc,o=qt(r)?tc:r,s=Zt(n.fallbackLocale)||gt(n.fallbackLocale)||ze(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o,i=gt(n.messages)?n.messages:{[o]:{}},l=gt(n.datetimeFormats)?n.datetimeFormats:{[o]:{}},a=gt(n.numberFormats)?n.numberFormats:{[o]:{}},c=Yn({},n.modifiers||{},Z3()),u=n.pluralRules||{},d=qt(n.missing)?n.missing:null,f=Ot(n.missingWarn)||Gi(n.missingWarn)?n.missingWarn:!0,h=Ot(n.fallbackWarn)||Gi(n.fallbackWarn)?n.fallbackWarn:!0,p=!!n.fallbackFormat,g=!!n.unresolving,m=qt(n.postTranslation)?n.postTranslation:null,v=gt(n.processor)?n.processor:null,w=Ot(n.warnHtmlMessage)?n.warnHtmlMessage:!0,b=!!n.escapeParameter,y=qt(n.messageCompiler)?n.messageCompiler:l_,S=qt(n.messageResolver)?n.messageResolver:a_||I3,E=qt(n.localeFallbacker)?n.localeFallbacker:c_||K3,T=It(n.fallbackContext)?n.fallbackContext:void 0,M=n,O=It(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,A=It(M.__numberFormatters)?M.__numberFormatters:new Map,k=It(M.__meta)?M.__meta:{};nw++;const L={version:t,cid:nw,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:S,localeFallbacker:E,fallbackContext:T,onWarn:e,__meta:k};return L.datetimeFormats=l,L.numberFormats=a,L.__datetimeFormatters=O,L.__numberFormatters=A,__INTLIFY_PROD_DEVTOOLS__&&U3(L,t,k),L}function Jb(n,e,t,r,o){const{missing:s,onWarn:i}=n;if(s!==null){const l=s(n,t,e,o);return ze(l)?l:e}else return e}function iu(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function s$(n,e){return n===e?!1:n.split("-")[0]===e.split("-")[0]}function i$(n,e){const t=e.indexOf(n);if(t===-1)return!1;for(let r=t+1;rl$(t,n)}function l$(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,rw(n,i)],[]))}else return rw(n,t)}function rw(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,Zm(n,s)],[]);return n.normalize(r)}}function Zm(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(Zm(n,r.k||r.key),o?Zm(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 f_=n=>n;let Ra=Object.create(null);const nc=n=>It(n)&&(n.t===0||n.type===0)&&("b"in n||"body"in n);function h_(n,e={}){let t=!1;const r=e.onError||n3;return e.onError=o=>{t=!0,r(o)},{..._3(n,e),detectError:t}}const a$=(n,e)=>{if(!ze(n))throw es(To.NOT_SUPPORT_NON_STRING_MESSAGE);{Ot(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||f_)(n),o=Ra[r];if(o)return o;const{code:s,detectError:i}=h_(n,e),l=new Function(`return ${s}`)();return i?l:Ra[r]=l}};function c$(n,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&ze(n)){Ot(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||f_)(n),o=Ra[r];if(o)return o;const{ast:s,detectError:i}=h_(n,{...e,location:!1,jit:!0}),l=Ug(s);return i?l:Ra[r]=l}else{const t=n.cacheKey;if(t){const r=Ra[t];return r||(Ra[t]=Ug(n))}else return Ug(n)}}const ow=()=>"",Jr=n=>qt(n);function sw(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:l}=n,[a,c]=Qm(...e),u=Ot(c.missingWarn)?c.missingWarn:n.missingWarn,d=Ot(c.fallbackWarn)?c.fallbackWarn:n.fallbackWarn,f=Ot(c.escapeParameter)?c.escapeParameter:n.escapeParameter,h=!!c.resolvedMessage,p=ze(c.default)||Ot(c.default)?Ot(c.default)?s?a:()=>a:c.default:t?s?a:()=>a:"",g=t||p!=="",m=Yb(n,c);f&&u$(c);let[v,w,b]=h?[a,m,l[m]||{}]:p_(n,a,m,i,d,u),y=v,S=a;if(!h&&!(ze(y)||nc(y)||Jr(y))&&g&&(y=p,S=y),!h&&(!(ze(y)||nc(y)||Jr(y))||!ze(w)))return o?Lp:a;let E=!1;const T=()=>{E=!0},M=Jr(y)?y:g_(n,a,w,y,S,T);if(E)return y;const O=h$(n,w,b,c),A=j3(O),k=d$(n,M,A),L=r?r(k,a):k;if(__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:ze(a)?a:Jr(y)?y.key:"",locale:w||(Jr(y)?y.locale:""),format:ze(y)?y:Jr(y)?y.source:"",message:L};j.meta=Yn({},n.__meta,n$()||{}),W3(j)}return L}function u$(n){Zt(n.list)?n.list=n.list.map(e=>ze(e)?H1(e):e):It(n.named)&&Object.keys(n.named).forEach(e=>{ze(n.named[e])&&(n.named[e]=H1(n.named[e]))})}function p_(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,f$(n,t,o,r,l,s));return a.locale=t,a.key=e,a.source=r,a}function d$(n,e,t){return e(t)}function Qm(...n){const[e,t,r]=n,o={};if(!ze(e)&&!_n(e)&&!Jr(e)&&!nc(e))throw es(To.INVALID_ARGUMENT);const s=_n(e)?String(e):(Jr(e),e);return _n(t)?o.plural=t:ze(t)?o.default=t:gt(t)&&!Np(t)?o.named=t:Zt(t)&&(o.list=t),_n(r)?o.plural=r:ze(r)?o.default=r:gt(r)&&Yn(o,r),[s,o]}function f$(n,e,t,r,o,s){return{locale:e,key:t,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>jR(e,t,i)}}function h$(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]=p_(u,h,e,l,a,c);p=i(g,h)}if(ze(p)||nc(p)){let g=!1;const v=g_(n,h,e,p,h,()=>{g=!0});return g?ow:v}else return Jr(p)?p:ow}};return n.processor&&(f.processor=n.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),_n(r.plural)&&(f.pluralIndex=r.plural),f}function iw(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=n,{__datetimeFormatters:l}=n,[a,c,u,d]=ev(...e),f=Ot(u.missingWarn)?u.missingWarn:n.missingWarn;Ot(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn;const h=!!u.part,p=Yb(n,u),g=i(n,o,p);if(!ze(a)||a==="")return new Intl.DateTimeFormat(p,d).format(c);let m={},v,w=null;const b="datetime format";for(let E=0;E{m_.includes(a)?i[a]=t[a]:s[a]=t[a]}),ze(r)?s.locale=r:gt(r)&&(i=r),gt(o)&&(i=o),[s.key||"",l,s,i]}function lw(n,e,t){const r=n;for(const o in t){const s=`${e}__${o}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function aw(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=n,{__numberFormatters:l}=n,[a,c,u,d]=tv(...e),f=Ot(u.missingWarn)?u.missingWarn:n.missingWarn;Ot(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn;const h=!!u.part,p=Yb(n,u),g=i(n,o,p);if(!ze(a)||a==="")return new Intl.NumberFormat(p,d).format(c);let m={},v,w=null;const b="number format";for(let E=0;E{v_.includes(a)?i[a]=t[a]:s[a]=t[a]}),ze(r)?s.locale=r:gt(r)&&(i=r),gt(o)&&(i=o),[s.key||"",l,s,i]}function cw(n,e,t){const r=n;for(const o in t){const s=`${e}__${o}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}T3();/*! + * vue-i18n v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const p$="9.13.1";function g$(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Is().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Is().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Is().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Is().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1)}const b_=q3.__EXTEND_POINT__,Es=Ip(b_);Es(),Es(),Es(),Es(),Es(),Es(),Es(),Es(),Es();const y_=To.__EXTEND_POINT__,mr=Ip(y_),Tn={UNEXPECTED_RETURN_TYPE:y_,INVALID_ARGUMENT:mr(),MUST_BE_CALL_SETUP_TOP:mr(),NOT_INSTALLED:mr(),NOT_AVAILABLE_IN_LEGACY_MODE:mr(),REQUIRED_VALUE:mr(),INVALID_VALUE:mr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mr(),NOT_INSTALLED_WITH_PROVIDE:mr(),UNEXPECTED_ERROR:mr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mr(),BRIDGE_SUPPORT_VUE_2_ONLY:mr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mr(),__EXTEND_POINT__:mr()};function Ln(n,...e){return zc(n,null,void 0)}const nv=ol("__translateVNode"),rv=ol("__datetimeParts"),ov=ol("__numberParts"),w_=ol("__setPluralRules"),C_=ol("__injectWithOption"),sv=ol("__dispose");function id(n){if(!It(n))return n;for(const e in n)if(Mh(n,e))if(!e.includes("."))It(n[e])&&id(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]||{},oh(c,i[a])):oh(c,i)}else ze(l)&&oh(JSON.parse(l),i)}),o==null&&s)for(const l in i)Mh(i,l)&&id(i[l]);return i}function x_(n){return n.type}function S_(n,e,t){let r=It(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=Rp(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{n.mergeLocaleMessage(s,r[s])});{if(It(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(i=>{n.mergeDateTimeFormat(i,e.datetimeFormats[i])})}if(It(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(i=>{n.mergeNumberFormat(i,e.numberFormats[i])})}}}function uw(n){return x(ga,null,n,0)}const dw="__INTLIFY_META__",fw=()=>[],m$=()=>!1;let hw=0;function pw(n){return(e,t,r,o)=>n(t,r,vt()||void 0,o)}const v$=()=>{const n=vt();let e=null;return n&&(e=x_(n)[dw])?{[dw]:e}:null};function Xb(n={},e){const{__root:t,__injectWithOption:r}=n,o=t===void 0,s=n.flatJson,i=Oh?z:Ao,l=!!n.translateExistCompatible;let a=Ot(n.inheritLocale)?n.inheritLocale:!0;const c=i(t&&a?t.locale.value:ze(n.locale)?n.locale:tc),u=i(t&&a?t.fallbackLocale.value:ze(n.fallbackLocale)||Zt(n.fallbackLocale)||gt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:c.value),d=i(Rp(c.value,n)),f=i(gt(n.datetimeFormats)?n.datetimeFormats:{[c.value]:{}}),h=i(gt(n.numberFormats)?n.numberFormats:{[c.value]:{}});let p=t?t.missingWarn:Ot(n.missingWarn)||Gi(n.missingWarn)?n.missingWarn:!0,g=t?t.fallbackWarn:Ot(n.fallbackWarn)||Gi(n.fallbackWarn)?n.fallbackWarn:!0,m=t?t.fallbackRoot:Ot(n.fallbackRoot)?n.fallbackRoot:!0,v=!!n.fallbackFormat,w=qt(n.missing)?n.missing:null,b=qt(n.missing)?pw(n.missing):null,y=qt(n.postTranslation)?n.postTranslation:null,S=t?t.warnHtmlMessage:Ot(n.warnHtmlMessage)?n.warnHtmlMessage:!0,E=!!n.escapeParameter;const T=t?t.modifiers:gt(n.modifiers)?n.modifiers:{};let M=n.pluralRules||t&&t.pluralRules,O;O=(()=>{o&&tw(null);const Q={version:p$,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:S,escapeParameter:E,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};Q.datetimeFormats=f.value,Q.numberFormats=h.value,Q.__datetimeFormatters=gt(O)?O.__datetimeFormatters:void 0,Q.__numberFormatters=gt(O)?O.__numberFormatters:void 0;const de=o$(Q);return o&&tw(de),de})(),iu(O,c.value,u.value);function k(){return[c.value,u.value,d.value,f.value,h.value]}const L=B({get:()=>c.value,set:Q=>{c.value=Q,O.locale=c.value}}),j=B({get:()=>u.value,set:Q=>{u.value=Q,O.fallbackLocale=u.value,iu(O,c.value,Q)}}),ne=B(()=>d.value),I=B(()=>f.value),R=B(()=>h.value);function U(){return qt(y)?y:null}function Z(Q){y=Q,O.postTranslation=Q}function Y(){return w}function K(Q){Q!==null&&(b=pw(Q)),w=Q,O.missing=b}const fe=(Q,de,Ue,Ke,Ae,Me)=>{k();let Je;try{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=t?r$():void 0),Je=Q(O)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=void 0)}if(Ue!=="translate exists"&&_n(Je)&&Je===Lp||Ue==="translate exists"&&!Je){const[it,he]=de();return t&&m?Ke(t):Ae(it)}else{if(Me(Je))return Je;throw Ln(Tn.UNEXPECTED_RETURN_TYPE)}};function H(...Q){return fe(de=>Reflect.apply(sw,null,[de,...Q]),()=>Qm(...Q),"translate",de=>Reflect.apply(de.t,de,[...Q]),de=>de,de=>ze(de))}function se(...Q){const[de,Ue,Ke]=Q;if(Ke&&!It(Ke))throw Ln(Tn.INVALID_ARGUMENT);return H(de,Ue,Yn({resolvedMessage:!0},Ke||{}))}function ue(...Q){return fe(de=>Reflect.apply(iw,null,[de,...Q]),()=>ev(...Q),"datetime format",de=>Reflect.apply(de.d,de,[...Q]),()=>Z1,de=>ze(de))}function be(...Q){return fe(de=>Reflect.apply(aw,null,[de,...Q]),()=>tv(...Q),"number format",de=>Reflect.apply(de.n,de,[...Q]),()=>Z1,de=>ze(de))}function ye(Q){return Q.map(de=>ze(de)||_n(de)||Ot(de)?uw(String(de)):de)}const ce={normalize:ye,interpolate:Q=>Q,type:"vnode"};function re(...Q){return fe(de=>{let Ue;const Ke=de;try{Ke.processor=ce,Ue=Reflect.apply(sw,null,[Ke,...Q])}finally{Ke.processor=null}return Ue},()=>Qm(...Q),"translate",de=>de[nv](...Q),de=>[uw(de)],de=>Zt(de))}function ve(...Q){return fe(de=>Reflect.apply(aw,null,[de,...Q]),()=>tv(...Q),"number format",de=>de[ov](...Q),fw,de=>ze(de)||Zt(de))}function ke(...Q){return fe(de=>Reflect.apply(iw,null,[de,...Q]),()=>ev(...Q),"datetime format",de=>de[rv](...Q),fw,de=>ze(de)||Zt(de))}function Se(Q){M=Q,O.pluralRules=M}function $(Q,de){return fe(()=>{if(!Q)return!1;const Ue=ze(de)?de:c.value,Ke=pe(Ue),Ae=O.messageResolver(Ke,Q);return l?Ae!=null:nc(Ae)||Jr(Ae)||ze(Ae)},()=>[Q],"translate exists",Ue=>Reflect.apply(Ue.te,Ue,[Q,de]),m$,Ue=>Ot(Ue))}function N(Q){let de=null;const Ue=i_(O,u.value,c.value);for(let Ke=0;Ke{a&&(c.value=Q,O.locale=Q,iu(O,c.value,u.value))}),$e(t.fallbackLocale,Q=>{a&&(u.value=Q,O.fallbackLocale=Q,iu(O,c.value,u.value))}));const oe={id:hw,locale:L,fallbackLocale:j,get inheritLocale(){return a},set inheritLocale(Q){a=Q,Q&&t&&(c.value=t.locale.value,u.value=t.fallbackLocale.value,iu(O,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:ne,get modifiers(){return T},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return p},set missingWarn(Q){p=Q,O.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(Q){g=Q,O.fallbackWarn=g},get fallbackRoot(){return m},set fallbackRoot(Q){m=Q},get fallbackFormat(){return v},set fallbackFormat(Q){v=Q,O.fallbackFormat=v},get warnHtmlMessage(){return S},set warnHtmlMessage(Q){S=Q,O.warnHtmlMessage=Q},get escapeParameter(){return E},set escapeParameter(Q){E=Q,O.escapeParameter=Q},t:H,getLocaleMessage:pe,setLocaleMessage:ge,mergeLocaleMessage:ae,getPostTranslationHandler:U,setPostTranslationHandler:Z,getMissingHandler:Y,setMissingHandler:K,[w_]:Se};return oe.datetimeFormats=I,oe.numberFormats=R,oe.rt=se,oe.te=$,oe.tm=te,oe.d=ue,oe.n=be,oe.getDateTimeFormat=Ee,oe.setDateTimeFormat=D,oe.mergeDateTimeFormat=V,oe.getNumberFormat=J,oe.setNumberFormat=le,oe.mergeNumberFormat=Oe,oe[C_]=r,oe[nv]=re,oe[rv]=ke,oe[ov]=ve,oe}function b$(n){const e=ze(n.locale)?n.locale:tc,t=ze(n.fallbackLocale)||Zt(n.fallbackLocale)||gt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=qt(n.missing)?n.missing:void 0,o=Ot(n.silentTranslationWarn)||Gi(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,s=Ot(n.silentFallbackWarn)||Gi(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,i=Ot(n.fallbackRoot)?n.fallbackRoot:!0,l=!!n.formatFallbackMessages,a=gt(n.modifiers)?n.modifiers:{},c=n.pluralizationRules,u=qt(n.postTranslation)?n.postTranslation:void 0,d=ze(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,f=!!n.escapeParameterHtml,h=Ot(n.sync)?n.sync:!0;let p=n.messages;if(gt(n.sharedMessages)){const E=n.sharedMessages;p=Object.keys(E).reduce((M,O)=>{const A=M[O]||(M[O]={});return Yn(A,E[O]),M},p||{})}const{__i18n:g,__root:m,__injectWithOption:v}=n,w=n.datetimeFormats,b=n.numberFormats,y=n.flatJson,S=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:S,__i18n:g,__root:m,__injectWithOption:v}}function iv(n={},e){{const t=Xb(b$(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 Ot(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=Ot(s)?!s:s},get silentFallbackWarn(){return Ot(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=Ot(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(!ze(i))throw Ln(Tn.INVALID_ARGUMENT);const f=i;return ze(l)?c.locale=l:Zt(l)?u=l:gt(l)&&(d=l),Zt(a)?u=a:gt(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(!ze(i))throw Ln(Tn.INVALID_ARGUMENT);const f=i;return ze(l)?c.locale=l:_n(l)?c.plural=l:Zt(l)?u=l:gt(l)&&(d=l),ze(a)?c.locale=a:Zt(a)?u=a:gt(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 Zb={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function y$({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,o)=>[...r,...o.type===Le?o.children:[o]],[]):e.reduce((t,r)=>{const o=n[r];return o&&(t[r]=o()),t},{})}function E_(n){return Le}const w$=me({name:"i18n-t",props:Yn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>_n(n)||!isNaN(n)}},Zb),setup(n,e){const{slots:t,attrs:r}=e,o=n.i18n||cn({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=ze(n.plural)?+n.plural:n.plural);const l=y$(e,s),a=o[nv](n.keypath,l,i),c=Yn({},r),u=ze(n.tag)||It(n.tag)?n.tag:E_();return Ye(u,c,a)}}}),gw=w$;function C$(n){return Zt(n)&&!ze(n[0])}function __(n,e,t,r){const{slots:o,attrs:s}=e;return()=>{const i={part:!0};let l={};n.locale&&(i.locale=n.locale),ze(n.format)?i.key=n.format:It(n.format)&&(ze(n.format.key)&&(i.key=n.format.key),l=Object.keys(n.format).reduce((f,h)=>t.includes(h)?Yn({},f,{[h]:n.format[h]}):f,{}));const a=r(n.value,i,l);let c=[i.key];Zt(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 C$(g)&&(g[0].key=`${f.type}-${h}`),g}):ze(a)&&(c=[a]);const u=Yn({},s),d=ze(n.tag)||It(n.tag)?n.tag:E_();return Ye(d,u,c)}}const x$=me({name:"i18n-n",props:Yn({value:{type:Number,required:!0},format:{type:[String,Object]}},Zb),setup(n,e){const t=n.i18n||cn({useScope:n.scope,__useComponent:!0});return __(n,e,v_,(...r)=>t[ov](...r))}}),mw=x$,S$=me({name:"i18n-d",props:Yn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zb),setup(n,e){const t=n.i18n||cn({useScope:n.scope,__useComponent:!0});return __(n,e,m_,(...r)=>t[rv](...r))}}),vw=S$;function E$(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){const e=i=>{const{instance:l,modifiers:a,value:c}=i;if(!l||!l.$)throw Ln(Tn.UNEXPECTED_ERROR);const u=E$(n,l.$),d=bw(c);return[Reflect.apply(u.t,u,[...yw(d)]),u]};return{created:(i,l)=>{const[a,c]=e(l);Oh&&n.global===c&&(i.__i18nWatcher=$e(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=c,i.textContent=a},unmounted:i=>{Oh&&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=bw(l);i.textContent=Reflect.apply(a.t,a,[...yw(c)])}},getSSRProps:i=>{const[l]=e(i);return{textContent:l}}}}function bw(n){if(ze(n))return{path:n};if(gt(n)){if(!("path"in n))throw Ln(Tn.REQUIRED_VALUE,"path");return n}else throw Ln(Tn.INVALID_VALUE)}function yw(n){const{path:e,locale:t,args:r,choice:o,plural:s}=n,i={},l=r||{};return ze(t)&&(i.locale=t),_n(o)&&(i.plural=o),_n(s)&&(i.plural=s),[e,l,i]}function T$(n,e,...t){const r=gt(t[0])?t[0]:{},o=!!r.useI18nComponentName;(Ot(r.globalInstall)?r.globalInstall:!0)&&([o?"i18n":gw.name,"I18nT"].forEach(i=>n.component(i,gw)),[mw.name,"I18nN"].forEach(i=>n.component(i,mw)),[vw.name,"I18nD"].forEach(i=>n.component(i,vw))),n.directive("t",_$(e))}function O$(n,e,t){return{beforeCreate(){const r=vt();if(!r)throw Ln(Tn.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=ww(n,s);else{s.__injectWithOption=!0,s.__extender=t.__vueI18nExtend,this.$i18n=iv(s);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=ww(n,o);else{this.$i18n=iv({__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&&S_(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=vt();if(!r)throw Ln(Tn.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 ww(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[w_](e.pluralizationRules||n.pluralizationRules);const t=Rp(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 M$=ol("global-vue-i18n");function A$(n={},e){const t=__VUE_I18N_LEGACY_API__&&Ot(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__,r=Ot(n.globalInjection)?n.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&t?!!n.allowComposition:!0,s=new Map,[i,l]=k$(n,t),a=ol("");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),gt(p[0])){const v=p[0];f.__composerExtend=v.__composerExtend,f.__vueI18nExtend=v.__vueI18nExtend}let g=null;!t&&r&&(g=F$(h,f.global)),__VUE_I18N_FULL_INSTALL__&&T$(h,f,...p),__VUE_I18N_LEGACY_API__&&t&&h.mixin(O$(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 cn(n={}){const e=vt();if(e==null)throw Ln(Tn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ln(Tn.NOT_INSTALLED);const t=P$(e),r=I$(t),o=x_(e),s=N$(n,o);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!n.__useComponent){if(!t.allowComposition)throw Ln(Tn.NOT_AVAILABLE_IN_LEGACY_MODE);return D$(e,s,r,n)}if(s==="global")return S_(r,n,o),r;if(s==="parent"){let a=L$(t,e,n.__useComponent);return a==null&&(a=r),a}const i=t;let l=i.__getInstance(e);if(l==null){const a=Yn({},n);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),l=Xb(a),i.__composerExtend&&(l[sv]=i.__composerExtend(l)),$$(i,e,l),i.__setInstance(e,l)}return l}function k$(n,e,t){const r=NE();{const o=__VUE_I18N_LEGACY_API__&&e?r.run(()=>iv(n)):r.run(()=>Xb(n));if(o==null)throw Ln(Tn.UNEXPECTED_ERROR);return[r,o]}}function P$(n){{const e=De(n.isCE?M$:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ln(n.isCE?Tn.NOT_INSTALLED_WITH_PROVIDE:Tn.UNEXPECTED_ERROR);return e}}function N$(n,e){return Np(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function I$(n){return n.mode==="composition"?n.global:n.global.__composer}function L$(n,e,t=!1){let r=null;const o=e.root;let s=R$(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[C_]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function R$(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function $$(n,e,t){rt(()=>{},e),vs(()=>{const r=t;n.__deleteInstance(e);const o=r[sv];o&&(o(),delete r[sv])},e)}function D$(n,e,t,r={}){const o=e==="local",s=Ao(null);if(o&&n.proxy&&!(n.proxy.$options.i18n||n.proxy.$options.__i18n))throw Ln(Tn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Ot(r.inheritLocale)?r.inheritLocale:!ze(r.locale),l=z(!o||i?t.locale.value:ze(r.locale)?r.locale:tc),a=z(!o||i?t.fallbackLocale.value:ze(r.fallbackLocale)||Zt(r.fallbackLocale)||gt(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),c=z(Rp(l.value,r)),u=z(gt(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),d=z(gt(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=o?t.missingWarn:Ot(r.missingWarn)||Gi(r.missingWarn)?r.missingWarn:!0,h=o?t.fallbackWarn:Ot(r.fallbackWarn)||Gi(r.fallbackWarn)?r.fallbackWarn:!0,p=o?t.fallbackRoot:Ot(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,m=qt(r.missing)?r.missing:null,v=qt(r.postTranslation)?r.postTranslation:null,w=o?t.warnHtmlMessage:Ot(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,y=o?t.modifiers:gt(r.modifiers)?r.modifiers:{},S=r.pluralRules||o&&t.pluralRules;function E(){return[l.value,a.value,c.value,u.value,d.value]}const T=B({get:()=>s.value?s.value.locale.value:l.value,set:N=>{s.value&&(s.value.locale.value=N),l.value=N}}),M=B({get:()=>s.value?s.value.fallbackLocale.value:a.value,set:N=>{s.value&&(s.value.fallbackLocale.value=N),a.value=N}}),O=B(()=>s.value?s.value.messages.value:c.value),A=B(()=>u.value),k=B(()=>d.value);function L(){return s.value?s.value.getPostTranslationHandler():v}function j(N){s.value&&s.value.setPostTranslationHandler(N)}function ne(){return s.value?s.value.getMissingHandler():m}function I(N){s.value&&s.value.setMissingHandler(N)}function R(N){return E(),N()}function U(...N){return s.value?R(()=>Reflect.apply(s.value.t,null,[...N])):R(()=>"")}function Z(...N){return s.value?Reflect.apply(s.value.rt,null,[...N]):""}function Y(...N){return s.value?R(()=>Reflect.apply(s.value.d,null,[...N])):R(()=>"")}function K(...N){return s.value?R(()=>Reflect.apply(s.value.n,null,[...N])):R(()=>"")}function fe(N){return s.value?s.value.tm(N):{}}function H(N,te){return s.value?s.value.te(N,te):!1}function se(N){return s.value?s.value.getLocaleMessage(N):{}}function ue(N,te){s.value&&(s.value.setLocaleMessage(N,te),c.value[N]=te)}function be(N,te){s.value&&s.value.mergeLocaleMessage(N,te)}function ye(N){return s.value?s.value.getDateTimeFormat(N):{}}function W(N,te){s.value&&(s.value.setDateTimeFormat(N,te),u.value[N]=te)}function ce(N,te){s.value&&s.value.mergeDateTimeFormat(N,te)}function re(N){return s.value?s.value.getNumberFormat(N):{}}function ve(N,te){s.value&&(s.value.setNumberFormat(N,te),d.value[N]=te)}function ke(N,te){s.value&&s.value.mergeNumberFormat(N,te)}const Se={get id(){return s.value?s.value.id:-1},locale:T,fallbackLocale:M,messages:O,datetimeFormats:A,numberFormats:k,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:S},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:U,getPostTranslationHandler:L,setPostTranslationHandler:j,getMissingHandler:ne,setMissingHandler:I,rt:Z,d:Y,n:K,tm:fe,te:H,getLocaleMessage:se,setLocaleMessage:ue,mergeLocaleMessage:be,getDateTimeFormat:ye,setDateTimeFormat:W,mergeDateTimeFormat:ce,getNumberFormat:re,setNumberFormat:ve,mergeNumberFormat:ke};function $(N){N.locale.value=l.value,N.fallbackLocale.value=a.value,Object.keys(c.value).forEach(te=>{N.mergeLocaleMessage(te,c.value[te])}),Object.keys(u.value).forEach(te=>{N.mergeDateTimeFormat(te,u.value[te])}),Object.keys(d.value).forEach(te=>{N.mergeNumberFormat(te,d.value[te])}),N.escapeParameter=b,N.fallbackFormat=g,N.fallbackRoot=p,N.fallbackWarn=h,N.missingWarn=f,N.warnHtmlMessage=w}return Fd(()=>{if(n.proxy==null||n.proxy.$i18n==null)throw Ln(Tn.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&&$(N)}),Se}const V$=["locale","fallbackLocale","availableLocales"],Cw=["t","rt","d","n","tm","te"];function F$(n,e){const t=Object.create(null);return V$.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s)throw Ln(Tn.UNEXPECTED_ERROR);const i=Wt(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,Cw.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s||!s.value)throw Ln(Tn.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${o}`,s)}),()=>{delete n.config.globalProperties.$i18n,Cw.forEach(o=>{delete n.config.globalProperties[`$${o}`]})}}g$();__INTLIFY_JIT_COMPILATION__?ew(c$):ew(a$);Q3(L3);e$(i_);if(__INTLIFY_PROD_DEVTOOLS__){const n=Is();n.__INTLIFY__=!0,H3(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const B$={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:"了解如何通过画布,快速的构建出流程。了解如何通过代码,对接应答接口"}}},z$={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"}}},j$={zh:B$,en:z$},H$=((navigator.language?navigator.language:navigator.userLanguage)||"zh").toLowerCase(),U$=A$({fallbackLocale:"zh",globalInjection:!0,legacy:!1,locale:H$.split("-")[0]||"zh",messages:j$}),W$={__name:"App",setup(n){return(e,t)=>{const r=ot("router-view");return P(),we(r)}}},G$='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',q$=n=>getComputedStyle(n).position==="fixed"?!1:n.offsetParent!==null,xw=n=>Array.from(n.querySelectorAll(G$)).filter(e=>K$(e)&&q$(e)),K$=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}},ks=(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 Y$=Object.defineProperty,J$=Object.defineProperties,X$=Object.getOwnPropertyDescriptors,Sw=Object.getOwnPropertySymbols,Z$=Object.prototype.hasOwnProperty,Q$=Object.prototype.propertyIsEnumerable,Ew=(n,e,t)=>e in n?Y$(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,eD=(n,e)=>{for(var t in e||(e={}))Z$.call(e,t)&&Ew(n,t,e[t]);if(Sw)for(var t of Sw(e))Q$.call(e,t)&&Ew(n,t,e[t]);return n},tD=(n,e)=>J$(n,X$(e));function _w(n,e){var t;const r=Ao();return rs(()=>{r.value=n()},tD(eD({},e),{flush:(t=void 0)!=null?t:"sync"})),$d(r)}var Tw;const xt=typeof window<"u",nD=n=>typeof n=="string",rc=()=>{},lv=xt&&((Tw=window==null?void 0:window.navigator)==null?void 0:Tw.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function oc(n){return typeof n=="function"?n():C(n)}function T_(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 rD(n,e={}){let t,r,o=rc;const s=l=>{clearTimeout(l),o(),o=rc};return l=>{const a=oc(n),c=oc(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 oD(n,e=!0,t=!0,r=!1){let o=0,s,i=!0,l=rc,a;const c=()=>{s&&(clearTimeout(s),s=void 0,l(),l=rc)};return d=>{const f=oc(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 sD(n){return n}function zd(n){return IE()?(LE(n),!0):!1}function iD(n,e=200,t={}){return T_(rD(e,t),n)}function lD(n,e=200,t={}){const r=z(n.value),o=iD(()=>{r.value=n.value},e,t);return $e(n,()=>o()),r}function aD(n,e=200,t=!1,r=!0,o=!1){return T_(oD(e,t,r,o),n)}function cD(n,e=!0){vt()?rt(n):e?n():nt(n)}function kh(n,e,t={}){const{immediate:r=!0}=t,o=z(!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)},oc(e))}return r&&(o.value=!0,xt&&a()),zd(l),{isPending:$d(o),start:a,stop:l}}function Ls(n){var e;const t=oc(n);return(e=t==null?void 0:t.$el)!=null?e:t}const jd=xt?window:void 0,uD=xt?window.document:void 0;function vn(...n){let e,t,r,o;if(nD(n[0])||Array.isArray(n[0])?([t,r,o]=n,e=jd):[e,t,r,o]=n,!e)return rc;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=$e(()=>[Ls(e),oc(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 zd(c),c}let Ow=!1;function dD(n,e,t={}){const{window:r=jd,ignore:o=[],capture:s=!0,detectIframe:i=!1}=t;if(!r)return;lv&&!Ow&&(Ow=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",rc)));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=Ls(h);return p&&(f.target===p||f.composedPath().includes(p))}}),u=[vn(r,"click",f=>{const h=Ls(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}),vn(r,"pointerdown",f=>{const h=Ls(n);h&&(l=!f.composedPath().includes(h)&&!a(f))},{passive:!0}),i&&vn(r,"blur",f=>{var h;const p=Ls(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 O_(n,e=!1){const t=z(),r=()=>t.value=!!n();return r(),cD(r,e),t}const Mw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Aw="__vueuse_ssr_handlers__";Mw[Aw]=Mw[Aw]||{};function fD({document:n=uD}={}){if(!n)return z("visible");const e=z(n.visibilityState);return vn(n,"visibilitychange",()=>{e.value=n.visibilityState}),e}var kw=Object.getOwnPropertySymbols,hD=Object.prototype.hasOwnProperty,pD=Object.prototype.propertyIsEnumerable,gD=(n,e)=>{var t={};for(var r in n)hD.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&kw)for(var r of kw(n))e.indexOf(r)<0&&pD.call(n,r)&&(t[r]=n[r]);return t};function dr(n,e,t={}){const r=t,{window:o=jd}=r,s=gD(r,["window"]);let i;const l=O_(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},c=$e(()=>Ls(n),d=>{a(),l.value&&o&&d&&(i=new ResizeObserver(e),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return zd(u),{isSupported:l,stop:u}}var Pw=Object.getOwnPropertySymbols,mD=Object.prototype.hasOwnProperty,vD=Object.prototype.propertyIsEnumerable,bD=(n,e)=>{var t={};for(var r in n)mD.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Pw)for(var r of Pw(n))e.indexOf(r)<0&&vD.call(n,r)&&(t[r]=n[r]);return t};function yD(n,e,t={}){const r=t,{window:o=jd}=r,s=bD(r,["window"]);let i;const l=O_(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},c=$e(()=>Ls(n),d=>{a(),l.value&&o&&d&&(i=new MutationObserver(e),i.observe(d,s))},{immediate:!0}),u=()=>{a(),c()};return zd(u),{isSupported:l,stop:u}}var Nw;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Nw||(Nw={}));var wD=Object.defineProperty,Iw=Object.getOwnPropertySymbols,CD=Object.prototype.hasOwnProperty,xD=Object.prototype.propertyIsEnumerable,Lw=(n,e,t)=>e in n?wD(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,SD=(n,e)=>{for(var t in e||(e={}))CD.call(e,t)&&Lw(n,t,e[t]);if(Iw)for(var t of Iw(e))xD.call(e,t)&&Lw(n,t,e[t]);return n};const ED={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]};SD({linear:sD},ED);function _D({window:n=jd}={}){if(!n)return z(!1);const e=z(n.document.hasFocus());return vn(n,"blur",()=>{e.value=!1}),vn(n,"focus",()=>{e.value=!0}),e}const TD=()=>xt&&/firefox/i.test(window.navigator.userAgent),OD=(n,e)=>{if(!xt||!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>=d4)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function g4(n){return function(){return n}}var Ph=function(){try{var n=va(Object,"defineProperty");return n({},"",{}),n}catch{}}(),m4=Ph?function(n,e){return Ph(n,"toString",{configurable:!0,enumerable:!1,value:g4(e),writable:!0})}:jc,I_=p4(m4);function v4(n,e){for(var t=-1,r=n==null?0:n.length;++t-1}var C4=9007199254740991,x4=/^(?:0|[1-9]\d*)$/;function $p(n,e){var t=typeof n;return e=e??C4,!!e&&(t=="number"||t!="symbol"&&x4.test(n))&&n>-1&&n%1==0&&n-1&&n%1==0&&n<=_4}function ba(n){return n!=null&&ty(n.length)&&!Qb(n)}function Nh(n,e,t){if(!sn(t))return!1;var r=typeof e;return(r=="number"?ba(t)&&$p(e,t.length):r=="string"&&e in t)?Hc(t[e],n):!1}function D_(n){return Uc(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&&Nh(t[0],t[1],i)&&(s=o<3?void 0:s,o=1),e=Object(e);++r-1}function L8(n,e){var t=this.__data__,r=zp(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function Ys(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:nV(n,e,t)}var oV="\\ud800-\\udfff",sV="\\u0300-\\u036f",iV="\\ufe20-\\ufe2f",lV="\\u20d0-\\u20ff",aV=sV+iV+lV,cV="\\ufe0e\\ufe0f",uV="\\u200d",dV=RegExp("["+uV+oV+aV+cV+"]");function W_(n){return dV.test(n)}function fV(n){return n.split("")}var G_="\\ud800-\\udfff",hV="\\u0300-\\u036f",pV="\\ufe20-\\ufe2f",gV="\\u20d0-\\u20ff",mV=hV+pV+gV,vV="\\ufe0e\\ufe0f",bV="["+G_+"]",cv="["+mV+"]",uv="\\ud83c[\\udffb-\\udfff]",yV="(?:"+cv+"|"+uv+")",q_="[^"+G_+"]",K_="(?:\\ud83c[\\udde6-\\uddff]){2}",Y_="[\\ud800-\\udbff][\\udc00-\\udfff]",wV="\\u200d",J_=yV+"?",X_="["+vV+"]?",CV="(?:"+wV+"(?:"+[q_,K_,Y_].join("|")+")"+X_+J_+")*",xV=X_+J_+CV,SV="(?:"+[q_+cv+"?",cv,K_,Y_,bV].join("|")+")",EV=RegExp(uv+"(?="+uv+")|"+SV+xV,"g");function _V(n){return n.match(EV)||[]}function TV(n){return W_(n)?_V(n):fV(n)}function Z_(n){return function(e){e=Wd(e);var t=W_(e)?TV(e):void 0,r=t?t[0]:e.charAt(0),o=t?rV(t,1).join(""):e.slice(1);return r[n]()+o}}var Ih=Z_("toUpperCase");function OV(n){return Ih(Wd(n).toLowerCase())}function MV(n,e,t,r){for(var o=-1,s=n==null?0:n.length;++o=e?n:e)),n}function eo(n,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=ku(t),t=t===t?t:0),e!==void 0&&(e=ku(e),e=e===e?e:0),mF(ku(n),e,t)}function vF(){this.__data__=new Ys,this.size=0}function bF(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function yF(n){return this.__data__.get(n)}function wF(n){return this.__data__.has(n)}var CF=200;function xF(n,e){var t=this.__data__;if(t instanceof Ys){var r=t.__data__;if(!ad||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&ZB?new ac:void 0;for(s.set(n,e),s.set(e,n);++d=e||T<0||d&&M>=s}function v(){var E=Kg();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(Kg())}function S(){var E=Kg(),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 S.cancel=b,S.flush=y,S}var kT=Object.prototype,j5=kT.hasOwnProperty,H5=Uc(function(n,e){n=Object(n);var t=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&Nh(e[0],e[1],o)&&(r=1);++t=q5&&(s=ay,i=!1,e=new ac(e));e:for(;++oe}var n6=Object.prototype,r6=n6.hasOwnProperty;function o6(n,e){return n!=null&&r6.call(n,e)}function Of(n,e){return n!=null&&TT(n,e,o6)}var s6="[object Map]",i6="[object Set]",l6=Object.prototype,a6=l6.hasOwnProperty;function LT(n){if(n==null)return!0;if(ba(n)&&(Dn(n)||typeof n=="string"||typeof n.splice=="function"||ic(n)||Bp(n)||sc(n)))return!n.length;var e=Xr(n);if(e==s6||e==i6)return!n.size;if(Vp(n))return!H_(n).length;for(var t in n)if(a6.call(n,t))return!1;return!0}function Cr(n,e){return Gp(n,e)}var c6="[object Number]";function gC(n){return typeof n=="number"||$o(n)&&il(n)==c6}function ss(n){return n==null}function RT(n){return n===void 0}var u6=Z_("toLowerCase");function d6(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 v6(n,e,t){e.length?e=Au(e,function(s){return Dn(s)?function(i){return Up(i,s.length===1?s[0]:s)}:s}):e=[jc];var r=-1;e=Au(e,Fp(Kd));var o=IT(n,function(s,i,l){var a=Au(e,function(c){return c(s)});return{criteria:a,index:++r,value:s}});return p6(o,function(s,i){return m6(s,i,t)})}function b6(n,e){return h6(n,e,function(t,r){return OT(n,r)})}var DT=J8(function(n,e){return n==null?{}:b6(n,e)});function y6(n,e,t){return n==null?n:$T(n,e,t)}var w6=Uc(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Nh(n,e[0],e[1])?e=[]:t>2&&Nh(e[0],e[1],e[2])&&(e=[e[0]]),v6(n,qd(e),[])}),C6=4294967295,x6=C6-1,S6=Math.floor,E6=Math.min;function VT(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=cs(e),c=e===void 0;o>>1;function O6(n,e,t){var r=0,o=n==null?r:n.length;if(typeof e=="number"&&e===e&&o<=T6){for(;r>>1,i=n[s];i!==null&&!cs(i)&&i=L6){var c=I6(n);if(c)return cy(c);i=!1,o=ay,a=new ac}else a=l;e:for(;++rn===void 0,lo=n=>typeof n=="boolean",_t=n=>typeof n=="number",ao=n=>typeof Element>"u"?!1:n instanceof Element,ud=n=>ss(n),R6=n=>ft(n)?!Number.isNaN(Number(n)):!1,$6=n=>xt?window.requestAnimationFrame(n):setTimeout(n,16),D6=(n="")=>n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ai=n=>Rd(n),Vh=n=>Object.keys(n),ih=(n,e,t)=>({get value(){return Qr(n,e,t)},set value(r){y6(n,e,r)}});class V6 extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function ll(n,e){throw new V6(`[${n}] ${e}`)}const zT=(n="")=>n.split(" ").filter(e=>!!e.trim()),Ha=(n,e)=>{if(!n||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return n.classList.contains(e)},na=(n,e)=>{!n||!e.trim()||n.classList.add(...zT(e))},us=(n,e)=>{!n||!e.trim()||n.classList.remove(...zT(e))},kl=(n,e)=>{var t;if(!xt||!n||!e)return"";let r=Lo(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 co(n,e="px"){if(!n)return"";if(_t(n)||R6(n))return`${n}${e}`;if(ft(n))return n}const F6=(n,e)=>{if(!xt)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],r=kl(n,t);return["scroll","auto","overlay"].some(o=>r.includes(o))},B6=(n,e)=>{if(!xt)return;let t=n;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(F6(t,e))return t;t=t.parentNode}return t};let Mf;const z6=n=>{var e;if(!xt)return 0;if(Mf!==void 0)return Mf;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),Mf=r-s,Mf};function j6(n,e){if(!xt)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 H6=me({name:"ArrowDown",__name:"arrow-down",setup(n){return(e,t)=>(P(),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"})]))}}),uy=H6,U6=me({name:"ArrowLeft",__name:"arrow-left",setup(n){return(e,t)=>(P(),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"})]))}}),jT=U6,W6=me({name:"ArrowRight",__name:"arrow-right",setup(n){return(e,t)=>(P(),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"})]))}}),Kp=W6,G6=me({name:"ArrowUp",__name:"arrow-up",setup(n){return(e,t)=>(P(),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"})]))}}),HT=G6,q6=me({name:"Back",__name:"back",setup(n){return(e,t)=>(P(),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"})]))}}),K6=q6,Y6=me({name:"CircleCheckFilled",__name:"circle-check-filled",setup(n){return(e,t)=>(P(),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"})]))}}),J6=Y6,X6=me({name:"CircleCheck",__name:"circle-check",setup(n){return(e,t)=>(P(),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"})]))}}),Z6=X6,Q6=me({name:"CircleCloseFilled",__name:"circle-close-filled",setup(n){return(e,t)=>(P(),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"})]))}}),dy=Q6,ez=me({name:"CircleClose",__name:"circle-close",setup(n){return(e,t)=>(P(),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"})]))}}),fy=ez,tz=me({name:"Close",__name:"close",setup(n){return(e,t)=>(P(),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"})]))}}),ra=tz,nz=me({name:"FullScreen",__name:"full-screen",setup(n){return(e,t)=>(P(),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"})]))}}),rz=nz,oz=me({name:"Hide",__name:"hide",setup(n){return(e,t)=>(P(),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"})]))}}),sz=oz,iz=me({name:"InfoFilled",__name:"info-filled",setup(n){return(e,t)=>(P(),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"})]))}}),hy=iz,lz=me({name:"Loading",__name:"loading",setup(n){return(e,t)=>(P(),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"})]))}}),py=lz,az=me({name:"Minus",__name:"minus",setup(n){return(e,t)=>(P(),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"})]))}}),cz=az,uz=me({name:"Plus",__name:"plus",setup(n){return(e,t)=>(P(),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"})]))}}),UT=uz,dz=me({name:"RefreshLeft",__name:"refresh-left",setup(n){return(e,t)=>(P(),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"})]))}}),fz=dz,hz=me({name:"RefreshRight",__name:"refresh-right",setup(n){return(e,t)=>(P(),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"})]))}}),pz=hz,gz=me({name:"ScaleToOriginal",__name:"scale-to-original",setup(n){return(e,t)=>(P(),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"})]))}}),mz=gz,vz=me({name:"SuccessFilled",__name:"success-filled",setup(n){return(e,t)=>(P(),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"})]))}}),WT=vz,bz=me({name:"View",__name:"view",setup(n){return(e,t)=>(P(),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"})]))}}),yz=bz,wz=me({name:"WarningFilled",__name:"warning-filled",setup(n){return(e,t)=>(P(),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"})]))}}),gy=wz,Cz=me({name:"ZoomIn",__name:"zoom-in",setup(n){return(e,t)=>(P(),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"})]))}}),xz=Cz,Sz=me({name:"ZoomOut",__name:"zoom-out",setup(n){return(e,t)=>(P(),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"})]))}}),Ez=Sz;const GT="__epPropKey",Be=n=>n,_z=n=>pt(n)&&!!n[GT],Yp=(n,e)=>{if(!pt(n)||_z(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),wt(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(", ");tL(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${f}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[GT]:!0};return wt(n,"default")&&(a.default=o),a},tt=n=>Dh(Object.entries(n).map(([e,t])=>[e,Yp(t,e)])),uo=Be([String,Object,Function]),qT={Close:ra},my={Close:ra,SuccessFilled:WT,InfoFilled:hy,WarningFilled:gy,CircleCloseFilled:dy},qi={success:WT,warning:gy,error:dy,info:hy},KT={validating:py,success:Z6,error:fy},Lt=(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},YT=(n,e)=>(n.install=t=>{n._context=t._context,t.config.globalProperties[e]=n},n),Tz=(n,e)=>(n.install=t=>{t.directive(e,n)},n),Or=n=>(n.install=un,n),Oz=(...n)=>e=>{n.forEach(t=>{We(t)?t(e):t.value=e})},mn={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"},zt="update:modelValue",Yd="change",lh="input",ya=["","default","small","large"],Mz=n=>["",...ya].includes(n);var qr=(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))(qr||{});function mv(n){return On(n)&&n.type===Le}function Az(n){return On(n)&&n.type===Gn}function kz(n){return On(n)&&!mv(n)&&!Az(n)}const ah=n=>{const e=Re(n)?n:[n],t=[];return e.forEach(r=>{var o;Re(r)?t.push(...ah(r)):On(r)&&Re(r.children)?t.push(...ah(r.children)):(t.push(r),On(r)&&((o=r.component)!=null&&o.subTree)&&t.push(...ah(r.component.subTree)))}),t},JT=n=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n),xo=n=>n,Pz=["class","style"],Nz=/^on[A-Z]/,XT=(n={})=>{const{excludeListeners:e=!1,excludeKeys:t}=n,r=B(()=>((t==null?void 0:t.value)||[]).concat(Pz)),o=vt();return B(o?()=>{var s;return Dh(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(e&&Nz.test(i))))}:()=>({}))},wr=({from:n,replacement:e,scope:t,version:r,ref:o,type:s="API"},i)=>{$e(()=>C(i),l=>{},{immediate:!0})},ZT=(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,S=-g+f,E=w-p-m+d,T=b-g-v+f,M=A=>{let k=d+A.clientX-c,L=f+A.clientY-u;r!=null&&r.value||(k=Math.min(Math.max(k,y),E),L=Math.min(Math.max(L,S),T)),o={offsetX:k,offsetY:L},n.value&&(n.value.style.transform=`translate(${co(k)}, ${co(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)};rt(()=>{rs(()=>{t.value?i():l()})}),wn(()=>{l()})};var Iz={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 Lz=n=>(e,t)=>Rz(e,t,C(n)),Rz=(n,e,t)=>Qr(t,n,n).replace(/\{(\w+)\}/g,(r,o)=>{var s;return`${(s=e==null?void 0:e[o])!=null?s:`{${o}}`}`}),$z=n=>{const e=B(()=>C(n).name),t=Wt(n)?n:z(n);return{lang:e,locale:t,t:Lz(n)}},QT=Symbol("localeContextKey"),ys=n=>{const e=n||De(QT,z());return $z(B(()=>e.value||Iz))},Iu="el",Dz="is-",El=(n,e,t,r,o)=>{let s=`${n}-${e}`;return t&&(s+=`-${t}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s},eO=Symbol("namespaceContextKey"),vy=n=>{const e=n||(vt()?De(eO,z(Iu)):z(Iu));return B(()=>C(e)||Iu)},Ge=(n,e)=>{const t=vy(e);return{namespace:t,b:(g="")=>El(t.value,n,g,"",""),e:g=>g?El(t.value,n,"",g,""):"",m:g=>g?El(t.value,n,"","",g):"",be:(g,m)=>g&&m?El(t.value,n,g,m,""):"",em:(g,m)=>g&&m?El(t.value,n,"",g,m):"",bm:(g,m)=>g&&m?El(t.value,n,g,"",m):"",bem:(g,m,v)=>g&&m&&v?El(t.value,n,g,m,v):"",is:(g,...m)=>{const v=m.length>=1?m[0]:!0;return g&&v?`${Dz}${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}`}},tO=(n,e={})=>{Wt(n)||ll("[useLockscreen]","You need to pass a ref param to this function");const t=e.ns||Ge("popup"),r=B(()=>t.bm("parent","hidden"));if(!xt||Ha(document.body,r.value))return;let o=0,s=!1,i="0";const l=()=>{setTimeout(()=>{us(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=i)},200)};$e(n,a=>{if(!a){l();return}s=!Ha(document.body,r.value),s&&(i=document.body.style.width),o=z6(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`),na(document.body,r.value)}),LE(()=>l())},Vz=Yp({type:Be(Boolean),default:null}),Fz=Yp({type:Be(Function)}),nO=n=>{const e=`update:${n}`,t=`onUpdate:${n}`,r=[e],o={[n]:Vz,[t]:Fz};return{useModelToggle:({indicator:i,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:u,onHide:d})=>{const f=vt(),{emit:h}=f,p=f.props,g=B(()=>We(p[t])),m=B(()=>p[n]===null),v=T=>{i.value!==!0&&(i.value=!0,l&&(l.value=T),We(u)&&u(T))},w=T=>{i.value!==!1&&(i.value=!1,l&&(l.value=T),We(d)&&d(T))},b=T=>{if(p.disabled===!0||We(c)&&!c())return;const M=g.value&&xt;M&&h(e,!0),(m.value||!M)&&v(T)},y=T=>{if(p.disabled===!0||!xt)return;const M=g.value&&xt;M&&h(e,!1),(m.value||!M)&&w(T)},S=T=>{lo(T)&&(p.disabled&&T?g.value&&h(e,!1):i.value!==T&&(T?v():w()))},E=()=>{i.value?y():b()};return $e(()=>p[n],S),a&&f.appContext.config.globalProperties.$route!==void 0&&$e(()=>({...f.proxy.$route}),()=>{a.value&&i.value&&y()}),rt(()=>{S(p[n])}),{hide:y,show:b,toggle:E,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}};nO("modelValue");const rO=n=>{const e=vt();return B(()=>{var t,r;return(r=(t=e==null?void 0:e.proxy)==null?void 0:t.$props)==null?void 0:r[n]})};var xr="top",fo="bottom",ho="right",Sr="left",by="auto",Jd=[xr,fo,ho,Sr],uc="start",dd="end",Bz="clippingParents",oO="viewport",au="popper",zz="reference",vC=Jd.reduce(function(n,e){return n.concat([e+"-"+uc,e+"-"+dd])},[]),Jp=[].concat(Jd,[by]).reduce(function(n,e){return n.concat([e,e+"-"+uc,e+"-"+dd])},[]),jz="beforeRead",Hz="read",Uz="afterRead",Wz="beforeMain",Gz="main",qz="afterMain",Kz="beforeWrite",Yz="write",Jz="afterWrite",Xz=[jz,Hz,Uz,Wz,Gz,qz,Kz,Yz,Jz];function ds(n){return n?(n.nodeName||"").toLowerCase():null}function jo(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function dc(n){var e=jo(n).Element;return n instanceof e||n instanceof Element}function oo(n){var e=jo(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function yy(n){if(typeof ShadowRoot>"u")return!1;var e=jo(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Zz(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];!oo(s)||!ds(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 Qz(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},{});!oo(o)||!ds(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}var wy={name:"applyStyles",enabled:!0,phase:"write",fn:Zz,effect:Qz,requires:["computeStyles"]};function is(n){return n.split("-")[0]}var Wl=Math.max,Fh=Math.min,fc=Math.round;function hc(n,e){e===void 0&&(e=!1);var t=n.getBoundingClientRect(),r=1,o=1;if(oo(n)&&e){var s=n.offsetHeight,i=n.offsetWidth;i>0&&(r=fc(t.width)/i||1),s>0&&(o=fc(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 Cy(n){var e=hc(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 sO(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&yy(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function js(n){return jo(n).getComputedStyle(n)}function ej(n){return["table","td","th"].indexOf(ds(n))>=0}function al(n){return((dc(n)?n.ownerDocument:n.document)||window.document).documentElement}function Xp(n){return ds(n)==="html"?n:n.assignedSlot||n.parentNode||(yy(n)?n.host:null)||al(n)}function bC(n){return!oo(n)||js(n).position==="fixed"?null:n.offsetParent}function tj(n){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&oo(n)){var r=js(n);if(r.position==="fixed")return null}var o=Xp(n);for(yy(o)&&(o=o.host);oo(o)&&["html","body"].indexOf(ds(o))<0;){var s=js(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 Xd(n){for(var e=jo(n),t=bC(n);t&&ej(t)&&js(t).position==="static";)t=bC(t);return t&&(ds(t)==="html"||ds(t)==="body"&&js(t).position==="static")?e:t||tj(n)||e}function xy(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Lu(n,e,t){return Wl(n,Fh(e,t))}function nj(n,e,t){var r=Lu(n,e,t);return r>t?t:r}function iO(){return{top:0,right:0,bottom:0,left:0}}function lO(n){return Object.assign({},iO(),n)}function aO(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var rj=function(n,e){return n=typeof n=="function"?n(Object.assign({},e.rects,{placement:e.placement})):n,lO(typeof n!="number"?n:aO(n,Jd))};function oj(n){var e,t=n.state,r=n.name,o=n.options,s=t.elements.arrow,i=t.modifiersData.popperOffsets,l=is(t.placement),a=xy(l),c=[Sr,ho].indexOf(l)>=0,u=c?"height":"width";if(!(!s||!i)){var d=rj(o.padding,t),f=Cy(s),h=a==="y"?xr:Sr,p=a==="y"?fo:ho,g=t.rects.reference[u]+t.rects.reference[a]-i[a]-t.rects.popper[u],m=i[a]-t.rects.reference[a],v=Xd(s),w=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,y=d[h],S=w-f[u]-d[p],E=w/2-f[u]/2+b,T=Lu(y,E,S),M=a;t.modifiersData[r]=(e={},e[M]=T,e.centerOffset=T-E,e)}}function sj(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)||!sO(e.elements.popper,o)||(e.elements.arrow=o))}var ij={name:"arrow",enabled:!0,phase:"main",fn:oj,effect:sj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pc(n){return n.split("-")[1]}var lj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aj(n){var e=n.x,t=n.y,r=window,o=r.devicePixelRatio||1;return{x:fc(e*o)/o||0,y:fc(t*o)/o||0}}function yC(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=Sr,y=xr,S=window;if(c){var E=Xd(t),T="clientHeight",M="clientWidth";if(E===jo(t)&&(E=al(t),js(E).position!=="static"&&l==="absolute"&&(T="scrollHeight",M="scrollWidth")),E=E,o===xr||(o===Sr||o===ho)&&s===dd){y=fo;var O=d&&E===S&&S.visualViewport?S.visualViewport.height:E[T];g-=O-r.height,g*=a?1:-1}if(o===Sr||(o===xr||o===fo)&&s===dd){b=ho;var A=d&&E===S&&S.visualViewport?S.visualViewport.width:E[M];h-=A-r.width,h*=a?1:-1}}var k=Object.assign({position:l},c&&lj),L=u===!0?aj({x:h,y:g}):{x:h,y:g};if(h=L.x,g=L.y,a){var j;return Object.assign({},k,(j={},j[y]=w?"0":"",j[b]=v?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",j))}return Object.assign({},k,(e={},e[y]=w?g+"px":"",e[b]=v?h+"px":"",e.transform="",e))}function cj(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:is(e.placement),variation:pc(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,yC(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,yC(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 cO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cj,data:{}},Af={passive:!0};function uj(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=jo(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",t.update,Af)}),l&&a.addEventListener("resize",t.update,Af),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",t.update,Af)}),l&&a.removeEventListener("resize",t.update,Af)}}var uO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uj,data:{}},dj={left:"right",right:"left",bottom:"top",top:"bottom"};function ch(n){return n.replace(/left|right|bottom|top/g,function(e){return dj[e]})}var fj={start:"end",end:"start"};function wC(n){return n.replace(/start|end/g,function(e){return fj[e]})}function Sy(n){var e=jo(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Ey(n){return hc(al(n)).left+Sy(n).scrollLeft}function hj(n){var e=jo(n),t=al(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+Ey(n),y:l}}function pj(n){var e,t=al(n),r=Sy(n),o=(e=n.ownerDocument)==null?void 0:e.body,s=Wl(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Wl(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ey(n),a=-r.scrollTop;return js(o||t).direction==="rtl"&&(l+=Wl(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function _y(n){var e=js(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function dO(n){return["html","body","#document"].indexOf(ds(n))>=0?n.ownerDocument.body:oo(n)&&_y(n)?n:dO(Xp(n))}function Ru(n,e){var t;e===void 0&&(e=[]);var r=dO(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),s=jo(r),i=o?[s].concat(s.visualViewport||[],_y(r)?r:[]):r,l=e.concat(i);return o?l:l.concat(Ru(Xp(i)))}function vv(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function gj(n){var e=hc(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 CC(n,e){return e===oO?vv(hj(n)):dc(e)?gj(e):vv(pj(al(n)))}function mj(n){var e=Ru(Xp(n)),t=["absolute","fixed"].indexOf(js(n).position)>=0,r=t&&oo(n)?Xd(n):n;return dc(r)?e.filter(function(o){return dc(o)&&sO(o,r)&&ds(o)!=="body"}):[]}function vj(n,e,t){var r=e==="clippingParents"?mj(n):[].concat(e),o=[].concat(r,[t]),s=o[0],i=o.reduce(function(l,a){var c=CC(n,a);return l.top=Wl(c.top,l.top),l.right=Fh(c.right,l.right),l.bottom=Fh(c.bottom,l.bottom),l.left=Wl(c.left,l.left),l},CC(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 fO(n){var e=n.reference,t=n.element,r=n.placement,o=r?is(r):null,s=r?pc(r):null,i=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case xr:a={x:i,y:e.y-t.height};break;case fo:a={x:i,y:e.y+e.height};break;case ho:a={x:e.x+e.width,y:l};break;case Sr:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?xy(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case uc:a[c]=a[c]-(e[u]/2-t[u]/2);break;case dd:a[c]=a[c]+(e[u]/2-t[u]/2);break}}return a}function fd(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?Bz:s,l=t.rootBoundary,a=l===void 0?oO:l,c=t.elementContext,u=c===void 0?au:c,d=t.altBoundary,f=d===void 0?!1:d,h=t.padding,p=h===void 0?0:h,g=lO(typeof p!="number"?p:aO(p,Jd)),m=u===au?zz:au,v=n.rects.popper,w=n.elements[f?m:u],b=vj(dc(w)?w:w.contextElement||al(n.elements.popper),i,a),y=hc(n.elements.reference),S=fO({reference:y,element:v,strategy:"absolute",placement:o}),E=vv(Object.assign({},v,S)),T=u===au?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===au&&O){var A=O[o];Object.keys(M).forEach(function(k){var L=[ho,fo].indexOf(k)>=0?1:-1,j=[xr,fo].indexOf(k)>=0?"y":"x";M[k]+=A[j]*L})}return M}function bj(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?Jp:a,u=pc(r),d=u?l?vC:vC.filter(function(p){return pc(p)===u}):Jd,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]=fd(n,{placement:g,boundary:o,rootBoundary:s,padding:i})[is(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function yj(n){if(is(n)===by)return[];var e=ch(n);return[wC(n),e,wC(e)]}function wj(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=is(m),w=v===m,b=a||(w||!p?[ch(m)]:yj(m)),y=[m].concat(b).reduce(function(ue,be){return ue.concat(is(be)===by?bj(e,{placement:be,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):be)},[]),S=e.rects.reference,E=e.rects.popper,T=new Map,M=!0,O=y[0],A=0;A=0,I=ne?"width":"height",R=fd(e,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),U=ne?j?ho:Sr:j?fo:xr;S[I]>E[I]&&(U=ch(U));var Z=ch(U),Y=[];if(s&&Y.push(R[L]<=0),l&&Y.push(R[U]<=0,R[Z]<=0),Y.every(function(ue){return ue})){O=k,M=!1;break}T.set(k,Y)}if(M)for(var K=p?3:1,fe=function(ue){var be=y.find(function(ye){var W=T.get(ye);if(W)return W.slice(0,ue).every(function(ce){return ce})});if(be)return O=be,"break"},H=K;H>0;H--){var se=fe(H);if(se==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}var Cj={name:"flip",enabled:!0,phase:"main",fn:wj,requiresIfExists:["offset"],data:{_skip:!1}};function xC(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 SC(n){return[xr,ho,fo,Sr].some(function(e){return n[e]>=0})}function xj(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,i=fd(e,{elementContext:"reference"}),l=fd(e,{altBoundary:!0}),a=xC(i,r),c=xC(l,o,s),u=SC(a),d=SC(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 Sj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xj};function Ej(n,e,t){var r=is(n),o=[Sr,xr].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,[Sr,ho].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function _j(n){var e=n.state,t=n.options,r=n.name,o=t.offset,s=o===void 0?[0,0]:o,i=Jp.reduce(function(u,d){return u[d]=Ej(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 Tj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_j};function Oj(n){var e=n.state,t=n.name;e.modifiersData[t]=fO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var hO={name:"popperOffsets",enabled:!0,phase:"read",fn:Oj,data:{}};function Mj(n){return n==="x"?"y":"x"}function Aj(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=fd(e,{boundary:a,rootBoundary:c,padding:d,altBoundary:u}),v=is(e.placement),w=pc(e.placement),b=!w,y=xy(v),S=Mj(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,A=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(s){var j,ne=y==="y"?xr:Sr,I=y==="y"?fo:ho,R=y==="y"?"height":"width",U=E[y],Z=U+m[ne],Y=U-m[I],K=h?-M[R]/2:0,fe=w===uc?T[R]:M[R],H=w===uc?-M[R]:-T[R],se=e.elements.arrow,ue=h&&se?Cy(se):{width:0,height:0},be=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:iO(),ye=be[ne],W=be[I],ce=Lu(0,T[R],ue[R]),re=b?T[R]/2-K-ce-ye-A.mainAxis:fe-ce-ye-A.mainAxis,ve=b?-T[R]/2+K+ce+W+A.mainAxis:H+ce+W+A.mainAxis,ke=e.elements.arrow&&Xd(e.elements.arrow),Se=ke?y==="y"?ke.clientTop||0:ke.clientLeft||0:0,$=(j=k==null?void 0:k[y])!=null?j:0,N=U+re-$-Se,te=U+ve-$,pe=Lu(h?Fh(Z,N):Z,U,h?Wl(Y,te):Y);E[y]=pe,L[y]=pe-U}if(l){var ge,ae=y==="x"?xr:Sr,Ee=y==="x"?fo:ho,D=E[S],V=S==="y"?"height":"width",J=D+m[ae],le=D-m[Ee],Oe=[xr,Sr].indexOf(v)!==-1,oe=(ge=k==null?void 0:k[S])!=null?ge:0,Q=Oe?J:D-T[V]-M[V]-oe+A.altAxis,de=Oe?D+T[V]+M[V]-oe-A.altAxis:le,Ue=h&&Oe?nj(Q,D,de):Lu(h?Q:J,D,h?de:le);E[S]=Ue,L[S]=Ue-D}e.modifiersData[r]=L}}var kj={name:"preventOverflow",enabled:!0,phase:"main",fn:Aj,requiresIfExists:["offset"]};function Pj(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Nj(n){return n===jo(n)||!oo(n)?Sy(n):Pj(n)}function Ij(n){var e=n.getBoundingClientRect(),t=fc(e.width)/n.offsetWidth||1,r=fc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Lj(n,e,t){t===void 0&&(t=!1);var r=oo(e),o=oo(e)&&Ij(e),s=al(e),i=hc(n,o),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&((ds(e)!=="body"||_y(s))&&(l=Nj(e)),oo(e)?(a=hc(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):s&&(a.x=Ey(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Rj(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 $j(n){var e=Rj(n);return Xz.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function Dj(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Vj(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 EC={placement:"bottom",modifiers:[],strategy:"absolute"};function _C(){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=jj(a);Object.assign(i.value,c)},requires:["computeStyles"]},o=B(()=>{const{onFirstUpdate:a,placement:c,strategy:u,modifiers:d}=C(t);return{onFirstUpdate:a,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),s=Ao(),i=z({styles:{popper:{position:C(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return $e(o,a=>{const c=C(s);c&&c.setOptions(a)},{deep:!0}),$e([n,e],([a,c])=>{l(),!(!a||!c)&&(s.value=pO(a,c,C(o)))}),wn(()=>{l()}),{state:B(()=>{var a;return{...((a=C(s))==null?void 0:a.state)||{}}}),styles:B(()=>C(i).styles),attributes:B(()=>C(i).attributes),update:()=>{var a;return(a=C(s))==null?void 0:a.update()},forceUpdate:()=>{var a;return(a=C(s))==null?void 0:a.forceUpdate()},instanceRef:B(()=>C(s))}};function jj(n){const e=Object.keys(n.elements),t=Dh(e.map(o=>[o,n.styles[o]||{}])),r=Dh(e.map(o=>[o,n.attributes[o]]));return{styles:t,attributes:r}}const Oy=n=>{if(!n)return{onClick:un,onMousedown:un,onMouseup:un};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 TC(){let n;const e=(r,o)=>{t(),n=window.setTimeout(r,o)},t=()=>window.clearTimeout(n);return zd(()=>t()),{registerTimeout:e,cancelTimeout:t}}const OC={prefix:Math.floor(Math.random()*1e4),current:0},Hj=Symbol("elIdInjection"),gO=()=>vt()?De(Hj,OC):OC,fs=n=>{const e=gO(),t=vy();return B(()=>C(n)||`${t.value}-id-${e.prefix}-${e.current++}`)};let Pa=[];const MC=n=>{const e=n;e.key===mn.esc&&Pa.forEach(t=>t(e))},Uj=n=>{rt(()=>{Pa.length===0&&document.addEventListener("keydown",MC),xt&&Pa.push(n)}),wn(()=>{Pa=Pa.filter(e=>e!==n),Pa.length===0&&xt&&document.removeEventListener("keydown",MC)})};let AC;const mO=()=>{const n=vy(),e=gO(),t=B(()=>`${n.value}-popper-container-${e.prefix}`),r=B(()=>`#${t.value}`);return{id:t,selector:r}},Wj=n=>{const e=document.createElement("div");return e.id=n,document.body.appendChild(e),e},Gj=()=>{const{id:n,selector:e}=mO();return Fd(()=>{xt&&!AC&&!document.body.querySelector(e.value)&&(AC=Wj(n.value))}),{id:n,selector:e}},qj=tt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Kj=({showAfter:n,hideAfter:e,autoClose:t,open:r,close:o})=>{const{registerTimeout:s}=TC(),{registerTimeout:i,cancelTimeout:l}=TC();return{onOpen:u=>{s(()=>{r(u);const d=C(t);_t(d)&&d>0&&i(()=>{o(u)},d)},C(n))},onClose:u=>{l(),s(()=>{o(u)},C(e))}}},vO=Symbol("elForwardRef"),Yj=n=>{Ut(vO,{setForwardRef:t=>{n.value=t}})},Jj=n=>({mounted(e){n(e)},updated(e){n(e)},unmounted(){n(null)}}),kC={current:0},PC=z(0),bO=2e3,NC=Symbol("elZIndexContextKey"),yO=Symbol("zIndexContextKey"),Zp=n=>{const e=vt()?De(NC,kC):kC,t=n||(vt()?De(yO,void 0):void 0),r=B(()=>{const i=C(t);return _t(i)?i:bO}),o=B(()=>r.value+PC.value),s=()=>(e.current++,PC.value=e.current,o.value);return!xt&&De(NC),{initialZIndex:r,currentZIndex:o,nextZIndex:s}};function Xj(n){const e=z();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 Zj=(n,e,t)=>ah(n.subTree).filter(s=>{var i;return On(s)&&((i=s.type)==null?void 0:i.name)===e&&!!s.component}).map(s=>s.component.uid).map(s=>t[s]).filter(s=>!!s),Qj=(n,e)=>{const t={},r=Ao([]);return{children:r,addChild:i=>{t[i.uid]=i,r.value=Zj(n,e,t)},removeChild:i=>{delete t[i],r.value=r.value.filter(l=>l.uid!==i)}}},Xs=Yp({type:String,values:ya,required:!1}),wO=Symbol("size"),eH=()=>{const n=De(wO,{});return B(()=>C(n.size)||"")};function CO(n,{afterFocus:e,beforeBlur:t,afterBlur:r}={}){const o=vt(),{emit:s}=o,i=Ao(),l=z(!1),a=d=>{l.value||(l.value=!0,s("focus",d),e==null||e())},c=d=>{var f;We(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 $e(i,d=>{d&&d.setAttribute("tabindex","-1")}),vn(i,"click",u),{wrapperRef:i,isFocused:l,handleFocus:a,handleBlur:c}}const tH=["",void 0,null],nH=void 0,rH=tt({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:n=>We(n)?!n():!n}}),oH=(n,e)=>{let t=Zd();t.value||(t=z({}));const r=B(()=>n.emptyValues||t.value.emptyValues||tH),o=B(()=>We(n.valueOnClear)?n.valueOnClear():n.valueOnClear!==void 0?n.valueOnClear:We(t.value.valueOnClear)?t.value.valueOnClear():t.value.valueOnClear!==void 0?t.value.valueOnClear:nH),s=i=>r.value.includes(i);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:s}},sH=tt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Zs=n=>DT(sH,n),xO=Symbol(),Bh=z();function Zd(n,e=void 0){const t=vt()?De(xO,Bh):Bh;return n?B(()=>{var r,o;return(o=(r=t.value)==null?void 0:r[n])!=null?o:e}):t}function Qp(n,e){const t=Zd(),r=Ge(n,B(()=>{var l;return((l=t.value)==null?void 0:l.namespace)||Iu})),o=ys(B(()=>{var l;return(l=t.value)==null?void 0:l.locale})),s=Zp(B(()=>{var l;return((l=t.value)==null?void 0:l.zIndex)||bO})),i=B(()=>{var l;return C(e)||((l=t.value)==null?void 0:l.size)||""});return iH(B(()=>C(t)||{})),{ns:r,locale:o,zIndex:s,size:i}}const iH=(n,e,t=!1)=>{var r;const o=!!vt(),s=o?Zd():void 0,i=(r=void 0)!=null?r:o?Ut:void 0;if(!i)return;const l=B(()=>{const a=C(n);return s!=null&&s.value?lH(s.value,a):a});return i(xO,l),i(QT,B(()=>l.value.locale)),i(eO,B(()=>l.value.namespace)),i(yO,B(()=>l.value.zIndex)),i(wO,{size:B(()=>l.value.size||"")}),(t||!Bh.value)&&(Bh.value=l.value),l},lH=(n,e)=>{const t=[...new Set([...Vh(n),...Vh(e)])],r={};for(const o of t)r[o]=e[o]!==void 0?e[o]:n[o];return r},IC={};var Xe=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t};const aH=tt({size:{type:Be([Number,String])},color:{type:String}}),cH=me({name:"ElIcon",inheritAttrs:!1}),uH=me({...cH,props:aH,setup(n){const e=n,t=Ge("icon"),r=B(()=>{const{size:o,color:s}=e;return!o&&!s?{}:{fontSize:yr(o)?void 0:co(o),"--color":s}});return(o,s)=>(P(),G("i",$r({class:C(t).b(),style:C(r)},o.$attrs),[_e(o.$slots,"default")],16))}});var dH=Xe(uH,[["__file","icon.vue"]]);const dt=Lt(dH),fH=["light","dark"],hH=tt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Vh(qi),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:fH,default:"light"}}),pH={close:n=>n instanceof MouseEvent},gH=me({name:"ElAlert"}),mH=me({...gH,props:hH,emits:pH,setup(n,{emit:e}){const t=n,{Close:r}=my,o=Bo(),s=Ge("alert"),i=z(!0),l=B(()=>qi[t.type]),a=B(()=>[s.e("icon"),{[s.is("big")]:!!t.description||!!o.default}]),c=B(()=>({"with-description":t.description||o.default})),u=d=>{i.value=!1,e("close",d)};return(d,f)=>(P(),we(Tr,{name:C(s).b("fade"),persisted:""},{default:_(()=>[Fe(F("div",{class:X([C(s).b(),C(s).m(d.type),C(s).is("center",d.center),C(s).is(d.effect)]),role:"alert"},[d.showIcon&&C(l)?(P(),we(C(dt),{key:0,class:X(C(a))},{default:_(()=>[(P(),we(Vt(C(l))))]),_:1},8,["class"])):Ce("v-if",!0),F("div",{class:X(C(s).e("content"))},[d.title||d.$slots.title?(P(),G("span",{key:0,class:X([C(s).e("title"),C(c)])},[_e(d.$slots,"title",{},()=>[ee(ie(d.title),1)])],2)):Ce("v-if",!0),d.$slots.default||d.description?(P(),G("p",{key:1,class:X(C(s).e("description"))},[_e(d.$slots,"default",{},()=>[ee(ie(d.description),1)])],2)):Ce("v-if",!0),d.closable?(P(),G(Le,{key:2},[d.closeText?(P(),G("div",{key:0,class:X([C(s).e("close-btn"),C(s).is("customed")]),onClick:u},ie(d.closeText),3)):(P(),we(C(dt),{key:1,class:X(C(s).e("close-btn")),onClick:u},{default:_(()=>[x(C(r))]),_:1},8,["class"]))],64)):Ce("v-if",!0)],2)],2),[[Qe,i.value]])]),_:3},8,["name"]))}});var vH=Xe(mH,[["__file","alert.vue"]]);const SO=Lt(vH),Gc=Symbol("formContextKey"),oa=Symbol("formItemContextKey"),po=(n,e={})=>{const t=z(void 0),r=e.prop?t:rO("size"),o=e.global?t:eH(),s=e.form?{size:void 0}:De(Gc,void 0),i=e.formItem?{size:void 0}:De(oa,void 0);return B(()=>r.value||C(n)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||o.value||"")},qc=n=>{const e=rO("disabled"),t=De(Gc,void 0);return B(()=>e.value||C(n)||(t==null?void 0:t.disabled)||!1)},cl=()=>{const n=De(Gc,void 0),e=De(oa,void 0);return{form:n,formItem:e}},Qd=(n,{formItemContext:e,disableIdGeneration:t,disableIdManagement:r})=>{t||(t=z(!1)),r||(r=z(!1));const o=z();let s;const i=B(()=>{var l;return!!(!(n.label||n.ariaLabel)&&e&&e.inputIds&&((l=e.inputIds)==null?void 0:l.length)<=1)});return rt(()=>{s=$e([Eo(n,"id"),t],([l,a])=>{const c=l??(a?void 0:fs().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})}),vs(()=>{s&&s(),e!=null&&e.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},bH=tt({size:{type:String,values:ya},disabled:Boolean}),yH=tt({...bH,model:Object,rules:{type:Be(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]}}),wH={validate:(n,e,t)=>(Re(n)||ft(n))&&lo(e)&&ft(t)};function CH(){const n=z([]),e=B(()=>{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 kf=(n,e)=>{const t=Lh(e);return t.length>0?n.filter(r=>r.prop&&t.includes(r.prop)):n},xH="ElForm",SH=me({name:xH}),EH=me({...SH,props:yH,emits:wH,setup(n,{expose:e,emit:t}){const r=n,o=[],s=po(),i=Ge("form"),l=B(()=>{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&&kf(o,b).forEach(y=>y.resetField())},f=(b=[])=>{kf(o,b).forEach(y=>y.clearValidate())},h=B(()=>!!r.model),p=b=>{if(o.length===0)return[];const y=kf(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 S={};for(const E of y)try{await E.validate("")}catch(T){S={...S,...T}}return Object.keys(S).length===0?!0:Promise.reject(S)},v=async(b=[],y)=>{const S=!We(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)),S&&Promise.reject(T)}},w=b=>{var y;const S=kf(o,b)[0];S&&((y=S.$el)==null||y.scrollIntoView(r.scrollIntoViewOptions))};return $e(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(b=>void 0)},{deep:!0}),Ut(Gc,Ct({...Gs(r),emit:t,resetFields:d,clearValidate:f,validateField:v,getField:a,addField:c,removeField:u,...CH()})),e({validate:g,validateField:v,resetFields:d,clearValidate:f,scrollToField:w,fields:o}),(b,y)=>(P(),G("form",{class:X(C(l))},[_e(b.$slots,"default")],2))}});var _H=Xe(EH,[["__file","form.vue"]]);function Rl(){return Rl=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 uh(n,e,t){return OH()?uh=Reflect.construct.bind():uh=function(o,s,i){var l=[null];l.push.apply(l,s);var a=Function.bind.apply(o,l),c=new a;return i&&hd(c,i.prototype),c},uh.apply(null,arguments)}function MH(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function yv(n){var e=typeof Map=="function"?new Map:void 0;return yv=function(r){if(r===null||!MH(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 uh(r,arguments,bv(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),hd(o,r)},yv(n)}var AH=/%[sdj%]/g,kH=function(){};function wv(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 Ir(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 PH(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Mn(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||PH(e)&&typeof n=="string"&&!n)}function NH(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 LC(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},hu={integer:function(e){return hu.number(e)&&parseInt(e,10)===e},float:function(e){return hu.number(e)&&!hu.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"&&!hu.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(VC.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(VH())},hex:function(e){return typeof e=="string"&&!!e.match(VC.hex)}},FH=function(e,t,r,o,s){if(e.required&&t===void 0){EO(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?hu[l](t)||o.push(Ir(s.messages.types[l],e.fullField,e.type)):l&&typeof t!==e.type&&o.push(Ir(s.messages.types[l],e.fullField,e.type))},BH=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(Ir(s.messages[d].len,e.fullField,e.len)):l&&!a&&ue.max?o.push(Ir(s.messages[d].max,e.fullField,e.max)):l&&a&&(ue.max)&&o.push(Ir(s.messages[d].range,e.fullField,e.min,e.max))},xa="enum",zH=function(e,t,r,o,s){e[xa]=Array.isArray(e[xa])?e[xa]:[],e[xa].indexOf(t)===-1&&o.push(Ir(s.messages[xa],e.fullField,e[xa].join(", ")))},jH=function(e,t,r,o,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Ir(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(Ir(s.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},kt={required:EO,whitespace:DH,type:FH,range:BH,enum:zH,pattern:jH},HH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Mn(t,"string")&&!e.required)return r();kt.required(e,t,o,i,s,"string"),Mn(t,"string")||(kt.type(e,t,o,i,s),kt.range(e,t,o,i,s),kt.pattern(e,t,o,i,s),e.whitespace===!0&&kt.whitespace(e,t,o,i,s))}r(i)},UH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),t!==void 0&&kt.type(e,t,o,i,s)}r(i)},WH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(t===""&&(t=void 0),Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),t!==void 0&&(kt.type(e,t,o,i,s),kt.range(e,t,o,i,s))}r(i)},GH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),t!==void 0&&kt.type(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(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),Mn(t)||kt.type(e,t,o,i,s)}r(i)},KH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),t!==void 0&&(kt.type(e,t,o,i,s),kt.range(e,t,o,i,s))}r(i)},YH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),t!==void 0&&(kt.type(e,t,o,i,s),kt.range(e,t,o,i,s))}r(i)},JH=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();kt.required(e,t,o,i,s,"array"),t!=null&&(kt.type(e,t,o,i,s),kt.range(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(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),t!==void 0&&kt.type(e,t,o,i,s)}r(i)},ZH="enum",QH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s),t!==void 0&&kt[ZH](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(Mn(t,"string")&&!e.required)return r();kt.required(e,t,o,i,s),Mn(t,"string")||kt.pattern(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(Mn(t,"date")&&!e.required)return r();if(kt.required(e,t,o,i,s),!Mn(t,"date")){var a;t instanceof Date?a=t:a=new Date(t),kt.type(e,a,o,i,s),a&&kt.range(e,a.getTime(),o,i,s)}}r(i)},n7=function(e,t,r,o,s){var i=[],l=Array.isArray(t)?"array":typeof t;kt.required(e,t,o,i,s,l),r(i)},Yg=function(e,t,r,o,s){var i=e.type,l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(Mn(t,i)&&!e.required)return r();kt.required(e,t,o,l,s,i),Mn(t,i)||kt.type(e,t,o,l,s)}r(l)},r7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Mn(t)&&!e.required)return r();kt.required(e,t,o,i,s)}r(i)},$u={string:HH,method:UH,number:WH,boolean:GH,regexp:qH,integer:KH,float:YH,array:JH,object:XH,enum:QH,pattern:e7,date:t7,url:Yg,hex:Yg,email:Yg,required:n7,any:r7};function Cv(){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 xv=Cv(),ef=function(){function n(t){this.rules=null,this._messages=xv,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=DC(Cv(),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 S;m=(S=m).concat.apply(S,y)}else m.push(y)}for(var b=0;b");const o=Ge("form"),s=z(),i=z(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")=>{nt(()=>{e.default&&n.isAutoWidth&&(u==="update"?i.value=l():u==="remove"&&(t==null||t.deregisterLabelWidth(i.value)))})},c=()=>a("update");return rt(()=>{c()}),wn(()=>{a("remove")}),pa(()=>c()),$e(i,(u,d)=>{n.updateAll&&(t==null||t.registerLabelWidth(u,d))}),dr(B(()=>{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),v=t.labelPosition==="left"?"marginRight":"marginLeft";m&&(g[v]=`${m}px`)}return x("div",{ref:s,class:[o.be("item","label-wrap")],style:g},[(u=e.default)==null?void 0:u.call(e)])}else return x(Le,{ref:s},[(d=e.default)==null?void 0:d.call(e)])}}});const l7=["role","aria-labelledby"],a7=me({name:"ElFormItem"}),c7=me({...a7,props:s7,setup(n,{expose:e}){const t=n,r=Bo(),o=De(Gc,void 0),s=De(oa,void 0),i=po(void 0,{formItem:!1}),l=Ge("form-item"),a=fs().value,c=z([]),u=z(""),d=lD(u,100),f=z(""),h=z();let p,g=!1;const m=B(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const W=co(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return W?{width:W}:{}}),v=B(()=>{if((o==null?void 0:o.labelPosition)==="top"||o!=null&&o.inline)return{};if(!t.label&&!t.labelWidth&&O)return{};const W=co(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return!t.label&&!r.label?{marginLeft:W}:{}}),w=B(()=>[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",ne.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}]),b=B(()=>lo(t.inlineMessage)?t.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),y=B(()=>[l.e("error"),{[l.em("error","inline")]:b.value}]),S=B(()=>t.prop?ft(t.prop)?t.prop:t.prop.join("."):""),E=B(()=>!!(t.label||r.label)),T=B(()=>t.for||(c.value.length===1?c.value[0]:void 0)),M=B(()=>!T.value&&E.value),O=!!s,A=B(()=>{const W=o==null?void 0:o.model;if(!(!W||!t.prop))return ih(W,t.prop).value}),k=B(()=>{const{required:W}=t,ce=[];t.rules&&ce.push(...Lh(t.rules));const re=o==null?void 0:o.rules;if(re&&t.prop){const ve=ih(re,t.prop).value;ve&&ce.push(...Lh(ve))}if(W!==void 0){const ve=ce.map((ke,Se)=>[ke,Se]).filter(([ke])=>Object.keys(ke).includes("required"));if(ve.length>0)for(const[ke,Se]of ve)ke.required!==W&&(ce[Se]={...ke,required:W});else ce.push({required:W})}return ce}),L=B(()=>k.value.length>0),j=W=>k.value.filter(re=>!re.trigger||!W?!0:Array.isArray(re.trigger)?re.trigger.includes(W):re.trigger===W).map(({trigger:re,...ve})=>ve),ne=B(()=>k.value.some(W=>W.required)),I=B(()=>{var W;return d.value==="error"&&t.showMessage&&((W=o==null?void 0:o.showMessage)!=null?W:!0)}),R=B(()=>`${t.label||""}${(o==null?void 0:o.labelSuffix)||""}`),U=W=>{u.value=W},Z=W=>{var ce,re;const{errors:ve,fields:ke}=W;U("error"),f.value=ve?(re=(ce=ve==null?void 0:ve[0])==null?void 0:ce.message)!=null?re:`${t.prop} is required`:"",o==null||o.emit("validate",t.prop,!1,f.value)},Y=()=>{U("success"),o==null||o.emit("validate",t.prop,!0,"")},K=async W=>{const ce=S.value;return new ef({[ce]:W}).validate({[ce]:A.value},{firstFields:!0}).then(()=>(Y(),!0)).catch(ve=>(Z(ve),Promise.reject(ve)))},fe=async(W,ce)=>{if(g||!t.prop)return!1;const re=We(ce);if(!L.value)return ce==null||ce(!1),!1;const ve=j(W);return ve.length===0?(ce==null||ce(!0),!0):(U("validating"),K(ve).then(()=>(ce==null||ce(!0),!0)).catch(ke=>{const{fields:Se}=ke;return ce==null||ce(!1,Se),re?!1:Promise.reject(Se)}))},H=()=>{U(""),f.value="",g=!1},se=async()=>{const W=o==null?void 0:o.model;if(!W||!t.prop)return;const ce=ih(W,t.prop);g=!0,ce.value=cd(p),await nt(),H(),g=!1},ue=W=>{c.value.includes(W)||c.value.push(W)},be=W=>{c.value=c.value.filter(ce=>ce!==W)};$e(()=>t.error,W=>{f.value=W||"",U(W?"error":"")},{immediate:!0}),$e(()=>t.validateStatus,W=>U(W||""));const ye=Ct({...Gs(t),$el:h,size:i,validateState:u,labelId:a,inputIds:c,isGroup:M,hasLabel:E,fieldValue:A,addInputId:ue,removeInputId:be,resetField:se,clearValidate:H,validate:fe});return Ut(oa,ye),rt(()=>{t.prop&&(o==null||o.addField(ye),p=cd(A.value))}),wn(()=>{o==null||o.removeField(ye)}),e({size:i,validateMessage:f,validateState:u,validate:fe,clearValidate:H,resetField:se}),(W,ce)=>{var re;return P(),G("div",{ref_key:"formItemRef",ref:h,class:X(C(w)),role:C(M)?"group":void 0,"aria-labelledby":C(M)?C(a):void 0},[x(C(i7),{"is-auto-width":C(m).width==="auto","update-all":((re=C(o))==null?void 0:re.labelWidth)==="auto"},{default:_(()=>[C(E)?(P(),we(Vt(C(T)?"label":"div"),{key:0,id:C(a),for:C(T),class:X(C(l).e("label")),style:bt(C(m))},{default:_(()=>[_e(W.$slots,"label",{label:C(R)},()=>[ee(ie(C(R)),1)])]),_:3},8,["id","for","class","style"])):Ce("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),F("div",{class:X(C(l).e("content")),style:bt(C(v))},[_e(W.$slots,"default"),x(EL,{name:`${C(l).namespace.value}-zoom-in-top`},{default:_(()=>[C(I)?_e(W.$slots,"error",{key:0,error:f.value},()=>[F("div",{class:X(C(y))},ie(f.value),3)]):Ce("v-if",!0)]),_:3},8,["name"])],6)],10,l7)}}});var _O=Xe(c7,[["__file","form-item.vue"]]);const ir=Lt(_H,{FormItem:_O}),lr=Or(_O);let yo;const u7=` + height:0 !important; + visibility:hidden !important; + ${TD()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,d7=["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 f7(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:d7.map(i=>`${i}:${e.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:t}}function BC(n,e=1,t){var r;yo||(yo=document.createElement("textarea"),document.body.appendChild(yo));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:l}=f7(n);yo.setAttribute("style",`${l};${u7}`),yo.value=n.value||n.placeholder||"";let a=yo.scrollHeight;const c={};i==="border-box"?a=a+s:i==="content-box"&&(a=a-o),yo.value="";const u=yo.scrollHeight-o;if(_t(e)){let d=u*e;i==="border-box"&&(d=d+o+s),a=Math.max(d,a),c.minHeight=`${d}px`}if(_t(t)){let d=u*t;i==="border-box"&&(d=d+o+s),a=Math.min(d,a)}return c.height=`${a}px`,(r=yo.parentNode)==null||r.removeChild(yo),yo=void 0,c}const h7=tt({id:{type:String,default:void 0},size:Xs,disabled:Boolean,modelValue:{type:Be([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:Be([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:uo},prefixIcon:{type:uo},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:Be([Object,Array,String]),default:()=>xo({})},autofocus:{type:Boolean,default:!1},...Zs(["ariaLabel"])}),p7={[zt]:n=>ft(n),input:n=>ft(n),change:n=>ft(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},g7=["role"],m7=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],v7=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],b7=me({name:"ElInput",inheritAttrs:!1}),y7=me({...b7,props:h7,emits:p7,setup(n,{expose:e,emit:t}){const r=n,o=o2(),s=Bo(),i=B(()=>{const oe={};return r.containerRole==="combobox"&&(oe["aria-haspopup"]=o["aria-haspopup"],oe["aria-owns"]=o["aria-owns"],oe["aria-expanded"]=o["aria-expanded"]),oe}),l=B(()=>[r.type==="textarea"?m.b():g.b(),g.m(h.value),g.is("disabled",p.value),g.is("exceed",ue.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")]:K.value&&fe.value,[g.b("hidden")]:r.type==="hidden"},o.class]),a=B(()=>[g.e("wrapper"),g.is("focus",A.value)]),c=XT({excludeKeys:B(()=>Object.keys(i.value))}),{form:u,formItem:d}=cl(),{inputId:f}=Qd(r,{formItemContext:d}),h=po(),p=qc(),g=Ge("input"),m=Ge("textarea"),v=Ao(),w=Ao(),b=z(!1),y=z(!1),S=z(!1),E=z(),T=Ao(r.inputStyle),M=B(()=>v.value||w.value),{wrapperRef:O,isFocused:A,handleFocus:k,handleBlur:L}=CO(M,{afterBlur(){var oe;r.validateEvent&&((oe=d==null?void 0:d.validate)==null||oe.call(d,"blur").catch(Q=>void 0))}}),j=B(()=>{var oe;return(oe=u==null?void 0:u.statusIcon)!=null?oe:!1}),ne=B(()=>(d==null?void 0:d.validateState)||""),I=B(()=>ne.value&&KT[ne.value]),R=B(()=>S.value?yz:sz),U=B(()=>[o.style]),Z=B(()=>[r.inputStyle,T.value,{resize:r.resize}]),Y=B(()=>ss(r.modelValue)?"":String(r.modelValue)),K=B(()=>r.clearable&&!p.value&&!r.readonly&&!!Y.value&&(A.value||b.value)),fe=B(()=>r.showPassword&&!p.value&&!r.readonly&&!!Y.value&&(!!Y.value||A.value)),H=B(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),se=B(()=>Y.value.length),ue=B(()=>!!H.value&&se.value>Number(r.maxlength)),be=B(()=>!!s.suffix||!!r.suffixIcon||K.value||r.showPassword||H.value||!!ne.value&&j.value),[ye,W]=Xj(v);dr(w,oe=>{if(ve(),!H.value||r.resize!=="both")return;const Q=oe[0],{width:de}=Q.contentRect;E.value={right:`calc(100% - ${de+15+6}px)`}});const ce=()=>{const{type:oe,autosize:Q}=r;if(!(!xt||oe!=="textarea"||!w.value))if(Q){const de=pt(Q)?Q.minRows:void 0,Ue=pt(Q)?Q.maxRows:void 0,Ke=BC(w.value,de,Ue);T.value={overflowY:"hidden",...Ke},nt(()=>{w.value.offsetHeight,T.value=Ke})}else T.value={minHeight:BC(w.value).minHeight}},ve=(oe=>{let Q=!1;return()=>{var de;if(Q||!r.autosize)return;((de=w.value)==null?void 0:de.offsetParent)===null||(oe(),Q=!0)}})(ce),ke=()=>{const oe=M.value,Q=r.formatter?r.formatter(Y.value):Y.value;!oe||oe.value===Q||(oe.value=Q)},Se=async oe=>{ye();let{value:Q}=oe.target;if(r.formatter&&(Q=r.parser?r.parser(Q):Q),!y.value){if(Q===Y.value){ke();return}t(zt,Q),t("input",Q),await nt(),ke(),W()}},$=oe=>{t("change",oe.target.value)},N=oe=>{t("compositionstart",oe),y.value=!0},te=oe=>{var Q;t("compositionupdate",oe);const de=(Q=oe.target)==null?void 0:Q.value,Ue=de[de.length-1]||"";y.value=!JT(Ue)},pe=oe=>{t("compositionend",oe),y.value&&(y.value=!1,Se(oe))},ge=()=>{S.value=!S.value,ae()},ae=async()=>{var oe;await nt(),(oe=M.value)==null||oe.focus()},Ee=()=>{var oe;return(oe=M.value)==null?void 0:oe.blur()},D=oe=>{b.value=!1,t("mouseleave",oe)},V=oe=>{b.value=!0,t("mouseenter",oe)},J=oe=>{t("keydown",oe)},le=()=>{var oe;(oe=M.value)==null||oe.select()},Oe=()=>{t(zt,""),t("change",""),t("clear"),t("input","")};return $e(()=>r.modelValue,()=>{var oe;nt(()=>ce()),r.validateEvent&&((oe=d==null?void 0:d.validate)==null||oe.call(d,"change").catch(Q=>void 0))}),$e(Y,()=>ke()),$e(()=>r.type,async()=>{await nt(),ke(),ce()}),rt(()=>{!r.formatter&&r.parser,ke(),nt(ce)}),wr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},B(()=>!!r.label)),e({input:v,textarea:w,ref:M,textareaStyle:Z,autosize:Eo(r,"autosize"),focus:ae,blur:Ee,select:le,clear:Oe,resizeTextarea:ce}),(oe,Q)=>(P(),G("div",$r(C(i),{class:[C(l),{[C(g).bm("group","append")]:oe.$slots.append,[C(g).bm("group","prepend")]:oe.$slots.prepend}],style:C(U),role:oe.containerRole,onMouseenter:V,onMouseleave:D}),[Ce(" input "),oe.type!=="textarea"?(P(),G(Le,{key:0},[Ce(" prepend slot "),oe.$slots.prepend?(P(),G("div",{key:0,class:X(C(g).be("group","prepend"))},[_e(oe.$slots,"prepend")],2)):Ce("v-if",!0),F("div",{ref_key:"wrapperRef",ref:O,class:X(C(a))},[Ce(" prefix slot "),oe.$slots.prefix||oe.prefixIcon?(P(),G("span",{key:0,class:X(C(g).e("prefix"))},[F("span",{class:X(C(g).e("prefix-inner"))},[_e(oe.$slots,"prefix"),oe.prefixIcon?(P(),we(C(dt),{key:0,class:X(C(g).e("icon"))},{default:_(()=>[(P(),we(Vt(oe.prefixIcon)))]),_:1},8,["class"])):Ce("v-if",!0)],2)],2)):Ce("v-if",!0),F("input",$r({id:C(f),ref_key:"input",ref:v,class:C(g).e("inner")},C(c),{minlength:oe.minlength,maxlength:oe.maxlength,type:oe.showPassword?S.value?"text":"password":oe.type,disabled:C(p),readonly:oe.readonly,autocomplete:oe.autocomplete,tabindex:oe.tabindex,"aria-label":oe.label||oe.ariaLabel,placeholder:oe.placeholder,style:oe.inputStyle,form:oe.form,autofocus:oe.autofocus,onCompositionstart:N,onCompositionupdate:te,onCompositionend:pe,onInput:Se,onFocus:Q[0]||(Q[0]=(...de)=>C(k)&&C(k)(...de)),onBlur:Q[1]||(Q[1]=(...de)=>C(L)&&C(L)(...de)),onChange:$,onKeydown:J}),null,16,m7),Ce(" suffix slot "),C(be)?(P(),G("span",{key:1,class:X(C(g).e("suffix"))},[F("span",{class:X(C(g).e("suffix-inner"))},[!C(K)||!C(fe)||!C(H)?(P(),G(Le,{key:0},[_e(oe.$slots,"suffix"),oe.suffixIcon?(P(),we(C(dt),{key:0,class:X(C(g).e("icon"))},{default:_(()=>[(P(),we(Vt(oe.suffixIcon)))]),_:1},8,["class"])):Ce("v-if",!0)],64)):Ce("v-if",!0),C(K)?(P(),we(C(dt),{key:1,class:X([C(g).e("icon"),C(g).e("clear")]),onMousedown:Nt(C(un),["prevent"]),onClick:Oe},{default:_(()=>[x(C(fy))]),_:1},8,["class","onMousedown"])):Ce("v-if",!0),C(fe)?(P(),we(C(dt),{key:2,class:X([C(g).e("icon"),C(g).e("password")]),onClick:ge},{default:_(()=>[(P(),we(Vt(C(R))))]),_:1},8,["class"])):Ce("v-if",!0),C(H)?(P(),G("span",{key:3,class:X(C(g).e("count"))},[F("span",{class:X(C(g).e("count-inner"))},ie(C(se))+" / "+ie(oe.maxlength),3)],2)):Ce("v-if",!0),C(ne)&&C(I)&&C(j)?(P(),we(C(dt),{key:4,class:X([C(g).e("icon"),C(g).e("validateIcon"),C(g).is("loading",C(ne)==="validating")])},{default:_(()=>[(P(),we(Vt(C(I))))]),_:1},8,["class"])):Ce("v-if",!0)],2)],2)):Ce("v-if",!0)],2),Ce(" append slot "),oe.$slots.append?(P(),G("div",{key:1,class:X(C(g).be("group","append"))},[_e(oe.$slots,"append")],2)):Ce("v-if",!0)],64)):(P(),G(Le,{key:1},[Ce(" textarea "),F("textarea",$r({id:C(f),ref_key:"textarea",ref:w,class:[C(m).e("inner"),C(g).is("focus",C(A))]},C(c),{minlength:oe.minlength,maxlength:oe.maxlength,tabindex:oe.tabindex,disabled:C(p),readonly:oe.readonly,autocomplete:oe.autocomplete,style:C(Z),"aria-label":oe.label||oe.ariaLabel,placeholder:oe.placeholder,form:oe.form,autofocus:oe.autofocus,onCompositionstart:N,onCompositionupdate:te,onCompositionend:pe,onInput:Se,onFocus:Q[2]||(Q[2]=(...de)=>C(k)&&C(k)(...de)),onBlur:Q[3]||(Q[3]=(...de)=>C(L)&&C(L)(...de)),onChange:$,onKeydown:J}),null,16,v7),C(H)?(P(),G("span",{key:0,style:bt(E.value),class:X(C(g).e("count"))},ie(C(se))+" / "+ie(oe.maxlength),7)):Ce("v-if",!0)],64))],16,g7))}});var w7=Xe(y7,[["__file","input.vue"]]);const Cn=Lt(w7),Sa=4,C7={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"}},x7=({move:n,size:e,bar:t})=>({[t.size]:e,transform:`translate${t.axis}(${n}%)`}),My=Symbol("scrollbarContextKey"),S7=tt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),E7="Thumb",_7=me({__name:"thumb",props:S7,setup(n){const e=n,t=De(My),r=Ge("scrollbar");t||ll(E7,"can not inject scrollbar context");const o=z(),s=z(),i=z({}),l=z(!1);let a=!1,c=!1,u=xt?document.onselectstart:null;const d=B(()=>C7[e.vertical?"vertical":"horizontal"]),f=B(()=>x7({size:e.size,move:e.move,bar:d.value})),h=B(()=>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,A=(M-O)*100*h.value/o.value[d.value.offset];t.wrapElement[d.value.scroll]=A*t.wrapElement[d.value.scrollSize]/100},w=()=>{a=!1,i.value[d.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",w),S(),c&&(l.value=!1)},b=()=>{c=!1,l.value=!!e.size},y=()=>{c=!0,l.value=a};wn(()=>{S(),document.removeEventListener("mouseup",w)});const S=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return vn(Eo(t,"scrollbarElement"),"mousemove",b),vn(Eo(t,"scrollbarElement"),"mouseleave",y),(E,T)=>(P(),we(Tr,{name:C(r).b("fade"),persisted:""},{default:_(()=>[Fe(F("div",{ref_key:"instance",ref:o,class:X([C(r).e("bar"),C(r).is(C(d).key)]),onMousedown:g},[F("div",{ref_key:"thumb",ref:s,class:X(C(r).e("thumb")),style:bt(C(f)),onMousedown:p},null,38)],34),[[Qe,E.always||l.value]])]),_:1},8,["name"]))}});var zC=Xe(_7,[["__file","thumb.vue"]]);const T7=tt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),O7=me({__name:"bar",props:T7,setup(n,{expose:e}){const t=n,r=De(My),o=z(0),s=z(0),i=z(""),l=z(""),a=z(1),c=z(1);return e({handleScroll:f=>{if(f){const h=f.offsetHeight-Sa,p=f.offsetWidth-Sa;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-Sa,p=f.offsetWidth-Sa,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+Sa(P(),G(Le,null,[x(zC,{move:o.value,ratio:c.value,size:i.value,always:f.always},null,8,["move","ratio","size","always"]),x(zC,{move:s.value,ratio:a.value,size:l.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var M7=Xe(O7,[["__file","bar.vue"]]);const A7=tt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Be([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,...Zs(["ariaLabel","ariaOrientation"])}),k7={scroll:({scrollTop:n,scrollLeft:e})=>[n,e].every(_t)},P7="ElScrollbar",N7=me({name:P7}),I7=me({...N7,props:A7,emits:k7,setup(n,{expose:e,emit:t}){const r=n,o=Ge("scrollbar");let s,i;const l=z(),a=z(),c=z(),u=z(),d=B(()=>{const b={};return r.height&&(b.height=co(r.height)),r.maxHeight&&(b.maxHeight=co(r.maxHeight)),[r.wrapStyle,b]}),f=B(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),h=B(()=>[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){pt(b)?a.value.scrollTo(b):_t(b)&&_t(y)&&a.value.scrollTo(b,y)}const m=b=>{_t(b)&&(a.value.scrollTop=b)},v=b=>{_t(b)&&(a.value.scrollLeft=b)},w=()=>{var b;(b=u.value)==null||b.update()};return $e(()=>r.noresize,b=>{b?(s==null||s(),i==null||i()):({stop:s}=dr(c,w),i=vn("resize",w))},{immediate:!0}),$e(()=>[r.maxHeight,r.height],()=>{r.native||nt(()=>{var b;w(),a.value&&((b=u.value)==null||b.handleScroll(a.value))})}),Ut(My,Ct({scrollbarElement:l,wrapElement:a})),rt(()=>{r.native||nt(()=>{w()})}),pa(()=>w()),e({wrapRef:a,update:w,scrollTo:g,setScrollTop:m,setScrollLeft:v,handleScroll:p}),(b,y)=>(P(),G("div",{ref_key:"scrollbarRef",ref:l,class:X(C(o).b())},[F("div",{ref_key:"wrapRef",ref:a,class:X(C(f)),style:bt(C(d)),onScroll:p},[(P(),we(Vt(b.tag),{id:b.id,ref_key:"resizeRef",ref:c,class:X(C(h)),style:bt(b.viewStyle),role:b.role,"aria-label":b.ariaLabel,"aria-orientation":b.ariaOrientation},{default:_(()=>[_e(b.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),b.native?Ce("v-if",!0):(P(),we(M7,{key:0,ref_key:"barRef",ref:u,always:b.always,"min-size":b.minSize},null,8,["always","min-size"]))],2))}});var L7=Xe(I7,[["__file","scrollbar.vue"]]);const eg=Lt(L7),Ay=Symbol("popper"),TO=Symbol("popperContent"),R7=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],OO=tt({role:{type:String,values:R7,default:"tooltip"}}),$7=me({name:"ElPopper",inheritAttrs:!1}),D7=me({...$7,props:OO,setup(n,{expose:e}){const t=n,r=z(),o=z(),s=z(),i=z(),l=B(()=>t.role),a={triggerRef:r,popperInstanceRef:o,contentRef:s,referenceRef:i,role:l};return e(a),Ut(Ay,a),(c,u)=>_e(c.$slots,"default")}});var V7=Xe(D7,[["__file","popper.vue"]]);const MO=tt({arrowOffset:{type:Number,default:5}}),F7=me({name:"ElPopperArrow",inheritAttrs:!1}),B7=me({...F7,props:MO,setup(n,{expose:e}){const t=n,r=Ge("popper"),{arrowOffset:o,arrowRef:s,arrowStyle:i}=De(TO,void 0);return $e(()=>t.arrowOffset,l=>{o.value=l}),wn(()=>{s.value=void 0}),e({arrowRef:s}),(l,a)=>(P(),G("span",{ref_key:"arrowRef",ref:s,class:X(C(r).e("arrow")),style:bt(C(i)),"data-popper-arrow":""},null,6))}});var z7=Xe(B7,[["__file","arrow.vue"]]);const j7="ElOnlyChild",H7=me({name:j7,setup(n,{slots:e,attrs:t}){var r;const o=De(vO),s=Jj((r=o==null?void 0:o.setForwardRef)!=null?r:un);return()=>{var i;const l=(i=e.default)==null?void 0:i.call(e,t);if(!l||l.length>1)return null;const a=AO(l);return a?Fe(zs(a,t),[[s]]):null}}});function AO(n){if(!n)return null;const e=n;for(const t of e){if(pt(t))switch(t.type){case Gn:continue;case ga:case"svg":return jC(t);case Le:return AO(t.children);default:return t}return jC(t)}return null}function jC(n){const e=Ge("only-child");return x("span",{class:e.e("content")},[n])}const kO=tt({virtualRef:{type:Be(Object)},virtualTriggering:Boolean,onMouseenter:{type:Be(Function)},onMouseleave:{type:Be(Function)},onClick:{type:Be(Function)},onKeydown:{type:Be(Function)},onFocus:{type:Be(Function)},onBlur:{type:Be(Function)},onContextmenu:{type:Be(Function)},id:String,open:Boolean}),U7=me({name:"ElPopperTrigger",inheritAttrs:!1}),W7=me({...U7,props:kO,setup(n,{expose:e}){const t=n,{role:r,triggerRef:o}=De(Ay,void 0);Yj(o);const s=B(()=>l.value?t.id:void 0),i=B(()=>{if(r&&r.value==="tooltip")return t.open&&t.id?t.id:void 0}),l=B(()=>{if(r&&r.value!=="tooltip")return r.value}),a=B(()=>l.value?`${t.open}`:void 0);let c;return rt(()=>{$e(()=>t.virtualRef,u=>{u&&(o.value=Ls(u))},{immediate:!0}),$e(o,(u,d)=>{c==null||c(),c=void 0,ao(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=$e([s,i,l,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{ss(f[p])?u.removeAttribute(h):u.setAttribute(h,f[p])})},{immediate:!0})),ao(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>d.removeAttribute(f))},{immediate:!0})}),wn(()=>{c==null||c(),c=void 0}),e({triggerRef:o}),(u,d)=>u.virtualTriggering?Ce("v-if",!0):(P(),we(C(H7),$r({key:0},u.$attrs,{"aria-controls":C(s),"aria-describedby":C(i),"aria-expanded":C(a),"aria-haspopup":C(l)}),{default:_(()=>[_e(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var G7=Xe(W7,[["__file","trigger.vue"]]);const Jg="focus-trap.focus-after-trapped",Xg="focus-trap.focus-after-released",q7="focus-trap.focusout-prevented",HC={cancelable:!0,bubbles:!1},K7={cancelable:!0,bubbles:!1},UC="focusAfterTrapped",WC="focusAfterReleased",PO=Symbol("elFocusTrap"),ky=z(),tg=z(0),Py=z(0);let Nf=0;const NO=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},GC=(n,e)=>{for(const t of n)if(!Y7(t,e))return t},Y7=(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},J7=n=>{const e=NO(n),t=GC(e,n),r=GC(e.reverse(),n);return[t,r]},X7=n=>n instanceof HTMLInputElement&&"select"in n,pi=(n,e)=>{if(n&&n.focus){const t=document.activeElement;n.focus({preventScroll:!0}),Py.value=window.performance.now(),n!==t&&X7(n)&&e&&n.select()}};function qC(n,e){const t=[...n],r=n.indexOf(e);return r!==-1&&t.splice(r,1),t}const Z7=()=>{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)}}},Q7=(n,e=!1)=>{const t=document.activeElement;for(const r of n)if(pi(r,e),document.activeElement!==t)return},KC=Z7(),e9=()=>tg.value>Py.value,If=()=>{ky.value="pointer",tg.value=window.performance.now()},YC=()=>{ky.value="keyboard",tg.value=window.performance.now()},t9=()=>(rt(()=>{Nf===0&&(document.addEventListener("mousedown",If),document.addEventListener("touchstart",If),document.addEventListener("keydown",YC)),Nf++}),wn(()=>{Nf--,Nf<=0&&(document.removeEventListener("mousedown",If),document.removeEventListener("touchstart",If),document.removeEventListener("keydown",YC))}),{focusReason:ky,lastUserFocusTimestamp:tg,lastAutomatedFocusTimestamp:Py}),Lf=n=>new CustomEvent(q7,{...K7,detail:n}),n9=me({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[UC,WC,"focusin","focusout","focusout-prevented","release-requested"],setup(n,{emit:e}){const t=z();let r,o;const{focusReason:s}=t9();Uj(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:S}=n,E=g===mn.tab&&!m&&!v&&!w,T=document.activeElement;if(E&&T){const M=b,[O,A]=J7(M);if(O&&A){if(!y&&T===A){const L=Lf({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||(p.preventDefault(),S&&pi(O,!0))}else if(y&&[O,M].includes(T)){const L=Lf({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||(p.preventDefault(),S&&pi(A,!0))}}else if(T===M){const L=Lf({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||p.preventDefault()}}};Ut(PO,{focusTrapRef:t,onKeydown:l}),$e(()=>n.focusTrapEl,p=>{p&&(t.value=p)},{immediate:!0}),$e([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(UC,p)},c=p=>e(WC,p),u=p=>{const g=C(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:pi(o,!0))},d=p=>{const g=C(t);if(!(i.paused||!g))if(n.trapped){const m=p.relatedTarget;!ss(m)&&!g.contains(m)&&setTimeout(()=>{if(!i.paused&&n.trapped){const v=Lf({focusReason:s.value});e("focusout-prevented",v),v.defaultPrevented||pi(o,!0)}},0)}else{const m=p.target;m&&g.contains(m)||e("focusout",p)}};async function f(){await nt();const p=C(t);if(p){KC.push(i);const g=p.contains(document.activeElement)?r:document.activeElement;if(r=g,!p.contains(g)){const v=new Event(Jg,HC);p.addEventListener(Jg,a),p.dispatchEvent(v),v.defaultPrevented||nt(()=>{let w=n.focusStartEl;ft(w)||(pi(w),document.activeElement!==w&&(w="first")),w==="first"&&Q7(NO(p),!0),(document.activeElement===g||w==="container")&&pi(p)})}}}function h(){const p=C(t);if(p){p.removeEventListener(Jg,a);const g=new CustomEvent(Xg,{...HC,detail:{focusReason:s.value}});p.addEventListener(Xg,c),p.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!e9()||p.contains(document.activeElement))&&pi(r??document.body),p.removeEventListener(Xg,c),KC.remove(i)}}return rt(()=>{n.trapped&&f(),$e(()=>n.trapped,p=>{p?f():h()})}),wn(()=>{n.trapped&&h()}),{onKeydown:l}}});function r9(n,e,t,r,o,s){return _e(n.$slots,"default",{handleKeydown:n.onKeydown})}var ng=Xe(n9,[["render",r9],["__file","focus-trap.vue"]]);const o9=["fixed","absolute"],s9=tt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Be(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Jp,default:"bottom"},popperOptions:{type:Be(Object),default:()=>({})},strategy:{type:String,values:o9,default:"absolute"}}),IO=tt({...s9,id:String,style:{type:Be([String,Array,Object])},className:{type:Be([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:Be([String,Array,Object])},popperStyle:{type:Be([String,Array,Object])},referenceEl:{type:Be(Object)},triggerTargetEl:{type:Be(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Zs(["ariaLabel"])}),i9={mouseenter:n=>n instanceof MouseEvent,mouseleave:n=>n instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},l9=(n,e=[])=>{const{placement:t,strategy:r,popperOptions:o}=n,s={placement:t,strategy:r,...o,modifiers:[...c9(n),...e]};return u9(s,o==null?void 0:o.modifiers),s},a9=n=>{if(xt)return Ls(n)};function c9(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 u9(n,e){e&&(n.modifiers=[...n.modifiers,...e??[]])}const d9=0,f9=n=>{const{popperInstanceRef:e,contentRef:t,triggerRef:r,role:o}=De(Ay,void 0),s=z(),i=z(),l=B(()=>({name:"eventListeners",enabled:!!n.visible})),a=B(()=>{var v;const w=C(s),b=(v=C(i))!=null?v:d9;return{name:"arrow",enabled:!RT(w),options:{element:w,padding:b}}}),c=B(()=>({onFirstUpdate:()=>{p()},...l9(n,[C(a),C(l)])})),u=B(()=>a9(n.referenceEl)||C(r)),{attributes:d,state:f,styles:h,update:p,forceUpdate:g,instanceRef:m}=zj(u,t,c);return $e(m,v=>e.value=v),rt(()=>{$e(()=>{var v;return(v=C(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}},h9=(n,{attributes:e,styles:t,role:r})=>{const{nextZIndex:o}=Zp(),s=Ge("popper"),i=B(()=>C(e).popper),l=z(_t(n.zIndex)?n.zIndex:o()),a=B(()=>[s.b(),s.is("pure",n.pure),s.is(n.effect),n.popperClass]),c=B(()=>[{zIndex:C(l)},C(t).popper,n.popperStyle||{}]),u=B(()=>r.value==="dialog"?"false":void 0),d=B(()=>C(t).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:i,contentClass:a,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=_t(n.zIndex)?n.zIndex:o()}}},p9=(n,e)=>{const t=z(!1),r=z();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")}}},g9=me({name:"ElPopperContent"}),m9=me({...g9,props:IO,emits:i9,setup(n,{expose:e,emit:t}){const r=n,{focusStartRef:o,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:a,onFocusoutPrevented:c,onReleaseRequested:u}=p9(r,t),{attributes:d,arrowRef:f,contentRef:h,styles:p,instanceRef:g,role:m,update:v}=f9(r),{ariaModal:w,arrowStyle:b,contentAttrs:y,contentClass:S,contentStyle:E,updateZIndex:T}=h9(r,{styles:p,attributes:d,role:m}),M=De(oa,void 0),O=z();Ut(TO,{arrowStyle:b,arrowRef:f,arrowOffset:O}),M&&Ut(oa,{...M,addInputId:un,removeInputId:un});let A;const k=(j=!0)=>{v(),j&&T()},L=()=>{k(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return rt(()=>{$e(()=>r.triggerTargetEl,(j,ne)=>{A==null||A(),A=void 0;const I=C(j||h.value),R=C(ne||h.value);ao(I)&&(A=$e([m,()=>r.ariaLabel,w,()=>r.id],U=>{["role","aria-label","aria-modal","id"].forEach((Z,Y)=>{ss(U[Y])?I.removeAttribute(Z):I.setAttribute(Z,U[Y])})},{immediate:!0})),R!==I&&ao(R)&&["role","aria-label","aria-modal","id"].forEach(U=>{R.removeAttribute(U)})},{immediate:!0}),$e(()=>r.visible,L,{immediate:!0})}),wn(()=>{A==null||A(),A=void 0}),e({popperContentRef:h,popperInstanceRef:g,updatePopper:k,contentStyle:E}),(j,ne)=>(P(),G("div",$r({ref_key:"contentRef",ref:h},C(y),{style:C(E),class:C(S),tabindex:"-1",onMouseenter:ne[0]||(ne[0]=I=>j.$emit("mouseenter",I)),onMouseleave:ne[1]||(ne[1]=I=>j.$emit("mouseleave",I))}),[x(C(ng),{trapped:C(s),"trap-on-focus-in":!0,"focus-trap-el":C(h),"focus-start-el":C(o),onFocusAfterTrapped:C(l),onFocusAfterReleased:C(i),onFocusin:C(a),onFocusoutPrevented:C(c),onReleaseRequested:C(u)},{default:_(()=>[_e(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var v9=Xe(m9,[["__file","content.vue"]]);const b9=Lt(V7),Ny=Symbol("elTooltip"),Pr=tt({...qj,...IO,appendTo:{type:Be([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Be(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Zs(["ariaLabel"])}),pd=tt({...kO,disabled:Boolean,trigger:{type:Be([String,Array]),default:"hover"},triggerKeys:{type:Be(Array),default:()=>[mn.enter,mn.space]}}),{useModelToggleProps:y9,useModelToggleEmits:w9,useModelToggle:C9}=nO("visible"),x9=tt({...OO,...y9,...Pr,...pd,...MO,showArrow:{type:Boolean,default:!0}}),S9=[...w9,"before-show","before-hide","show","hide","open","close"],E9=(n,e)=>Re(n)?n.includes(e):n===e,Ea=(n,e,t)=>r=>{E9(C(n),e)&&t(r)},_9=me({name:"ElTooltipTrigger"}),T9=me({..._9,props:pd,setup(n,{expose:e}){const t=n,r=Ge("tooltip"),{controlled:o,id:s,open:i,onOpen:l,onClose:a,onToggle:c}=De(Ny,void 0),u=z(null),d=()=>{if(C(o)||t.disabled)return!0},f=Eo(t,"trigger"),h=ks(d,Ea(f,"hover",l)),p=ks(d,Ea(f,"hover",a)),g=ks(d,Ea(f,"click",y=>{y.button===0&&c(y)})),m=ks(d,Ea(f,"focus",l)),v=ks(d,Ea(f,"focus",a)),w=ks(d,Ea(f,"contextmenu",y=>{y.preventDefault(),c(y)})),b=ks(d,y=>{const{code:S}=y;t.triggerKeys.includes(S)&&(y.preventDefault(),c(y))});return e({triggerRef:u}),(y,S)=>(P(),we(C(G7),{id:C(s),"virtual-ref":y.virtualRef,open:C(i),"virtual-triggering":y.virtualTriggering,class:X(C(r).e("trigger")),onBlur:C(v),onClick:C(g),onContextmenu:C(w),onFocus:C(m),onMouseenter:C(h),onMouseleave:C(p),onKeydown:C(b)},{default:_(()=>[_e(y.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var O9=Xe(T9,[["__file","trigger.vue"]]);const M9=me({name:"ElTooltipContent",inheritAttrs:!1}),A9=me({...M9,props:Pr,setup(n,{expose:e}){const t=n,{selector:r}=mO(),o=Ge("tooltip"),s=z(null),i=z(!1),{controlled:l,id:a,open:c,trigger:u,onClose:d,onOpen:f,onShow:h,onHide:p,onBeforeShow:g,onBeforeHide:m}=De(Ny,void 0),v=B(()=>t.transition||`${o.namespace.value}-fade-in-linear`),w=B(()=>t.persistent);wn(()=>{i.value=!0});const b=B(()=>C(w)?!0:C(c)),y=B(()=>t.disabled?!1:C(c)),S=B(()=>t.appendTo||r.value),E=B(()=>{var U;return(U=t.style)!=null?U:{}}),T=B(()=>!C(c)),M=()=>{p()},O=()=>{if(C(l))return!0},A=ks(O,()=>{t.enterable&&C(u)==="hover"&&f()}),k=ks(O,()=>{C(u)==="hover"&&d()}),L=()=>{var U,Z;(Z=(U=s.value)==null?void 0:U.updatePopper)==null||Z.call(U),g==null||g()},j=()=>{m==null||m()},ne=()=>{h(),R=dD(B(()=>{var U;return(U=s.value)==null?void 0:U.popperContentRef}),()=>{if(C(l))return;C(u)!=="hover"&&d()})},I=()=>{t.virtualTriggering||d()};let R;return $e(()=>C(c),U=>{U||R==null||R()},{flush:"post"}),$e(()=>t.content,()=>{var U,Z;(Z=(U=s.value)==null?void 0:U.updatePopper)==null||Z.call(U)}),e({contentRef:s}),(U,Z)=>(P(),we(Bc,{disabled:!U.teleported,to:C(S)},[x(Tr,{name:C(v),onAfterLeave:M,onBeforeEnter:L,onAfterEnter:ne,onBeforeLeave:j},{default:_(()=>[C(b)?Fe((P(),we(C(v9),$r({key:0,id:C(a),ref_key:"contentRef",ref:s},U.$attrs,{"aria-label":U.ariaLabel,"aria-hidden":C(T),"boundaries-padding":U.boundariesPadding,"fallback-placements":U.fallbackPlacements,"gpu-acceleration":U.gpuAcceleration,offset:U.offset,placement:U.placement,"popper-options":U.popperOptions,strategy:U.strategy,effect:U.effect,enterable:U.enterable,pure:U.pure,"popper-class":U.popperClass,"popper-style":[U.popperStyle,C(E)],"reference-el":U.referenceEl,"trigger-target-el":U.triggerTargetEl,visible:C(y),"z-index":U.zIndex,onMouseenter:C(A),onMouseleave:C(k),onBlur:I,onClose:C(d)}),{default:_(()=>[i.value?Ce("v-if",!0):_e(U.$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"])),[[Qe,C(y)]]):Ce("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var k9=Xe(A9,[["__file","content.vue"]]);const P9=["innerHTML"],N9={key:1},I9=me({name:"ElTooltip"}),L9=me({...I9,props:x9,emits:S9,setup(n,{expose:e,emit:t}){const r=n;Gj();const o=fs(),s=z(),i=z(),l=()=>{var v;const w=C(s);w&&((v=w.popperInstanceRef)==null||v.update())},a=z(!1),c=z(),{show:u,hide:d,hasUpdateHandler:f}=C9({indicator:a,toggleReason:c}),{onOpen:h,onClose:p}=Kj({showAfter:Eo(r,"showAfter"),hideAfter:Eo(r,"hideAfter"),autoClose:Eo(r,"autoClose"),open:u,close:d}),g=B(()=>lo(r.visible)&&!f.value);Ut(Ny,{controlled:g,id:o,open:$d(a),trigger:Eo(r,"trigger"),onOpen:v=>{h(v)},onClose:v=>{p(v)},onToggle:v=>{C(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}),$e(()=>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,S=(v==null?void 0:v.relatedTarget)||document.activeElement;return y&&y.contains(S)};return b2(()=>a.value&&d()),e({popperRef:s,contentRef:i,isFocusInsideContent:m,updatePopper:l,onOpen:h,onClose:p,hide:d}),(v,w)=>(P(),we(C(b9),{ref_key:"popperRef",ref:s,role:v.role},{default:_(()=>[x(O9,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:_(()=>[v.$slots.default?_e(v.$slots,"default",{key:0}):Ce("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),x(k9,{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:_(()=>[_e(v.$slots,"content",{},()=>[v.rawContent?(P(),G("span",{key:0,innerHTML:v.content},null,8,P9)):(P(),G("span",N9,ie(v.content),1))]),v.showArrow?(P(),we(C(z7),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):Ce("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 R9=Xe(L9,[["__file","tooltip.vue"]]);const zr=Lt(R9),$9=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,dotStyle:{type:Be([String,Object,Array])},badgeStyle:{type:Be([String,Object,Array])},offset:{type:Be(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),D9=["textContent"],V9=me({name:"ElBadge"}),F9=me({...V9,props:$9,setup(n,{expose:e}){const t=n,r=Ge("badge"),o=B(()=>t.isDot?"":_t(t.value)&&_t(t.max)?t.max{var i,l,a,c,u,d;return[{backgroundColor:t.color,marginRight:co(-((l=(i=t.offset)==null?void 0:i[0])!=null?l:0)),marginTop:co((c=(a=t.offset)==null?void 0:a[1])!=null?c:0)},(u=t.dotStyle)!=null?u:{},(d=t.badgeStyle)!=null?d:{}]});return wr({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},B(()=>!!t.dotStyle)),wr({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},B(()=>!!t.dotClass)),e({content:o}),(i,l)=>(P(),G("div",{class:X(C(r).b())},[_e(i.$slots,"default"),x(Tr,{name:`${C(r).namespace.value}-zoom-in-center`,persisted:""},{default:_(()=>[Fe(F("sup",{class:X([C(r).e("content"),C(r).em("content",i.type),C(r).is("fixed",!!i.$slots.default),C(r).is("dot",i.isDot),i.dotClass,i.badgeClass]),style:bt(C(s)),textContent:ie(C(o))},null,14,D9),[[Qe,!i.hidden&&(C(o)||i.isDot)]])]),_:1},8,["name"])],2))}});var B9=Xe(F9,[["__file","badge.vue"]]);const z9=Lt(B9),LO=Symbol("buttonGroupContextKey"),j9=(n,e)=>{wr({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},B(()=>n.type==="text"));const t=De(LO,void 0),r=Zd("button"),{form:o}=cl(),s=po(B(()=>t==null?void 0:t.size)),i=qc(),l=z(),a=Bo(),c=B(()=>n.type||(t==null?void 0:t.type)||""),u=B(()=>{var p,g,m;return(m=(g=n.autoInsertSpace)!=null?g:(p=r.value)==null?void 0:p.autoInsertSpace)!=null?m:!1}),d=B(()=>n.tag==="button"?{ariaDisabled:i.value||n.loading,disabled:i.value||n.loading,autofocus:n.autofocus,type:n.nativeType}:{}),f=B(()=>{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)===ga){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)}}},H9=["default","primary","success","warning","info","danger","text",""],U9=["button","submit","reset"],Sv=tt({size:Xs,disabled:Boolean,type:{type:String,values:H9,default:""},icon:{type:uo},nativeType:{type:String,values:U9,default:"button"},loading:Boolean,loadingIcon:{type:uo,default:()=>py},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:Be([String,Object]),default:"button"}}),W9={click:n=>n instanceof MouseEvent};function Jn(n,e){G9(n)&&(n="100%");var t=q9(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 Rf(n){return Math.min(1,Math.max(0,n))}function G9(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function q9(n){return typeof n=="string"&&n.indexOf("%")!==-1}function RO(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function $f(n){return n<=1?"".concat(Number(n)*100,"%"):n}function $l(n){return n.length===1?"0"+n:String(n)}function K9(n,e,t){return{r:Jn(n,255)*255,g:Jn(e,255)*255,b:Jn(t,255)*255}}function JC(n,e,t){n=Jn(n,255),e=Jn(e,255),t=Jn(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 Y9(n,e,t){var r,o,s;if(n=Jn(n,360),e=Jn(e,100),t=Jn(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=Zg(l,i,n+1/3),o=Zg(l,i,n),s=Zg(l,i,n-1/3)}return{r:r*255,g:o*255,b:s*255}}function XC(n,e,t){n=Jn(n,255),e=Jn(e,255),t=Jn(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 Ev={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 eU(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=rU(n)),typeof n=="object"&&(_s(n.r)&&_s(n.g)&&_s(n.b)?(e=K9(n.r,n.g,n.b),i=!0,l=String(n.r).substr(-1)==="%"?"prgb":"rgb"):_s(n.h)&&_s(n.s)&&_s(n.v)?(r=$f(n.s),o=$f(n.v),e=J9(n.h,r,o),i=!0,l="hsv"):_s(n.h)&&_s(n.s)&&_s(n.l)&&(r=$f(n.s),s=$f(n.l),e=Y9(n.h,r,s),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=RO(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 tU="[-\\+]?\\d+%?",nU="[-\\+]?\\d*\\.\\d+%?",Ni="(?:".concat(nU,")|(?:").concat(tU,")"),Qg="[\\s|\\(]+(".concat(Ni,")[,|\\s]+(").concat(Ni,")[,|\\s]+(").concat(Ni,")\\s*\\)?"),em="[\\s|\\(]+(".concat(Ni,")[,|\\s]+(").concat(Ni,")[,|\\s]+(").concat(Ni,")[,|\\s]+(").concat(Ni,")\\s*\\)?"),wo={CSS_UNIT:new RegExp(Ni),rgb:new RegExp("rgb"+Qg),rgba:new RegExp("rgba"+em),hsl:new RegExp("hsl"+Qg),hsla:new RegExp("hsla"+em),hsv:new RegExp("hsv"+Qg),hsva:new RegExp("hsva"+em),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 rU(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var e=!1;if(Ev[n])n=Ev[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=wo.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=wo.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=wo.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=wo.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=wo.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=wo.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=wo.hex8.exec(n),t?{r:Ar(t[1]),g:Ar(t[2]),b:Ar(t[3]),a:QC(t[4]),format:e?"name":"hex8"}:(t=wo.hex6.exec(n),t?{r:Ar(t[1]),g:Ar(t[2]),b:Ar(t[3]),format:e?"name":"hex"}:(t=wo.hex4.exec(n),t?{r:Ar(t[1]+t[1]),g:Ar(t[2]+t[2]),b:Ar(t[3]+t[3]),a:QC(t[4]+t[4]),format:e?"name":"hex8"}:(t=wo.hex3.exec(n),t?{r:Ar(t[1]+t[1]),g:Ar(t[2]+t[2]),b:Ar(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function _s(n){return!!wo.CSS_UNIT.exec(String(n))}var oU=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=Q9(e)),this.originalInput=e;var o=eU(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=RO(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=XC(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=XC(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=JC(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=JC(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),ZC(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),X9(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(Jn(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(Jn(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="#"+ZC(this.r,this.g,this.b,!1),t=0,r=Object.entries(Ev);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=Rf(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=Rf(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=Rf(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=Rf(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={};const o=n.color;if(o){const s=new oU(o),i=n.dark?s.tint(20).toString():di(s,20);if(n.plain)r=t.cssVarBlock({"bg-color":n.dark?di(s,90):s.tint(90).toString(),"text-color":o,"border-color":n.dark?di(s,50):s.tint(50).toString(),"hover-text-color":`var(${t.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":i,"active-text-color":`var(${t.cssVarName("color-white")})`,"active-border-color":i}),e.value&&(r[t.cssVarBlockName("disabled-bg-color")]=n.dark?di(s,90):s.tint(90).toString(),r[t.cssVarBlockName("disabled-text-color")]=n.dark?di(s,50):s.tint(50).toString(),r[t.cssVarBlockName("disabled-border-color")]=n.dark?di(s,80):s.tint(80).toString());else{const l=n.dark?di(s,30):s.tint(30).toString(),a=s.isDark()?`var(${t.cssVarName("color-white")})`:`var(${t.cssVarName("color-black")})`;if(r=t.cssVarBlock({"bg-color":o,"text-color":a,"border-color":o,"hover-bg-color":l,"hover-text-color":a,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),e.value){const c=n.dark?di(s,50):s.tint(50).toString();r[t.cssVarBlockName("disabled-bg-color")]=c,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")]=c}}}return r})}const iU=me({name:"ElButton"}),lU=me({...iU,props:Sv,emits:W9,setup(n,{expose:e,emit:t}){const r=n,o=sU(r),s=Ge("button"),{_ref:i,_size:l,_type:a,_disabled:c,_props:u,shouldAddSpace:d,handleClick:f}=j9(r,t),h=B(()=>[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)=>(P(),we(Vt(p.tag),$r({ref_key:"_ref",ref:i},C(u),{class:C(h),style:C(o),onClick:C(f)}),{default:_(()=>[p.loading?(P(),G(Le,{key:0},[p.$slots.loading?_e(p.$slots,"loading",{key:0}):(P(),we(C(dt),{key:1,class:X(C(s).is("loading"))},{default:_(()=>[(P(),we(Vt(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(P(),we(C(dt),{key:1},{default:_(()=>[p.icon?(P(),we(Vt(p.icon),{key:0})):_e(p.$slots,"icon",{key:1})]),_:3})):Ce("v-if",!0),p.$slots.default?(P(),G("span",{key:2,class:X({[C(s).em("text","expand")]:C(d)})},[_e(p.$slots,"default")],2)):Ce("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var aU=Xe(lU,[["__file","button.vue"]]);const cU={size:Sv.size,type:Sv.type},uU=me({name:"ElButtonGroup"}),dU=me({...uU,props:cU,setup(n){const e=n;Ut(LO,Ct({size:Eo(e,"size"),type:Eo(e,"type")}));const t=Ge("button");return(r,o)=>(P(),G("div",{class:X(`${C(t).b("group")}`)},[_e(r.$slots,"default")],2))}});var $O=Xe(dU,[["__file","button-group.vue"]]);const An=Lt(aU,{ButtonGroup:$O}),Iy=Or($O),gi=new Map;let ex;xt&&(document.addEventListener("mousedown",n=>ex=n),document.addEventListener("mouseup",n=>{for(const e of gi.values())for(const{documentHandler:t}of e)t(n,ex)}));function tx(n,e){let t=[];return Array.isArray(e.arg)?t=e.arg:ao(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 DO={beforeMount(n,e){gi.has(n)||gi.set(n,[]),gi.get(n).push({documentHandler:tx(n,e),bindingFn:e.value})},updated(n,e){gi.has(n)||gi.set(n,[]);const t=gi.get(n),r=t.findIndex(s=>s.bindingFn===e.oldValue),o={documentHandler:tx(n,e),bindingFn:e.value};r>=0?t.splice(r,1,o):t.push(o)},unmounted(n){gi.delete(n)}},fU=100,hU=600,nx={beforeMount(n,e){const t=e.value,{interval:r=fU,delay:o=hU}=We(t)?{}:t;let s,i;const l=()=>We(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))})}},_v="_trap-focus-children",Dl=[],rx=n=>{if(Dl.length===0)return;const e=Dl[Dl.length-1][_v];if(e.length>0&&n.code===mn.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())}},pU={beforeMount(n){n[_v]=xw(n),Dl.push(n),Dl.length<=1&&document.addEventListener("keydown",rx)},updated(n){nt(()=>{n[_v]=xw(n)})},unmounted(){Dl.shift(),Dl.length===0&&document.removeEventListener("keydown",rx)}};var ox=!1,Pl,Tv,Ov,dh,fh,VO,hh,Mv,Av,kv,FO,Pv,Nv,BO,zO;function vr(){if(!ox){ox=!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(Pv=/\b(iPhone|iP[ao]d)/.exec(n),Nv=/\b(iP[ao]d)/.exec(n),kv=/Android/i.exec(n),BO=/FBAN\/\w+;/i.exec(n),zO=/Mobile/i.exec(n),FO=!!/Win64/.exec(n),e){Pl=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Pl&&document&&document.documentMode&&(Pl=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(n);VO=r?parseFloat(r[1])+4:Pl,Tv=e[2]?parseFloat(e[2]):NaN,Ov=e[3]?parseFloat(e[3]):NaN,dh=e[4]?parseFloat(e[4]):NaN,dh?(e=/(?:Chrome\/(\d+\.\d+))/.exec(n),fh=e&&e[1]?parseFloat(e[1]):NaN):fh=NaN}else Pl=Tv=Ov=fh=dh=NaN;if(t){if(t[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(n);hh=o?parseFloat(o[1].replace("_",".")):!0}else hh=!1;Mv=!!t[2],Av=!!t[3]}else hh=Mv=Av=!1}}var Iv={ie:function(){return vr()||Pl},ieCompatibilityMode:function(){return vr()||VO>Pl},ie64:function(){return Iv.ie()&&FO},firefox:function(){return vr()||Tv},opera:function(){return vr()||Ov},webkit:function(){return vr()||dh},safari:function(){return Iv.webkit()},chrome:function(){return vr()||fh},windows:function(){return vr()||Mv},osx:function(){return vr()||hh},linux:function(){return vr()||Av},iphone:function(){return vr()||Pv},mobile:function(){return vr()||Pv||Nv||kv||zO},nativeApp:function(){return vr()||BO},android:function(){return vr()||kv},ipad:function(){return vr()||Nv}},gU=Iv,Df=!!(typeof window<"u"&&window.document&&window.document.createElement),mU={canUseDOM:Df,canUseWorkers:typeof Worker<"u",canUseEventListeners:Df&&!!(window.addEventListener||window.attachEvent),canUseViewport:Df&&!!window.screen,isInWorker:!Df},jO=mU,HO;jO.canUseDOM&&(HO=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function vU(n,e){if(!jO.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&&HO&&n==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var bU=vU,sx=10,ix=40,lx=800;function UO(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*sx,o=t*sx,"deltaY"in n&&(o=n.deltaY),"deltaX"in n&&(r=n.deltaX),(r||o)&&n.deltaMode&&(n.deltaMode==1?(r*=ix,o*=ix):(r*=lx,o*=lx)),r&&!e&&(e=r<1?-1:1),o&&!t&&(t=o<1?-1:1),{spinX:e,spinY:t,pixelX:r,pixelY:o}}UO.getEventType=function(){return gU.firefox()?"DOMMouseScroll":bU("wheel")?"wheel":"mousewheel"};var yU=UO;/** +* 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 wU=function(n,e){if(n&&n.addEventListener){const t=function(r){const o=yU(r);e&&Reflect.apply(e,this,[r,o])};n.addEventListener("wheel",t,{passive:!0})}},CU={beforeMount(n,e){wU(n,e.value)}},WO={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:Xs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Zs(["ariaControls"])},GO={[zt]:n=>ft(n)||_t(n)||lo(n),change:n=>ft(n)||_t(n)||lo(n)},Kc=Symbol("checkboxGroupContextKey"),xU=({model:n,isChecked:e})=>{const t=De(Kc,void 0),r=B(()=>{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!yr(l)&&n.value.length>=l&&!e.value||!yr(a)&&n.value.length<=a&&e.value});return{isDisabled:qc(B(()=>(t==null?void 0:t.disabled.value)||r.value)),isLimitDisabled:r}},SU=(n,{model:e,isLimitExceeded:t,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:s})=>{const i=De(Kc,void 0),{formItem:l}=cl(),{emit:a}=vt();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 nt(),u(e.value,p)))}const h=B(()=>(i==null?void 0:i.validateEvent)||n.validateEvent);return $e(()=>n.modelValue,()=>{h.value&&(l==null||l.validate("change").catch(p=>void 0))}),{handleChange:d,onClickRoot:f}},EU=n=>{const e=z(!1),{emit:t}=vt(),r=De(Kc,void 0),o=B(()=>yr(r)===!1),s=z(!1),i=B({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&&Re(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(zt,l),e.value=l)}});return{model:i,isGroup:o,isLimitExceeded:s}},_U=(n,e,{model:t})=>{const r=De(Kc,void 0),o=z(!1),s=B(()=>ud(n.value)?n.label:n.value),i=B(()=>{const u=t.value;return lo(u)?u:Re(u)?pt(s.value)?u.map(At).some(d=>Cr(d,s.value)):u.map(At).includes(s.value):u!=null?u===n.trueValue||u===n.trueLabel:!!u}),l=po(B(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),a=po(B(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=B(()=>!!e.default||!ud(s.value));return{checkboxButtonSize:l,isChecked:i,isFocused:o,checkboxSize:a,hasOwnLabel:c,actualValue:s}},qO=(n,e)=>{const{formItem:t}=cl(),{model:r,isGroup:o,isLimitExceeded:s}=EU(n),{isFocused:i,isChecked:l,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,actualValue:d}=_U(n,e,{model:r}),{isDisabled:f}=xU({model:r,isChecked:l}),{inputId:h,isLabeledByFormItem:p}=Qd(n,{formItemContext:t,disableIdGeneration:u,disableIdManagement:o}),{handleChange:g,onClickRoot:m}=SU(n,{model:r,isLimitExceeded:s,hasOwnLabel:u,isDisabled:f,isLabeledByFormItem:p});return(()=>{function w(){var b,y;Re(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()})(),wr({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},B(()=>!!n.controls)),wr({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},B(()=>o.value&&ud(n.value))),wr({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},B(()=>!!n.trueLabel)),wr({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},B(()=>!!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}},TU=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],OU=["id","indeterminate","disabled","value","name","tabindex"],MU=me({name:"ElCheckbox"}),AU=me({...MU,props:WO,emits:GO,setup(n){const e=n,t=Bo(),{inputId:r,isLabeledByFormItem:o,isChecked:s,isDisabled:i,isFocused:l,checkboxSize:a,hasOwnLabel:c,model:u,actualValue:d,handleChange:f,onClickRoot:h}=qO(e,t),p=Ge("checkbox"),g=B(()=>[p.b(),p.m(a.value),p.is("disabled",i.value),p.is("bordered",e.border),p.is("checked",s.value)]),m=B(()=>[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)=>(P(),we(Vt(!C(c)&&C(o)?"span":"label"),{class:X(C(g)),"aria-controls":v.indeterminate?v.controls||v.ariaControls:null,onClick:C(h)},{default:_(()=>{var b,y;return[F("span",{class:X(C(m))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?Fe((P(),G("input",{key:0,id:C(r),"onUpdate:modelValue":w[0]||(w[0]=S=>Wt(u)?u.value=S:null),class:X(C(p).e("original")),type:"checkbox",indeterminate:v.indeterminate,name:v.name,tabindex:v.tabindex,disabled:C(i),"true-value":(b=v.trueValue)!=null?b:v.trueLabel,"false-value":(y=v.falseValue)!=null?y:v.falseLabel,onChange:w[1]||(w[1]=(...S)=>C(f)&&C(f)(...S)),onFocus:w[2]||(w[2]=S=>l.value=!0),onBlur:w[3]||(w[3]=S=>l.value=!1),onClick:w[4]||(w[4]=Nt(()=>{},["stop"]))},null,42,TU)),[[Ui,C(u)]]):Fe((P(),G("input",{key:1,id:C(r),"onUpdate:modelValue":w[5]||(w[5]=S=>Wt(u)?u.value=S:null),class:X(C(p).e("original")),type:"checkbox",indeterminate:v.indeterminate,disabled:C(i),value:C(d),name:v.name,tabindex:v.tabindex,onChange:w[6]||(w[6]=(...S)=>C(f)&&C(f)(...S)),onFocus:w[7]||(w[7]=S=>l.value=!0),onBlur:w[8]||(w[8]=S=>l.value=!1),onClick:w[9]||(w[9]=Nt(()=>{},["stop"]))},null,42,OU)),[[Ui,C(u)]]),F("span",{class:X(C(p).e("inner"))},null,2)],2),C(c)?(P(),G("span",{key:0,class:X(C(p).e("label"))},[_e(v.$slots,"default"),v.$slots.default?Ce("v-if",!0):(P(),G(Le,{key:0},[ee(ie(v.label),1)],64))],2)):Ce("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var kU=Xe(AU,[["__file","checkbox.vue"]]);const PU=["name","tabindex","disabled","true-value","false-value"],NU=["name","tabindex","disabled","value"],IU=me({name:"ElCheckboxButton"}),LU=me({...IU,props:WO,emits:GO,setup(n){const e=n,t=Bo(),{isFocused:r,isChecked:o,isDisabled:s,checkboxButtonSize:i,model:l,actualValue:a,handleChange:c}=qO(e,t),u=De(Kc,void 0),d=Ge("checkbox"),f=B(()=>{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=B(()=>[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 P(),G("label",{class:X(C(h))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?Fe((P(),G("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=w=>Wt(l)?l.value=w:null),class:X(C(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:C(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)=>C(c)&&C(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]=Nt(()=>{},["stop"]))},null,42,PU)),[[Ui,C(l)]]):Fe((P(),G("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=w=>Wt(l)?l.value=w:null),class:X(C(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:C(s),value:C(a),onChange:g[6]||(g[6]=(...w)=>C(c)&&C(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]=Nt(()=>{},["stop"]))},null,42,NU)),[[Ui,C(l)]]),p.$slots.default||p.label?(P(),G("span",{key:2,class:X(C(d).be("button","inner")),style:bt(C(o)?C(f):void 0)},[_e(p.$slots,"default",{},()=>[ee(ie(p.label),1)])],6)):Ce("v-if",!0)],2)}}});var KO=Xe(LU,[["__file","checkbox-button.vue"]]);const RU=tt({modelValue:{type:Be(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Xs,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Zs(["ariaLabel"])}),$U={[zt]:n=>Re(n),change:n=>Re(n)},DU=me({name:"ElCheckboxGroup"}),VU=me({...DU,props:RU,emits:$U,setup(n,{emit:e}){const t=n,r=Ge("checkbox"),{formItem:o}=cl(),{inputId:s,isLabeledByFormItem:i}=Qd(t,{formItemContext:o}),l=async c=>{e(zt,c),await nt(),e("change",c)},a=B({get(){return t.modelValue},set(c){l(c)}});return Ut(Kc,{...DT(Gs(t),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:a,changeEvent:l}),wr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},B(()=>!!t.label)),$e(()=>t.modelValue,()=>{t.validateEvent&&(o==null||o.validate("change").catch(c=>void 0))}),(c,u)=>{var d;return P(),we(Vt(c.tag),{id:C(s),class:X(C(r).b("group")),role:"group","aria-label":C(i)?void 0:c.label||c.ariaLabel||"checkbox-group","aria-labelledby":C(i)?(d=C(o))==null?void 0:d.labelId:void 0},{default:_(()=>[_e(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var YO=Xe(VU,[["__file","checkbox-group.vue"]]);const sa=Lt(kU,{CheckboxButton:KO,CheckboxGroup:YO});Or(KO);Or(YO);const JO=tt({modelValue:{type:[String,Number,Boolean],default:void 0},size:Xs,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),FU=tt({...JO,border:Boolean}),XO={[zt]:n=>ft(n)||_t(n)||lo(n),[Yd]:n=>ft(n)||_t(n)||lo(n)},ZO=Symbol("radioGroupKey"),QO=(n,e)=>{const t=z(),r=De(ZO,void 0),o=B(()=>!!r),s=B(()=>ud(n.value)?n.label:n.value),i=B({get(){return o.value?r.modelValue:n.modelValue},set(d){o.value?r.changeEvent(d):e&&e(zt,d),t.value.checked=n.modelValue===s.value}}),l=po(B(()=>r==null?void 0:r.size)),a=qc(B(()=>r==null?void 0:r.disabled)),c=z(!1),u=B(()=>a.value||o.value&&i.value!==s.value?-1:0);return wr({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},B(()=>o.value&&ud(n.value))),{radioRef:t,isGroup:o,radioGroup:r,focus:c,size:l,disabled:a,tabIndex:u,modelValue:i,actualValue:s}},BU=["value","name","disabled"],zU=me({name:"ElRadio"}),jU=me({...zU,props:FU,emits:XO,setup(n,{emit:e}){const t=n,r=Ge("radio"),{radioRef:o,radioGroup:s,focus:i,size:l,disabled:a,modelValue:c,actualValue:u}=QO(t,e);function d(){nt(()=>e("change",c.value))}return(f,h)=>{var p;return P(),G("label",{class:X([C(r).b(),C(r).is("disabled",C(a)),C(r).is("focus",C(i)),C(r).is("bordered",f.border),C(r).is("checked",C(c)===C(u)),C(r).m(C(l))])},[F("span",{class:X([C(r).e("input"),C(r).is("disabled",C(a)),C(r).is("checked",C(c)===C(u))])},[Fe(F("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h[0]||(h[0]=g=>Wt(c)?c.value=g:null),class:X(C(r).e("original")),value:C(u),name:f.name||((p=C(s))==null?void 0:p.name),disabled:C(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]=Nt(()=>{},["stop"]))},null,42,BU),[[V2,C(c)]]),F("span",{class:X(C(r).e("inner"))},null,2)],2),F("span",{class:X(C(r).e("label")),onKeydown:h[4]||(h[4]=Nt(()=>{},["stop"]))},[_e(f.$slots,"default",{},()=>[ee(ie(f.label),1)])],34)],2)}}});var HU=Xe(jU,[["__file","radio.vue"]]);const UU=tt({...JO}),WU=["value","name","disabled"],GU=me({name:"ElRadioButton"}),qU=me({...GU,props:UU,setup(n){const e=n,t=Ge("radio"),{radioRef:r,focus:o,size:s,disabled:i,modelValue:l,radioGroup:a,actualValue:c}=QO(e),u=B(()=>({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 P(),G("label",{class:X([C(t).b("button"),C(t).is("active",C(l)===C(c)),C(t).is("disabled",C(i)),C(t).is("focus",C(o)),C(t).bm("button",C(s))])},[Fe(F("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=p=>Wt(l)?l.value=p:null),class:X(C(t).be("button","original-radio")),value:C(c),type:"radio",name:d.name||((h=C(a))==null?void 0:h.name),disabled:C(i),onFocus:f[1]||(f[1]=p=>o.value=!0),onBlur:f[2]||(f[2]=p=>o.value=!1),onClick:f[3]||(f[3]=Nt(()=>{},["stop"]))},null,42,WU),[[V2,C(l)]]),F("span",{class:X(C(t).be("button","inner")),style:bt(C(l)===C(c)?C(u):{}),onKeydown:f[4]||(f[4]=Nt(()=>{},["stop"]))},[_e(d.$slots,"default",{},()=>[ee(ie(d.label),1)])],38)],2)}}});var eM=Xe(qU,[["__file","radio-button.vue"]]);const KU=tt({id:{type:String,default:void 0},size:Xs,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},...Zs(["ariaLabel"])}),YU=XO,JU=["id","aria-label","aria-labelledby"],XU=me({name:"ElRadioGroup"}),ZU=me({...XU,props:KU,emits:YU,setup(n,{emit:e}){const t=n,r=Ge("radio"),o=fs(),s=z(),{formItem:i}=cl(),{inputId:l,isLabeledByFormItem:a}=Qd(t,{formItemContext:i}),c=d=>{e(zt,d),nt(()=>e("change",d))};rt(()=>{const d=s.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(h=>h.checked)&&f&&(f.tabIndex=0)});const u=B(()=>t.name||o.value);return Ut(ZO,Ct({...Gs(t),changeEvent:c,name:u})),$e(()=>t.modelValue,()=>{t.validateEvent&&(i==null||i.validate("change").catch(d=>void 0))}),wr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},B(()=>!!t.label)),(d,f)=>(P(),G("div",{id:C(l),ref_key:"radioGroupRef",ref:s,class:X(C(r).b("group")),role:"radiogroup","aria-label":C(a)?void 0:d.label||d.ariaLabel||"radio-group","aria-labelledby":C(a)?C(i).labelId:void 0},[_e(d.$slots,"default")],10,JU))}});var tM=Xe(ZU,[["__file","radio-group.vue"]]);const nM=Lt(HU,{RadioButton:eM,RadioGroup:tM}),Ly=Or(tM),QU=Or(eM),rM=tt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:ya},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),eW={close:n=>n instanceof MouseEvent,click:n=>n instanceof MouseEvent},tW=me({name:"ElTag"}),nW=me({...tW,props:rM,emits:eW,setup(n,{emit:e}){const t=n,r=po(),o=Ge("tag"),s=B(()=>{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?(P(),G("span",{key:0,class:X(C(s)),style:bt({backgroundColor:a.color}),onClick:l},[F("span",{class:X(C(o).e("content"))},[_e(a.$slots,"default")],2),a.closable?(P(),we(C(dt),{key:0,class:X(C(o).e("close")),onClick:Nt(i,["stop"])},{default:_(()=>[x(C(ra))]),_:1},8,["class","onClick"])):Ce("v-if",!0)],6)):(P(),we(Tr,{key:1,name:`${C(o).namespace.value}-zoom-in-center`,appear:""},{default:_(()=>[F("span",{class:X(C(s)),style:bt({backgroundColor:a.color}),onClick:l},[F("span",{class:X(C(o).e("content"))},[_e(a.$slots,"default")],2),a.closable?(P(),we(C(dt),{key:0,class:X(C(o).e("close")),onClick:Nt(i,["stop"])},{default:_(()=>[x(C(ra))]),_:1},8,["class","onClick"])):Ce("v-if",!0)],6)]),_:3},8,["name"]))}});var rW=Xe(nW,[["__file","tag.vue"]]);const oM=Lt(rW),sM=Symbol("rowContextKey"),oW=["start","center","end","space-around","space-between","space-evenly"],sW=["top","middle","bottom"],iW=tt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:oW,default:"start"},align:{type:String,values:sW}}),lW=me({name:"ElRow"}),aW=me({...lW,props:iW,setup(n){const e=n,t=Ge("row"),r=B(()=>e.gutter);Ut(sM,{gutter:r});const o=B(()=>{const i={};return e.gutter&&(i.marginRight=i.marginLeft=`-${e.gutter/2}px`),i}),s=B(()=>[t.b(),t.is(`justify-${e.justify}`,e.justify!=="start"),t.is(`align-${e.align}`,!!e.align)]);return(i,l)=>(P(),we(Vt(i.tag),{class:X(C(s)),style:bt(C(o))},{default:_(()=>[_e(i.$slots,"default")]),_:3},8,["class","style"]))}});var cW=Xe(aW,[["__file","row.vue"]]);const rg=Lt(cW),uW=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:Be([Number,Object]),default:()=>xo({})},sm:{type:Be([Number,Object]),default:()=>xo({})},md:{type:Be([Number,Object]),default:()=>xo({})},lg:{type:Be([Number,Object]),default:()=>xo({})},xl:{type:Be([Number,Object]),default:()=>xo({})}}),dW=me({name:"ElCol"}),fW=me({...dW,props:uW,setup(n){const e=n,{gutter:t}=De(sM,{gutter:B(()=>0)}),r=Ge("col"),o=B(()=>{const i={};return t.value&&(i.paddingLeft=i.paddingRight=`${t.value/2}px`),i}),s=B(()=>{const i=[];return["span","offset","pull","push"].forEach(c=>{const u=e[c];_t(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=>{_t(e[c])?i.push(r.b(`${c}-${e[c]}`)):pt(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)=>(P(),we(Vt(i.tag),{class:X(C(s)),style:bt(C(o))},{default:_(()=>[_e(i.$slots,"default")]),_:3},8,["class","style"]))}});var hW=Xe(fW,[["__file","col.vue"]]);const og=Lt(hW),pW=me({name:"ElContainer"}),gW=me({...pW,props:{direction:{type:String}},setup(n){const e=n,t=Bo(),r=Ge("container"),o=B(()=>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)=>(P(),G("section",{class:X([C(r).b(),C(r).is("vertical",C(o))])},[_e(s.$slots,"default")],2))}});var mW=Xe(gW,[["__file","container.vue"]]);const vW=me({name:"ElAside"}),bW=me({...vW,props:{width:{type:String,default:null}},setup(n){const e=n,t=Ge("aside"),r=B(()=>e.width?t.cssVarBlock({width:e.width}):{});return(o,s)=>(P(),G("aside",{class:X(C(t).b()),style:bt(C(r))},[_e(o.$slots,"default")],6))}});var iM=Xe(bW,[["__file","aside.vue"]]);const yW=me({name:"ElFooter"}),wW=me({...yW,props:{height:{type:String,default:null}},setup(n){const e=n,t=Ge("footer"),r=B(()=>e.height?t.cssVarBlock({height:e.height}):{});return(o,s)=>(P(),G("footer",{class:X(C(t).b()),style:bt(C(r))},[_e(o.$slots,"default")],6))}});var lM=Xe(wW,[["__file","footer.vue"]]);const CW=me({name:"ElHeader"}),xW=me({...CW,props:{height:{type:String,default:null}},setup(n){const e=n,t=Ge("header"),r=B(()=>e.height?t.cssVarBlock({height:e.height}):{});return(o,s)=>(P(),G("header",{class:X(C(t).b()),style:bt(C(r))},[_e(o.$slots,"default")],6))}});var aM=Xe(xW,[["__file","header.vue"]]);const SW=me({name:"ElMain"}),EW=me({...SW,setup(n){const e=Ge("main");return(t,r)=>(P(),G("main",{class:X(C(e).b())},[_e(t.$slots,"default")],2))}});var cM=Xe(EW,[["__file","main.vue"]]);const _W=Lt(mW,{Aside:iM,Footer:lM,Header:aM,Main:cM}),TW=Or(iM);Or(lM);const OW=Or(aM),MW=Or(cM),AW=tt({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Be([String,Array,Object])},zIndex:{type:Be([String,Number])}}),kW={click:n=>n instanceof MouseEvent},PW="overlay";var NW=me({name:"ElOverlay",props:AW,emits:kW,setup(n,{slots:e,emit:t}){const r=Ge(PW),o=a=>{t("click",a)},{onClick:s,onMousedown:i,onMouseup:l}=Oy(n.customMaskEvent?void 0:o);return()=>n.mask?x("div",{class:[r.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:s,onMousedown:i,onMouseup:l},[_e(e,"default")],qr.STYLE|qr.CLASS|qr.PROPS,["onClick","onMouseup","onMousedown"]):Ye("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[_e(e,"default")])}});const Ry=NW,uM=Symbol("dialogInjectionKey"),dM=tt({center:Boolean,alignCenter:Boolean,closeIcon:{type:uo},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),IW={close:()=>!0},LW=["aria-level"],RW=["aria-label"],$W=["id"],DW=me({name:"ElDialogContent"}),VW=me({...DW,props:dM,emits:IW,setup(n){const e=n,{t}=ys(),{Close:r}=qT,{dialogRef:o,headerRef:s,bodyId:i,ns:l,style:a}=De(uM),{focusTrapRef:c}=De(PO),u=B(()=>[l.b(),l.is("fullscreen",e.fullscreen),l.is("draggable",e.draggable),l.is("align-center",e.alignCenter),{[l.m("center")]:e.center}]),d=Oz(c,o),f=B(()=>e.draggable),h=B(()=>e.overflow);return ZT(o,s,f,h),(p,g)=>(P(),G("div",{ref:C(d),class:X(C(u)),style:bt(C(a)),tabindex:"-1"},[F("header",{ref_key:"headerRef",ref:s,class:X([C(l).e("header"),{"show-close":p.showClose}])},[_e(p.$slots,"header",{},()=>[F("span",{role:"heading","aria-level":p.ariaLevel,class:X(C(l).e("title"))},ie(p.title),11,LW)]),p.showClose?(P(),G("button",{key:0,"aria-label":C(t)("el.dialog.close"),class:X(C(l).e("headerbtn")),type:"button",onClick:g[0]||(g[0]=m=>p.$emit("close"))},[x(C(dt),{class:X(C(l).e("close"))},{default:_(()=>[(P(),we(Vt(p.closeIcon||C(r))))]),_:1},8,["class"])],10,RW)):Ce("v-if",!0)],2),F("div",{id:C(i),class:X(C(l).e("body"))},[_e(p.$slots,"default")],10,$W),p.$slots.footer?(P(),G("footer",{key:0,class:X(C(l).e("footer"))},[_e(p.$slots,"footer")],2)):Ce("v-if",!0)],6))}});var FW=Xe(VW,[["__file","dialog-content.vue"]]);const fM=tt({...dM,appendToBody:Boolean,appendTo:{type:Be(String),default:"body"},beforeClose:{type:Be(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"}}),hM={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[zt]:n=>lo(n),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},pM=(n,e)=>{var t;const o=vt().emit,{nextZIndex:s}=Zp();let i="";const l=fs(),a=fs(),c=z(!1),u=z(!1),d=z(!1),f=z((t=n.zIndex)!=null?t:s());let h,p;const g=Zd("namespace",Iu),m=B(()=>{const I={},R=`--${g.value}-dialog`;return n.fullscreen||(n.top&&(I[`${R}-margin-top`]=n.top),n.width&&(I[`${R}-width`]=co(n.width))),I}),v=B(()=>n.alignCenter?{display:"flex"}:{});function w(){o("opened")}function b(){o("closed"),o(zt,!1),n.destroyOnClose&&(d.value=!1)}function y(){o("close")}function S(){p==null||p(),h==null||h(),n.openDelay&&n.openDelay>0?{stop:h}=kh(()=>O(),n.openDelay):O()}function E(){h==null||h(),p==null||p(),n.closeDelay&&n.closeDelay>0?{stop:p}=kh(()=>A(),n.closeDelay):A()}function T(){function I(R){R||(u.value=!0,c.value=!1)}n.beforeClose?n.beforeClose(I):E()}function M(){n.closeOnClickModal&&T()}function O(){xt&&(c.value=!0)}function A(){c.value=!1}function k(){o("openAutoFocus")}function L(){o("closeAutoFocus")}function j(I){var R;((R=I.detail)==null?void 0:R.focusReason)==="pointer"&&I.preventDefault()}n.lockScroll&&tO(c);function ne(){n.closeOnPressEscape&&T()}return $e(()=>n.modelValue,I=>{I?(u.value=!1,S(),d.value=!0,f.value=RT(n.zIndex)?s():f.value++,nt(()=>{o("open"),e.value&&(e.value.scrollTop=0)})):c.value&&E()}),$e(()=>n.fullscreen,I=>{e.value&&(I?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),rt(()=>{n.modelValue&&(c.value=!0,d.value=!0,S())}),{afterEnter:w,afterLeave:b,beforeLeave:y,handleClose:T,onModalClick:M,close:E,doClose:A,onOpenAutoFocus:k,onCloseAutoFocus:L,onCloseRequested:ne,onFocusoutPrevented:j,titleId:l,bodyId:a,closed:u,style:m,overlayDialogStyle:v,rendered:d,visible:c,zIndex:f}},BW=["aria-label","aria-labelledby","aria-describedby"],zW=me({name:"ElDialog",inheritAttrs:!1}),jW=me({...zW,props:fM,emits:hM,setup(n,{expose:e}){const t=n,r=Bo();wr({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"},B(()=>!!r.title));const o=Ge("dialog"),s=z(),i=z(),l=z(),{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:S,onCloseRequested:E,onFocusoutPrevented:T}=pM(t,s);Ut(uM,{dialogRef:s,headerRef:i,bodyId:u,ns:o,rendered:h,style:d});const M=Oy(b),O=B(()=>t.draggable&&!t.fullscreen);return e({visible:a,dialogContentRef:l}),(A,k)=>(P(),we(Bc,{to:A.appendTo,disabled:A.appendTo!=="body"?!1:!A.appendToBody},[x(Tr,{name:"dialog-fade",onAfterEnter:C(g),onAfterLeave:C(m),onBeforeLeave:C(v),persisted:""},{default:_(()=>[Fe(x(C(Ry),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":C(p)},{default:_(()=>[F("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:C(c),"aria-describedby":C(u),class:X(`${C(o).namespace.value}-overlay-dialog`),style:bt(C(f)),onClick:k[0]||(k[0]=(...L)=>C(M).onClick&&C(M).onClick(...L)),onMousedown:k[1]||(k[1]=(...L)=>C(M).onMousedown&&C(M).onMousedown(...L)),onMouseup:k[2]||(k[2]=(...L)=>C(M).onMouseup&&C(M).onMouseup(...L))},[x(C(ng),{loop:"",trapped:C(a),"focus-start-el":"container",onFocusAfterTrapped:C(y),onFocusAfterReleased:C(S),onFocusoutPrevented:C(T),onReleaseRequested:C(E)},{default:_(()=>[C(h)?(P(),we(FW,$r({key:0,ref_key:"dialogContentRef",ref:l},A.$attrs,{center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:C(O),overflow:A.overflow,fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,"aria-level":A.headerAriaLevel,onClose:C(w)}),gI({header:_(()=>[A.$slots.title?_e(A.$slots,"title",{key:1}):_e(A.$slots,"header",{key:0,close:C(w),titleId:C(c),titleClass:C(o).e("title")})]),default:_(()=>[_e(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:_(()=>[_e(A.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):Ce("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,BW)]),_:3},8,["mask","overlay-class","z-index"]),[[Qe,C(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var HW=Xe(jW,[["__file","dialog.vue"]]);const ul=Lt(HW),UW=tt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Be(String),default:"solid"}}),WW=me({name:"ElDivider"}),GW=me({...WW,props:UW,setup(n){const e=n,t=Ge("divider"),r=B(()=>t.cssVar({"border-style":e.borderStyle}));return(o,s)=>(P(),G("div",{class:X([C(t).b(),C(t).m(o.direction)]),style:bt(C(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(P(),G("div",{key:0,class:X([C(t).e("text"),C(t).is(o.contentPosition)])},[_e(o.$slots,"default")],2)):Ce("v-if",!0)],6))}});var qW=Xe(GW,[["__file","divider.vue"]]);const $y=Lt(qW),KW=tt({...fM,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"}}),YW=hM,JW=["aria-label","aria-labelledby","aria-describedby"],XW=["id","aria-level"],ZW=["aria-label"],QW=["id"],eG=me({name:"ElDrawer",inheritAttrs:!1}),tG=me({...eG,props:KW,emits:YW,setup(n,{expose:e}){const t=n,r=Bo();wr({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"},B(()=>!!r.title));const o=z(),s=z(),i=Ge("drawer"),{t:l}=ys(),{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:S}=pM(t,o),E=B(()=>t.direction==="rtl"||t.direction==="ltr"),T=B(()=>co(t.size));return e({handleClose:S,afterEnter:a,afterLeave:c}),(M,O)=>(P(),we(Bc,{to:"body",disabled:!M.appendToBody},[x(Tr,{name:C(i).b("fade"),onAfterEnter:C(a),onAfterLeave:C(c),onBeforeLeave:C(u),persisted:""},{default:_(()=>[Fe(x(C(Ry),{mask:M.modal,"overlay-class":M.modalClass,"z-index":C(g),onClick:C(m)},{default:_(()=>[x(C(ng),{loop:"",trapped:C(d),"focus-trap-el":o.value,"focus-start-el":s.value,onFocusAfterTrapped:C(v),onFocusAfterReleased:C(w),onFocusoutPrevented:C(b),onReleaseRequested:C(y)},{default:_(()=>[F("div",$r({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:C(h),"aria-describedby":C(p)},M.$attrs,{class:[C(i).b(),M.direction,C(d)&&"open"],style:C(E)?"width: "+C(T):"height: "+C(T),role:"dialog",onClick:O[1]||(O[1]=Nt(()=>{},["stop"]))}),[F("span",{ref_key:"focusStartRef",ref:s,class:X(C(i).e("sr-focus")),tabindex:"-1"},null,2),M.withHeader?(P(),G("header",{key:0,class:X(C(i).e("header"))},[M.$slots.title?_e(M.$slots,"title",{key:1},()=>[Ce(" DEPRECATED SLOT ")]):_e(M.$slots,"header",{key:0,close:C(S),titleId:C(h),titleClass:C(i).e("title")},()=>[M.$slots.title?Ce("v-if",!0):(P(),G("span",{key:0,id:C(h),role:"heading","aria-level":M.headerAriaLevel,class:X(C(i).e("title"))},ie(M.title),11,XW))]),M.showClose?(P(),G("button",{key:2,"aria-label":C(l)("el.drawer.close"),class:X(C(i).e("close-btn")),type:"button",onClick:O[0]||(O[0]=(...A)=>C(S)&&C(S)(...A))},[x(C(dt),{class:X(C(i).e("close"))},{default:_(()=>[x(C(ra))]),_:1},8,["class"])],10,ZW)):Ce("v-if",!0)],2)):Ce("v-if",!0),C(f)?(P(),G("div",{key:1,id:C(p),class:X(C(i).e("body"))},[_e(M.$slots,"default")],10,QW)):Ce("v-if",!0),M.$slots.footer?(P(),G("div",{key:2,class:X(C(i).e("footer"))},[_e(M.$slots,"footer")],2)):Ce("v-if",!0)],16,JW)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Qe,C(d)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var nG=Xe(tG,[["__file","drawer.vue"]]);const Qs=Lt(nG),rG=me({inheritAttrs:!1});function oG(n,e,t,r,o,s){return _e(n.$slots,"default")}var sG=Xe(rG,[["render",oG],["__file","collection.vue"]]);const iG=me({name:"ElCollectionItem",inheritAttrs:!1});function lG(n,e,t,r,o,s){return _e(n.$slots,"default")}var aG=Xe(iG,[["render",lG],["__file","collection-item.vue"]]);const cG="data-el-collection-item",uG=n=>{const e=`El${n}Collection`,t=`${e}Item`,r=Symbol(e),o=Symbol(t),s={...sG,name:e,setup(){const l=z(null),a=new Map;Ut(r,{itemMap:a,getItems:()=>{const u=C(l);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${cG}]`));return[...a.values()].sort((h,p)=>d.indexOf(h.ref)-d.indexOf(p.ref))},collectionRef:l})}},i={...aG,name:t,setup(l,{attrs:a}){const c=z(null),u=De(r,void 0);Ut(o,{collectionItemRef:c}),rt(()=>{const d=C(c);d&&u.itemMap.set(d,{ref:d,...a})}),wn(()=>{const d=C(c);u.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:s,ElCollectionItem:i}},tm=tt({trigger:pd.trigger,effect:{...Pr.effect,default:"light"},type:{type:Be(String)},placement:{type:Be(String),default:"bottom"},popperOptions:{type:Be(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:Be([Number,String]),default:0},maxHeight:{type:Be([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Be(Object)},teleported:Pr.teleported});tt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:uo}});tt({onKeydown:{type:Be(Function)}});uG("Dropdown");const dG=tt({urlList:{type:Be(Array),default:()=>xo([])},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:Be(String)}}),fG={close:()=>!0,switch:n=>_t(n),rotate:n=>_t(n)},hG=["src","crossorigin"],pG=me({name:"ElImageViewer"}),gG=me({...pG,props:dG,emits:fG,setup(n,{expose:e,emit:t}){var r;const o=n,s={CONTAIN:{name:"contain",icon:Xu(rz)},ORIGINAL:{name:"original",icon:Xu(mz)}},{t:i}=ys(),l=Ge("image-viewer"),{nextZIndex:a}=Zp(),c=z(),u=z([]),d=NE(),f=z(!0),h=z(o.initialIndex),p=Ao(s.CONTAIN),g=z({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=z((r=o.zIndex)!=null?r:a()),v=B(()=>{const{urlList:K}=o;return K.length<=1}),w=B(()=>h.value===0),b=B(()=>h.value===o.urlList.length-1),y=B(()=>o.urlList[h.value]),S=B(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!o.infinite&&w.value)]),E=B(()=>[l.e("btn"),l.e("next"),l.is("disabled",!o.infinite&&b.value)]),T=B(()=>{const{scale:K,deg:fe,offsetX:H,offsetY:se,enableTransition:ue}=g.value;let be=H/K,ye=se/K;switch(fe%360){case 90:case-270:[be,ye]=[ye,-be];break;case 180:case-180:[be,ye]=[-be,-ye];break;case 270:case-90:[be,ye]=[-ye,be];break}const W={transform:`scale(${K}) rotate(${fe}deg) translate(${be}px, ${ye}px)`,transition:ue?"transform .3s":""};return p.value.name===s.CONTAIN.name&&(W.maxWidth=W.maxHeight="100%"),W});function M(){A(),t("close")}function O(){const K=sh(H=>{switch(H.code){case mn.esc:o.closeOnPressEscape&&M();break;case mn.space:I();break;case mn.left:U();break;case mn.up:Y("zoomIn");break;case mn.right:Z();break;case mn.down:Y("zoomOut");break}}),fe=sh(H=>{const se=H.deltaY||H.deltaX;Y(se<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});d.run(()=>{vn(document,"keydown",K),vn(document,"wheel",fe)})}function A(){d.stop()}function k(){f.value=!1}function L(K){f.value=!1,K.target.alt=i("el.image.error")}function j(K){if(f.value||K.button!==0||!c.value)return;g.value.enableTransition=!1;const{offsetX:fe,offsetY:H}=g.value,se=K.pageX,ue=K.pageY,be=sh(W=>{g.value={...g.value,offsetX:fe+W.pageX-se,offsetY:H+W.pageY-ue}}),ye=vn(document,"mousemove",be);vn(document,"mouseup",()=>{ye()}),K.preventDefault()}function ne(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function I(){if(f.value)return;const K=Vh(s),fe=Object.values(s),H=p.value.name,ue=(fe.findIndex(be=>be.name===H)+1)%K.length;p.value=s[K[ue]],ne()}function R(K){const fe=o.urlList.length;h.value=(K+fe)%fe}function U(){w.value&&!o.infinite||R(h.value-1)}function Z(){b.value&&!o.infinite||R(h.value+1)}function Y(K,fe={}){if(f.value)return;const{minScale:H,maxScale:se}=o,{zoomRate:ue,rotateDeg:be,enableTransition:ye}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...fe};switch(K){case"zoomOut":g.value.scale>H&&(g.value.scale=Number.parseFloat((g.value.scale/ue).toFixed(3)));break;case"zoomIn":g.value.scale{nt(()=>{const K=u.value[0];K!=null&&K.complete||(f.value=!0)})}),$e(h,K=>{ne(),t("switch",K)}),rt(()=>{var K,fe;O(),(fe=(K=c.value)==null?void 0:K.focus)==null||fe.call(K)}),e({setActiveItem:R}),(K,fe)=>(P(),we(Bc,{to:"body",disabled:!K.teleported},[x(Tr,{name:"viewer-fade",appear:""},{default:_(()=>[F("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:X(C(l).e("wrapper")),style:bt({zIndex:m.value})},[F("div",{class:X(C(l).e("mask")),onClick:fe[0]||(fe[0]=Nt(H=>K.hideOnClickModal&&M(),["self"]))},null,2),Ce(" CLOSE "),F("span",{class:X([C(l).e("btn"),C(l).e("close")]),onClick:M},[x(C(dt),null,{default:_(()=>[x(C(ra))]),_:1})],2),Ce(" ARROW "),C(v)?Ce("v-if",!0):(P(),G(Le,{key:0},[F("span",{class:X(C(S)),onClick:U},[x(C(dt),null,{default:_(()=>[x(C(jT))]),_:1})],2),F("span",{class:X(C(E)),onClick:Z},[x(C(dt),null,{default:_(()=>[x(C(Kp))]),_:1})],2)],64)),Ce(" ACTIONS "),F("div",{class:X([C(l).e("btn"),C(l).e("actions")])},[F("div",{class:X(C(l).e("actions__inner"))},[x(C(dt),{onClick:fe[1]||(fe[1]=H=>Y("zoomOut"))},{default:_(()=>[x(C(Ez))]),_:1}),x(C(dt),{onClick:fe[2]||(fe[2]=H=>Y("zoomIn"))},{default:_(()=>[x(C(xz))]),_:1}),F("i",{class:X(C(l).e("actions__divider"))},null,2),x(C(dt),{onClick:I},{default:_(()=>[(P(),we(Vt(C(p).icon)))]),_:1}),F("i",{class:X(C(l).e("actions__divider"))},null,2),x(C(dt),{onClick:fe[3]||(fe[3]=H=>Y("anticlockwise"))},{default:_(()=>[x(C(fz))]),_:1}),x(C(dt),{onClick:fe[4]||(fe[4]=H=>Y("clockwise"))},{default:_(()=>[x(C(pz))]),_:1})],2)],2),Ce(" CANVAS "),F("div",{class:X(C(l).e("canvas"))},[(P(!0),G(Le,null,Tt(K.urlList,(H,se)=>Fe((P(),G("img",{ref_for:!0,ref:ue=>u.value[se]=ue,key:H,src:H,style:bt(C(T)),class:X(C(l).e("img")),crossorigin:K.crossorigin,onLoad:k,onError:L,onMousedown:j},null,46,hG)),[[Qe,se===h.value]])),128))],2),_e(K.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var mG=Xe(gG,[["__file","image-viewer.vue"]]);const vG=Lt(mG),bG=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:Be([String,Object])},previewSrcList:{type:Be(Array),default:()=>xo([])},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:Be(String)}}),yG={load:n=>n instanceof Event,error:n=>n instanceof Event,switch:n=>_t(n),close:()=>!0,show:()=>!0},wG=["src","loading","crossorigin"],CG={key:0},xG=me({name:"ElImage",inheritAttrs:!1}),SG=me({...xG,props:bG,emits:yG,setup(n,{emit:e}){const t=n;let r="";const{t:o}=ys(),s=Ge("image"),i=o2(),l=XT(),a=z(),c=z(!1),u=z(!0),d=z(!1),f=z(),h=z(),p=xt&&"loading"in HTMLImageElement.prototype;let g,m;const v=B(()=>[s.e("inner"),y.value&&s.e("preview"),u.value&&s.is("loading")]),w=B(()=>i.style),b=B(()=>{const{fit:Z}=t;return xt&&Z?{objectFit:Z}:{}}),y=B(()=>{const{previewSrcList:Z}=t;return Array.isArray(Z)&&Z.length>0}),S=B(()=>{const{previewSrcList:Z,initialIndex:Y}=t;let K=Y;return Y>Z.length-1&&(K=0),K}),E=B(()=>t.loading==="eager"?!1:!p&&t.loading==="lazy"||t.lazy),T=()=>{xt&&(u.value=!0,c.value=!1,a.value=t.src)};function M(Z){u.value=!1,c.value=!1,e("load",Z)}function O(Z){u.value=!1,c.value=!0,e("error",Z)}function A(){OD(f.value,h.value)&&(T(),j())}const k=aD(A,200,!0);async function L(){var Z;if(!xt)return;await nt();const{scrollContainer:Y}=t;ao(Y)?h.value=Y:ft(Y)&&Y!==""?h.value=(Z=document.querySelector(Y))!=null?Z:void 0:f.value&&(h.value=B6(f.value)),h.value&&(g=vn(h,"scroll",k),setTimeout(()=>A(),100))}function j(){!xt||!h.value||!k||(g==null||g(),h.value=void 0)}function ne(Z){if(Z.ctrlKey){if(Z.deltaY<0)return Z.preventDefault(),!1;if(Z.deltaY>0)return Z.preventDefault(),!1}}function I(){y.value&&(m=vn("wheel",ne,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,e("show"))}function R(){m==null||m(),document.body.style.overflow=r,d.value=!1,e("close")}function U(Z){e("switch",Z)}return $e(()=>t.src,()=>{E.value?(u.value=!0,c.value=!1,j(),L()):T()}),rt(()=>{E.value?L():T()}),(Z,Y)=>(P(),G("div",{ref_key:"container",ref:f,class:X([C(s).b(),Z.$attrs.class]),style:bt(C(w))},[c.value?_e(Z.$slots,"error",{key:0},()=>[F("div",{class:X(C(s).e("error"))},ie(C(o)("el.image.error")),3)]):(P(),G(Le,{key:1},[a.value!==void 0?(P(),G("img",$r({key:0},C(l),{src:a.value,loading:Z.loading,style:C(b),class:C(v),crossorigin:Z.crossorigin,onClick:I,onLoad:M,onError:O}),null,16,wG)):Ce("v-if",!0),u.value?(P(),G("div",{key:1,class:X(C(s).e("wrapper"))},[_e(Z.$slots,"placeholder",{},()=>[F("div",{class:X(C(s).e("placeholder"))},null,2)])],2)):Ce("v-if",!0)],64)),C(y)?(P(),G(Le,{key:2},[d.value?(P(),we(C(vG),{key:0,"z-index":Z.zIndex,"initial-index":C(S),infinite:Z.infinite,"zoom-rate":Z.zoomRate,"min-scale":Z.minScale,"max-scale":Z.maxScale,"url-list":Z.previewSrcList,"hide-on-click-modal":Z.hideOnClickModal,teleported:Z.previewTeleported,"close-on-press-escape":Z.closeOnPressEscape,onClose:R,onSwitch:U},{default:_(()=>[Z.$slots.viewer?(P(),G("div",CG,[_e(Z.$slots,"viewer")])):Ce("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):Ce("v-if",!0)],64)):Ce("v-if",!0)],6))}});var EG=Xe(SG,[["__file","image.vue"]]);const _G=Lt(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:Xs,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:n=>n===null||_t(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},...Zs(["ariaLabel"])}),OG={[Yd]:(n,e)=>e!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[lh]:n=>_t(n)||ss(n),[zt]:n=>_t(n)||ss(n)},MG=["aria-label","onKeydown"],AG=["aria-label","onKeydown"],kG=me({name:"ElInputNumber"}),PG=me({...kG,props:TG,emits:OG,setup(n,{expose:e,emit:t}){const r=n,{t:o}=ys(),s=Ge("input-number"),i=z(),l=Ct({currentValue:r.modelValue,userInput:null}),{formItem:a}=cl(),c=B(()=>_t(r.modelValue)&&r.modelValue<=r.min),u=B(()=>_t(r.modelValue)&&r.modelValue>=r.max),d=B(()=>{const I=v(r.step);return yr(r.precision)?Math.max(v(r.modelValue),I):(I>r.precision,r.precision)}),f=B(()=>r.controls&&r.controlsPosition==="right"),h=po(),p=qc(),g=B(()=>{if(l.userInput!==null)return l.userInput;let I=l.currentValue;if(ss(I))return"";if(_t(I)){if(Number.isNaN(I))return"";yr(r.precision)||(I=I.toFixed(r.precision))}return I}),m=(I,R)=>{if(yr(R)&&(R=d.value),R===0)return Math.round(I);let U=String(I);const Z=U.indexOf(".");if(Z===-1||!U.replace(".","").split("")[Z+R])return I;const fe=U.length;return U.charAt(fe-1)==="5"&&(U=`${U.slice(0,Math.max(0,fe-1))}6`),Number.parseFloat(Number(U).toFixed(R))},v=I=>{if(ss(I))return 0;const R=I.toString(),U=R.indexOf(".");let Z=0;return U!==-1&&(Z=R.length-U-1),Z},w=(I,R=1)=>_t(I)?m(I+r.step*R):l.currentValue,b=()=>{if(r.readonly||p.value||u.value)return;const I=Number(g.value)||0,R=w(I);E(R),t(lh,l.currentValue),j()},y=()=>{if(r.readonly||p.value||c.value)return;const I=Number(g.value)||0,R=w(I,-1);E(R),t(lh,l.currentValue),j()},S=(I,R)=>{const{max:U,min:Z,step:Y,precision:K,stepStrictly:fe,valueOnClear:H}=r;UU||seU?U:Z,R&&t(zt,se)),se},E=(I,R=!0)=>{var U;const Z=l.currentValue,Y=S(I);if(!R){t(zt,Y);return}Z===Y&&I||(l.userInput=null,t(zt,Y),Z!==Y&&t(Yd,Y,Z),r.validateEvent&&((U=a==null?void 0:a.validate)==null||U.call(a,"change").catch(K=>void 0)),l.currentValue=Y)},T=I=>{l.userInput=I;const R=I===""?null:Number(I);t(lh,R),E(R,!1)},M=I=>{const R=I!==""?Number(I):"";(_t(R)&&!Number.isNaN(R)||I==="")&&E(R),j(),l.userInput=null},O=()=>{var I,R;(R=(I=i.value)==null?void 0:I.focus)==null||R.call(I)},A=()=>{var I,R;(R=(I=i.value)==null?void 0:I.blur)==null||R.call(I)},k=I=>{t("focus",I)},L=I=>{var R;l.userInput=null,t("blur",I),r.validateEvent&&((R=a==null?void 0:a.validate)==null||R.call(a,"blur").catch(U=>void 0))},j=()=>{l.currentValue!==r.modelValue&&(l.currentValue=r.modelValue)},ne=I=>{document.activeElement===I.target&&I.preventDefault()};return $e(()=>r.modelValue,(I,R)=>{const U=S(I,!0);l.userInput===null&&U!==R&&(l.currentValue=U)},{immediate:!0}),rt(()=>{var I;const{min:R,max:U,modelValue:Z}=r,Y=(I=i.value)==null?void 0:I.input;if(Y.setAttribute("role","spinbutton"),Number.isFinite(U)?Y.setAttribute("aria-valuemax",String(U)):Y.removeAttribute("aria-valuemax"),Number.isFinite(R)?Y.setAttribute("aria-valuemin",String(R)):Y.removeAttribute("aria-valuemin"),Y.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),Y.setAttribute("aria-disabled",String(p.value)),!_t(Z)&&Z!=null){let K=Number(Z);Number.isNaN(K)&&(K=null),t(zt,K)}Y.addEventListener("wheel",ne,{passive:!1})}),pa(()=>{var I,R;const U=(I=i.value)==null?void 0:I.input;U==null||U.setAttribute("aria-valuenow",`${(R=l.currentValue)!=null?R:""}`)}),wr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input-number",ref:"https://element-plus.org/en-US/component/input-number.html"},B(()=>!!r.label)),e({focus:O,blur:A}),(I,R)=>(P(),G("div",{class:X([C(s).b(),C(s).m(C(h)),C(s).is("disabled",C(p)),C(s).is("without-controls",!I.controls),C(s).is("controls-right",C(f))]),onDragstart:R[0]||(R[0]=Nt(()=>{},["prevent"]))},[I.controls?Fe((P(),G("span",{key:0,role:"button","aria-label":C(o)("el.inputNumber.decrease"),class:X([C(s).e("decrease"),C(s).is("disabled",C(c))]),onKeydown:tr(y,["enter"])},[_e(I.$slots,"decrease-icon",{},()=>[x(C(dt),null,{default:_(()=>[C(f)?(P(),we(C(uy),{key:0})):(P(),we(C(cz),{key:1}))]),_:1})])],42,MG)),[[C(nx),y]]):Ce("v-if",!0),I.controls?Fe((P(),G("span",{key:1,role:"button","aria-label":C(o)("el.inputNumber.increase"),class:X([C(s).e("increase"),C(s).is("disabled",C(u))]),onKeydown:tr(b,["enter"])},[_e(I.$slots,"increase-icon",{},()=>[x(C(dt),null,{default:_(()=>[C(f)?(P(),we(C(HT),{key:0})):(P(),we(C(UT),{key:1}))]),_:1})])],42,AG)),[[C(nx),b]]):Ce("v-if",!0),x(C(Cn),{id:I.id,ref_key:"input",ref:i,type:"number",step:I.step,"model-value":C(g),placeholder:I.placeholder,readonly:I.readonly,disabled:C(p),size:C(h),max:I.max,min:I.min,name:I.name,"aria-label":I.label||I.ariaLabel,"validate-event":!1,onKeydown:[tr(Nt(b,["prevent"]),["up"]),tr(Nt(y,["prevent"]),["down"])],onBlur:L,onFocus:k,onInput:T,onChange:M},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],34))}});var NG=Xe(PG,[["__file","input-number.vue"]]);const Dy=Lt(NG),IG=tt({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:uo}}),LG={click:n=>n instanceof MouseEvent},RG=["href","target"],$G=me({name:"ElLink"}),DG=me({...$G,props:IG,emits:LG,setup(n,{emit:e}){const t=n,r=Ge("link"),o=B(()=>[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)=>(P(),G("a",{class:X(C(o)),href:i.disabled||!i.href?void 0:i.href,target:i.disabled||!i.href?void 0:i.target,onClick:s},[i.icon?(P(),we(C(dt),{key:0},{default:_(()=>[(P(),we(Vt(i.icon)))]),_:1})):Ce("v-if",!0),i.$slots.default?(P(),G("span",{key:1,class:X(C(r).e("inner"))},[_e(i.$slots,"default")],2)):Ce("v-if",!0),i.$slots.icon?_e(i.$slots,"icon",{key:2}):Ce("v-if",!0)],10,RG))}});var VG=Xe(DG,[["__file","link.vue"]]);const FG=Lt(VG),BG=tt({icon:{type:uo,default:()=>K6},title:String,content:{type:String,default:""}}),zG={back:()=>!0},jG=["aria-label"],HG=me({name:"ElPageHeader"}),UG=me({...HG,props:BG,emits:zG,setup(n,{emit:e}){const t=Bo(),{t:r}=ys(),o=Ge("page-header"),s=B(()=>[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)=>(P(),G("div",{class:X(C(s))},[l.$slots.breadcrumb?(P(),G("div",{key:0,class:X(C(o).e("breadcrumb"))},[_e(l.$slots,"breadcrumb")],2)):Ce("v-if",!0),F("div",{class:X(C(o).e("header"))},[F("div",{class:X(C(o).e("left"))},[F("div",{class:X(C(o).e("back")),role:"button",tabindex:"0",onClick:i},[l.icon||l.$slots.icon?(P(),G("div",{key:0,"aria-label":l.title||C(r)("el.pageHeader.title"),class:X(C(o).e("icon"))},[_e(l.$slots,"icon",{},()=>[l.icon?(P(),we(C(dt),{key:0},{default:_(()=>[(P(),we(Vt(l.icon)))]),_:1})):Ce("v-if",!0)])],10,jG)):Ce("v-if",!0),F("div",{class:X(C(o).e("title"))},[_e(l.$slots,"title",{},()=>[ee(ie(l.title||C(r)("el.pageHeader.title")),1)])],2)],2),x(C($y),{direction:"vertical"}),F("div",{class:X(C(o).e("content"))},[_e(l.$slots,"content",{},()=>[ee(ie(l.content),1)])],2)],2),l.$slots.extra?(P(),G("div",{key:0,class:X(C(o).e("extra"))},[_e(l.$slots,"extra")],2)):Ce("v-if",!0)],2),l.$slots.default?(P(),G("div",{key:1,class:X(C(o).e("main"))},[_e(l.$slots,"default")],2)):Ce("v-if",!0)],2))}});var WG=Xe(UG,[["__file","page-header.vue"]]);const ws=Lt(WG),gM=Symbol("ElSelectGroup"),sg=Symbol("ElSelect");function GG(n,e){const t=De(sg),r=De(gM,{disabled:!1}),o=B(()=>t.props.multiple?u(t.props.modelValue,n.value):u([t.props.modelValue],n.value)),s=B(()=>{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=B(()=>n.label||(pt(n.value)?"":n.value)),l=B(()=>n.value||n.label||""),a=B(()=>n.disabled||e.groupDisabled||s.value),c=vt(),u=(h=[],p)=>{if(pt(n.value)){const g=t.props.valueKey;return h&&h.some(m=>At(Qr(m,g))===Qr(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(D6(h),"i");e.visible=p.test(i.value)||n.created};return $e(()=>i.value,()=>{!n.created&&!t.props.remote&&t.setSelected()}),$e(()=>n.value,(h,p)=>{const{remote:g,valueKey:m}=t.props;if(Cr(h,p)||(t.onOptionDestroy(p,c.proxy),t.onOptionCreate(c.proxy)),!n.created&&!g){if(m&&pt(h)&&pt(p)&&h[m]===p[m])return;t.setSelected()}}),$e(()=>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=Ge("select"),t=fs(),r=B(()=>[e.be("dropdown","item"),e.is("disabled",C(l)),e.is("selected",C(i)),e.is("hovering",C(f))]),o=Ct({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:i,isDisabled:l,select:a,hoverItem:c,updateOption:u}=GG(n,o),{visible:d,hover:f}=Gs(o),h=vt().proxy;a.onOptionCreate(h),wn(()=>{const g=h.value,{selected:m}=a.states,w=(a.props.multiple?m:[m]).some(b=>b.value===h.value);nt(()=>{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}}}),KG=["id","aria-disabled","aria-selected"];function YG(n,e,t,r,o,s){return Fe((P(),G("li",{id:n.id,class:X(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]=Nt((...i)=>n.selectOptionClick&&n.selectOptionClick(...i),["stop"]))},[_e(n.$slots,"default",{},()=>[F("span",null,ie(n.currentLabel),1)])],42,KG)),[[Qe,n.visible]])}var Vy=Xe(qG,[["render",YG],["__file","option.vue"]]);const JG=me({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const n=De(sg),e=Ge("select"),t=B(()=>n.props.popperClass),r=B(()=>n.props.multiple),o=B(()=>n.props.fitInputWidth),s=z("");function i(){var l;s.value=`${(l=n.selectRef)==null?void 0:l.offsetWidth}px`}return rt(()=>{i(),dr(n.selectRef,i)}),{ns:e,minWidth:s,popperClass:t,isMultiple:r,isFitInputWidth:o}}});function XG(n,e,t,r,o,s){return P(),G("div",{class:X([n.ns.b("dropdown"),n.ns.is("multiple",n.isMultiple),n.popperClass]),style:bt({[n.isFitInputWidth?"width":"minWidth"]:n.minWidth})},[n.$slots.header?(P(),G("div",{key:0,class:X(n.ns.be("dropdown","header"))},[_e(n.$slots,"header")],2)):Ce("v-if",!0),_e(n.$slots,"default"),n.$slots.footer?(P(),G("div",{key:1,class:X(n.ns.be("dropdown","footer"))},[_e(n.$slots,"footer")],2)):Ce("v-if",!0)],6)}var ZG=Xe(JG,[["render",XG],["__file","select-dropdown.vue"]]);function QG(n){const e=z(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:s=>{const i=s.target.value,l=i[i.length-1]||"";e.value=!JT(l)},handleCompositionEnd:s=>{e.value&&(e.value=!1,We(n)&&n(s))}}}const eq=11,tq=(n,e)=>{const{t}=ys(),r=fs(),o=Ge("select"),s=Ge("input"),i=Ct({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=z(null),a=z(null),c=z(null),u=z(null),d=z(null),f=z(null),h=z(null),p=z(null),g=z(null),m=z(null),v=z(null),w=z(null),{wrapperRef:b,isFocused:y,handleFocus:S,handleBlur:E}=CO(d,{afterFocus(){n.automaticDropdown&&!T.value&&(T.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(xe){var Ie,Rt;return((Ie=c.value)==null?void 0:Ie.isFocusInsideContent(xe))||((Rt=u.value)==null?void 0:Rt.isFocusInsideContent(xe))},afterBlur(){T.value=!1,i.menuVisibleOnFocus=!1}}),T=z(!1),M=z(),{form:O,formItem:A}=cl(),{inputId:k}=Qd(n,{formItemContext:A}),{valueOnClear:L,isEmptyValue:j}=oH(n),ne=B(()=>n.disabled||(O==null?void 0:O.disabled)),I=B(()=>n.multiple?Re(n.modelValue)&&n.modelValue.length>0:!j(n.modelValue)),R=B(()=>n.clearable&&!ne.value&&i.inputHovering&&I.value),U=B(()=>n.remote&&n.filterable&&!n.remoteShowSuffix?"":n.suffixIcon),Z=B(()=>o.is("reverse",U.value&&T.value)),Y=B(()=>(A==null?void 0:A.validateState)||""),K=B(()=>KT[Y.value]),fe=B(()=>n.remote?300:0),H=B(()=>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&&se.value===0?n.noMatchText||t("el.select.noMatch"):i.options.size===0?n.noDataText||t("el.select.noData"):null),se=B(()=>ue.value.filter(xe=>xe.visible).length),ue=B(()=>{const xe=Array.from(i.options.values()),Ie=[];return i.optionValues.forEach(Rt=>{const en=xe.findIndex(ii=>ii.value===Rt);en>-1&&Ie.push(xe[en])}),Ie.length>=xe.length?Ie:xe}),be=B(()=>Array.from(i.cachedOptions.values())),ye=B(()=>{const xe=ue.value.filter(Ie=>!Ie.created).some(Ie=>Ie.currentLabel===i.inputValue);return n.filterable&&n.allowCreate&&i.inputValue!==""&&!xe}),W=()=>{n.filterable&&We(n.filterMethod)||n.filterable&&n.remote&&We(n.remoteMethod)||ue.value.forEach(xe=>{var Ie;(Ie=xe.updateOption)==null||Ie.call(xe,i.inputValue)})},ce=po(),re=B(()=>["small"].includes(ce.value)?"small":"default"),ve=B({get(){return T.value&&H.value!==!1},set(xe){T.value=xe}}),ke=B(()=>Re(n.modelValue)?n.modelValue.length===0&&!i.inputValue:n.filterable?!i.inputValue:!0),Se=B(()=>{var xe;const Ie=(xe=n.placeholder)!=null?xe:t("el.select.placeholder");return n.multiple||!I.value?Ie:i.selectedLabel}),$=B(()=>lv?null:"mouseenter");$e(()=>n.modelValue,(xe,Ie)=>{n.multiple&&n.filterable&&!n.reserveKeyword&&(i.inputValue="",N("")),pe(),!Cr(xe,Ie)&&n.validateEvent&&(A==null||A.validate("change").catch(Rt=>void 0))},{flush:"post",deep:!0}),$e(()=>T.value,xe=>{xe?N(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0),e("visible-change",xe)}),$e(()=>i.options.entries(),()=>{var xe;if(!xt)return;const Ie=((xe=l.value)==null?void 0:xe.querySelectorAll("input"))||[];(!n.filterable&&!n.defaultFirstOption&&!yr(n.modelValue)||!Array.from(Ie).includes(document.activeElement))&&pe(),n.defaultFirstOption&&(n.filterable||n.remote)&&se.value&&te()},{flush:"post"}),$e(()=>i.hoveringIndex,xe=>{_t(xe)&&xe>-1?M.value=ue.value[xe]||{}:M.value={},ue.value.forEach(Ie=>{Ie.hover=M.value===Ie})}),rs(()=>{i.isBeforeHide||W()});const N=xe=>{i.previousQuery!==xe&&(i.previousQuery=xe,n.filterable&&We(n.filterMethod)?n.filterMethod(xe):n.filterable&&n.remote&&We(n.remoteMethod)&&n.remoteMethod(xe),n.defaultFirstOption&&(n.filterable||n.remote)&&se.value?nt(te):nt(ae))},te=()=>{const xe=ue.value.filter(en=>en.visible&&!en.disabled&&!en.states.groupDisabled),Ie=xe.find(en=>en.created),Rt=xe[0];i.hoveringIndex=it(ue.value,Ie||Rt)},pe=()=>{if(n.multiple)i.selectedLabel="";else{const Ie=ge(n.modelValue);i.selectedLabel=Ie.currentLabel,i.selected=Ie;return}const xe=[];Re(n.modelValue)&&n.modelValue.forEach(Ie=>{xe.push(ge(Ie))}),i.selected=xe},ge=xe=>{let Ie;const Rt=Qf(xe).toLowerCase()==="object",en=Qf(xe).toLowerCase()==="null",ii=Qf(xe).toLowerCase()==="undefined";for(let bl=i.cachedOptions.size-1;bl>=0;bl--){const qo=be.value[bl];if(Rt?Qr(qo.value,n.valueKey)===Qr(xe,n.valueKey):qo.value===xe){Ie={value:xe,currentLabel:qo.currentLabel,get isDisabled(){return qo.isDisabled}};break}}if(Ie)return Ie;const Ca=Rt?xe.label:!en&&!ii?xe:"";return{value:xe,currentLabel:Ca}},ae=()=>{n.multiple?i.hoveringIndex=ue.value.findIndex(xe=>i.selected.some(Ie=>Go(Ie)===Go(xe))):i.hoveringIndex=ue.value.findIndex(xe=>Go(xe)===Go(i.selected))},Ee=()=>{i.selectionWidth=a.value.getBoundingClientRect().width},D=()=>{i.calculatorWidth=f.value.getBoundingClientRect().width},V=()=>{i.collapseItemWidth=v.value.getBoundingClientRect().width},J=()=>{var xe,Ie;(Ie=(xe=c.value)==null?void 0:xe.updatePopper)==null||Ie.call(xe)},le=()=>{var xe,Ie;(Ie=(xe=u.value)==null?void 0:xe.updatePopper)==null||Ie.call(xe)},Oe=()=>{i.inputValue.length>0&&!T.value&&(T.value=!0),N(i.inputValue)},oe=xe=>{if(i.inputValue=xe.target.value,n.remote)Q();else return Oe()},Q=cc(()=>{Oe()},fe.value),de=xe=>{Cr(n.modelValue,xe)||e(Yd,xe)},Ue=xe=>J5(xe,Ie=>!i.disabledOptions.has(Ie)),Ke=xe=>{if(n.multiple&&xe.code!==mn.delete&&xe.target.value.length<=0){const Ie=n.modelValue.slice(),Rt=Ue(Ie);if(Rt<0)return;const en=Ie[Rt];Ie.splice(Rt,1),e(zt,Ie),de(Ie),e("remove-tag",en)}},Ae=(xe,Ie)=>{const Rt=i.selected.indexOf(Ie);if(Rt>-1&&!ne.value){const en=n.modelValue.slice();en.splice(Rt,1),e(zt,en),de(en),e("remove-tag",Ie.value)}xe.stopPropagation(),mo()},Me=xe=>{xe.stopPropagation();const Ie=n.multiple?[]:L.value;if(n.multiple)for(const Rt of i.selected)Rt.isDisabled&&Ie.push(Rt.value);e(zt,Ie),de(Ie),i.hoveringIndex=-1,T.value=!1,e("clear"),mo()},Je=xe=>{if(n.multiple){const Ie=(n.modelValue||[]).slice(),Rt=it(Ie,xe.value);Rt>-1?Ie.splice(Rt,1):(n.multipleLimit<=0||Ie.length{he(xe)})},it=(xe=[],Ie)=>{if(!pt(Ie))return xe.indexOf(Ie);const Rt=n.valueKey;let en=-1;return xe.some((ii,Ca)=>At(Qr(ii,Rt))===Qr(Ie,Rt)?(en=Ca,!0):!1),en},he=xe=>{var Ie,Rt,en,ii,Ca;const mf=Re(xe)?xe[0]:xe;let bl=null;if(mf!=null&&mf.value){const qo=ue.value.filter(L0=>L0.value===mf.value);qo.length>0&&(bl=qo[0].$el)}if(c.value&&bl){const qo=(ii=(en=(Rt=(Ie=c.value)==null?void 0:Ie.popperRef)==null?void 0:Rt.contentRef)==null?void 0:en.querySelector)==null?void 0:ii.call(en,`.${o.be("dropdown","wrap")}`);qo&&j6(qo,bl)}(Ca=w.value)==null||Ca.handleScroll()},Ne=xe=>{i.options.set(xe.value,xe),i.cachedOptions.set(xe.value,xe),xe.disabled&&i.disabledOptions.set(xe.value,xe)},Ve=(xe,Ie)=>{i.options.get(xe)===Ie&&i.options.delete(xe)},{handleCompositionStart:lt,handleCompositionUpdate:ct,handleCompositionEnd:xn}=QG(xe=>oe(xe)),Xn=B(()=>{var xe,Ie;return(Ie=(xe=c.value)==null?void 0:xe.popperRef)==null?void 0:Ie.contentRef}),Wo=()=>{i.isBeforeHide=!1,nt(()=>he(i.selected))},mo=()=>{var xe;(xe=d.value)==null||xe.focus()},vo=()=>{vl()},tu=xe=>{Me(xe)},vl=xe=>{if(T.value=!1,y.value){const Ie=new FocusEvent("focus",xe);nt(()=>E(Ie))}},si=()=>{i.inputValue.length>0?i.inputValue="":T.value=!1},gf=()=>{ne.value||(lv&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:T.value=!T.value)},nu=()=>{T.value?ue.value[i.hoveringIndex]&&Je(ue.value[i.hoveringIndex]):gf()},Go=xe=>pt(xe.value)?Qr(xe.value,n.valueKey):xe.value,oN=B(()=>ue.value.filter(xe=>xe.visible).every(xe=>xe.disabled)),sN=B(()=>n.multiple?n.collapseTags?i.selected.slice(0,n.maxCollapseTags):i.selected:[]),iN=B(()=>n.multiple?n.collapseTags?i.selected.slice(n.maxCollapseTags):[]:[]),I0=xe=>{if(!T.value){T.value=!0;return}if(!(i.options.size===0||se.value===0)&&!oN.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 Ie=ue.value[i.hoveringIndex];(Ie.disabled===!0||Ie.states.groupDisabled===!0||!Ie.visible)&&I0(xe),nt(()=>he(M.value))}},lN=()=>{if(!a.value)return 0;const xe=window.getComputedStyle(a.value);return Number.parseFloat(xe.gap||"6px")},aN=B(()=>{const xe=lN();return{maxWidth:`${v.value&&n.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-xe:i.selectionWidth}px`}}),cN=B(()=>({maxWidth:`${i.selectionWidth}px`})),uN=B(()=>({width:`${Math.max(i.calculatorWidth,eq)}px`}));return n.multiple&&!Re(n.modelValue)&&e(zt,[]),!n.multiple&&Re(n.modelValue)&&e(zt,""),dr(a,Ee),dr(f,D),dr(g,J),dr(b,J),dr(m,le),dr(v,V),rt(()=>{pe()}),{inputId:k,contentId:r,nsSelect:o,nsInput:s,states:i,isFocused:y,expanded:T,optionsArray:ue,hoverOption:M,selectSize:ce,filteredOptionsCount:se,resetCalculatorWidth:D,updateTooltip:J,updateTagTooltip:le,debouncedOnInputChange:Q,onInput:oe,deletePrevTag:Ke,deleteTag:Ae,deleteSelected:Me,handleOptionSelect:Je,scrollToOption:he,hasModelValue:I,shouldShowPlaceholder:ke,currentPlaceholder:Se,mouseEnterEventName:$,showClose:R,iconComponent:U,iconReverse:Z,validateState:Y,validateIcon:K,showNewOption:ye,updateOptions:W,collapseTagSize:re,setSelected:pe,selectDisabled:ne,emptyText:H,handleCompositionStart:lt,handleCompositionUpdate:ct,handleCompositionEnd:xn,onOptionCreate:Ne,onOptionDestroy:Ve,handleMenuEnter:Wo,handleFocus:S,focus:mo,blur:vo,handleBlur:E,handleClearClick:tu,handleClickOutside:vl,handleEsc:si,toggleMenu:gf,selectOption:nu,getValueKey:Go,navigateOptions:I0,dropdownMenuVisible:ve,showTagList:sN,collapseTagList:iN,tagStyle:aN,collapseTagStyle:cN,inputStyle:uN,popperRef:Xn,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 nq=me({name:"ElOptions",setup(n,{slots:e}){const t=De(sg);let r=[];return()=>{var o,s;const i=(o=e.default)==null?void 0:o.call(e),l=[];function a(c){Re(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(!ft(u.children)&&!Re(u.children)&&We((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):Re(u.children)&&a(u.children)})}return i.length&&a((s=i[0])==null?void 0:s.children),Cr(l,r)||(r=l,t&&(t.states.optionValues=l)),i}}});const rq=tt({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Xs,effect:{type:Be(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Be(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:Pr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:uo,default:fy},fitInputWidth:Boolean,suffixIcon:{type:uo,default:uy},tagType:{...rM.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Be(String),values:Jp,default:"bottom-start"},fallbackPlacements:{type:Be(Array),default:["bottom-start","top-start","right","left"]},...rH,...Zs(["ariaLabel"])}),ax="ElSelect",oq=me({name:ax,componentName:ax,components:{ElInput:Cn,ElSelectMenu:ZG,ElOption:Vy,ElOptions:nq,ElTag:oM,ElScrollbar:eg,ElTooltip:zr,ElIcon:dt},directives:{ClickOutside:DO},props:rq,emits:[zt,Yd,"remove-tag","clear","visible-change","focus","blur"],setup(n,{emit:e}){const t=tq(n,e);return Ut(sg,Ct({props:n,states:t.states,optionsArray:t.optionsArray,handleOptionSelect:t.handleOptionSelect,onOptionCreate:t.onOptionCreate,onOptionDestroy:t.onOptionDestroy,selectRef:t.selectRef,setSelected:t.setSelected})),{...t}}}),sq=["id","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],iq=["textContent"],lq={key:1};function aq(n,e,t,r,o,s){const i=ot("el-tag"),l=ot("el-tooltip"),a=ot("el-icon"),c=ot("el-option"),u=ot("el-options"),d=ot("el-scrollbar"),f=ot("el-select-menu"),h=$b("click-outside");return Fe((P(),G("div",{ref:"selectRef",class:X([n.nsSelect.b(),n.nsSelect.m(n.selectSize)]),[eh(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]=Nt((...p)=>n.toggleMenu&&n.toggleMenu(...p),["prevent","stop"]))},[x(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:X([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?(P(),G("div",{key:0,ref:"prefixRef",class:X(n.nsSelect.e("prefix"))},[_e(n.$slots,"prefix")],2)):Ce("v-if",!0),F("div",{ref:"selectionRef",class:X([n.nsSelect.e("selection"),n.nsSelect.is("near",n.multiple&&!n.$slots.prefix&&!!n.states.selected.length)])},[n.multiple?_e(n.$slots,"tag",{key:0},()=>[(P(!0),G(Le,null,Tt(n.showTagList,g=>(P(),G("div",{key:n.getValueKey(g),class:X(n.nsSelect.e("selected-item"))},[x(i,{closable:!n.selectDisabled&&!g.isDisabled,size:n.collapseTagSize,type:n.tagType,"disable-transitions":"",style:bt(n.tagStyle),onClose:m=>n.deleteTag(m,g)},{default:_(()=>[F("span",{class:X(n.nsSelect.e("tags-text"))},[_e(n.$slots,"label",{label:g.currentLabel,value:g.value},()=>[ee(ie(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),n.collapseTags&&n.states.selected.length>n.maxCollapseTags?(P(),we(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:X(n.nsSelect.e("selected-item"))},[x(i,{closable:!1,size:n.collapseTagSize,type:n.tagType,"disable-transitions":"",style:bt(n.collapseTagStyle)},{default:_(()=>[F("span",{class:X(n.nsSelect.e("tags-text"))}," + "+ie(n.states.selected.length-n.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:_(()=>[F("div",{ref:"tagMenuRef",class:X(n.nsSelect.e("selection"))},[(P(!0),G(Le,null,Tt(n.collapseTagList,g=>(P(),G("div",{key:n.getValueKey(g),class:X(n.nsSelect.e("selected-item"))},[x(i,{class:"in-tooltip",closable:!n.selectDisabled&&!g.isDisabled,size:n.collapseTagSize,type:n.tagType,"disable-transitions":"",onClose:m=>n.deleteTag(m,g)},{default:_(()=>[F("span",{class:X(n.nsSelect.e("tags-text"))},[_e(n.$slots,"label",{label:g.currentLabel,value:g.value},()=>[ee(ie(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Ce("v-if",!0)]):Ce("v-if",!0),n.selectDisabled?Ce("v-if",!0):(P(),G("div",{key:1,class:X([n.nsSelect.e("selected-item"),n.nsSelect.e("input-wrapper"),n.nsSelect.is("hidden",!n.filterable)])},[Fe(F("input",{id:n.inputId,ref:"inputRef","onUpdate:modelValue":e[0]||(e[0]=g=>n.states.inputValue=g),type:"text",name:n.name,class:X([n.nsSelect.e("input"),n.nsSelect.is(n.selectSize)]),disabled:n.selectDisabled,autocomplete:n.autocomplete,style:bt(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]=tr(Nt(g=>n.navigateOptions("next"),["stop","prevent"]),["down"])),e[4]||(e[4]=tr(Nt(g=>n.navigateOptions("prev"),["stop","prevent"]),["up"])),e[5]||(e[5]=tr(Nt((...g)=>n.handleEsc&&n.handleEsc(...g),["stop","prevent"]),["esc"])),e[6]||(e[6]=tr(Nt((...g)=>n.selectOption&&n.selectOption(...g),["stop","prevent"]),["enter"])),e[7]||(e[7]=tr(Nt((...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]=Nt((...g)=>n.toggleMenu&&n.toggleMenu(...g),["stop"]))},null,46,sq),[[kL,n.states.inputValue]]),n.filterable?(P(),G("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:X(n.nsSelect.e("input-calculator")),textContent:ie(n.states.inputValue)},null,10,iq)):Ce("v-if",!0)],2)),n.shouldShowPlaceholder?(P(),G("div",{key:2,class:X([n.nsSelect.e("selected-item"),n.nsSelect.e("placeholder"),n.nsSelect.is("transparent",!n.hasModelValue||n.expanded&&!n.states.inputValue)])},[n.hasModelValue?_e(n.$slots,"label",{key:0,label:n.currentPlaceholder,value:n.modelValue},()=>[F("span",null,ie(n.currentPlaceholder),1)]):(P(),G("span",lq,ie(n.currentPlaceholder),1))],2)):Ce("v-if",!0)],2),F("div",{ref:"suffixRef",class:X(n.nsSelect.e("suffix"))},[n.iconComponent&&!n.showClose?(P(),we(a,{key:0,class:X([n.nsSelect.e("caret"),n.nsSelect.e("icon"),n.iconReverse])},{default:_(()=>[(P(),we(Vt(n.iconComponent)))]),_:1},8,["class"])):Ce("v-if",!0),n.showClose&&n.clearIcon?(P(),we(a,{key:1,class:X([n.nsSelect.e("caret"),n.nsSelect.e("icon")]),onClick:n.handleClearClick},{default:_(()=>[(P(),we(Vt(n.clearIcon)))]),_:1},8,["class","onClick"])):Ce("v-if",!0),n.validateState&&n.validateIcon?(P(),we(a,{key:2,class:X([n.nsInput.e("icon"),n.nsInput.e("validateIcon")])},{default:_(()=>[(P(),we(Vt(n.validateIcon)))]),_:1},8,["class"])):Ce("v-if",!0)],2)],2)]}),content:_(()=>[x(f,{ref:"menuRef"},{default:_(()=>[n.$slots.header?(P(),G("div",{key:0,class:X(n.nsSelect.be("dropdown","header")),onClick:e[13]||(e[13]=Nt(()=>{},["stop"]))},[_e(n.$slots,"header")],2)):Ce("v-if",!0),Fe(x(d,{id:n.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":n.nsSelect.be("dropdown","wrap"),"view-class":n.nsSelect.be("dropdown","list"),class:X([n.nsSelect.is("empty",n.filteredOptionsCount===0)]),role:"listbox","aria-label":n.ariaLabel,"aria-orientation":"vertical"},{default:_(()=>[n.showNewOption?(P(),we(c,{key:0,value:n.states.inputValue,created:!0},null,8,["value"])):Ce("v-if",!0),x(u,null,{default:_(()=>[_e(n.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Qe,n.states.options.size>0&&!n.loading]]),n.$slots.loading&&n.loading?(P(),G("div",{key:1,class:X(n.nsSelect.be("dropdown","loading"))},[_e(n.$slots,"loading")],2)):n.loading||n.filteredOptionsCount===0?(P(),G("div",{key:2,class:X(n.nsSelect.be("dropdown","empty"))},[_e(n.$slots,"empty",{},()=>[F("span",null,ie(n.emptyText),1)])],2)):Ce("v-if",!0),n.$slots.footer?(P(),G("div",{key:3,class:X(n.nsSelect.be("dropdown","footer")),onClick:e[14]||(e[14]=Nt(()=>{},["stop"]))},[_e(n.$slots,"footer")],2)):Ce("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 cq=Xe(oq,[["render",aq],["__file","select.vue"]]);const uq=me({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(n){const e=Ge("select"),t=z(null),r=vt(),o=z([]);Ut(gM,Ct({...Gs(n)}));const s=B(()=>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=Lh(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 rt(()=>{a()}),yD(t,a,{attributes:!0,subtree:!0,childList:!0}),{groupRef:t,visible:s,ns:e}}});function dq(n,e,t,r,o,s){return Fe((P(),G("ul",{ref:"groupRef",class:X(n.ns.be("group","wrap"))},[F("li",{class:X(n.ns.be("group","title"))},ie(n.label),3),F("li",null,[F("ul",{class:X(n.ns.b("group"))},[_e(n.$slots,"default")],2)])],2)),[[Qe,n.visible]])}var mM=Xe(uq,[["render",dq],["__file","option-group.vue"]]);const ei=Lt(cq,{Option:Vy,OptionGroup:mM}),ti=Or(Vy);Or(mM);const fq=tt({trigger:pd.trigger,placement:tm.placement,disabled:pd.disabled,visible:Pr.visible,transition:Pr.transition,popperOptions:tm.popperOptions,tabindex:tm.tabindex,content:Pr.content,popperStyle:Pr.popperStyle,popperClass:Pr.popperClass,enterable:{...Pr.enterable,default:!0},effect:{...Pr.effect,default:"light"},teleported:Pr.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}}),hq={"update:visible":n=>lo(n),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},pq="onUpdate:visible",gq=me({name:"ElPopover"}),mq=me({...gq,props:fq,emits:hq,setup(n,{expose:e,emit:t}){const r=n,o=B(()=>r[pq]),s=Ge("popover"),i=z(),l=B(()=>{var m;return(m=C(i))==null?void 0:m.popperRef}),a=B(()=>[{width:co(r.width)},r.popperStyle]),c=B(()=>[s.b(),r.popperClass,{[s.m("plain")]:!!r.content}]),u=B(()=>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)=>(P(),we(C(zr),$r({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":C(c),"popper-style":C(a),teleported:m.teleported,persistent:m.persistent,"gpu-acceleration":C(u),"onUpdate:visible":C(o),onBeforeShow:f,onBeforeHide:h,onShow:p,onHide:g}),{content:_(()=>[m.title?(P(),G("div",{key:0,class:X(C(s).e("title")),role:"title"},ie(m.title),3)):Ce("v-if",!0),_e(m.$slots,"default",{},()=>[ee(ie(m.content),1)])]),default:_(()=>[m.$slots.reference?_e(m.$slots,"reference",{key:0}):Ce("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 vq=Xe(mq,[["__file","popover.vue"]]);const cx=(n,e)=>{const t=e.arg||e.value,r=t==null?void 0:t.popperRef;r&&(r.triggerRef=n)};var bq={mounted(n,e){cx(n,e)},updated(n,e){cx(n,e)}};const yq="popover",wq=Tz(bq,yq),Cq=Lt(vq,{directive:wq}),$a={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},ux={[$a.success]:J6,[$a.warning]:gy,[$a.error]:dy,[$a.info]:hy},xq=tt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Sq=me({name:"ElResult"}),Eq=me({...Sq,props:xq,setup(n){const e=n,t=Ge("result"),r=B(()=>{const o=e.icon,s=o&&$a[o]?$a[o]:"icon-info",i=ux[s]||ux["icon-info"];return{class:s,component:i}});return(o,s)=>(P(),G("div",{class:X(C(t).b())},[F("div",{class:X(C(t).e("icon"))},[_e(o.$slots,"icon",{},()=>[C(r).component?(P(),we(Vt(C(r).component),{key:0,class:X(C(r).class)},null,8,["class"])):Ce("v-if",!0)])],2),o.title||o.$slots.title?(P(),G("div",{key:0,class:X(C(t).e("title"))},[_e(o.$slots,"title",{},()=>[F("p",null,ie(o.title),1)])],2)):Ce("v-if",!0),o.subTitle||o.$slots["sub-title"]?(P(),G("div",{key:1,class:X(C(t).e("subtitle"))},[_e(o.$slots,"sub-title",{},()=>[F("p",null,ie(o.subTitle),1)])],2)):Ce("v-if",!0),o.$slots.extra?(P(),G("div",{key:2,class:X(C(t).e("extra"))},[_e(o.$slots,"extra")],2)):Ce("v-if",!0)],2))}});var _q=Xe(Eq,[["__file","result.vue"]]);const Tq=Lt(_q),Oq=tt({prefixCls:{type:String}}),dx=me({name:"ElSpaceItem",props:Oq,setup(n,{slots:e}){const t=Ge("space"),r=B(()=>`${n.prefixCls||t.b()}__item`);return()=>Ye("div",{class:r.value},_e(e,"default"))}}),fx={small:8,default:12,large:16};function Mq(n){const e=Ge("space"),t=B(()=>[e.b(),e.m(n.direction),n.class]),r=z(0),o=z(0),s=B(()=>{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=B(()=>n.fill?{flexGrow:1,minWidth:`${n.fillRatio}%`}:{});return rs(()=>{const{size:l="small",wrap:a,direction:c,fill:u}=n;if(Re(l)){const[d=0,f=0]=l;r.value=d,o.value=f}else{let d;_t(l)?d=l:d=fx[l||"small"]||fx.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 Aq=tt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Be([String,Object,Array]),default:""},style:{type:Be([String,Array,Object]),default:""},alignment:{type:Be(String),default:"center"},prefixCls:{type:String},spacer:{type:Be([Object,String,Number,Array]),default:null,validator:n=>On(n)||_t(n)||ft(n)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ya,validator:n=>_t(n)||Re(n)&&n.length===2&&n.every(_t)}}),kq=me({name:"ElSpace",props:Aq,setup(n,{slots:e}){const{classes:t,containerStyle:r,itemStyle:o}=Mq(n);function s(i,l="",a=[]){const{prefixCls:c}=n;return i.forEach((u,d)=>{mv(u)?Re(u.children)&&u.children.forEach((f,h)=>{mv(f)&&Re(f.children)?s(f.children,`${l+h}-`,a):a.push(x(dx,{style:o.value,prefixCls:c,key:`nested-${l+h}`},{default:()=>[f]},qr.PROPS|qr.STYLE,["style","prefixCls"]))}):kz(u)&&a.push(x(dx,{style:o.value,prefixCls:c,key:`LoopKey${l+d}`},{default:()=>[u]},qr.PROPS|qr.STYLE,["style","prefixCls"]))}),a}return()=>{var i;const{spacer:l,direction:a}=n,c=_e(e,"default",{key:0},()=>[]);if(((i=c.children)!=null?i:[]).length===0)return null;if(Re(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(x("span",{style:[o.value,a==="vertical"?"width: 100%":null],key:p},[On(l)?l:ee(l,qr.TEXT)],qr.STYLE)),g},[])}return x("div",{class:t.value,style:r.value},u,qr.STYLE|qr.CLASS)}return c.children}}}),vM=Lt(kq),nm=function(n){var e;return(e=n.target)==null?void 0:e.closest("td")},Pq=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"?Qr(l,c):c(l,a,n))):(e!=="$key"&&pt(l)&&"$value"in l&&(l=l.$value),[pt(l)?Qr(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)},bM=function(n,e){let t=null;return n.columns.forEach(r=>{r.id===e&&(t=r)}),t},Nq=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)},Vl=function(n,e){const t={};return(n||[]).forEach((r,o)=>{t[Kn(r,e)]={row:r,index:o}}),t};function Iq(n,e){const t={};let r;for(r in n)t[r]=n[r];for(r in e)if(wt(e,r)){const o=e[r];typeof o<"u"&&(t[r]=o)}return t}function Fy(n){return n===""||n!==void 0&&(n=Number.parseInt(n,10),Number.isNaN(n)&&(n="")),n}function yM(n){return n===""||n!==void 0&&(n=Fy(n),Number.isNaN(n)&&(n=80)),n}function Lq(n){return typeof n=="number"?n:typeof n=="string"?/^\d+(?:px)?$/.test(n)?Number.parseInt(n,10):n:null}function Rq(...n){return n.length===0?e=>e:n.length===1?n[0]:n.reduce((e,t)=>(...r)=>e(t(...r)))}function Du(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,Re(e.children)&&e.children.forEach(a=>{Du(n,a,t??!s)})};return lo(t)?t&&!s?i("add"):!t&&s&&i("remove"):i(s?"remove":"add"),r}function $q(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 Wr=null;function Dq(n,e,t,r){if((Wr==null?void 0:Wr.trigger)===t)return;Wr==null||Wr();const o=r==null?void 0:r.refs.tableWrapper,s=o==null?void 0:o.dataset.prefix,i={strategy:"fixed",...n.popperOptions},l=x(zr,{content:e,virtualTriggering:!0,virtualRef:t,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0,...n,popperOptions:i,onHide:()=>{Wr==null||Wr()}});l.appContext={...r.appContext,...r};const a=document.createElement("div");Wi(l,a),l.component.exposed.onOpen();const c=o==null?void 0:o.querySelector(`.${s}-scrollbar__wrap`);Wr=()=>{Wi(null,a),c==null||c.removeEventListener("scroll",Wr),Wr=null},Wr.trigger=t,c==null||c.addEventListener("scroll",Wr)}function wM(n){return n.children?Z5(n.children,wM):[n]}function px(n,e){return n+e.colSpan}const CM=(n,e,t,r)=>{let o=0,s=n;const i=t.states.columns.value;if(r){const a=wM(r[n]);o=i.slice(0,i.indexOf(a[0])).reduce(px,0),s=o+a.reduce(px,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}:{}},By=(n,e,t,r,o,s=0)=>{const i=[],{direction:l,start:a,after:c}=CM(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 gx(n,e){return n+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const zy=(n,e,t,r)=>{const{direction:o,start:s=0,after:i=0}=CM(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(gx,0):l.right=c.slice(i+1).reverse().reduce(gx,0),l},gc=(n,e)=>{n&&(Number.isNaN(n[e])||(n[e]=`${n[e]}px`))};function Vq(n){const e=vt(),t=z(!1),r=z([]);return{updateExpandRows:()=>{const a=n.data.value||[],c=n.rowKey.value;if(t.value)r.value=a.slice();else if(c){const u=Vl(r.value,c);r.value=a.reduce((d,f)=>{const h=Kn(f,c);return u[h]&&d.push(f),d},[])}else r.value=[]},toggleRowExpansion:(a,c)=>{Du(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=Vl(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?!!Vl(r.value,c)[Kn(a,c)]:r.value.includes(a)},states:{expandRows:r,defaultExpandAll:t}}}function Fq(n){const e=vt(),t=z(null),r=z(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=(C(u)||[]).find(h=>Kn(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=Kn(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 Bq(n){const e=z([]),t=z({}),r=z(16),o=z(!1),s=z({}),i=z("hasChildren"),l=z("children"),a=vt(),c=B(()=>{if(!n.rowKey.value)return{};const v=n.data.value||[];return d(v)}),u=B(()=>{const v=n.rowKey.value,w=Object.keys(s.value),b={};return w.length&&w.forEach(y=>{if(s.value[y].length){const S={children:[]};s.value[y].forEach(E=>{const T=Kn(E,v);S.children.push(T),E[i.value]&&!b[T]&&(b[T]={children:[]})}),b[y]=S}}),b}),d=v=>{const w=n.rowKey.value,b={};return $q(v,(y,S,E)=>{const T=Kn(y,w);Array.isArray(S)?b[T]={children:S.map(M=>Kn(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,S=u.value,E=Object.keys(y),T={};if(E.length){const M=C(t),O=[],A=(L,j)=>{if(v)return e.value?w||e.value.includes(j):!!(w||L!=null&&L.expanded);{const ne=w||e.value&&e.value.includes(j);return!!(L!=null&&L.expanded||ne)}};E.forEach(L=>{const j=M[L],ne={...y[L]};if(ne.expanded=A(j,L),ne.lazy){const{loaded:I=!1,loading:R=!1}=j||{};ne.loaded=!!I,ne.loading=!!R,O.push(L)}T[L]=ne});const k=Object.keys(S);o.value&&k.length&&O.length&&k.forEach(L=>{const j=M[L],ne=S[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=ne}else{const{loaded:I=!1,loading:R=!1}=j||{};T[L]={lazy:!0,loaded:!!I,loading:!!R,expanded:A(j,L),children:ne,level:""}}})}t.value=T,(b=a.store)==null||b.updateTableScrollY()};$e(()=>e.value,()=>{f(!0)}),$e(()=>c.value,()=>{f()}),$e(()=>u.value,()=>{f()});const h=v=>{e.value=v,f()},p=(v,w)=>{a.store.assertRowKey();const b=n.rowKey.value,y=Kn(v,b),S=y&&t.value[y];if(y&&S&&"expanded"in S){const E=S.expanded;w=typeof w>"u"?!S.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=Kn(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,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");t.value[w].loading=!1,t.value[w].loaded=!0,t.value[w].expanded=!0,S.length&&(s.value[w]=S),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 zq=(n,e)=>{const t=e.sortingColumn;return!t||typeof t.sortable=="string"?n:Pq(n,e.sortProp,e.sortOrder,t.sortMethod,t.sortBy)},ph=n=>{const e=[];return n.forEach(t=>{t.children&&t.children.length>0?e.push.apply(e,ph(t.children)):e.push(t)}),e};function jq(){var n;const e=vt(),{size:t}=Gs((n=e.proxy)==null?void 0:n.$props),r=z(null),o=z([]),s=z([]),i=z(!1),l=z([]),a=z([]),c=z([]),u=z([]),d=z([]),f=z([]),h=z([]),p=z([]),g=[],m=z(0),v=z(0),w=z(0),b=z(!1),y=z([]),S=z(!1),E=z(!1),T=z(null),M=z({}),O=z(null),A=z(null),k=z(null),L=z(null),j=z(null);$e(o,()=>e.state&&U(!1),{deep:!0});const ne=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},I=Ae=>{var Me;(Me=Ae.children)==null||Me.forEach(Je=>{Je.fixed=Ae.fixed,I(Je)})},R=()=>{l.value.forEach(he=>{I(he)}),u.value=l.value.filter(he=>he.fixed===!0||he.fixed==="left"),d.value=l.value.filter(he=>he.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 Ae=l.value.filter(he=>!he.fixed);a.value=[].concat(u.value).concat(Ae).concat(d.value);const Me=ph(Ae),Je=ph(u.value),it=ph(d.value);m.value=Me.length,v.value=Je.length,w.value=it.length,c.value=[].concat(Je).concat(Me).concat(it),i.value=u.value.length>0||d.value.length>0},U=(Ae,Me=!1)=>{Ae&&R(),Me?e.state.doLayout():e.state.debouncedUpdateLayout()},Z=Ae=>y.value.includes(Ae),Y=()=>{b.value=!1;const Ae=y.value;y.value=[],Ae.length&&e.emit("selection-change",[])},K=()=>{let Ae;if(r.value){Ae=[];const Me=Vl(y.value,r.value),Je=Vl(o.value,r.value);for(const it in Me)wt(Me,it)&&!Je[it]&&Ae.push(Me[it].row)}else Ae=y.value.filter(Me=>!o.value.includes(Me));if(Ae.length){const Me=y.value.filter(Je=>!Ae.includes(Je));y.value=Me,e.emit("selection-change",Me.slice())}},fe=()=>(y.value||[]).slice(),H=(Ae,Me=void 0,Je=!0)=>{if(Du(y.value,Ae,Me)){const he=(y.value||[]).slice();Je&&e.emit("select",he,Ae),e.emit("selection-change",he)}},se=()=>{var Ae,Me;const Je=E.value?!b.value:!(b.value||y.value.length);b.value=Je;let it=!1,he=0;const Ne=(Me=(Ae=e==null?void 0:e.store)==null?void 0:Ae.states)==null?void 0:Me.rowKey.value;o.value.forEach((Ve,lt)=>{const ct=lt+he;T.value?T.value.call(null,Ve,ct)&&Du(y.value,Ve,Je)&&(it=!0):Du(y.value,Ve,Je)&&(it=!0),he+=ye(Kn(Ve,Ne))}),it&&e.emit("selection-change",y.value?y.value.slice():[]),e.emit("select-all",(y.value||[]).slice())},ue=()=>{const Ae=Vl(y.value,r.value);o.value.forEach(Me=>{const Je=Kn(Me,r.value),it=Ae[Je];it&&(y.value[it.index]=Me)})},be=()=>{var Ae,Me,Je;if(((Ae=o.value)==null?void 0:Ae.length)===0){b.value=!1;return}let it;r.value&&(it=Vl(y.value,r.value));const he=function(ct){return it?!!it[Kn(ct,r.value)]:y.value.includes(ct)};let Ne=!0,Ve=0,lt=0;for(let ct=0,xn=(o.value||[]).length;ct{var Me;if(!e||!e.store)return 0;const{treeData:Je}=e.store.states;let it=0;const he=(Me=Je.value[Ae])==null?void 0:Me.children;return he&&(it+=he.length,he.forEach(Ne=>{it+=ye(Ne)})),it},W=(Ae,Me)=>{Array.isArray(Ae)||(Ae=[Ae]);const Je={};return Ae.forEach(it=>{M.value[it.id]=Me,Je[it.columnKey||it.id]=Me}),Je},ce=(Ae,Me,Je)=>{A.value&&A.value!==Ae&&(A.value.order=null),A.value=Ae,k.value=Me,L.value=Je},re=()=>{let Ae=C(s);Object.keys(M.value).forEach(Me=>{const Je=M.value[Me];if(!Je||Je.length===0)return;const it=bM({columns:c.value},Me);it&&it.filterMethod&&(Ae=Ae.filter(he=>Je.some(Ne=>it.filterMethod.call(null,Ne,he,it))))}),O.value=Ae},ve=()=>{o.value=zq(O.value,{sortingColumn:A.value,sortProp:k.value,sortOrder:L.value})},ke=(Ae=void 0)=>{Ae&&Ae.filter||re(),ve()},Se=Ae=>{const{tableHeaderRef:Me}=e.refs;if(!Me)return;const Je=Object.assign({},Me.filterPanels),it=Object.keys(Je);if(it.length)if(typeof Ae=="string"&&(Ae=[Ae]),Array.isArray(Ae)){const he=Ae.map(Ne=>Nq({columns:c.value},Ne));it.forEach(Ne=>{const Ve=he.find(lt=>lt.id===Ne);Ve&&(Ve.filteredValue=[])}),e.store.commit("filterChange",{column:he,values:[],silent:!0,multi:!0})}else it.forEach(he=>{const Ne=c.value.find(Ve=>Ve.id===he);Ne&&(Ne.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},$=()=>{A.value&&(ce(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:N,toggleRowExpansion:te,updateExpandRows:pe,states:ge,isRowExpanded:ae}=Vq({data:o,rowKey:r}),{updateTreeExpandKeys:Ee,toggleTreeExpansion:D,updateTreeData:V,loadOrToggle:J,states:le}=Bq({data:o,rowKey:r}),{updateCurrentRowData:Oe,updateCurrentRow:oe,setCurrentRowKey:Q,states:de}=Fq({data:o,rowKey:r});return{assertRowKey:ne,updateColumns:R,scheduleLayout:U,isSelected:Z,clearSelection:Y,cleanSelection:K,getSelectionRows:fe,toggleRowSelection:H,_toggleAllSelection:se,toggleAllSelection:null,updateSelectionByRowKey:ue,updateAllSelected:be,updateFilters:W,updateCurrentRow:oe,updateSort:ce,execFilter:re,execSort:ve,execQuery:ke,clearFilter:Se,clearSort:$,toggleRowExpansion:te,setExpandRowKeysAdapter:Ae=>{N(Ae),Ee(Ae)},setCurrentRowKey:Q,toggleRowExpansionAdapter:(Ae,Me)=>{c.value.some(({type:it})=>it==="expand")?te(Ae,Me):D(Ae,Me)},isRowExpanded:ae,updateExpandRows:pe,updateCurrentRowData:Oe,loadOrToggle:J,updateTreeData:V,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:S,selectOnIndeterminate:E,selectable:T,filters:M,filteredData:O,sortingColumn:A,sortProp:k,sortOrder:L,hoverRow:j,...ge,...le,...de}}}function Lv(n,e){return n.map(t=>{var r;return t.id===e.id?e:((r=t.children)!=null&&r.length&&(t.children=Lv(t.children,e)),t)})}function Rv(n){n.forEach(e=>{var t,r;e.no=(t=e.getColumnIndex)==null?void 0:t.call(e),(r=e.children)!=null&&r.length&&Rv(e.children)}),n.sort((e,t)=>e.no-t.no)}function Hq(){const n=vt(),e=jq();return{ns:Ge("table"),...e,mutations:{setData(i,l){const a=C(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),C(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=C(i._columns);let d=[];a?(a&&!a.children&&(a.children=[]),a.children.push(l),d=Lv(u,a)):(u.push(l),d=u),Rv(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&&(Rv(i._columns.value),n.$ready&&n.store.updateColumns())},removeColumn(i,l,a,c){const u=C(i._columns)||[];if(a)a.children.splice(a.children.findIndex(f=>f.id===l.id),1),nt(()=>{var f;((f=a.children)==null?void 0:f.length)===0&&delete a.children}),i._columns.value=Lv(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=C(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=C(a),f=C(c),h=C(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(){nt(()=>n.layout.updateScrollY.apply(n.layout))}}}const Vu={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 Uq(n,e){if(!n)throw new Error("Table is required.");const t=Hq();return t.toggleAllSelection=cc(t._toggleAllSelection,10),Object.keys(Vu).forEach(r=>{xM(SM(e,r),r,t)}),Wq(t,e),t}function Wq(n,e){Object.keys(Vu).forEach(t=>{$e(()=>SM(e,t),r=>{xM(r,t,n)})})}function xM(n,e,t){let r=n,o=Vu[e];typeof Vu[e]=="object"&&(o=o.key,r=r||Vu[e].default),t.states[o].value=r}function SM(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 Gq{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=z(null),this.scrollX=z(!1),this.scrollY=z(!1),this.bodyWidth=z(null),this.fixedWidth=z(null),this.rightFixedWidth=z(null),this.gutterWidth=0;for(const t in e)wt(e,t)&&(Wt(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(!xt)return;const r=this.table.vnode.el;if(e=Lq(e),this.height.value=Number(e),!r&&(e||e===0))return nt(()=>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(!xt)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}=sa,Kq=me({name:"ElTableFilterPanel",components:{ElCheckbox:sa,ElCheckboxGroup:qq,ElScrollbar:eg,ElTooltip:zr,ElIcon:dt,ArrowDown:uy,ArrowUp:HT},directives:{ClickOutside:DO},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(n){const e=vt(),{t}=ys(),r=Ge("table-filter"),o=e==null?void 0:e.parent;o.filterPanels.value[n.column.id]||(o.filterPanels.value[n.column.id]=e);const s=z(!1),i=z(null),l=B(()=>n.column&&n.column.filters),a=B(()=>n.column.filterClassName?`${r.b()} ${n.column.filterClassName}`:r.b()),c=B({get:()=>{var S;return(((S=n.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{u.value&&(typeof S<"u"&&S!==null?u.value.splice(0,1,S):u.value.splice(0,1))}}),u=B({get(){return n.column?n.column.filteredValue||[]:[]},set(S){n.column&&n.upDataColumn("filteredValue",S)}}),d=B(()=>n.column?n.column.filterMultiple:!0),f=S=>S.value===c.value,h=()=>{s.value=!1},p=S=>{S.stopPropagation(),s.value=!s.value},g=()=>{s.value=!1},m=()=>{b(u.value),h()},v=()=>{u.value=[],b(u.value),h()},w=S=>{c.value=S,b(typeof S<"u"&&S!==null?u.value:[]),h()},b=S=>{n.store.commit("filterChange",{column:n.column,values:S}),n.store.updateAllSelected()};$e(s,S=>{n.column&&n.upDataColumn("filterOpened",S)},{immediate:!0});const y=B(()=>{var S,E;return(E=(S=i.value)==null?void 0:S.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}}}),Yq={key:0},Jq=["disabled"],Xq=["label","onClick"];function Zq(n,e,t,r,o,s){const i=ot("el-checkbox"),l=ot("el-checkbox-group"),a=ot("el-scrollbar"),c=ot("arrow-up"),u=ot("arrow-down"),d=ot("el-icon"),f=ot("el-tooltip"),h=$b("click-outside");return P(),we(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?(P(),G("div",Yq,[F("div",{class:X(n.ns.e("content"))},[x(a,{"wrap-class":n.ns.e("wrap")},{default:_(()=>[x(l,{modelValue:n.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=p=>n.filteredValue=p),class:X(n.ns.e("checkbox-group"))},{default:_(()=>[(P(!0),G(Le,null,Tt(n.filters,p=>(P(),we(i,{key:p.value,value:p.value},{default:_(()=>[ee(ie(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),F("div",{class:X(n.ns.e("bottom"))},[F("button",{class:X({[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))},ie(n.t("el.table.confirmFilter")),11,Jq),F("button",{type:"button",onClick:e[2]||(e[2]=(...p)=>n.handleReset&&n.handleReset(...p))},ie(n.t("el.table.resetFilter")),1)],2)])):(P(),G("ul",{key:1,class:X(n.ns.e("list"))},[F("li",{class:X([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))},ie(n.t("el.table.clearFilter")),3),(P(!0),G(Le,null,Tt(n.filters,p=>(P(),G("li",{key:p.value,class:X([n.ns.e("list-item"),n.ns.is("active",n.isActive(p))]),label:p.value,onClick:g=>n.handleSelect(p.value)},ie(p.text),11,Xq))),128))],2))]),default:_(()=>[Fe((P(),G("span",{class:X([`${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))},[x(d,null,{default:_(()=>[n.column.filterOpened?(P(),we(c,{key:0})):(P(),we(u,{key:1}))]),_:1})],2)),[[h,n.hideFilterPanel,n.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Qq=Xe(Kq,[["render",Zq],["__file","filter-panel.vue"]]);function EM(n){const e=vt();Fd(()=>{t.value.addObserver(e)}),rt(()=>{r(t.value),o(t.value)}),pa(()=>{r(t.value),o(t.value)}),vs(()=>{t.value.removeObserver(e)});const t=B(()=>{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=z(null),a=z(!1),c=z({}),u=(g,m)=>{if(xt&&!(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}`),S=y.getBoundingClientRect(),E=S.left-b+30;na(y,"noclick"),c.value={startMouseLeft:g.clientX,startLeft:S.right-b,startColumnLeft:S.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=A=>{const k=A.clientX-c.value.startMouseLeft,L=c.value.startLeft+k;T.style.left=`${Math.max(E,L)}px`},O=()=>{if(a.value){const{startColumnLeft:A,startLeft:k}=c.value,j=Number.parseInt(T.style.left,10)-A;m.width=m.realWidth=j,v==null||v.emit("header-dragend",m.width,k-A,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(()=>{us(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(!ao(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",Ha(w,"is-sortable")&&(w.style.cursor="col-resize"),l.value=m):a.value||(y.cursor="",Ha(w,"is-sortable")&&(w.style.cursor="pointer"),l.value=null)}},f=()=>{xt&&(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&&Ha(y,"noclick")){us(y,"noclick");return}if(!m.sortable)return;const S=n.store.states;let E=S.sortProp.value,T;const M=S.sortingColumn.value;(M!==m||M===m&&M.order===null)&&(M&&(M.order=null),S.sortingColumn.value=m,E=m.property),b?T=m.order=b:T=m.order=null,S.sortProp.value=E,S.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 tK(n){const e=De(Cs),t=Ge("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=zy(a,u.fixed,n.store,c);return gc(h,"left"),gc(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(l,a,c,u)=>{const d=By(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 _M=n=>{const e=[];return n.forEach(t=>{t.children?(e.push(t),e.push.apply(e,_M(t.children))):e.push(t)}),e},TM=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 nK(n){const e=De(Cs),t=B(()=>TM(n.store.states.originColumns.value));return{isGroup:B(()=>{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 rK=me({name:"ElTableHeader",components:{ElCheckbox:sa},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(n,{emit:e}){const t=vt(),r=De(Cs),o=Ge("table"),s=z({}),{onColumnsChange:i,onScrollableChange:l}=EM(r);rt(async()=>{await nt(),await nt();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}=eK(n,e),{getHeaderRowStyle:g,getHeaderRowClass:m,getHeaderCellStyle:v,getHeaderCellClass:w}=tK(n),{isGroup:b,toggleAllSelection:y,columnRows:S}=nK(n);return t.state={onColumnsChange:i,onScrollableChange:l},t.filterPanels=s,{ns:o,filterPanels:s,onColumnsChange:i,onScrollableChange:l,columnRows:S,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 Ye("thead",{class:{[n.is("group")]:e}},t.map((m,v)=>Ye("tr",{class:s(v),key:v,style:i(v)},m.map((w,b)=>(w.rowSpan>g&&(g=w.rowSpan),Ye("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},[Ye("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&&Ye("span",{onClick:y=>d(y,w),class:"caret-wrapper"},[Ye("i",{onClick:y=>d(y,w,"ascending"),class:"sort-caret ascending"}),Ye("i",{onClick:y=>d(y,w,"descending"),class:"sort-caret descending"})]),w.filterable&&Ye(Qq,{store:h,placement:w.filterPlacement||"bottom-start",column:w,upDataColumn:(y,S)=>{w[y]=S}})])]))))))}});function rm(n,e,t=.01){return n-e>t}function oK(n){const e=De(Cs),t=z(""),r=z(Ye("div")),o=(p,g,m)=>{var v;const w=e,b=nm(p);let y;const S=(v=w==null?void 0:w.vnode.el)==null?void 0:v.dataset.prefix;b&&(y=hx({columns:n.store.states.columns.value},b,S),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=cc(p=>{n.store.commit("setHoverRow",p)},30),c=cc(()=>{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=nm(p),y=(v=w==null?void 0:w.vnode.el)==null?void 0:v.dataset.prefix;if(b){const Y=hx({columns:n.store.states.columns.value},b,y);b.rowSpan>1&&d(b.rowSpan,p,na);const K=w.hoverState={cell:b,column:Y,row:g};w==null||w.emit("cell-mouse-enter",K.row,K.column,K.cell,p)}if(!m)return;const S=p.target.querySelector(".cell");if(!(Ha(S,`${y}-tooltip`)&&S.childNodes.length))return;const E=document.createRange();E.setStart(S,0),E.setEnd(S,S.childNodes.length);let{width:T,height:M}=E.getBoundingClientRect();const O=T-Math.floor(T),{width:A,height:k}=S.getBoundingClientRect();O<.001&&(T=Math.floor(T)),M-Math.floor(M)<.001&&(M=Math.floor(M));const{top:j,left:ne,right:I,bottom:R}=u(S),U=ne+I,Z=j+R;(rm(T+U,A)||rm(M+Z,k)||rm(S.scrollWidth,A))&&Dq(m,b.innerText||b.textContent,b,w)},handleCellMouseLeave:p=>{const g=nm(p);if(!g)return;g.rowSpan>1&&d(g.rowSpan,p,us);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 sK(n){const e=De(Cs),t=Ge("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=zy(u,n==null?void 0:n.fixed,n.store);return gc(g,"left"),gc(g,"right"),Object.assign({},p,g)},getCellClass:(c,u,d,f,h)=>{const p=By(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 iK(n){const e=De(Cs),t=Ge("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:s,handleMouseEnter:i,handleMouseLeave:l,handleCellMouseEnter:a,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=oK(n),{getRowStyle:f,getRowClass:h,getCellStyle:p,getCellClass:g,getSpan:m,getColspanRealWidth:v}=sK(n),w=B(()=>n.store.states.columns.value.findIndex(({type:T})=>T==="default")),b=(T,M)=>{const O=e.props.rowKey;return O?Kn(T,O):M},y=(T,M,O,A=!1)=>{const{tooltipEffect:k,tooltipOptions:L,store:j}=n,{indent:ne,columns:I}=j.states,R=h(T,M);let U=!0;return O&&(R.push(t.em("row",`level-${O.level}`)),U=O.display),Ye("tr",{style:[U?null:{display:"none"},f(T,M)],class:R,key:b(T,M),onDblclick:Y=>r(Y,T),onClick:Y=>o(Y,T),onContextmenu:Y=>s(Y,T),onMouseenter:()=>i(M),onMouseleave:l},I.value.map((Y,K)=>{const{rowspan:fe,colspan:H}=m(T,Y,M,K);if(!fe||!H)return null;const se=Object.assign({},Y);se.realWidth=v(I.value,H,K);const ue={store:n.store,_self:n.context||e,column:se,row:T,$index:M,cellIndex:K,expanded:A};K===w.value&&O&&(ue.treeNode={indent:O.level*ne.value,level:O.level},typeof O.expanded=="boolean"&&(ue.treeNode.expanded=O.expanded,"loading"in O&&(ue.treeNode.loading=O.loading),"noLazyChildren"in O&&(ue.treeNode.noLazyChildren=O.noLazyChildren)));const be=`${b(T,M)},${K}`,ye=se.columnKey||se.rawColumnKey||"",W=S(K,Y,ue),ce=Y.showOverflowTooltip&&on({effect:k},L,Y.showOverflowTooltip);return Ye("td",{style:p(M,K,T,Y),class:g(M,K,T,Y,H-1),key:`${ye}${be}`,rowspan:fe,colspan:H,onMouseenter:re=>a(re,T,ce),onMouseleave:c},[W])}))},S=(T,M,O)=>M.renderCell(O);return{wrappedRowRender:(T,M)=>{const O=n.store,{isRowExpanded:A,assertRowKey:k}=O,{treeData:L,lazyTreeNodeMap:j,childrenColumnName:ne,rowKey:I}=O.states,R=O.states.columns.value;if(R.some(({type:Z})=>Z==="expand")){const Z=A(T),Y=y(T,M,void 0,Z),K=e.renderExpanded;return Z?K?[[Y,Ye("tr",{key:`expanded-row__${Y.key}`},[Ye("td",{colspan:R.length,class:`${t.e("cell")} ${t.e("expanded-cell")}`},[K({row:T,$index:M,store:O,expanded:Z})])])]]:Y:[[Y]]}else if(Object.keys(L.value).length){k();const Z=Kn(T,I.value);let Y=L.value[Z],K=null;Y&&(K={expanded:Y.expanded,level:Y.level,display:!0},typeof Y.lazy=="boolean"&&(typeof Y.loaded=="boolean"&&Y.loaded&&(K.noLazyChildren=!(Y.children&&Y.children.length)),K.loading=Y.loading));const fe=[y(T,M,K)];if(Y){let H=0;const se=(be,ye)=>{be&&be.length&&ye&&be.forEach(W=>{const ce={display:ye.display&&ye.expanded,level:ye.level+1,expanded:!1,noLazyChildren:!1,loading:!1},re=Kn(W,I.value);if(re==null)throw new Error("For nested data item, row-key is required.");if(Y={...L.value[re]},Y&&(ce.expanded=Y.expanded,Y.level=Y.level||ce.level,Y.display=!!(Y.expanded&&ce.display),typeof Y.lazy=="boolean"&&(typeof Y.loaded=="boolean"&&Y.loaded&&(ce.noLazyChildren=!(Y.children&&Y.children.length)),ce.loading=Y.loading)),H++,fe.push(y(W,M+H,ce)),Y){const ve=j.value[re]||W[ne.value];se(ve,Y)}})};Y.display=!0;const ue=j.value[Z]||T[ne.value];se(ue,Y)}return fe}else return y(T,M,void 0)},tooltipContent:u,tooltipTrigger:d}}const lK={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 aK=me({name:"ElTableBody",props:lK,setup(n){const e=vt(),t=De(Cs),r=Ge("table"),{wrappedRowRender:o,tooltipContent:s,tooltipTrigger:i}=iK(n),{onColumnsChange:l,onScrollableChange:a}=EM(t),c=[];return $e(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,S)=>{var E,T;return((E=m[S])==null?void 0:E.colSpan)>1&&(v=(T=m[S])==null?void 0:T.colSpan),y.nodeName!=="TD"&&v===0&&b.push(S),v>0&&v--,b},[]).forEach(b=>{var y;for(g=u;g>0;){const S=(y=p[g-1])==null?void 0:y.childNodes;if(S[b]&&S[b].nodeName==="TD"&&S[b].rowSpan>1){na(S[b],"hover-cell"),c.push(S[b]);break}g--}})}else c.forEach(v=>us(v,"hover-cell")),c.length=0;!n.store.states.isComplex.value||!xt||$6(()=>{const v=p[d],w=p[u];v&&!v.classList.contains("hover-fixed-row")&&us(v,"hover-row"),w&&na(w,"hover-row")})}),vs(()=>{var u;(u=Wr)==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 Ye("tbody",{tabIndex:-1},[t.reduce((r,o)=>r.concat(n(o,r.length)),[])])}});function cK(){const n=De(Cs),e=n==null?void 0:n.store,t=B(()=>e.states.fixedLeafColumnsLength.value),r=B(()=>e.states.rightFixedColumns.value.length),o=B(()=>e.states.columns.value.length),s=B(()=>e.states.fixedColumns.value.length),i=B(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:t,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:s,rightFixedCount:i,columns:e.states.columns}}function uK(n){const{columns:e}=cK(),t=Ge("table");return{getCellClasses:(s,i)=>{const l=s[i],a=[t.e("cell"),l.id,l.align,l.labelClassName,...By(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=zy(i,s.fixed,n.store);return gc(l,"left"),gc(l,"right"),l},columns:e}}var dK=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}=uK(n);return{ns:Ge("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)}),Ye(Ye("tfoot",[Ye("tr",{},[...n.map((l,a)=>Ye("td",{key:a,colspan:l.colSpan,rowspan:l.rowSpan,class:t(n,a),style:e(l,a)},[Ye("div",{class:["cell",l.labelClassName]},[i[a]])]))])]))}});function fK(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 hK(n,e,t,r){const o=z(!1),s=z(null),i=z(!1),l=Y=>{i.value=Y},a=z({width:null,height:null,headerHeight:null}),c=z(!1),u={display:"inline-block",verticalAlign:"middle"},d=z(),f=z(0),h=z(0),p=z(0),g=z(0),m=z(0);rs(()=>{e.setHeight(n.height)}),rs(()=>{e.setMaxHeight(n.maxHeight)}),$e(()=>[n.currentRowKey,t.states.rowKey],([Y,K])=>{!C(K)||!C(Y)||t.setCurrentRowKey(`${Y}`)},{immediate:!0}),$e(()=>n.data,Y=>{r.store.commit("setData",Y)},{immediate:!0,deep:!0}),rs(()=>{n.expandRowKeys&&t.setExpandRowKeysAdapter(n.expandRowKeys)});const v=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},w=(Y,K)=>{const{pixelX:fe,pixelY:H}=K;Math.abs(fe)>=Math.abs(H)&&(r.refs.bodyWrapper.scrollLeft+=K.pixelX/5)},b=B(()=>n.height||n.maxHeight||t.states.fixedColumns.value.length>0||t.states.rightFixedColumns.value.length>0),y=B(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),S=()=>{b.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(O)};rt(async()=>{await nt(),t.updateColumns(),A(),requestAnimationFrame(S);const Y=r.vnode.el,K=r.refs.headerWrapper;n.flexible&&Y&&Y.parentElement&&(Y.parentElement.style.minWidth="0"),a.value={width:d.value=Y.offsetWidth,height:Y.offsetHeight,headerHeight:n.showHeader&&K?K.offsetHeight:null},t.states.columns.value.forEach(fe=>{fe.filteredValue&&fe.filteredValue.length&&r.store.commit("filterChange",{column:fe,values:fe.filteredValue,silent:!0})}),r.$ready=!0});const E=(Y,K)=>{if(!Y)return;const fe=Array.from(Y.classList).filter(H=>!H.startsWith("is-scrolling-"));fe.push(e.scrollX.value?K:"is-scrolling-none"),Y.className=fe.join(" ")},T=Y=>{const{tableWrapper:K}=r.refs;E(K,Y)},M=Y=>{const{tableWrapper:K}=r.refs;return!!(K&&K.classList.contains(Y))},O=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const ye="is-scrolling-none";M(ye)||T(ye);return}const Y=r.refs.scrollBarRef.wrapRef;if(!Y)return;const{scrollLeft:K,offsetWidth:fe,scrollWidth:H}=Y,{headerWrapper:se,footerWrapper:ue}=r.refs;se&&(se.scrollLeft=K),ue&&(ue.scrollLeft=K);const be=H-fe-1;K>=be?T("is-scrolling-right"):T(K===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&vn(r.refs.scrollBarRef.wrapRef,"scroll",O,{passive:!0}),n.fit?dr(r.vnode.el,k):vn(window,"resize",k),dr(r.refs.bodyWrapper,()=>{var Y,K;k(),(K=(Y=r.refs)==null?void 0:Y.scrollBarRef)==null||K.update()}))},k=()=>{var Y,K,fe,H;const se=r.vnode.el;if(!r.$ready||!se)return;let ue=!1;const{width:be,height:ye,headerHeight:W}=a.value,ce=d.value=se.offsetWidth;be!==ce&&(ue=!0);const re=se.offsetHeight;(n.height||b.value)&&ye!==re&&(ue=!0);const ve=n.tableLayout==="fixed"?r.refs.headerWrapper:(Y=r.refs.tableHeaderRef)==null?void 0:Y.$el;n.showHeader&&(ve==null?void 0:ve.offsetHeight)!==W&&(ue=!0),f.value=((K=r.refs.tableWrapper)==null?void 0:K.scrollHeight)||0,p.value=(ve==null?void 0:ve.scrollHeight)||0,g.value=((fe=r.refs.footerWrapper)==null?void 0:fe.offsetHeight)||0,m.value=((H=r.refs.appendWrapper)==null?void 0:H.offsetHeight)||0,h.value=f.value-p.value-g.value-m.value,ue&&(a.value={width:ce,height:re,headerHeight:n.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},S())},L=po(),j=B(()=>{const{bodyWidth:Y,scrollY:K,gutterWidth:fe}=e;return Y.value?`${Y.value-(K.value?fe:0)}px`:""}),ne=B(()=>n.maxHeight?"fixed":n.tableLayout),I=B(()=>{if(n.data&&n.data.length)return null;let Y="100%";n.height&&h.value&&(Y=`${h.value}px`);const K=d.value;return{width:K?`${K}px`:"",height:Y}}),R=B(()=>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`}:{}),U=B(()=>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:I,handleFixedMousewheel:(Y,K)=>{const fe=r.refs.bodyWrapper;if(Math.abs(K.spinY)>0){const H=fe.scrollTop;K.pixelY<0&&H!==0&&Y.preventDefault(),K.pixelY>0&&fe.scrollHeight-fe.clientHeight>H&&Y.preventDefault(),fe.scrollTop+=Math.ceil(K.pixelY/5)}else fe.scrollLeft+=Math.ceil(K.pixelX/5)},resizeProxyVisible:i,bodyWidth:j,resizeState:a,doLayout:S,tableBodyStyles:y,tableLayout:ne,scrollbarViewStyle:u,tableInnerStyle:R,scrollbarStyle:U}}function pK(n){const e=z(),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)};rt(()=>{t()}),vs(()=>{var r;(r=e.value)==null||r.disconnect()})}var gK={data:{type:Array,default:()=>[]},size:Xs,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 OM(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 Ye("colgroup",{},t.map(o=>Ye("col",r(o))))}OM.props=["columns","tableLayout"];const mK=()=>{const n=z(),e=(s,i)=>{const l=n.value;l&&l.scrollTo(s,i)},t=(s,i)=>{const l=n.value;l&&_t(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 vK=1;const bK=me({name:"ElTable",directives:{Mousewheel:CU},components:{TableHeader:rK,TableBody:aK,TableFooter:dK,ElScrollbar:eg,hColgroup:OM},props:gK,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}=ys(),t=Ge("table"),r=vt();Ut(Cs,r);const o=Uq(r,n);r.store=o;const s=new Gq({store:r.store,table:r,fit:n.fit,showHeader:n.showHeader});r.layout=s;const i=B(()=>(o.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,sort:g}=fK(o),{isHidden:m,renderExpanded:v,setDragVisible:w,isGroup:b,handleMouseLeave:y,handleHeaderFooterMousewheel:S,tableSize:E,emptyBlockStyle:T,handleFixedMousewheel:M,resizeProxyVisible:O,bodyWidth:A,resizeState:k,doLayout:L,tableBodyStyles:j,tableLayout:ne,scrollbarViewStyle:I,tableInnerStyle:R,scrollbarStyle:U}=hK(n,s,o,r),{scrollBarRef:Z,scrollTo:Y,setScrollLeft:K,setScrollTop:fe}=mK(),H=cc(L,50),se=`${t.namespace.value}-table_${vK++}`;r.tableId=se,r.state={isGroup:b,resizeState:k,doLayout:L,debouncedUpdateLayout:H};const ue=B(()=>n.sumText||e("el.table.sumText")),be=B(()=>n.emptyText||e("el.table.emptyText")),ye=B(()=>TM(o.states.originColumns.value)[0]);return pK(r),{ns:t,layout:s,store:o,columns:ye,handleHeaderFooterMousewheel:S,handleMouseLeave:y,tableId:se,tableSize:E,isHidden:m,isEmpty:i,renderExpanded:v,resizeProxyVisible:O,resizeState:k,isGroup:b,bodyWidth:A,tableBodyStyles:j,emptyBlockStyle:T,debouncedUpdateLayout:H,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:ue,computedEmptyText:be,tableLayout:ne,scrollbarViewStyle:I,tableInnerStyle:R,scrollbarStyle:U,scrollBarRef:Z,scrollTo:Y,setScrollLeft:K,setScrollTop:fe}}}),yK=["data-prefix"],wK={ref:"hiddenColumns",class:"hidden-columns"};function CK(n,e,t,r,o,s){const i=ot("hColgroup"),l=ot("table-header"),a=ot("table-body"),c=ot("table-footer"),u=ot("el-scrollbar"),d=$b("mousewheel");return P(),G("div",{ref:"tableWrapper",class:X([{[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:bt(n.style),"data-prefix":n.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...f)=>n.handleMouseLeave&&n.handleMouseLeave(...f))},[F("div",{class:X(n.ns.e("inner-wrapper")),style:bt(n.tableInnerStyle)},[F("div",wK,[_e(n.$slots,"default")],512),n.showHeader&&n.tableLayout==="fixed"?Fe((P(),G("div",{key:0,ref:"headerWrapper",class:X(n.ns.e("header-wrapper"))},[F("table",{ref:"tableHeader",class:X(n.ns.e("header")),style:bt(n.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[x(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),x(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]]):Ce("v-if",!0),F("div",{ref:"bodyWrapper",class:X(n.ns.e("body-wrapper"))},[x(u,{ref:"scrollBarRef","view-style":n.scrollbarViewStyle,"wrap-style":n.scrollbarStyle,always:n.scrollbarAlwaysOn},{default:_(()=>[F("table",{ref:"tableBody",class:X(n.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:bt({width:n.bodyWidth,tableLayout:n.tableLayout})},[x(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),n.showHeader&&n.tableLayout==="auto"?(P(),we(l,{key:0,ref:"tableHeaderRef",class:X(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"])):Ce("v-if",!0),x(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"?(P(),we(c,{key:1,class:X(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"])):Ce("v-if",!0)],6),n.isEmpty?(P(),G("div",{key:0,ref:"emptyBlock",style:bt(n.emptyBlockStyle),class:X(n.ns.e("empty-block"))},[F("span",{class:X(n.ns.e("empty-text"))},[_e(n.$slots,"empty",{},()=>[ee(ie(n.computedEmptyText),1)])],2)],6)):Ce("v-if",!0),n.$slots.append?(P(),G("div",{key:1,ref:"appendWrapper",class:X(n.ns.e("append-wrapper"))},[_e(n.$slots,"append")],2)):Ce("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),n.showSummary&&n.tableLayout==="fixed"?Fe((P(),G("div",{key:1,ref:"footerWrapper",class:X(n.ns.e("footer-wrapper"))},[F("table",{class:X(n.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:bt(n.tableBodyStyles)},[x(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),x(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)),[[Qe,!n.isEmpty],[d,n.handleHeaderFooterMousewheel]]):Ce("v-if",!0),n.border||n.isGroup?(P(),G("div",{key:2,class:X(n.ns.e("border-left-patch"))},null,2)):Ce("v-if",!0)],6),Fe(F("div",{ref:"resizeProxy",class:X(n.ns.e("column-resize-proxy"))},null,2),[[Qe,n.resizeProxyVisible]])],46,yK)}var xK=Xe(bK,[["render",CK],["__file","table.vue"]]);const SK={selection:"table-column--selection",expand:"table__expand-column"},EK={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:""}},_K=n=>SK[n]||"",TK={selection:{renderHeader({store:n,column:e}){function t(){return n.states.data.value&&n.states.data.value.length===0}return Ye(sa,{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 Ye(sa,{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)),Ye("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")),Ye("div",{class:o,onClick:function(i){i.stopPropagation(),e.toggleRowExpansion(n)}},{default:()=>[Ye(dt,null,{default:()=>[Ye(Kp)]})]})},sortable:!1,resizable:!1}};function OK({row:n,column:e,$index:t}){var r;const o=e.property,s=o&&ih(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 MK({row:n,treeNode:e,store:t},r=!1){const{ns:o}=t;if(!e)return r?[Ye("span",{class:o.e("placeholder")})]:null;const s=[],i=function(l){l.stopPropagation(),!e.loading&&t.loadOrToggle(n)};if(e.indent&&s.push(Ye("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=Kp;e.loading&&(a=py),s.push(Ye("div",{class:l,onClick:i},{default:()=>[Ye(dt,{class:{[o.is("loading")]:e.loading}},{default:()=>[Ye(a)]})]}))}else s.push(Ye("span",{class:o.e("placeholder")}));return s}function mx(n,e){return n.reduce((t,r)=>(t[r]=r,t),e)}function AK(n,e){const t=vt();return{registerComplexWatchers:()=>{const s=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},l=mx(s,i);Object.keys(l).forEach(a=>{const c=i[a];wt(e,c)&&$e(()=>e[c],u=>{let d=u;c==="width"&&a==="realWidth"&&(d=Fy(u)),c==="minWidth"&&a==="realMinWidth"&&(d=yM(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=mx(s,i);Object.keys(l).forEach(a=>{const c=i[a];wt(e,c)&&$e(()=>e[c],u=>{t.columnConfig.value[a]=u})})}}}function kK(n,e,t){const r=vt(),o=z(""),s=z(!1),i=z(),l=z(),a=Ge("table");rs(()=>{i.value=n.align?`is-${n.align}`:null,i.value}),rs(()=>{l.value=n.headerAlign?`is-${n.headerAlign}`:i.value,l.value});const c=B(()=>{let y=r.vnode.vParent||r.parent;for(;y&&!y.tableId&&!y.columnId;)y=y.vnode.vParent||y.parent;return y}),u=B(()=>{const{store:y}=r.parent;if(!y)return!1;const{treeData:S}=y.states,E=S.value;return E&&Object.keys(E).length>0}),d=z(Fy(n.width)),f=z(yM(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 S=y.type,E=TK[S]||{};Object.keys(E).forEach(M=>{const O=E[M];M!=="className"&&O!==void 0&&(y[M]=O)});const T=_K(S);if(T){const M=`${C(a.namespace)}-${T}`;y.className=y.className?`${y.className} ${M}`:M}return y},g=y=>{Array.isArray(y)?y.forEach(E=>S(E)):S(y);function S(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,_e(e,"header",E,()=>[y.label])));let S=y.renderCell;return y.type==="expand"?(y.renderCell=E=>Ye("div",{class:"cell"},[S(E)]),t.value.renderExpanded=E=>e.default?e.default(E):e.default):(S=S||OK,y.renderCell=E=>{let T=null;if(e.default){const j=e.default(E);T=j.some(ne=>ne.type!==Gn)?j:S(E)}else T=S(E);const{columns:M}=t.value.store.states,O=M.value.findIndex(j=>j.type==="default"),A=u.value&&E.cellIndex===O,k=MK(E,A),L={class:"cell",style:{}};return y.showOverflowTooltip&&(L.class=`${L.class} ${C(a.namespace)}-tooltip`,L.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),g(T),Ye("div",L,[k,T])}),y},getPropsData:(...y)=>y.reduce((S,E)=>(Array.isArray(E)&&E.forEach(T=>{S[T]=n[T]}),S),{}),getColumnElIndex:(y,S)=>Array.prototype.indexOf.call(y,S),updateColumnOrder:()=>{t.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var PK={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 NK=1;var MM=me({name:"ElTableColumn",components:{ElCheckbox:sa},props:PK,setup(n,{slots:e}){const t=vt(),r=z({}),o=B(()=>{let b=t.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:s,registerComplexWatchers:i}=AK(o,n),{columnId:l,isSubColumn:a,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:h,getPropsData:p,getColumnElIndex:g,realAlign:m,updateColumnOrder:v}=kK(n,e,o),w=u.value;l.value=`${w.tableId||w.columnId}_column_${NK++}`,Fd(()=>{a.value=o.value!==w;const b=n.type||"default",y=n.sortable===""?!0:n.sortable,S=yr(n.showOverflowTooltip)?w.props.showOverflowTooltip:n.showOverflowTooltip,E={...EK[b],id:l.value,type:b,property:n.prop||n.property,align:m,headerAlign:c,showOverflowTooltip:S,filterable:n.filters||n.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:y,index:n.index,rawColumnKey:t.vnode.key};let k=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);k=Iq(E,k),k=Rq(h,d,f)(k),r.value=k,s(),i()}),rt(()=>{var b;const y=u.value,S=a.value?y.vnode.el.children:(b=y.refs.hiddenColumns)==null?void 0:b.children,E=()=>g(S||[],t.vnode.el);r.value.getColumnIndex=E,E()>-1&&o.value.store.commit("insertColumn",r.value,a.value?y.columnConfig.value:null,v)}),wn(()=>{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===Le&&Array.isArray(i.children)&&i.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!ft(l==null?void 0:l.children)&&o.push(l)});return Ye("div",o)}catch{return Ye("div",[])}}});const tf=Lt(xK,{TableColumn:MM}),nf=Or(MM),ig=Symbol("tabsRootContextKey"),IK=tt({tabs:{type:Be(Array),default:()=>xo([])}}),AM="ElTabBar",LK=me({name:AM}),RK=me({...LK,props:IK,setup(n,{expose:e}){const t=n,r=vt(),o=De(ig);o||ll(AM,"");const s=Ge("tabs"),i=z(),l=z(),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${Ai(p)}`],d=w[`client${Ai(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${Ai(h)}(${u}px)`}},c=()=>l.value=a();return $e(()=>t.tabs,async()=>{await nt(),c()},{immediate:!0}),dr(i,()=>c()),e({ref:i,update:c}),(u,d)=>(P(),G("div",{ref_key:"barRef",ref:i,class:X([C(s).e("active-bar"),C(s).is(C(o).props.tabPosition)]),style:bt(l.value)},null,6))}});var $K=Xe(RK,[["__file","tab-bar.vue"]]);const DK=tt({panes:{type:Be(Array),default:()=>xo([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),VK={tabClick:(n,e,t)=>t instanceof Event,tabRemove:(n,e)=>e instanceof Event},vx="ElTabNav",FK=me({name:vx,props:DK,emits:VK,setup(n,{expose:e,emit:t}){const r=vt(),o=De(ig);o||ll(vx,"");const s=Ge("tabs"),i=fD(),l=_D(),a=z(),c=z(),u=z(),d=z(),f=z(!1),h=z(0),p=z(!1),g=z(!0),m=B(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),v=B(()=>({transform:`translate${m.value==="width"?"X":"Y"}(-${h.value}px)`})),w=()=>{if(!a.value)return;const O=a.value[`offset${Ai(m.value)}`],A=h.value;if(!A)return;const k=A>O?A-O:0;h.value=k},b=()=>{if(!a.value||!c.value)return;const O=c.value[`offset${Ai(m.value)}`],A=a.value[`offset${Ai(m.value)}`],k=h.value;if(O-k<=A)return;const L=O-k>A*2?k+A:O-A;h.value=L},y=async()=>{const O=c.value;if(!f.value||!u.value||!a.value||!O)return;await nt();const A=u.value.querySelector(".is-active");if(!A)return;const k=a.value,L=["top","bottom"].includes(o.props.tabPosition),j=A.getBoundingClientRect(),ne=k.getBoundingClientRect(),I=L?O.offsetWidth-ne.width:O.offsetHeight-ne.height,R=h.value;let U=R;L?(j.leftne.right&&(U=R+j.right-ne.right)):(j.topne.bottom&&(U=R+(j.bottom-ne.bottom))),U=Math.max(U,0),h.value=Math.min(U,I)},S=()=>{var O;if(!c.value||!a.value)return;n.stretch&&((O=d.value)==null||O.update());const A=c.value[`offset${Ai(m.value)}`],k=a.value[`offset${Ai(m.value)}`],L=h.value;k0&&(h.value=0))},E=O=>{const A=O.code,{up:k,down:L,left:j,right:ne}=mn;if(![k,L,j,ne].includes(A))return;const I=Array.from(O.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),R=I.indexOf(O.target);let U;A===j||A===k?R===0?U=I.length-1:U=R-1:R{g.value&&(p.value=!0)},M=()=>p.value=!1;return $e(i,O=>{O==="hidden"?g.value=!1:O==="visible"&&setTimeout(()=>g.value=!0,50)}),$e(l,O=>{O?setTimeout(()=>g.value=!0,50):g.value=!1}),dr(u,S),rt(()=>setTimeout(()=>y(),0)),pa(()=>S()),e({scrollToActiveTab:y,removeFocus:M}),$e(()=>n.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const O=f.value?[x("span",{class:[s.e("nav-prev"),s.is("disabled",!f.value.prev)],onClick:w},[x(dt,null,{default:()=>[x(jT,null,null)]})]),x("span",{class:[s.e("nav-next"),s.is("disabled",!f.value.next)],onClick:b},[x(dt,null,{default:()=>[x(Kp,null,null)]})])]:null,A=n.panes.map((k,L)=>{var j,ne,I,R;const U=k.uid,Z=k.props.disabled,Y=(ne=(j=k.props.name)!=null?j:k.index)!=null?ne:`${L}`,K=!Z&&(k.isClosable||n.editable);k.index=`${L}`;const fe=K?x(dt,{class:"is-icon-close",onClick:ue=>t("tabRemove",k,ue)},{default:()=>[x(ra,null,null)]}):null,H=((R=(I=k.slots).label)==null?void 0:R.call(I))||k.props.label,se=!Z&&k.active?0:-1;return x("div",{ref:`tab-${U}`,class:[s.e("item"),s.is(o.props.tabPosition),s.is("active",k.active),s.is("disabled",Z),s.is("closable",K),s.is("focus",p.value)],id:`tab-${Y}`,key:`tab-${U}`,"aria-controls":`pane-${Y}`,role:"tab","aria-selected":k.active,tabindex:se,onFocus:()=>T(),onBlur:()=>M(),onClick:ue=>{M(),t("tabClick",k,Y,ue)},onKeydown:ue=>{K&&(ue.code===mn.delete||ue.code===mn.backspace)&&t("tabRemove",k,ue)}},[H,fe])});return x("div",{ref:u,class:[s.e("nav-wrap"),s.is("scrollable",!!f.value),s.is(o.props.tabPosition)]},[O,x("div",{class:s.e("nav-scroll"),ref:a},[x("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:x($K,{ref:d,tabs:[...n.panes]},null),A])])])}}}),BK=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:Be(Function),default:()=>!0},stretch:Boolean}),om=n=>ft(n)||_t(n),zK={[zt]:n=>om(n),tabClick:(n,e)=>e instanceof Event,tabChange:n=>om(n),edit:(n,e)=>["remove","add"].includes(e),tabRemove:n=>om(n),tabAdd:()=>!0},jK=me({name:"ElTabs",props:BK,emits:zK,setup(n,{emit:e,slots:t,expose:r}){var o;const s=Ge("tabs"),{children:i,addChild:l,removeChild:a}=Qj(vt(),"ElTabPane"),c=z(),u=z((o=n.modelValue)!=null?o:"0"),d=async(g,m=!1)=>{var v,w,b;if(!(u.value===g||yr(g)))try{await((v=n.beforeLeave)==null?void 0:v.call(n,g,u.value))!==!1&&(u.value=g,m&&(e(zt,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||yr(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 $e(()=>n.modelValue,g=>d(g)),$e(u,async()=>{var g;await nt(),(g=c.value)==null||g.scrollToActiveTab()}),Ut(ig,{props:n,currentName:u,registerPane:l,unregisterPane:a}),r({currentName:u}),()=>{const g=t["add-icon"],m=n.editable||n.addable?x("span",{class:s.e("new-tab"),tabindex:"0",onClick:p,onKeydown:b=>{b.code===mn.enter&&p()}},[g?_e(t,"add-icon"):x(dt,{class:s.is("icon-plus")},{default:()=>[x(UT,null,null)]})]):null,v=x("div",{class:[s.e("header"),s.is(n.tabPosition)]},[m,x(FK,{ref:c,currentName:u.value,editable:n.editable,type:n.type,panes:i.value,stretch:n.stretch,onTabClick:f,onTabRemove:h},null)]),w=x("div",{class:s.e("content")},[_e(t,"default")]);return x("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]])}}}),HK=tt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),UK=["id","aria-hidden","aria-labelledby"],kM="ElTabPane",WK=me({name:kM}),GK=me({...WK,props:HK,setup(n){const e=n,t=vt(),r=Bo(),o=De(ig);o||ll(kM,"usage: ");const s=Ge("tab-pane"),i=z(),l=B(()=>e.closable||o.props.closable),a=_w(()=>{var h;return o.currentName.value===((h=e.name)!=null?h:i.value)}),c=z(a.value),u=B(()=>{var h;return(h=e.name)!=null?h:i.value}),d=_w(()=>!e.lazy||c.value||a.value);$e(a,h=>{h&&(c.value=!0)});const f=Ct({uid:t.uid,slots:r,props:e,paneName:u,active:a,index:i,isClosable:l});return rt(()=>{o.registerPane(f)}),vs(()=>{o.unregisterPane(f.uid)}),(h,p)=>C(d)?Fe((P(),G("div",{key:0,id:`pane-${C(u)}`,class:X(C(s).b()),role:"tabpanel","aria-hidden":!C(a),"aria-labelledby":`tab-${C(u)}`},[_e(h.$slots,"default")],10,UK)),[[Qe,C(a)]]):Ce("v-if",!0)}});var PM=Xe(GK,[["__file","tab-pane.vue"]]);const qK=Lt(jK,{TabPane:PM}),KK=Or(PM),YK=tt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ya,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),JK=me({name:"ElText"}),XK=me({...JK,props:YK,setup(n){const e=n,t=po(),r=Ge("text"),o=B(()=>[r.b(),r.m(e.type),r.m(t.value),r.is("truncated",e.truncated),r.is("line-clamp",!yr(e.lineClamp))]);return(s,i)=>(P(),we(Vt(s.tag),{class:X(C(o)),style:bt({"-webkit-line-clamp":s.lineClamp})},{default:_(()=>[_e(s.$slots,"default")]),_:3},8,["class","style"]))}});var ZK=Xe(XK,[["__file","text.vue"]]);const jy=Lt(ZK);function QK(n){let e;const t=z(!1),r=Ct({...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()):(us(f,h.bm("parent","relative")),f.removeAttribute("loading-number")),us(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=Ub(me({name:"ElLoading",setup(f,{expose:h}){const{ns:p,zIndex:g}=Qp("loading");return h({ns:p,zIndex:g}),()=>{const m=r.spinner||r.svg,v=Ye("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[Ye("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=r.text?Ye("p",{class:p.b("text")},[r.text]):void 0;return Ye(Tr,{name:p.b("fade"),onAfterLeave:a},{default:_(()=>[Fe(x("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Ye("div",{class:p.b("spinner")},[v,w])]),[[Qe,r.visible]])])})}}})),d=u.mount(document.createElement("div"));return{...Gs(r),setText:o,removeElLoadingChild:i,close:l,handleAfterLeave:a,vm:d,get $el(){return d.$el}}}let Vf;const eY=function(n={}){if(!xt)return;const e=tY(n);if(e.fullscreen&&Vf)return Vf;const t=QK({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&(Vf=void 0)}});nY(e,e.parent,t),bx(e,e.parent,t),e.parent.vLoadingAddClassList=()=>bx(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),nt(()=>t.visible.value=e.visible),e.fullscreen&&(Vf=t),t},tY=n=>{var e,t,r,o;let s;return ft(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}},nY=async(n,e,t)=>{const{nextZIndex:r}=t.vm.zIndex||t.vm._.exposed.zIndex,o={};if(n.fullscreen)t.originalPosition.value=kl(document.body,"position"),t.originalOverflow.value=kl(document.body,"overflow"),o.zIndex=r();else if(n.parent===document.body){t.originalPosition.value=kl(document.body,"position"),await nt();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(kl(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])o[s]=`${n.target.getBoundingClientRect()[s]}px`}else t.originalPosition.value=kl(e,"position");for(const[s,i]of Object.entries(o))t.$el.style[s]=i},bx=(n,e,t)=>{const r=t.vm.ns||t.vm._.exposed.ns;["absolute","fixed","sticky"].includes(t.originalPosition.value)?us(e,r.bm("parent","relative")):na(e,r.bm("parent","relative")),n.fullscreen&&n.lock?na(e,r.bm("parent","hidden")):us(e,r.bm("parent","hidden"))},gh=Symbol("ElLoading"),yx=(n,e)=>{var t,r,o,s;const i=e.instance,l=f=>pt(e.value)?e.value[f]:void 0,a=f=>{const h=ft(f)&&(i==null?void 0:i[f])||f;return h&&z(h)},c=f=>a(l(f)||n.getAttribute(`element-loading-${tl(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[gh]={options:d,instance:eY(d)}},rY=(n,e)=>{for(const t of Object.keys(e))Wt(e[t])&&(e[t].value=n[t])},oY={mounted(n,e){e.value&&yx(n,e)},updated(n,e){const t=n[gh];e.oldValue!==e.value&&(e.value&&!e.oldValue?yx(n,e):e.value&&e.oldValue?pt(e.value)&&rY(e.value,t.options):t==null||t.instance.close())},unmounted(n){var e;(e=n[gh])==null||e.instance.close(),n[gh]=null}},NM=["success","info","warning","error"],Zn=xo({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:xt?document.body:void 0}),sY=tt({customClass:{type:String,default:Zn.customClass},center:{type:Boolean,default:Zn.center},dangerouslyUseHTMLString:{type:Boolean,default:Zn.dangerouslyUseHTMLString},duration:{type:Number,default:Zn.duration},icon:{type:uo,default:Zn.icon},id:{type:String,default:Zn.id},message:{type:Be([String,Object,Function]),default:Zn.message},onClose:{type:Be(Function),default:Zn.onClose},showClose:{type:Boolean,default:Zn.showClose},type:{type:String,values:NM,default:Zn.type},plain:{type:Boolean,default:Zn.plain},offset:{type:Number,default:Zn.offset},zIndex:{type:Number,default:Zn.zIndex},grouping:{type:Boolean,default:Zn.grouping},repeatNum:{type:Number,default:Zn.repeatNum}}),iY={destroy:()=>!0},Oo=Ab([]),lY=n=>{const e=Oo.findIndex(o=>o.id===n),t=Oo[e];let r;return e>0&&(r=Oo[e-1]),{current:t,prev:r}},aY=n=>{const{prev:e}=lY(n);return e?e.vm.exposed.bottom.value:0},cY=(n,e)=>Oo.findIndex(r=>r.id===n)>0?16:e,uY=["id"],dY=["innerHTML"],fY=me({name:"ElMessage"}),hY=me({...fY,props:sY,emits:iY,setup(n,{expose:e}){const t=n,{Close:r}=my,{ns:o,zIndex:s}=Qp("message"),{currentZIndex:i,nextZIndex:l}=s,a=z(),c=z(!1),u=z(0);let d;const f=B(()=>t.type?t.type==="error"?"danger":t.type:"info"),h=B(()=>{const T=t.type;return{[o.bm("icon",T)]:T&&qi[T]}}),p=B(()=>t.icon||qi[t.type]||""),g=B(()=>aY(t.id)),m=B(()=>cY(t.id,t.offset)+g.value),v=B(()=>u.value+m.value),w=B(()=>({top:`${m.value}px`,zIndex:i.value}));function b(){t.duration!==0&&({stop:d}=kh(()=>{S()},t.duration))}function y(){d==null||d()}function S(){c.value=!1}function E({code:T}){T===mn.esc&&S()}return rt(()=>{b(),l(),c.value=!0}),$e(()=>t.repeatNum,()=>{y(),b()}),vn(document,"keydown",E),dr(a,()=>{u.value=a.value.getBoundingClientRect().height}),e({visible:c,bottom:v,close:S}),(T,M)=>(P(),we(Tr,{name:C(o).b("fade"),onBeforeLeave:T.onClose,onAfterLeave:M[0]||(M[0]=O=>T.$emit("destroy")),persisted:""},{default:_(()=>[Fe(F("div",{id:T.id,ref_key:"messageRef",ref:a,class:X([C(o).b(),{[C(o).m(T.type)]:T.type},C(o).is("center",T.center),C(o).is("closable",T.showClose),C(o).is("plain",T.plain),T.customClass]),style:bt(C(w)),role:"alert",onMouseenter:y,onMouseleave:b},[T.repeatNum>1?(P(),we(C(z9),{key:0,value:T.repeatNum,type:C(f),class:X(C(o).e("badge"))},null,8,["value","type","class"])):Ce("v-if",!0),C(p)?(P(),we(C(dt),{key:1,class:X([C(o).e("icon"),C(h)])},{default:_(()=>[(P(),we(Vt(C(p))))]),_:1},8,["class"])):Ce("v-if",!0),_e(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(P(),G(Le,{key:1},[Ce(" Caution here, message could've been compromised, never use user's input as message "),F("p",{class:X(C(o).e("content")),innerHTML:T.message},null,10,dY)],2112)):(P(),G("p",{key:0,class:X(C(o).e("content"))},ie(T.message),3))]),T.showClose?(P(),we(C(dt),{key:2,class:X(C(o).e("closeBtn")),onClick:Nt(S,["stop"])},{default:_(()=>[x(C(r))]),_:1},8,["class","onClick"])):Ce("v-if",!0)],46,uY),[[Qe,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var pY=Xe(hY,[["__file","message.vue"]]);let gY=1;const IM=n=>{const e=!n||ft(n)||On(n)||We(n)?{message:n}:n,t={...Zn,...e};if(!t.appendTo)t.appendTo=document.body;else if(ft(t.appendTo)){let r=document.querySelector(t.appendTo);ao(r)||(r=document.body),t.appendTo=r}return t},mY=n=>{const e=Oo.indexOf(n);if(e===-1)return;Oo.splice(e,1);const{handler:t}=n;t.close()},vY=({appendTo:n,...e},t)=>{const r=`message_${gY++}`,o=e.onClose,s=document.createElement("div"),i={...e,id:r,onClose:()=>{o==null||o(),mY(u)},onDestroy:()=>{Wi(null,s)}},l=x(pY,i,We(i.message)||On(i.message)?{default:We(i.message)?i.message:()=>i.message}:null);l.appContext=t||mc._context,Wi(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},mc=(n={},e)=>{if(!xt)return{close:()=>{}};if(_t(IC.max)&&Oo.length>=IC.max)return{close:()=>{}};const t=IM(n);if(t.grouping&&Oo.length){const o=Oo.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=vY(t,e);return Oo.push(r),r.handler};NM.forEach(n=>{mc[n]=(e={},t)=>{const r=IM(e);return mc({...r,type:n},t)}});function bY(n){for(const e of Oo)(!n||n===e.props.type)&&e.handler.close()}mc.closeAll=bY;mc._context=null;const Xt=YT(mc,"$message"),yY=me({name:"ElMessageBox",directives:{TrapFocus:pU},components:{ElButton:An,ElFocusTrap:ng,ElInput:Cn,ElOverlay:Ry,ElIcon:dt,...my},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Mz},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}=Qp("message-box",B(()=>n.buttonSize)),{t:i}=t,{nextZIndex:l}=r,a=z(!1),c=Ct({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,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),u=B(()=>{const R=c.type;return{[o.bm("icon",R)]:R&&qi[R]}}),d=fs(),f=fs(),h=B(()=>c.icon||qi[c.type]||""),p=B(()=>!!c.message),g=z(),m=z(),v=z(),w=z(),b=z(),y=B(()=>c.confirmButtonClass);$e(()=>c.inputValue,async R=>{await nt(),n.boxType==="prompt"&&R!==null&&L()},{immediate:!0}),$e(()=>a.value,R=>{var U,Z;R&&(n.boxType!=="prompt"&&(c.autofocus?v.value=(Z=(U=b.value)==null?void 0:U.$el)!=null?Z:g.value:v.value=g.value),c.zIndex=l()),n.boxType==="prompt"&&(R?nt().then(()=>{var Y;w.value&&w.value.$el&&(c.autofocus?v.value=(Y=j())!=null?Y:g.value:v.value=g.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=B(()=>n.draggable),E=B(()=>n.overflow);ZT(g,m,S,E),rt(async()=>{await nt(),n.closeOnHashChange&&window.addEventListener("hashchange",T)}),wn(()=>{n.closeOnHashChange&&window.removeEventListener("hashchange",T)});function T(){a.value&&(a.value=!1,nt(()=>{c.action&&e("action",c.action)}))}const M=()=>{n.closeOnClickModal&&k(c.distinguishCancelAndClose?"close":"cancel")},O=Oy(M),A=R=>{if(c.inputType!=="textarea")return R.preventDefault(),k("confirm")},k=R=>{var U;n.boxType==="prompt"&&R==="confirm"&&!L()||(c.action=R,c.beforeClose?(U=c.beforeClose)==null||U.call(c,R,c,T):T())},L=()=>{if(n.boxType==="prompt"){const R=c.inputPattern;if(R&&!R.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;const U=c.inputValidator;if(typeof U=="function"){const Z=U(c.inputValue);if(Z===!1)return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;if(typeof Z=="string")return c.editorErrorMessage=Z,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},j=()=>{const R=w.value.$refs;return R.input||R.textarea},ne=()=>{k("close")},I=()=>{n.closeOnPressEscape&&ne()};return n.lockScroll&&tO(a),{...Gs(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:ne,onCloseRequested:I,handleWrapperClick:M,handleInputEnter:A,handleAction:k,t:i}}}),wY=["aria-label","aria-describedby"],CY=["aria-label"],xY=["id"];function SY(n,e,t,r,o,s){const i=ot("el-icon"),l=ot("close"),a=ot("el-input"),c=ot("el-button"),u=ot("el-focus-trap"),d=ot("el-overlay");return P(),we(Tr,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=f=>n.$emit("vanish")),persisted:""},{default:_(()=>[Fe(x(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:X(`${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))},[x(u,{loop:"",trapped:n.visible,"focus-trap-el":n.rootRef,"focus-start-el":n.focusStartRef,onReleaseRequested:n.onCloseRequested},{default:_(()=>[F("div",{ref:"rootRef",class:X([n.ns.b(),n.customClass,n.ns.is("draggable",n.draggable),{[n.ns.m("center")]:n.center}]),style:bt(n.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=Nt(()=>{},["stop"]))},[n.title!==null&&n.title!==void 0?(P(),G("div",{key:0,ref:"headerRef",class:X([n.ns.e("header"),{"show-close":n.showClose}])},[F("div",{class:X(n.ns.e("title"))},[n.iconComponent&&n.center?(P(),we(i,{key:0,class:X([n.ns.e("status"),n.typeClass])},{default:_(()=>[(P(),we(Vt(n.iconComponent)))]),_:1},8,["class"])):Ce("v-if",!0),F("span",null,ie(n.title),1)],2),n.showClose?(P(),G("button",{key:0,type:"button",class:X(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]=tr(Nt(f=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[x(i,{class:X(n.ns.e("close"))},{default:_(()=>[x(l)]),_:1},8,["class"])],42,CY)):Ce("v-if",!0)],2)):Ce("v-if",!0),F("div",{id:n.contentId,class:X(n.ns.e("content"))},[F("div",{class:X(n.ns.e("container"))},[n.iconComponent&&!n.center&&n.hasMessage?(P(),we(i,{key:0,class:X([n.ns.e("status"),n.typeClass])},{default:_(()=>[(P(),we(Vt(n.iconComponent)))]),_:1},8,["class"])):Ce("v-if",!0),n.hasMessage?(P(),G("div",{key:1,class:X(n.ns.e("message"))},[_e(n.$slots,"default",{},()=>[n.dangerouslyUseHTMLString?(P(),we(Vt(n.showInput?"label":"p"),{key:1,for:n.showInput?n.inputId:void 0,innerHTML:n.message},null,8,["for","innerHTML"])):(P(),we(Vt(n.showInput?"label":"p"),{key:0,for:n.showInput?n.inputId:void 0},{default:_(()=>[ee(ie(n.dangerouslyUseHTMLString?"":n.message),1)]),_:1},8,["for"]))])],2)):Ce("v-if",!0)],2),Fe(F("div",{class:X(n.ns.e("input"))},[x(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:X({invalid:n.validateError}),onKeydown:tr(n.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),F("div",{class:X(n.ns.e("errormsg")),style:bt({visibility:n.editorErrorMessage?"visible":"hidden"})},ie(n.editorErrorMessage),7)],2),[[Qe,n.showInput]])],10,xY),F("div",{class:X(n.ns.e("btns"))},[n.showCancelButton?(P(),we(c,{key:0,loading:n.cancelButtonLoading,class:X([n.cancelButtonClass]),round:n.roundButton,size:n.btnSize,onClick:e[3]||(e[3]=f=>n.handleAction("cancel")),onKeydown:e[4]||(e[4]=tr(Nt(f=>n.handleAction("cancel"),["prevent"]),["enter"]))},{default:_(()=>[ee(ie(n.cancelButtonText||n.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Ce("v-if",!0),Fe(x(c,{ref:"confirmRef",type:"primary",loading:n.confirmButtonLoading,class:X([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]=tr(Nt(f=>n.handleAction("confirm"),["prevent"]),["enter"]))},{default:_(()=>[ee(ie(n.confirmButtonText||n.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Qe,n.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,wY)]),_:3},8,["z-index","overlay-class","mask"]),[[Qe,n.visible]])]),_:3})}var EY=Xe(yY,[["render",SY],["__file","index.vue"]]);const gd=new Map,_Y=n=>{let e=document.body;return n.appendTo&&(ft(n.appendTo)&&(e=document.querySelector(n.appendTo)),ao(n.appendTo)&&(e=n.appendTo),ao(e)||(e=document.body)),e},TY=(n,e,t=null)=>{const r=x(EY,n,We(n.message)||On(n.message)?{default:We(n.message)?n.message:()=>n.message}:null);return r.appContext=t,Wi(r,e),_Y(n).appendChild(e.firstElementChild),r.component},OY=()=>document.createElement("div"),MY=(n,e)=>{const t=OY();n.onVanish=()=>{Wi(null,t),gd.delete(o)},n.onAction=s=>{const i=gd.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=TY(n,t,e),o=r.proxy;for(const s in n)wt(n,s)&&!wt(o.$props,s)&&(o[s]=n[s]);return o.visible=!0,o};function Yc(n,e=null){if(!xt)return Promise.reject();let t;return ft(n)||On(n)?n={message:n}:t=n.callback,new Promise((r,o)=>{const s=MY(n,e??Yc._context);gd.set(s,{options:n,callback:t,resolve:r,reject:o})})}const AY=["alert","confirm","prompt"],kY={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};AY.forEach(n=>{Yc[n]=PY(n)});function PY(n){return(e,t,r,o)=>{let s="";return pt(t)?(r=t,s=""):yr(t)?s="":s=t,Yc(Object.assign({title:s,message:e,type:"",...kY[n]},r,{boxType:n}),o)}}Yc.close=()=>{gd.forEach((n,e)=>{e.doClose()}),gd.clear()};Yc._context=null;const mi=Yc;mi.install=n=>{mi._context=n._context,n.config.globalProperties.$msgbox=mi,n.config.globalProperties.$messageBox=mi,n.config.globalProperties.$alert=mi.alert,n.config.globalProperties.$confirm=mi.confirm,n.config.globalProperties.$prompt=mi.prompt};const Dr=mi,LM=["success","info","warning","error"],NY=tt({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:uo},id:{type:String,default:""},message:{type:Be([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Be(Function),default:()=>{}},onClose:{type:Be(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:[...LM,""],default:""},zIndex:Number}),IY={destroy:()=>!0},LY=["id"],RY=["textContent"],$Y={key:0},DY=["innerHTML"],VY=me({name:"ElNotification"}),FY=me({...VY,props:NY,emits:IY,setup(n,{expose:e}){const t=n,{ns:r,zIndex:o}=Qp("notification"),{nextZIndex:s,currentZIndex:i}=o,{Close:l}=qT,a=z(!1);let c;const u=B(()=>{const b=t.type;return b&&qi[t.type]?r.m(b):""}),d=B(()=>t.type&&qi[t.type]||t.icon),f=B(()=>t.position.endsWith("right")?"right":"left"),h=B(()=>t.position.startsWith("top")?"top":"bottom"),p=B(()=>{var b;return{[h.value]:`${t.offset}px`,zIndex:(b=t.zIndex)!=null?b:i.value}});function g(){t.duration>0&&({stop:c}=kh(()=>{a.value&&v()},t.duration))}function m(){c==null||c()}function v(){a.value=!1}function w({code:b}){b===mn.delete||b===mn.backspace?m():b===mn.esc?a.value&&v():g()}return rt(()=>{g(),s(),a.value=!0}),vn(document,"keydown",w),e({visible:a,close:v}),(b,y)=>(P(),we(Tr,{name:C(r).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:y[1]||(y[1]=S=>b.$emit("destroy")),persisted:""},{default:_(()=>[Fe(F("div",{id:b.id,class:X([C(r).b(),b.customClass,C(f)]),style:bt(C(p)),role:"alert",onMouseenter:m,onMouseleave:g,onClick:y[0]||(y[0]=(...S)=>b.onClick&&b.onClick(...S))},[C(d)?(P(),we(C(dt),{key:0,class:X([C(r).e("icon"),C(u)])},{default:_(()=>[(P(),we(Vt(C(d))))]),_:1},8,["class"])):Ce("v-if",!0),F("div",{class:X(C(r).e("group"))},[F("h2",{class:X(C(r).e("title")),textContent:ie(b.title)},null,10,RY),Fe(F("div",{class:X(C(r).e("content")),style:bt(b.title?void 0:{margin:0})},[_e(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(P(),G(Le,{key:1},[Ce(" Caution here, message could've been compromised, never use user's input as message "),F("p",{innerHTML:b.message},null,8,DY)],2112)):(P(),G("p",$Y,ie(b.message),1))])],6),[[Qe,b.message]]),b.showClose?(P(),we(C(dt),{key:0,class:X(C(r).e("closeBtn")),onClick:Nt(v,["stop"])},{default:_(()=>[x(C(l))]),_:1},8,["class","onClick"])):Ce("v-if",!0)],2)],46,LY),[[Qe,a.value]])]),_:3},8,["name","onBeforeLeave"]))}});var BY=Xe(FY,[["__file","notification.vue"]]);const zh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},$v=16;let zY=1;const vc=function(n={},e=null){if(!xt)return{close:()=>{}};(typeof n=="string"||On(n))&&(n={message:n});const t=n.position||"top-right";let r=n.offset||0;zh[t].forEach(({vm:u})=>{var d;r+=(((d=u.el)==null?void 0:d.offsetHeight)||0)+$v}),r+=$v;const o=`notification_${zY++}`,s=n.onClose,i={...n,offset:r,id:o,onClose:()=>{jY(o,t,s)}};let l=document.body;ao(n.appendTo)?l=n.appendTo:ft(n.appendTo)&&(l=document.querySelector(n.appendTo)),ao(l)||(l=document.body);const a=document.createElement("div"),c=x(BY,i,On(i.message)?{default:()=>i.message}:null);return c.appContext=e??vc._context,c.props.onDestroy=()=>{Wi(null,a)},Wi(c,a),zh[t].push({vm:c}),l.appendChild(a.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};LM.forEach(n=>{vc[n]=(e={})=>((typeof e=="string"||On(e))&&(e={message:e}),vc({...e,type:n}))});function jY(n,e,t){const r=zh[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})}vc.closeAll=HY;vc._context=null;const Ff=YT(vc,"$notify");function vi(n){return JSON.parse(JSON.stringify(n))}function et(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 rr(n,e){if(!(n==null||n==null))for(const[t,r]of Object.entries(n))r!=null&&r!=null&&(e[t]=r)}function Gl(){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 _l(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 UY(n){for(let e=0;e-1}function qY(n,e){window.localStorage.setItem(n+"type",e)}function KY(n){return window.localStorage.getItem(n+"type")}const YY={class:"text-large font-600 mr-3"},JY=F("h3",null,"Common settings",-1),XY=["checked"],ZY={for:"_randomPortWhenConflict_"},QY=F("h3",null,"HuggingFace model downloading settings",-1),fi="130px",eJ={__name:"GlobalSettings",setup(n){const{t:e,tm:t}=cn(),r=go(),o=()=>{r.push("/")},s=Ct({ip:"127.0.0.1",port:"12715",selectRandomPortWhenConflict:!1,hfModelDownload:{connectTimeoutMillis:1e3,readTimeoutMillis:1e4,accessToken:""}});rt(async()=>{const l=await et("GET","management/global-settings",null,null,null);l.status==200&&rr(l.data,s)});async function i(){let l=await et("POST","management/global-settings",null,null,s);if(l.status==200)Xt({type:"success",message:e("lang.common.saved")}),await checkHfModelFiles();else{const a=e(l.err.message);Xt.error(a||l.err.message)}}return(l,a)=>{const c=ws,u=Cn,d=lr,f=Dy,h=An,p=ir,g=og,m=rg;return P(),G(Le,null,[x(c,{title:l.$t("lang.common.back"),onBack:o},{content:_(()=>[F("span",YY,ie(l.$t("lang.settings.title")),1)]),_:1},8,["title"]),JY,x(m,null,{default:_(()=>[x(g,{span:12,offset:1},{default:_(()=>[x(p,{model:s},{default:_(()=>[x(d,{label:"IP addr (v4 or v6)","label-width":fi},{default:_(()=>[x(u,{modelValue:s.ip,"onUpdate:modelValue":a[0]||(a[0]=v=>s.ip=v),placeholder:""},null,8,["modelValue"])]),_:1}),x(d,{label:"","label-width":fi},{default:_(()=>[ee(ie(l.$t("lang.settings.ipNote")),1)]),_:1}),x(d,{label:l.$t("lang.settings.prompt2"),"label-width":fi},{default:_(()=>[x(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"]),x(d,{label:"","label-width":fi},{default:_(()=>[Fe(F("input",{type:"checkbox",id:"_randomPortWhenConflict_","onUpdate:modelValue":a[2]||(a[2]=v=>s.selectRandomPortWhenConflict=v),checked:s.selectRandomPortWhenConflict},null,8,XY),[[Ui,s.selectRandomPortWhenConflict]]),F("label",ZY,ie(l.$t("lang.settings.prompt2_2")),1)]),_:1}),x(d,{"label-width":fi},{default:_(()=>[ee(ie(l.$t("lang.settings.note")),1)]),_:1}),x(d,{label:"","label-width":fi},{default:_(()=>[x(h,{type:"primary",onClick:i},{default:_(()=>[ee(ie(l.$t("lang.common.save")),1)]),_:1}),x(h,{onClick:a[3]||(a[3]=v=>o())},{default:_(()=>[ee(ie(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),QY,x(m,null,{default:_(()=>[x(g,{span:11,offset:1},{default:_(()=>[x(p,{model:s.modelDownload,"label-width":fi,style:{"max-width":"600px"}},{default:_(()=>[x(d,{label:"Connect timeout"},{default:_(()=>[x(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"]),ee(" millis ")]),_:1}),x(d,{label:"Read timeout"},{default:_(()=>[x(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"]),ee(" millis ")]),_:1}),x(d,{label:"Access token"},{default:_(()=>[x(u,{modelValue:s.hfModelDownload.accessToken,"onUpdate:modelValue":a[6]||(a[6]=v=>s.hfModelDownload.accessToken=v),placeholder:""},null,8,["modelValue"])]),_:1}),x(d,{label:"","label-width":fi},{default:_(()=>[x(h,{type:"primary",onClick:i},{default:_(()=>[ee(ie(l.$t("lang.common.save")),1)]),_:1}),x(h,{onClick:a[7]||(a[7]=v=>o())},{default:_(()=>[ee(ie(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},tJ={class:"text-large font-600 mr-3"},nJ=F("h3",null,"Common settings",-1),rJ=F("br",null,null,-1),oJ=F("br",null,null,-1),sJ=F("br",null,null,-1),iJ=F("h3",null,"Email settings",-1),wx="[-\\w\\.\\+]{1,100}@[A-Za-z0-9]{1,30}[A-Za-z\\.]{2,30}",Mr="130px",lJ={__name:"Settings",setup(n){const{t:e,tm:t}=cn(),r=Ks(),o=go(),s=r.params.robotId,i=z(30),l=()=>{o.push({name:"robotDetail",params:{robotId:s}})},a=Ct({maxSessionIdleSec:1800,smtpHost:"",smtpUsername:"",smtpPassword:"",smtpTimeoutSec:60,emailVerificationRegex:"",textGenerationProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",max_token_len:5e3,connectTimeoutMillis:1500,readTimeoutMillis:3e3,maxResponseTokenLength:5e3},sentenceEmbeddingProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",connectTimeoutMillis:1500,readTimeoutMillis:3e3}}),c=z(!1),u=z(!1),d=z(!1),f=z(""),h=z(!1),p=z(!1),g=z(""),m=z(!1),v=z(!1),w=z(""),b=z(""),y=z("");rt(async()=>{const H=await et("GET","management/settings",{robotId:s},null,null);H.status==200&&(rr(H.data,a),i.value=a.maxSessionIdleSec/60,U(a.textGenerationProvider.provider.id),fe(a.sentenceEmbeddingProvider.provider.id)),await S()}),vs(()=>{T!=null&&clearTimeout(T)});async function S(){const H=new Map;if(a.textGenerationProvider.provider.id=="HuggingFace"){for(let se=0;se-1&&(ue=ue.substring(0,be)),g.value=ue,H.set(h,ue);break}}if(a.sentenceEmbeddingProvider.provider.id=="HuggingFace"){for(let se=0;se-1&&(ue=ue.substring(0,be)),w.value=ue,H.set(m,ue);break}}if(H.size>0){const se=await et("POST","management/settings/model/check",null,null,Array.from(H.values()));if(se&&se.data)for(let[ue,be]of H.entries())se.data[be]==!1?ue.value=!0:ue.value=!1}}async function E(){a.emailVerificationRegex||(a.emailVerificationRegex=wx),a.maxSessionIdleSec=i.value*60;let H=await et("POST","management/settings",{robotId:s},null,a);if(H.status==200)Xt({type:"success",message:e("lang.common.saved")}),await S();else{const se=e(H.err.message);Xt.error(se||H.err.message)}}let T=null;async function M(H){const se=await et("GET","management/settings/model/download/progress",null,null,null);if(se!=null&&se.data!=null&&se.data.downloading){const ue="Downloading: "+se.url+" ("+(se.data.downloadedLen/se.data.totalLen*100).toFixed(2)+"), please wait until it finish.";Xt.error(ue);return}et("POST","management/settings/model/download",{robotId:s,m:H},null,H).then(ue=>{if(ue==null||ue.status!=200){Xt.error("Download failed: "+ue.err.message);return}H=="sentenceEmbedding"?(m.value=!1,v.value=!0):(h.value=!1,p.value=!0),T=setTimeout(async()=>{await A()},1e3)})}function O(){clearTimeout(T),h.value=!1,p.value=!1,m.value=!1,v.value=!1}async function A(){const H=await et("GET","management/settings/model/download/progress",null,null,null);if(H!=null&&H.data!=null)if(H.data.err){Xt.error(H.data.err),clearTimeout(T),p.value=!1,v.value=!1;return}else H.data.downloading?(b.value=H.data.url,y.value=(H.data.downloadedLen/H.data.totalLen*100).toFixed(2),T=setTimeout(async()=>{await A()},1e3)):O();else O()}const k=async()=>{c.value=!0;const H=await et("POST","management/settings/smtp/test",null,null,a);H.status==200?(u.value=!0,d.value=!1):(f.value=e(H.err.message),u.value=!1,d.value=!0),c.value=!1},L=[{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 (135MB)",value:"Phi3Mini4kInstruct"},{label:"microsoft/Phi-3-mini-128k-instruct (135MB)",value:"Phi3Mini128kInstruct"},{label:"microsoft/Phi-3-small-8k-instruct (439MB)",value:"Phi3Small8kInstruct"},{label:"microsoft/Phi-3-small-128k-instruct (439MB)",value:"Phi3Small128kInstruct"},{label:"microsoft/Phi-3-medium-4k-instruct (439MB)",value:"Phi3Medium4kInstruct"},{label:"microsoft/Phi-3-medium-128k-instruct (439MB)",value:"Phi3Medium128kInstruct"},{label:"google/gemma-2b-it (1.11GB)",value:"Gemma2bInstruct",need_auth_header:!0},{label:"google/gemma-7b-it (1.11GB)",value:"Gemma7bInstruct",need_auth_header:!0},{label:"meta-llama/Meta-Llama-3-8B-Instruct (1.11GB)",value:"MetaLlama3_8bInstruct",need_auth_header:!0},{label:"upstage/SOLAR-10.7B-v1.0 (1.11GB)",value:"Solar10_7bV1_0"},{label:"TinyLlama/TinyLlama-1.1B-Chat-v1.0 (1.11GB)",value:"TinyLlama1_1bChatV1_0"},{label:"Qwen/Qwen2-72B-Instruct (91MB)",value:"Qwen2_72BInstruct",dimenssions:384}]},{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:[{label:"Meta Llama 3",value:"llama3"},{label:"Phi-3",value:"phi3"},{label:"WizardLM-2",value:"wizardlm2"},{label:"Mistral",value:"mistral"},{label:"Gemma",value:"gemma"},{label:"Mixtral",value:"mixtral"},{label:"Llama 2",value:"llama2"},{label:"Qwen",value:"qwen"},{label:"TinyLlama",value:"tinyllama"},{label:"Yi 1.5",value:"yi"},{label:"All Mini LM",value:"all-minilm"},{label:"Llama 2 Chinese",value:"llama2-chinese"}]}],j=[{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-small",value:"text-embedding-3-small"},{label:"text-embedding-3-large",value:"text-embedding-3-large"},{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:"Meta Llama 3",value:"llama3"},{label:"Phi-3",value:"phi3"},{label:"WizardLM-2",value:"wizardlm2"},{label:"Mistral",value:"mistral"},{label:"Gemma",value:"gemma"},{label:"Mixtral",value:"mixtral"},{label:"Llama 2",value:"llama2"},{label:"Qwen",value:"qwen"},{label:"TinyLlama",value:"tinyllama"},{label:"Yi 1.5",value:"yi"},{label:"All Mini LM",value:"all-minilm"},{label:"Llama 2 Chinese",value:"llama2-chinese"}]}],ne=Ct([]),I=new Map,R=z(""),U=H=>{R.value&&I.set(R.value,a.textGenerationProvider.apiUrl);for(let se=0;se{K.value&&Y.set(K.value,a.sentenceEmbeddingProvider.apiUrl);for(let se=0;se{const ue=ws,be=Dy,ye=lr,W=An,ce=ir,re=og,ve=rg,ke=zr,Se=QU,$=Ly,N=Cn,te=ti,pe=ei,ge=SO;return P(),G(Le,null,[x(ue,{title:H.$t("lang.common.back"),onBack:l},{content:_(()=>[F("span",tJ,ie(H.$t("lang.settings.title")),1)]),_:1},8,["title"]),nJ,x(ve,null,{default:_(()=>[x(re,{span:12,offset:1},{default:_(()=>[x(ce,{model:a},{default:_(()=>[x(ye,{label:H.$t("lang.settings.prompt3"),"label-width":Mr},{default:_(()=>[x(be,{modelValue:i.value,"onUpdate:modelValue":se[0]||(se[0]=ae=>i.value=ae),min:2,max:1440,onChange:H.handleChange},null,8,["modelValue","onChange"]),ee(" "+ie(H.$t("lang.settings.prompt4")),1)]),_:1},8,["label"]),x(ye,{label:"","label-width":Mr},{default:_(()=>[x(W,{type:"primary",onClick:E},{default:_(()=>[ee(ie(H.$t("lang.common.save")),1)]),_:1}),x(W,{onClick:se[1]||(se[1]=ae=>l())},{default:_(()=>[ee(ie(H.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),F("h3",null,[ee(" Text generation "),x(ke,{effect:"light",placement:"right"},{content:_(()=>[ee(" You don’t need to download the large model file unless you want to use the functionalities described below. "),rJ,ee(" Currently, its function is merely to provide automatic response capabilities and suggested reply templates for dialogue nodes. ")]),default:_(()=>[x(W,{circle:""},{default:_(()=>[ee("i")]),_:1})]),_:1})]),x(ve,null,{default:_(()=>[x(re,{span:11,offset:1},{default:_(()=>[x(ce,{model:a.textGenerationProvider,"label-width":Mr,style:{"max-width":"600px"}},{default:_(()=>[x(ye,{label:"Provider"},{default:_(()=>[x($,{modelValue:a.textGenerationProvider.provider.id,"onUpdate:modelValue":se[2]||(se[2]=ae=>a.textGenerationProvider.provider.id=ae),size:"large",onChange:U},{default:_(()=>[(P(),G(Le,null,Tt(L,ae=>x(Se,{id:ae.id,key:ae.id,label:ae.id,value:ae.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(ye,{label:"Request address"},{default:_(()=>[x(N,{modelValue:a.textGenerationProvider.apiUrl,"onUpdate:modelValue":se[3]||(se[3]=ae=>a.textGenerationProvider.apiUrl=ae),disabled:a.textGenerationProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),Fe(x(ye,{label:"OpenAI API key"},{default:_(()=>[x(N,{modelValue:a.textGenerationProvider.apiKey,"onUpdate:modelValue":se[4]||(se[4]=ae=>a.textGenerationProvider.apiKey=ae)},null,8,["modelValue"])]),_:1},512),[[Qe,a.textGenerationProvider.showApiKeyInput]]),x(ye,{label:"Model"},{default:_(()=>[x(pe,{modelValue:a.textGenerationProvider.provider.model,"onUpdate:modelValue":se[5]||(se[5]=ae=>a.textGenerationProvider.provider.model=ae),placeholder:"Choose a model"},{default:_(()=>[(P(!0),G(Le,null,Tt(ne,ae=>(P(),we(te,{id:ae.value,key:ae.value,label:ae.label,value:ae.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),x(ye,{label:"Max response token"},{default:_(()=>[x(be,{modelValue:a.textGenerationProvider.maxResponseTokenLength,"onUpdate:modelValue":se[6]||(se[6]=ae=>a.textGenerationProvider.maxResponseTokenLength=ae),min:10,max:1e5,step:5},null,8,["modelValue"])]),_:1}),Fe(x(ye,{label:"Connect timeout"},{default:_(()=>[x(be,{modelValue:a.textGenerationProvider.connectTimeoutMillis,"onUpdate:modelValue":se[7]||(se[7]=ae=>a.textGenerationProvider.connectTimeoutMillis=ae),min:100,max:5e4,step:100},null,8,["modelValue"]),ee(" millis ")]),_:1},512),[[Qe,a.textGenerationProvider.provider.id!="HuggingFace"]]),Fe(x(ye,{label:"Read timeout"},{default:_(()=>[x(be,{modelValue:a.textGenerationProvider.readTimeoutMillis,"onUpdate:modelValue":se[8]||(se[8]=ae=>a.textGenerationProvider.readTimeoutMillis=ae),min:1e3,max:65530,step:100},null,8,["modelValue"]),ee(" millis ")]),_:1},512),[[Qe,a.textGenerationProvider.provider.id!="HuggingFace"]]),Fe(x(ye,{label:""},{default:_(()=>[ee(" HuggingFace model files were incorrect or missing, please "),x(W,{type:"primary",text:"",onClick:se[9]||(se[9]=ae=>M(a.textGenerationProvider.provider.model))},{default:_(()=>[ee(" click here to download model files from Huggingface.co ")]),_:1}),ee(", or you can download manually and put them in ./data/model/"+ie(g.value),1)]),_:1},512),[[Qe,h.value]]),Fe(x(ye,{label:""},{default:_(()=>[ee(" Downloading: "+ie(b.value)+", "+ie(y.value)+"% ",1)]),_:1},512),[[Qe,p.value]]),x(ye,{label:"","label-width":Mr},{default:_(()=>[x(W,{type:"primary",onClick:E},{default:_(()=>[ee(ie(H.$t("lang.common.save")),1)]),_:1}),x(W,{onClick:se[10]||(se[10]=ae=>l())},{default:_(()=>[ee(ie(H.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),F("h3",null,[ee(" Sentence embedding provider "),x(ke,{effect:"light",placement:"right"},{content:_(()=>[ee(" Downloading model files is not necessary."),oJ,ee(" 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."),sJ,ee(" User intent can also be recognized through the configuration of keywords and regular expressions without downloading the model. ")]),default:_(()=>[x(W,{circle:""},{default:_(()=>[ee("i")]),_:1})]),_:1})]),x(ve,null,{default:_(()=>[x(re,{span:11,offset:1},{default:_(()=>[x(ce,{model:a.sentenceEmbeddingProvider,"label-width":Mr,style:{"max-width":"600px"}},{default:_(()=>[x(ye,{label:"Provider"},{default:_(()=>[x($,{modelValue:a.sentenceEmbeddingProvider.provider.id,"onUpdate:modelValue":se[11]||(se[11]=ae=>a.sentenceEmbeddingProvider.provider.id=ae),size:"large",onChange:fe},{default:_(()=>[(P(),G(Le,null,Tt(j,ae=>x(Se,{id:ae.id,key:ae.id,label:ae.id,value:ae.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(ye,{label:"Request address"},{default:_(()=>[x(N,{modelValue:a.sentenceEmbeddingProvider.apiUrl,"onUpdate:modelValue":se[12]||(se[12]=ae=>a.sentenceEmbeddingProvider.apiUrl=ae),disabled:a.sentenceEmbeddingProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),Fe(x(ye,{label:"OpenAI API key"},{default:_(()=>[x(N,{modelValue:a.sentenceEmbeddingProvider.apiKey,"onUpdate:modelValue":se[13]||(se[13]=ae=>a.sentenceEmbeddingProvider.apiKey=ae)},null,8,["modelValue"])]),_:1},512),[[Qe,a.sentenceEmbeddingProvider.showApiKeyInput]]),x(ye,{label:"Model"},{default:_(()=>[x(pe,{modelValue:a.sentenceEmbeddingProvider.provider.model,"onUpdate:modelValue":se[14]||(se[14]=ae=>a.sentenceEmbeddingProvider.provider.model=ae),placeholder:"Choose a model"},{default:_(()=>[(P(!0),G(Le,null,Tt(Z,ae=>(P(),we(te,{id:ae.value,key:ae.value,label:ae.label,value:ae.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Fe(x(ye,{label:"Connect timeout"},{default:_(()=>[x(be,{modelValue:a.sentenceEmbeddingProvider.connectTimeoutMillis,"onUpdate:modelValue":se[15]||(se[15]=ae=>a.sentenceEmbeddingProvider.connectTimeoutMillis=ae),min:100,max:5e4,step:100},null,8,["modelValue"]),ee(" millis ")]),_:1},512),[[Qe,a.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),Fe(x(ye,{label:"Read timeout"},{default:_(()=>[x(be,{modelValue:a.sentenceEmbeddingProvider.readTimeoutMillis,"onUpdate:modelValue":se[16]||(se[16]=ae=>a.sentenceEmbeddingProvider.readTimeoutMillis=ae),min:1e3,max:65530,step:100},null,8,["modelValue"]),ee(" millis ")]),_:1},512),[[Qe,a.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),Fe(x(ye,{label:""},{default:_(()=>[ee(" HuggingFace model files were incorrect or missing, please "),x(W,{type:"primary",text:"",onClick:se[17]||(se[17]=ae=>M(a.sentenceEmbeddingProvider.provider.model))},{default:_(()=>[ee(" click here to download model files from Huggingface.co ")]),_:1}),ee(", or you can download manually and put them in ./data/model/"+ie(w.value),1)]),_:1},512),[[Qe,m.value]]),Fe(x(ye,{label:""},{default:_(()=>[ee(" Downloading: "+ie(b.value)+", "+ie(y.value)+"% ",1)]),_:1},512),[[Qe,v.value]]),x(ye,{label:"","label-width":Mr},{default:_(()=>[x(W,{type:"primary",onClick:E},{default:_(()=>[ee(ie(H.$t("lang.common.save")),1)]),_:1}),x(W,{onClick:se[18]||(se[18]=ae=>l())},{default:_(()=>[ee(ie(H.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),iJ,x(ve,null,{default:_(()=>[x(re,{span:11,offset:1},{default:_(()=>[x(ce,{model:a},{default:_(()=>[x(ye,{label:"Email SMTP","label-width":Mr}),x(ye,{label:"Host","label-width":Mr},{default:_(()=>[x(N,{modelValue:a.smtpHost,"onUpdate:modelValue":se[19]||(se[19]=ae=>a.smtpHost=ae),placeholder:""},null,8,["modelValue"])]),_:1}),x(ye,{label:"Username","label-width":Mr},{default:_(()=>[x(N,{modelValue:a.smtpUsername,"onUpdate:modelValue":se[20]||(se[20]=ae=>a.smtpUsername=ae),placeholder:""},null,8,["modelValue"])]),_:1}),x(ye,{label:"Password","label-width":Mr},{default:_(()=>[x(N,{modelValue:a.smtpPassword,"onUpdate:modelValue":se[21]||(se[21]=ae=>a.smtpPassword=ae),placeholder:"",type:"password"},null,8,["modelValue"])]),_:1}),x(ye,{label:"Timeout","label-width":Mr},{default:_(()=>[x(be,{modelValue:a.smtpTimeoutSec,"onUpdate:modelValue":se[22]||(se[22]=ae=>a.smtpTimeoutSec=ae),min:1,max:600,onChange:H.handleChange},null,8,["modelValue","onChange"]),ee(" Seconds ")]),_:1}),x(ye,{label:"Email verification regex","label-width":"200px"},{default:_(()=>[x(N,{modelValue:a.emailVerificationRegex,"onUpdate:modelValue":se[23]||(se[23]=ae=>a.emailVerificationRegex=ae),placeholder:wx},null,8,["modelValue"])]),_:1}),x(ye,{label:"","label-width":"200px"},{default:_(()=>[ee(" You can customize the email verification regular expression, or leave it blank and the system will automatically use the general verification rules. ")]),_:1}),x(ye,{label:"","label-width":Mr},{default:_(()=>[x(W,{loading:c.value,type:"info",onClick:k},{default:_(()=>[ee(" Test SMTP settings ")]),_:1},8,["loading"]),u.value?(P(),we(ge,{key:0,title:"SMTP test passed",type:"success"})):Ce("",!0),d.value?(P(),we(ge,{key:1,title:f.value,type:"error"},null,8,["title"])):Ce("",!0)]),_:1}),x(ye,{label:"","label-width":Mr},{default:_(()=>[x(W,{type:"primary",onClick:E},{default:_(()=>[ee(ie(H.$t("lang.common.save")),1)]),_:1}),x(W,{onClick:se[24]||(se[24]=ae=>l())},{default:_(()=>[ee(ie(H.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},aJ={class:"text-large font-600 mr-3"},cJ={class:"flex items-center"},uJ="130px",dJ={__name:"MainFlow",setup(n){const{t:e,tm:t,rt:r}=cn(),o=Ks(),s=go(),i=o.params.robotId,l=Ct({_idx:0,id:"",name:"",enabled:!0}),a=z(!1),c=z([]);rt(async()=>{const b=await et("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:RM(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)=>{Dr.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 S=await et("DELETE","mainflow",null,null,l);c.value.splice(b,1),v(),Xt({type:"success",message:S("lang.common.deleted")})}).catch(()=>{})};function m(){a.value=!0}function v(){a.value=!1}const w=async()=>{const b=l.id,y=await et(b?"PUT":"POST","mainflow",null,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 S=An,E=ws,T=nf,M=tf,O=Cn,A=lr,k=ir,L=ul;return P(),G(Le,null,[x(E,{title:C(e)("lang.common.back"),onBack:d},{content:_(()=>[F("span",aJ,ie(b.$t("lang.mainflow.title")),1)]),extra:_(()=>[F("div",cJ,[x(S,{type:"primary",class:"ml-2",onClick:y[0]||(y[0]=j=>h())},{default:_(()=>[ee(ie(b.$t("lang.mainflow.add")),1)]),_:1})])]),_:1},8,["title"]),x(M,{data:c.value,stripe:"",style:{width:"100%"}},{default:_(()=>[x(T,{prop:"id",label:"Id",width:"270"}),x(T,{prop:"name",label:C(t)("lang.mainflow.table")[0],width:"360"},null,8,["label"]),x(T,{fixed:"right",label:C(t)("lang.mainflow.table")[2],width:"270"},{default:_(j=>[x(S,{link:"",type:"primary",size:"small",onClick:ne=>f(j.$index,j.row)},{default:_(()=>[ee(ie(b.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),ee(" | "),x(S,{link:"",type:"primary",size:"small",onClick:ne=>p(j.$index,j.row)},{default:_(()=>[ee(ie(b.$t("lang.common.edit"))+" name ",1)]),_:2},1032,["onClick"]),ee(" | "),x(S,{link:"",type:"primary",size:"small",onClick:ne=>g(j.$index,j.row)},{default:_(()=>[ee(ie(b.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),x(L,{modelValue:a.value,"onUpdate:modelValue":y[4]||(y[4]=j=>a.value=j),title:b.$t("lang.mainflow.form.title"),width:"60%"},{footer:_(()=>[x(S,{type:"primary",loading:b.loading,onClick:y[2]||(y[2]=j=>w())},{default:_(()=>[ee(ie(b.$t("lang.common.save")),1)]),_:1},8,["loading"]),x(S,{onClick:y[3]||(y[3]=j=>v())},{default:_(()=>[ee(ie(b.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[x(k,{model:b.nodeData},{default:_(()=>[x(A,{label:b.$t("lang.mainflow.form.name"),"label-width":uJ},{default:_(()=>[x(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)}}},fJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},hJ=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),pJ=[hJ];function gJ(n,e){return P(),G("svg",fJ,[...pJ])}const wa={name:"ep-warning",render:gJ},Ho=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},mJ={class:"nodeBox"},vJ={class:"demo-drawer__footer"},Bf="140px",bJ={__name:"CollectNode",setup(n){const{t:e,tm:t,rt:r}=cn(),o=z(!1),s=Ct({nodeName:e("lang.collectNode.nodeName"),collectTypeName:"",collectType:"",customizeRegex:"",collectSaveVarName:"",valid:!1,invalidMessages:[],branches:[],newNode:!0}),i=z(),l=De("getNode"),{robotId:a}=De("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=[];rt(async()=>{const w=l(),b=w.getData();if(rr(b,s),s.newNode){s.nodeName+=b.nodeCnt.toString();const S=i.value.offsetHeight+50,E=i.value.offsetWidth-15;w.addPort({group:"absolute",args:{x:E,y:S},attrs:{text:{text:t("lang.collectNode.branches")[0],fontSize:12}}}),w.addPort({group:"absolute",args:{x:E,y:S+20},attrs:{text:{text:t("lang.collectNode.branches")[1],fontSize:12}}}),s.newNode=!1}const y=await et("GET","variable",{robotId:a},null,null);y&&y.status==200&&y.data&&(d.splice(0,d.length),y.data.forEach(function(S,E,T){this.push({label:S.varName,value:S.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,S=zr,E=Cn,T=lr,M=ti,O=ei,A=ir,k=An,L=Qs;return P(),G("div",mJ,[F("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[ee(ie(s.nodeName)+" ",1),Fe(F("span",null,[x(S,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[x(y,{color:"red",size:"16"},{default:_(()=>[x(C(wa))]),_:1})]),_:1},8,["content"])],512),[[Qe,s.invalidMessages.length>0]])],512),F("div",null,ie(C(e)("lang.collectNode.cTypeName"))+": "+ie(s.collectTypeName),1),F("div",null,ie(C(e)("lang.collectNode.varName"))+": "+ie(s.collectSaveVarName),1),x(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:_(()=>[x(A,{"label-position":w.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:_(()=>[x(T,{label:C(e)("lang.common.nodeName"),"label-width":Bf},{default:_(()=>[x(E,{modelValue:s.nodeName,"onUpdate:modelValue":b[0]||(b[0]=j=>s.nodeName=j)},null,8,["modelValue"])]),_:1},8,["label"]),x(T,{label:C(v)[0],"label-width":Bf},{default:_(()=>[x(O,{modelValue:s.collectType,"onUpdate:modelValue":b[1]||(b[1]=j=>s.collectType=j),placeholder:C(v)[1]},{default:_(()=>[(P(),G(Le,null,Tt(u,j=>x(M,{key:j.label,label:j.label,value:j.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Fe(x(T,{label:C(v)[2],"label-width":Bf},{default:_(()=>[x(E,{modelValue:s.customizeRegex,"onUpdate:modelValue":b[2]||(b[2]=j=>s.customizeRegex=j)},null,8,["modelValue"])]),_:1},8,["label"]),[[Qe,s.collectType=="CustomizeRegex"]]),x(T,{label:C(v)[3],"label-width":Bf},{default:_(()=>[x(O,{modelValue:s.collectSaveVarName,"onUpdate:modelValue":b[3]||(b[3]=j=>s.collectSaveVarName=j),placeholder:C(v)[4]},{default:_(()=>[(P(),G(Le,null,Tt(d,j=>x(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",vJ,[x(k,{type:"primary",loading:w.loading,onClick:b[4]||(b[4]=j=>g())},{default:_(()=>[ee(ie(C(e)("lang.common.save")),1)]),_:1},8,["loading"]),x(k,{onClick:b[5]||(b[5]=j=>p())},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},yJ=Ho(bJ,[["__scopeId","data-v-9ad43495"]]),wJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},CJ=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),xJ=[CJ];function SJ(n,e){return P(),G("svg",wJ,[...xJ])}const Fu={name:"ep-plus",render:SJ},EJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_J=F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"},null,-1),TJ=[_J];function OJ(n,e){return P(),G("svg",EJ,[...TJ])}const MJ={name:"ep-minus",render:OJ},AJ={class:"nodeBox"},kJ={class:"dialog-footer"},cu="85px",PJ=!1,NJ={__name:"ConditionNode",setup(n){const{t:e,tm:t,rt:r}=cn(),o=new Map,s=De("getNode"),{robotId:i}=De("robotId"),l=z(!1),a=z(!1),c=Gl().conditionGroup[0][0];c.conditionType="";const u=Gl();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=Ct({nodeName:e("lang.conditionNode.nodeName"),branches:[u],valid:!1,invalidMessages:[],newNode:!0}),y=Gl();y.conditionGroup=[];const S=Ct(y),E=z();s().on("change:data",({current:ue})=>{l.value=!0}),d[0].push(vi(c)),rt(async()=>{let ue=await et("GET","intent",null,null,null);if(ue&&ue.status==200&&ue.data){const W=v.UserIntent;W.splice(0,W.length),ue.data.forEach(function(ce,re,ve){this.push({label:ce.name,value:ce.name})},W)}if(ue=await et("GET","variable",{robotId:i},null,null),ue&&ue.status==200&&ue.data){const W=p.FlowVariable;W.splice(0,W.length),ue.data.forEach(function(ce,re,ve){this.push({label:ce.varName,value:ce.varName,vtype:ce.varType})},W)}const ye=s().getData();rr(ye,b),b.newNode?b.nodeName+=ye.nodeCnt.toString():b.branches.forEach(function(W,ce){o.set(W.branchId,ce)}),b.newNode=!1,A()});const T=t("lang.conditionNode.errors"),O=Ct({branchName:[{validator:(ue,be,ye)=>{if(be=="")ye(new Error(T[0]));else{for(let W=0;W{b.branches.splice(ue,1),L()}).catch(()=>{})}function R(){l.value=!1}function U(){let ue=E.value.offsetHeight;const be=s(),ye=b.branches.length,W=E.value.offsetWidth-15;let ce,re;const ve=new Map;for(let ke=0;ke{be.removePort(Se,{silent:!1}),o.delete(Se)});for(const[ke,Se]of ve)o.set(ke,Se);be.resize(be.size().width,20+ue,{direction:"bottom",silent:!1}),A(),be.setData(b,{silent:!0}),R()}function Z(ue,be,ye){const W=S.conditionGroup[be][ye],ce=p[ue];ce?W.refOptions=ce:W.refOptions=[],W.compareOptions=m[ue],W.compareType="";const re=v[ue];re?W.targetOptions=re:W.targetOptions=[]}function Y(ue,be,ye,W){const ce=S.conditionGroup[be][ye];if(ce.compareOptions[0].belongsTo){const re=p.FlowVariable.filter(function(ve,ke,Se){return ve.label===W});re.length==1&&(ce.compareType="",ce.compareOptions=m[ue].filter(function(ve,ke,Se){return ve.belongsTo.indexOf(re[0].vtype)>-1}))}}function K(ue,be,ye){S.conditionGroup[ue][be].inputVariable=ye.inputType==1,S.conditionGroup[ue][be].showCaseSensitiveCheckBox=ye.showCS}function fe(ue){const be=vi(c);ue.push(be)}function H(){S.conditionGroup.push(...vi(d))}function se(ue){S.conditionGroup.splice(ue,1)}return(ue,be)=>{const ye=dt,W=zr,ce=Cn,re=lr,ve=ti,ke=ei,Se=sa,$=An,N=Iy,te=$y,pe=ir,ge=ul,ae=Qs;return P(),G("div",AJ,[F("div",{ref_key:"nodeName",ref:E,class:"nodeTitle"},[ee(ie(b.nodeName)+" ",1),Fe(F("span",null,[x(W,{class:"box-item",effect:"dark",content:b.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[x(ye,{color:"red",size:"16"},{default:_(()=>[x(C(wa))]),_:1})]),_:1},8,["content"])],512),[[Qe,b.invalidMessages.length>0]])],512),x(ge,{modelValue:a.value,"onUpdate:modelValue":be[5]||(be[5]=Ee=>a.value=Ee),title:C(e)("lang.conditionNode.newBranch"),width:"75%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",kJ,[x($,{type:"primary",onClick:be[2]||(be[2]=Ee=>j())},{default:_(()=>[ee(ie(C(e)("lang.common.save")),1)]),_:1}),x($,{onClick:be[3]||(be[3]=Ee=>L())},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1}),x($,{type:"danger",disabled:C(w)==-1,onClick:be[4]||(be[4]=Ee=>I(C(w)))},{default:_(()=>[ee(ie(C(e)("lang.common.del")),1)]),_:1},8,["disabled"])])]),default:_(()=>[x(pe,{model:S,rules:O},{default:_(()=>[x(re,{label:C(e)("lang.conditionNode.condName"),"label-width":cu,prop:"branchName"},{default:_(()=>[x(ce,{modelValue:S.branchName,"onUpdate:modelValue":be[0]||(be[0]=Ee=>S.branchName=Ee),autocomplete:"off",minlength:"1",maxlength:"15"},null,8,["modelValue"])]),_:1},8,["label"]),(P(!0),G(Le,null,Tt(S.conditionGroup,(Ee,D)=>(P(),we(re,{key:D,label:C(e)("lang.conditionNode.condType"),"label-width":cu},{default:_(()=>[(P(!0),G(Le,null,Tt(Ee,(V,J)=>(P(),G("div",{key:J},[x(ke,{modelValue:V.conditionType,"onUpdate:modelValue":le=>V.conditionType=le,placeholder:C(e)("lang.conditionNode.condTypePH"),onChange:le=>Z(le,D,J),style:{width:"116px"}},{default:_(()=>[(P(),G(Le,null,Tt(h,le=>x(ve,{key:le.label,label:le.label,value:le.value},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),Fe(x(ke,{modelValue:V.refChoice,"onUpdate:modelValue":le=>V.refChoice=le,placeholder:C(e)("lang.conditionNode.comparedPH"),class:"optionWidth",onChange:le=>Y(V.conditionType,D,J,le)},{default:_(()=>[(P(!0),G(Le,null,Tt(V.refOptions,le=>(P(),we(ve,{key:le.label,label:le.label,value:le.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),[[Qe,V.refOptions.length>0]]),Fe(x(ke,{modelValue:V.compareType,"onUpdate:modelValue":le=>V.compareType=le,placeholder:C(e)("lang.conditionNode.compareTypePH"),class:"optionWidth"},{default:_(()=>[(P(!0),G(Le,null,Tt(V.compareOptions,le=>(P(),we(ve,{key:le.label,label:le.label,value:le.value,onClick:Oe=>K(D,J,le)},null,8,["label","value","onClick"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[Qe,V.compareOptions.length>0]]),Fe(x(ke,{modelValue:V.targetValue,"onUpdate:modelValue":le=>V.targetValue=le,placeholder:C(e)("lang.conditionNode.targetPH"),class:"optionWidth"},{default:_(()=>[(P(!0),G(Le,null,Tt(V.targetOptions,le=>(P(),we(ve,{key:le.label,label:le.label,value:le.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[Qe,V.targetOptions.length>0]]),Fe(x(ke,{modelValue:V.targetValueVariant,"onUpdate:modelValue":le=>V.targetValueVariant=le,class:"optionWidth"},{default:_(()=>[x(ve,{label:"const value",value:"Const"}),x(ve,{label:"variable value",value:"Variable"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[Qe,V.inputVariable]]),Fe(x(ke,{modelValue:V.targetValue,"onUpdate:modelValue":le=>V.targetValue=le,placeholder:"Please choose a variable",class:"optionWidth"},{default:_(()=>[(P(!0),G(Le,null,Tt(p.FlowVariable,le=>(P(),we(ve,{key:le.label,label:le.label,value:le.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[Qe,V.inputVariable&&V.targetValueVariant=="Variable"]]),Fe(x(ce,{modelValue:V.targetValue,"onUpdate:modelValue":le=>V.targetValue=le,class:"optionWidth"},null,8,["modelValue","onUpdate:modelValue"]),[[Qe,V.inputVariable&&V.targetValueVariant=="Const"]]),Fe(x(Se,{modelValue:V.caseSensitiveComparison,"onUpdate:modelValue":le=>V.caseSensitiveComparison=le,label:"CaseSensitive"},null,8,["modelValue","onUpdate:modelValue"]),[[Qe,V.showCaseSensitiveCheckBox]]),x(N,null,{default:_(()=>[x($,{type:"primary",onClick:le=>fe(Ee)},{default:_(()=>[x(ye,null,{default:_(()=>[x(C(Fu))]),_:1})]),_:2},1032,["onClick"]),Fe(x($,{type:"danger",onClick:le=>{Ee.splice(J,1)}},{default:_(()=>[x(ye,null,{default:_(()=>[x(C(MJ))]),_:1})]),_:2},1032,["onClick"]),[[Qe,Ee.length>1]])]),_:2},1024),x(te,{"border-style":"dashed"})]))),128)),x(te),Fe(x($,{type:"danger",onClick:V=>se(D)},{default:_(()=>[ee(" X ")]),_:2},1032,["onClick"]),[[Qe,S.conditionGroup.length>1]])]),_:2},1032,["label"]))),128)),x(re,{label:"","label-width":cu},{default:_(()=>[x($,{type:"primary",onClick:be[1]||(be[1]=Ee=>H())},{default:_(()=>[x(ye,null,{default:_(()=>[x(C(Fu))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"]),x(ae,{modelValue:l.value,"onUpdate:modelValue":be[10]||(be[10]=Ee=>l.value=Ee),title:b.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[x(pe,{model:b},{default:_(()=>[x(re,{label:C(e)("lang.common.nodeName"),"label-width":cu},{default:_(()=>[x(ce,{modelValue:b.nodeName,"onUpdate:modelValue":be[6]||(be[6]=Ee=>b.nodeName=Ee),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),x(re,{label:C(e)("lang.conditionNode.newCond"),"label-width":cu},{default:_(()=>[x($,{type:"primary",onClick:be[7]||(be[7]=Ee=>k())},{default:_(()=>[x(ye,null,{default:_(()=>[x(C(Fu))]),_:1})]),_:1}),(P(!0),G(Le,null,Tt(b.branches,(Ee,D)=>(P(),we($,{key:D,type:"primary",onClick:V=>ne(D),disabled:!Ee.editable},{default:_(()=>[ee(ie(Ee.branchName),1)]),_:2},1032,["onClick","disabled"]))),128))]),_:1},8,["label"])]),_:1},8,["model"]),F("div",null,[x($,{type:"primary",loading:PJ,onClick:be[8]||(be[8]=Ee=>U())},{default:_(()=>[ee(ie(C(e)("lang.common.save")),1)]),_:1}),x($,{onClick:be[9]||(be[9]=Ee=>R())},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},IJ=Ho(NJ,[["__scopeId","data-v-dc114d51"]]),LJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},RJ=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),$J=[RJ];function DJ(n,e){return P(),G("svg",LJ,[...$J])}const VJ={name:"ri-bold",render:DJ},FJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},BJ=F("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1),zJ=[BJ];function jJ(n,e){return P(),G("svg",FJ,[...zJ])}const HJ={name:"ri-italic",render:jJ},UJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},WJ=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),GJ=[WJ];function qJ(n,e){return P(),G("svg",UJ,[...GJ])}const KJ={name:"ri-strikethrough",render:qJ},YJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},JJ=F("path",{fill:"currentColor",d:"M8 3v9a4 4 0 0 0 8 0V3h2v9a6 6 0 0 1-12 0V3zM4 20h16v2H4z"},null,-1),XJ=[JJ];function ZJ(n,e){return P(),G("svg",YJ,[...XJ])}const QJ={name:"ri-underline",render:ZJ},eX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tX=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),nX=[tX];function rX(n,e){return P(),G("svg",eX,[...nX])}const oX={name:"ri-font-color",render:rX},sX={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},iX=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),lX=[iX];function aX(n,e){return P(),G("svg",sX,[...lX])}const cX={name:"bi-highlighter",render:aX},uX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dX=F("path",{fill:"currentColor",d:"M17 11V4h2v17h-2v-8H7v8H5V4h2v7z"},null,-1),fX=[dX];function hX(n,e){return P(),G("svg",uX,[...fX])}const pX={name:"ri-heading",render:hX},gX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},mX=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),vX=[mX];function bX(n,e){return P(),G("svg",gX,[...vX])}const yX={name:"ri-list-unordered",render:bX},wX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},CX=F("path",{fill:"currentColor",d:"M8 4h13v2H8zM5 3v3h1v1H3V6h1V4H3V3zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2zM8 11h13v2H8zm0 7h13v2H8z"},null,-1),xX=[CX];function SX(n,e){return P(),G("svg",wX,[...xX])}const EX={name:"ri-list-ordered",render:SX},_X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},TX=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),OX=[TX];function MX(n,e){return P(),G("svg",_X,[...OX])}const AX={name:"ri-chat-quote-line",render:MX},kX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},PX=F("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4 11h16v2H4z"},null,-1),NX=[PX];function IX(n,e){return P(),G("svg",kX,[...NX])}const LX={name:"ic-baseline-horizontal-rule",render:IX},RX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$X=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),DX=[$X];function VX(n,e){return P(),G("svg",RX,[...DX])}const FX={name:"ic-baseline-undo",render:VX},BX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},zX=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),jX=[zX];function HX(n,e){return P(),G("svg",BX,[...jX])}const UX={name:"ic-baseline-redo",render:HX};function zn(n){this.content=n}zn.prototype={constructor:zn,find:function(n){for(var e=0;e>1}};zn.from=function(n){if(n instanceof zn)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new zn(e)};function $M(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=$M(o.content,s.content,t+1);if(i!=null)return i}t+=o.nodeSize}}function DM(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 Te(r,o)}cutByIndex(e,t){return e==t?Te.empty:e==0&&t==this.content.length?this:new Te(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 Te(o,s)}addToStart(e){return new Te([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Te(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?zf(r+1,i):zf(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 Te.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Te(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Te.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}};Ft.none=[];class Hh extends Error{}class je{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=FM(this.content,e+this.openStart,t);return r&&new je(r,this.openStart,this.openEnd)}removeBetween(e,t){return new je(VM(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 je.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 je(Te.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 je(e,r,o)}}je.empty=new je(Te.empty,0,0);function VM(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(VM(s.content,e-o-1,t-o-1)))}function FM(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=FM(i.content,e-s-1,t);return l&&n.replaceChild(o,i.copy(l))}function WX(n,e,t){if(t.openStart>n.depth)throw new Hh("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Hh("Inconsistent open depths");return BM(n,e,t,0)}function BM(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 Bu(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&&(ql(n.nodeAfter,r),s++));for(let l=s;lo&&Vv(n,e,o+1),i=r.depth>o&&Vv(t,r,o+1),l=[];return Bu(null,n,o,l),s&&i&&e.index(o)==t.index(o)?(zM(s,i),ql(Kl(s,jM(n,e,t,r,o+1)),l)):(s&&ql(Kl(s,Uh(n,e,o+1)),l),Bu(e,t,o,l),i&&ql(Kl(i,Uh(t,r,o+1)),l)),Bu(r,null,o,l),new Te(l)}function Uh(n,e,t){let r=[];if(Bu(null,n,t,r),n.depth>t){let o=Vv(n,e,t+1);ql(Kl(o,Uh(n,e,t+1)),r)}return Bu(e,null,t,r),new Te(r)}function GX(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(Te.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class md{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 Wh(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 md(t,r,s)}static resolveCached(e,t){let r=Cx.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()+")"),HM(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=Te.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=Te.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,r)}};Yl.prototype.text=void 0;class Gh extends Yl{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):HM(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 Gh(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Gh(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 HM(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ia{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new JX(e,t);if(r.next==null)return ia.empty;let o=UM(r);r.next&&r.err("Unexpected trailing text");let s=rZ(nZ(o));return oZ(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(` +`)}}ia.empty=new ia(!0);class JX{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 UM(n){let e=[];do e.push(XX(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function XX(n){let e=[];do e.push(ZX(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function ZX(n){let e=tZ(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=QX(n,e);else break;return e}function xx(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function QX(n,e){let t=xx(n),r=t;return n.eat(",")&&(n.next!="}"?r=xx(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function eZ(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 tZ(n){if(n.eat("(")){let e=UM(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=eZ(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 nZ(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 ia(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 YM(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}};class sZ{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class lg{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=KM(o.attrs),this.excluded=null;let s=GM(this.attrs);this.instance=s?new Ft(this,s):null}create(e=null){return!e&&this.instance?this.instance:new Ft(this,qM(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((s,i)=>r[s]=new lg(s,o++,t,i)),r}removeFromSet(e){for(var t=0;t-1}}class iZ{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=zn.from(e.nodes),t.marks=zn.from(e.marks||{}),this.nodes=Ex.compile(this.spec.nodes,this),this.marks=lg.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]=ia.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?_x(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==""?[]:_x(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 Ex){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 Gh(r,r.defaultAttrs,e,Ft.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Yl.fromJSON(this,e)}markFromJSON(e){return Ft.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function _x(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 lZ(n){return n.tag!=null}function aZ(n){return n.style!=null}let Hy=class Bv{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(o=>{if(lZ(o))this.tags.push(o);else if(aZ(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 Ox(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Ox(this,t,!0);return r.addAll(e,t.from,t.to),je.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=Mx(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=Mx(i)),i.node||i.ignore||i.mark||(i.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Bv(e,Bv.schemaRules(e)))}};const JM={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},cZ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},XM={ol:!0,ul:!0},qh=1,Kh=2,zu=4;function Tx(n,e,t){return e!=null?(e?qh:0)|(e==="full"?Kh:0):n&&n.whitespace=="pre"?qh|Kh:t&~zu}class jf{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=Ft.none,this.stashMarks=[],this.match=i||(l&zu?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Te.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&qh)){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=Te.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Te.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=Ft.none,r=Ft.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=hZ(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 uZ(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&XM.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function dZ(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Mx(n){let e={};for(let t in n)e[t]=n[t];return e}function fZ(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&&ts.renderSpec(im(r),o(e,t))}static renderSpec(e,t,r=null){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let o=t[0],s=o.indexOf(" ");s>0&&(r=o.slice(0,s),o=o.slice(s+1));let i,l=r?e.createElementNS(r,o):e.createElement(o),a=t[1],c=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){c=2;for(let u in a)if(a[u]!=null){let d=u.indexOf(" ");d>0?l.setAttributeNS(u.slice(0,d),u.slice(d+1),a[u]):l.setAttribute(u,a[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:h}=ts.renderSpec(e,d,r);if(l.appendChild(f),h){if(i)throw new RangeError("Multiple content holes");i=h}}}return{dom:l,contentDOM:i}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ts(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Ax(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Ax(e.marks)}}function Ax(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function im(n){return n.document||window.document}const ZM=65535,QM=Math.pow(2,16);function pZ(n,e){return n+e*QM}function kx(n){return n&ZM}function gZ(n){return(n-(n&ZM))/QM}const eA=1,tA=2,mh=4,nA=8;class zv{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&nA)>0}get deletedBefore(){return(this.delInfo&(eA|mh))>0}get deletedAfter(){return(this.delInfo&(tA|mh))>0}get deletedAcross(){return(this.delInfo&mh)>0}}class Nr{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Nr.empty)return Nr.empty}recover(e){let t=0,r=kx(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:pZ(l/3,e-a),g=e==a?tA:e==d?eA:mh;return(t<0?e!=a:e!=d)&&(g|=nA),new zv(h,g,p)}o+=u-c}return r?e+o:new zv(e+o,0,null)}touches(e,t){let r=0,o=kx(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 Ua;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 bn.fromReplace(e,this.from,this.to,s)}invert(){return new ns(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 Ii(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ii&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ii(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 Ii(t.from,t.to,e.markFromJSON(t.mark))}}ar.jsonID("addMark",Ii);class ns extends ar{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 je(Uy(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return bn.fromReplace(e,this.from,this.to,r)}invert(){return new Ii(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 ns(t.pos,r.pos,this.mark)}merge(e){return e instanceof ns&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ns(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 ns(t.from,t.to,e.markFromJSON(t.mark))}}ar.jsonID("removeMark",ns);class Li extends ar{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return bn.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return bn.fromReplace(e,this.pos,this.pos+1,new je(Te.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 Rn(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 Rn(t.from,t.to,t.gapFrom,t.gapTo,je.fromJSON(e,t.slice),t.insert,!!t.structure)}}ar.jsonID("replaceAround",Rn);function jv(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 mZ(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 vZ(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 lg){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 ns(i.from,i.to,i.style)))}function rA(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 bZ(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Jc(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=Te.from(r.node(p).copy(u)),d++):a--;let f=Te.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=Te.from(t[i].type.create(t[i].attrs,r))}let o=e.start,s=e.end;n.step(new Rn(o,s,o,s,new je(r,0,0),t.length,!0))}function SZ(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)&&TZ(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&&_Z(n,i,l,s),rA(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 Rn(u,d,u+1,d-1,new je(Te.from(r.create(o,null,i.marks)),0,0),1,!0)),a===!0&&EZ(n,i,l,s),!1}})}function EZ(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 _Z(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 TZ(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function OZ(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 Rn(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new je(Te.from(i),0,0),1,!0))}function Wa(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 MZ(n,e,t=1,r){let o=n.doc.resolve(e),s=Te.empty,i=Te.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){s=Te.from(o.node(l).copy(s));let u=r&&r[c];i=Te.from(u?u.type.create(u.attrs,i):o.node(l).copy(i))}n.step(new kn(e,e,new je(s.append(i),t,t),!0))}function dl(n,e){let t=n.resolve(e),r=t.index();return oA(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function oA(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function ag(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&&oA(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 AZ(n,e,t){let r=new kn(e-t,e+t,je.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 cg(n,e,t=e,r=je.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),s=n.resolve(t);return iA(o,s,r)?new kn(e,t,r):new PZ(o,s,r).fit()}function iA(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class PZ{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=Te.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=Te.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 je(s,i,l);return e>-1?new Rn(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new kn(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=am(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(Te.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=am(e,t);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new je(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=am(e,t);if(o.childCount<=1&&t>0){let s=e.size-t<=t+o.size;this.unplaced=new je(pu(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new je(pu(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(lA(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=gu(this.placed,t,Te.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=cm(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=gu(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=gu(this.placed,this.depth,Te.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(Te.empty,!0);t.childCount&&(this.placed=gu(this.placed,this.frontier.length,t))}}function pu(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(pu(n.firstChild.content,e-1,t)))}function gu(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(gu(n.lastChild.content,e-1,t)))}function am(n,e){for(let t=0;t1&&(r=r.replaceChild(0,lA(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(Te.empty,!0)))),n.copy(r)}function cm(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&&!NZ(t,s.content,i)?l:null}function NZ(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=IZ(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 aA(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(Te.empty,!0))}return n}function RZ(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 je(Te.from(r),0,0))}function $Z(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),s=cA(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 cA(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 Ga extends ar{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 bn.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 bn.fromReplace(e,this.pos,this.pos+1,new je(Te.from(o),0,t.isLeaf?0:1))}getMap(){return Nr.empty}invert(e){return new Ga(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 Ga(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 Ga(t.pos,t.attr,t.value)}}ar.jsonID("attr",Ga);class vd extends ar{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 bn.ok(r)}getMap(){return Nr.empty}invert(e){return new vd(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 vd(t.attr,t.value)}}ar.jsonID("docAttr",vd);let yc=class extends Error{};yc=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t};yc.prototype=Object.create(Error.prototype);yc.prototype.constructor=yc;yc.prototype.name="TransformError";class DZ{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ua}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new yc(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=je.empty){let o=cg(this.doc,e,t,r);return o&&this.step(o),this}replaceWith(e,t,r){return this.replace(e,t,new je(Te.from(r),0,0))}delete(e,t){return this.replace(e,t,je.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return LZ(this,e,t,r),this}replaceRangeWith(e,t,r){return RZ(this,e,t,r),this}deleteRange(e,t){return $Z(this,e,t),this}lift(e,t){return yZ(this,e,t),this}join(e,t=1){return AZ(this,e,t),this}wrap(e,t){return xZ(this,e,t),this}setBlockType(e,t=e,r,o=null){return SZ(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return OZ(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new Ga(e,t,r)),this}setDocAttribute(e,t){return this.step(new vd(e,t)),this}addNodeMark(e,t){return this.step(new Li(e,t)),this}removeNodeMark(e,t){if(!(t instanceof Ft)){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 bc(e,t)),this}split(e,t=1,r){return MZ(this,e,t,r),this}addMark(e,t,r){return mZ(this,e,t,r),this}removeMark(e,t,r){return vZ(this,e,t,r),this}clearIncompatible(e,t,r){return rA(this,e,t,r),this}}const um=Object.create(null);class Et{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new VZ(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?Na(e.node(0),e.node(s),e.before(s+1),e.index(s),t,r):Na(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 Po(e.node(0))}static atStart(e){return Na(e,e,0,0,1)||new Po(e)}static atEnd(e){return Na(e,e,e.content.size,e.childCount,-1)||new Po(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=um[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 um)throw new RangeError("Duplicate use of selection JSON ID "+e);return um[e]=t,t.prototype.jsonID=e,t}getBookmark(){return yt.between(this.$anchor,this.$head).getBookmark()}}Et.prototype.visible=!0;class VZ{constructor(e,t){this.$from=e,this.$to=t}}let Nx=!1;function Ix(n){!Nx&&!n.parent.inlineContent&&(Nx=!0)}class yt extends Et{constructor(e,t=e){Ix(e),Ix(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 Et.near(r);let o=e.resolve(t.map(this.anchor));return new yt(o.parent.inlineContent?o:r,r)}replace(e,t=je.empty){if(super.replace(e,t),t==je.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof yt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ug(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 yt(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=Et.findFrom(t,r,!0)||Et.findFrom(t,-r,!0);if(s)t=s.$head;else return Et.near(t,r)}return e.parent.inlineContent||(o==0?e=t:(e=(Et.findFrom(e,-r,!0)||Et.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&&st.isSelectable(l))return st.create(n,t-(o<0?l.nodeSize:0))}else{let a=Na(n,l,t+o,o<0?l.childCount:0,o,s);if(a)return a}t+=l.nodeSize*o}return null}function Lx(n,e,t){let r=n.steps.length-1;if(r{i==null&&(i=u)}),n.setSelection(Et.near(n.doc.resolve(i),t))}const Rx=1,Hf=2,$x=4;class BZ extends DZ{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|=Hf,this}ensureMarks(e){return Ft.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&Hf)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Hf,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)||Ft.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(Et.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|=$x,this}get scrolledIntoView(){return(this.updated&$x)>0}}function Dx(n,e){return!e||!n?n:n.bind(e)}class mu{constructor(e,t,r){this.name=e,this.init=Dx(t.init,r),this.apply=Dx(t.apply,r)}}const zZ=[new mu("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new mu("selection",{init(n,e){return n.selection||Et.atStart(e.doc)},apply(n){return n.selection}}),new mu("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new mu("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class dm{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=zZ.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 mu(r.key,r.spec.state,r))})}}class Da{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 dm(e.schema,e.plugins),s=new Da(o);return o.fields.forEach(i=>{if(i.name=="doc")s.doc=Yl.fromJSON(e.schema,t.doc);else if(i.name=="selection")s.selection=Et.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 uA(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=uA(o,e,{})),t[r]=o}return t}class jr{constructor(e){this.spec=e,this.props={},e.props&&uA(e.props,this,this.props),this.key=e.key?e.key.key:dA("plugin")}getState(e){return e[this.key]}}const fm=Object.create(null);function dA(n){return n in fm?n+"$"+ ++fm[n]:(fm[n]=0,n+"$")}class ni{constructor(e="key"){this.key=dA(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Hn=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},bd=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let Hv=null;const Ps=function(n,e,t){let r=Hv||(Hv=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},jZ=function(){Hv=null},la=function(n,e,t,r){return t&&(Vx(n,e,t,r,-1)||Vx(n,e,t,r,1))},HZ=/^(img|br|input|textarea|hr)$/i;function Vx(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:Qo(n))){let s=n.parentNode;if(!s||s.nodeType!=1||rf(n)||HZ.test(n.nodeName)||n.contentEditable=="false")return!1;e=Hn(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?Qo(n):0}else return!1}}function Qo(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function UZ(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=Qo(n)}else if(n.parentNode&&!rf(n))e=Hn(n),n=n.parentNode;else return null}}function WZ(n,e){for(;;){if(n.nodeType==3&&e2),Kr=wc||(hs?/Mac/.test(hs.platform):!1),JZ=hs?/Win/.test(hs.platform):!1,Co=/Android \d/.test(fl),of=!!Fx&&"webkitFontSmoothing"in Fx.documentElement.style,XZ=of?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function ZZ(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 Ts(n,e){return typeof n=="number"?n:n[e]}function QZ(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 Bx(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=bd(i)){if(i.nodeType!=1)continue;let l=i,a=l==s.body,c=a?ZZ(s):QZ(l),u=0,d=0;if(e.topc.bottom-Ts(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Ts(o,"top")-c.top:e.bottom-c.bottom+Ts(o,"bottom")),e.leftc.right-Ts(r,"right")&&(u=e.right-c.right+Ts(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 eQ(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:hA(n.dom)}}function hA(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=bd(r));return e}function tQ({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;pA(t,r==0?0:r-e)}function pA(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?rQ(t,o):!t||r&&t.nodeType==1?{node:n,offset:s}:gA(t,o)}function rQ(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 oQ(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 iQ(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 mA(n,e,t){let r=n.childNodes.length;if(r&&t.tope.top&&o++}let c;of&&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=iQ(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 zx(n){return n.top=0&&o==r.nodeValue.length?(a--,u=1):t<0?a--:c++,uu(bi(Ps(r,a,c),u),u<0)}if(!n.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&o&&(t<0||o==Qo(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return hm(a.getBoundingClientRect(),!1)}if(s==null&&o=0)}if(s==null&&o&&(t<0||o==Qo(r))){let a=r.childNodes[o-1],c=a.nodeType==3?Ps(a,Qo(a)-(i?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return uu(bi(c,1),!1)}if(s==null&&o=0)}function uu(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 hm(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 bA(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 cQ(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return bA(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=vA(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=Ps(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 uQ=/[\u0590-\u08ac]/;function dQ(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!uQ.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?s:i:bA(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 jx=null,Hx=null,Ux=!1;function fQ(n,e,t){return jx==e&&Hx==t?Ux:(jx=e,Hx=t,Ux=t=="up"||t=="down"?cQ(n,e,t):dQ(n,e,t))}const so=0,Wx=1,Fl=2,ps=3;class sf{constructor(e,t,r,o){this.parent=e,this.children=t,this.dom=r,this.contentDOM=o,this.dirty=so,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;tHn(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 wA){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 yA&&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?Hn(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=Hn(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?Fl:Wx,e==l&&t==a&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=ps:s.markDirty(e-l,t-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Fl:ps}r=i}this.dirty=Fl}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?Fl:Wx;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==so&&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 hQ extends sf{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 aa extends sf{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=ts.renderSpec(document,t.type.spec.toDOM(t,r))),new aa(e,t,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,t){if(super.markDirty(e,t),this.dirty!=so){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(s=Yv(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}=ts.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=SA(u,r,t),c?a=new pQ(e,t,r,o,u,d||null,f,c,s,i+1):t.isText?new fg(e,t,r,o,u,f,s):new zi(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=()=>Te.empty)}return e}matchesNode(e,t,r){return this.dirty==so&&e.eq(this.node)&&Kv(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 mQ(this,i&&i.node,e);yQ(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?Ft.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==Fl)&&(i&&this.protectLocalComposition(e,i),CA(this.contentDOM,this.children,e),wc&&wQ(this.dom))}localCompositionInfo(e,t){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof yt)||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=CQ(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 hQ(this,s,t,o);e.input.compositionNodes.push(i),this.children=Yv(this.children,r,r+o.length,e,i)}update(e,t,r,o){return this.dirty==ps||!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=so}updateOuterDeco(e){if(Kv(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=xA(this.dom,this.nodeDOM,qv(this.outerDeco,this.node,t),qv(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 Gx(n,e,t,r,o){SA(r,e,n);let s=new zi(void 0,n,e,t,r,r,r,o,0);return s.contentDOM&&s.updateChildren(o,0),s}class fg extends zi{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==ps||this.dirty!=so&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=so||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=so,!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 fg(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=ps)}get domAtom(){return!1}isText(e){return this.node.text==e}}class wA extends sf{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==so&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class pQ extends zi{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==ps)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 CA(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=aa.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 aa)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 bQ(n,e){return n.type.side-e.type.side}function yQ(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 wQ(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 CQ(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 Yv(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 Ky(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(dg(t)){for(a=l;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&st.isSelectable(u)&&o.parent&&!(u.isInline&&GZ(t.focusNode,t.focusOffset,o.dom))){let d=o.posBefore;c=new st(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(()=>{(!EA(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function SQ(n){let e=n.domSelection(),t=document.createRange(),r=n.cursorWrapper.dom,o=r.nodeName=="IMG";o?t.setEnd(r.parentNode,Hn(r)+1):t.setEnd(r,0),t.collapse(!1),e.removeAllRanges(),e.addRange(t),!o&&!n.state.selection.visible&&Er&&Bi<=11&&(r.disabled=!0,r.disabled=!1)}function _A(n,e){if(e instanceof st){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(Xx(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else Xx(n)}function Xx(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function Yy(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||yt.between(e,t,r)}function Zx(n){return n.editable&&!n.hasFocus()?!1:TA(n)}function TA(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 EQ(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return la(e.node,e.offset,t.anchorNode,t.anchorOffset)}function Jv(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&&Et.findFrom(s,e)}function Si(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function Qx(n,e,t){let r=n.state.selection;if(r instanceof yt)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 Si(n,new yt(r.$anchor,i))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=Jv(n.state,e);return o&&o instanceof st?Si(n,o):!1}else if(!(Kr&&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?st.isSelectable(s)?Si(n,new st(e<0?n.state.doc.resolve(o.pos-s.nodeSize):o)):of?Si(n,new yt(n.state.doc.resolve(e<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(r instanceof st&&r.node.isInline)return Si(n,new yt(e>0?r.$to:r.$from));{let o=Jv(n.state,e);return o?Si(n,o):!1}}}function Yh(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Hu(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Ta(n,e){return e<0?_Q(n):TQ(n)}function _Q(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,s,i=!1;for(Do&&t.nodeType==1&&r0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(Hu(l,-1))o=t,s=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(OA(t))break;{let l=t.previousSibling;for(;l&&Hu(l,-1);)o=t.parentNode,s=Hn(l),l=l.previousSibling;if(l)t=l,r=Yh(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}i?Xv(n,t,r):o&&Xv(n,o,s)}function TQ(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=Yh(t),s,i;for(;;)if(r{n.state==o&&Fs(n)},50)}function eS(n,e){let t=n.state.doc.resolve(e);if(!(fr||JZ)&&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 tS(n,e,t){let r=n.state.selection;if(r instanceof yt&&!r.empty||t.indexOf("s")>-1||Kr&&t.indexOf("m")>-1)return!1;let{$from:o,$to:s}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let i=Jv(n.state,e);if(i&&i instanceof st)return Si(n,i)}if(!o.parent.inlineContent){let i=e<0?o:s,l=r instanceof Po?Et.near(i,e):Et.findFrom(i,e);return l?Si(n,l):!1}return!1}function nS(n,e){if(!(n.state.selection instanceof yt))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 rS(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function AQ(n){if(!hr||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;rS(n,r,"true"),setTimeout(()=>rS(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 PQ(n,e){let t=e.keyCode,r=kQ(e);if(t==8||Kr&&t==72&&r=="c")return nS(n,-1)||Ta(n,-1);if(t==46&&!e.shiftKey||Kr&&t==68&&r=="c")return nS(n,1)||Ta(n,1);if(t==13||t==27)return!0;if(t==37||Kr&&t==66&&r=="c"){let o=t==37?eS(n,n.state.selection.from)=="ltr"?-1:1:-1;return Qx(n,o,r)||Ta(n,o)}else if(t==39||Kr&&t==70&&r=="c"){let o=t==39?eS(n,n.state.selection.from)=="ltr"?1:-1:1;return Qx(n,o,r)||Ta(n,o)}else{if(t==38||Kr&&t==80&&r=="c")return tS(n,-1,r)||Ta(n,-1);if(t==40||Kr&&t==78&&r=="c")return AQ(n)||tS(n,1,r)||Ta(n,1);if(r==(Kr?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function MA(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")||ts.fromSchema(n.state.schema),l=LA(),a=l.createElement("div");a.appendChild(i.serializeFragment(r,{document:l}));let c=a.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=IA[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 AA(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 je(Te.from(n.state.schema.text(e.replace(/\r\n?/g,` +`))),0,0):je.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=ts.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=LQ(t),of&&RQ(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")||Hy.fromSchema(n.state.schema)).parseSlice(i,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!NQ.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)l=$Q(oS(l,+u[1],+u[2]),u[4]);else if(l=je.maxOpen(IQ(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 NQ=/^(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 IQ(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&&PA(a,s,l,i[i.length-1],0))i[i.length-1]=c;else{i.length&&(i[i.length-1]=NA(i[i.length-1],s.length));let u=kA(l,a);i.push(u),o=o.matchType(u.type),s=a}}),i)return Te.from(i)}return n}function kA(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,Te.from(n));return n}function PA(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(Te.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,i.copy(l))}function oS(n,e,t){return e]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=LA().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&IA[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=Te.from(a.create(r[l+1],o)),s++,i++}return new je(o,s,i)}const pr={},gr={},DQ={touchstart:!0,touchmove:!0};class VQ{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 FQ(n){for(let e in pr){let t=pr[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{zQ(n,r)&&!Jy(n,r)&&(n.editable||!(r.type in gr))&&t(n,r)},DQ[e]?{passive:!0}:void 0)}hr&&n.dom.addEventListener("input",()=>null),Qv(n)}function Ri(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function BQ(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 Qv(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>Jy(n,r))})}function Jy(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function zQ(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 jQ(n,e){!Jy(n,e)&&pr[e.type]&&(n.editable||!(e.type in gr))&&pr[e.type](n,e)}gr.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!$A(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(Co&&fr&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),wc&&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,Nl(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||PQ(n,t)?t.preventDefault():Ri(n,"key")};gr.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)};gr.keypress=(n,e)=>{let t=e;if($A(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Kr&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof yt)||!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 hg(n){return{left:n.clientX,top:n.clientY}}function HQ(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function Xy(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 qa(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);r.setMeta("pointer",!0),n.dispatch(r)}function UQ(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&st.isSelectable(r)?(qa(n,new st(t)),!0):!1}function WQ(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof st&&(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(st.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?(qa(n,st.create(n.state.doc,o)),!0):!1}function GQ(n,e,t,r,o){return Xy(n,"handleClickOn",e,t,r)||n.someProp("handleClick",s=>s(n,e,r))||(o?WQ(n,t):UQ(n,t))}function qQ(n,e,t,r){return Xy(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function KQ(n,e,t,r){return Xy(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||YQ(n,t,r)}function YQ(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(qa(n,yt.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)qa(n,yt.create(r,l+1,l+1+i.content.size));else if(st.isSelectable(i))qa(n,st.create(r,l));else continue;return!0}}function Zy(n){return Jh(n)}const RA=Kr?"metaKey":"ctrlKey";pr.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=Zy(n),o=Date.now(),s="singleClick";o-n.input.lastClick.time<500&&HQ(t,n.input.lastClick)&&!t[RA]&&(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(hg(t));i&&(s=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new JQ(n,i,t,!!r)):(s=="doubleClick"?qQ:KQ)(n,i.pos,i.inside,t)?t.preventDefault():Ri(n,"pointer"))};class JQ{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[RA],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 st&&c.from<=i&&c.to>i)&&(this.mightDrag={node:s,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Do&&!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)),Ri(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(()=>Fs(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(hg(e))),this.updateAllowDefault(e),this.allowDefault||!t?Ri(this.view,"pointer"):GQ(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||hr&&this.mightDrag&&!this.mightDrag.node.isAtom||fr&&!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)?(qa(this.view,Et.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Ri(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ri(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)}}pr.touchstart=n=>{n.input.lastTouch=Date.now(),Zy(n),Ri(n,"pointer")};pr.touchmove=n=>{n.input.lastTouch=Date.now(),Ri(n,"pointer")};pr.contextmenu=n=>Zy(n);function $A(n,e){return n.composing?!0:hr&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const XQ=Co?5e3:-1;gr.compositionstart=gr.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(),Jh(n,!0),n.markCursor=null;else if(Jh(n),Do&&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}DA(n,XQ)};gr.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++,DA(n,20))};function DA(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Jh(n),e))}function VA(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=QQ());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function ZQ(n){let e=n.domSelectionRange();if(!e.focusNode)return null;let t=UZ(e.focusNode,e.focusOffset),r=WZ(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 QQ(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Jh(n,e=!1){if(!(Co&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),VA(n),e||n.docView&&n.docView.dirty){let t=Ky(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function eee(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 yd=Er&&Bi<15||wc&&XZ<604;pr.copy=gr.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let s=yd?null:t.clipboardData,i=r.content(),{dom:l,text:a}=MA(n,i);s?(t.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):eee(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function tee(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function nee(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?wd(n,r.value,null,o,e):wd(n,r.textContent,r.innerHTML,o,e)},50)}function wd(n,e,t,r,o){let s=AA(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,s||je.empty)))return!0;if(!s)return!1;let i=tee(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 FA(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," "):""}gr.paste=(n,e)=>{let t=e;if(n.composing&&!Co)return;let r=yd?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&wd(n,FA(r),r.getData("text/html"),o,t)?t.preventDefault():nee(n,t)};class BA{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const zA=Kr?"altKey":"ctrlKey";pr.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(hg(t)),i;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof st?o.to-1:o.to))){if(r&&r.mightDrag)i=st.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=st.create(n.state.doc,d.posBefore))}}let l=(i||n.state.selection).content(),{dom:a,text:c,slice:u}=MA(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(yd?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",yd||t.dataTransfer.setData("text/plain",c),n.dragging=new BA(u,!t[zA],i)};pr.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)};gr.dragover=gr.dragenter=(n,e)=>e.preventDefault();gr.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(hg(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=AA(n,FA(t.dataTransfer),yd?null:t.dataTransfer.getData("text/html"),!1,s);let l=!!(r&&!t[zA]);if(n.someProp("handleDrop",p=>p(n,t,i||je.empty,l))){t.preventDefault();return}if(!i)return;t.preventDefault();let a=i?sA(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&&st.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new st(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(Yy(n,h,c.doc.resolve(p)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))};pr.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())&&Fs(n)},20))};pr.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)};pr.beforeinput=(n,e)=>{if(fr&&Co&&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,Nl(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 gr)pr[n]=gr[n];function Cd(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 Xh{constructor(e,t){this.toDOM=e,this.spec=t||Jl,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 to(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Xh&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Cd(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class ji{constructor(e,t){this.attrs=e,this.spec=t||Jl}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 to(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==Qn||e.maps.length==0?this:this.mapInner(e,t,0,0,r||Jl)}mapInner(e,t,r,o,s){let i;for(let l=0;l{let c=a+r,u;if(u=HA(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 ji){let c=Math.max(s,a.from)-s,u=Math.min(i,a.to)-s;co.map(e,t,Jl));return ki.from(r)}forChild(e,t){if(t.isLeaf)return En.empty;let r=[];for(let o=0;ot instanceof En)?e:e.reduce((t,r)=>t.concat(r instanceof En?r:r.members),[]))}}}function ree(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!=Qn?(l[c]=d,l[c+1]=h,l[c+2]=v):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=oee(l,n,e,t,o,s,i),u=Zh(c,r,0,i);e=u.local;for(let d=0;dt&&i.to{let c=HA(n,l,a+t);if(c){s=!0;let u=Zh(c,l,t+a+1,r);u!=Qn&&o.push(a,a+l.nodeSize,u)}});let i=jA(s?UA(n):n,-t).sort(Xl);for(let l=0;l0;)e++;n.splice(e,0,t)}function gm(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=Qn&&e.push(r)}),n.cursorWrapper&&e.push(En.create(n.state.doc,[n.cursorWrapper.deco])),ki.from(e)}const see={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},iee=Er&&Bi<=11;class lee{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 aee{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lee,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()}),iee&&(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(Zx(this.view)){if(this.suppressingSelectionUpdates)return Fs(this.view);if(Er&&Bi<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&la(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=bd(s))t.add(s);for(let s=e.anchorNode;s;s=bd(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)&&Zx(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||dee(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),cee(e)),this.handleDOMChange(s,i,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Fs(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")||Hy.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:hee,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 hee(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(hr&&/^(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||hr&&/^(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 pee=/^(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 gee(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,A=Ky(n,O);if(A&&!n.state.selection.eq(A)){if(fr&&Co&&n.input.lastKeyCode===13&&Date.now()-100L(n,Nl(13,"Enter"))))return;let k=n.state.tr.setSelection(A);O=="pointer"?k.setMeta("pointer",!0):O=="key"&&k.scrollIntoView(),s&&k.setMeta("composition",s),n.dispatch(k)}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=fee(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||Co)&&o.some(O=>O.nodeType==1&&!pee.test(O.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",O=>O(n,Nl(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!p)if(r&&a instanceof yt&&!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=uS(n,n.state.doc,c.sel);if(O&&!O.eq(n.state.selection)){let A=n.state.tr.setSelection(O);s&&A.setMeta("composition",s),n.dispatch(A)}}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)),Er&&Bi<=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((wc&&n.input.lastIOSEnter>Date.now()-225&&(!w||o.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!w&&g.posO(n,Nl(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>p.start&&vee(u,p.start,p.endA,g,m)&&n.someProp("handleKeyDown",O=>O(n,Nl(8,"Backspace")))){Co&&fr&&n.domObserver.suppressSelectionUpdates();return}fr&&Co&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),Co&&!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,Nl(13,"Enter"))})},20));let y=p.start,S=p.endA,E,T,M;if(w){if(g.pos==m.pos)Er&&Bi<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>Fs(n),20)),E=n.state.tr.delete(y,S),T=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(M=mee(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,S,M.mark):E.removeMark(y,S,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",A=>A(n,y,S,O)))return;E=n.state.tr.insertText(O,y,S)}}if(E||(E=n.state.tr.replace(y,S,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let O=uS(n,E.doc,c.sel);O&&!(fr&&Co&&n.composing&&O.empty&&(p.start!=p.endB||n.input.lastAndroidDeletee.content.size?null:Yy(n,e.resolve(t.anchor),e.resolve(t.head))}function mee(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||mm(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 bee(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 yee{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 VQ,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(mS),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=pS(this),hS(this),this.nodeViews=gS(this),this.docView=Gx(this.state.doc,fS(this),gm(this),this.dom,this),this.domObserver=new aee(this,(r,o,s,i)=>gee(this,r,o,s,i)),this.domObserver.start(),FQ(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&&Qv(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(mS),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&&(VA(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=gS(this);Cee(h,this.nodeViews)&&(this.nodeViews=h,s=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&Qv(this),this.editable=pS(this),hS(this);let a=gm(this),c=fS(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&&eQ(this);if(i){this.domObserver.stop();let h=d&&(Er||fr)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&wee(o.selection,e.selection);if(d){let p=fr?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=ZQ(this)),(s||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Gx(e.doc,c,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&EQ(this))?Fs(this,h):(_A(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&&tQ(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof st){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Bx(this,t.getBoundingClientRect(),e)}else Bx(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 BA(e.slice,e.move,o<0?void 0:st.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 lQ(this,e)}coordsAtPos(e,t=1){return vA(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 fQ(this,t||this.state,e)}pasteHTML(e,t){return wd(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return wd(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(BQ(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],gm(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,jZ())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return jQ(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 hr&&this.root.nodeType===11&&qZ(this.dom.ownerDocument)==this.dom&&uee(this,e)||e}domSelection(){return this.root.getSelection()}}function fS(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"),[to.node(0,n.state.doc.content.size,e)]}function hS(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:to.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function pS(n){return!n.someProp("editable",e=>e(n.state)===!1)}function wee(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 gS(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 Cee(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 mS(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 Ki={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:"'"},Qh={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},xee=typeof navigator<"u"&&/Mac/.test(navigator.platform),See=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Un=0;Un<10;Un++)Ki[48+Un]=Ki[96+Un]=String(Un);for(var Un=1;Un<=24;Un++)Ki[Un+111]="F"+Un;for(var Un=65;Un<=90;Un++)Ki[Un]=String.fromCharCode(Un+32),Qh[Un]=String.fromCharCode(Un);for(var vm in Ki)Qh.hasOwnProperty(vm)||(Qh[vm]=Ki[vm]);function Eee(n){var e=xee&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||See&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Qh:Ki)[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 _ee=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Tee(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,s,i;for(let l=0;l127)&&(s=Ki[r.keyCode])&&s!=o){let l=e[bm(s,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const Aee=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function GA(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=GA(n,t);if(!r)return!1;let o=t0(r);if(!o){let i=r.blockRange(),l=i&&Jc(i);return l==null?!1:(e&&e(n.tr.lift(i,l).scrollIntoView()),!0)}let s=o.nodeBefore;if(!s.type.spec.isolating&&JA(n,o,e))return!0;if(r.parent.content.size==0&&(Cc(s,"end")||st.isSelectable(s))){let i=cg(n.doc,r.before(),r.after(),je.empty);if(i&&i.slice.size{let r=GA(n,t);if(!r)return!1;let o=t0(r);return o?qA(n,o,e):!1},Nee=(n,e,t)=>{let r=KA(n,t);if(!r)return!1;let o=n0(r);return o?qA(n,o,e):!1};function qA(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=cg(n.doc,s,a,je.empty);if(!c||c.from!=s||c instanceof kn&&c.slice.size>=a-s)return!1;if(t){let u=n.tr.step(c);u.setSelection(yt.create(u.doc,s)),t(u.scrollIntoView())}return!0}function Cc(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 Iee=(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=t0(r)}let i=s&&s.nodeBefore;return!i||!st.isSelectable(i)?!1:(e&&e(n.tr.setSelection(st.create(n.doc,s.pos-i.nodeSize)).scrollIntoView()),!0)};function t0(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 KA(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset{let r=KA(n,t);if(!r)return!1;let o=n0(r);if(!o)return!1;let s=o.nodeAfter;if(JA(n,o,e))return!0;if(r.parent.content.size==0&&(Cc(s,"start")||st.isSelectable(s))){let i=cg(n.doc,r.before(),r.after(),je.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 st,o;if(r){if(t.node.isTextblock||!dl(n.doc,t.from))return!1;o=t.from}else if(o=ag(n.doc,t.from,-1),o==null)return!1;if(e){let s=n.tr.join(o);r&&s.setSelection(st.create(s.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},Dee=(n,e)=>{let t=n.selection,r;if(t instanceof st){if(t.node.isTextblock||!dl(n.doc,t.to))return!1;r=t.to}else if(r=ag(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},Vee=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),s=o&&Jc(o);return s==null?!1:(e&&e(n.tr.lift(o,s).scrollIntoView()),!0)},Fee=(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 YA(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=YA(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(Et.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},zee=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Po||r.parent.inlineContent||o.parent.inlineContent)return!1;let s=YA(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(Wa(n.doc,s))return e&&e(n.tr.split(s).scrollIntoView()),!0}let r=t.blockRange(),o=r&&Jc(r);return o==null?!1:(e&&e(n.tr.lift(r,o).scrollIntoView()),!0)},Hee=(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(st.create(n.doc,o))),!0)};function Uee(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||dl(n.doc,e.pos))?!1:(t&&t(n.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function JA(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,s,i;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(Uee(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=Te.empty;for(let g=s.length-1;g>=0;g--)f=Te.from(s[g].create(null,f));f=Te.from(r.copy(f));let h=n.tr.step(new Rn(e.pos-1,d,e.pos,d,new je(f,1,0),s.length,!0)),p=d+2*s.length;dl(h.doc,p)&&h.join(p),t(h.scrollIntoView())}return!0}let a=Et.findFrom(e,1),c=a&&a.$from.blockRange(a.$to),u=c&&Jc(c);if(u!=null&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(l&&Cc(o,"start",!0)&&Cc(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=Te.empty;for(let v=f.length-1;v>=0;v--)g=Te.from(f[v].copy(g));let m=n.tr.step(new Rn(e.pos-f.length,e.pos+o.nodeSize,e.pos+p,e.pos+o.nodeSize-p,new je(g,f.length,0),0,!0));t(m.scrollIntoView())}return!0}}return!1}function XA(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(yt.create(e.doc,n<0?o.start(s):o.end(s)))),!0):!1}}const Wee=XA(-1),Gee=XA(1);function qee(n,e=null){return function(t,r){let{$from:o,$to:s}=t.selection,i=o.blockRange(s),l=i&&Wy(i,n,e);return l?(r&&r(t.tr.wrap(i,l).scrollIntoView()),!0):!1}}function vS(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 Wh(u,u,i.depth),i.endIndex=0;u--)s=Te.from(t[u].type.create(t[u].attrs,s));n.step(new Rn(e.start-(r?2:0),e.end,e.start,e.end,new je(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?Xee(e,t,n,s):Zee(e,t,s):!0:!1}}function Xee(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?Te.empty:Te.from(o))))return!1;let d=s.pos,f=d+i.nodeSize;return r.step(new Rn(d-(l?1:0),f+(a?1:0),d+1,f-1,new je((l?Te.empty:Te.from(o.copy(Te.empty))).append(a?Te.empty:Te.from(o.copy(Te.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}function Qee(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=Te.from(c?n.create():null),d=new je(Te.from(n.create(null,Te.from(l.type.create(null,u)))),c?3:1,0),f=s.start,h=s.end;t(e.tr.step(new Rn(f-(c?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}function pg(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 gg{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:pg({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 ete{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 mg(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 ZA(n){const e=[],{nodeExtensions:t,markExtensions:r}=mg(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},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 Vn(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 ln(...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 eb(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)=>ln(t,r),{})}function QA(n){return typeof n=="function"}function St(n,e=void 0,...t){return QA(n)?e?n.bind(e)(...t):n(...t):n}function tte(n={}){return Object.keys(n).length===0&&n.constructor===Object}function nte(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function bS(n,e){return n.style?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):nte(t.getAttribute(i.name));return l==null?s:{...s,[i.name]:l}},{});return{...r,...o}}}}function yS(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&tte(t)?!1:t!=null))}function rte(n,e){var t;const r=ZA(n),{nodeExtensions:o,markExtensions:s}=mg(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=yS({...f,content:St(qe(c,"content",d)),marks:St(qe(c,"marks",d)),group:St(qe(c,"group",d)),inline:St(qe(c,"inline",d)),atom:St(qe(c,"atom",d)),selectable:St(qe(c,"selectable",d)),draggable:St(qe(c,"draggable",d)),code:St(qe(c,"code",d)),defining:St(qe(c,"defining",d)),isolating:St(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=St(qe(c,"parseHTML",d));p&&(h.parseDOM=p.map(v=>bS(v,u)));const g=qe(c,"renderHTML",d);g&&(h.toDOM=v=>g({node:v,HTMLAttributes:eb(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=yS({...f,inclusive:St(qe(c,"inclusive",d)),excludes:St(qe(c,"excludes",d)),group:St(qe(c,"group",d)),spanning:St(qe(c,"spanning",d)),code:St(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=St(qe(c,"parseHTML",d));p&&(h.parseDOM=p.map(m=>bS(m,u)));const g=qe(c,"renderHTML",d);return g&&(h.toDOM=m=>g({mark:m,HTMLAttributes:eb(m,u)})),[c.name,h]}));return new iZ({topNode:i,nodes:l,marks:a})}function ym(n,e){return e.nodes[n]||e.marks[n]||null}function wS(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const ote=(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+=u.slice(0,Math.max(0,r-s))}),t};function r0(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class vg{constructor(e){this.find=e.find,this.handler=e.handler}}const ste=(n,e)=>{if(r0(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 Uf(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=ote(c)+s;return i.forEach(f=>{if(u)return;const h=ste(d,f.find);if(!h)return;const p=a.state.tr,g=pg({state:a.state,transaction:p}),m={from:r-(h[0].length-s.length),to:o},{commands:v,chain:w,can:b}=new gg({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 ite(n){const{editor:e,rules:t}=n,r=new jr({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;Uf({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 Uf({editor:e,from:s,to:i,text:l,rules:t,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:s}=o.state.selection;s&&Uf({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?Uf({editor:e,from:i.pos,to:i.pos,text:` +`,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function lte(n){return typeof n=="number"}class ate{constructor(e){this.find=e.find,this.handler=e.handler}}const cte=(n,e,t)=>{if(r0(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 ute(n){const{editor:e,state:t,from:r,to:o,rule:s,pasteEvent:i,dropEvent:l}=n,{commands:a,chain:c,can:u}=new gg({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,"");cte(v,s.find,i).forEach(b=>{if(b.index===void 0)return;const y=g+b.index+1,S=y+b[0].length,E={from:t.tr.mapping.map(y),to:t.tr.mapping.map(S)},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 dte=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 fte(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=pg({state:u,transaction:g});if(!(!ute({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 jr({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:S,text:E}=v,T=S+E.length,M=dte(E);return a({rule:u,state:h,from:S,to:{b:T},pasteEvt:M})}const b=f.doc.content.findDiffStart(h.doc.content),y=f.doc.content.findDiffEnd(h.doc.content);if(!(!lte(b)||!y||b===y.b))return a({rule:u,state:h,from:b,to:y,pasteEvt:i})}}))}function hte(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class Va{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Va.resolve(e),this.schema=rte(this.extensions,t),this.setupExtensions()}static resolve(e){const t=Va.sort(Va.flatten(e));return hte(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:ym(t.name,this.schema)},o=qe(t,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=Va.sort([...this.extensions].reverse()),r=[],o=[],s=t.map(i=>{const l={name:i.name,options:i.options,storage:i.storage,editor:e,type:ym(i.name,this.schema)},a=[],c=qe(i,"addKeyboardShortcuts",l);let u={};if(i.type==="mark"&&i.config.exitable&&(u.ArrowRight=()=>Vr.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=Mee(u);a.push(d);const f=qe(i,"addInputRules",l);wS(i,e.options.enableInputRules)&&f&&r.push(...f());const h=qe(i,"addPasteRules",l);wS(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[ite({editor:e,rules:r}),...fte({editor:e,rules:o}),...s]}get attributes(){return ZA(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=mg(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:Vn(r.name,this.schema)},i=qe(r,"addNodeView",s);if(!i)return[];const l=(a,c,u,d)=>{const f=eb(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:ym(e.name,this.schema)};e.type==="mark"&&(!((t=St(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 pte(n){return Object.prototype.toString.call(n).slice(8,-1)}function wm(n){return pte(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function bg(n,e){const t={...n};return wm(n)&&wm(e)&&Object.keys(e).forEach(r=>{wm(e[r])?r in n?t[r]=bg(n[r],e[r]):Object.assign(t,{[r]:e[r]}):Object.assign(t,{[r]:e[r]})}),t}class or{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=St(qe(this,"addOptions",{name:this.name}))),this.storage=St(qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new or(e)}configure(e={}){const t=this.extend();return t.parent=this.parent,t.options=bg(this.options,e),t.storage=St(qe(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new or({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions,t.options=St(qe(t,"addOptions",{name:t.name})),t.storage=St(qe(t,"addStorage",{name:t.name,options:t.options})),t}}function ek(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 tk(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const gte=or.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new jr({key:new ni("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=tk(t);return ek(r,{from:i,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),mte=()=>({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),vte=(n=!1)=>({commands:e})=>e.setContent("",n),bte=()=>({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=Jc(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},yte=n=>e=>n(e),wte=()=>({state:n,dispatch:e})=>zee(n,e),Cte=(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 yt(r.doc.resolve(i-1))),!0},xte=()=>({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},Ste=n=>({tr:e,state:t,dispatch:r})=>{const o=Vn(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},Ete=n=>({tr:e,dispatch:t})=>{const{from:r,to:o}=n;return t&&e.delete(r,o),!0},_te=()=>({state:n,dispatch:e})=>Aee(n,e),Tte=()=>({commands:n})=>n.keyboardShortcut("Enter"),Ote=()=>({state:n,dispatch:e})=>Bee(n,e);function ep(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>t.strict?e[o]===n[o]:r0(e[o])?e[o].test(n[o]):e[o]===n[o]):!0}function tb(n,e,t={}){return n.find(r=>r.type===e&&ep(r.attrs,t))}function Mte(n,e,t={}){return!!tb(n,e,t)}function o0(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=tb([...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(tb([...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=hl(n,r.schema),{doc:i,selection:l}=t,{$from:a,from:c,to:u}=l;if(o){const d=o0(a,s,e);if(d&&d.from<=c&&d.to>=u){const f=yt.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=()=>{i0()&&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&&!s0(t.state.selection))return i(),!0;const l=nk(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},Nte=(n,e)=>t=>n.every((r,o)=>e(r,{...t,index:o})),Ite=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),rk=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&&rk(r)}return n};function CS(n){const e=`${n}`,t=new window.DOMParser().parseFromString(e,"text/html").body;return rk(t)}function tp(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?Te.fromArray(n.map(i=>e.nodeFromJSON(i))):e.nodeFromJSON(n)}catch{return tp("",e,t)}if(o){const s=Hy.fromSchema(e);return t.slice?s.parseSlice(CS(n),t.parseOptions).content:s.parse(CS(n),t.parseOptions)}return tp("",e,t)}function Lte(n,e,t){const r=n.steps.length-1;if(r{i===0&&(i=u)}),n.setSelection(Et.near(n.doc.resolve(i),t))}const Rte=n=>n.toString().startsWith("<"),$te=(n,e,t)=>({tr:r,dispatch:o,editor:s})=>{if(o){t={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};const i=tp(e,s.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if(i.toString()==="<>")return!0;let{from:l,to:a}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},c=!0,u=!0;if((Rte(i)?i:[i]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),l===a&&u){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,a+=1)}let f;c?(Array.isArray(e)?f=e.map(h=>h.text||"").join(""):typeof e=="object"&&e&&e.text?f=e.text:f=e,r.insertText(f,l,a)):(f=i,r.replaceWith(l,a,f)),t.updateSelection&&Lte(r,r.steps.length-1,-1),t.applyInputRules&&r.setMeta("applyInputRules",{from:l,text:f}),t.applyPasteRules&&r.setMeta("applyPasteRules",{from:l,text:f})}return!0},Dte=()=>({state:n,dispatch:e})=>$ee(n,e),Vte=()=>({state:n,dispatch:e})=>Dee(n,e),Fte=()=>({state:n,dispatch:e})=>kee(n,e),Bte=()=>({state:n,dispatch:e})=>Lee(n,e),zte=()=>({tr:n,state:e,dispatch:t})=>{try{const r=ag(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},jte=()=>({state:n,dispatch:e,tr:t})=>{try{const r=ag(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},Hte=()=>({state:n,dispatch:e})=>Pee(n,e),Ute=()=>({state:n,dispatch:e})=>Nee(n,e);function ok(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Wte(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=Wte(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 xd(n,e,t={}){const{from:r,to:o,empty:s}=n.selection,i=e?Vn(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=>ep(d.node.attrs,t,{strict:!1}));return s?!!c.length:c.reduce((d,f)=>d+f.to-f.from,0)>=a}const qte=(n,e={})=>({state:t,dispatch:r})=>{const o=Vn(n,t.schema);return xd(t,o,e)?Vee(t,r):!1},Kte=()=>({state:n,dispatch:e})=>jee(n,e),Yte=n=>({state:e,dispatch:t})=>{const r=Vn(n,e.schema);return Jee(r)(e,t)},Jte=()=>({state:n,dispatch:e})=>Fee(n,e);function yg(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function xS(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 Xte=(n,e)=>({tr:t,state:r,dispatch:o})=>{let s=null,i=null;const l=yg(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(s=Vn(n,r.schema)),l==="mark"&&(i=hl(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,xS(c.attrs,e)),i&&c.marks.length&&c.marks.forEach(d=>{i===d.type&&t.addMark(u,u+c.nodeSize,i.create(xS(d.attrs,e)))})})}),!0):!1},Zte=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),Qte=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),ene=()=>({state:n,dispatch:e})=>Iee(n,e),tne=()=>({state:n,dispatch:e})=>Ree(n,e),nne=()=>({state:n,dispatch:e})=>Hee(n,e),rne=()=>({state:n,dispatch:e})=>Gee(n,e),one=()=>({state:n,dispatch:e})=>Wee(n,e);function sk(n,e,t={}){return tp(n,e,{slice:!1,parseOptions:t})}const sne=(n,e=!1,t={})=>({tr:r,editor:o,dispatch:s})=>{const{doc:i}=r,l=sk(n,o.schema,t);return s&&r.replaceWith(0,i.content.size,l).setMeta("preventUpdate",!e),!0};function lf(n,e){const t=hl(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 ine(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 l0(n){return e=>lne(e.$from,n)}function ane(n,e){const t=ts.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}function cne(n,e){const t={from:0,to:n.content.size};return ek(n,t,e)}function une(n,e){const t=Vn(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 dne(n,e){const t=yg(typeof e=="string"?e:e.name,n.schema);return t==="node"?une(n,e):t==="mark"?lf(n,e):{}}function ik(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(o=>{const s=t.resolve(n-1),i=o0(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 vh(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 nb(n,e,t={}){const{empty:r,ranges:o}=n.selection,s=e?hl(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>ep(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=>ep(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 fne(n,e,t={}){if(!e)return xd(n,null,t)||nb(n,null,t);const r=yg(e,n.schema);return r==="node"?xd(n,e,t):r==="mark"?nb(n,e,t):!1}function SS(n,e){const{nodeExtensions:t}=mg(e),r=t.find(i=>i.name===n);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},s=St(qe(r,"group",o));return typeof s!="string"?!1:s.split(" ").includes("list")}function hne(n){var e;const t=(e=n.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=n.toJSON();return JSON.stringify(t)===JSON.stringify(r)}function pne(n){return n instanceof st}function gne(n,e,t){const o=n.state.doc.content.size,s=Rs(e,0,o),i=Rs(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 mne(n,e,t){var r;const{selection:o}=e;let s=null;if(s0(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 vne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const{selection:s}=t,{empty:i,ranges:l}=s,a=hl(n,r.schema);if(o)if(i){const c=lf(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 mne(r,t,a)},bne=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),yne=(n,e={})=>({state:t,dispatch:r,chain:o})=>{const s=Vn(n,t.schema);return s.isTextblock?o().command(({commands:i})=>vS(s,e)(t)?!0:i.clearNodes()).command(({state:i})=>vS(s,e)(i,r)).run():!1},wne=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,o=Rs(n,0,r.content.size),s=st.create(r,o);e.setSelection(s)}return!0},Cne=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:o,to:s}=typeof n=="number"?{from:n,to:n}:n,i=yt.atStart(r).from,l=yt.atEnd(r).to,a=Rs(o,i,l),c=Rs(s,i,l),u=yt.create(r,a,c);e.setSelection(u)}return!0},xne=n=>({state:e,dispatch:t})=>{const r=Vn(n,e.schema);return Qee(r)(e,t)};function ES(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 Sne=({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=vh(c,l.node().type.name,l.node().attrs);if(s instanceof st&&s.node.isBlock)return!l.parentOffset||!Wa(i,l.pos)?!1:(r&&(n&&ES(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 yt&&e.deleteSelection();const f=l.depth===0?void 0:ine(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=d&&f?[{type:f,attrs:u}]:void 0,p=Wa(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!p&&Wa(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&&ES(t,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},Ene=n=>({tr:e,state:t,dispatch:r,editor:o})=>{var s;const i=Vn(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=Te.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=Te.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(yt.near(e.doc.resolve(E))),e.scrollIntoView()}return!0}const f=a.pos===l.end()?u.contentMatchAt(0).defaultType:null,h=vh(d,u.type.name,u.attrs),p=vh(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(!Wa(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(S=>w.includes(S.type.name));e.ensureMarks(y)}return!0},Cm=(n,e)=>{const t=l0(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)&&dl(n.doc,t.pos)&&n.join(t.pos),!0},xm=(n,e)=>{const t=l0(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)&&dl(n.doc,r)&&n.join(r),!0},_ne=(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=Vn(n,i.schema),p=Vn(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 S=l0(E=>SS(E.type.name,d))(g);if(b.depth>=1&&S&&b.depth-S.depth<=1){if(S.node.type===h)return c.liftListItem(p);if(SS(S.node.type.name,d)&&h.validContent(S.node.content)&&l)return a().command(()=>(s.setNodeMarkup(S.pos,h),!0)).command(()=>Cm(s,h)).command(()=>xm(s,h)).run()}return!t||!y||!l?a().command(()=>u().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>Cm(s,h)).command(()=>xm(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(()=>Cm(s,h)).command(()=>xm(s,h)).run()},Tne=(n,e={},t={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:s=!1}=t,i=hl(n,r.schema);return nb(r,i,e)?o.unsetMark(i,{extendEmptyMarkRange:s}):o.setMark(i,e)},One=(n,e,t={})=>({state:r,commands:o})=>{const s=Vn(n,r.schema),i=Vn(e,r.schema);return xd(r,s,t)?o.setNode(i):o.setNode(s,t)},Mne=(n,e={})=>({state:t,commands:r})=>{const o=Vn(n,t.schema);return xd(t,o,e)?r.lift(o):r.wrapIn(o,e)},Ane=()=>({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},kne=()=>({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},Pne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{var s;const{extendEmptyMarkRange:i=!1}=e,{selection:l}=t,a=hl(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=o0(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},Nne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{let s=null,i=null;const l=yg(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(s=Vn(n,r.schema)),l==="mark"&&(i=hl(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},Ine=(n,e={})=>({state:t,dispatch:r})=>{const o=Vn(n,t.schema);return qee(o,e)(t,r)},Lne=(n,e={})=>({state:t,dispatch:r})=>{const o=Vn(n,t.schema);return Kee(o,e)(t,r)};var Rne=Object.freeze({__proto__:null,blur:mte,clearContent:vte,clearNodes:bte,command:yte,createParagraphNear:wte,cut:Cte,deleteCurrentNode:xte,deleteNode:Ste,deleteRange:Ete,deleteSelection:_te,enter:Tte,exitCode:Ote,extendMarkRange:Ate,first:kte,focus:Pte,forEach:Nte,insertContent:Ite,insertContentAt:$te,joinUp:Dte,joinDown:Vte,joinBackward:Fte,joinForward:Bte,joinItemBackward:zte,joinItemForward:jte,joinTextblockBackward:Hte,joinTextblockForward:Ute,keyboardShortcut:Gte,lift:qte,liftEmptyBlock:Kte,liftListItem:Yte,newlineInCode:Jte,resetAttributes:Xte,scrollIntoView:Zte,selectAll:Qte,selectNodeBackward:ene,selectNodeForward:tne,selectParentNode:nne,selectTextblockEnd:rne,selectTextblockStart:one,setContent:sne,setMark:vne,setMeta:bne,setNode:yne,setNodeSelection:wne,setTextSelection:Cne,sinkListItem:xne,splitBlock:Sne,splitListItem:Ene,toggleList:_ne,toggleMark:Tne,toggleNode:One,toggleWrap:Mne,undoInputRule:Ane,unsetAllMarks:kne,unsetMark:Pne,updateAttributes:Nne,wrapIn:Ine,wrapInList:Lne});const $ne=or.create({name:"commands",addCommands(){return{...Rne}}}),Dne=or.create({name:"editable",addProseMirrorPlugins(){return[new jr({key:new ni("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Vne=or.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new jr({key:new ni("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}}}})]}}),Fne=or.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:Et.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 i0()||ok()?s:o},addProseMirrorPlugins(){return[new jr({key:new ni("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=Et.atStart(e.doc).from,a=Et.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=pg({state:t,transaction:d}),{commands:h}=new gg({editor:this.editor,state:f});if(h.clearNodes(),!!d.steps.length)return d}})]}}),Bne=or.create({name:"tabindex",addProseMirrorPlugins(){return[new jr({key:new ni("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Il{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 name(){return this.node.type.name}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 Il(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 Il(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 Il(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 Il(i,this.editor,o,o?t:null);o&&(l.actualDepth=this.depth+1),e.push(new Il(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 zne=`.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 jne(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 Hne=class extends ete{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,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>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.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=jne(zne,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=QA(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?[Dne,gte.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),$ne,Vne,Fne,Bne]:[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new Va(o,this)}createCommandManager(){this.commandManager=new gg({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=sk(this.options.content,this.schema,this.options.parseOptions),t=nk(e,this.options.autofocus);this.view=new yee(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Da.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.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 dne(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,o=typeof e=="string"?t:e;return fne(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return ane(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` + +`,textSerializers:r={}}=e||{};return cne(this.state.doc,{blockSeparator:t,textSerializers:{...tk(this.schema),...r}})}get isEmpty(){return hne(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 Il(t,this)}get $doc(){return this.$pos(0)}};function ca(n){return new vg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=St(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(ik(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 Une(n){return new vg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=St(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 r[0]&&s.insert(i-1,n.type.create(o)).delete(s.mapping.map(i),s.mapping.map(l));s.scrollIntoView()}})}function rb(n){return new vg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=e.doc.resolve(t.from),s=St(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 Sd(n){return new vg({find:n.find,handler:({state:e,range:t,match:r,chain:o})=>{const s=St(n.getAttributes,void 0,r)||{},i=e.tr.delete(t.from,t.to),a=i.doc.resolve(t.from).blockRange(),c=a&&Wy(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&&dl(i.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&i.join(t.from-1)}})}class Vr{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=St(qe(this,"addOptions",{name:this.name}))),this.storage=St(qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Vr(e)}configure(e={}){const t=this.extend();return t.options=bg(this.options,e),t.storage=St(qe(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Vr({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions,t.options=St(qe(t,"addOptions",{name:t.name})),t.storage=St(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 Hr=class ob{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=St(qe(this,"addOptions",{name:this.name}))),this.storage=St(qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ob(e)}configure(e={}){const t=this.extend();return t.options=bg(this.options,e),t.storage=St(qe(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new ob({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions,t.options=St(qe(t,"addOptions",{name:t.name})),t.storage=St(qe(t,"addStorage",{name:t.name,options:t.options})),t}};function ua(n){return new ate({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:o})=>{const s=St(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(ik(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 Wne="tippy-box",lk="tippy-content",Gne="tippy-backdrop",ak="tippy-arrow",ck="tippy-svg-arrow",Ol={passive:!0,capture:!0},uk=function(){return document.body};function Sm(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function a0(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function dk(n,e){return typeof n=="function"?n.apply(void 0,e):n}function _S(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function qne(n){return n.split(/\s+/).filter(Boolean)}function La(n){return[].concat(n)}function TS(n,e){n.indexOf(e)===-1&&n.push(e)}function Kne(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function Yne(n){return n.split("-")[0]}function np(n){return[].slice.call(n)}function OS(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Uu(){return document.createElement("div")}function wg(n){return["Element","Fragment"].some(function(e){return a0(n,e)})}function Jne(n){return a0(n,"NodeList")}function Xne(n){return a0(n,"MouseEvent")}function Zne(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function Qne(n){return wg(n)?[n]:Jne(n)?np(n):Array.isArray(n)?n:np(document.querySelectorAll(n))}function Em(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function MS(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function ere(n){var e,t=La(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function tre(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=Yne(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 _m(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[r](o,t)})}function AS(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 Xo={isTouch:!1},kS=0;function nre(){Xo.isTouch||(Xo.isTouch=!0,window.performance&&document.addEventListener("mousemove",fk))}function fk(){var n=performance.now();n-kS<20&&(Xo.isTouch=!1,document.removeEventListener("mousemove",fk)),kS=n}function rre(){var n=document.activeElement;if(Zne(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function ore(){document.addEventListener("touchstart",nre,Ol),window.addEventListener("blur",rre)}var sre=typeof window<"u"&&typeof document<"u",ire=sre?!!window.msCrypto:!1,lre={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},are={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Mo=Object.assign({appendTo:uk,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},lre,are),cre=Object.keys(Mo),ure=function(e){var t=Object.keys(e);t.forEach(function(r){Mo[r]=e[r]})};function hk(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=Mo[s])!=null?l:i}return r},{});return Object.assign({},n,t)}function dre(n,e){var t=e?Object.keys(hk(Object.assign({},Mo,{plugins:e}))):cre,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 PS(n,e){var t=Object.assign({},e,{content:dk(e.content,[n])},e.ignoreAttributes?{}:dre(n,e.plugins));return t.aria=Object.assign({},Mo.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 fre=function(){return"innerHTML"};function sb(n,e){n[fre()]=e}function NS(n){var e=Uu();return n===!0?e.className=ak:(e.className=ck,wg(n)?e.appendChild(n):sb(e,n)),e}function IS(n,e){wg(e.content)?(sb(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?sb(n,e.content):n.textContent=e.content)}function ib(n){var e=n.firstElementChild,t=np(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(lk)}),arrow:t.find(function(r){return r.classList.contains(ak)||r.classList.contains(ck)}),backdrop:t.find(function(r){return r.classList.contains(Gne)})}}function pk(n){var e=Uu(),t=Uu();t.className=Wne,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Uu();r.className=lk,r.setAttribute("data-state","hidden"),IS(r,n.props),e.appendChild(t),t.appendChild(r),o(n.props,n.props);function o(s,i){var l=ib(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)&&IS(c,n.props),i.arrow?u?s.arrow!==i.arrow&&(a.removeChild(u),a.appendChild(NS(i.arrow))):a.appendChild(NS(i.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}pk.$$tippy=!0;var hre=1,Wf=[],Tm=[];function pre(n,e){var t=PS(n,Object.assign({},Mo,hk(OS(e)))),r,o,s,i=!1,l=!1,a=!1,c=!1,u,d,f,h=[],p=_S(N,t.interactiveDebounce),g,m=hre++,v=null,w=Kne(t.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:m,reference:n,popper:Uu(),popperInstance:v,props:t,state:b,plugins:w,clearDelayTimeouts:Q,setProps:de,setContent:Ue,show:Ke,hide:Ae,hideWithInteractivity:Me,enable:Oe,disable:oe,unmount:Je,destroy:it};if(!t.render)return y;var S=t.render(y),E=S.popper,T=S.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(he){return he.fn(y)}),O=n.hasAttribute("aria-expanded");return ke(),K(),U(),Z("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&&ne().addEventListener("mousemove",p)}),y;function A(){var he=y.props.touch;return Array.isArray(he)?he:[he,0]}function k(){return A()[0]==="hold"}function L(){var he;return!!((he=y.props.render)!=null&&he.$$tippy)}function j(){return g||n}function ne(){var he=j().parentNode;return he?ere(he):document}function I(){return ib(E)}function R(he){return y.state.isMounted&&!y.state.isVisible||Xo.isTouch||u&&u.type==="focus"?0:Sm(y.props.delay,he?0:1,Mo.delay)}function U(he){he===void 0&&(he=!1),E.style.pointerEvents=y.props.interactive&&!he?"":"none",E.style.zIndex=""+y.props.zIndex}function Z(he,Ne,Ve){if(Ve===void 0&&(Ve=!0),M.forEach(function(ct){ct[he]&&ct[he].apply(ct,Ne)}),Ve){var lt;(lt=y.props)[he].apply(lt,Ne)}}function Y(){var he=y.props.aria;if(he.content){var Ne="aria-"+he.content,Ve=E.id,lt=La(y.props.triggerTarget||n);lt.forEach(function(ct){var xn=ct.getAttribute(Ne);if(y.state.isVisible)ct.setAttribute(Ne,xn?xn+" "+Ve:Ve);else{var Xn=xn&&xn.replace(Ve,"").trim();Xn?ct.setAttribute(Ne,Xn):ct.removeAttribute(Ne)}})}}function K(){if(!(O||!y.props.aria.expanded)){var he=La(y.props.triggerTarget||n);he.forEach(function(Ne){y.props.interactive?Ne.setAttribute("aria-expanded",y.state.isVisible&&Ne===j()?"true":"false"):Ne.removeAttribute("aria-expanded")})}}function fe(){ne().removeEventListener("mousemove",p),Wf=Wf.filter(function(he){return he!==p})}function H(he){if(!(Xo.isTouch&&(a||he.type==="mousedown"))){var Ne=he.composedPath&&he.composedPath()[0]||he.target;if(!(y.props.interactive&&AS(E,Ne))){if(La(y.props.triggerTarget||n).some(function(Ve){return AS(Ve,Ne)})){if(Xo.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else Z("onClickOutside",[y,he]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||ye())}}}function se(){a=!0}function ue(){a=!1}function be(){var he=ne();he.addEventListener("mousedown",H,!0),he.addEventListener("touchend",H,Ol),he.addEventListener("touchstart",ue,Ol),he.addEventListener("touchmove",se,Ol)}function ye(){var he=ne();he.removeEventListener("mousedown",H,!0),he.removeEventListener("touchend",H,Ol),he.removeEventListener("touchstart",ue,Ol),he.removeEventListener("touchmove",se,Ol)}function W(he,Ne){re(he,function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&Ne()})}function ce(he,Ne){re(he,Ne)}function re(he,Ne){var Ve=I().box;function lt(ct){ct.target===Ve&&(_m(Ve,"remove",lt),Ne())}if(he===0)return Ne();_m(Ve,"remove",d),_m(Ve,"add",lt),d=lt}function ve(he,Ne,Ve){Ve===void 0&&(Ve=!1);var lt=La(y.props.triggerTarget||n);lt.forEach(function(ct){ct.addEventListener(he,Ne,Ve),h.push({node:ct,eventType:he,handler:Ne,options:Ve})})}function ke(){k()&&(ve("touchstart",$,{passive:!0}),ve("touchend",te,{passive:!0})),qne(y.props.trigger).forEach(function(he){if(he!=="manual")switch(ve(he,$),he){case"mouseenter":ve("mouseleave",te);break;case"focus":ve(ire?"focusout":"blur",pe);break;case"focusin":ve("focusout",pe);break}})}function Se(){h.forEach(function(he){var Ne=he.node,Ve=he.eventType,lt=he.handler,ct=he.options;Ne.removeEventListener(Ve,lt,ct)}),h=[]}function $(he){var Ne,Ve=!1;if(!(!y.state.isEnabled||ge(he)||l)){var lt=((Ne=u)==null?void 0:Ne.type)==="focus";u=he,g=he.currentTarget,K(),!y.state.isVisible&&Xne(he)&&Wf.forEach(function(ct){return ct(he)}),he.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||i)&&y.props.hideOnClick!==!1&&y.state.isVisible?Ve=!0:J(he),he.type==="click"&&(i=!Ve),Ve&&!lt&&le(he)}}function N(he){var Ne=he.target,Ve=j().contains(Ne)||E.contains(Ne);if(!(he.type==="mousemove"&&Ve)){var lt=V().concat(E).map(function(ct){var xn,Xn=ct._tippy,Wo=(xn=Xn.popperInstance)==null?void 0:xn.state;return Wo?{popperRect:ct.getBoundingClientRect(),popperState:Wo,props:t}:null}).filter(Boolean);tre(lt,he)&&(fe(),le(he))}}function te(he){var Ne=ge(he)||y.props.trigger.indexOf("click")>=0&&i;if(!Ne){if(y.props.interactive){y.hideWithInteractivity(he);return}le(he)}}function pe(he){y.props.trigger.indexOf("focusin")<0&&he.target!==j()||y.props.interactive&&he.relatedTarget&&E.contains(he.relatedTarget)||le(he)}function ge(he){return Xo.isTouch?k()!==he.type.indexOf("touch")>=0:!1}function ae(){Ee();var he=y.props,Ne=he.popperOptions,Ve=he.placement,lt=he.offset,ct=he.getReferenceClientRect,xn=he.moveTransition,Xn=L()?ib(E).arrow:null,Wo=ct?{getBoundingClientRect:ct,contextElement:ct.contextElement||j()}:n,mo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(vl){var si=vl.state;if(L()){var gf=I(),nu=gf.box;["placement","reference-hidden","escaped"].forEach(function(Go){Go==="placement"?nu.setAttribute("data-placement",si.placement):si.attributes.popper["data-popper-"+Go]?nu.setAttribute("data-"+Go,""):nu.removeAttribute("data-"+Go)}),si.attributes.popper={}}}},vo=[{name:"offset",options:{offset:lt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!xn}},mo];L()&&Xn&&vo.push({name:"arrow",options:{element:Xn,padding:3}}),vo.push.apply(vo,(Ne==null?void 0:Ne.modifiers)||[]),y.popperInstance=pO(Wo,E,Object.assign({},Ne,{placement:Ve,onFirstUpdate:f,modifiers:vo}))}function Ee(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function D(){var he=y.props.appendTo,Ne,Ve=j();y.props.interactive&&he===uk||he==="parent"?Ne=Ve.parentNode:Ne=dk(he,[Ve]),Ne.contains(E)||Ne.appendChild(E),y.state.isMounted=!0,ae()}function V(){return np(E.querySelectorAll("[data-tippy-root]"))}function J(he){y.clearDelayTimeouts(),he&&Z("onTrigger",[y,he]),be();var Ne=R(!0),Ve=A(),lt=Ve[0],ct=Ve[1];Xo.isTouch&<==="hold"&&ct&&(Ne=ct),Ne?r=setTimeout(function(){y.show()},Ne):y.show()}function le(he){if(y.clearDelayTimeouts(),Z("onUntrigger",[y,he]),!y.state.isVisible){ye();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(he.type)>=0&&i)){var Ne=R(!1);Ne?o=setTimeout(function(){y.state.isVisible&&y.hide()},Ne):s=requestAnimationFrame(function(){y.hide()})}}function Oe(){y.state.isEnabled=!0}function oe(){y.hide(),y.state.isEnabled=!1}function Q(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function de(he){if(!y.state.isDestroyed){Z("onBeforeUpdate",[y,he]),Se();var Ne=y.props,Ve=PS(n,Object.assign({},Ne,OS(he),{ignoreAttributes:!0}));y.props=Ve,ke(),Ne.interactiveDebounce!==Ve.interactiveDebounce&&(fe(),p=_S(N,Ve.interactiveDebounce)),Ne.triggerTarget&&!Ve.triggerTarget?La(Ne.triggerTarget).forEach(function(lt){lt.removeAttribute("aria-expanded")}):Ve.triggerTarget&&n.removeAttribute("aria-expanded"),K(),U(),T&&T(Ne,Ve),y.popperInstance&&(ae(),V().forEach(function(lt){requestAnimationFrame(lt._tippy.popperInstance.forceUpdate)})),Z("onAfterUpdate",[y,he])}}function Ue(he){y.setProps({content:he})}function Ke(){var he=y.state.isVisible,Ne=y.state.isDestroyed,Ve=!y.state.isEnabled,lt=Xo.isTouch&&!y.props.touch,ct=Sm(y.props.duration,0,Mo.duration);if(!(he||Ne||Ve||lt)&&!j().hasAttribute("disabled")&&(Z("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,L()&&(E.style.visibility="visible"),U(),be(),y.state.isMounted||(E.style.transition="none"),L()){var xn=I(),Xn=xn.box,Wo=xn.content;Em([Xn,Wo],0)}f=function(){var vo;if(!(!y.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,L()&&y.props.animation){var tu=I(),vl=tu.box,si=tu.content;Em([vl,si],ct),MS([vl,si],"visible")}Y(),K(),TS(Tm,y),(vo=y.popperInstance)==null||vo.forceUpdate(),Z("onMount",[y]),y.props.animation&&L()&&ce(ct,function(){y.state.isShown=!0,Z("onShown",[y])})}},D()}}function Ae(){var he=!y.state.isVisible,Ne=y.state.isDestroyed,Ve=!y.state.isEnabled,lt=Sm(y.props.duration,1,Mo.duration);if(!(he||Ne||Ve)&&(Z("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"),fe(),ye(),U(!0),L()){var ct=I(),xn=ct.box,Xn=ct.content;y.props.animation&&(Em([xn,Xn],lt),MS([xn,Xn],"hidden"))}Y(),K(),y.props.animation?L()&&W(lt,y.unmount):y.unmount()}}function Me(he){ne().addEventListener("mousemove",p),TS(Wf,p),p(he)}function Je(){y.state.isVisible&&y.hide(),y.state.isMounted&&(Ee(),V().forEach(function(he){he._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Tm=Tm.filter(function(he){return he!==y}),y.state.isMounted=!1,Z("onHidden",[y]))}function it(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),Se(),delete n._tippy,y.state.isDestroyed=!0,Z("onDestroy",[y]))}}function af(n,e){e===void 0&&(e={});var t=Mo.plugins.concat(e.plugins||[]);ore();var r=Object.assign({},e,{plugins:t}),o=Qne(n),s=o.reduce(function(i,l){var a=l&&pre(l,r);return a&&i.push(a),i},[]);return wg(n)?s[0]:s}af.defaultProps=Mo;af.setDefaultProps=ure;af.currentInput=Xo;Object.assign({},wy,{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)}});af.setDefaultProps({render:pk});class gre{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&&s0(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(pne(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 gne(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=af(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.pos!==r.selection.$to.pos;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 gk=n=>new jr({key:typeof n.pluginKey=="string"?new ni(n.pluginKey):n.pluginKey,view:e=>new gre({view:e,...n})});or.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[gk({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});const mre=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=z(null);return rt(()=>{const{updateDelay:r,editor:o,pluginKey:s,shouldShow:i,tippyOptions:l}=n;o.registerPlugin(gk({updateDelay:r,editor:o,element:t.value,pluginKey:s,shouldShow:i,tippyOptions:l}))}),wn(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return Ye("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function LS(n){return YN((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class vre extends Hne{constructor(e={}){return super(e),this.vueRenderers=Ct(new Map),this.contentComponent=null,this.reactiveState=LS(this.view.state),this.reactiveExtensionStorage=LS(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),Xu(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 bre=me({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=z(),t=vt();return rs(()=>{const r=n.editor;r&&r.options.element&&e.value&&nt(()=>{if(!e.value||!r.options.element.firstChild)return;const o=C(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),wn(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=Ye(Bc,{to:e.teleportElement,key:e.id},Ye(e.component,{ref:e.id,...e.props}));n.push(t)}),Ye("div",{ref:e=>{this.rootEl=e}},...n)}}),yre=/^\s*>\s$/,wre=Hr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",ln(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[Sd({find:yre,type:this.type})]}}),Cre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,xre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Sre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Ere=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,_re=Vr.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",ln(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[ca({find:Cre,type:this.type}),ca({find:Sre,type:this.type})]},addPasteRules(){return[ua({find:xre,type:this.type}),ua({find:Ere,type:this.type})]}}),Tre=Hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ln(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)}}}),RS=Vr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ln(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=lf(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),$S=/^\s*([-+*])\s$/,Ore=Hr.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",ln(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(Tre.name,this.editor.getAttributes(RS.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Sd({find:$S,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Sd({find:$S,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(RS.name),editor:this.editor})),[n]}}),Mre=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,Are=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,kre=Vr.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:n}){return["code",ln(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[ca({find:Mre,type:this.type})]},addPasteRules(){return[ua({find:Are,type:this.type})]}}),Pre=/^```([a-z]+)?[\s\n]$/,Nre=/^~~~([a-z]+)?[\s\n]$/,Ire=Hr.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",ln(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[rb({find:Pre,type:this.type,getAttributes:n=>({language:n[1]})}),rb({find:Nre,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new jr({key:new ni("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}=n.state;return n.state.selection.from===n.state.doc.nodeSize-(1+n.state.selection.$to.depth*2)?i.insert(n.state.selection.from-1,this.type.create({language:s})):i.replaceSelectionWith(this.type.create({language:s})),i.setSelection(yt.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.insertText(t.replace(/\r\n?/g,` +`)),i.setMeta("paste",!0),n.dispatch(i),!0}}})]}}),Lre=Hr.create({name:"doc",topNode:!0,content:"block+"});function Rre(n={}){return new jr({view(e){return new $re(e,n)}})}class $re{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=sA(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 Dre=or.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Rre(this.options)]}});class rn extends Et{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return rn.valid(r)?new rn(r):Et.near(r)}content(){return je.empty}eq(e){return e instanceof rn&&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 rn(e.resolve(t.pos))}getBookmark(){return new c0(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!Vre(e)||!Fre(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&&rn.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(rn.valid(a))return a}for(;;){let i=t>0?s.firstChild:s.lastChild;if(!i){if(s.isAtom&&!s.isText&&!st.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(rn.valid(l))return l}return null}}}rn.prototype.visible=!1;rn.findFrom=rn.findGapCursorFrom;Et.jsonID("gapcursor",rn);class c0{constructor(e){this.pos=e}map(e){return new c0(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return rn.valid(t)?new rn(t):Et.near(t)}}function Vre(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 Fre(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 Bre(){return new jr({props:{decorations:Ure,createSelectionBetween(n,e,t){return e.pos==t.pos&&rn.valid(t)?new rn(t):null},handleClick:jre,handleKeyDown:zre,handleDOMEvents:{beforeinput:Hre}}})}const zre=WA({ArrowLeft:Gf("horiz",-1),ArrowRight:Gf("horiz",1),ArrowUp:Gf("vert",-1),ArrowDown:Gf("vert",1)});function Gf(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 yt){if(!s.endOfTextblock(t)||l.depth==0)return!1;a=!1,l=r.doc.resolve(e>0?l.after():l.before())}let c=rn.findGapCursorFrom(l,e,a);return c?(o&&o(r.tr.setSelection(new rn(c))),!0):!1}}function jre(n,e,t){if(!n||!n.editable)return!1;let r=n.state.doc.resolve(e);if(!rn.valid(r))return!1;let o=n.posAtCoords({left:t.clientX,top:t.clientY});return o&&o.inside>-1&&st.isSelectable(n.state.doc.nodeAt(o.inside))?!1:(n.dispatch(n.state.tr.setSelection(new rn(r))),!0)}function Hre(n,e){if(e.inputType!="insertCompositionText"||!(n.state.selection instanceof rn))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=Te.empty;for(let i=r.length-1;i>=0;i--)o=Te.from(r[i].createAndFill(null,o));let s=n.state.tr.replace(t.pos,t.pos,new je(o,0,0));return s.setSelection(yt.near(s.doc.resolve(t.pos+1))),n.dispatch(s),!1}function Ure(n){if(!(n.selection instanceof rn))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",En.create(n.doc,[to.widget(n.selection.head,e,{key:"gapcursor"})])}const Wre=or.create({name:"gapCursor",addProseMirrorPlugins(){return[Bre()]},extendNodeSchema(n){var e;const t={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(e=St(qe(n,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),Gre=Hr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",ln(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()}}}),qre=Hr.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]}`,ln(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=>rb({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var rp=200,$n=function(){};$n.prototype.append=function(e){return e.length?(e=$n.from(e),!this.length&&e||e.length=t?$n.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))};$n.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};$n.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)};$n.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};$n.from=function(e){return e instanceof $n?e:e&&e.length?new mk(e):$n.empty};var mk=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<=rp)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=rp)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}($n);$n.empty=new mk([]);var Kre=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}($n);const Yre=500;class So{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 Yo(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 Yo(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 So(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;uXre&&(l=Jre(l,c),i-=c),new So(l.append(s),i)}remapping(e,t){let r=new Ua;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 So(this.items.append(e.map(t=>new Yo(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 Yo(p,g,m))}else r.push(new Yo(p))},o);let c=[];for(let f=t;fYre&&(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 Yo(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 So($n.from(o.reverse()),s)}}So.empty=new So($n.empty,0);function Jre(n,e){let t;return n.forEach((r,o)=>{if(r.selection&&e--==0)return t=o,!1}),n.slice(t)}class Yo{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 Yo(t.getMap().invert(),t,this.selection)}}}class Ei{constructor(e,t,r,o,s){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=o,this.prevComposition=s}}const Xre=20;function Zre(n,e,t,r){let o=t.getMeta(Zl),s;if(o)return o.historyState;t.getMeta(toe)&&(n=new Ei(n.done,n.undone,null,0,-1));let i=t.getMeta("appendedTransaction");if(t.steps.length==0)return n;if(i&&i.getMeta(Zl))return i.getMeta(Zl).redo?new Ei(n.done.addTransform(t,void 0,r,bh(e)),n.undone,DS(t.mapping.maps[t.steps.length-1]),n.prevTime,n.prevComposition):new Ei(n.done,n.undone.addTransform(t,void 0,r,bh(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||!Qre(t,n.prevRanges)),c=i?Om(n.prevRanges,t.mapping):DS(t.mapping.maps[t.steps.length-1]);return new Ei(n.done.addTransform(t,a?e.selection.getBookmark():void 0,r,bh(e)),So.empty,c,t.time,l??n.prevComposition)}else return(s=t.getMeta("rebased"))?new Ei(n.done.rebased(t,s),n.undone.rebased(t,s),Om(n.prevRanges,t.mapping),n.prevTime,n.prevComposition):new Ei(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),Om(n.prevRanges,t.mapping),n.prevTime,n.prevComposition)}function Qre(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 DS(n){let e=[];return n.forEach((t,r,o,s)=>e.push(o,s)),e}function Om(n,e){if(!n)return null;let t=[];for(let r=0;r{let o=Zl.getState(t);if(!o||(n?o.undone:o.done).eventCount==0)return!1;if(r){let s=eoe(o,t,n);s&&r(e?s.scrollIntoView():s)}return!0}}const bk=vk(!1,!0),yk=vk(!0,!0),roe=or.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:e})=>bk(n,e),redo:()=>({state:n,dispatch:e})=>yk(n,e)}},addProseMirrorPlugins(){return[noe(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()}}}),ooe=Hr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:n}){return["hr",ln(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n,state:e})=>{const{$to:t}=e.selection,r=n();return t.parentOffset===0?r.insertContentAt(Math.max(t.pos-2,0),{type:this.name}):r.insertContent({type:this.name}),r.command(({tr:o,dispatch:s})=>{var i;if(s){const{$to:l}=o.selection,a=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(yt.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(st.create(o.doc,l.pos)):o.setSelection(yt.create(o.doc,l.pos));else{const c=(i=l.parent.type.contentMatch.defaultType)===null||i===void 0?void 0:i.create();c&&(o.insert(a,c),o.setSelection(yt.create(o.doc,a+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Une({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),soe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,ioe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,loe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,aoe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,coe=Vr.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",ln(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[ca({find:soe,type:this.type}),ca({find:loe,type:this.type})]},addPasteRules(){return[ua({find:ioe,type:this.type}),ua({find:aoe,type:this.type})]}}),uoe=Hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ln(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)}}}),doe=Hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ln(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)}}}),FS=Vr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ln(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=lf(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),BS=/^(\d+)\.\s$/,foe=Hr.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",ln(this.options.HTMLAttributes,t),0]:["ol",ln(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(doe.name,this.editor.getAttributes(FS.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Sd({find:BS,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=Sd({find:BS,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(FS.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),hoe=Hr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",ln(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+~~))$/,goe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,moe=Vr.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",ln(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[ca({find:poe,type:this.type})]},addPasteRules(){return[ua({find:goe,type:this.type})]}}),voe=Hr.create({name:"text",group:"inline"}),boe=or.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.blockquote!==!1&&w.push(wre.configure((n=this.options)===null||n===void 0?void 0:n.blockquote)),this.options.bold!==!1&&w.push(_re.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&w.push(Ore.configure((t=this.options)===null||t===void 0?void 0:t.bulletList)),this.options.code!==!1&&w.push(kre.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&w.push(Ire.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&w.push(Lre.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&w.push(Dre.configure((i=this.options)===null||i===void 0?void 0:i.dropcursor)),this.options.gapcursor!==!1&&w.push(Wre.configure((l=this.options)===null||l===void 0?void 0:l.gapcursor)),this.options.hardBreak!==!1&&w.push(Gre.configure((a=this.options)===null||a===void 0?void 0:a.hardBreak)),this.options.heading!==!1&&w.push(qre.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&w.push(roe.configure((u=this.options)===null||u===void 0?void 0:u.history)),this.options.horizontalRule!==!1&&w.push(ooe.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&w.push(coe.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&w.push(uoe.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&w.push(foe.configure((p=this.options)===null||p===void 0?void 0:p.orderedList)),this.options.paragraph!==!1&&w.push(hoe.configure((g=this.options)===null||g===void 0?void 0:g.paragraph)),this.options.strike!==!1&&w.push(moe.configure((m=this.options)===null||m===void 0?void 0:m.strike)),this.options.text!==!1&&w.push(voe.configure((v=this.options)===null||v===void 0?void 0:v.text)),w}}),yoe=Vr.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",ln(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()}}}),woe=Vr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ln(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=lf(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Coe=or.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()}}}),xoe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Soe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,Eoe=Vr.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",ln(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[ca({find:xoe,type:this.type})]},addPasteRules(){return[ua({find:Soe,type:this.type})]}}),_oe=or.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=>n.style.textAlign||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")}}}),Toe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ooe=F("path",{fill:"currentColor",d:"M3 21v-2h18v2zm0-4v-2h12v2zm0-4v-2h18v2zm0-4V7h12v2zm0-4V3h18v2z"},null,-1),Moe=[Ooe];function Aoe(n,e){return P(),G("svg",Toe,[...Moe])}const koe={name:"material-symbols-format-align-left",render:Aoe},Poe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Noe=F("path",{fill:"currentColor",d:"M3 21v-2h18v2zm4-4v-2h10v2zm-4-4v-2h18v2zm4-4V7h10v2zM3 5V3h18v2z"},null,-1),Ioe=[Noe];function Loe(n,e){return P(),G("svg",Poe,[...Ioe])}const Roe={name:"material-symbols-format-align-center",render:Loe},$oe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Doe=F("path",{fill:"currentColor",d:"M3 5V3h18v2zm6 4V7h12v2zm-6 4v-2h18v2zm6 4v-2h12v2zm-6 4v-2h18v2z"},null,-1),Voe=[Doe];function Foe(n,e){return P(),G("svg",$oe,[...Voe])}const Boe={name:"material-symbols-format-align-right",render:Foe},zoe={viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},joe=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),Hoe=[joe];function Uoe(n,e){return P(),G("svg",zoe,[...Hoe])}const Woe={name:"ph-trash",render:Uoe},Goe=me({name:"DialogNode",setup(){const{t:n,tm:e,rt:t}=cn();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:"",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(rr(e,this.nodeData),this.setPreview(),this.nodeData.newNode){this.nodeData.nodeName+=e.nodeCnt.toString();const r=Gl();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.setData(this.nodeData,{silent:!1})}this.validate(),n.on("change:data",({current:r})=>{this.nodeSetFormVisible=!0}),nt(()=>{this.setPortPos()});const{robotId:t}=De("robotId");this.robotId=t,this.robotType=KY(this.robotId),this.robotType=="TextBot"&&(this.editor=new vre({extensions:[Coe,Eoe.configure({multicolor:!0}),boe,yoe,woe,_oe.configure({types:["heading","paragraph"]})],content:this.nodeData.dialogText,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(` +`),nt(()=>{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 et("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")Dr.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.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:wa,RiBold:VJ,RiItalic:HJ,RiStrikethrough:KJ,RiUnderline:QJ,MaterialSymbolsFormatAlignLeft:koe,MaterialSymbolsFormatAlignCenter:Roe,MaterialSymbolsFormatAlignRight:Boe,BiHighlighter:cX,RiFontColor:oX,RiHeading:pX,RiListUnordered:yX,RiListOrdered:EX,RiChatQuoteLine:AX,IcBaselineHorizontalRule:LX,PhTrash:Woe,IcBaselineUndo:FX,IcBaselineRedo:UX,EditorContent:bre,BubbleMenu:mre},props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],watch:{modelValue(n){this.editor.getHTML()!==n&&this.editor.commands.setContent(n,!1)}}}),qoe={class:"nodeBox"},Koe={ref:"nodeName",class:"nodeTitle"},Yoe={key:2,class:"menubar"},Joe={class:"demo-drawer__footer"},Xoe={class:"dialog-footer"},Zoe={class:"dialog-footer"};function Qoe(n,e,t,r,o,s){const i=ot("EpWarning"),l=dt,a=zr,c=Cn,u=lr,d=ot("bubble-menu"),f=ot("RiBold"),h=An,p=ot("RiItalic"),g=ot("RiStrikethrough"),m=ot("RiUnderline"),v=ot("MaterialSymbolsFormatAlignLeft"),w=ot("MaterialSymbolsFormatAlignCenter"),b=ot("MaterialSymbolsFormatAlignRight"),y=ot("BiHighlighter"),S=ot("RiFontColor"),E=ot("RiHeading"),T=ot("RiListUnordered"),M=ot("RiListOrdered"),O=ot("RiChatQuoteLine"),A=ot("IcBaselineHorizontalRule"),k=ot("PhTrash"),L=ot("IcBaselineUndo"),j=ot("IcBaselineRedo"),ne=Iy,I=ot("editor-content"),R=ot("EpPlus"),U=ti,Z=ei,Y=ir,K=Qs,fe=ul;return P(),G("div",qoe,[F("div",Koe,[ee(ie(n.nodeData.nodeName)+" ",1),Fe(F("span",null,[x(a,{class:"box-item",effect:"dark",content:n.nodeData.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[x(l,{color:"red",size:"16"},{default:_(()=>[x(i)]),_:1})]),_:1},8,["content"])],512),[[Qe,n.nodeData.invalidMessages.length>0]])],512),F("div",{ref:"nodeAnswer",style:{"white-space":"pre-wrap","font-size":"12px"}},ie(n.preview),513),x(K,{modelValue:n.nodeSetFormVisible,"onUpdate:modelValue":e[27]||(e[27]=H=>n.nodeSetFormVisible=H),title:n.nodeData.nodeName,direction:"rtl",size:"72%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[x(Y,{model:n.nodeData},{default:_(()=>[x(u,{label:n.t("lang.common.nodeName"),"label-width":n.formLabelWidth},{default:_(()=>[x(c,{modelValue:n.nodeData.nodeName,"onUpdate:modelValue":e[0]||(e[0]=H=>n.nodeData.nodeName=H),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),x(u,{label:n.t("lang.dialogNode.form.label"),"label-width":n.formLabelWidth},{default:_(()=>[n.editor==null||n.robotType!="TextBot"?(P(),we(c,{key:0,ref:"textArea",modelValue:n.nodeData.dialogText,"onUpdate:modelValue":e[1]||(e[1]=H=>n.nodeData.dialogText=H),type:"textarea",onBlur:n.getSel},null,8,["modelValue","onBlur"])):Ce("",!0),n.editor&&n.robotType=="TextBot"?(P(),we(d,{key:1,id:"bubbleMenu",editor:n.editor,"tippy-options":{duration:100}},{default:_(()=>[F("button",{type:"button",class:X(["inactive",{"is-active":n.editor.isActive("bold")}]),onClick:e[2]||(e[2]=H=>n.editor.chain().focus().toggleBold().run())}," bold ",2),F("button",{type:"button",class:X(["inactive",{"is-active":n.editor.isActive("italic")}]),onClick:e[3]||(e[3]=H=>n.editor.chain().focus().toggleItalic().run())}," italic ",2),F("button",{type:"button",class:X(["inactive",{"is-active":n.editor.isActive("strike")}]),onClick:e[4]||(e[4]=H=>n.editor.chain().focus().toggleStrike().run())}," strike ",2)]),_:1},8,["editor"])):Ce("",!0),n.editor&&n.robotType=="TextBot"?(P(),G("div",Yoe,[x(ne,{size:"normal"},{default:_(()=>[x(h,{color:n.editor.isActive("bold")?n.activeBtnColor:"",onClick:e[5]||(e[5]=H=>n.editor.chain().focus().toggleBold().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(f)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive("italic")?n.activeBtnColor:"",onClick:e[6]||(e[6]=H=>n.editor.chain().focus().toggleItalic().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(p)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive("strike")?n.activeBtnColor:"",onClick:e[7]||(e[7]=H=>n.editor.chain().focus().toggleStrike().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(g)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive("underline")?n.activeBtnColor:"",onClick:e[8]||(e[8]=H=>n.editor.chain().focus().toggleUnderline().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(m)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive({textAlign:"left"})?n.activeBtnColor:"",onClick:e[9]||(e[9]=H=>n.editor.chain().focus().setTextAlign("left").run())},{default:_(()=>[x(l,null,{default:_(()=>[x(v)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive({textAlign:"center"})?n.activeBtnColor:"",onClick:e[10]||(e[10]=H=>n.editor.chain().focus().setTextAlign("center").run())},{default:_(()=>[x(l,null,{default:_(()=>[x(w)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive({textAlign:"right"})?n.activeBtnColor:"",onClick:e[11]||(e[11]=H=>n.editor.chain().focus().setTextAlign("right").run())},{default:_(()=>[x(l,null,{default:_(()=>[x(b)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive("highlight")?n.activeBtnColor:"",onClick:e[12]||(e[12]=H=>n.editor.chain().focus().toggleHighlight().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(y)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.getAttributes("textStyle").color,onClick:n.showColorPicker},{default:_(()=>[x(l,null,{default:_(()=>[x(S)]),_:1})]),_:1},8,["color","onClick"]),x(h,{color:n.editor.isActive("heading",{level:1})?n.activeBtnColor:"",onClick:e[13]||(e[13]=H=>n.editor.chain().focus().toggleHeading({level:1}).run())},{default:_(()=>[x(l,null,{default:_(()=>[x(E)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive("bulletList")?n.activeBtnColor:"",onClick:e[14]||(e[14]=H=>n.editor.chain().focus().toggleBulletList().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(T)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive("orderedList")?n.activeBtnColor:"",onClick:e[15]||(e[15]=H=>n.editor.chain().focus().toggleOrderedList().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(M)]),_:1})]),_:1},8,["color"]),x(h,{color:n.editor.isActive("blockquote")?n.activeBtnColor:"",onClick:e[16]||(e[16]=H=>n.editor.chain().focus().toggleBlockquote().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(O)]),_:1})]),_:1},8,["color"]),x(h,{onClick:e[17]||(e[17]=H=>n.editor.chain().focus().setHorizontalRule().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(A)]),_:1})]),_:1}),x(h,{onClick:e[18]||(e[18]=H=>n.editor.chain().focus().clearNodes().unsetAllMarks().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(k)]),_:1})]),_:1}),x(h,{onClick:e[19]||(e[19]=H=>n.editor.chain().focus().undo().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(L)]),_:1})]),_:1}),x(h,{onClick:e[20]||(e[20]=H=>n.editor.chain().focus().redo().run())},{default:_(()=>[x(l,null,{default:_(()=>[x(j)]),_:1})]),_:1})]),_:1}),F("input",{ref:"colorPicker",type:"color",style:{visibility:"hidden"},onInput:e[21]||(e[21]=H=>n.editor.chain().focus().setColor(H.target.value).run())},null,544)])):Ce("",!0),n.editor&&n.robotType=="TextBot"?(P(),we(I,{key:3,editor:n.editor,style:{width:"100%",border:"#e5e9f2 1px solid"},modelValue:n.nodeData.dialogText,"onUpdate:modelValue":e[22]||(e[22]=H=>n.nodeData.dialogText=H)},null,8,["editor","modelValue"])):Ce("",!0)]),_:1},8,["label","label-width"]),x(u,{label:"","label-width":n.formLabelWidth},{default:_(()=>[x(h,{onClick:n.showVarsForm},{default:_(()=>[x(l,null,{default:_(()=>[x(R)]),_:1}),ee(" "+ie(n.t("lang.dialogNode.form.addVar")),1)]),_:1},8,["onClick"]),x(h,{onClick:e[23]||(e[23]=H=>n.genTextVisible=!0)},{default:_(()=>[ee(" Generate text from LLM ")]),_:1})]),_:1},8,["label-width"]),x(u,{label:n.t("lang.dialogNode.form.nextStep"),"label-width":n.formLabelWidth},{default:_(()=>[x(Z,{modelValue:n.nodeData.nextStep,"onUpdate:modelValue":e[24]||(e[24]=H=>n.nodeData.nextStep=H),placeholder:n.t("lang.dialogNode.form.choose")},{default:_(()=>[(P(!0),G(Le,null,Tt(n.nextSteps,H=>(P(),we(U,{key:H.label,label:H.label,value:H.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","label-width"])]),_:1},8,["model"]),F("div",Joe,[x(h,{type:"primary",loading:n.loading,onClick:e[25]||(e[25]=H=>n.saveForm())},{default:_(()=>[ee(ie(n.t("lang.common.save")),1)]),_:1},8,["loading"]),x(h,{onClick:e[26]||(e[26]=H=>n.hideForm())},{default:_(()=>[ee(ie(n.t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"]),x(fe,{modelValue:n.varDialogVisible,"onUpdate:modelValue":e[30]||(e[30]=H=>n.varDialogVisible=H),title:n.t("lang.dialogNode.var.title"),width:"30%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",Xoe,[x(h,{type:"primary",onClick:n.insertVar},{default:_(()=>[ee(ie(n.t("lang.common.insert")),1)]),_:1},8,["onClick"]),x(h,{onClick:e[29]||(e[29]=H=>n.varDialogVisible=!1)},{default:_(()=>[ee(ie(n.t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[x(Z,{modelValue:n.selectedVar,"onUpdate:modelValue":e[28]||(e[28]=H=>n.selectedVar=H),class:"m-2",placeholder:n.t("lang.dialogNode.var.choose"),size:"large"},{default:_(()=>[(P(!0),G(Le,null,Tt(n.vars,H=>(P(),we(U,{key:H.varName,label:H.varName,value:H.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["modelValue","title"]),x(fe,{modelValue:n.genTextVisible,"onUpdate:modelValue":e[34]||(e[34]=H=>n.genTextVisible=H),title:"Prompt",width:"70%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",Zoe,[x(h,{type:"primary",onClick:n.genText,loading:n.textGenerating},{default:_(()=>[ee(ie(n.genTextBtnText),1)]),_:1},8,["onClick","loading"]),x(h,{onClick:e[33]||(e[33]=H=>n.genTextVisible=!1)},{default:_(()=>[ee(ie(n.t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[x(Y,{model:n.genTextReq},{default:_(()=>[x(u,{label:"System","label-width":n.formLabelWidth},{default:_(()=>[x(c,{modelValue:n.genTextReq.system,"onUpdate:modelValue":e[31]||(e[31]=H=>n.genTextReq.system=H),autocomplete:"on"},null,8,["modelValue"])]),_:1},8,["label-width"]),x(u,{label:"User *","label-width":n.formLabelWidth},{default:_(()=>[x(c,{modelValue:n.genTextReq.user,"onUpdate:modelValue":e[32]||(e[32]=H=>n.genTextReq.user=H),autocomplete:"on",row:5,type:"textarea"},null,8,["modelValue"])]),_:1},8,["label-width"]),n.generatedText.length>0?(P(),we(u,{key:0,label:"","label-width":n.formLabelWidth},{default:_(()=>[ee(" Following generated text will be inserted when finish. ")]),_:1},8,["label-width"])):Ce("",!0),x(u,{label:"","label-width":n.formLabelWidth},{default:_(()=>[ee(ie(n.generatedText),1)]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}const ese=Ho(Goe,[["render",Qoe],["__scopeId","data-v-270c2cb3"]]),tse={class:"nodeBox"},nse={class:"demo-drawer__footer"},zS="90px",rse={__name:"EndNode",setup(n){const{t:e,tm:t,rt:r}=cn(),o=z(!1),s=Ct({nodeName:"The end",endingText:"",valid:!1,invalidMessages:[],newNode:!0}),i=z(),l=De("getNode");l().on("change:data",({current:h})=>{o.value=!0}),rt(async()=>{const p=l().getData();rr(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=z();function f(){const h=l();c(),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=zr,v=Cn,w=lr,b=ir,y=An,S=Qs;return P(),G("div",tse,[F("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[ee(ie(s.nodeName)+" ",1),Fe(F("span",null,[x(m,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[x(g,{color:"red",size:"16"},{default:_(()=>[x(C(wa))]),_:1})]),_:1},8,["content"])],512),[[Qe,s.invalidMessages.length>0]])],512),F("div",{ref_key:"nodeAnswer",ref:d,style:{"white-space":"pre-wrap","font-size":"12px"}},ie(s.endingText),513),x(S,{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:_(()=>[x(b,{"label-position":h.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:_(()=>[x(w,{label:C(e)("lang.common.nodeName"),"label-width":zS},{default:_(()=>[x(v,{modelValue:s.nodeName,"onUpdate:modelValue":p[0]||(p[0]=E=>s.nodeName=E)},null,8,["modelValue"])]),_:1},8,["label"]),x(w,{label:"Ending text","label-width":zS},{default:_(()=>[x(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",nse,[x(y,{type:"primary",loading:h.loading,onClick:p[2]||(p[2]=E=>f())},{default:_(()=>[ee(ie(C(e)("lang.common.save")),1)]),_:1},8,["loading"]),x(y,{onClick:p[3]||(p[3]=E=>u())},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},ose=Ho(rse,[["__scopeId","data-v-42225c28"]]),sse={class:"nodeBox"},ise={class:"nodeTitle"},du="110px",lse={__name:"GotoNode",setup(n){const{t:e,tm:t,rt:r}=cn(),o=De("getNode"),{subflowNames:s,updateSubFlowNames:i}=De("subFlowNamesFn"),l=z(!1),a=z([]),c=z([]),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=Ct({nodeName:e("lang.gotoNode.nodeName"),brief:"",gotoType:"",gotoMainFlowId:"",gotoSubFlowName:"",gotoSubFlowId:"",externalLink:"",valid:!1,invalidMessages:[],newNode:!0}),h=z(!1);o().on("change:data",({current:S})=>{l.value=!0}),rt(async()=>{const E=o().getData();rr(E,f),p(f.goToType),f.newNode&&(f.nodeName+=E.nodeCnt.toString()),f.newNode=!1,v();const T=await et("GET","mainflow",null,null,null);T.status==200&&(a.value=T.data),E.gotoSubFlowId&&await g(E.gotoMainFlowId)});async function p(S){S=="GotoMainFlow"||S=="GotoSubFlow"&&(c.value=i(),h.value=!0)}async function g(S){if(S){const E=await et("GET","subflow/simple",{mainFlowId:S,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 S=f,E=S.invalidMessages;E.splice(0,E.length),S.nodeName||E.push(m[0]),S.gotoType||E.push(m[1]),S.gotoType=="GotoSubFlow"&&!S.gotoSubFlowId&&E.push(m[2]),S.gotoType=="GotoExternalLink"&&!S.externalLink&&E.push(m[3]),S.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=zr,O=Cn,A=lr,k=ti,L=ei,j=ir,ne=An,I=Qs;return P(),G("div",sse,[F("div",ise,[ee(ie(f.nodeName)+" ",1),Fe(F("span",null,[x(M,{class:"box-item",effect:"dark",content:f.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[x(T,{color:"red",size:"16"},{default:_(()=>[x(C(wa))]),_:1})]),_:1},8,["content"])],512),[[Qe,f.invalidMessages.length>0]])]),F("div",null,ie(f.brief),1),l.value?(P(),we(I,{key:0,modelValue:l.value,"onUpdate:modelValue":E[7]||(E[7]=R=>l.value=R),title:f.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[x(j,{"label-position":S.labelPosition,"label-width":"70px",model:f,style:{"max-width":"700px"}},{default:_(()=>[x(A,{label:C(e)("lang.common.nodeName"),"label-width":du},{default:_(()=>[x(O,{modelValue:f.nodeName,"onUpdate:modelValue":E[0]||(E[0]=R=>f.nodeName=R)},null,8,["modelValue"])]),_:1},8,["label"]),x(A,{label:C(e)("lang.gotoNode.gotoType"),"label-width":du},{default:_(()=>[x(L,{modelValue:f.gotoType,"onUpdate:modelValue":E[1]||(E[1]=R=>f.gotoType=R),placeholder:C(e)("lang.gotoNode.gotoTypePH"),onChange:p},{default:_(()=>[(P(),G(Le,null,Tt(d,R=>x(k,{key:R.label,label:R.label,value:R.value,disabled:R.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Fe(F("div",null,[x(A,{label:C(e)("lang.gotoNode.gotoMainFlow"),"label-width":du},{default:_(()=>[x(L,{modelValue:f.gotoMainFlowId,"onUpdate:modelValue":E[2]||(E[2]=R=>f.gotoMainFlowId=R),placeholder:C(e)("lang.gotoNode.gotoMainFlowPH"),onChange:g},{default:_(()=>[(P(!0),G(Le,null,Tt(a.value,R=>(P(),we(k,{key:R.id,label:R.name,value:R.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[Qe,f.gotoType==="GotoMainFlow"]]),Fe(F("div",null,[x(A,{label:C(e)("lang.gotoNode.gotoSubFlow"),"label-width":du},{default:_(()=>[x(L,{modelValue:f.gotoSubFlowId,"onUpdate:modelValue":E[3]||(E[3]=R=>f.gotoSubFlowId=R),placeholder:C(e)("lang.gotoNode.gotoSubFlowPH")},{default:_(()=>[(P(!0),G(Le,null,Tt(c.value,R=>(P(),we(k,{key:R.id,label:R.name,value:R.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[Qe,h.value]]),Fe(F("div",null,[x(A,{label:C(e)("lang.gotoNode.externalLink"),"label-width":du},{default:_(()=>[x(O,{modelValue:f.externalLink,"onUpdate:modelValue":E[4]||(E[4]=R=>f.externalLink=R)},null,8,["modelValue"])]),_:1},8,["label"])],512),[[Qe,f.gotoType==="GotoExternalLink"]])]),_:1},8,["label-position","model"]),F("div",null,[x(ne,{type:"primary",loading:S.loading,onClick:E[5]||(E[5]=R=>y())},{default:_(()=>[ee(ie(C(e)("lang.common.save")),1)]),_:1},8,["loading"]),x(ne,{onClick:E[6]||(E[6]=R=>w())},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):Ce("",!0)])}}},ase=Ho(lse,[["__scopeId","data-v-e844225f"]]),u0=n=>(Dd("data-v-cfe08cad"),n=n(),Vd(),n),cse={class:"nodeBox"},use=u0(()=>F("div",null,[F("strong",null,"Please note"),ee(" that this is just calling the interface, but the returned data will be ignored.")],-1)),dse=u0(()=>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)),fse=u0(()=>F("div",null,"Checkout tutorial.",-1)),hse={class:"demo-drawer__footer"},Am="100px",pse={__name:"ExternalHttpNode",setup(n){const{t:e,tm:t,rt:r}=cn(),o=z(!1),s=De("getNode"),{robotId:i}=De("robotId"),l=s(),a=Ct([]),c=z(),u=z(),d=Ct({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.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}),rt(async()=>{const m=await et("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(Gl())}),(m,v)=>{const w=dt,b=zr,y=Cn,S=lr,E=ti,T=ei,M=jy,O=ir,A=An,k=Qs;return P(),G("div",cse,[F("div",{ref_key:"nodeName",ref:c,class:"nodeTitle"},[ee(ie(d.nodeName)+" ",1),Fe(F("span",null,[x(b,{class:"box-item",effect:"dark",content:d.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[x(w,{color:"red",size:"16"},{default:_(()=>[x(C(wa))]),_:1})]),_:1},8,["content"])],512),[[Qe,d.invalidMessages.length>0]])],512),F("div",null,"Call Http: "+ie(d.httpApiName),1),x(k,{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:_(()=>[x(O,{"label-position":m.labelPosition,"label-width":"70px",model:d,style:{"max-width":"850px"}},{default:_(()=>[x(S,{label:C(e)("lang.common.nodeName"),"label-width":Am},{default:_(()=>[x(y,{modelValue:d.nodeName,"onUpdate:modelValue":v[0]||(v[0]=L=>d.nodeName=L)},null,8,["modelValue"])]),_:1},8,["label"]),x(S,{label:"HTTP APIs","label-width":Am},{default:_(()=>[x(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:_(()=>[(P(!0),G(Le,null,Tt(a,L=>(P(),we(E,{key:L.id,label:L.name,value:L.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),x(S,{label:"","label-width":Am},{default:_(()=>[x(M,{size:"large"},{default:_(()=>[use,dse,fse]),_:1})]),_:1})]),_:1},8,["label-position","model"]),F("div",hse,[x(A,{type:"primary",loading:m.loading,onClick:v[3]||(v[3]=L=>h())},{default:_(()=>[ee(ie(C(e)("lang.common.save")),1)]),_:1},8,["loading"]),x(A,{onClick:v[4]||(v[4]=L=>g())},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},gse=Ho(pse,[["__scopeId","data-v-cfe08cad"]]),mse=n=>(Dd("data-v-abe7dc58"),n=n(),Vd(),n),vse={class:"nodeBox"},bse=["checked"],yse=mse(()=>F("label",{for:"_asyncSend_"},"Send asynchronously",-1)),wse={class:"demo-drawer__footer"},Cse={__name:"SendEmailNode",setup(n){const{t:e,tm:t}=cn(),r=Ct({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=z(),i=z(""),l=z(""),a=z(!1),c=De("getNode"),u=c(),d=[];u.on("change:data",({current:m})=>{a.value=!0}),rt(async()=>{const m=u.getData();rr(m,r),r.newNode?(r.nodeName+=m.nodeCnt.toString(),f(),r.newNode=!1):o=r.asyncSend;let v=await et("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 et("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.setData(r,{silent:!1}),g()},g=()=>{a.value=!1};return(m,v)=>{const w=dt,b=zr,y=Cn,S=lr,E=nM,T=Ly,M=ir,O=An,A=Qs;return P(),G("div",vse,[F("div",{ref_key:"nodeName",ref:s,class:"nodeTitle"},[ee(ie(r.nodeName)+" ",1),Fe(F("span",null,[x(b,{class:"box-item",effect:"dark",content:r.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[x(w,{color:"yellow",size:"16"},{default:_(()=>[x(C(wa))]),_:1})]),_:1},8,["content"])],512),[[Qe,r.invalidMessages.length>0]])],512),F("div",null,"To: "+ie(r.to),1),F("div",null,"Subject: "+ie(r.subject),1),x(A,{modelValue:a.value,"onUpdate:modelValue":v[11]||(v[11]=k=>a.value=k),title:r.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[x(M,{"label-position":m.labelPosition,"label-width":"100px",model:r,style:{"max-width":"500px"}},{default:_(()=>[x(S,{label:C(e)("lang.common.nodeName")},{default:_(()=>[x(y,{modelValue:r.nodeName,"onUpdate:modelValue":v[0]||(v[0]=k=>r.nodeName=k)},null,8,["modelValue"])]),_:1},8,["label"]),x(S,{label:"From","label-width":m.formLabelWidth},{default:_(()=>[x(y,{modelValue:r.from,"onUpdate:modelValue":v[1]||(v[1]=k=>r.from=k),placeholder:""},null,8,["modelValue"])]),_:1},8,["label-width"]),x(S,{label:"To"},{default:_(()=>[x(y,{modelValue:r.to,"onUpdate:modelValue":v[2]||(v[2]=k=>r.to=k),placeholder:""},null,8,["modelValue"])]),_:1}),x(S,{label:""},{default:_(()=>[ee(" Separate multiple recipients with semicolons ")]),_:1}),x(S,{label:"Cc"},{default:_(()=>[x(y,{modelValue:r.cc,"onUpdate:modelValue":v[3]||(v[3]=k=>r.cc=k),placeholder:""},null,8,["modelValue"])]),_:1}),x(S,{label:"Bcc"},{default:_(()=>[x(y,{modelValue:r.bcc,"onUpdate:modelValue":v[4]||(v[4]=k=>r.bcc=k),placeholder:""},null,8,["modelValue"])]),_:1}),x(S,{label:"Subject"},{default:_(()=>[x(y,{modelValue:r.subject,"onUpdate:modelValue":v[5]||(v[5]=k=>r.subject=k),placeholder:""},null,8,["modelValue"])]),_:1}),x(S,{label:"Content"},{default:_(()=>[x(y,{modelValue:r.content,"onUpdate:modelValue":v[6]||(v[6]=k=>r.content=k),rows:2,type:"textarea",placeholder:"Please input"},null,8,["modelValue"])]),_:1}),x(S,{label:"Content type"},{default:_(()=>[x(T,{modelValue:r.contentType,"onUpdate:modelValue":v[7]||(v[7]=k=>r.contentType=k),class:"ml-4"},{default:_(()=>[x(E,{label:"TextHtml",size:"large"},{default:_(()=>[ee("text/html")]),_:1}),x(E,{label:"TextPlain",size:"large"},{default:_(()=>[ee("text/plain")]),_:1})]),_:1},8,["modelValue"])]),_:1}),x(S,{label:""},{default:_(()=>[Fe(F("input",{type:"checkbox",id:"_asyncSend_","onUpdate:modelValue":v[8]||(v[8]=k=>r.asyncSend=k),checked:r.asyncSend},null,8,bse),[[Ui,r.asyncSend]]),yse]),_:1})]),_:1},8,["label-position","model"]),F("div",wse,[x(O,{type:"primary",loading:m.loading,onClick:v[9]||(v[9]=k=>p())},{default:_(()=>[ee(ie(C(e)("lang.common.save")),1)]),_:1},8,["loading"]),x(O,{onClick:v[10]||(v[10]=k=>g())},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},xse=Ho(Cse,[["__scopeId","data-v-abe7dc58"]]);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 Hs{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})(Hs||(Hs={}));class jS{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})(jS||(jS={}));function wk(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 ht(n,e,...t){return wk(n,e,t)}function Sse(n){return typeof n=="object"&&n.then&&typeof n.then=="function"}function HS(n){return n!=null&&(n instanceof Promise||Sse(n))}function Ck(...n){const e=[];if(n.forEach(r=>{Array.isArray(r)?e.push(...r):e.push(r)}),e.some(r=>HS(r))){const r=e.map(o=>HS(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 km(n,e){const t=[];for(let r=0;r(this.off(e,o),km([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=km([...s],t))}const o=this.listeners["*"];return o!=null?Ck([r,km([...o],[e,...t])]):r}emit(e,...t){return this.trigger(e,...t)}}function _se(n,...e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(n.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r))})})}const Tse=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 Ose(n,e){Tse(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}class Mse{}const Ase=/^\s*class\s+/.test(`${Mse}`)||/^\s*class\s*\{/.test(`${class{}}`);function d0(n,e){let t;return Ase?t=class extends e{}:(t=function(){return e.apply(this,arguments)},Ose(t,e)),Object.defineProperty(t,"name",{value:n}),t}function US(n){return n==="__proto__"}function f0(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 Xc(n,e,t,r="/"){const o=Array.isArray(e)?e:e.split(r),s=o.pop();if(s&&!US(s)){let i=n;o.forEach(l=>{US(l)||(i[l]==null&&(i[l]={}),i=i[l])}),i[s]=t}return n}function WS(n,e,t="/"){const r=Array.isArray(e)?e.slice():e.split(t),o=r.pop();if(o)if(r.length>0){const s=f0(n,r);s&&delete s[o]}else delete n[o];return n}var kse=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 Fr extends Ese{dispose(){this.off()}}kse([Hs.dispose()],Fr.prototype,"dispose",null);(function(n){n.dispose=Hs.dispose})(Fr||(Fr={}));_se(Fr,Hs);const xk=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},Sk=xk(n=>n.replace(/\B([A-Z])/g,"-$1").toLowerCase()),h0=xk(n=>k6(Wp(n)).replace(/ /g,""));function Pm(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 op(){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 Us(n){return typeof n=="string"&&n.slice(-1)==="%"}function No(n,e){if(n==null)return 0;let t;if(typeof n=="string"){if(t=parseFloat(n),Us(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 da(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 p0=!1,Ek=!1,_k=!1,Tk=!1,Ok=!1,Mk=!1,Ak=!1,kk=!1,Pk=!1,Nk=!1,Ik=!1,Lk=!1,Rk=!1,$k=!1,Dk=!1,Vk=!1;if(typeof navigator=="object"){const n=navigator.userAgent;p0=n.indexOf("Macintosh")>=0,Ek=!!n.match(/(iPad|iPhone|iPod)/g),_k=n.indexOf("Windows")>=0,Tk=n.indexOf("MSIE")>=0,Ok=!!n.match(/Trident\/7\./),Mk=!!n.match(/Edge\//),Ak=n.indexOf("Mozilla/")>=0&&n.indexOf("MSIE")<0&&n.indexOf("Edge/")<0,Pk=n.indexOf("Chrome/")>=0&&n.indexOf("Edge/")<0,Nk=n.indexOf("Opera/")>=0||n.indexOf("OPR/")>=0,Ik=n.indexOf("Firefox/")>=0,Lk=n.indexOf("AppleWebKit/")>=0&&n.indexOf("Chrome/")<0&&n.indexOf("Edge/")<0,typeof document=="object"&&(Vk=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||n.indexOf("Opera/")>=0)}typeof window=="object"&&(kk=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,$k=window.PointerEvent!=null&&!p0);if(typeof document=="object"){Rk="ontouchstart"in document.documentElement;try{const n=Object.defineProperty({},"passive",{get(){Dk=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",()=>{},n)}catch{}}var Yi;(function(n){n.IS_MAC=p0,n.IS_IOS=Ek,n.IS_WINDOWS=_k,n.IS_IE=Tk,n.IS_IE11=Ok,n.IS_EDGE=Mk,n.IS_NETSCAPE=Ak,n.IS_CHROME_APP=kk,n.IS_CHROME=Pk,n.IS_OPERA=Nk,n.IS_FIREFOX=Ik,n.IS_SAFARI=Lk,n.SUPPORT_TOUCH=Rk,n.SUPPORT_POINTER=$k,n.SUPPORT_PASSIVE=Dk,n.NO_FOREIGNOBJECT=Vk,n.SUPPORT_FOREIGNOBJECT=!n.NO_FOREIGNOBJECT})(Yi||(Yi={}));(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})(Yi||(Yi={}));const g0=/[\t\r\n\f]/g,m0=/\S+/g,xc=n=>` ${n} `;function Sc(n){return n&&n.getAttribute&&n.getAttribute("class")||""}function cf(n,e){if(n==null||e==null)return!1;const t=xc(Sc(n)),r=xc(e);return n.nodeType===1?t.replace(g0," ").includes(r):!1}function Pt(n,e){if(!(n==null||e==null)){if(typeof e=="function")return Pt(n,e(Sc(n)));if(typeof e=="string"&&n.nodeType===1){const t=e.match(m0)||[],r=xc(Sc(n)).replace(g0," ");let o=t.reduce((s,i)=>s.indexOf(xc(i))<0?`${s}${i} `:s,r);o=o.trim(),r!==o&&n.setAttribute("class",o)}}}function no(n,e){if(n!=null){if(typeof e=="function")return no(n,e(Sc(n)));if((!e||typeof e=="string")&&n.nodeType===1){const t=(e||"").match(m0)||[],r=xc(Sc(n)).replace(g0," ");let o=t.reduce((s,i)=>{const l=xc(i);return s.indexOf(l)>-1?s.replace(l," "):s},r);o=e?o.trim():"",r!==o&&n.setAttribute("class",o)}}}function Fk(n,e,t){if(!(n==null||e==null)){if(t!=null&&typeof e=="string"){t?Pt(n,e):no(n,e);return}if(typeof e=="function")return Fk(n,e(Sc(n),t),t);typeof e=="string"&&(e.match(m0)||[]).forEach(o=>{cf(n,o)?no(n,o):Pt(n,o)})}}let GS=0;function Ise(){return GS+=1,`v${GS}`}function v0(n){return(n.id==null||n.id==="")&&(n.id=Ise()),n.id}function Ji(n){return n==null?!1:typeof n.getScreenCTM=="function"&&n instanceof SVGElement}const Pn={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"},qS="1.1";function KS(n,e=document){return e.createElement(n)}function b0(n,e=Pn.xhtml,t=document){return t.createElementNS(e,n)}function Uo(n,e=document){return b0(n,Pn.svg,e)}function sp(n){if(n){const t=`${n}`,{documentElement:r}=Lse(t,{async:!1});return r}const e=document.createElementNS(Pn.svg,"svg");return e.setAttributeNS(Pn.xmlns,"xmlns:xlink",Pn.xlink),e.setAttribute("version",qS),e}function Lse(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 Rse(n,e=!0){const t=n.nodeName;return e?t.toLowerCase():t.toUpperCase()}function y0(n){let e=0,t=n.previousSibling;for(;t;)t.nodeType===1&&(e+=1),t=t.previousSibling;return e}function $se(n,e){return n.querySelectorAll(e)}function Dse(n,e){return n.querySelector(e)}function Bk(n,e,t){const r=n.ownerSVGElement;let o=n.parentNode;for(;o&&o!==t&&o!==r;){if(cf(o,e))return o;o=o.parentNode}return null}function zk(n,e){const t=e&&e.parentNode;return n===t||!!(t&&t.nodeType===1&&n.compareDocumentPosition(t)&16)}function Ec(n){n&&(Array.isArray(n)?n:[n]).forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)})}function uf(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function df(n,e){(Array.isArray(e)?e:[e]).forEach(r=>{r!=null&&n.appendChild(r)})}function Vse(n,e){const t=n.firstChild;return t?w0(t,e):df(n,e)}function w0(n,e){const t=n.parentNode;t&&(Array.isArray(e)?e:[e]).forEach(o=>{o!=null&&t.insertBefore(o,n)})}function Fse(n,e){e!=null&&e.appendChild(n)}function YS(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 Bse(n,e){return n.getAttribute(e)}function Hk(n,e){const t=Wk(e);t.ns?n.hasAttributeNS(t.ns,t.local)&&n.removeAttributeNS(t.ns,t.local):n.hasAttribute(e)&&n.removeAttribute(e)}function C0(n,e,t){if(t==null)return Hk(n,e);const r=Wk(e);r.ns&&typeof t=="string"?n.setAttributeNS(r.ns,e,t):e==="id"?n.id=`${t}`:n.setAttribute(e,`${t}`)}function Uk(n,e){Object.keys(e).forEach(t=>{C0(n,t,e[t])})}function Ht(n,e,t){if(e==null){const r=n.attributes,o={};for(let s=0;s{const r=jk.includes(t)?t:Sk(t);e[r]=n[t]}),e}function qf(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 lb(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=qf(e[t])):o?(s=qf(n[t]),i=e[t]):(s=qf(n[t]),i=qf(e[t])),n[t]=lb(s,i)}else n[t]=e[t]}),n}function zse(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})(JS||(JS={}));let Ll;const Hse={px(n){return n},mm(n){return Ll*n},cm(n){return Ll*n*10},in(n){return Ll*n*25.4},pt(n){return Ll*(25.4*n/72)},pc(n){return Ll*(25.4*n/6)}};var XS;(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){Ll==null&&(Ll=e("1","1","mm").width);const s=o?Hse[o]:null;return s?s(r):r}n.toPx=t})(XS||(XS={}));const Use=/-(.)/g;function Wse(n){return n.replace(Use,(e,t)=>t.toUpperCase())}const Nm={},ZS=["webkit","ms","moz","o"],Gk=typeof document<"u"?document.createElement("div").style:{};function Gse(n){for(let e=0;e{r[o]=eE(n,o)}),r}if(typeof e=="string"){if(t===void 0)return eE(n,e);Zse(n,e,t);return}for(const r in e)fa(n,r,e[r])}class ut{get[Symbol.toStringTag](){return ut.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(ut.isVector(e))o=e.node;else if(typeof e=="string")if(e.toLowerCase()==="svg")o=sp();else if(e[0]==="<"){const s=sp(e);o=document.importNode(s.firstChild,!0)}else o=document.createElementNS(Pn.svg,e);else o=e;this.node=o,t&&this.setAttributes(t),r&&this.append(r)}transform(e,t){return e==null?_c(this.node):(_c(this.node,e,t),this)}translate(e,t=0,r={}){return e==null?nE(this.node):(nE(this.node,e,t,r),this)}rotate(e,t,r,o={}){return e==null?ub(this.node):(ub(this.node,e,t,r,o),this)}scale(e,t){return e==null?db(this.node):(db(this.node,e,t),this)}getTransformToElement(e){const t=ut.toNode(e);return Gu(this.node,t)}removeAttribute(e){return Hk(this.node,e),this}getAttribute(e){return Bse(this.node,e)}setAttribute(e,t){return C0(this.node,e,t),this}setAttributes(e){return Uk(this.node,e),this}attr(e,t){return e==null?Ht(this.node):typeof e=="string"&&t===void 0?Ht(this.node,e):(typeof e=="object"?Ht(this.node,e):Ht(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:ut.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?ut.create(t):ut.create("defs").appendTo(e)}text(e,t={}){return Kk(this.node,e,t),this}tagName(){return Rse(this.node)}clone(){return ut.create(this.node.cloneNode(!0))}remove(){return Ec(this.node),this}empty(){return uf(this.node),this}append(e){return df(this.node,ut.toNodes(e)),this}appendTo(e){return Fse(this.node,ut.isVector(e)?e.node:e),this}prepend(e){return Vse(this.node,ut.toNodes(e)),this}before(e){return w0(this.node,ut.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(ut.toNode(e),this.node),ut.create(e)}first(){return this.node.firstChild?ut.create(this.node.firstChild):null}last(){return this.node.lastChild?ut.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?ut.create(t):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(ut.toNode(e))}find(e){const t=[],r=$se(this.node,e);if(r)for(let o=0,s=r.length;oo(l)):[o(i)]}n.toNodes=s})(ut||(ut={}));function Qse(n,e){const t=ut.create(e),r=ut.create("textPath"),o=n.d;if(o&&n["xlink:href"]===void 0){const s=ut.create("path").attr("d",o).appendTo(t.defs());r.attr("xlink:href",`#${s.id}`)}return typeof n=="object"&&r.attr(n),r.node}function eie(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=ut.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 qk=/em$/;function Kf(n,e){const t=parseFloat(n);return qk.test(n)?t*e:t}function tie(n,e,t,r){if(!Array.isArray(e))return 0;const o=e.length;if(!o)return 0;let s=e[0];const i=Kf(s.maxFontSize,t)||t;let l=0;const a=Kf(r,t);for(let d=1;d0&&k.setAttribute("dy",w),(O>0||o)&&k.setAttribute("x",l),k.className.baseVal=A,v.appendChild(k),b+=j.length+1}if(i)if(c)w=tie(s,E,m,f);else if(s==="top")w="0.8em";else{let O;switch(T>0?(O=parseFloat(f)||1,O*=T,qk.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 Wu(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 tE(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 Yk(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=op(),v=[];return n.split(i).map(w=>{const b=Yk(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}=Wu(n,t);if(uo)if(m===c-1){const[w]=tE(f,o-g,h,t);d.push(p?`${w}${p}`:w)}else{const[w,b]=tE(f,o,h,t);d.push(w),f=b,h=Wu(f,t).width}else{d.push(f);break}return d.join(i)}const ab=.551784;function Wn(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 nie(n,e=1){const t=n.getTotalLength(),r=[];let o=0,s;for(;o`${t.x} ${t.y}`).join(" L")}`}function lp(n){const e=[],t=n.points;if(t)for(let r=0,o=t.numberOfItems;r=0){const i=_d(n),l=hie(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 cb(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 hie(n){const e=cb(n,{x:0,y:1}),t=cb(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 pie(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 gie(n){let e={x:0,y:1};n&&(e=cb(n,e));const t=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:t%360+(t<0?360:0)}}function mie(n){return{tx:n&&n.e||0,ty:n&&n.f||0}}function _c(n,e,t={}){if(e==null)return _d(Ht(n,"transform"));if(t.absolute){n.setAttribute("transform",Zc(e));return}const r=n.transform,o=vu(e);r.baseVal.appendItem(o)}function nE(n,e,t=0,r={}){let o=Ht(n,"transform");const s=Cg(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 ub(n,e,t,r,o={}){let s=Ht(n,"transform");const i=Cg(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 db(n,e,t){let r=Ht(n,"transform");const o=Cg(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 Gu(n,e){if(Ji(e)&&Ji(n)){const t=e.getScreenCTM(),r=n.getScreenCTM();if(t&&r)return t.inverse().multiply(r)}return Fn()}function vie(n,e){let t=Fn();if(Ji(e)&&Ji(n)){let r=n;const o=[];for(;r&&r!==e;){const s=r.getAttribute("transform")||null,i=_d(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=Gu(n,r).inverse();return i.matrixTransform(l)}catch{return o}}var Zr;(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})(Zr||(Zr={}));var zl;(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})(zl||(zl={}));var mt;(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})(mt||(mt={}));(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})(mt||(mt={}));(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})(mt||(mt={}));(function(n){function e(t,r){const o=[],s=zl.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=mt.returnTrue,r&&!this.isSimulated&&r.preventDefault()},this.stopPropagation=()=>{const r=this.originalEvent;this.isPropagationStopped=mt.returnTrue,r&&!this.isSimulated&&r.stopPropagation()},this.stopImmediatePropagation=()=>{const r=this.originalEvent;this.isImmediatePropagationStopped=mt.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?mt.returnTrue:mt.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})(ls||(ls={}));(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})(ls||(ls={}));(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]))})(ls||(ls={}));(function(n){Zr.register("load",{noBubble:!0})})();(function(n){Zr.register("beforeunload",{postDispatch(e,t){t.result!==void 0&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}})})();(function(n){Zr.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(e,t){let r;const o=t.relatedTarget,s=t.handleObj;return(!o||o!==e&&!mt.contains(e,o))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseover"),r}}),Zr.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(e,t){let r;const o=t.relatedTarget,s=t.handleObj;return(!o||o!==e&&!mt.contains(e,o))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseout"),r}})})();var yie=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}=mt.normalizeType(g);if(!m)return;let w=m,b=Zr.get(w);w=(u?b.delegateType:b.bindType)||w,b=Zr.get(w);const y=Object.assign({type:w,originType:m,data:c,selector:u,guid:p,handler:a,namespace:v.join(".")},d),S=f.events;let E=S[w];E||(E=S[w]={handlers:[],delegateCount:0},(!b.setup||b.setup(i,c,v,h)===!1)&&mt.addEventListener(i,w,h)),b.add&&(mt.removeHandlerId(y.handler),b.add(i,y),mt.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=zl.get(i);if(!d)return;const f=d.events;f&&(mt.splitType(l).forEach(h=>{const{originType:p,namespaces:g}=mt.normalizeType(h);if(!p){Object.keys(f).forEach(S=>{r(i,S+h,a,c,!0)});return}let m=p;const v=Zr.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 S=w.handlers.length-1;S>=0;S-=1){const E=w.handlers[S];(u||p===E.originType)&&(!a||mt.getHandlerId(a)===E.guid)&&(b==null||E.namespace&&b.test(E.namespace))&&(c==null||c===E.selector||c==="**"&&E.selector)&&(w.handlers.splice(S,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)&&mt.removeEventListener(i,m,d.handler),delete f[m])}),Object.keys(f).length===0&&zl.remove(i))}n.off=r;function o(i,l,...a){const c=ls.create(l);c.delegateTarget=i;const u=Zr.get(c.type);if(u.preDispatch&&u.preDispatch(i,c)===!1)return;const d=mt.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 ls?i:new ls(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=Zr.get(d);if(!c&&m.trigger&&m.trigger(h,u,l)===!1)return;let v;const w=[h];if(!c&&!m.noBubble&&!mt.isWindow(h)){v=m.delegateType||d;let y=h,S=h.parentNode;for(;S!=null;)w.push(S),y=S,S=S.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,S=w.length;y1?v:m.bindType||d;const T=zl.get(E);T&&T.events[u.type]&&T.handler&&T.handler.call(E,...g);const M=p&&E[p]||null;M&&mt.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)&&mt.isValidTarget(h)&&p&&typeof h[d]=="function"&&!mt.isWindow(h)){const S=h[p];S&&(h[p]=null),e=d,u.isPropagationStopped()&&b.addEventListener(d,mt.stopPropagationCallback),h[d](),u.isPropagationStopped()&&b.removeEventListener(d,mt.stopPropagationCallback),e=void 0,S&&(h[p]=S)}}return u.result}n.trigger=s})(Td||(Td={}));var jn;(function(n){function e(s,i,l,a,c){return qu.on(s,i,l,a,c),s}n.on=e;function t(s,i,l,a,c){return qu.on(s,i,l,a,c,!0),s}n.once=t;function r(s,i,l,a){return qu.off(s,i,l,a),s}n.off=r;function o(s,i,l,a){return Td.trigger(i,l,s,a),s}n.trigger=o})(jn||(jn={}));var qu;(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=mt.returnFalse;else if(!l)return;if(a){const c=l;l=function(u,...d){return n.off(r,u),c.call(this,u,...d)},mt.setHandlerId(l,mt.ensureHandlerId(c))}Td.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=mt.returnFalse),Td.off(r,o,i,s)}n.off=t})(qu||(qu={}));class eP{constructor(e,t,r){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=Yi.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 tP(n,e=60){let t=null;return(...r)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{n.apply(this,r)},e)}}function wie(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=tP(()=>{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 Cie(n){let e=null,t=[];const r=tP(()=>{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 xie=typeof ResizeObserver<"u"?Cie:wie;var ap;(function(n){const e=new WeakMap;function t(o){let s=e.get(o);return s||(s=xie(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)}})(ap||(ap={}));class Od{constructor(e={}){this.comparator=e.comparator||Od.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})(Od||(Od={}));var fb;(function(n){function e(t,r,o=(s,i)=>1){const s={},i={},l={},a=new Od;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 $s.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 $s.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 S=y[1].split(/\s*,\s*/).map(E=>parseInt(E,10));return new n(S)}return null}n.fromRGBA=r;function o(b,y,S){S<0&&++S,S>1&&--S;const E=6*S;return E<1?b+(y-b)*E:2*S<1?y:3*S<2?b+(y-b)*(2/3-S)*6:b}function s(b){const y=b.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(y){const S=y[2].split(/\s*,\s*/),E=(parseFloat(S[0])%360+360)%360/360,T=parseFloat(S[1])/100,M=parseFloat(S[2])/100,O=S[3]==null?1:parseInt(S[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,S,E){const T=Array.isArray(b)?b[0]:b,M=Array.isArray(b)?b[1]:y,O=Array.isArray(b)?b[2]:S,A=Array.isArray(b)?b[3]:E,k=Math.max(T,M,O),L=Math.min(T,M,O),j=(k+L)/2;let ne=0,I=0;if(L!==k){const R=k-L;switch(I=j>.5?R/(2-k-L):R/(k+L),k){case T:ne=(M-O)/R+(M186?"#000000":"#ffffff":`${O?"#":""}${g(255-A,255-k,255-L)}`}const S=b[0],E=b[1],T=b[2],M=b[3];return y?S*.299+E*.587+T*.114>186?[0,0,0,M]:[255,255,255,M]:[255-S,255-E,255-T,M]}n.invert=h;function p(b){const y=b.indexOf("#")===0?b:`#${b}`;let S=+`0x${y.substr(1)}`;if(!(y.length===4||y.length===7)||Number.isNaN(S))throw new Error("Invalid hex color.");const E=y.length===4?4:8,T=(1<{const O=S&T;return S>>=E,E===4?17*O:O});return[M[2],M[1],M[0]]}function g(b,y,S){const E=T=>T.length<2?`0${T}`:T;return`${E(b.toString(16))}${E(y.toString(16))}${E(S.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=eo((M>>16)+y,0,255),A=eo((M>>8&255)+y,0,255),k=eo((M&255)+y,0,255);return`${T?"#":""}${(k|A<<8|O<<16).toString(16)}`}const S=g(b[0],b[1],b[2]),E=p(w(S,y));return[E[0],E[1],E[2],b[3]]}})($s||($s={}));(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"}})($s||($s={}));class hb{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 Tc;(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})(Tc||(Tc={}));var ha;(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}}})(ha||(ha={}));(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)}}})(ha||(ha={}));(function(n){function e(I){return-1*Math.cos(I*(Math.PI/2))+1}n.easeInSine=e;function t(I){return Math.sin(I*(Math.PI/2))}n.easeOutSine=t;function r(I){return-.5*(Math.cos(Math.PI*I)-1)}n.easeInOutSine=r;function o(I){return I*I}n.easeInQuad=o;function s(I){return I*(2-I)}n.easeOutQuad=s;function i(I){return I<.5?2*I*I:-1+(4-2*I)*I}n.easeInOutQuad=i;function l(I){return I*I*I}n.easeInCubic=l;function a(I){const R=I-1;return R*R*R+1}n.easeOutCubic=a;function c(I){return I<.5?4*I*I*I:(I-1)*(2*I-2)*(2*I-2)+1}n.easeInOutCubic=c;function u(I){return I*I*I*I}n.easeInQuart=u;function d(I){const R=I-1;return 1-R*R*R*R}n.easeOutQuart=d;function f(I){const R=I-1;return I<.5?8*I*I*I*I:1-8*R*R*R*R}n.easeInOutQuart=f;function h(I){return I*I*I*I*I}n.easeInQuint=h;function p(I){const R=I-1;return 1+R*R*R*R*R}n.easeOutQuint=p;function g(I){const R=I-1;return I<.5?16*I*I*I*I*I:1+16*R*R*R*R*R}n.easeInOutQuint=g;function m(I){return I===0?0:Math.pow(2,10*(I-1))}n.easeInExpo=m;function v(I){return I===1?1:-Math.pow(2,-10*I)+1}n.easeOutExpo=v;function w(I){if(I===0||I===1)return I;const R=I*2,U=R-1;return R<1?.5*Math.pow(2,10*U):.5*(-Math.pow(2,-10*U)+2)}n.easeInOutExpo=w;function b(I){const R=I/1;return-1*(Math.sqrt(1-R*I)-1)}n.easeInCirc=b;function y(I){const R=I-1;return Math.sqrt(1-R*R)}n.easeOutCirc=y;function S(I){const R=I*2,U=R-2;return R<1?-.5*(Math.sqrt(1-R*R)-1):.5*(Math.sqrt(1-U*U)+1)}n.easeInOutCirc=S;function E(I,R=1.70158){return I*I*((R+1)*I-R)}n.easeInBack=E;function T(I,R=1.70158){const U=I/1-1;return U*U*((R+1)*U+R)+1}n.easeOutBack=T;function M(I,R=1.70158){const U=I*2,Z=U-2,Y=R*1.525;return U<1?.5*U*U*((Y+1)*U-Y):.5*(Z*Z*((Y+1)*Z+Y)+2)}n.easeInOutBack=M;function O(I,R=.7){if(I===0||I===1)return I;const Z=I/1-1,Y=1-R,K=Y/(2*Math.PI)*Math.asin(1);return-(Math.pow(2,10*Z)*Math.sin((Z-K)*(2*Math.PI)/Y))}n.easeInElastic=O;function A(I,R=.7){const U=1-R,Z=I*2;if(I===0||I===1)return I;const Y=U/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*Z)*Math.sin((Z-Y)*(2*Math.PI)/U)+1}n.easeOutElastic=A;function k(I,R=.65){const U=1-R;if(I===0||I===1)return I;const Z=I*2,Y=Z-1,K=U/(2*Math.PI)*Math.asin(1);return Z<1?-.5*(Math.pow(2,10*Y)*Math.sin((Y-K)*(2*Math.PI)/U)):Math.pow(2,-10*Y)*Math.sin((Y-K)*(2*Math.PI)/U)*.5+1}n.easeInOutElastic=k;function L(I){const R=I/1;if(R<1/2.75)return 7.5625*R*R;if(R<2/2.75){const U=R-.5454545454545454;return 7.5625*U*U+.75}if(R<2.5/2.75){const U=R-.8181818181818182;return 7.5625*U*U+.9375}{const U=R-.9545454545454546;return 7.5625*U*U+.984375}}n.easeOutBounce=L;function j(I){return 1-L(1-I)}n.easeInBounce=j;function ne(I){return I<.5?j(I*2)*.5:L(I*2-1)*.5+.5}n.easeInOutBounce=ne})(ha||(ha={}));var jl;(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)}`}}})(jl||(jl={}));const Ku=[];function Sie(n,e){const t=Ku.find(r=>r.name===n);if(!(t&&(t.loadTimes+=1,t.loadTimes>1))&&!Yi.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),Ku.push({name:n,loadTimes:1,styleElement:r})}}function Eie(n){const e=Ku.findIndex(t=>t.name===n);if(e>-1){const t=Ku[e];if(t.loadTimes-=1,t.loadTimes>0)return;let r=t.styleElement;r&&r.parentNode&&r.parentNode.removeChild(r),r=null,Ku.splice(e,1)}}var jt;(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})(jt||(jt={}));var Bt;(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})(Bt||(Bt={}));class pl{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class q extends pl{constructor(e,t){super(),this.x=e??0,this.y=t??0}round(e=0){return this.x=Bt.round(this.x,e),this.y=Bt.round(this.y,e),this}add(e,t){const r=q.create(e,t);return this.x+=r.x,this.y+=r.y,this}update(e,t){const r=q.create(e,t);return this.x=r.x,this.y=r.y,this}translate(e,t){const r=q.create(e,t);return this.x+=r.x,this.y+=r.y,this}rotate(e,t){const r=q.rotate(this,e,t);return this.x=r.x,this.y=r.y,this}scale(e,t,r=new q){const o=q.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 q.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 Bt.containsPoint(this,q.create(e,t))}containsRect(e,t,r,o){const s=Pe.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=q.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 He(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=Pe.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 Pe(u,d,Math.min(l.x,c.x)-u,Math.min(l.y,c.y)-d)}isIntersectWithRect(e,t,r,o){const s=Pe.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=Pe.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 Pe(l,a,c-l,u-a)}getNearestSideToPoint(e){const t=q.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 He(this.start,t),new He(t,this.end)]}divideAtLength(e){const t=this.pointAtLength(e);return[new He(this.start,t),new He(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 He(t,e).length()>o||new He(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 q(this.end.x-this.start.x,this.end.y-this.start.y),r=new q(e.end.x-e.start.x,e.end.y-e.start.y),o=t.x*r.y-t.y*r.x,s=new q(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 He(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})(He||(He={}));class Vo extends pl{get center(){return new q(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 Pe.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=q.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 q(this.x,this.y)),c=new q(l.x/(r*r),l.y/(o*o)),u=new q(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=q.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 q(this.x+d,this.y+f),t?i.rotate(-t,this.getCenter()):i}tangentTheta(e){const t=q.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 q(h,p).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const r=Pe.fromEllipse(this);r.rotate(e,t);const o=Vo.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=q.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 Vo(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})(Vo||(Vo={}));(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})(Vo||(Vo={}));const _ie=new RegExp("^[\\s\\dLMCZz,.]*$");function Tie(n){return typeof n!="string"?!1:_ie.test(n)}function Im(n,e){return(n%e+e)%e}function Oie(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 q(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[Im(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[Im(u+1,n.length)];for(;utypeof d=="string"?d:+d.toFixed(3)).join(" ")}function nP(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})}),Oie(t,e.round,e.initialMove==null||e.initialMove,e.close,e.exclude)}function cp(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 W=1;s===i&&(W=-1),y=W*Math.sqrt((v*w-v*m-w*g)/(v*m+w*g))}const S=y*t*p/r,E=-1*y*r*h/t,T=d*S-f*E+l/2,M=f*S+d*E+a/2;let O=Math.atan2((p-E)/r,(h-S)/t)-Math.atan2(0,1),A=O>=0?O:2*Math.PI+O;O=Math.atan2((-p-E)/r,(-h-S)/t)-Math.atan2((p-E)/r,(h-S)/t);let k=O>=0?O:2*Math.PI+O;i===0&&k>0?k-=2*Math.PI:i!==0&&k<0&&(k+=2*Math.PI);const L=k*2/Math.PI,j=Math.ceil(L<0?-1*L:L),ne=k/j,I=8/3*Math.sin(ne/4)*Math.sin(ne/4)/Math.sin(ne/2),R=d*t,U=d*r,Z=f*t,Y=f*r;let K=Math.cos(A),fe=Math.sin(A),H=-I*(R*fe+Y*K),se=-I*(Z*fe-U*K),ue=0,be=0;const ye=[];for(let W=0;W+W.toFixed(2))}function Mie(n,e,t,r,o=0,s=0,i=0,l,a){const c=[],u=cp(n,e,t,r,o,s,i,l,a);if(u!=null)for(let d=0,f=u.length;dq.create(t))}else this.points=[]}scale(e,t,r=new q){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=q.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 Pe;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 Pe(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 q(r+h,o),g=new He(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 S=m.angleBetween(w,h);Math.abs(S-180)<1e-10||m.equals(h)||w.equals(m)?(s[l(g)]=m,i.push(v)):Math.abs((S+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 dn(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})(dn||(dn={}));(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}S=m*m-4*v*g,E=Math.sqrt(S),!(S<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,A=h.length;const k=A;for(;A;)A-=1,w=h[A],O=1-w,T=O*O*O*s+3*O*O*w*l+3*O*w*w*c+w*w*w*d,p[0][A]=T,M=O*O*O*i+3*O*O*w*a+3*O*w*w*u+w*w*w*f,p[1][A]=M;h[k]=0,h[k+1]=1,p[0][k]=s,p[1][k]=i,p[0][k+1]=d,p[1][k+1]=f,h.length=k+2,p[0].length=k+2,p[1].length=k+2;const L=Math.min.apply(null,p[0]),j=Math.min.apply(null,p[1]),ne=Math.max.apply(null,p[0]),I=Math.max.apply(null,p[1]);return new Pe(L,j,ne-L,I-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 tn(t,t,t,t),new tn(t,r,o,s)];if(e>=1)return[new tn(t,r,o,s),new tn(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 tn(t,l,a,c),new tn(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 He(t,r).pointAt(e),l=new He(r,o).pointAt(e),a=new He(o,s).pointAt(e),c=new He(i,l).pointAt(e),u=new He(l,a).pointAt(e),d=new He(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 tn(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 He(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 dn(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 tn(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})(tn||(tn={}));(function(n){function e(o){const s=o.length,i=[],l=[];let a=2;i[0]=o[0]/a;for(let c=1;cq.clone(f)),i=[],l=[],a=s.length-1;if(a===1)return i[0]=new q((2*s[0].x+s[1].x)/3,(2*s[0].y+s[1].y)/3),l[0]=new q(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 nr extends xg{constructor(e,t){super(),He.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=q.create(e,t).round(2)}get type(){return"L"}get line(){return new He(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 nr(t[0]),new nr(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new nr(t[0]),new nr(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 nr(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(He.isLine(o))return new n(o);if(q.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&&(R=Math.sqrt(R),t=R*t,r=R*r);const U=t*t,Z=r*r,Y=(s===i?-1:1)*Math.sqrt(Math.abs((U*Z-U*I*I-Z*ne*ne)/(U*I*I+Z*ne*ne)));m=Y*t*I/r+(n+l)/2,v=Y*-r*ne/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 ne=g,I=l,R=a;g=p+u*(i&&g>p?1:-1),l=m+t*Math.cos(g),a=v+r*Math.sin(g),f=rP(l,a,t,r,o,0,i,I,R,[g,ne,m,v])}w=g-p;const b=Math.cos(p),y=Math.sin(p),S=Math.cos(g),E=Math.sin(g),T=Math.tan(w/4),M=4/3*(t*T),O=4/3*(r*T),A=[n,e],k=[n+M*y,e-O*b],L=[l+M*E,a-O*S],j=[l,a];if(k[0]=2*A[0]-k[0],k[1]=2*A[1]-k[1],c)return[k,L,j].concat(f);{f=[k,L,j].concat(f).join().split(",");const ne=[],I=f.length;for(let R=0;R{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 kie(n){const e=Aie(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 Nie(n){return Pie(n).map(e=>e.map(t=>typeof t=="string"?t:Bt.round(t,2))).join(",").split(",").join(" ")}class Ze extends pl{constructor(e){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(e))if(He.isLine(e[0])||tn.isCurve(e[0])){let t=null;e.forEach((o,s)=>{s===0&&this.appendSegment(Ze.createSegment("M",o.start)),t!=null&&!t.end.equals(o.start)&&this.appendSegment(Ze.createSegment("M",o.start)),He.isLine(o)?this.appendSegment(Ze.createSegment("L",o.end)):tn.isCurve(o)&&this.appendSegment(Ze.createSegment("C",o.controlPoint1,o.controlPoint2,o.end)),t=o})}else e.forEach(r=>{r.isSegment&&this.appendSegment(r)});else e!=null&&(He.isLine(e)?(this.appendSegment(Ze.createSegment("M",e.start)),this.appendSegment(Ze.createSegment("L",e.end))):tn.isCurve(e)?(this.appendSegment(Ze.createSegment("M",e.start)),this.appendSegment(Ze.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):dn.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((t,r)=>{const o=r===0?Ze.createSegment("M",t):Ze.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(Mc.create.call(null,...e))}lineTo(...e){return this.appendSegment(nr.create.call(null,...e))}curveTo(...e){return this.appendSegment(Yr.create.call(null,...e))}arcTo(e,t,r,o,s,i,l){const a=this.end||new q,c=typeof i=="number"?cp(a.x,a.y,e,t,r,o,s,i,l):cp(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=Bt.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=Bt.clamp(e.value,0,1);return t[o].pointAtT(s)}divideAt(e,t={}){if(this.segments.length===0)return null;const r=Bt.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 S=0,E=this.segments.length;S=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=Bt.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 dn(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 Ze;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})(Ze||(Ze={}));(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 Mc.create.call(null,...o);if(r==="L")return nr.create.call(null,...o);if(r==="C")return Yr.create.call(null,...o);if(r==="z"||r==="Z")return Oc.create();throw new Error(`Invalid path segment type "${r}"`)}n.createSegment=t})(Ze||(Ze={}));(function(n){n.normalize=Nie,n.isValid=Tie,n.drawArc=Mie,n.drawPoints=nP,n.arcToCurves=cp})(Ze||(Ze={}));class pn{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&&!Yi.isApplyingHMR()&&this.onDuplicated(e);const o=this.options.process,s=o?ht(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&&ht(this.options.onConflict,this,e),new Error(`${Ih(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} ${u6(this.options.type)}`:this.options.type;return`${Ih(o)} with name '${e}' does not exist.${r?` Did you mean '${r}'?`:""}`}getSpellingSuggestionForName(e){return Pse(e,Object.keys(this.data),t=>t)}}(function(n){function e(t){return new n(t)}n.create=e})(pn||(pn={}));const Iie={color:"#aaaaaa",thickness:1,markup:"rect",update(n,e){const t=e.thickness*e.sx,r=e.thickness*e.sy;Ht(n,{width:t,height:r,rx:t,ry:r,fill:e.color})}},Lie={color:"#aaaaaa",thickness:1,markup:"rect",update(n,e){const t=e.sx<=1?e.thickness*e.sx:e.thickness;Ht(n,{width:t,height:t,rx:t,ry:t,fill:e.color})}},Rie={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",Ht(n,{d:t,stroke:e.color,"stroke-width":e.thickness})}},$ie=[{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",Ht(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,Ht(n,{d:t,stroke:e.color,"stroke-width":e.thickness})}}],Die=Object.freeze(Object.defineProperty({__proto__:null,dot:Iie,doubleMesh:$ie,fixedDot:Lie,mesh:Rie},Symbol.toStringTag,{value:"Module"}));class $i{constructor(){this.patterns={},this.root=ut.create(sp(),{width:"100%",height:"100%"},[Uo("defs")]).node}add(e,t){const r=this.root.childNodes[0];r&&r.appendChild(t),this.patterns[e]=t,ut.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=Die,n.registry=pn.create({type:"grid"}),n.registry.register(n.presets,!0)})($i||($i={}));const oP=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},sP=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},iP=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},Vie=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=jt.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},Fie=Object.freeze(Object.defineProperty({__proto__:null,flipX:oP,flipXY:iP,flipY:sP,watermark:Vie},Symbol.toStringTag,{value:"Module"}));var Md;(function(n){n.presets=Object.assign({},Fie),n.presets["flip-x"]=oP,n.presets["flip-y"]=sP,n.presets["flip-xy"]=iP,n.registry=pn.create({type:"background pattern"}),n.registry.register(n.presets,!0)})(Md||(Md={}));function x0(n,e){return n??e}function In(n,e){return n!=null&&Number.isFinite(n)?n:e}function Bie(n={}){const e=x0(n.color,"blue"),t=In(n.width,1),r=In(n.margin,2),o=In(n.opacity,1),s=r,i=r+t;return` + + + + + + + + + + + + `.trim()}function zie(n={}){const e=x0(n.color,"red"),t=In(n.blur,0),r=In(n.width,1),o=In(n.opacity,1);return` + + + + + + + + `.trim()}function jie(n={}){const e=In(n.x,2);return` + + + + `.trim()}function Hie(n={}){const e=In(n.dx,0),t=In(n.dy,0),r=x0(n.color,"black"),o=In(n.blur,4),s=In(n.opacity,1);return"SVGFEDropShadowElement"in window?` + + `.trim():` + + + + + + + + + + + + `.trim()}function Uie(n={}){const e=In(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 Wie(n={}){const e=In(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 Gie(n={}){return` + + + + `.trim()}function qie(n={}){return` + + + + `.trim()}function Kie(n={}){const e=In(n.amount,1),t=1-e;return` + + + + + + + + `.trim()}function Yie(n={}){const e=In(n.amount,1);return` + + + + + + + + `.trim()}function Jie(n={}){const e=In(n.amount,1),t=.5-e/2;return` + + + + + + + + `.trim()}const Xie=Object.freeze(Object.defineProperty({__proto__:null,blur:jie,brightness:Yie,contrast:Jie,dropShadow:Hie,grayScale:Uie,highlight:zie,hueRotate:qie,invert:Kie,outline:Bie,saturate:Gie,sepia:Wie},Symbol.toStringTag,{value:"Module"}));var Ac;(function(n){n.presets=Xie,n.registry=pn.create({type:"filter"}),n.registry.register(n.presets,!0)})(Ac||(Ac={}));const Zie={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"},Qie={},lP={position:Sg("x","width","origin")},aP={position:Sg("y","height","origin")},ele={position:Sg("x","width","corner")},tle={position:Sg("y","height","corner")},cP={set:Xi("width","width")},uP={set:Xi("height","height")},nle={set:Xi("rx","width")},rle={set:Xi("ry","height")},dP={set:(n=>{const e=Xi(n,"width"),t=Xi(n,"height");return function(r,o){const s=o.refBBox,i=s.height>s.width?e:t;return ht(i,this,r,o)}})("r")},ole={set(n,{refBBox:e}){let t=parseFloat(n);const r=Us(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}}},sle={set:Xi("cx","width")},ile={set:Xi("cy","height")},fP={set:gP({resetOffset:!0})},lle={set:gP({resetOffset:!1})},hP={set:mP({resetOffset:!0})},ale={set:mP({resetOffset:!1})},cle=dP,ule=fP,dle=hP,fle=lP,hle=aP,ple=cP,gle=uP;function Sg(n,e,t){return(r,{refBBox:o})=>{if(r==null)return null;let s=parseFloat(r);const i=Us(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 q;return a[n]=l||0,a}}function Xi(n,e){return function(t,{refBBox:r}){let o=parseFloat(t);const s=Us(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 pP(n,e){const t="x6-shape",r=e&&e.resetOffset;return function(o,{elem:s,refBBox:i}){let l=fa(s,t);if(!l||l.value!==o){const g=n(o);l={value:o,shape:g,shapeBBox:g.bbox()},fa(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 gP(n){function e(r){return Ze.parse(r)}const t=pP(e,n);return(r,o)=>({d:t(r,o).serialize()})}function mP(n){const e=pP(t=>new dn(t),n);return(t,r)=>({points:e(t,r).serialize()})}const mle={qualify:bs,set(n,{view:e}){return`url(#${e.graph.defineGradient(n)})`}},vle={qualify:bs,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)})`}},vP={qualify(n,{attrs:e}){return e.textWrap==null||!bs(e.textWrap)},set(n,{view:e,elem:t,attrs:r}){const o="x6-text",s=fa(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&&(v0(f),l.textPath=Object.assign({"xlink:href":`#${f.id}`},u))}}Kk(t,`${n}`,l),fa(t,o,c)}}},ble={qualify:bs,set(n,{view:e,elem:t,attrs:r,refBBox:o}){const s=n,i=s.width||0;Us(i)?o.width*=parseFloat(i)/100:i<=0?o.width+=i:o.width=i;const l=s.height||0;Us(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=Yk(`${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="",ht(vP.set,this,a,{view:e,elem:t,attrs:r,refBBox:o,cell:e.cell})}},Qc=(n,{attrs:e})=>e.text!==void 0,yle={qualify:Qc},wle={qualify:Qc},Cle={qualify:Qc},xle={qualify:Qc},Sle={qualify:Qc},Ele={qualify:Qc},_le={qualify(n,{elem:e}){return e instanceof SVGElement},set(n,{elem:e}){const t="x6-title",r=`${n}`,o=fa(e,t);if(o==null||o!==r){fa(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)}}}},Tle={offset:bP("x","width","right")},Ole={offset:bP("y","height","bottom")},Mle={offset(n,{refBBox:e}){return n?{x:-e.x,y:-e.y}:{x:0,y:0}}};function bP(n,e,t){return(r,{refBBox:o})=>{const s=new q;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:Us(r)?i=o[e]*parseFloat(r)/100:i=0,s[n]=-(o[n]+i),s}}const Ale={qualify:bs,set(n,{elem:e}){ff(e,n)}},kle={set(n,{elem:e}){e.innerHTML=`${n}`}},Ple={qualify:bs,set(n,{view:e}){return`url(#${e.graph.defineFilter(n)})`}},Nle={set(n){return n!=null&&typeof n=="object"&&n.id?n.id:n}};function gl(n,e,t){let r,o;typeof e=="object"?(r=e.x,o=e.y):(r=e,o=t);const s=Ze.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 yP=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=yP(n,["size","width","height","offset","open"]);return wP({size:e,width:t,height:r,offset:o},s===!0,!0,void 0,i)},Lle=n=>{var{size:e,width:t,height:r,offset:o,factor:s}=n,i=yP(n,["size","width","height","offset","factor"]);return wP({size:e,width:t,height:r,offset:o},!1,!1,s,i)};function wP(n,e,t,r=3/4,o={}){const s=n.size||10,i=n.width||s,l=n.height||s,a=new Ze,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=eo(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:gl(a.serialize(),{x:n.offset!=null?n.offset:-i/2})})}var Rle=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=Rle(n,["size","width","height","offset"]);const i=e||10,l=t||i,a=r||i,c=new Ze;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:gl(c.serialize(),o??-l/2)})};var Dle=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=Dle(n,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},o),{tagName:"path",d:gl(e,t,r)})};var Fle=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=Fle(n,["size","width","height","offset"]);const i=e||10,l=t||i,a=r||i,c=new Ze;return c.moveTo(0,0).lineTo(l,a).moveTo(0,a).lineTo(l,0),Object.assign(Object.assign({},s),{tagName:"path",fill:"none",d:gl(c.serialize(),o||-l/2)})};var zle=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=zle(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 Ze;return f.moveTo(0,l).lineTo(a,0),c?d.fill="none":(f.lineTo(a,l),f.close()),d.d=gl(f.serialize(),{x:r||-a/2,y:l/2}),d};var CP=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=CP(n,["r"]);const r=e||5;return Object.assign(Object.assign({cx:r},t),{tagName:"circle",r})},Hle=n=>{var{r:e}=n,t=CP(n,["r"]);const r=e||5,o=new Ze;return o.moveTo(r,0).lineTo(r,r*2),o.moveTo(0,r).lineTo(r*2,r),{children:[Object.assign(Object.assign({},xP({r})),{fill:"none"}),Object.assign(Object.assign({},t),{tagName:"path",d:gl(o.serialize(),-r)})]}};var Ule=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=Ule(n,["rx","ry"]);const o=e||5,s=t||5;return Object.assign(Object.assign({cx:o},r),{tagName:"ellipse",rx:o,ry:s})},Gle=Object.freeze(Object.defineProperty({__proto__:null,async:jle,block:Ile,circle:xP,circlePlus:Hle,classic:Lle,cross:Ble,diamond:$le,ellipse:Wle,path:Vle},Symbol.toStringTag,{value:"Module"}));var Zi;(function(n){n.presets=Gle,n.registry=pn.create({type:"marker"}),n.registry.register(n.presets,!0)})(Zi||(Zi={}));(function(n){n.normalize=gl})(Zi||(Zi={}));var qle=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 hf=(n,{view:e})=>e.cell.isEdge(),Zle={qualify:hf,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()}}},SP={qualify:hf,set:Eg("getTangentAtLength",{rotate:!0})},Qle={qualify:hf,set:Eg("getTangentAtLength",{rotate:!1})},EP={qualify:hf,set:Eg("getTangentAtRatio",{rotate:!0})},eae={qualify:hf,set:Eg("getTangentAtRatio",{rotate:!1})},tae=SP,nae=EP;function Eg(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 rae=Object.freeze(Object.defineProperty({__proto__:null,annotations:xle,atConnectionLength:tae,atConnectionLengthIgnoreGradient:Qle,atConnectionLengthKeepGradient:SP,atConnectionRatio:nae,atConnectionRatioIgnoreGradient:eae,atConnectionRatioKeepGradient:EP,connection:Zle,displayEmpty:Ele,eol:Sle,fill:mle,filter:Ple,html:kle,lineHeight:yle,port:Nle,ref:Qie,refCx:sle,refCy:ile,refD:ule,refDKeepOffset:lle,refDResetOffset:fP,refDx:ele,refDy:tle,refHeight:uP,refHeight2:gle,refPoints:dle,refPointsKeepOffset:ale,refPointsResetOffset:hP,refR:cle,refRCircumscribed:ole,refRInscribed:dP,refRx:nle,refRy:rle,refWidth:cP,refWidth2:ple,refX:lP,refX2:fle,refY:aP,refY2:hle,resetOffset:Mle,sourceMarker:Kle,stroke:vle,style:Ale,targetMarker:Yle,text:vP,textPath:Cle,textVerticalAnchor:wle,textWrap:ble,title:_le,vertexMarker:Jle,xAlign:Tle,yAlign:Ole},Symbol.toStringTag,{value:"Module"}));var gs;(function(n){function e(t,r,o){return!!(t!=null&&(typeof t=="string"||typeof t.qualify!="function"||ht(t.qualify,this,r,o)))}n.isValidDefinition=e})(gs||(gs={}));(function(n){n.presets=Object.assign(Object.assign({},Zie),rae),n.registry=pn.create({type:"attribute definition"}),n.registry.register(n.presets,!0)})(gs||(gs={}));const Fo={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,prefix(n){return`${Fo.prefixCls}-${n}`}},oE=Fo.prefix("highlighted"),oae={highlight(n,e,t){const r=t&&t.className||oE;Pt(e,r)},unhighlight(n,e,t){const r=t&&t.className||oE;no(e,r)}},sE=Fo.prefix("highlight-opacity"),sae={highlight(n,e){Pt(e,sE)},unhighlight(n,e){no(e,sE)}};var Dt;(function(n){n.normalizeMarker=gl;function e(f,h){const p=fie(f.x,f.y).matrixTransform(h);return new q(p.x,p.y)}n.transformPoint=e;function t(f,h){return new He(e(f.start,h),e(f.end,h))}n.transformLine=t;function r(f,h){let p=f instanceof dn?f.points:f;return Array.isArray(p)||(p=[]),new dn(p.map(g=>e(g,h)))}n.transformPolyline=r;function o(f,h){const g=Uo("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),S=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 Pe(y,E,S-y,T-E)}n.transformRectangle=o;function s(f,h,p){let g;const m=f.ownerSVGElement;if(!m)return new Pe(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 Pe.create(g);const v=Gu(f,p||m);return o(g,v)}n.bbox=s;function i(f,h={}){let p;if(!f.ownerSVGElement||!Ji(f)){if(YS(f)){const{left:w,top:b,width:y,height:S}=l(f);return new Pe(w,b,y,S)}return new Pe(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 Pe.create(p);const w=Gu(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 Pe(h("x"),h("y"),h("width"),h("height"));case"circle":return new Vo(h("cx"),h("cy"),h("r"),h("r"));case"ellipse":return new Vo(h("cx"),h("cy"),h("rx"),h("ry"));case"polyline":{const p=lp(f);return new dn(p)}case"polygon":{const p=lp(f);return p.length>1&&p.push(p[0]),new dn(p)}case"path":{let p=f.getAttribute("d");return Ze.isValid(p)||(p=Ze.normalize(p)),Ze.parse(p)}case"line":return new He(h("x1"),h("y1"),h("x2"),h("y2"))}return i(f)}n.toGeometryShape=a;function c(f,h,p,g){const m=q.create(h),v=q.create(p);g||(g=f instanceof SVGSVGElement?f:f.ownerSVGElement);const w=db(f);f.setAttribute("transform","");const b=i(f,{target:g}).scale(w.sx,w.sy),y=vu();y.setTranslate(-b.x-b.width/2,-b.y-b.height/2);const S=vu(),E=m.angleBetween(v,m.clone().translate(1,0));E&&S.setRotate(E,0,0);const T=vu(),M=m.clone().move(v,b.width/2);T.setTranslate(2*m.x-M.x,2*m.y-M.y);const O=Gu(f,g),A=vu();A.setMatrix(T.matrix.multiply(S.matrix.multiply(y.matrix.multiply(O.scale(w.sx,w.sy))))),f.setAttribute("transform",Zc(A.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(),cf(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(!Ji(h)){if(YS(f)){const{left:m,top:v,width:w,height:b}=l(f);return new Pe(m,v,w,b)}return new Pe(0,0,0,0)}return a(h).bbox()||Pe.create()}n.getBBoxV2=d})(Dt||(Dt={}));const iae={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},lae={highlight(n,e,t){const r=_i.getHighlighterId(e,t);if(_i.hasCache(r))return;t=NT({},t,iae);const o=ut.create(e);let s,i;try{s=o.toPathData()}catch{i=Dt.bbox(o.node,!0),s=Xk(Object.assign(Object.assign({},t),i))}const l=Uo("path");if(Ht(l,Object.assign({d:s,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},t.attrs?Ed(t.attrs):null)),n.isEdgeElement(e))Ht(l,"d",n.getConnectionPathData());else{let u=o.getTransformToElement(n.container);const d=t.padding;if(d){i==null&&(i=Dt.bbox(o.node,!0));const f=i.x+i.width/2,h=i.y+i.height/2;i=Dt.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=Fn({a:m,b:0,c:0,d:v,e:f-m*f,f:h-v*h});u=u.multiply(w)}_c(l,u)}Pt(l,Fo.prefix("highlight-stroke"));const a=n.cell,c=()=>_i.removeHighlighter(r);a.on("removed",c),a.model&&a.model.on("reseted",c),n.container.appendChild(l),_i.setCache(r,l)},unhighlight(n,e,t){_i.removeHighlighter(_i.getHighlighterId(e,t))}};var _i;(function(n){function e(i,l){return v0(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&&(Ec(l),delete t[i])}n.removeHighlighter=s})(_i||(_i={}));const aae=Object.freeze(Object.defineProperty({__proto__:null,className:oae,opacity:sae,stroke:lae},Symbol.toStringTag,{value:"Module"}));var Bs;(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})(Bs||(Bs={}));(function(n){n.presets=aae,n.registry=pn.create({type:"highlighter"}),n.registry.register(n.presets,!0)})(Bs||(Bs={}));function pb(n,e={}){return new q(No(e.x,n.width),No(e.y,n.height))}function _0(n,e,t){return Object.assign({angle:e,position:n.toJSON()},t)}const cae=(n,e)=>n.map(({x:t,y:r,angle:o})=>_0(pb(e,{x:t,y:r}),o||0)),uae=(n,e,t)=>{const r=t.start||0,o=t.step||20;return _P(n,e,r,(s,i)=>(s+.5-i/2)*o)},dae=(n,e,t)=>{const r=t.start||0,o=t.step||360/n.length;return _P(n,e,r,s=>s*o)};function _P(n,e,t,r){const o=e.getCenter(),s=e.getTopCenter(),i=e.width/e.height,l=Vo.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),_0(f.round(),h,c)})}var fae=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=pb(e,t.start||e.getOrigin()),o=pb(e,t.end||e.getCorner());return pf(n,r,o,t)},pae=(n,e,t)=>pf(n,e.getTopLeft(),e.getBottomLeft(),t),gae=(n,e,t)=>pf(n,e.getTopRight(),e.getBottomRight(),t),mae=(n,e,t)=>pf(n,e.getTopLeft(),e.getTopRight(),t),vae=(n,e,t)=>pf(n,e.getBottomLeft(),e.getBottomRight(),t);function pf(n,e,t,r){const o=new He(e,t),s=n.length;return n.map((i,l)=>{var{strict:a}=i,c=fae(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),_0(d.round(),0,c)})}const bae=Object.freeze(Object.defineProperty({__proto__:null,absolute:cae,bottom:vae,ellipse:uae,ellipseSpread:dae,left:pae,line:hae,right:gae,top:mae},Symbol.toStringTag,{value:"Module"}));var Ql;(function(n){n.presets=bae,n.registry=pn.create({type:"port layout"}),n.registry.register(n.presets,!0)})(Ql||(Ql={}));const yae={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function ml(n,e){const{x:t,y:r,angle:o,attrs:s}=e||{};return NT({},{angle:o,attrs:s,position:{x:t,y:r}},n,yae)}const wae=(n,e,t)=>ml({position:e.getTopLeft()},t),Cae=(n,e,t)=>ml({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},t),xae=(n,e,t)=>ml({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},t),Sae=(n,e,t)=>ml({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},t),Eae=(n,e,t)=>ml({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},t),_ae=(n,e,t)=>TP(n,e,!1,t),Tae=(n,e,t)=>TP(n,e,!0,t),Oae=(n,e,t)=>OP(n,e,!1,t),Mae=(n,e,t)=>OP(n,e,!0,t);function TP(n,e,t,r){const o=r.offset!=null?r.offset:15,s=e.getCenter().theta(n),i=MP(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"):sAP(n.diff(e.getCenter()),!1,t),kae=(n,e,t)=>AP(n.diff(e.getCenter()),!0,t);function AP(n,e,t){const r=t.offset!=null?t.offset:20,o=new q(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",ml({position:i.round().toJSON(),angle:e?c:0,attrs:{".":{y:l,"text-anchor":a}}},t)}const Pae=Object.freeze(Object.defineProperty({__proto__:null,bottom:Eae,inside:Oae,insideOriented:Mae,left:Cae,manual:wae,outside:_ae,outsideOriented:Tae,radial:Aae,radialOriented:kae,right:xae,top:Sae},Symbol.toStringTag,{value:"Module"}));var kc;(function(n){n.presets=Pae,n.registry=pn.create({type:"port label layout"}),n.registry.register(n.presets,!0)})(kc||(kc={}));var Nae=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 Qt extends Fr{get priority(){return 2}get disposeContainer(){return!0}constructor(){super(),this.cid=gb.uniqueId(),Qt.views[this.cid]=this}confirmUpdate(e,t){return 0}empty(e=this.container){return uf(e),this}unmount(e=this.container){return Ec(e),this}remove(e=this.container){return e===this.container?(this.removeEventListeners(document),this.onRemove(),delete Qt.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 Pt(t,Array.isArray(e)?e.join(" "):e),this}removeClass(e,t=this.container){return no(t,Array.isArray(e)?e.join(" "):e),this}setStyle(e,t=this.container){return ff(t,e),this}setAttrs(e,t=this.container){return e!=null&&t!=null&&Ht(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 Qt.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=y0(e)+1;r=`${e.tagName.toLowerCase()}:nth-child(${o})`,t&&(r+=` > ${t}`),r=this.getSelector(e.parentNode,r)}return r}prefixClassName(e){return Fo.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 jn.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 jn.on(this.container,e+this.getEventNamespace(),t,r),this}undelegateEvent(e,t,r){const o=e+this.getEventNamespace();return t==null?jn.off(this.container,o):typeof t=="string"?jn.off(this.container,o,t,r):jn.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"&&jn.on(e,s+o,r,i)}),this}removeEventListeners(e){return e!=null&&jn.off(e,this.getEventNamespace()),this}getEventNamespace(){return`.${Fo.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 Qt.normalizeEvent(e)}dispose(){this.remove()}}Nae([Qt.dispose()],Qt.prototype,"dispose",null);(function(n){function e(o,s){return s?Uo(o||"g"):b0(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})(Qt||(Qt={}));(function(n){n.views={};function e(t){return n.views[t]||null}n.getView=e})(Qt||(Qt={}));var gb;(function(n){let e=0;function t(){const r=`v${e}`;return e+=1,r}n.uniqueId=t})(gb||(gb={}));class Iae{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new hb,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 Fn(t.matrix)}getShape(e){const t=this.get(e);return t.shape==null&&(t.shape=Dt.toGeometryShape(e)),t.shape.clone()}getBoundingRect(e){const t=this.get(e);return t.boundingRect==null&&(t.boundingRect=Dt.getBBoxV2(e)),t.boundingRect.clone()}}var Kt;(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:nn(c)}n.clone=r;function o(c){return`${c}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")}n.sanitize=o;function s(c,u={ns:Pn.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||Pn.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 S=m?b0(y,m):KS(y),E=b.attrs;E&&Ht(S,Ed(E));const T=b.style;T&&ff(S,T);const M=b.className;M!=null&&S.setAttribute("class",Array.isArray(M)?M.join(" "):M),b.textContent&&(S.textContent=b.textContent);const O=b.selector;if(O!=null){if(h[O])throw new TypeError("Selector must be unique");h[O]=S}if(b.groupSelector){let k=b.groupSelector;Array.isArray(k)||(k=[k]),k.forEach(L=>{f[L]||(f[L]=[]),f[L].push(S)})}w.appendChild(S);const A=b.children;Array.isArray(A)&&p.push({ns:m,markup:A,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}}n.parseJSONMarkup=s;function i(c){return c instanceof SVGElement?Uo("g"):KS("div")}function l(c){if(t(c)){const h=ut.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=ut.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=y0(t)+1;s=`${i}:nth-child(${a})`}else s=i;return o&&(s+=` > ${o}`),e(t.parentNode,r,s)}return o}n.getSelector=e})(Kt||(Kt={}));(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})(Kt||(Kt={}));(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})(Kt||(Kt={}));(function(n){function e(t=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:Pn.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:Pn.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:t?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}n.getForeignObjectMarkup=e})(Kt||(Kt={}));class kP{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=ht(gs.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:Sk(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 hb;return Object.keys(e).forEach(l=>{const a=e[l];if(!bs(a))return;const{isCSSSelector:c,elems:u}=Qt.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)=>on(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=ht(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=_d(d),h=new q(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=ht(w.position,this.view,v,c());b!=null&&(p=!0,h.translate(q.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=Dt.transformRectangle(m,f);Object.keys(a).forEach(w=>{const b=a[w],y=this.getDefinition(w);if(y!=null){const S=ht(y.offset,this.view,b,{elem:e,cell:this.cell,view:this.view,attrs:o,refBBox:v});S!=null&&(g=!0,h.translate(q.create(S)))}})}}(u!=null||p||g)&&(h.round(1),f.e=h.x,f.f=h.y,e.setAttribute("transform",Zc(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 hb;let c;l.forEach(u=>{const d=u.node,f=u.refNode;let h;const p=f!=null&&r.rotatableNode!=null&&zk(r.rotatableNode,f);if(f&&(h=a.get(f)),!h){const v=p?r.rotatableNode:e;h=f?Dt.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=_d(Ht(r.rotatableNode,"transform"))),m=Dt.transformRectangle(h,c)),this.updateRelativeAttrs(d,g,m)})}}class PP{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 Lae=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},Rae=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?BT([...Array.isArray(c)?c:[c],...Array.isArray(u)?u:[u]]):Array.isArray(c)?[...c]:[c],r=nn(this.getDefaults()),{bootstrap:o,actions:s,events:i,documentEvents:l}=e,a=Rae(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)),on(r,a)}get[Symbol.toStringTag](){return fn.toStringTag}constructor(e,t={}){super(),this.cell=e,this.options=this.ensureOptions(t),this.graph=this.options.graph,this.attr=new kP(this),this.flag=new PP(this,this.options.actions,this.options.bootstrap),this.cache=new Iae(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 Qt.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=Kt.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=ht(t,this.graph,this)),typeof t=="object"){let r=t[e];return typeof r=="function"&&(r=ht(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 Dt.transformRectangle(t,s.multiply(o).multiply(r))}getUnrotatedBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),r=this.getMatrixOfElement(e),o=this.getRootTranslatedMatrix();return Dt.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 Fn().translate(t.x,t.y)}getRootRotatedMatrix(){let e=Fn();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 Pe),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=yn.isToolsView(e)?e:new yn(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)}}fn.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}};Lae([fn.dispose()],fn.prototype,"dispose",null);(function(n){n.Flag=PP,n.Attr=kP})(fn||(fn={}));(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})(fn||(fn={}));(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})(fn||(fn={}));(function(n){n.registry=pn.create({type:"view"})})(fn||(fn={}));class yn extends Qt{get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return yn.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?Qt.createElement("g",!0):Qt.createElement("div",!1);return Pt(r,this.prefixClassName("cell-tools")),t.className&&Pt(r,t.className),r}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!fn.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(Pt(this.svgContainer,this.prefixClassName("edge-tools")),Pt(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(Pt(this.svgContainer,this.prefixClassName("node-tools")),Pt(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=>{yn.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),Ec(this.svgContainer),Ec(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})(yn||(yn={}));(function(n){class e extends Qt{static getDefaults(){return this.defaults}static config(r){this.defaults=this.getOptions(r)}static getOptions(r){return on(nn(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=Qt.createElement(this.options.tagName||"g",this.options.isSVGElement!==!1),Pt(this.container,this.prefixClassName("cell-tool")),typeof this.options.className=="string"&&Pt(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()?Pt(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&Pt(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=Kt.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?h0(i):(r+=1,`CustomTool${r}`)}function s(i){const l=d0(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={}))})(yn||(yn={}));const $ae=n=>n;function iE(n,e){return e===0?"0%":`${Math.round(n/e*100)}%`}function NP(n){return(t,r,o,s)=>r.isEdgeElement(o)?Vae(n,t,r,o,s):Dae(n,t,r,o,s)}function Dae(n,e,t,r,o){const s=t.cell,i=s.getAngle(),l=t.getUnrotatedBBoxOfElement(r),a=s.getBBox().getCenter(),c=q.create(o).rotate(i,a);let u=c.x-l.x,d=c.y-l.y;return n&&(u=iE(u,l.width),d=iE(d,l.height)),e.anchor={name:"topLeft",args:{dx:u,dy:d,rotate:!0}},e}function Vae(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 Fae=NP(!0),Bae=NP(!1),zae=Object.freeze(Object.defineProperty({__proto__:null,noop:$ae,pinAbsolute:Bae,pinRelative:Fae},Symbol.toStringTag,{value:"Module"}));var mb;(function(n){n.presets=zae,n.registry=pn.create({type:"connection strategy"}),n.registry.register(n.presets,!0)})(mb||(mb={}));function IP(n,e,t,r){return ht(mb.presets.pinRelative,this.graph,{},e,t,n,this.cell,r,{}).anchor}function LP(n,e){return e?n.cell.getBBox():n.cell.isEdge()?n.getConnection().bbox():n.getUnrotatedBBoxOfElement(n.container)}class Qi extends yn.ToolItem{onRender(){Pt(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();_c(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=LP(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=No(r,a.width),o=No(o,a.height);let f=Fn().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=No(o,1);c>=0&&c<=1?i=e.getTangentAtRatio(c):i=e.getTangentAtLength(c),i?(l=i.start,a=i.vector().vectorAngle(new q(1,0))||0):(l=e.getConnection().start,a=0);let u=Fn().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"&&ht(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"}})})(Qi||(Qi={}));(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})}})})(Qi||(Qi={}));var jae=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"}})})(Ad||(Ad={}));class kd extends yn.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){Pt(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:IP})})(kd||(kd={}));class dp extends yn.ToolItem{get type(){return this.options.type}onRender(){Pt(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),Ht(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=ht(c,r,a,o,l,t,r,this);a=q.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=ht(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:IP,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 ht(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"){ht(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:{}};Xc(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"}})})(Pc||(Pc={}));(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"})})(Pc||(Pc={}));var RP=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)},uce=function(n,e,t,r){const o=r.length!=null?r.length:20;return n.getPointAtLength(o)},DP=function(n,e,t,r){const o=n.getClosestPoint(t);return o??new q},dce=_g(DP),fce=function(n,e,t,r){const s=n.getConnection(),i=n.getConnectionSubdivisions(),l=new He(t.clone().translate(0,1e6),t.clone().translate(0,-1e6)),a=new He(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?$P(n,r.fallbackAt):ht(DP,this,n,e,t,r)},hce=_g(fce),pce=Object.freeze(Object.defineProperty({__proto__:null,closest:dce,length:uce,orth:hce,ratio:cce},Symbol.toStringTag,{value:"Module"}));var Rc;(function(n){n.presets=pce,n.registry=pn.create({type:"edge endpoint"}),n.registry.register(n.presets,!0)})(Rc||(Rc={}));function Tg(n,e,t){let r;if(typeof t=="object"){if(Number.isFinite(t.y)){const s=new He(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 hp(n){const e=n.getAttribute("stroke-width");return e===null?0:parseFloat(e)||0}function gce(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 VP=function(n,e,t,r){const o=e.getBBoxOfElement(t);r.stroked&&o.inflate(hp(t)/2);const s=n.intersect(o),i=s&&s.length?n.start.closest(s):n.end;return Tg(i,n.start,r.offset)},mce=function(n,e,t,r,o){const s=e.cell,i=s.isNode()?s.getAngle():0;if(i===0)return ht(VP,this,n,e,t,r,o);const l=e.getUnrotatedBBoxOfElement(t);r.stroked&&l.inflate(hp(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 Tg(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=f0(t,l):o=gce(t),!Ji(o)){if(o===t||!Ji(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=Dt.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(Ze.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&&(Pe.isRectangle(a)?s=a.getNearestPointToPoint(g):Vo.isEllipse(a)?s=a.intersectsWithLineFromCenterToPoint(g):s=a.closestPoint(g,v));const w=s?Dt.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+=hp(o)/2):b+=hp(o)/2),Tg(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 Jf(n){return new Pe(n.x,n.y,0,0)}function pp(n={}){const e=da(n.padding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function FP(n,e={}){return n.sourceBBox.clone().moveAndExpand(pp(e))}function BP(n,e={}){return n.targetBBox.clone().moveAndExpand(pp(e))}function Sce(n,e={}){return n.sourceAnchor?n.sourceAnchor:FP(n,e).getCenter()}function Ece(n,e={}){return n.targetAnchor?n.targetAnchor:BP(n,e).getCenter()}const zP=function(n,e,t){let r=FP(t,e),o=BP(t,e);const s=Sce(t,e),i=Ece(t,e);r=r.union(Jf(s)),o=o.union(Jf(i));const l=n.map(u=>q.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 q(d.x,f.y),g=new q(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 q(d.x,f.y),new q(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=Y5(g,m)[0];const b=q.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=q.create(d).move(v,-o(h,s(d,v))/2),b=q.create(f).move(m,-o(p,s(f,m))/2),y=new He(w,b).getCenter(),S=l(d,y,h),E=i(y,f,S.direction);g.points=[S.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 S,E,T;g?(S=q.fromPolar(m.width+m.height,t[g],b),S=m.getNearestPointToPoint(S).move(S,-1)):S=m.getNearestPointToPoint(b).move(b,1),E=r(S,y,m);let M;S.round().equals(E.round())?(E=q.fromPolar(m.width+m.height,jt.toRad(S.theta(b))+Math.PI/2,y),E=m.getNearestPointToPoint(E).move(y,1).round(),T=r(S,E,m),M=w?[E,T,S]:[S,T,E]):M=w?[E,S]:[S,E];const O=s(w?S:E,f);return{points:M,direction:O}}n.insideNode=u})(Gr||(Gr={}));const _ce={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 Pi(this.step,this)},directions(){const n=Pi(this.step,this),e=Pi(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=Pi(this.step,this);return{0:0,45:n/2,90:n/2}},paddingBox(){const n=Pi(this.step,this);return{x:-n,y:-n,width:2*n,height:2*n}},fallbackRouter:zP,draggingRouter:null,snapToGrid:!0};function Pi(n,e){return typeof n=="function"?n.call(e):n}function Tce(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]=Pi(n[r],n),t},{});if(e.padding){const t=da(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 q(0,0),o=new q(t.offsetX,t.offsetY);t.angle=jt.normalize(r.theta(o))}),e}const lE=1,aE=2;class Oce{constructor(){this.items=[],this.hash={},this.values={}}add(e,t){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=lE,this.values[e]=t;const r=A6(this.items,e,o=>this.values[o]);this.items.splice(r,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=aE),e}isOpen(e){return this.hash[e]===lE}isClose(e){return this.hash[e]===aE}isEmpty(){return this.items.length===0}}class Mce{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=mC(s,i.getAncestors().map(c=>c.id)));const l=e.getCell(t.getTargetCellId());l&&(s=mC(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 S=new q(b,y).toString();c[S]==null&&(c[S]=[]),c[S].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 HP(n,e){const t=n.targetBBox.clone();return e&&e.paddingBox?t.moveAndExpand(e.paddingBox):t}function UP(n,e){return n.sourceAnchor?n.sourceAnchor:jP(n,e).getCenter()}function Ace(n,e){return n.targetAnchor?n.targetAnchor:HP(n,e).getCenter()}function Lm(n,e,t,r,o){const s=360/t,i=n.theta(kce(n,e,r,o)),l=jt.normalize(i+s/2);return s*Math.floor(l/s)}function kce(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 q(n.x+c,n.y+u)}function cE(n,e){const t=Math.abs(n-e);return t>180?360-t:t}function Pce(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 Nce(n,e,t){return{source:e.clone(),x:uE(t.x-e.x,n),y:uE(t.y-e.y,n)}}function uE(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 Ice(n,e){const t=e.source,r=Bt.snapToGrid(n.x-t.x,e.x)+t.x,o=Bt.snapToGrid(n.y-t.y,e.y)+t.y;return new q(r,o)}function bu(n,e){return n.round(e)}function yh(n,e,t){return bu(Ice(n.clone(),e),t)}function Yu(n){return n.toString()}function Rm(n){return new q(n.x===0?0:Math.abs(n.x)/n.x,n.y===0?0:Math.abs(n.y)/n.y)}function dE(n,e){let t=1/0;for(let r=0,o=e.length;r{if(t.includes(u)){const d=i[u],f=new q(n.x+d.x*(Math.abs(l.x)+e.width),n.y+d.y*(Math.abs(l.y)+e.height)),p=new He(n,f).intersect(e)||[];let g,m=null;for(let v=0;vg)&&(g=b,m=w)}if(m){let v=yh(m,r,s);e.containsPoint(v)&&(v=yh(v.translate(d.x*r.x,d.y*r.y),r,s)),c.push(v)}}return c},[]);return e.containsPoint(n)||a.push(yh(n,r,s)),a}function Lce(n,e,t,r,o){const s=[];let i=Rm(o.diff(t)),l=Yu(t),a=n[l],c;for(;a;){c=e[l];const f=Rm(c.diff(a));f.equals(i)||(s.unshift(c),i=f),l=Yu(a),a=n[l]}const u=e[l];return Rm(u.diff(r)).equals(i)||s.unshift(u),s}function Rce(n,e,t,r,o){const s=o.precision;let i,l;Pe.isRectangle(e)?i=bu(UP(n,o).clone(),s):i=bu(e.clone(),s),Pe.isRectangle(t)?l=bu(Ace(n,o).clone(),s):l=bu(t.clone(),s);const a=Nce(o.step,i,l),c=i,u=l;let d,f;if(Pe.isRectangle(e)?d=fE(c,e,o.startDirections,a,o):d=[c],Pe.isRectangle(t)?f=fE(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 Oce,p={},g={},m={};for(let A=0,k=d.length;A{const L=Yu(k);return A.push(L),A},[]),M=q.equalPoints(d,f);let O=o.maxLoopCount;for(;!h.isEmpty()&&O>0;){const A=h.pop(),k=p[A],L=g[A],j=m[A],ne=k.equals(c),I=L==null;let R;if(I?w?ne?R=null:R=Lm(c,k,E,a,o):R=v:R=Lm(L,k,E,a,o),!(I&&M)&&T.indexOf(A)>=0)return o.previousDirectionAngle=R,Lce(g,p,k,c,u);for(let Z=0;Zo.maxDirectionChange)continue;const K=yh(k.clone().translate(b.gridOffsetX||0,b.gridOffsetY||0),a,s),fe=Yu(K);if(h.isClose(fe)||!r.isAccessible(K))continue;if(T.indexOf(fe)>=0&&!K.equals(u)){const ye=Lm(K,u,E,a,o);if(cE(Y,ye)>o.maxDirectionChange)continue}const H=b.cost,se=ne?0:o.penalties[y],ue=j+H+se;(!h.isOpen(fe)||ueq.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=ht(r.draggingRouter,t,b,y,r)}}if(g==null&&(g=Rce(t,d,f,l,r)),g===null)return ht(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?$ce(c,t.graph.grid.getGridSize()):c},WP=function(n,e,t){return ht(Dce,this,n,Object.assign(Object.assign({},_ce),e),t)},Vce={maxDirectionChange:45,directions(){const n=Pi(this.step,this),e=Pi(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 He(n,l),c=90*Math.ceil(r/90),u=q.fromPolar(a.squaredLength(),jt.toRad(c+135),l),d=new He(e,u),f=a.intersectsWithLine(d),h=f||e,p=f?h:n,g=360/t.directions.length,m=p.theta(e),v=jt.normalize(m+g/2),w=g*Math.floor(v/g);return t.previousDirectionAngle=w,h&&o.push(h.round()),o.push(e),o}},Fce=function(n,e,t){return ht(WP,this,n,Object.assign(Object.assign({},Vce),e),t)},Bce=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 Oa(n,e){if(e!=null&&e!==!1){const t=typeof e=="boolean"?0:e;if(t>0){const r=q.create(n[1]).move(n[2],t),o=q.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 zce=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=jt.toRad(v),b=Math.sin(w),y=Math.cos(w),S=new q(l.x+y*r,l.y+b*r),E=new q(S.x-y*s,S.y-b*s),T=E.clone().rotate(-90,S),M=E.clone().rotate(90,S);return[T.toJSON(),S.toJSON(),M.toJSON()]},f=v=>{const w=l.clone().move(v,-1),b=new He(w,v);return!c.containsPoint(v)&&!c.intersectsWithLine(b)},h=[0,90,180,270,45,135,225,315];if(typeof i=="number")return Oa(d(i),e.merge);const p=c.getCenter();if(p.equals(l))return Oa(d(0),e.merge);const g=p.angleBetween(l,p.clone().translate(1,0));let m=d(g);if(f(m[1]))return Oa(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?Ze.parse(a):a},Wce=function(n,e,t,r={}){const o=new Ze;o.appendSegment(Ze.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(Ze.createSegment("C",i,n.y,i,e.y,e.x,e.y))}else{const i=(n.y+e.y)/2;o.appendSegment(Ze.createSegment("C",n.x,i,e.x,i,e.x,e.y))}return r.raw?o:o.serialize()},hE=1,Xf=1/3,Zf=2/3;function qce(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 $m(n,e,t=[]){const r=[n,...t,e],o=[];return r.forEach((s,i)=>{const l=r[i+1];l!=null&&o.push(new He(s,l))}),o}function Kce(n,e){const t=[];return e.forEach(r=>{const o=n.intersectsWithLine(r);o&&t.push(o)}),t}function pE(n,e){return new He(n,e).squaredLength()}function Yce(n,e,t){return e.reduce((r,o,s)=>{if(gp.includes(o))return r;const i=r.pop()||n,l=q.create(o).move(i.start,-t);let a=q.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),gp.push(c))}else if(l.distance(i.end){if(Pd.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 He(h,i.end).rotate(a,h);let g;g=new He(i.start,h),u=g.pointAt(2/3).rotate(a,i.start),d=p.pointAt(1/3).rotate(-a,p.end),s=Ze.createSegment("C",u,d,p.end),o.appendSegment(s),g=new He(h,i.end),u=p.pointAt(1/3).rotate(a,p.end),d=g.pointAt(1/3).rotate(-a,i.end),s=Ze.createSegment("C",u,d,i.end),o.appendSegment(s)}else if(t==="gap")s=Ze.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 q(i.start.x+f,i.start.y+h).rotate(a,i.start),d=new q(i.end.x-f,i.end.y+h).rotate(a,i.end),s=Ze.createSegment("C",u,d,i.end),o.appendSegment(s)}}else{const a=n[l+1];r===0||!a||Pd.includes(a)?(s=Ze.createSegment("L",i.end),o.appendSegment(s)):Jce(r,o,i.end,i.start,a.end)}}),o}function Jce(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 q(Xf*c.x+Zf*t.x,Zf*t.y+Xf*c.y),f=new q(Xf*u.x+Zf*t.x,Zf*t.y+Xf*u.y);let h;h=Ze.createSegment("L",c),e.appendSegment(h),h=Ze.createSegment("C",d,f,u),e.appendSegment(h)}let Pd,gp;const Xce=function(n,e,t,r={}){Pd=[],gp=[],qce(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 gE($m(n,e,t),o,s,i);const d=this.cell,f=u.indexOf(d),h=a.options.connecting.connector||{},p=u.filter((y,S)=>{const E=y.getConnector()||h;return l.includes(E.name)?!1:S>f?E.name!=="jumpover":!0}),g=p.map(y=>a.findViewByCell(y)),m=$m(n,e,t),v=g.map(y=>y==null?[]:y===this?m:$m(y.sourcePoint,y.targetPoint,y.routePoints)),w=[];m.forEach(y=>{const S=p.reduce((E,T,M)=>{if(T!==d){const O=Kce(y,v[M]);E.push(...O)}return E},[]).sort((E,T)=>pE(y.start,E)-pE(y.start,T));S.length>0?w.push(...Yce(y,S,o)):w.push(y)});const b=gE(w,o,s,i);return Pd=[],gp=[],r.raw?b:b.serialize()},Zce=Object.freeze(Object.defineProperty({__proto__:null,jumpover:Xce,loop:Uce,normal:Hce,rounded:Wce,smooth:Gce},Symbol.toStringTag,{value:"Module"}));var ea;(function(n){n.presets=Zce,n.registry=pn.create({type:"connector"}),n.registry.register(n.presets,!0)})(ea||(ea={}));var Qce=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 GP extends Fr{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(nn(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=nn(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];Cr(l[d],f)||s.push(d),Cr(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 f0(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()?nn(this.changed):null;const t=this.changing?this.previous:this.data,r={};let o;for(const s in e){const i=e[s];Cr(t[s],i)||(r[s]=i,o=!0)}return o?nn(r):null}toJSON(){return nn(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})}}Qce([Fr.dispose()],GP.prototype,"dispose",null);class Nd{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=H5(r,Nd.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=>Cr(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"?ha[e]:e}getInterp(e,t,r){return e?e(t,r):typeof r=="number"?jl.number(t,r):typeof r=="string"?r[0]==="#"?jl.color(t,r):jl.unit(t,r):jl.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"}})(Nd||(Nd={}));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},qP=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=on({},this.defaults,s)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:nn(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,t){return this.propHooks.reduce((r,o)=>o?ht(o,e,r):r,t)}get[Symbol.toStringTag](){return Mt.toStringTag}constructor(e={}){super();const r=this.constructor.getDefaults(!0),o=on({},this.preprocess(r),this.preprocess(e));this.id=o.id||op(),this.store=new GP(o),this.animation=new Nd(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=op()),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(on({},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(on({},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]||gs.registry.get(e);if(!o){const s=Wp(e);o=r[s]||gs.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(on({},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 Mt.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 Mt.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=nn(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",Mt.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=nn(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 Pe}getConnectionPoint(e,t){return new q}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"&&!bs(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];Cr(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 S=w[y];if(m==null||b==null||!sn(b)||!Cr(b[y],S)){d[p]==null&&(d[p]={}),d[p][v]==null&&(d[p][v]={});const E=d[p][v];E[y]=S}}):(m==null||!Cr(b,w))&&(d[p]==null&&(d[p]={}),d[p][v]=w)})});const f=Object.assign(Object.assign({},t),{attrs:LT(d)?void 0:d});f.attrs==null&&delete f.attrs;const h=f;return h.angle===0&&delete h.angle,nn(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 Mt.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()}}Mt.defaults={};Mt.attrHooks={};Mt.propHooks=[];eue([Fr.dispose()],Mt.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})(Mt||(Mt={}));(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})(Mt||(Mt={}));(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})(Mt||(Mt={}));(function(n){n.config({propHooks(e){var{tools:t}=e,r=qP(e,["tools"]);return t&&(r.tools=n.normalizeTools(t)),r}})})(Mt||(Mt={}));var Dc;(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})(Dc||(Dc={}));class tue{constructor(e){this.ports=[],this.groups={},this.init(nn(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=Ql.registry.get(i);if(d==null)return Ql.registry.onNotFound(i);l=d}else l=Ql.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,q.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=on({},r.attrs,t.attrs),t.position=this.createPosition(r,t),t.label=on({},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 on({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=kc.registry.get(o)||kc.presets.left;return i?i(t,r,s):null}}var Og=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),Mt.getCellsBBox(t)}return Pe.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=q.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}=Mt.getCellsBBox(r);const a=da(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")||Kt.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,t={}){return this.store.set("portContainerMarkup",Kt.clone(e),t),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||Kt.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,t={}){return this.store.set("portMarkup",Kt.clone(e),t),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||Kt.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,t={}){return this.store.set("portLabelMarkup",Kt.clone(e),t),this}get ports(){const e=this.store.get("ports",{items:[]});return e.items==null&&(e.items=[]),e}getPorts(){return nn(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter(t=>t.group===e)}getPort(e){return nn(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 Pe(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&&!LT(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 op()}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 tue(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})}};gn.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})(gn||(gn={}));(function(n){n.config({propHooks(e){var{ports:t}=e,r=Og(e,["ports"]);return t&&(r.ports=Array.isArray(t)?{items:t}:t),r}})})(gn||(gn={}));(function(n){n.registry=pn.create({type:"node",process(e,t){if(Dc.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=Og(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}}),Dc.setNodeRegistry(n.registry)})(gn||(gn={}));(function(n){let e=0;function t(s){return s?h0(s):(e+=1,`CustomNode${e}`)}function r(s){const{constructorName:i,overwrite:l}=s,a=Og(s,["constructorName","overwrite"]),c=d0(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})(gn||(gn={}));var Mg=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(Mt.isCell(r))f.source={cell:r.id};else if(h(r))f.source={cell:r};else if(q.isPoint(r))f.source=r.toJSON();else if(Array.isArray(r))f.source={x:r[0],y:r[1]};else{const p=r.cell;Mt.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=q.create(i).toJSON());if(l!=null)if(Mt.isCell(l))f.target={cell:l.id};else if(h(l))f.target={cell:l};else if(q.isPoint(l))f.target=l.toJSON();else if(Array.isArray(l))f.target={x:l[0],y:l[1]};else{const p=l.cell;Mt.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=q.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(Mt.isCell(t))return this.store.set(e,on({},r,{cell:t.id}),o),this;const s=t;return q.isPoint(t)||s.x!=null&&s.y!=null?(this.store.set(e,on({},r,{x:s.x,y:s.y}),o),this):(this.store.set(e,nn(t),o),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const t=this[e];if(q.isPointLike(t))return q.create(t);const r=this.getTerminalCell(e);return r?r.getConnectionPoint(this,e):new q}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 nn(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||Cr(s,i))?null:s):t?[...t]:[],o=e&&t?e.filter(s=>t.find(i=>s===i||Cr(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=>q.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,q.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=>q.equals(s,i))?null:s):t?[...t]:[],o=e&&t?e.filter(s=>t.find(i=>q.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")||Kt.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=>q.create(s).scale(e,t,r).toJSON(),o)}applyToPoints(e,t={}){const r={},o=this.getSource(),s=this.getTarget();q.isPointLike(o)&&(r.source=e(o)),q.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=>q.create(t)),this.getTargetPoint()];return new dn(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=Mt.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))}};an.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})(an||(an={}));(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})(an||(an={}));(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})(an||(an={}));(function(n){n.registry=pn.create({type:"edge",process(e,t){if(Dc.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=Mg(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}}),Dc.setEdgeRegistry(n.registry)})(an||(an={}));(function(n){let e=0;function t(s){return s?h0(s):(e+=1,`CustomEdge${e}`)}function r(s){const{constructorName:i,overwrite:l}=s,a=Mg(s,["constructorName","overwrite"]),c=d0(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})(an||(an={}));(function(n){const e="basic.edge";n.config({shape:e,propHooks(t){const{label:r,vertices:o}=t,s=Mg(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=>q.create(i).toJSON())),s}}),n.registry.register(e,n)})(an||(an={}));var nue=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 vb extends Fr{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=w6(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([])}}nue([vb.dispose()],vb.prototype,"dispose",null);var rue=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 Io extends Fr{get[Symbol.toStringTag](){return Io.toStringTag}constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new vb(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=Mt.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=Mt.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=gn.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 gn.create(e)}addEdge(e,t={}){const r=an.isEdge(e)?e:this.createEdge(e);return this.addCell(r,t),r}createEdge(e){return an.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))}),Mt.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 Mt.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 Pe(e,t,r,o):Pe.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 Pe(e,t,r,o):Pe.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 Mt.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,ht(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,ht(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=fb.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 Io.toJSON(this.getCells(),e)}parseJSON(e){return Io.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()}}rue([Io.dispose()],Io.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})(Io||(Io={}));(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(gn.registry.exist(i))return gn.create(s);if(an.registry.exist(i))return an.create(s)}throw new Error("The `shape` should be specified when creating a node/edge instance")})}n.fromJSON=t})(Io||(Io={}));var oue=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=sue(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 eu(n,e,t={}){const r={constructorName:n,markup:iue(n,t.selector),attrs:{[n]:Object.assign({},el.bodyAttr)}};return(t.parent||el).define(on(r,e,{shape:n}))}eu("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}});const aue=an.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"}}});eu("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});var cue=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(","):q.isPointLike(r)?`${r.x}, ${r.y}`:"").join(" ")}n.pointsToString=e,n.config({propHooks(t){const{points:r}=t,o=cue(t,["points"]);if(r){const s=e(r);s&&Xc(o,"attrs/body/refPoints",s)}return o}})})(Vc||(Vc={}));eu("polygon",{},{parent:Vc});eu("polyline",{},{parent:Vc});var uue=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 Pe(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=>{Ec(e.portElement)})}renderPorts(){const e=this.container,t=[];e.childNodes.forEach(i=>{t.push(i)});const r=this.cell.getParsedPorts(),o=pC(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?w0(r[Math.max(t,0)],o):df(this.container,o)}getPortElement(e){const t=this.portsCache[e.id];return t?t.portElement:this.createPortElement(e)}createPortElement(e){let t=Kt.renderMarkup(this.cell.getPortContainerMarkup());const r=t.elem;if(r==null)throw new Error("Invalid port container markup.");t=Kt.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}`),Pt(r,i),Pt(r,"x6-port"),Pt(o,"x6-port-body"),r.appendChild(o);let l=s,a,c;if(this.existPortLabel(e)){if(t=Kt.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)}Pt(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=Pe.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"?ht(i,o,{view:this,node:this.cell}).filter(f=>Mt.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=pC(l,"zIndex"),h=f6(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&&ht(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?ht(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=ht(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"?ht(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=q.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=Bt.snapToGrid(t+a.x,i),d=Bt.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})(Br||(Br={}));Br.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"]}});Br.registry.register("node",Br,!0);var fue=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"&&Of(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=ut.createVectors(e),r=document.createDocumentFragment();for(let o=0,s=t.length;o1||o[0].nodeName.toUpperCase()!=="G"?r=ut.create("g").append(t):r=ut.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 q.create(this.sourceAnchor);case"target":return q.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return q.create(this.sourcePoint);case"target":return q.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 dn(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=q.create(t):d?p=h:p=q.create(c),s=this.getAnchor(a.anchor,u,f,p,e)}else s=q.create(a);if(d){const p=q.create(o||s);i=this.getAnchor(c.anchor,d,h,p,r)}else i=q.isPointLike(c)?q.create(c):new q;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=Rc.registry.get(u);if(typeof d!="function")return Rc.registry.onNotFound(u);c=ht(d,this,t,r,o,a.args||{},s)}else{const d=Lc.registry.get(u);if(typeof d!="function")return Lc.registry.onNotFound(u);c=ht(d,this,t,r,o,a.args||{},s)}return c?c.round(this.POINT_ROUNDING):new q}findRoutePoints(e=[]){const t=this.graph.options.connecting.router||Di.presets.normal,r=this.cell.getRouter()||t;let o;if(typeof r=="function")o=ht(r,this,e,{},this);else{const s=typeof r=="string"?r:r.name,i=typeof r=="string"?{}:r.args||{},l=s?Di.registry.get(s):Di.presets.normal;if(typeof l!="function")return Di.registry.onNotFound(s);o=ht(l,this,e,i,this)}return o==null?e.map(s=>q.create(s)):o.map(s=>q.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 He(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 He(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=$c.registry.get(l);if(typeof c!="function")return $c.registry.onNotFound(l);const u=ht(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=jt.normalize((w+90)%180-90)))}else v=h.start,u&&v.translate(a);return Fn().translate(v.x,v.y).rotate(w)}getVertexIndex(e,t){const o=this.cell.getVertices(),s=this.getClosestPointLength(new q(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 S=s==="source"?l?l.port:null:g?g.getSourcePortId():null,E=s==="target"?l?l.port:null:g?g.getTargetPortId():null;return ht(y,this.graph,{edge:g,edgeView:i,sourceView:e,targetView:r,sourcePort:S,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&&Ws.isEdgeView(m)&&(w=!1):w=b(d)),w&&u!=null&&v==null&&(typeof u=="boolean"?!u&&Br.isNodeView(m)&&(w=!1):w=b(u)),w&&h!=null&&i){const y=i.cell,S=s==="source"?l:y.getSource(),E=s==="target"?l:y.getTarget(),T=l?this.graph.getCellById(l.cell):null;if(S&&E&&S.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(A=>{const k=A.getSource(),L=A.getTarget();return k&&L&&k.cell===S.cell&&L.cell===E.cell&&k.port!=null&&k.port===S.port&&L.port!=null&&L.port===E.port})&&(w=!1):h||M.some(A=>{const k=A.getSource(),L=A.getTarget();return k&&L&&k.cell===S.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 ht(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?ht(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(S=>S!==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 q(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 S=y.getClosestPoint(p);S?f=S.distance(p):f=Number.MAX_SAFE_INTEGER}f{if(S.getAttribute("magnet")!=="false"){const E=y.getBBoxOfElement(S);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=on({},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})(Ws||(Ws={}));Ws.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"]}});Ws.registry.register("edge",Ws,!0);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 ms extends Qt{get disposeContainer(){return!1}get options(){return this.graph.options}constructor(e){super(),this.graph=e;const{selectors:t,fragment:r}=Kt.parseJSONMarkup(ms.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=ms.snapshoot(this.container),Pt(this.container,this.prefixClassName("graph")),df(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&&Mt.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=ht(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 ls(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);ht(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=()=>{}}}hue([Qt.dispose()],ms.prototype,"dispose",null);(function(n){const e=`${Fo.prefixCls}-graph`;n.markup=[{ns:Pn.xhtml,tagName:"div",selector:"background",className:`${e}-background`},{ns:Pn.xhtml,tagName:"div",selector:"grid",className:`${e}-grid`},{ns:Pn.svg,tagName:"svg",selector:"svg",className:`${e}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":Pn.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(uf(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})(ms||(ms={}));(function(n){const e=Fo.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"}})(ms||(ms={}));const pue=`.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 Bn extends Hs{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 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 bb extends Bn{init(){Sie("core",pue)}dispose(){Eie("core")}}gue([bb.dispose()],bb.prototype,"dispose",null);var mue=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})(Id||(Id={}));(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:Fo.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:Fo.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}})(Id||(Id={}));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,ut.create("pattern",{id:u,patternUnits:"userSpaceOnUse"},ut.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),Ht(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 $i),this.instance}resolveGrid(e){if(!e)return[];const t=e.type;if(t==null)return[Object.assign(Object.assign({},$i.presets.dot),e.args)];const r=$i.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 $i.registry.onNotFound(t)}dispose(){this.stopListening(),this.clear()}}vue([Bn.dispose()],T0.prototype,"dispose",null);class JP extends Bn{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),Fn(this.viewportMatrix)}setMatrix(e){const t=Fn(e),r=Zc(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 gC(e)||(e=this.container.clientWidth),gC(t)||(t=this.container.clientHeight),{width:e,height:t}}getScale(){return pie(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 eo(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 gie(this.getMatrix())}rotate(e,t,r){if(t==null||r==null){const s=Dt.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 mie(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=da(r),i=o.border||0,l=o.contentArea?Pe.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 Pe(-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=q.create(v)}else r=this.getContentBBox(e),o=this.graph.graphToLocal(r);if(!r.width||!r.height)return;const s=da(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=Pe.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=eo(p,a,c),g=eo(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 Pe:Dt.getBBox(this.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=Pe.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,t={}){const r=Pe.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=No(t,Math.max(0,o.width)),t<0&&(t=o.width+t),r=No(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=Pe.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 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 O0 extends Bn{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=Pe.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=Md.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=cd(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=cd(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()}}yue([Bn.dispose()],O0.prototype,"dispose",null);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 M0 extends Bn{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),jn.on(this.graph.container,"mousedown",this.onRightMouseDown),jn.on(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle=new eP(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),jn.off(this.graph.container,"mousedown",this.onRightMouseDown),jn.off(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle&&this.mousewheelHandle.disable()}allowPanning(e,t){return e.spaceKey=this.isSpaceKeyPressed,this.pannable&&Tc.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(),jn.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)}),jn.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(),jn.off(document.body,".panning"),jn.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?(Pt(e,t),no(e,r)):(no(e,t),Pt(e,r)):(no(e,t),no(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()}}wue([Bn.dispose()],M0.prototype,"dispose",null);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};class A0 extends Bn{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 eP(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))&&Tc.isMatch(e,this.widgetOptions.modifiers)}onMouseWheel(e){const t=this.widgetOptions.guard;if((t==null||t(e))&&Tc.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=eo(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()}}Cue([Hs.dispose()],A0.prototype,"dispose",null);var xue=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 XP extends Bn{init(){this.resetRenderArea=sh(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()}}xue([Bn.dispose()],XP.prototype,"dispose",null);class Sue{constructor(){this.isFlushing=!1,this.isFlushPending=!1,this.scheduleId=0,this.queue=[],this.frameInterval=33,this.initialTime=Date.now()}queueJob(e){if(e.priority&Ns.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 Ns;(function(n){n[n.Update=2]="Update",n[n.RenderEdge=4]="RenderEdge",n[n.RenderNode=8]="RenderNode",n[n.PRIOR=1048576]="PRIOR"})(Ns||(Ns={}));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 Sn extends Hs{get model(){return this.graph.model}get container(){return this.graph.view.stage}constructor(e){super(),this.views={},this.willRemoveViews={},this.queue=new Sue,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,Sn.FLAG_INSERT,t,Ns.Update,!0)}onCellVisibleChanged({cell:e,current:t}){this.toggleVisible(e,!!t)}requestViewUpdate(e,t,r={},o=Ns.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=Ns.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===Sn.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=Sn.FLAG_INSERT;else{const a=this.createCellView(r);a&&(a.graph=this.graph,i=Sn.FLAG_INSERT|a.getBootstrapFlag(),l={view:a,flag:i,options:t,state:Sn.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===Sn.ViewState.MOUNTED?(l=this.updateView(e,t,r),i.flag=l):i.state=Sn.ViewState.WAITING,l&&o.isEdge()&&!(l&e.getFlag(["source","target"]))&&this.queue.queueJob({id:s,priority:Ns.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===Sn.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(fn.isCellView(e)){if(t&Sn.FLAG_REMOVE)return this.removeView(e.cell),0;t&Sn.FLAG_INSERT&&(this.insertView(e),t^=Sn.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=Sn.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=ht(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=fn.registry.get(o);return s?new s(e,t):fn.registry.onNotFound(o)}return e.isNode()?new Br(e,t):e.isEdge()?new Ws(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={}}}Eue([Hs.dispose()],Sn.prototype,"dispose",null);(function(n){n.FLAG_INSERT=1<<30,n.FLAG_REMOVE=1<<29,n.FLAG_RENDER=(1<<26)-1})(Sn||(Sn={}));(function(n){(function(e){e[e.CREATED=0]="CREATED",e[e.MOUNTED=1]="MOUNTED",e[e.WAITING=2]="WAITING"})(n.ViewState||(n.ViewState={}))})(Sn||(Sn={}));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 k0 extends Bn{constructor(){super(...arguments),this.schedule=new Sn(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=Mt.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?Dt.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=Pe.create(e);return this.model.getCells().map(o=>this.findViewByCell(o)).filter(o=>{if(o){if(t.nodeOnly&&!o.isNodeView())return!1;const s=Dt.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()}}_ue([Bn.dispose()],k0.prototype,"dispose",null);var mE=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);ut.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=mE(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let u=t;if(u||(u=`marker-${this.cid}-${Pm(JSON.stringify(e))}`),!this.isDefined(u)){l!=="path"&&delete c.d;const d=ut.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=mE(f,["tagName"]);return ut.create(`${h}`||"path",Ed(Object.assign(Object.assign({},c),p)))}):[ut.create(l||"path",Ed(c))]);this.defs.appendChild(d.node)}return u}remove(e){const t=this.svg.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}class QP extends Bn{getClientMatrix(){return Fn(this.view.stage.getScreenCTM())}getClientOffset(){const e=this.view.svg.getBoundingClientRect();return new q(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=q.create(e,t);return Dt.transformPoint(r,this.graph.matrix())}localToClientPoint(e,t){const r=q.create(e,t);return Dt.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=Pe.create(e,t,r,o);return Dt.transformRectangle(s,this.graph.matrix())}localToClientRect(e,t,r,o){const s=Pe.create(e,t,r,o);return Dt.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=q.create(e,t);return Dt.transformPoint(r,this.graph.matrix().inverse())}clientToLocalPoint(e,t){const r=q.create(e,t);return Dt.transformPoint(r,this.getClientMatrix().inverse())}clientToGraphPoint(e,t){const r=q.create(e,t);return Dt.transformPoint(r,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,t){const o=q.create(e,t).diff(this.getPageOffset());return this.graphToLocalPoint(o)}graphToLocalRect(e,t,r,o){const s=Pe.create(e,t,r,o);return Dt.transformRectangle(s,this.graph.matrix().inverse())}clientToLocalRect(e,t,r,o){const s=Pe.create(e,t,r,o);return Dt.transformRectangle(s,this.getClientMatrix().inverse())}clientToGraphRect(e,t,r,o){const s=Pe.create(e,t,r,o);return Dt.transformRectangle(s,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,t,r,o){const s=Pe.create(e,t,r,o),i=this.getPageOffset();return s.x-=i.x,s.y-=i.y,this.graphToLocalRect(s)}}var Tue=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 mp extends Bn{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=Bs.registry.get(s);return i==null?Bs.registry.onNotFound(s):(Bs.check(s,i),{name:s,highlighter:i,args:o.args||{}})}getHighlighterId(e,t){return v0(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()}}Tue([mp.dispose()],mp.prototype,"dispose",null);var Oue=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 Bn{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&&ap.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(){ap.clear(this.graph.container)}}Oue([Bn.dispose()],eN.prototype,"dispose",null);var Mue=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 sr extends Fr{get container(){return this.options.container}get[Symbol.toStringTag](){return sr.toStringTag}constructor(e){super(),this.installedPlugins=new Set,this.options=Id.get(e),this.css=new bb(this),this.view=new ms(this),this.defs=new ZP(this),this.coord=new QP(this),this.transform=new JP(this),this.highlight=new mp(this),this.grid=new T0(this),this.background=new O0(this),this.options.model?this.model=this.options.model:(this.model=new Io,this.model.graph=this),this.renderer=new k0(this),this.panning=new M0(this),this.mousewheel=new A0(this),this.virtualRender=new XP(this),this.size=new eN(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=>gn.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=>an.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 Mt.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return Pe.isRectangleLike(e)?this.findViewsInArea(e):q.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 Pe.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 Pe.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 Pe.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 Pe.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 Pe.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 Pe.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 Pe.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()})}}Mue([Fr.dispose()],sr.prototype,"dispose",null);(function(n){n.View=ms,n.Renderer=k0,n.MouseWheel=A0,n.DefsManager=ZP,n.GridManager=T0,n.CoordManager=QP,n.TransformManager=JP,n.HighlightManager=mp,n.BackgroundManager=O0,n.PanningManager=M0})(sr||(sr={}));(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})(sr||(sr={}));(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})(sr||(sr={}));(function(n){n.registerNode=gn.registry.register,n.registerEdge=an.registry.register,n.registerView=fn.registry.register,n.registerAttr=gs.registry.register,n.registerGrid=$i.registry.register,n.registerFilter=Ac.registry.register,n.registerNodeTool=Nc.registry.register,n.registerEdgeTool=Ic.registry.register,n.registerBackground=Md.registry.register,n.registerHighlighter=Bs.registry.register,n.registerPortLayout=Ql.registry.register,n.registerPortLabelLayout=kc.registry.register,n.registerMarker=Zi.registry.register,n.registerRouter=Di.registry.register,n.registerConnector=ea.registry.register,n.registerAnchor=Lc.registry.register,n.registerEdgeAnchor=Rc.registry.register,n.registerConnectionPoint=$c.registry.register})(sr||(sr={}));(function(n){n.unregisterNode=gn.registry.unregister,n.unregisterEdge=an.registry.unregister,n.unregisterView=fn.registry.unregister,n.unregisterAttr=gs.registry.unregister,n.unregisterGrid=$i.registry.unregister,n.unregisterFilter=Ac.registry.unregister,n.unregisterNodeTool=Nc.registry.unregister,n.unregisterEdgeTool=Ic.registry.unregister,n.unregisterBackground=Md.registry.unregister,n.unregisterHighlighter=Bs.registry.unregister,n.unregisterPortLayout=Ql.registry.unregister,n.unregisterPortLabelLayout=kc.registry.unregister,n.unregisterMarker=Zi.registry.unregister,n.unregisterRouter=Di.registry.unregister,n.unregisterConnector=ea.registry.unregister,n.unregisterAnchor=Lc.registry.unregister,n.unregisterEdgeAnchor=Rc.registry.unregister,n.unregisterConnectionPoint=$c.registry.unregister})(sr||(sr={}));var Aue=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},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);othis.renderHTMLComponent())}renderHTMLComponent(){const r=this.selectors&&this.selectors.foContent;if(r){uf(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:df(r,s))}}dispose(){this.cell.off("change:*",this.onCellChangeAny,this)}}Aue([e.dispose()],e.prototype,"dispose",null),n.View=e,function(t){t.action="html",t.config({bootstrap:[t.action],actions:{html:t.action}}),Br.registry.register("html-view",t,!0)}(e=n.View||(n.View={}))})(Fc||(Fc={}));(function(n){n.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},Kt.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),gn.registry.register("html",n,!0)})(Fc||(Fc={}));(function(n){n.shapeMaps={};function e(t){const{shape:r,html:o,effect:s,inherit:i}=t,l=kue(t,["shape","html","effect","inherit"]);if(!r)throw new Error("should specify shape in config");n.shapeMaps[r]={html:o,effect:s},sr.registerNode(r,Object.assign({inherit:i||"html"},l),!0)}n.register=e})(Fc||(Fc={}));class vE extends gn{}(function(n){function e(t){const r=[],o=Kt.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=on({},{body:Object.assign({refWidth:null,refHeight:null},o)},t.attrs||{})}}return t}}),gn.registry.register("vue-shape",n,!0)})(vE||(vE={}));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);oYe(Bc,{to:t},[Ye(e,{node:r,graph:o})]),provide:()=>({getNode:()=>r,getGraph:()=>o})})))}function Iue(n){Ag&&delete vp[n]}function bE(){return Ag}function Lue(){return Ag=!0,me({setup(){return()=>Ye(Le,{},Object.keys(vp).map(n=>Ye(vp[n])))}})}class bp extends Br{getComponentContainer(){return this.selectors&&this.selectors.foContent}confirmUpdate(e){const t=super.confirmUpdate(e);return this.handleAction(t,bp.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}=tN[t.shape];o&&(bE()?Nue(this.targetId(),o,e,t,r):(this.vm=Ub({render(){return Ye(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 bE()&&Iue(this.targetId()),this.unmountVueComponent(),super.unmount(),this}}(function(n){n.action="vue",n.config({bootstrap:[n.action],actions:{component:n.action}}),Br.registry.register("vue-shape-view",n,!0)})(bp||(bp={}));const Rue={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},$ue=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),Due=[$ue];function Vue(n,e){return P(),G("svg",Rue,[...Due])}const Fue={name:"ep-delete",render:Vue},Bue={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},zue=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),jue=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),Hue=[zue,jue];function Uue(n,e){return P(),G("svg",Bue,[...Hue])}const Wue={name:"ep-edit",render:Uue},Gue={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},que=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),Kue=[que];function Yue(n,e){return P(),G("svg",Gue,[...Kue])}const Jue={name:"ep-finished",render:Yue},Xue={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Zue=F("path",{fill:"currentColor",d:"m64 448l832-320l-128 704l-446.08-243.328L832 192L242.816 545.472zm256 512V657.024L512 768z"},null,-1),Que=[Zue];function ede(n,e){return P(),G("svg",Xue,[...Que])}const tde={name:"ep-promotion",render:ede},nde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},rde=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),ode=[rde];function sde(n,e){return P(),G("svg",nde,[...ode])}const yE={name:"ep-d-arrow-right",render:sde},ide={class:"text-large font-600 mr-3"},lde={class:"flex items-center"},ade=["id","onClick"],cde=["onClick"],ude={class:"nodesBox"},dde=["onDragend"],fde={class:"dialog-footer"},hde={style:{flex:"auto"}},pde={__name:"SubFlow",setup(n){const{t:e,tm:t,rt:r}=cn(),o=Ks(),s=go(),i=o.params.robotId,l=Lue(),a=z([]),c=z([]);function u(){const Se=new Array;for(let $=0;$-1;rt(async()=>{const Se=document.getElementById("canvas");h=new sr({container:Se,width:Se.offsetWidth-10,height:Se.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:N,x:te,y:pe,node:ge,view:ae})=>{ge.setTools([{name:"button-remove",args:{x:0,y:0}}])}),h.on("node:mouseleave",({e:N,x:te,y:pe,node:ge,view:ae})=>{ge.hasTool("button-remove")&&ge.removeTool("button-remove")}),h.on("node:dblclick",({e:N,x:te,y:pe,node:ge,view:ae})=>{ge.setData({currentTime:Date.now()}),p=!0}),h.on("edge:click",({e:N,x:te,y:pe,edge:ge,view:ae})=>{ge.setTools(["button-remove"])});const $=await et("GET","subflow",{robotId:i,mainFlowId:g,data:""},null,null);S(v?{status:200,data:$}:$),nt(()=>{A(0)})}),vs(()=>{h!=null&&h.dispose()});function w(Se,$,N){const te=h.addNode({shape:N.type,x:Se,y:$});N.cnt++,te.setData({nodeType:N.type,nodeCnt:N.cnt}),p=!0}function b(Se,$){const N=h.pageToLocal(Se.pageX,Se.pageY);w(N.x,N.y,$)}function y(Se){Se.preventDefault()}function S(Se){Se&&Se.status==200&&Se.data&&(a.value=Se.data)}const E=z(!1),T=z("");async function M(){await L();const Se=await et("POST","subflow/new",{robotId:i,mainFlowId:g,data:T.value},null,null);if(Se.status==200){const $=a.value.length;S(Se),nt(()=>{A($),T.value=""})}}function O(Se){a.value.length<2?Xt.error(e("lang.flow.needOne")):Dr.confirm(e("lang.flow.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{(await et("DELETE","subflow",{robotId:i,mainFlowId:g,data:f},null,null)).status==200&&(f=-1,a.value.splice(Se,1),A(0)),Xt({type:"success",message:e("lang.common.deleted")})}).catch(()=>{})}async function A(Se){Se!=f&&(p?Dr.confirm(e("lang.flow.changeSaveTip"),"Warning",{confirmButtonText:e("lang.common.save"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{await L(),k(Se),p=!1}).catch(()=>{}):k(Se))}function k(Se){const $=document.getElementById(j(f));$&&($.style.backgroundColor="white",$.style.color="black"),f=Se;const N=document.getElementById(j(f));if(N.style.backgroundColor="rgb(245,246,249)",N.style.color="rgb(131,88,179)",a.value[f].canvas){const pe=JSON.parse(a.value[f].canvas).cells;h.fromJSON(pe)}else h.clearCells()}async function L(){R.value=!0,U.value=!0;const Se=h.toJSON();Se.cells.forEach(function(ae,Ee,D){ae.shape!="edge"&&(ae.data.nodeId=ae.id)},d);const N=a.value[f],te=[];for(let ae=0;ae0&&!se.value)return;se.value&&W(se.value,"userText"),be||(be=ye());const Se={robotId:i,mainFlowId:g,sessionId:be,userInputResult:ue.value.length==0||se.value?"Successful":"Timeout",userInput:se.value,importVariables:[]},$=await et("POST","flow/answer",null,null,Se);if($.status==200){const N=$.data,te=N.answers;for(let pe=0;pe{K.value.setScrollTop(fe.value.clientHeight)})}else Ff({title:e("lang.common.errTip"),message:Ye("b",{style:"color: teal"},$.err.message),type:"error"});ve.value.focus()}async function re(){ue.value.splice(0,ue.value.length),se.value="",be="",Y.value=!1,await ce()}const ve=z(),ke=async()=>{H.value=!0,await ce()};return(Se,$)=>{const N=dt,te=jy,pe=An,ge=ws,ae=OW,Ee=TW,D=zr,V=MW,J=_W,le=Cn,Oe=lr,oe=ir,Q=ul,de=eg,Ue=Iy,Ke=Qs,Ae=oY;return P(),G("div",null,[x(J,null,{default:_(()=>[x(ae,{height:"40px"},{default:_(()=>[x(ge,{title:C(e)("lang.common.back"),onBack:ne},{content:_(()=>[F("span",ide,ie(C(m)),1)]),extra:_(()=>[F("div",lde,[Fe(x(te,null,{default:_(()=>[ee(ie(Se.$tm("lang.flow.steps")[0])+" ",1),x(N,{size:20},{default:_(()=>[x(C(yE))]),_:1})]),_:1},512),[[Qe,v]]),Fe(x(pe,{type:"primary",class:"ml-2",onClick:L,loading:U.value,size:"large"},{default:_(()=>[x(N,{size:20},{default:_(()=>[x(C(Wue))]),_:1}),ee(ie(Se.$t("lang.flow.save")),1)]),_:1},8,["loading"]),[[Qe,!v]]),x(pe,{type:"success",onClick:I,loading:Z.value,size:"large"},{default:_(()=>[x(N,{size:20},{default:_(()=>[x(C(Jue))]),_:1}),ee(ie(Se.$t("lang.flow.pub")),1)]),_:1},8,["loading"]),Fe(x(te,null,{default:_(()=>[ee(ie(Se.$tm("lang.flow.steps")[1])+" ",1),x(N,null,{default:_(()=>[x(C(yE))]),_:1})]),_:1},512),[[Qe,v]]),x(pe,{color:"#626aef",class:"ml-2",onClick:ke,size:"large"},{default:_(()=>[x(N,{size:20},{default:_(()=>[x(C(tde))]),_:1}),ee(" "+ie(Se.$t("lang.flow.test")),1)]),_:1})])]),_:1},8,["title"])]),_:1}),x(J,null,{default:_(()=>[x(Ee,{width:"150px"},{default:_(()=>[F("div",{class:"newSubFlowBtn",onClick:$[0]||($[0]=Me=>E.value=!0)},[x(N,{size:"16px"},{default:_(()=>[x(C(Fu))]),_:1}),ee(" "+ie(Se.$t("lang.flow.addSubFlow")),1)]),(P(!0),G(Le,null,Tt(a.value,(Me,Je)=>(P(),G("div",{id:j(Je),key:Me.label,onClick:it=>A(Je),class:"subFlowBtn"},[ee(ie(Me.name)+" ",1),F("span",{onClick:it=>O(Je)},[x(N,null,{default:_(()=>[x(C(Fue))]),_:1})],8,cde)],8,ade))),128))]),_:1}),Fe((P(),we(V,null,{default:_(()=>[F("div",ude,[(P(),G(Le,null,Tt(d,Me=>F("div",{key:Me.type,class:X(["node-btn",Me.type]),draggable:"true",onDragend:Je=>b(Je,Me)},[x(D,{class:"box-item",effect:"dark",content:Me.desc,placement:"right-start"},{default:_(()=>[F("span",null,ie(Me.name),1)]),_:2},1032,["content"])],42,dde)),64))]),F("div",{id:"canvas",onDragover:y,style:{border:"1px #000 solid"}},null,32),x(C(l))]),_:1})),[[Ae,R.value]])]),_:1})]),_:1}),x(Q,{modelValue:E.value,"onUpdate:modelValue":$[4]||($[4]=Me=>E.value=Me),title:Se.$t("lang.flow.addSubFlow")},{footer:_(()=>[F("span",fde,[x(pe,{type:"primary",onClick:$[2]||($[2]=Me=>{E.value=!1,M()})},{default:_(()=>[ee(ie(Se.$t("lang.common.add")),1)]),_:1}),x(pe,{onClick:$[3]||($[3]=Me=>E.value=!1)},{default:_(()=>[ee(ie(Se.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[x(oe,{model:Se.form},{default:_(()=>[x(Oe,{label:C(e)("lang.flow.form.name"),"label-width":"110px"},{default:_(()=>[x(le,{modelValue:T.value,"onUpdate:modelValue":$[1]||($[1]=Me=>T.value=Me),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),x(Ke,{modelValue:H.value,"onUpdate:modelValue":$[7]||($[7]=Me=>H.value=Me),direction:"rtl"},{header:_(()=>[F("b",null,ie(Se.$t("lang.flow.test")),1)]),default:_(()=>[x(de,{ref_key:"chatScrollbarRef",ref:K,height:"100%",always:""},{default:_(()=>[F("div",{ref_key:"dryrunChatRecords",ref:fe},[(P(!0),G(Le,null,Tt(ue.value,Me=>(P(),G("div",{key:Me.id,class:X(Me.cssClass)},[x(te,null,{default:_(()=>[ee(ie(Me.text),1)]),_:2},1024)],2))),128))],512)]),_:1},512)]),footer:_(()=>[F("div",hde,[x(le,{ref_key:"dryrunInput",ref:ve,disabled:Y.value,modelValue:se.value,"onUpdate:modelValue":$[5]||($[5]=Me=>se.value=Me),placeholder:"",style:{width:"200px"},onKeypress:$[6]||($[6]=Me=>{Me.keyCode==13&&ce()})},null,8,["disabled","modelValue"]),x(Ue,null,{default:_(()=>[x(pe,{type:"primary",disabled:Y.value,onClick:ce},{default:_(()=>[ee(ie(Se.$t("lang.flow.send")),1)]),_:1},8,["disabled"]),x(pe,{onClick:re},{default:_(()=>[ee(ie(Se.$t("lang.flow.reset")),1)]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}},wE=Ho(pde,[["__scopeId","data-v-3d106c8d"]]),gde={class:"text-large font-600 mr-3"},mde={class:"flex items-center"},vde={class:"dialog-footer"},bde="70px",yde={__name:"IntentList",setup(n){const{t:e,tm:t,rt:r}=cn(),o=Ks(),s=go(),i=z([]),l=z(!1),a=z(""),c=o.params.robotId;rt(async()=>{await d()});const u=()=>{s.push({name:"robotDetail",params:{robotId:c}})};async function d(){const w=await et("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 et("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){Dr.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()},S=await et("DELETE","intent",null,null,y);S.status==200?(await d(),Xt({type:"success",message:S("lang.common.deleted")})):Xt({type:"error",message:S.err.message})}).catch(()=>{})}const g=z(""),m=z("");async function v(){const w={robotId:c,id:"",data:g.value},b=await et("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=An,S=ws,E=nf,T=tf,M=$y,O=Cn,A=lr,k=ir,L=ul;return P(),G(Le,null,[x(S,{title:C(e)("lang.common.back"),onBack:u},{content:_(()=>[F("span",gde,ie(w.$t("lang.intent.title")),1)]),extra:_(()=>[F("div",mde,[x(y,{type:"primary",class:"ml-2",onClick:b[0]||(b[0]=j=>l.value=!0)},{default:_(()=>[ee(ie(w.$t("lang.intent.add")),1)]),_:1})])]),_:1},8,["title"]),x(T,{data:i.value,stripe:"",style:{width:"100%"}},{default:_(()=>[x(E,{prop:"name",label:C(t)("lang.intent.table")[0],width:"180"},null,8,["label"]),x(E,{prop:"keyword_num",label:C(t)("lang.intent.table")[1],width:"180"},null,8,["label"]),x(E,{prop:"regex_num",label:C(t)("lang.intent.table")[2],width:"180"},null,8,["label"]),x(E,{prop:"phrase_num",label:C(t)("lang.intent.table")[3],width:"230"},null,8,["label"]),x(E,{fixed:"right",label:C(t)("lang.intent.table")[4],width:"120"},{default:_(j=>[x(y,{link:"",type:"primary",size:"small",onClick:ne=>h(j.$index,j.row)},{default:_(()=>[ee(ie(w.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),x(y,{link:"",type:"primary",size:"small",onClick:ne=>p(j.$index,j.row)},{default:_(()=>[ee(ie(w.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),x(M),x(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"]),x(y,{type:"primary",onClick:v},{default:_(()=>[ee("Test intent detection")]),_:1}),F("div",null,ie(m.value),1),x(L,{modelValue:l.value,"onUpdate:modelValue":b[5]||(b[5]=j=>l.value=j),title:C(e)("lang.intent.form.title")},{footer:_(()=>[F("span",vde,[x(y,{type:"primary",onClick:b[3]||(b[3]=j=>{l.value=!1,f()})},{default:_(()=>[ee(ie(w.$t("lang.common.add")),1)]),_:1}),x(y,{onClick:b[4]||(b[4]=j=>l.value=!1)},{default:_(()=>[ee(ie(w.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[x(k,{model:w.form},{default:_(()=>[x(A,{label:C(e)("lang.intent.form.name"),"label-width":bde},{default:_(()=>[x(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)}}},wde={class:"text-large font-600 mr-3"},Cde={__name:"IntentDetail",setup(n){const{t:e,tm:t,rt:r}=cn(),o=Ks(),s=go(),i=o.query.robotId,l=Ct({keywords:[],regexes:[],phrases:[]}),a={robotId:"",id:"",data:""};rt(async()=>{a.robotId=i,a.id=o.query.id;let j=await et("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((ne,I,R)=>ne.phrase)),j=await et("GET","management/settings/model/check",{robotId:i},null,null),E.value=j==null||j.status==null||j.status!=200});const c=z(""),u=z(!1),d=z(),f=()=>{u.value=!0,nt(()=>{d.value.focus()})};async function h(){c.value&&(a.id=o.query.id,a.data=c.value,(await et("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(j){Dr.confirm(j+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const ne=l.keywords.indexOf(j);a.id=o.query.id,a.data=ne.toString(),(await et("DELETE","intent/keyword",null,null,a)).status==200&&(l.keywords.splice(ne,1),Xt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const g=z(""),m=z(!1),v=z(),w=()=>{m.value=!0,nt(()=>{v.value.focus()})};async function b(){g.value&&(a.id=o.query.id,a.data=g.value,(await et("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(j){Dr.confirm(j+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const ne=l.regexes.indexOf(j);a.id=o.query.id,a.data=ne.toString(),(await et("DELETE","intent/regex",null,null,a)).status==200&&(l.regexes.splice(ne,1),Xt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const S=z(""),E=z(!0),T=z(!1),M=z(),O=()=>{T.value=!0,nt(()=>{M.value.focus()})};async function A(){S.value&&(a.id=o.query.id,a.data=S.value,(await et("POST","intent/phrase",{robotId:i,id:a.id,data:o.query.idx},null,a)).status==200&&l.phrases.push(S.value)),T.value=!1,S.value=""}async function k(j){Dr.confirm(j+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const ne=l.phrases.indexOf(j);a.id=o.query.id,a.data=ne.toString(),(await et("DELETE","intent/phrase",null,null,a)).status==200&&(l.phrases.splice(ne,1),Xt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const L=()=>{s.push({name:"intents",params:{robotId:i}})};return(j,ne)=>{const I=ws,R=oM,U=Cn,Z=An,Y=ot("router-link");return P(),G(Le,null,[x(I,{title:C(e)("lang.common.back"),onBack:L},{content:_(()=>[F("span",wde,ie(j.$t("lang.intent.detail.edit"))+": "+ie(C(o).query.name),1)]),_:1},8,["title"]),F("h3",null,ie(j.$t("lang.intent.detail.kw")),1),(P(!0),G(Le,null,Tt(l.keywords,K=>(P(),we(R,{type:"info",key:K,class:"mx-1",closable:"","disable-transitions":!1,onClose:fe=>p(K)},{default:_(()=>[ee(ie(K),1)]),_:2},1032,["onClose"]))),128)),u.value?(P(),we(U,{key:0,ref_key:"keywordInputRef",ref:d,modelValue:c.value,"onUpdate:modelValue":ne[0]||(ne[0]=K=>c.value=K),class:"ml-1 w-20",size:"small",onKeyup:tr(h,["enter"]),onBlur:h},null,8,["modelValue"])):(P(),we(Z,{key:1,class:"button-new-tag ml-1",size:"small",onClick:f},{default:_(()=>[ee(" + "+ie(j.$t("lang.intent.detail.addKw")),1)]),_:1})),F("h3",null,ie(j.$t("lang.intent.detail.re")),1),(P(!0),G(Le,null,Tt(l.regexes,K=>(P(),we(R,{type:"info",key:K,class:"mx-1",closable:"","disable-transitions":!1,onClose:fe=>y(K)},{default:_(()=>[ee(ie(K),1)]),_:2},1032,["onClose"]))),128)),m.value?(P(),we(U,{key:2,ref_key:"regexInputRef",ref:v,modelValue:g.value,"onUpdate:modelValue":ne[1]||(ne[1]=K=>g.value=K),class:"ml-1 w-20",size:"small",onKeyup:tr(b,["enter"]),onBlur:b},null,8,["modelValue"])):(P(),we(Z,{key:3,class:"button-new-tag ml-1",size:"small",onClick:w},{default:_(()=>[ee(" + "+ie(j.$t("lang.intent.detail.addRe")),1)]),_:1})),F("h3",null,ie(j.$t("lang.intent.detail.sp")),1),(P(!0),G(Le,null,Tt(l.phrases,K=>(P(),we(R,{type:"info",key:K,class:"mx-1",closable:"","disable-transitions":!1,onClose:fe=>k(K)},{default:_(()=>[ee(ie(K),1)]),_:2},1032,["onClose"]))),128)),T.value?(P(),we(U,{key:4,ref_key:"phraseInputRef",ref:M,modelValue:S.value,"onUpdate:modelValue":ne[2]||(ne[2]=K=>S.value=K),class:"ml-1 w-20",size:"small",onKeyup:tr(A,["enter"]),onBlur:A},null,8,["modelValue"])):(P(),we(Z,{key:5,class:"button-new-tag ml-1",size:"small",onClick:O,disabled:E.value},{default:_(()=>[ee(" + "+ie(j.$t("lang.intent.detail.addSp")),1)]),_:1},8,["disabled"])),Fe(F("div",null,[ee(" This feature was disabled since model files were missing, please goto "),x(Y,{to:"/settings"},{default:_(()=>[ee("settings")]),_:1}),ee(" and select one model first. ")],512),[[Qe,E.value]])],64)}}},xde={class:"text-large font-600 mr-3"},Sde={class:"flex items-center"},Ede=F("br",null,null,-1),_de=["checked"],Tde=F("label",{for:"_cacheEnabled_"},"Enable",-1),Ode={key:0},Mde={key:1},Ade={class:"demo-drawer__footer"},Os="160px",kde={__name:"Variable",setup(n){const{t:e,tm:t,rt:r}=cn(),o=Ks(),s=go(),i=o.params.robotId,l=Ct({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,A,k){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,A,k){this.set(O.value,O.label)},d);const f=[{label:"JSON Pointer",value:"JsonPointer",disabled:!1},{label:"Html Scrape",value:"HtmlScrape",disabled:!1}],h=z(!1),p=z([]),g=z([]);async function m(){const O=await et("GET","variable",{robotId:i},null,null);v(O)}rt(async()=>{const O=await et("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(A,k,L){A.varTypeT=c.get(A.varType),A.varValueSourceT=d.get(A.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,A)=>{rr(A,l),E()},S=async(O,A)=>{Dr.confirm(A.varName+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{rr(A,l),(await et("DELETE","variable",{robotId:i},null,l)).status==200&&(await m(),Xt({type:"success",message:"Delete completed"}))}).catch(()=>{})};function E(){h.value=!0}function T(){h.value=!1}async function M(){const O=await et("POST","variable",{robotId:i},null,l);await m(),T()}return(O,A)=>{const k=An,L=ws,j=nf,ne=tf,I=Cn,R=lr,U=ti,Z=ei,Y=ot("router-link"),K=ir,fe=Qs;return P(),G(Le,null,[x(L,{title:C(e)("lang.common.back"),onBack:w},{content:_(()=>[F("span",xde,ie(O.$t("lang.var.title")),1)]),extra:_(()=>[F("div",Sde,[x(k,{type:"primary",class:"ml-2",onClick:A[0]||(A[0]=H=>b())},{default:_(()=>[ee(ie(O.$t("lang.var.add")),1)]),_:1})])]),_:1},8,["title"]),x(ne,{data:p.value,stripe:"",style:{width:"100%"}},{default:_(()=>[x(j,{prop:"varName",label:C(t)("lang.var.table")[0],width:"300"},null,8,["label"]),x(j,{prop:"varTypeT",label:C(t)("lang.var.table")[1],width:"180"},null,8,["label"]),x(j,{prop:"varValueSourceT",label:C(t)("lang.var.table")[2],width:"200"},null,8,["label"]),x(j,{fixed:"right",label:C(t)("lang.var.table")[3],width:"120"},{default:_(H=>[x(k,{link:"",type:"primary",size:"small",onClick:se=>y(H.$index,H.row)},{default:_(()=>[ee(ie(O.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),x(k,{link:"",type:"primary",size:"small",onClick:se=>S(H.$index,H.row)},{default:_(()=>[ee(ie(O.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),x(fe,{modelValue:h.value,"onUpdate:modelValue":A[11]||(A[11]=H=>h.value=H),title:O.$t("lang.var.form.title"),direction:"rtl",size:"50%"},{default:_(()=>[x(K,{model:O.nodeData},{default:_(()=>[x(R,{label:O.$t("lang.var.form.name"),"label-width":Os},{default:_(()=>[x(I,{modelValue:l.varName,"onUpdate:modelValue":A[1]||(A[1]=H=>l.varName=H),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),x(R,{label:O.$t("lang.var.form.type"),"label-width":Os},{default:_(()=>[x(Z,{modelValue:l.varType,"onUpdate:modelValue":A[2]||(A[2]=H=>l.varType=H),placeholder:O.$t("lang.var.form.choose1")},{default:_(()=>[(P(),G(Le,null,Tt(a,H=>x(U,{key:H.label,label:H.label,value:H.value,disabled:H.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),x(R,{label:O.$t("lang.var.form.source"),"label-width":Os},{default:_(()=>[x(Z,{modelValue:l.varValueSource,"onUpdate:modelValue":A[3]||(A[3]=H=>l.varValueSource=H),placeholder:O.$t("lang.var.form.choose2")},{default:_(()=>[(P(),G(Le,null,Tt(u,H=>x(U,{key:H.label,label:H.label,value:H.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l.varValueSource=="Constant"?(P(),we(R,{key:0,label:"Constant value","label-width":Os},{default:_(()=>[x(I,{modelValue:l.varConstantValue,"onUpdate:modelValue":A[4]||(A[4]=H=>l.varConstantValue=H),autocomplete:"on"},null,8,["modelValue"])]),_:1})):Ce("",!0),l.varValueSource=="ExternalHttp"?(P(),we(R,{key:1,label:"HTTP API","label-width":Os},{default:_(()=>[x(Z,{modelValue:l.varAssociateData,"onUpdate:modelValue":A[5]||(A[5]=H=>l.varAssociateData=H),placeholder:"Choose a HTTP API"},{default:_(()=>[(P(!0),G(Le,null,Tt(g.value,H=>(P(),we(U,{key:H.id,label:H.name,value:H.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Ede,x(Y,{to:{name:"externalHttpApiDetail",params:{robotId:C(i),id:"new"}}},{default:_(()=>[ee("Add new HTTP API")]),_:1},8,["to"])]),_:1})):Ce("",!0),l.varValueSource=="ExternalHttp"?(P(),we(R,{key:2,label:"Value expression type","label-width":Os},{default:_(()=>[x(Z,{modelValue:l.obtainValueExpressionType,"onUpdate:modelValue":A[6]||(A[6]=H=>l.obtainValueExpressionType=H),placeholder:"Value expression type"},{default:_(()=>[(P(),G(Le,null,Tt(f,H=>x(U,{key:H.label,label:H.label,value:H.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})):Ce("",!0),l.varValueSource=="ExternalHttp"?(P(),we(R,{key:3,label:"Obtain value expression","label-width":Os},{default:_(()=>[x(I,{modelValue:l.obtainValueExpression,"onUpdate:modelValue":A[7]||(A[7]=H=>l.obtainValueExpression=H),autocomplete:"on",placeholder:l.obtainValueExpressionType=="JsonPointer"?"/data/book/name":"CSS selector syntax like: h1.foo div#bar"},null,8,["modelValue","placeholder"])]),_:1})):Ce("",!0),l.varValueSource=="ExternalHttp"?(P(),we(R,{key:4,label:"Cache value","label-width":Os},{default:_(()=>[Fe(F("input",{type:"checkbox",id:"_cacheEnabled_","onUpdate:modelValue":A[8]||(A[8]=H=>l.cacheEnabled=H),checked:l.cacheEnabled},null,8,_de),[[Ui,l.cacheEnabled]]),Tde]),_:1})):Ce("",!0),l.varValueSource=="ExternalHttp"?(P(),we(R,{key:5,label:"","label-width":Os},{default:_(()=>[l.cacheEnabled?(P(),G("span",Ode,"After requesting once, the variable value will be stored in the cache and subsequently read from the cache.")):Ce("",!0),l.cacheEnabled?Ce("",!0):(P(),G("span",Mde,"HTTP API will be requested every time"))]),_:1})):Ce("",!0)]),_:1},8,["model"]),F("div",Ade,[x(k,{type:"primary",loading:O.loading,onClick:A[9]||(A[9]=H=>M())},{default:_(()=>[ee(ie(O.$t("lang.common.save")),1)]),_:1},8,["loading"]),x(k,{onClick:A[10]||(A[10]=H=>T())},{default:_(()=>[ee(ie(O.$t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])],64)}}},Pde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Nde=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),Ide=[Nde];function Lde(n,e){return P(),G("svg",Pde,[...Ide])}const Ti={name:"ep-arrow-right-bold",render:Lde},Rde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},$de=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),Dde=[$de];function Vde(n,e){return P(),G("svg",Rde,[...Dde])}const yb={name:"ep-setting",render:Vde},Fde={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Bde=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),zde=[Bde];function jde(n,e){return P(),G("svg",Fde,[...zde])}const nN={name:"solar-document-text-linear",render:jde},Hde={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},Ude=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),Wde=[Ude];function Gde(n,e){return P(),G("svg",Hde,[...Wde])}const rN={name:"bi-box-arrow-up-right",render:Gde},qde={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kde=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),Yde=[Kde];function Jde(n,e){return P(),G("svg",qde,[...Yde])}const Xde={name:"ri-robot-2-line",render:Jde},Zde="/assets/outbound-bot-EmsLuWRN.png",Qde="/assets/inbound-bot-PJJg_rST.png",efe="/assets/text-bot-CWb_Poym.png",oi=n=>(Dd("data-v-5e1c915c"),n=n(),Vd(),n),tfe=oi(()=>F("span",{class:"header"}," Workspace ",-1)),nfe=oi(()=>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)),rfe={style:{margin:"0",padding:"0"}},ofe=["id"],sfe=oi(()=>F("a",{href:"https://github.com/dialogflowchatbot/dialogflow/releases"},"Go to download",-1)),ife={style:{"margin-left":"50px"}},lfe=oi(()=>F("h1",null,null,-1)),afe={class:"title"},cfe={class:"description"},ufe={class:"title"},dfe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},ffe={class:"description"},hfe={class:"text-center"},pfe=oi(()=>F("br",null,null,-1)),gfe=oi(()=>F("a",{href:"https://dialogflowchatbot.github.io/",target:"_blank"},"https://dialogflowchatbot.github.io/",-1)),mfe=oi(()=>F("br",null,null,-1)),vfe=oi(()=>F("a",{href:"https://github.com/dialogflowchatbot/dialogflow/discussions",target:"_blank"},"discussion",-1)),bfe=oi(()=>F("div",{class:"text-center"},[ee(" Icons were created by "),F("a",{href:"https://www.flaticon.com/",target:"_blank"},"Flaticon")],-1)),CE="90px",yfe={__name:"Home",setup(n){cn();const e=go(),t=z(""),r=z(0),o=z(!1),s=z(""),i=Ct([]),l=z(!1),a=async()=>{o.value=!0;const w=await et("GET","check-new-version.json",null,null,null);w.status==200?w.data!=null?(s.value=w.data.version,i.splice(0,i.length),rr(w.data.changelog,i),r.value=1):r.value=2:r.value=3,o.value=!1},c=()=>{e.push("/settings")},u=Ct([]),d=Ct({robotId:"",robotName:"",robotType:""});rt(async()=>{await f();const w=await et("GET","version.json",null,null,null);t.value=w});async function f(){const w=await et("GET","robot",null,null,null);w.status==200&&u.splice(0,u.length,...w.data.reverse())}async function h(){(await et("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:RM(b)}})}const m=w=>w=="OutboundCallBot"?Zde:w=="InboundCallBot"?Qde:w=="TextBot"?efe:"",v=w=>w=="OutboundBot"?"Telephone outbound bot":w=="InboundBot"?"Telephone incoming bot":w=="TextBot"?"Text chat bot":"";return(w,b)=>{const y=dt,S=An,E=og,T=rg,M=Cq,O=SO,A=_G,k=Tq,L=vM,j=ot("router-link"),ne=Cn,I=lr,R=ti,U=ei,Z=ir,Y=ul;return P(),G(Le,null,[x(T,{class:"header-row"},{default:_(()=>[x(E,{span:8},{default:_(()=>[tfe,x(S,{size:"large",loading:o.value,onClick:a},{default:_(()=>[x(y,{size:"large"},{default:_(()=>[nfe]),_:1})]),_:1},8,["loading"]),x(S,{size:"large",onClick:c},{default:_(()=>[x(y,{size:"large"},{default:_(()=>[x(C(yb))]),_:1})]),_:1})]),_:1})]),_:1}),x(M,{ref:"popover",placement:"right",title:"Changelog",width:300,trigger:"hover"},{reference:_(()=>[Fe(x(S,{class:"m-2",type:"warning",text:""},{default:_(()=>[ee("Found new verion: "+ie(s.value),1)]),_:1},512),[[Qe,r.value==1]])]),default:_(()=>[F("ol",rfe,[(P(!0),G(Le,null,Tt(i,(K,fe)=>(P(),G("li",{id:fe,key:fe},ie(K),9,ofe))),128))]),sfe]),_:1},512),Fe(x(O,{title:"You're using the latest verion.",type:"success",onClose:b[0]||(b[0]=K=>r.value=0)},null,512),[[Qe,r.value==2]]),Fe(x(O,{title:"Failed to query update information, please try again later.",type:"danger",onClose:b[1]||(b[1]=K=>r.value=0)},null,512),[[Qe,r.value==3]]),F("p",ife,[x(T,null,{default:_(()=>[x(E,{span:12},{default:_(()=>[F("h1",null,[x(y,{size:50},{default:_(()=>[x(C(Xde))]),_:1}),ee(" Choose a robot to start "),x(S,{size:"large",onClick:p,type:"success"},{default:_(()=>[ee(" Create a new robot ")]),_:1})])]),_:1}),x(E,{span:12},{default:_(()=>[lfe]),_:1})]),_:1}),x(L,{wrap:"",size:"large"},{default:_(()=>[(P(!0),G(Le,null,Tt(u,K=>(P(),G("div",{class:"grid-content bg-color-light",key:K.robotId},[x(k,{title:K.robotName,"sub-title":v(K.robotType)},{icon:_(()=>[x(A,{src:m(K.robotType)},null,8,["src"])]),extra:_(()=>[x(S,{type:"primary",onClick:fe=>g(K.robotId,K.robotName)},{default:_(()=>[ee("Detail")]),_:2},1032,["onClick"])]),_:2},1032,["title","sub-title"])]))),128))]),_:1}),F("div",afe,[x(y,{size:30},{default:_(()=>[x(C(yb))]),_:1}),ee(" Global settings ")]),F("p",null,[x(y,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),x(j,{to:"/settings"},{default:_(()=>[ee("Global settings")]),_:1}),F("div",cfe,ie(w.$t("lang.guide.desc4")),1)]),F("div",ufe,[x(y,{size:30},{default:_(()=>[x(C(nN))]),_:1}),ee(" "+ie(w.$t("lang.guide.title5")),1)]),F("p",null,[x(y,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),F("a",dfe,[ee(ie(w.$t("lang.guide.nav5"))+" ",1),x(y,null,{default:_(()=>[x(C(rN))]),_:1})]),F("div",ffe,ie(w.$t("lang.guide.desc5")),1)])]),F("p",null,[F("div",hfe,[ee(" Version: "+ie(t.value),1),pfe,gfe,mfe,ee(" If you have any questions or suggestions, please create a "),vfe,ee(" on Github or email to: dialogflow@yeah.net ")]),bfe]),x(Y,{modelValue:l.value,"onUpdate:modelValue":b[6]||(b[6]=K=>l.value=K),title:"Create a new robot",width:"60%"},{footer:_(()=>[x(S,{type:"primary",loading:w.loading,onClick:b[4]||(b[4]=K=>h())},{default:_(()=>[ee(ie(w.$t("lang.common.save")),1)]),_:1},8,["loading"]),x(S,{onClick:b[5]||(b[5]=K=>l.value=!1)},{default:_(()=>[ee(ie(w.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[x(Z,{model:d},{default:_(()=>[x(I,{label:"Name","label-width":CE},{default:_(()=>[x(ne,{modelValue:d.robotName,"onUpdate:modelValue":b[2]||(b[2]=K=>d.robotName=K),autocomplete:"off"},null,8,["modelValue"])]),_:1}),x(I,{label:"Type","label-width":CE},{default:_(()=>[x(U,{modelValue:d.robotType,"onUpdate:modelValue":b[3]||(b[3]=K=>d.robotType=K),placeholder:""},{default:_(()=>[x(R,{label:"Text bot",value:"TextBot"}),x(R,{label:"Inbound bot",value:"InboundBot"}),x(R,{label:"Outbound bot",value:"OutboundBot"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},wfe=Ho(yfe,[["__scopeId","data-v-5e1c915c"]]),Cfe=F("span",{class:"text-large font-600 mr-3"}," External HTTP API list ",-1),xfe={class:"flex items-center"},Sfe={style:{padding:"10px",border:"1px solid #E6A23C","background-color":"#fdf6ec",margin:"10px"}},Efe={__name:"HttpApiList",setup(n){const{t:e,tm:t,rt:r}=cn(),o=Ks(),s=go(),i=o.params.robotId,l=z([]);rt(async()=>{const f=await et("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)=>{Dr.confirm("Confirm whether to permanently delete this record?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const p=await et("DELETE","external/http/"+h.id,{robotId:i},null,null);p&&p.status==200?(Xt({showClose:!0,message:"Successfully deleted.",type:"success"}),l.value.splice(f,1)):Xt({showClose:!0,message:"Delete failed.",type:"error"})}).catch(()=>{})};return(f,h)=>{const p=An,g=ws,m=ot("router-link"),v=nf,w=tf;return P(),G(Le,null,[x(g,{title:C(e)("lang.common.back"),onBack:a},{content:_(()=>[Cfe]),extra:_(()=>[F("div",xfe,[x(p,{type:"primary",class:"ml-2",onClick:h[0]||(h[0]=b=>c())},{default:_(()=>[ee("Add new external API")]),_:1})])]),_:1},8,["title"]),F("div",Sfe,[ee(" 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. "),x(m,{to:{name:"variables",params:{robotId:C(i)}}},{default:_(()=>[ee("Add new variable")]),_:1},8,["to"])]),x(w,{data:l.value,stripe:"",style:{width:"100%"}},{default:_(()=>[x(v,{prop:"name",label:"HTTP name",width:"450"}),x(v,{prop:"description",label:"Description",width:"500"}),x(v,{fixed:"right",label:C(t)("lang.mainflow.table")[2],width:"270"},{default:_(b=>[x(p,{link:"",type:"primary",size:"small",onClick:y=>u(b.$index,b.row)},{default:_(()=>[ee(" Edit ")]),_:2},1032,["onClick"]),ee(" | "),x(p,{link:"",type:"primary",size:"small",onClick:y=>d(b.$index,b.row)},{default:_(()=>[ee(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])],64)}}},P0=n=>(Dd("data-v-4fd34b5d"),n=n(),Vd(),n),_fe={class:"mainBody"},Tfe=P0(()=>F("span",{class:"text-large font-600 mr-3"}," External HTTP API ",-1)),Ofe=P0(()=>F("p",null,null,-1)),Mfe=["checked"],Afe=P0(()=>F("label",{for:"_asyncReq_"},"Asynchronous",-1)),kfe={class:"my-header"},Pfe=["id"],Nfe={class:"dialog-footer"},Ife={__name:"HttpApiDetail",setup(n){const{t:e,tm:t,rt:r}=cn(),o=Ks(),s=go(),i=o.params.robotId,l=Ct({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=Ct({name:"",value:"",valueSource:""}),c=z(!1),u=z(!1),d=z(""),f=z("h"),h=z(0),p=Ct([]),g=z(""),m=z(),v=o.params.id;rt(async()=>{if(v&&v!="new"){const L=await et("GET","external/http/"+v,{robotId:i},null,null);L&&L.status==200&&rr(L.data,l)}let A=await et("GET","variable",{robotId:i},null,null);if(A&&A.status==200&&A.data)for(var k in A.data)A.data.hasOwnProperty(k)&&p.push(A.data[k])});const w=()=>{a.name="",a.value="",a.valueSource="Val",h.value=-1;const A=f.value;A=="h"?d.value="Add header parameter":A=="q"?d.value="Add query parameter":A=="f"&&(d.value="Add POST parameter"),c.value=!0},b=()=>{const A=vi(a),k=h.value;k>-1?f.value=="h"?l.headers[k]=A:f.value=="q"?l.queryParams[k]=A:f.value=="f"&&(l.formData[k]=A):f.value=="h"?l.headers.push(A):f.value=="q"?l.queryParams.push(A):f.value=="f"&&l.formData.push(A),c.value=!1},y=A=>{h.value=A,f.value=="h"?rr(l.headers[A],a):f.value=="q"?rr(l.queryParams[A],a):f.value=="f"&&rr(l.formData[A],a),c.value=!0},S=async()=>{l.protocol=l.protocol.replace("://","").toUpperCase();const A=await et("POST","external/http/"+v,{robotId:i},null,l);A&&A.status==200?(Xt({showClose:!0,message:"All data has been saved.",type:"success"}),T()):Xt({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=(A,k)=>{},O=A=>{A!="POST"&&f.value=="f"&&(f.value="q")};return(A,k)=>{const L=ws,j=Cn,ne=lr,I=ti,R=ei,U=ir,Z=jy,Y=Dy,K=nf,fe=An,H=tf,se=KK,ue=nM,be=Ly,ye=qK,W=vM,ce=ul;return P(),G("div",_fe,[x(L,{title:C(e)("lang.common.back"),onBack:T},{content:_(()=>[Tfe]),_:1},8,["title"]),Ofe,x(U,{model:l,"label-width":"90px"},{default:_(()=>[x(ne,{label:"Api name"},{default:_(()=>[x(j,{modelValue:l.name,"onUpdate:modelValue":k[0]||(k[0]=re=>l.name=re)},null,8,["modelValue"])]),_:1}),x(ne,{label:"Description"},{default:_(()=>[x(j,{modelValue:l.description,"onUpdate:modelValue":k[1]||(k[1]=re=>l.description=re),maxlength:"256",placeholder:"Some descriptions of this API","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1}),x(ne,{label:"Method"},{default:_(()=>[x(R,{modelValue:l.method,"onUpdate:modelValue":k[2]||(k[2]=re=>l.method=re),placeholder:"",onChange:O},{default:_(()=>[x(I,{label:"GET",value:"GET"}),x(I,{label:"POST",value:"POST"})]),_:1},8,["modelValue"])]),_:1}),x(ne,{label:"Protocol"},{default:_(()=>[x(R,{modelValue:l.protocol,"onUpdate:modelValue":k[3]||(k[3]=re=>l.protocol=re),placeholder:""},{default:_(()=>[x(I,{label:"HTTP",value:"http://"}),x(I,{label:"HTTPS",value:"https://"})]),_:1},8,["modelValue"])]),_:1}),x(ne,{label:"Address"},{default:_(()=>[x(j,{modelValue:l.address,"onUpdate:modelValue":k[4]||(k[4]=re=>l.address=re)},{prepend:_(()=>[ee(ie(l.method)+" "+ie(l.protocol),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),x(Z,{tag:"b",size:"large"},{default:_(()=>[ee("Advanced")]),_:1}),x(U,{model:l,"label-width":"90px"},{default:_(()=>[x(ne,{label:"Timed out"},{default:_(()=>[x(Y,{modelValue:l.timeoutMilliseconds,"onUpdate:modelValue":k[5]||(k[5]=re=>l.timeoutMilliseconds=re),min:200,max:6e5},null,8,["modelValue"]),ee(" milliseconds ")]),_:1}),x(ne,{label:"Parameters"},{default:_(()=>[x(ye,{modelValue:f.value,"onUpdate:modelValue":k[9]||(k[9]=re=>f.value=re),class:"demo-tabs",onTabClick:M},{default:_(()=>[x(se,{label:"Header",name:"h"},{default:_(()=>[x(H,{data:l.headers,stripe:"",style:{width:"100%"}},{default:_(()=>[x(K,{prop:"name",label:"Parameter name",width:"300"}),x(K,{prop:"value",label:"Parameter value",width:"200"}),x(K,{fixed:"right",label:C(t)("lang.mainflow.table")[2],width:"270"},{default:_(re=>[x(fe,{link:"",type:"primary",size:"small",onClick:ve=>y(re.$index)},{default:_(()=>[ee(" Edit ")]),_:2},1032,["onClick"]),ee(" | "),x(fe,{link:"",type:"primary",size:"small",onClick:ve=>A.delApi(re.$index,re.row)},{default:_(()=>[ee(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),x(fe,{type:"warning",onClick:w},{default:_(()=>[ee("+Add header")]),_:1})]),_:1}),x(se,{label:"Query parameters",name:"q"},{default:_(()=>[x(H,{data:l.queryParams,stripe:"",style:{width:"100%"}},{default:_(()=>[x(K,{prop:"name",label:"Parameter name",width:"300"}),x(K,{prop:"value",label:"Parameter value",width:"200"}),x(K,{fixed:"right",label:C(t)("lang.mainflow.table")[2],width:"270"},{default:_(re=>[x(fe,{link:"",type:"primary",size:"small",onClick:ve=>y(re.$index)},{default:_(()=>[ee(" Edit ")]),_:2},1032,["onClick"]),ee(" | "),x(fe,{link:"",type:"primary",size:"small",onClick:ve=>A.delApi(re.$index,re.row)},{default:_(()=>[ee(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),x(fe,{type:"warning",onClick:w},{default:_(()=>[ee("+Add query parameter")]),_:1})]),_:1}),l.method=="POST"?(P(),we(se,{key:0,label:"Request body",name:"f"},{default:_(()=>[ee(" Request body type: "),x(be,{modelValue:l.postContentType,"onUpdate:modelValue":k[6]||(k[6]=re=>l.postContentType=re),class:"ml-4"},{default:_(()=>[x(ue,{label:"UrlEncoded",size:"large"},{default:_(()=>[ee("application/x-www-form-urlencoded")]),_:1}),x(ue,{label:"JSON",size:"large"},{default:_(()=>[ee("JSON")]),_:1})]),_:1},8,["modelValue"]),l.postContentType=="UrlEncoded"?(P(),we(H,{key:0,data:l.formData,stripe:"",style:{width:"100%"}},{default:_(()=>[x(K,{prop:"name",label:"Parameter name",width:"300"}),x(K,{prop:"value",label:"Parameter value",width:"200"}),x(K,{fixed:"right",label:C(t)("lang.mainflow.table")[2],width:"270"},{default:_(re=>[x(fe,{link:"",type:"primary",size:"small",onClick:ve=>y(re.$index)},{default:_(()=>[ee(" Edit ")]),_:2},1032,["onClick"]),ee(" | "),x(fe,{link:"",type:"primary",size:"small",onClick:ve=>A.delApi(re.$index,re.row)},{default:_(()=>[ee(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])):Ce("",!0),l.postContentType=="UrlEncoded"?(P(),we(fe,{key:1,type:"warning",onClick:w},{default:_(()=>[ee("+Add form data")]),_:1})):Ce("",!0),l.postContentType=="JSON"?(P(),we(j,{key:2,ref_key:"requestBodyRef",ref:m,modelValue:l.requestBody,"onUpdate:modelValue":k[7]||(k[7]=re=>l.requestBody=re),maxlength:"10240",placeholder:"JSON","show-word-limit":"",type:"textarea"},null,8,["modelValue"])):Ce("",!0),l.postContentType=="JSON"?(P(),we(fe,{key:3,type:"warning",onClick:k[8]||(k[8]=re=>u.value=!0)},{default:_(()=>[ee("+Insert a variable")]),_:1})):Ce("",!0)]),_:1})):Ce("",!0)]),_:1},8,["modelValue"])]),_:1}),x(ne,{label:"User agent"},{default:_(()=>[x(j,{modelValue:l.userAgent,"onUpdate:modelValue":k[10]||(k[10]=re=>l.userAgent=re)},null,8,["modelValue"])]),_:1}),x(ne,{label:"Sync/Async","label-width":A.formLabelWidth},{default:_(()=>[Fe(F("input",{type:"checkbox",id:"_asyncReq_","onUpdate:modelValue":k[11]||(k[11]=re=>l.asyncReq=re),checked:l.asyncReq},null,8,Mfe),[[Ui,l.asyncReq]]),Afe]),_:1},8,["label-width"]),x(ne,null,{default:_(()=>[x(fe,{type:"primary",onClick:S},{default:_(()=>[ee("Save")]),_:1}),x(fe,{type:"info",disabled:""},{default:_(()=>[ee("Test (WIP)")]),_:1}),x(fe,{onClick:T},{default:_(()=>[ee("Cancel")]),_:1})]),_:1})]),_:1},8,["model"]),x(ce,{modelValue:c.value,"onUpdate:modelValue":k[17]||(k[17]=re=>c.value=re),width:"60%"},{header:_(({close:re,titleId:ve,titleClass:ke})=>[F("div",kfe,[F("h4",{id:ve,class:X(ke)},ie(d.value),11,Pfe)])]),footer:_(()=>[x(fe,{type:"primary",loading:A.loading,onClick:b},{default:_(()=>[ee(ie(A.$t("lang.common.save")),1)]),_:1},8,["loading"]),x(fe,{onClick:k[16]||(k[16]=re=>c.value=!1)},{default:_(()=>[ee(ie(A.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[x(U,{model:a},{default:_(()=>[x(ne,{label:"Name","label-width":A.formLabelWidth},{default:_(()=>[x(j,{modelValue:a.name,"onUpdate:modelValue":k[12]||(k[12]=re=>a.name=re),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),x(ne,{label:"Value","label-width":A.formLabelWidth},{default:_(()=>[x(W,{size:"10",spacer:"-"},{default:_(()=>[x(R,{modelValue:a.valueSource,"onUpdate:modelValue":k[13]||(k[13]=re=>a.valueSource=re),placeholder:"",style:{width:"150px"}},{default:_(()=>[x(I,{label:"Const value",value:"Val"}),x(I,{label:"From a variable",value:"Var"})]),_:1},8,["modelValue"]),a.valueSource=="Val"?(P(),we(j,{key:0,modelValue:a.value,"onUpdate:modelValue":k[14]||(k[14]=re=>a.value=re),autocomplete:"off",style:{width:"400px"}},null,8,["modelValue"])):Ce("",!0),a.valueSource=="Var"?(P(),we(R,{key:1,modelValue:g.value,"onUpdate:modelValue":k[15]||(k[15]=re=>g.value=re),placeholder:"Select a varaible",style:{width:"400px"}},{default:_(()=>[(P(!0),G(Le,null,Tt(p,re=>(P(),we(I,{key:re.varName,label:re.varName,value:re.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):Ce("",!0)]),_:1})]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"]),x(ce,{modelValue:u.value,"onUpdate:modelValue":k[20]||(k[20]=re=>u.value=re),title:"Insert a variable",width:"30%"},{footer:_(()=>[F("span",Nfe,[x(fe,{type:"primary",onClick:E},{default:_(()=>[ee(ie(C(e)("lang.common.insert")),1)]),_:1}),x(fe,{onClick:k[19]||(k[19]=re=>u.value=!1)},{default:_(()=>[ee(ie(C(e)("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[x(R,{modelValue:g.value,"onUpdate:modelValue":k[18]||(k[18]=re=>g.value=re),class:"m-2",placeholder:"Choose a variable",size:"large"},{default:_(()=>[(P(!0),G(Le,null,Tt(p,re=>(P(),we(I,{key:re.varName,label:re.varName,value:re.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}},Lfe=Ho(Ife,[["__scopeId","data-v-4fd34b5d"]]),Rfe={key:0},$fe={__name:"Demos",props:{parentPage:{type:String,default:"home"}},setup(n){const e=n,{t,locale:r}=cn(),o=go();function s(i,l){GY()?Dr.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=FG;return P(),G("div",null,[ee(ie(i.$t("lang.home.demo"))+": ",1),e.parentPage=="home"?(P(),G("ol",Rfe,[F("li",null,[x(a,{type:"success",onClick:l[0]||(l[0]=c=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:_(()=>[ee(ie(i.$t("lang.home.demo1")),1)]),_:1})]),F("li",null,[x(a,{type:"success",onClick:l[1]||(l[1]=c=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:_(()=>[ee(ie(i.$t("lang.home.demo2")),1)]),_:1})]),F("li",null,[x(a,{type:"success",onClick:l[2]||(l[2]=c=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:_(()=>[ee(ie(i.$t("lang.home.demo3")),1)]),_:1})])])):(P(),G(Le,{key:1},[x(a,{type:"success",onClick:l[3]||(l[3]=c=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:_(()=>[ee(ie(i.$t("lang.home.demo1")),1)]),_:1}),ee(" | "),x(a,{type:"success",onClick:l[4]||(l[4]=c=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:_(()=>[ee(ie(i.$t("lang.home.demo2")),1)]),_:1}),ee(" | "),x(a,{type:"success",onClick:l[5]||(l[5]=c=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:_(()=>[ee(ie(i.$t("lang.home.demo3")),1)]),_:1})],64))])}}},Dfe={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},Vfe=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),Ffe=[Vfe];function Bfe(n,e){return P(),G("svg",Dfe,[...Ffe])}const zfe={name:"bi-chat-square-dots",render:Bfe},jfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Hfe=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),Ufe=[Hfe];function Wfe(n,e){return P(),G("svg",jfe,[...Ufe])}const Gfe={name:"ri-bard-line",render:Wfe},qfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kfe=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),Yfe=[Kfe];function Jfe(n,e){return P(),G("svg",qfe,[...Yfe])}const Xfe={name:"solar-download-outline",render:Jfe},Zfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Qfe=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),ehe=[Qfe];function the(n,e){return P(),G("svg",Zfe,[...ehe])}const nhe={name:"solar-routing-2-linear",render:the},kg=n=>(Dd("data-v-0ba8fb96"),n=n(),Vd(),n),rhe=kg(()=>F("span",{class:"text-large font-600 mr-3"}," Robot detail ",-1)),ohe={class:"header"},she={style:{"margin-left":"50px"}},ihe={class:"title"},lhe={class:"description"},ahe={class:"title"},che={class:"description"},uhe=kg(()=>F("br",null,null,-1)),dhe={class:"title"},fhe={class:"description"},hhe={class:"title"},phe=kg(()=>F("div",{class:"description"},"By using this function, you can send data to external URLs and receive response.",-1)),ghe={class:"title"},mhe=kg(()=>F("div",{class:"description"},"Change maximum session idle time, Embedding provider and Email STMP information.",-1)),vhe={class:"title"},bhe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},yhe={class:"description"},whe={class:"dialog-footer"},Che="guide",xhe={__name:"RobotDetail",setup(n){cn();const e=Ks(),t=go(),r=e.params.robotId;let o="";const s=Ct({robotId:"",robotName:"",robotType:""}),i=z(!1),l=()=>{t.push("/")};rt(async()=>{const u=await et("GET","robot/detail",{robotId:r},null,null);u.status==200&&u.data!=null?(rr(u.data,s),o=s.robotName,qY(u.data.robotId,u.data.robotType)):Xt.error("Can NOT find robot information by robotId.")});async function a(){const u=await et("POST","robot",null,null,s);u.status==200?Xt.success("Changed successfully."):Xt.error(u.err.message)}async function c(){Dr.confirm("Do you confirm that delete this robot and its all data?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const u=await et("DELETE","robot",{robotId:r},null,null);u.status==200?l():Xt.error(u.err.message)}).catch(()=>{})}return(u,d)=>{const f=ws,h=An,p=og,g=rg,m=dt,v=ot("router-link"),w=Cn,b=lr,y=ir,S=ul;return P(),G(Le,null,[x(f,{title:"Robots list",onBack:l},{content:_(()=>[rhe]),_:1}),x(g,{class:"header-row"},{default:_(()=>[x(p,{span:18},{default:_(()=>[F("span",ohe,ie(s.robotName),1),x(h,{type:"primary",text:"",onClick:d[0]||(d[0]=E=>{i.value=!0})},{default:_(()=>[ee(" Change robot name ")]),_:1})]),_:1}),x(p,{span:3},{default:_(()=>[x(h,{type:"danger",onClick:c},{default:_(()=>[ee(" Delete this robot ")]),_:1})]),_:1})]),_:1}),F("p",she,[F("div",ihe,[x(m,{size:30},{default:_(()=>[x(C(zfe))]),_:1}),ee(ie(u.$t("lang.guide.title1")),1)]),F("p",null,[x(m,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),x(v,{to:{name:"mainflows",params:{robotId:C(r)}}},{default:_(()=>[ee(ie(u.$t("lang.guide.nav1")),1)]),_:1},8,["to"]),F("div",lhe,[x($fe,{parentPage:Che})])]),F("div",ahe,[x(m,{size:30},{default:_(()=>[x(C(Gfe))]),_:1}),ee(" "+ie(u.$t("lang.guide.title2")),1)]),F("p",null,[x(m,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),x(v,{to:{name:"intents",params:{robotId:C(r)}}},{default:_(()=>[ee(ie(u.$t("lang.guide.nav2")),1)]),_:1},8,["to"]),F("div",che,[ee(ie(u.$t("lang.guide.desc2")),1),uhe,ee(` We have built-in "Positive" and "Negative" intentions. If that's not enough, you can add your own `)])]),F("div",dhe,[x(m,{size:30},{default:_(()=>[x(C(Xfe))]),_:1}),ee(" "+ie(u.$t("lang.guide.title3")),1)]),F("p",null,[x(m,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),x(v,{to:{name:"variables",params:{robotId:C(r)}}},{default:_(()=>[ee(ie(u.$t("lang.guide.nav3")),1)]),_:1},8,["to"]),F("div",fhe,ie(u.$t("lang.guide.desc3")),1)]),F("div",hhe,[x(m,{size:30},{default:_(()=>[x(C(nhe))]),_:1}),ee(" External APIs call ")]),F("p",null,[x(m,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),x(v,{to:{name:"externalHttpApis",params:{robotId:C(r)}}},{default:_(()=>[ee("External HTTP API list")]),_:1},8,["to"]),phe]),F("div",ghe,[x(m,{size:30},{default:_(()=>[x(C(yb))]),_:1}),ee(" "+ie(u.$t("lang.guide.title4")),1)]),F("p",null,[x(m,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),x(v,{to:{name:"settings",params:{robotId:C(r)}}},{default:_(()=>[ee(ie(u.$t("lang.guide.nav4")),1)]),_:1},8,["to"]),mhe]),F("div",vhe,[x(m,{size:30},{default:_(()=>[x(C(nN))]),_:1}),ee(" "+ie(u.$t("lang.guide.title5")),1)]),F("p",null,[x(m,{size:15},{default:_(()=>[x(C(Ti))]),_:1}),F("a",bhe,[ee(ie(u.$t("lang.guide.nav5"))+" ",1),x(m,null,{default:_(()=>[x(C(rN))]),_:1})]),F("div",yhe,ie(u.$t("lang.guide.desc5")),1)])]),x(S,{modelValue:i.value,"onUpdate:modelValue":d[4]||(d[4]=E=>i.value=E),title:"Change robot name"},{footer:_(()=>[F("span",whe,[x(h,{type:"primary",onClick:d[2]||(d[2]=E=>{i.value=!1,a()})},{default:_(()=>[ee(ie(u.$t("lang.common.save")),1)]),_:1}),x(h,{onClick:d[3]||(d[3]=E=>{s.robotName=C(o),i.value=!1})},{default:_(()=>[ee(ie(u.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[x(y,{model:u.form},{default:_(()=>[x(b,{label:"Name","label-width":u.formLabelWidth},{default:_(()=>[x(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)}}},She=Ho(xhe,[["__scopeId","data-v-0ba8fb96"]]),Ehe=[{path:"/",component:wfe},{path:"/demo/:demo",component:wE},{path:"/mainflows/:robotId",name:"mainflows",component:dJ},{path:"/subflow/:robotId/:id/:name",name:"subflow",component:wE,props:!0},{path:"/settings",component:eJ},{path:"/settings/:robotId",name:"settings",component:lJ},{path:"/robot/:robotId",name:"robotDetail",component:She},{path:"/intents/:robotId",name:"intents",component:yde},{path:"/intent/detail",component:Cde},{path:"/variables/:robotId",name:"variables",component:kde},{path:"/external/httpApis/:robotId",name:"externalHttpApis",component:Efe},{path:"/external/httpApi/:robotId/:id",name:"externalHttpApiDetail",component:Lfe}],_he=BR({history:pR(),routes:Ehe,scrollBehavior(n,e,t){return{top:0}}}),N0=Ub(W$);N0.use(_he);N0.use(U$);N0.mount("#app")});export default The(); diff --git a/src/resources/assets/assets/index-CI0yDkE7.js b/src/resources/assets/assets/index-CI0yDkE7.js deleted file mode 100644 index fa625c2..0000000 --- a/src/resources/assets/assets/index-CI0yDkE7.js +++ /dev/null @@ -1,411 +0,0 @@ -var aN=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Ude=aN((Rr,$r)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** -* @vue/shared v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function xv(r,e){const n=new Set(r.split(","));return e?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Xt={},Fa=[],un=()=>{},cN=()=>!1,yp=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Ev=r=>r.startsWith("onUpdate:"),hn=Object.assign,Tv=(r,e)=>{const n=r.indexOf(e);n>-1&&r.splice(n,1)},uN=Object.prototype.hasOwnProperty,wt=(r,e)=>uN.call(r,e),Re=Array.isArray,Ba=r=>$d(r)==="[object Map]",wp=r=>$d(r)==="[object Set]",D0=r=>$d(r)==="[object Date]",qe=r=>typeof r=="function",ft=r=>typeof r=="string",Vo=r=>typeof r=="symbol",pt=r=>r!==null&&typeof r=="object",SE=r=>(pt(r)||qe(r))&&qe(r.then)&&qe(r.catch),xE=Object.prototype.toString,$d=r=>xE.call(r),eh=r=>$d(r).slice(8,-1),EE=r=>$d(r)==="[object Object]",_v=r=>ft(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Su=xv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cp=r=>{const e=Object.create(null);return n=>e[n]||(e[n]=r(n))},dN=/-(\w)/g,Ls=Cp(r=>r.replace(dN,(e,n)=>n?n.toUpperCase():"")),fN=/\B([A-Z])/g,Zi=Cp(r=>r.replace(fN,"-$1").toLowerCase()),Dd=Cp(r=>r.charAt(0).toUpperCase()+r.slice(1)),Ng=Cp(r=>r?`on${Dd(r)}`:""),Bi=(r,e)=>!Object.is(r,e),th=(r,e)=>{for(let n=0;n{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,writable:s,value:n})},zm=r=>{const e=parseFloat(r);return isNaN(e)?r:e},hN=r=>{const e=ft(r)?Number(r):NaN;return isNaN(e)?r:e};let V0;const _E=()=>V0||(V0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vt(r){if(Re(r)){const e={};for(let n=0;n{if(n){const s=n.split(gN);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Y(r){let e="";if(ft(r))e=r;else if(Re(r))for(let n=0;nJa(n,e))}const oe=r=>ft(r)?r:r==null?"":Re(r)||pt(r)&&(r.toString===xE||!qe(r.toString))?JSON.stringify(r,ME,2):String(r),ME=(r,e)=>e&&e.__v_isRef?ME(r,e.value):Ba(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,o],i)=>(n[Ig(s,i)+" =>"]=o,n),{})}:wp(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Ig(n))}:Vo(e)?Ig(e):pt(e)&&!Re(e)&&!EE(e)?String(e):e,Ig=(r,e="")=>{var n;return Vo(r)?`Symbol(${(n=r.description)!=null?n:e})`:r};/** -* @vue/reactivity v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Pr;class kE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pr,!e&&Pr&&(this.index=(Pr.scopes||(Pr.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Pr;try{return Pr=this,e()}finally{Pr=n}}}on(){Pr=this}off(){Pr=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),el()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ri,n=zl;try{return Ri=!0,zl=this,this._runnings++,F0(this),this.fn()}finally{B0(this),this._runnings--,zl=n,Ri=e}}stop(){this.active&&(F0(this),B0(this),this.onStop&&this.onStop(),this.active=!1)}}function SN(r){return r.value}function F0(r){r._trackId++,r._depsLength=0}function B0(r){if(r.deps.length>r._depsLength){for(let e=r._depsLength;e{const n=new Map;return n.cleanup=r,n.computed=e,n},wh=new WeakMap,jl=Symbol(""),Um=Symbol("");function _r(r,e,n){if(Ri&&zl){let s=wh.get(r);s||wh.set(r,s=new Map);let o=s.get(n);o||s.set(n,o=VE(()=>s.delete(n))),$E(zl,o)}}function Lo(r,e,n,s,o,i){const l=wh.get(r);if(!l)return;let a=[];if(e==="clear")a=[...l.values()];else if(n==="length"&&Re(r)){const c=Number(s);l.forEach((u,d)=>{(d==="length"||!Vo(d)&&d>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(l.get(n)),e){case"add":Re(r)?_v(n)&&a.push(l.get("length")):(a.push(l.get(jl)),Ba(r)&&a.push(l.get(Um)));break;case"delete":Re(r)||(a.push(l.get(jl)),Ba(r)&&a.push(l.get(Um)));break;case"set":Ba(r)&&a.push(l.get(jl));break}Av();for(const c of a)c&&DE(c,4);Mv()}function xN(r,e){const n=wh.get(r);return n&&n.get(e)}const EN=xv("__proto__,__v_isRef,__isVue"),FE=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Vo)),z0=TN();function TN(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...n){const s=Mt(this);for(let i=0,l=this.length;i{r[e]=function(...n){Qi(),Av();const s=Mt(this)[e].apply(this,n);return Mv(),el(),s}}),r}function _N(r){Vo(r)||(r=String(r));const e=Mt(this);return _r(e,"has",r),e.hasOwnProperty(r)}class BE{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?FN:UE:i?HE:jE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const l=Re(e);if(!o){if(l&&wt(z0,n))return Reflect.get(z0,n,s);if(n==="hasOwnProperty")return _N}const a=Reflect.get(e,n,s);return(Vo(n)?FE.has(n):EN(n))||(o||_r(e,"get",n),i)?a:qt(a)?l&&_v(n)?a:a.value:pt(a)?o?Vd(a):St(a):a}}class zE extends BE{constructor(e=!1){super(!1,e)}set(e,n,s,o){let i=e[n];if(!this._isShallow){const c=Xu(i);if(!Ch(s)&&!Xu(s)&&(i=Mt(i),s=Mt(s)),!Re(e)&&qt(i)&&!qt(s))return c?!1:(i.value=s,!0)}const l=Re(e)&&_v(n)?Number(n)r,Sp=r=>Reflect.getPrototypeOf(r);function vf(r,e,n=!1,s=!1){r=r.__v_raw;const o=Mt(r),i=Mt(e);n||(Bi(e,i)&&_r(o,"get",e),_r(o,"get",i));const{has:l}=Sp(o),a=s?kv:n?Lv:Qu;if(l.call(o,e))return a(r.get(e));if(l.call(o,i))return a(r.get(i));r!==o&&r.get(e)}function yf(r,e=!1){const n=this.__v_raw,s=Mt(n),o=Mt(r);return e||(Bi(r,o)&&_r(s,"has",r),_r(s,"has",o)),r===o?n.has(r):n.has(r)||n.has(o)}function wf(r,e=!1){return r=r.__v_raw,!e&&_r(Mt(r),"iterate",jl),Reflect.get(r,"size",r)}function j0(r){r=Mt(r);const e=Mt(this);return Sp(e).has.call(e,r)||(e.add(r),Lo(e,"add",r,r)),this}function H0(r,e){e=Mt(e);const n=Mt(this),{has:s,get:o}=Sp(n);let i=s.call(n,r);i||(r=Mt(r),i=s.call(n,r));const l=o.call(n,r);return n.set(r,e),i?Bi(e,l)&&Lo(n,"set",r,e):Lo(n,"add",r,e),this}function U0(r){const e=Mt(this),{has:n,get:s}=Sp(e);let o=n.call(e,r);o||(r=Mt(r),o=n.call(e,r)),s&&s.call(e,r);const i=e.delete(r);return o&&Lo(e,"delete",r,void 0),i}function W0(){const r=Mt(this),e=r.size!==0,n=r.clear();return e&&Lo(r,"clear",void 0,void 0),n}function Cf(r,e){return function(s,o){const i=this,l=i.__v_raw,a=Mt(l),c=e?kv:r?Lv:Qu;return!r&&_r(a,"iterate",jl),l.forEach((u,d)=>s.call(o,c(u),c(d),i))}}function Sf(r,e,n){return function(...s){const o=this.__v_raw,i=Mt(o),l=Ba(i),a=r==="entries"||r===Symbol.iterator&&l,c=r==="keys"&&l,u=o[r](...s),d=n?kv:e?Lv:Qu;return!e&&_r(i,"iterate",c?Um:jl),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function oi(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function PN(){const r={get(i){return vf(this,i)},get size(){return wf(this)},has:yf,add:j0,set:H0,delete:U0,clear:W0,forEach:Cf(!1,!1)},e={get(i){return vf(this,i,!1,!0)},get size(){return wf(this)},has:yf,add:j0,set:H0,delete:U0,clear:W0,forEach:Cf(!1,!0)},n={get(i){return vf(this,i,!0)},get size(){return wf(this,!0)},has(i){return yf.call(this,i,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Cf(!0,!1)},s={get(i){return vf(this,i,!0,!0)},get size(){return wf(this,!0)},has(i){return yf.call(this,i,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Cf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Sf(i,!1,!1),n[i]=Sf(i,!0,!1),e[i]=Sf(i,!1,!0),s[i]=Sf(i,!0,!0)}),[r,n,e,s]}const[NN,IN,LN,RN]=PN();function Pv(r,e){const n=e?r?RN:LN:r?IN:NN;return(s,o,i)=>o==="__v_isReactive"?!r:o==="__v_isReadonly"?r:o==="__v_raw"?s:Reflect.get(wt(n,o)&&o in s?n:s,o,i)}const $N={get:Pv(!1,!1)},DN={get:Pv(!1,!0)},VN={get:Pv(!0,!1)},jE=new WeakMap,HE=new WeakMap,UE=new WeakMap,FN=new WeakMap;function BN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zN(r){return r.__v_skip||!Object.isExtensible(r)?0:BN(eh(r))}function St(r){return Xu(r)?r:Iv(r,!1,AN,$N,jE)}function Nv(r){return Iv(r,!1,kN,DN,HE)}function Vd(r){return Iv(r,!0,MN,VN,UE)}function Iv(r,e,n,s,o){if(!pt(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const i=o.get(r);if(i)return i;const l=zN(r);if(l===0)return r;const a=new Proxy(r,l===2?s:n);return o.set(r,a),a}function xu(r){return Xu(r)?xu(r.__v_raw):!!(r&&r.__v_isReactive)}function Xu(r){return!!(r&&r.__v_isReadonly)}function Ch(r){return!!(r&&r.__v_isShallow)}function WE(r){return r?!!r.__v_raw:!1}function Mt(r){const e=r&&r.__v_raw;return e?Mt(e):r}function Zu(r){return Object.isExtensible(r)&&TE(r,"__v_skip",!0),r}const Qu=r=>pt(r)?St(r):r,Lv=r=>pt(r)?Vd(r):r;class qE{constructor(e,n,s,o){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ov(()=>e(this._value),()=>Eu(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const e=Mt(this);return(!e._cacheable||e.effect.dirty)&&Bi(e._value,e._value=e.effect.run())&&Eu(e,4),Rv(e),e.effect._dirtyLevel>=2&&Eu(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function jN(r,e,n=!1){let s,o;const i=qe(r);return i?(s=r,o=un):(s=r.get,o=r.set),new qE(s,o,i||!o,n)}function Rv(r){var e;Ri&&zl&&(r=Mt(r),$E(zl,(e=r.dep)!=null?e:r.dep=VE(()=>r.dep=void 0,r instanceof qE?r:void 0)))}function Eu(r,e=4,n){r=Mt(r);const s=r.dep;s&&DE(s,e)}function qt(r){return!!(r&&r.__v_isRef===!0)}function j(r){return GE(r,!1)}function Ms(r){return GE(r,!0)}function GE(r,e){return qt(r)?r:new HN(r,e)}class HN{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Mt(e),this._value=n?e:Qu(e)}get value(){return Rv(this),this._value}set value(e){const n=this.__v_isShallow||Ch(e)||Xu(e);e=n?e:Mt(e),Bi(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Qu(e),Eu(this,4))}}function S(r){return qt(r)?r.value:r}const UN={get:(r,e,n)=>S(Reflect.get(r,e,n)),set:(r,e,n,s)=>{const o=r[e];return qt(o)&&!qt(n)?(o.value=n,!0):Reflect.set(r,e,n,s)}};function KE(r){return xu(r)?r:new Proxy(r,UN)}class WN{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=e(()=>Rv(this),()=>Eu(this));this._get=n,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function qN(r){return new WN(r)}function Uo(r){const e=Re(r)?new Array(r.length):{};for(const n in r)e[n]=YE(r,n);return e}class GN{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,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 xN(Mt(this._object),this._key)}}class KN{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Es(r,e,n){return qt(r)?r:qe(r)?new KN(r):pt(r)&&arguments.length>1?YE(r,e,n):j(r)}function YE(r,e,n){const s=r[e];return qt(s)?s:new GN(r,e,n)}/** -* @vue/runtime-core v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function $i(r,e,n,s){try{return s?r(...s):r()}catch(o){xp(o,e,n)}}function ts(r,e,n,s){if(qe(r)){const o=$i(r,e,n,s);return o&&SE(o)&&o.catch(i=>{xp(i,e,n)}),o}if(Re(r)){const o=[];for(let i=0;i>>1,o=er[s],i=td(o);iJs&&er.splice(e,1)}function XN(r){Re(r)?za.push(...r):(!mi||!mi.includes(r,r.allowRecurse?Tl+1:Tl))&&za.push(r),XE()}function q0(r,e,n=ed?Js+1:0){for(;ntd(n)-td(s));if(za.length=0,mi){mi.push(...e);return}for(mi=e,Tl=0;Tlr.id==null?1/0:r.id,ZN=(r,e)=>{const n=td(r)-td(e);if(n===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return n};function QE(r){Wm=!1,ed=!0,er.sort(ZN);try{for(Js=0;Jsft(p)?p.trim():p)),f&&(o=n.map(zm))}let a,c=s[a=Ng(e)]||s[a=Ng(Ls(e))];!c&&i&&(c=s[a=Ng(Zi(e))]),c&&ts(c,r,6,o);const u=s[a+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[a])return;r.emitted[a]=!0,ts(u,r,6,o)}}function eT(r,e,n=!1){const s=e.emitsCache,o=s.get(r);if(o!==void 0)return o;const i=r.emits;let l={},a=!1;if(!qe(r)){const c=u=>{const d=eT(u,e,!0);d&&(a=!0,hn(l,d))};!n&&e.mixins.length&&e.mixins.forEach(c),r.extends&&c(r.extends),r.mixins&&r.mixins.forEach(c)}return!i&&!a?(pt(r)&&s.set(r,null),null):(Re(i)?i.forEach(c=>l[c]=null):hn(l,i),pt(r)&&s.set(r,l),l)}function Ep(r,e){return!r||!yp(e)?!1:(e=e.slice(2).replace(/Once$/,""),wt(r,e[0].toLowerCase()+e.slice(1))||wt(r,Zi(e))||wt(r,e))}let On=null,Tp=null;function Sh(r){const e=On;return On=r,Tp=r&&r.type.__scopeId||null,e}function Fd(r){Tp=r}function Bd(){Tp=null}function O(r,e=On,n){if(!e||r._n)return r;const s=(...o)=>{s._d&&i1(-1);const i=Sh(e);let l;try{l=r(...o)}finally{Sh(i),s._d&&i1(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Lg(r){const{type:e,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:l,attrs:a,emit:c,render:u,renderCache:d,props:f,data:h,setupState:p,ctx:g,inheritAttrs:m}=r,v=Sh(r);let b,C;try{if(n.shapeFlag&4){const w=o||s,x=w;b=Ks(u.call(x,w,d,f,p,h,g)),C=a}else{const w=e;b=Ks(w.length>1?w(f,{attrs:a,slots:l,emit:c}):w(f,null)),C=e.props?a:eI(a)}}catch(w){Mu.length=0,xp(w,r,1),b=T(rr)}let y=b;if(C&&m!==!1){const w=Object.keys(C),{shapeFlag:x}=y;w.length&&x&7&&(i&&w.some(Ev)&&(C=tI(C,i)),y=Fo(y,C,!1,!0))}return n.dirs&&(y=Fo(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),b=y,Sh(v),b}const eI=r=>{let e;for(const n in r)(n==="class"||n==="style"||yp(n))&&((e||(e={}))[n]=r[n]);return e},tI=(r,e)=>{const n={};for(const s in r)(!Ev(s)||!(s.slice(9)in e))&&(n[s]=r[s]);return n};function nI(r,e,n){const{props:s,children:o,component:i}=r,{props:l,children:a,patchFlag:c}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?G0(s,l,u):!!l;if(c&8){const d=e.dynamicProps;for(let f=0;fr.__isSuspense;function iI(r,e){e&&e.pendingBranch?Re(r)?e.effects.push(...r):e.effects.push(r):XN(r)}const lI=Symbol.for("v-scx"),aI=()=>Ve(lI);function to(r,e){return zv(r,null,e)}const xf={};function $e(r,e,n){return zv(r,e,n)}function zv(r,e,{immediate:n,deep:s,flush:o,once:i,onTrack:l,onTrigger:a}=Xt){if(e&&i){const E=e;e=(..._)=>{E(..._),x()}}const c=Gn,u=E=>s===!0?E:Nl(E,s===!1?1:void 0);let d,f=!1,h=!1;if(qt(r)?(d=()=>r.value,f=Ch(r)):xu(r)?(d=()=>u(r),f=!0):Re(r)?(h=!0,f=r.some(E=>xu(E)||Ch(E)),d=()=>r.map(E=>{if(qt(E))return E.value;if(xu(E))return u(E);if(qe(E))return $i(E,c,2)})):qe(r)?e?d=()=>$i(r,c,2):d=()=>(p&&p(),ts(r,c,3,[g])):d=un,e&&s){const E=d;d=()=>Nl(E())}let p,g=E=>{p=y.onStop=()=>{$i(E,c,4),p=y.onStop=void 0}},m;if(Ap)if(g=un,e?n&&ts(e,c,3,[d(),h?[]:void 0,g]):d(),o==="sync"){const E=aI();m=E.__watcherHandles||(E.__watcherHandles=[])}else return un;let v=h?new Array(r.length).fill(xf):xf;const b=()=>{if(!(!y.active||!y.dirty))if(e){const E=y.run();(s||f||(h?E.some((_,M)=>Bi(_,v[M])):Bi(E,v)))&&(p&&p(),ts(e,c,3,[E,v===xf?void 0:h&&v[0]===xf?[]:v,g]),v=E)}else y.run()};b.allowRecurse=!!e;let C;o==="sync"?C=b:o==="post"?C=()=>yr(b,c&&c.suspense):(b.pre=!0,c&&(b.id=c.uid),C=()=>Dv(b));const y=new Ov(d,un,C),w=NE(),x=()=>{y.stop(),w&&Tv(w.effects,y)};return e?n?b():v=y.run():o==="post"?yr(y.run.bind(y),c&&c.suspense):y.run(),m&&m.push(x),x}function cI(r,e,n){const s=this.proxy,o=ft(r)?r.includes(".")?nT(s,r):()=>s[r]:r.bind(s,s);let i;qe(e)?i=e:(i=e.handler,n=e);const l=jd(this),a=zv(o,i.bind(s),n);return l(),a}function nT(r,e){const n=e.split(".");return()=>{let s=r;for(let o=0;o{Nl(s,e,n)});else if(EE(r))for(const s in r)Nl(r[s],e,n);return r}function Ue(r,e){if(On===null)return r;const n=Mp(On)||On.proxy,s=r.dirs||(r.dirs=[]);for(let o=0;o{r.isMounted=!0}),Cn(()=>{r.isUnmounting=!0}),r}const Hr=[Function,Array],sT={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hr,onEnter:Hr,onAfterEnter:Hr,onEnterCancelled:Hr,onBeforeLeave:Hr,onLeave:Hr,onAfterLeave:Hr,onLeaveCancelled:Hr,onBeforeAppear:Hr,onAppear:Hr,onAfterAppear:Hr,onAppearCancelled:Hr},uI={name:"BaseTransition",props:sT,setup(r,{slots:e}){const n=bt(),s=rT();return()=>{const o=e.default&&jv(e.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const h of o)if(h.type!==rr){i=h;break}}const l=Mt(r),{mode:a}=l;if(s.isLeaving)return Rg(i);const c=Y0(i);if(!c)return Rg(i);const u=nd(c,l,s,n);rd(c,u);const d=n.subTree,f=d&&Y0(d);if(f&&f.type!==rr&&!_l(c,f)){const h=nd(f,l,s,n);if(rd(f,h),a==="out-in"&&c.type!==rr)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Rg(i);a==="in-out"&&c.type!==rr&&(h.delayLeave=(p,g,m)=>{const v=oT(s,f);v[String(f.key)]=f,p[bi]=()=>{g(),p[bi]=void 0,delete u.delayedLeave},u.delayedLeave=m})}return i}}},dI=uI;function oT(r,e){const{leavingVNodes:n}=r;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function nd(r,e,n,s){const{appear:o,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:b,onAppearCancelled:C}=e,y=String(r.key),w=oT(n,r),x=(M,A)=>{M&&ts(M,s,9,A)},E=(M,A)=>{const k=A[1];x(M,A),Re(M)?M.every(P=>P.length<=1)&&k():M.length<=1&&k()},_={mode:i,persisted:l,beforeEnter(M){let A=a;if(!n.isMounted)if(o)A=m||a;else return;M[bi]&&M[bi](!0);const k=w[y];k&&_l(r,k)&&k.el[bi]&&k.el[bi](),x(A,[M])},enter(M){let A=c,k=u,P=d;if(!n.isMounted)if(o)A=v||c,k=b||u,P=C||d;else return;let $=!1;const B=M[Ef]=W=>{$||($=!0,W?x(P,[M]):x(k,[M]),_.delayedLeave&&_.delayedLeave(),M[Ef]=void 0)};A?E(A,[M,B]):B()},leave(M,A){const k=String(r.key);if(M[Ef]&&M[Ef](!0),n.isUnmounting)return A();x(f,[M]);let P=!1;const $=M[bi]=B=>{P||(P=!0,A(),B?x(g,[M]):x(p,[M]),M[bi]=void 0,w[k]===r&&delete w[k])};w[k]=r,h?E(h,[M,$]):$()},clone(M){return nd(M,e,n,s)}};return _}function Rg(r){if(_p(r))return r=Fo(r),r.children=null,r}function Y0(r){if(!_p(r))return r;const{shapeFlag:e,children:n}=r;if(n){if(e&16)return n[0];if(e&32&&qe(n.default))return n.default()}}function rd(r,e){r.shapeFlag&6&&r.component?rd(r.component.subTree,e):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function jv(r,e=!1,n){let s=[],o=0;for(let i=0;i1)for(let i=0;i!!r.type.__asyncLoader,_p=r=>r.type.__isKeepAlive;function fI(r,e){lT(r,"a",e)}function iT(r,e){lT(r,"da",e)}function lT(r,e,n=Gn){const s=r.__wdc||(r.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return r()});if(Op(e,s,n),n){let o=n.parent;for(;o&&o.parent;)_p(o.parent.vnode)&&hI(s,e,n,o),o=o.parent}}function hI(r,e,n,s){const o=Op(e,r,s,!0);qo(()=>{Tv(s[e],o)},n)}function Op(r,e,n=Gn,s=!1){if(n){const o=n[r]||(n[r]=[]),i=e.__weh||(e.__weh=(...l)=>{if(n.isUnmounted)return;Qi();const a=jd(n),c=ts(e,n,r,l);return a(),el(),c});return s?o.unshift(i):o.push(i),i}}const Wo=r=>(e,n=Gn)=>(!Ap||r==="sp")&&Op(r,(...s)=>e(...s),n),zd=Wo("bm"),nt=Wo("m"),pI=Wo("bu"),ua=Wo("u"),Cn=Wo("bum"),qo=Wo("um"),gI=Wo("sp"),mI=Wo("rtg"),bI=Wo("rtc");function vI(r,e=Gn){Op("ec",r,e)}function Ot(r,e,n,s){let o;const i=n&&n[s];if(Re(r)||ft(r)){o=new Array(r.length);for(let l=0,a=r.length;le(l,a,void 0,i&&i[a]));else{const l=Object.keys(r);o=new Array(l.length);for(let a=0,c=l.length;a{const i=s.fn(...o);return i&&(i.key=s.key),i}:s.fn)}return r}function _e(r,e,n={},s,o){if(On.isCE||On.parent&&Tu(On.parent)&&On.parent.isCE)return e!=="default"&&(n.name=e),T("slot",n,s&&s());let i=r[e];i&&i._c&&(i._d=!1),N();const l=i&&aT(i(n)),a=ye(De,{key:n.key||l&&l.key||`_${e}`},l||(s?s():[]),l&&r._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function aT(r){return r.some(e=>Mn(e)?!(e.type===rr||e.type===De&&!aT(e.children)):!0)?r:null}const qm=r=>r?TT(r)?Mp(r)||r.proxy:qm(r.parent):null,_u=hn(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>qm(r.parent),$root:r=>qm(r.root),$emit:r=>r.emit,$options:r=>Hv(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,Dv(r.update)}),$nextTick:r=>r.n||(r.n=tt.bind(r.proxy)),$watch:r=>cI.bind(r)}),$g=(r,e)=>r!==Xt&&!r.__isScriptSetup&&wt(r,e),wI={get({_:r},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:l,type:a,appContext:c}=r;let u;if(e[0]!=="$"){const p=l[e];if(p!==void 0)switch(p){case 1:return s[e];case 2:return o[e];case 4:return n[e];case 3:return i[e]}else{if($g(s,e))return l[e]=1,s[e];if(o!==Xt&&wt(o,e))return l[e]=2,o[e];if((u=r.propsOptions[0])&&wt(u,e))return l[e]=3,i[e];if(n!==Xt&&wt(n,e))return l[e]=4,n[e];Gm&&(l[e]=0)}}const d=_u[e];let f,h;if(d)return e==="$attrs"&&_r(r.attrs,"get",""),d(r);if((f=a.__cssModules)&&(f=f[e]))return f;if(n!==Xt&&wt(n,e))return l[e]=4,n[e];if(h=c.config.globalProperties,wt(h,e))return h[e]},set({_:r},e,n){const{data:s,setupState:o,ctx:i}=r;return $g(o,e)?(o[e]=n,!0):s!==Xt&&wt(s,e)?(s[e]=n,!0):wt(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(i[e]=n,!0)},has({_:{data:r,setupState:e,accessCache:n,ctx:s,appContext:o,propsOptions:i}},l){let a;return!!n[l]||r!==Xt&&wt(r,l)||$g(e,l)||(a=i[0])&&wt(a,l)||wt(s,l)||wt(_u,l)||wt(o.config.globalProperties,l)},defineProperty(r,e,n){return n.get!=null?r._.accessCache[e]=0:wt(n,"value")&&this.set(r,e,n.value,null),Reflect.defineProperty(r,e,n)}};function Bs(){return uT().slots}function cT(){return uT().attrs}function uT(){const r=bt();return r.setupContext||(r.setupContext=OT(r))}function J0(r){return Re(r)?r.reduce((e,n)=>(e[n]=null,e),{}):r}let Gm=!0;function CI(r){const e=Hv(r),n=r.proxy,s=r.ctx;Gm=!1,e.beforeCreate&&X0(e.beforeCreate,r,"bc");const{data:o,computed:i,methods:l,watch:a,provide:c,inject:u,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:g,activated:m,deactivated:v,beforeDestroy:b,beforeUnmount:C,destroyed:y,unmounted:w,render:x,renderTracked:E,renderTriggered:_,errorCaptured:M,serverPrefetch:A,expose:k,inheritAttrs:P,components:$,directives:B,filters:W}=e;if(u&&SI(u,s,null),l)for(const U in l){const Q=l[U];qe(Q)&&(s[U]=Q.bind(n))}if(o){const U=o.call(n,n);pt(U)&&(r.data=St(U))}if(Gm=!0,i)for(const U in i){const Q=i[U],q=qe(Q)?Q.bind(n,n):qe(Q.get)?Q.get.bind(n,n):un,ee=!qe(Q)&&qe(Q.set)?Q.set.bind(n):un,de=z({get:q,set:ee});Object.defineProperty(s,U,{enumerable:!0,configurable:!0,get:()=>de.value,set:ce=>de.value=ce})}if(a)for(const U in a)dT(a[U],s,n,U);if(c){const U=qe(c)?c.call(n):c;Reflect.ownKeys(U).forEach(Q=>{Wt(Q,U[Q])})}d&&X0(d,r,"c");function R(U,Q){Re(Q)?Q.forEach(q=>U(q.bind(n))):Q&&U(Q.bind(n))}if(R(zd,f),R(nt,h),R(pI,p),R(ua,g),R(fI,m),R(iT,v),R(vI,M),R(bI,E),R(mI,_),R(Cn,C),R(qo,w),R(gI,A),Re(k))if(k.length){const U=r.exposed||(r.exposed={});k.forEach(Q=>{Object.defineProperty(U,Q,{get:()=>n[Q],set:q=>n[Q]=q})})}else r.exposed||(r.exposed={});x&&r.render===un&&(r.render=x),P!=null&&(r.inheritAttrs=P),$&&(r.components=$),B&&(r.directives=B)}function SI(r,e,n=un){Re(r)&&(r=Km(r));for(const s in r){const o=r[s];let i;pt(o)?"default"in o?i=Ve(o.from||s,o.default,!0):i=Ve(o.from||s):i=Ve(o),qt(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):e[s]=i}}function X0(r,e,n){ts(Re(r)?r.map(s=>s.bind(e.proxy)):r.bind(e.proxy),e,n)}function dT(r,e,n,s){const o=s.includes(".")?nT(n,s):()=>n[s];if(ft(r)){const i=e[r];qe(i)&&$e(o,i)}else if(qe(r))$e(o,r.bind(n));else if(pt(r))if(Re(r))r.forEach(i=>dT(i,e,n,s));else{const i=qe(r.handler)?r.handler.bind(n):e[r.handler];qe(i)&&$e(o,i,r)}}function Hv(r){const e=r.type,{mixins:n,extends:s}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=r.appContext,a=i.get(e);let c;return a?c=a:!o.length&&!n&&!s?c=e:(c={},o.length&&o.forEach(u=>xh(c,u,l,!0)),xh(c,e,l)),pt(e)&&i.set(e,c),c}function xh(r,e,n,s=!1){const{mixins:o,extends:i}=e;i&&xh(r,i,n,!0),o&&o.forEach(l=>xh(r,l,n,!0));for(const l in e)if(!(s&&l==="expose")){const a=xI[l]||n&&n[l];r[l]=a?a(r[l],e[l]):e[l]}return r}const xI={data:Z0,props:Q0,emits:Q0,methods:gu,computed:gu,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:gu,directives:gu,watch:TI,provide:Z0,inject:EI};function Z0(r,e){return e?r?function(){return hn(qe(r)?r.call(this,this):r,qe(e)?e.call(this,this):e)}:e:r}function EI(r,e){return gu(Km(r),Km(e))}function Km(r){if(Re(r)){const e={};for(let n=0;n1)return n&&qe(e)?e.call(s&&s.proxy):e}}const hT={},pT=()=>Object.create(hT),gT=r=>Object.getPrototypeOf(r)===hT;function AI(r,e,n,s=!1){const o={},i=pT();r.propsDefaults=Object.create(null),mT(r,e,o,i);for(const l in r.propsOptions[0])l in o||(o[l]=void 0);n?r.props=s?o:Nv(o):r.type.props?r.props=o:r.props=i,r.attrs=i}function MI(r,e,n,s){const{props:o,attrs:i,vnode:{patchFlag:l}}=r,a=Mt(o),[c]=r.propsOptions;let u=!1;if((s||l>0)&&!(l&16)){if(l&8){const d=r.vnode.dynamicProps;for(let f=0;f{c=!0;const[h,p]=bT(f,e,!0);hn(l,h),p&&a.push(...p)};!n&&e.mixins.length&&e.mixins.forEach(d),r.extends&&d(r.extends),r.mixins&&r.mixins.forEach(d)}if(!i&&!c)return pt(r)&&s.set(r,Fa),Fa;if(Re(i))for(let d=0;d-1,p[1]=m<0||g-1||wt(p,"default"))&&a.push(f)}}}const u=[l,a];return pt(r)&&s.set(r,u),u}function e1(r){return r[0]!=="$"&&!Su(r)}function t1(r){return r===null?"null":typeof r=="function"?r.name||"":typeof r=="object"&&r.constructor&&r.constructor.name||""}function n1(r,e){return t1(r)===t1(e)}function r1(r,e){return Re(e)?e.findIndex(n=>n1(n,r)):qe(e)&&n1(e,r)?0:-1}const vT=r=>r[0]==="_"||r==="$stable",Uv=r=>Re(r)?r.map(Ks):[Ks(r)],kI=(r,e,n)=>{if(e._n)return e;const s=O((...o)=>Uv(e(...o)),n);return s._c=!1,s},yT=(r,e,n)=>{const s=r._ctx;for(const o in r){if(vT(o))continue;const i=r[o];if(qe(i))e[o]=kI(o,i,s);else if(i!=null){const l=Uv(i);e[o]=()=>l}}},wT=(r,e)=>{const n=Uv(e);r.slots.default=()=>n},PI=(r,e)=>{const n=r.slots=pT();if(r.vnode.shapeFlag&32){const s=e._;s?(hn(n,e),TE(n,"_",s,!0)):yT(e,n)}else e&&wT(r,e)},NI=(r,e,n)=>{const{vnode:s,slots:o}=r;let i=!0,l=Xt;if(s.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:(hn(o,e),!n&&a===1&&delete o._):(i=!e.$stable,yT(e,o)),l=e}else e&&(wT(r,e),l={default:1});if(i)for(const a in o)!vT(a)&&l[a]==null&&delete o[a]};function Jm(r,e,n,s,o=!1){if(Re(r)){r.forEach((h,p)=>Jm(h,e&&(Re(e)?e[p]:e),n,s,o));return}if(Tu(s)&&!o)return;const i=s.shapeFlag&4?Mp(s.component)||s.component.proxy:s.el,l=o?null:i,{i:a,r:c}=r,u=e&&e.r,d=a.refs===Xt?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==c&&(ft(u)?(d[u]=null,wt(f,u)&&(f[u]=null)):qt(u)&&(u.value=null)),qe(c))$i(c,a,12,[l,d]);else{const h=ft(c),p=qt(c);if(h||p){const g=()=>{if(r.f){const m=h?wt(f,c)?f[c]:d[c]:c.value;o?Re(m)&&Tv(m,i):Re(m)?m.includes(i)||m.push(i):h?(d[c]=[i],wt(f,c)&&(f[c]=d[c])):(c.value=[i],r.k&&(d[r.k]=c.value))}else h?(d[c]=l,wt(f,c)&&(f[c]=l)):p&&(c.value=l,r.k&&(d[r.k]=l))};l?(g.id=-1,yr(g,n)):g()}}}const yr=iI;function II(r){return LI(r)}function LI(r,e){const n=_E();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:l,createText:a,createComment:c,setText:u,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=un,insertStaticContent:g}=r,m=(D,L,te,he=null,ge=null,Ce=null,xe=void 0,V=null,F=!!L.dynamicChildren)=>{if(D===L)return;D&&!_l(D,L)&&(he=G(D),ce(D,ge,Ce,!0),D=null),L.patchFlag===-2&&(F=!1,L.dynamicChildren=null);const{type:J,ref:ie,shapeFlag:Ae}=L;switch(J){case da:v(D,L,te,he);break;case rr:b(D,L,te,he);break;case Vg:D==null&&C(L,te,he,xe);break;case De:$(D,L,te,he,ge,Ce,xe,V,F);break;default:Ae&1?x(D,L,te,he,ge,Ce,xe,V,F):Ae&6?B(D,L,te,he,ge,Ce,xe,V,F):(Ae&64||Ae&128)&&J.process(D,L,te,he,ge,Ce,xe,V,F,me)}ie!=null&&ge&&Jm(ie,D&&D.ref,Ce,L||D,!L)},v=(D,L,te,he)=>{if(D==null)s(L.el=a(L.children),te,he);else{const ge=L.el=D.el;L.children!==D.children&&u(ge,L.children)}},b=(D,L,te,he)=>{D==null?s(L.el=c(L.children||""),te,he):L.el=D.el},C=(D,L,te,he)=>{[D.el,D.anchor]=g(D.children,L,te,he,D.el,D.anchor)},y=({el:D,anchor:L},te,he)=>{let ge;for(;D&&D!==L;)ge=h(D),s(D,te,he),D=ge;s(L,te,he)},w=({el:D,anchor:L})=>{let te;for(;D&&D!==L;)te=h(D),o(D),D=te;o(L)},x=(D,L,te,he,ge,Ce,xe,V,F)=>{L.type==="svg"?xe="svg":L.type==="math"&&(xe="mathml"),D==null?E(L,te,he,ge,Ce,xe,V,F):A(D,L,ge,Ce,xe,V,F)},E=(D,L,te,he,ge,Ce,xe,V)=>{let F,J;const{props:ie,shapeFlag:Ae,transition:re,dirs:Z}=D;if(F=D.el=l(D.type,Ce,ie&&ie.is,ie),Ae&8?d(F,D.children):Ae&16&&M(D.children,F,null,he,ge,Dg(D,Ce),xe,V),Z&&gl(D,null,he,"created"),_(F,D,D.scopeId,xe,he),ie){for(const je in ie)je!=="value"&&!Su(je)&&i(F,je,null,ie[je],Ce,D.children,he,ge,Ee);"value"in ie&&i(F,"value",null,ie.value,Ce),(J=ie.onVnodeBeforeMount)&&qs(J,he,D)}Z&&gl(D,null,he,"beforeMount");const ae=RI(ge,re);ae&&re.beforeEnter(F),s(F,L,te),((J=ie&&ie.onVnodeMounted)||ae||Z)&&yr(()=>{J&&qs(J,he,D),ae&&re.enter(F),Z&&gl(D,null,he,"mounted")},ge)},_=(D,L,te,he,ge)=>{if(te&&p(D,te),he)for(let Ce=0;Ce{for(let J=F;J{const V=L.el=D.el;let{patchFlag:F,dynamicChildren:J,dirs:ie}=L;F|=D.patchFlag&16;const Ae=D.props||Xt,re=L.props||Xt;let Z;if(te&&ml(te,!1),(Z=re.onVnodeBeforeUpdate)&&qs(Z,te,L,D),ie&&gl(L,D,te,"beforeUpdate"),te&&ml(te,!0),J?k(D.dynamicChildren,J,V,te,he,Dg(L,ge),Ce):xe||Q(D,L,V,null,te,he,Dg(L,ge),Ce,!1),F>0){if(F&16)P(V,L,Ae,re,te,he,ge);else if(F&2&&Ae.class!==re.class&&i(V,"class",null,re.class,ge),F&4&&i(V,"style",Ae.style,re.style,ge),F&8){const ae=L.dynamicProps;for(let je=0;je{Z&&qs(Z,te,L,D),ie&&gl(L,D,te,"updated")},he)},k=(D,L,te,he,ge,Ce,xe)=>{for(let V=0;V{if(te!==he){if(te!==Xt)for(const V in te)!Su(V)&&!(V in he)&&i(D,V,te[V],null,xe,L.children,ge,Ce,Ee);for(const V in he){if(Su(V))continue;const F=he[V],J=te[V];F!==J&&V!=="value"&&i(D,V,J,F,xe,L.children,ge,Ce,Ee)}"value"in he&&i(D,"value",te.value,he.value,xe)}},$=(D,L,te,he,ge,Ce,xe,V,F)=>{const J=L.el=D?D.el:a(""),ie=L.anchor=D?D.anchor:a("");let{patchFlag:Ae,dynamicChildren:re,slotScopeIds:Z}=L;Z&&(V=V?V.concat(Z):Z),D==null?(s(J,te,he),s(ie,te,he),M(L.children||[],te,ie,ge,Ce,xe,V,F)):Ae>0&&Ae&64&&re&&D.dynamicChildren?(k(D.dynamicChildren,re,te,ge,Ce,xe,V),(L.key!=null||ge&&L===ge.subTree)&&Wv(D,L,!0)):Q(D,L,te,ie,ge,Ce,xe,V,F)},B=(D,L,te,he,ge,Ce,xe,V,F)=>{L.slotScopeIds=V,D==null?L.shapeFlag&512?ge.ctx.activate(L,te,he,xe,F):W(L,te,he,ge,Ce,xe,F):I(D,L,F)},W=(D,L,te,he,ge,Ce,xe)=>{const V=D.component=WI(D,he,ge);if(_p(D)&&(V.ctx.renderer=me),qI(V),V.asyncDep){if(ge&&ge.registerDep(V,R),!D.el){const F=V.subTree=T(rr);b(null,F,L,te)}}else R(V,D,L,te,ge,Ce,xe)},I=(D,L,te)=>{const he=L.component=D.component;if(nI(D,L,te))if(he.asyncDep&&!he.asyncResolved){U(he,L,te);return}else he.next=L,JN(he.update),he.effect.dirty=!0,he.update();else L.el=D.el,he.vnode=L},R=(D,L,te,he,ge,Ce,xe)=>{const V=()=>{if(D.isMounted){let{next:ie,bu:Ae,u:re,parent:Z,vnode:ae}=D;{const Je=CT(D);if(Je){ie&&(ie.el=ae.el,U(D,ie,xe)),Je.asyncDep.then(()=>{D.isUnmounted||V()});return}}let je=ie,Qe;ml(D,!1),ie?(ie.el=ae.el,U(D,ie,xe)):ie=ae,Ae&&th(Ae),(Qe=ie.props&&ie.props.onVnodeBeforeUpdate)&&qs(Qe,Z,ie,ae),ml(D,!0);const Me=Lg(D),ke=D.subTree;D.subTree=Me,m(ke,Me,f(ke.el),G(ke),D,ge,Ce),ie.el=Me.el,je===null&&rI(D,Me.el),re&&yr(re,ge),(Qe=ie.props&&ie.props.onVnodeUpdated)&&yr(()=>qs(Qe,Z,ie,ae),ge)}else{let ie;const{el:Ae,props:re}=L,{bm:Z,m:ae,parent:je}=D,Qe=Tu(L);if(ml(D,!1),Z&&th(Z),!Qe&&(ie=re&&re.onVnodeBeforeMount)&&qs(ie,je,L),ml(D,!0),Ae&&Se){const Me=()=>{D.subTree=Lg(D),Se(Ae,D.subTree,D,ge,null)};Qe?L.type.__asyncLoader().then(()=>!D.isUnmounted&&Me()):Me()}else{const Me=D.subTree=Lg(D);m(null,Me,te,he,D,ge,Ce),L.el=Me.el}if(ae&&yr(ae,ge),!Qe&&(ie=re&&re.onVnodeMounted)){const Me=L;yr(()=>qs(ie,je,Me),ge)}(L.shapeFlag&256||je&&Tu(je.vnode)&&je.vnode.shapeFlag&256)&&D.a&&yr(D.a,ge),D.isMounted=!0,L=te=he=null}},F=D.effect=new Ov(V,un,()=>Dv(J),D.scope),J=D.update=()=>{F.dirty&&F.run()};J.id=D.uid,ml(D,!0),J()},U=(D,L,te)=>{L.component=D;const he=D.vnode.props;D.vnode=L,D.next=null,MI(D,L.props,he,te),NI(D,L.children,te),Qi(),q0(D),el()},Q=(D,L,te,he,ge,Ce,xe,V,F=!1)=>{const J=D&&D.children,ie=D?D.shapeFlag:0,Ae=L.children,{patchFlag:re,shapeFlag:Z}=L;if(re>0){if(re&128){ee(J,Ae,te,he,ge,Ce,xe,V,F);return}else if(re&256){q(J,Ae,te,he,ge,Ce,xe,V,F);return}}Z&8?(ie&16&&Ee(J,ge,Ce),Ae!==J&&d(te,Ae)):ie&16?Z&16?ee(J,Ae,te,he,ge,Ce,xe,V,F):Ee(J,ge,Ce,!0):(ie&8&&d(te,""),Z&16&&M(Ae,te,he,ge,Ce,xe,V,F))},q=(D,L,te,he,ge,Ce,xe,V,F)=>{D=D||Fa,L=L||Fa;const J=D.length,ie=L.length,Ae=Math.min(J,ie);let re;for(re=0;reie?Ee(D,ge,Ce,!0,!1,Ae):M(L,te,he,ge,Ce,xe,V,F,Ae)},ee=(D,L,te,he,ge,Ce,xe,V,F)=>{let J=0;const ie=L.length;let Ae=D.length-1,re=ie-1;for(;J<=Ae&&J<=re;){const Z=D[J],ae=L[J]=F?vi(L[J]):Ks(L[J]);if(_l(Z,ae))m(Z,ae,te,null,ge,Ce,xe,V,F);else break;J++}for(;J<=Ae&&J<=re;){const Z=D[Ae],ae=L[re]=F?vi(L[re]):Ks(L[re]);if(_l(Z,ae))m(Z,ae,te,null,ge,Ce,xe,V,F);else break;Ae--,re--}if(J>Ae){if(J<=re){const Z=re+1,ae=Zre)for(;J<=Ae;)ce(D[J],ge,Ce,!0),J++;else{const Z=J,ae=J,je=new Map;for(J=ae;J<=re;J++){const Fe=L[J]=F?vi(L[J]):Ks(L[J]);Fe.key!=null&&je.set(Fe.key,J)}let Qe,Me=0;const ke=re-ae+1;let Je=!1,it=0;const ue=new Array(ke);for(J=0;J=ke){ce(Fe,ge,Ce,!0);continue}let lt;if(Fe.key!=null)lt=je.get(Fe.key);else for(Qe=ae;Qe<=re;Qe++)if(ue[Qe-ae]===0&&_l(Fe,L[Qe])){lt=Qe;break}lt===void 0?ce(Fe,ge,Ce,!0):(ue[lt-ae]=J+1,lt>=it?it=lt:Je=!0,m(Fe,L[lt],te,null,ge,Ce,xe,V,F),Me++)}const Ie=Je?$I(ue):Fa;for(Qe=Ie.length-1,J=ke-1;J>=0;J--){const Fe=ae+J,lt=L[Fe],ct=Fe+1{const{el:Ce,type:xe,transition:V,children:F,shapeFlag:J}=D;if(J&6){de(D.component.subTree,L,te,he);return}if(J&128){D.suspense.move(L,te,he);return}if(J&64){xe.move(D,L,te,me);return}if(xe===De){s(Ce,L,te);for(let Ae=0;AeV.enter(Ce),ge);else{const{leave:Ae,delayLeave:re,afterLeave:Z}=V,ae=()=>s(Ce,L,te),je=()=>{Ae(Ce,()=>{ae(),Z&&Z()})};re?re(Ce,ae,je):je()}else s(Ce,L,te)},ce=(D,L,te,he=!1,ge=!1)=>{const{type:Ce,props:xe,ref:V,children:F,dynamicChildren:J,shapeFlag:ie,patchFlag:Ae,dirs:re}=D;if(V!=null&&Jm(V,null,te,D,!0),ie&256){L.ctx.deactivate(D);return}const Z=ie&1&&re,ae=!Tu(D);let je;if(ae&&(je=xe&&xe.onVnodeBeforeUnmount)&&qs(je,L,D),ie&6)we(D.component,te,he);else{if(ie&128){D.suspense.unmount(te,he);return}Z&&gl(D,null,L,"beforeUnmount"),ie&64?D.type.remove(D,L,te,ge,me,he):J&&(Ce!==De||Ae>0&&Ae&64)?Ee(J,L,te,!1,!0):(Ce===De&&Ae&384||!ge&&ie&16)&&Ee(F,L,te),he&&Te(D)}(ae&&(je=xe&&xe.onVnodeUnmounted)||Z)&&yr(()=>{je&&qs(je,L,D),Z&&gl(D,null,L,"unmounted")},te)},Te=D=>{const{type:L,el:te,anchor:he,transition:ge}=D;if(L===De){fe(te,he);return}if(L===Vg){w(D);return}const Ce=()=>{o(te),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(D.shapeFlag&1&&ge&&!ge.persisted){const{leave:xe,delayLeave:V}=ge,F=()=>xe(te,Ce);V?V(D.el,Ce,F):F()}else Ce()},fe=(D,L)=>{let te;for(;D!==L;)te=h(D),o(D),D=te;o(L)},we=(D,L,te)=>{const{bum:he,scope:ge,update:Ce,subTree:xe,um:V}=D;he&&th(he),ge.stop(),Ce&&(Ce.active=!1,ce(xe,D,L,te)),V&&yr(V,L),yr(()=>{D.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},Ee=(D,L,te,he=!1,ge=!1,Ce=0)=>{for(let xe=Ce;xeD.shapeFlag&6?G(D.component.subTree):D.shapeFlag&128?D.suspense.next():h(D.anchor||D.el);let ne=!1;const se=(D,L,te)=>{D==null?L._vnode&&ce(L._vnode,null,null,!0):m(L._vnode||null,D,L,null,null,null,te),ne||(ne=!0,q0(),ZE(),ne=!1),L._vnode=D},me={p:m,um:ce,m:de,r:Te,mt:W,mc:M,pc:Q,pbc:k,n:G,o:r};let Pe,Se;return e&&([Pe,Se]=e(me)),{render:se,hydrate:Pe,createApp:OI(se,Pe)}}function Dg({type:r,props:e},n){return n==="svg"&&r==="foreignObject"||n==="mathml"&&r==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function ml({effect:r,update:e},n){r.allowRecurse=e.allowRecurse=n}function RI(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function Wv(r,e,n=!1){const s=r.children,o=e.children;if(Re(s)&&Re(o))for(let i=0;i>1,r[n[a]]0&&(e[s]=n[i-1]),n[i]=s)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=e[l];return n}function CT(r){const e=r.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:CT(e)}const DI=r=>r.__isTeleport,Au=r=>r&&(r.disabled||r.disabled===""),s1=r=>typeof SVGElement<"u"&&r instanceof SVGElement,o1=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,Xm=(r,e)=>{const n=r&&r.to;return ft(n)?e?e(n):null:n},VI={name:"Teleport",__isTeleport:!0,process(r,e,n,s,o,i,l,a,c,u){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:g,createText:m,createComment:v}}=u,b=Au(e.props);let{shapeFlag:C,children:y,dynamicChildren:w}=e;if(r==null){const x=e.el=m(""),E=e.anchor=m("");p(x,n,s),p(E,n,s);const _=e.target=Xm(e.props,g),M=e.targetAnchor=m("");_&&(p(M,_),l==="svg"||s1(_)?l="svg":(l==="mathml"||o1(_))&&(l="mathml"));const A=(k,P)=>{C&16&&d(y,k,P,o,i,l,a,c)};b?A(n,E):_&&A(_,M)}else{e.el=r.el;const x=e.anchor=r.anchor,E=e.target=r.target,_=e.targetAnchor=r.targetAnchor,M=Au(r.props),A=M?n:E,k=M?x:_;if(l==="svg"||s1(E)?l="svg":(l==="mathml"||o1(E))&&(l="mathml"),w?(h(r.dynamicChildren,w,A,o,i,l,a),Wv(r,e,!0)):c||f(r,e,A,k,o,i,l,a,!1),b)M?e.props&&r.props&&e.props.to!==r.props.to&&(e.props.to=r.props.to):Tf(e,n,x,u,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const P=e.target=Xm(e.props,g);P&&Tf(e,P,null,u,0)}else M&&Tf(e,E,_,u,1)}ST(e)},remove(r,e,n,s,{um:o,o:{remove:i}},l){const{shapeFlag:a,children:c,anchor:u,targetAnchor:d,target:f,props:h}=r;if(f&&i(d),l&&i(u),a&16){const p=l||!Au(h);for(let g=0;g0?Ts||Fa:null,BI(),sd>0&&Ts&&Ts.push(r),r}function X(r,e,n,s,o,i){return xT(H(r,e,n,s,o,i,!0))}function ye(r,e,n,s,o){return xT(T(r,e,n,s,o,!0))}function Mn(r){return r?r.__v_isVNode===!0:!1}function _l(r,e){return r.type===e.type&&r.key===e.key}const ET=({key:r})=>r??null,nh=({ref:r,ref_key:e,ref_for:n})=>(typeof r=="number"&&(r=""+r),r!=null?ft(r)||qt(r)||qe(r)?{i:On,r,k:e,f:!!n}:r:null);function H(r,e=null,n=null,s=0,o=null,i=r===De?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&ET(e),ref:e&&nh(e),scopeId:Tp,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:On};return a?(qv(c,n),i&128&&r.normalize(c)):n&&(c.shapeFlag|=ft(n)?8:16),sd>0&&!l&&Ts&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ts.push(c),c}const T=zI;function zI(r,e=null,n=null,s=0,o=null,i=!1){if((!r||r===tT)&&(r=rr),Mn(r)){const a=Fo(r,e,!0);return n&&qv(a,n),sd>0&&!i&&Ts&&(a.shapeFlag&6?Ts[Ts.indexOf(r)]=a:Ts.push(a)),a.patchFlag|=-2,a}if(JI(r)&&(r=r.__vccOpts),e){e=jI(e);let{class:a,style:c}=e;a&&!ft(a)&&(e.class=Y(a)),pt(c)&&(WE(c)&&!Re(c)&&(c=hn({},c)),e.style=vt(c))}const l=ft(r)?1:oI(r)?128:DI(r)?64:pt(r)?4:qe(r)?2:0;return H(r,e,n,s,o,l,i,!0)}function jI(r){return r?WE(r)||gT(r)?hn({},r):r:null}function Fo(r,e,n=!1,s=!1){const{props:o,ref:i,patchFlag:l,children:a,transition:c}=r,u=e?Dr(o||{},e):o,d={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&ET(u),ref:e&&e.ref?n&&i?Re(i)?i.concat(nh(e)):[i,nh(e)]:nh(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:a,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==De?l===-1?16:l|16:l,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:c,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Fo(r.ssContent),ssFallback:r.ssFallback&&Fo(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return c&&s&&(d.transition=c.clone(d)),d}function le(r=" ",e=0){return T(da,null,r,e)}function ve(r="",e=!1){return e?(N(),ye(rr,null,r)):T(rr,null,r)}function Ks(r){return r==null||typeof r=="boolean"?T(rr):Re(r)?T(De,null,r.slice()):typeof r=="object"?vi(r):T(da,null,String(r))}function vi(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Fo(r)}function qv(r,e){let n=0;const{shapeFlag:s}=r;if(e==null)e=null;else if(Re(e))n=16;else if(typeof e=="object")if(s&65){const o=e.default;o&&(o._c&&(o._d=!1),qv(r,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!gT(e)?e._ctx=On:o===3&&On&&(On.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else qe(e)?(e={default:e,_ctx:On},n=32):(e=String(e),s&64?(n=16,e=[le(e)]):n=8);r.children=e,r.shapeFlag|=n}function Dr(...r){const e={};for(let n=0;nGn||On;let Eh,Zm;{const r=_E(),e=(n,s)=>{let o;return(o=r[n])||(o=r[n]=[]),o.push(s),i=>{o.length>1?o.forEach(l=>l(i)):o[0](i)}};Eh=e("__VUE_INSTANCE_SETTERS__",n=>Gn=n),Zm=e("__VUE_SSR_SETTERS__",n=>Ap=n)}const jd=r=>{const e=Gn;return Eh(r),r.scope.on(),()=>{r.scope.off(),Eh(e)}},l1=()=>{Gn&&Gn.scope.off(),Eh(null)};function TT(r){return r.vnode.shapeFlag&4}let Ap=!1;function qI(r,e=!1){e&&Zm(e);const{props:n,children:s}=r.vnode,o=TT(r);AI(r,n,o,e),PI(r,s);const i=o?GI(r,e):void 0;return e&&Zm(!1),i}function GI(r,e){const n=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,wI);const{setup:s}=n;if(s){const o=r.setupContext=s.length>1?OT(r):null,i=jd(r);Qi();const l=$i(s,r,0,[r.props,o]);if(el(),i(),SE(l)){if(l.then(l1,l1),e)return l.then(a=>{a1(r,a,e)}).catch(a=>{xp(a,r,0)});r.asyncDep=l}else a1(r,l,e)}else _T(r,e)}function a1(r,e,n){qe(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:pt(e)&&(r.setupState=KE(e)),_T(r,n)}let c1;function _T(r,e,n){const s=r.type;if(!r.render){if(!e&&c1&&!s.render){const o=s.template||Hv(r).template;if(o){const{isCustomElement:i,compilerOptions:l}=r.appContext.config,{delimiters:a,compilerOptions:c}=s,u=hn(hn({isCustomElement:i,delimiters:a},l),c);s.render=c1(o,u)}}r.render=s.render||un}{const o=jd(r);Qi();try{CI(r)}finally{el(),o()}}}const KI={get(r,e){return _r(r,"get",""),r[e]}};function OT(r){const e=n=>{r.exposed=n||{}};return{attrs:new Proxy(r.attrs,KI),slots:r.slots,emit:r.emit,expose:e}}function Mp(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(KE(Zu(r.exposed)),{get(e,n){if(n in e)return e[n];if(n in _u)return _u[n](r)},has(e,n){return n in e||n in _u}}))}function YI(r,e=!0){return qe(r)?r.displayName||r.name:r.name||e&&r.__name}function JI(r){return qe(r)&&"__vccOpts"in r}const z=(r,e)=>jN(r,e,Ap);function Ye(r,e,n){const s=arguments.length;return s===2?pt(e)&&!Re(e)?Mn(e)?T(r,null,[e]):T(r,e):T(r,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Mn(n)&&(n=[n]),T(r,e,n))}const XI="3.4.27",ZI=un;/** -* @vue/runtime-dom v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const QI="http://www.w3.org/2000/svg",eL="http://www.w3.org/1998/Math/MathML",yi=typeof document<"u"?document:null,u1=yi&&yi.createElement("template"),tL={insert:(r,e,n)=>{e.insertBefore(r,n||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,n,s)=>{const o=e==="svg"?yi.createElementNS(QI,r):e==="mathml"?yi.createElementNS(eL,r):yi.createElement(r,n?{is:n}:void 0);return r==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:r=>yi.createTextNode(r),createComment:r=>yi.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>yi.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,n,s,o,i){const l=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{u1.innerHTML=s==="svg"?`${r}`:s==="mathml"?`${r}`:r;const a=u1.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,n)}return[l?l.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},ii="transition",iu="animation",Xa=Symbol("_vtc"),Or=(r,{slots:e})=>Ye(dI,MT(r),e);Or.displayName="Transition";const AT={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},nL=Or.props=hn({},sT,AT),bl=(r,e=[])=>{Re(r)?r.forEach(n=>n(...e)):r&&r(...e)},d1=r=>r?Re(r)?r.some(e=>e.length>1):r.length>1:!1;function MT(r){const e={};for(const $ in r)$ in AT||(e[$]=r[$]);if(r.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=l,appearToClass:d=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=r,g=rL(o),m=g&&g[0],v=g&&g[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:y,onLeave:w,onLeaveCancelled:x,onBeforeAppear:E=b,onAppear:_=C,onAppearCancelled:M=y}=e,A=($,B,W)=>{ui($,B?d:a),ui($,B?u:l),W&&W()},k=($,B)=>{$._isLeaving=!1,ui($,f),ui($,p),ui($,h),B&&B()},P=$=>(B,W)=>{const I=$?_:C,R=()=>A(B,$,W);bl(I,[B,R]),f1(()=>{ui(B,$?c:i),_o(B,$?d:a),d1(I)||h1(B,s,m,R)})};return hn(e,{onBeforeEnter($){bl(b,[$]),_o($,i),_o($,l)},onBeforeAppear($){bl(E,[$]),_o($,c),_o($,u)},onEnter:P(!1),onAppear:P(!0),onLeave($,B){$._isLeaving=!0;const W=()=>k($,B);_o($,f),_o($,h),PT(),f1(()=>{$._isLeaving&&(ui($,f),_o($,p),d1(w)||h1($,s,v,W))}),bl(w,[$,W])},onEnterCancelled($){A($,!1),bl(y,[$])},onAppearCancelled($){A($,!0),bl(M,[$])},onLeaveCancelled($){k($),bl(x,[$])}})}function rL(r){if(r==null)return null;if(pt(r))return[Fg(r.enter),Fg(r.leave)];{const e=Fg(r);return[e,e]}}function Fg(r){return hN(r)}function _o(r,e){e.split(/\s+/).forEach(n=>n&&r.classList.add(n)),(r[Xa]||(r[Xa]=new Set)).add(e)}function ui(r,e){e.split(/\s+/).forEach(s=>s&&r.classList.remove(s));const n=r[Xa];n&&(n.delete(e),n.size||(r[Xa]=void 0))}function f1(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let sL=0;function h1(r,e,n,s){const o=r._endId=++sL,i=()=>{o===r._endId&&s()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:c}=kT(r,e);if(!l)return s();const u=l+"end";let d=0;const f=()=>{r.removeEventListener(u,h),i()},h=p=>{p.target===r&&++d>=c&&f()};setTimeout(()=>{d(n[g]||"").split(", "),o=s(`${ii}Delay`),i=s(`${ii}Duration`),l=p1(o,i),a=s(`${iu}Delay`),c=s(`${iu}Duration`),u=p1(a,c);let d=null,f=0,h=0;e===ii?l>0&&(d=ii,f=l,h=i.length):e===iu?u>0&&(d=iu,f=u,h=c.length):(f=Math.max(l,u),d=f>0?l>u?ii:iu:null,h=d?d===ii?i.length:c.length:0);const p=d===ii&&/\b(transform|all)(,|$)/.test(s(`${ii}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}function p1(r,e){for(;r.lengthg1(n)+g1(r[s])))}function g1(r){return r==="auto"?0:Number(r.slice(0,-1).replace(",","."))*1e3}function PT(){return document.body.offsetHeight}function oL(r,e,n){const s=r[Xa];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?r.removeAttribute("class"):n?r.setAttribute("class",e):r.className=e}const Th=Symbol("_vod"),NT=Symbol("_vsh"),st={beforeMount(r,{value:e},{transition:n}){r[Th]=r.style.display==="none"?"":r.style.display,n&&e?n.beforeEnter(r):lu(r,e)},mounted(r,{value:e},{transition:n}){n&&e&&n.enter(r)},updated(r,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(r),lu(r,!0),s.enter(r)):s.leave(r,()=>{lu(r,!1)}):lu(r,e))},beforeUnmount(r,{value:e}){lu(r,e)}};function lu(r,e){r.style.display=e?r[Th]:"none",r[NT]=!e}const iL=Symbol(""),lL=/(^|;)\s*display\s*:/;function aL(r,e,n){const s=r.style,o=ft(n);let i=!1;if(n&&!o){if(e)if(ft(e))for(const l of e.split(";")){const a=l.slice(0,l.indexOf(":")).trim();n[a]==null&&rh(s,a,"")}else for(const l in e)n[l]==null&&rh(s,l,"");for(const l in n)l==="display"&&(i=!0),rh(s,l,n[l])}else if(o){if(e!==n){const l=s[iL];l&&(n+=";"+l),s.cssText=n,i=lL.test(n)}}else e&&r.removeAttribute("style");Th in r&&(r[Th]=i?s.display:"",r[NT]&&(s.display="none"))}const m1=/\s*!important$/;function rh(r,e,n){if(Re(n))n.forEach(s=>rh(r,e,s));else if(n==null&&(n=""),e.startsWith("--"))r.setProperty(e,n);else{const s=cL(r,e);m1.test(n)?r.setProperty(Zi(s),n.replace(m1,""),"important"):r[s]=n}}const b1=["Webkit","Moz","ms"],Bg={};function cL(r,e){const n=Bg[e];if(n)return n;let s=Ls(e);if(s!=="filter"&&s in r)return Bg[e]=s;s=Dd(s);for(let o=0;ozg||(gL.then(()=>zg=0),zg=Date.now());function bL(r,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ts(vL(s,n.value),e,5,[s])};return n.value=r,n.attached=mL(),n}function vL(r,e){if(Re(e)){const n=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{n.call(r),r._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const C1=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,yL=(r,e,n,s,o,i,l,a,c)=>{const u=o==="svg";e==="class"?oL(r,s,u):e==="style"?aL(r,n,s):yp(e)?Ev(e)||hL(r,e,n,s,l):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wL(r,e,s,u))?dL(r,e,s,i,l,a,c):(e==="true-value"?r._trueValue=s:e==="false-value"&&(r._falseValue=s),uL(r,e,s,u))};function wL(r,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in r&&C1(e)&&qe(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=r.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return C1(e)&&ft(n)?!1:e in r}const IT=new WeakMap,LT=new WeakMap,_h=Symbol("_moveCb"),S1=Symbol("_enterCb"),RT={name:"TransitionGroup",props:hn({},nL,{tag:String,moveClass:String}),setup(r,{slots:e}){const n=bt(),s=rT();let o,i;return ua(()=>{if(!o.length)return;const l=r.moveClass||`${r.name||"v"}-move`;if(!_L(o[0].el,n.vnode.el,l))return;o.forEach(xL),o.forEach(EL);const a=o.filter(TL);PT(),a.forEach(c=>{const u=c.el,d=u.style;_o(u,l),d.transform=d.webkitTransform=d.transitionDuration="";const f=u[_h]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u[_h]=null,ui(u,l))};u.addEventListener("transitionend",f)})}),()=>{const l=Mt(r),a=MT(l);let c=l.tag||De;if(o=[],i)for(let u=0;udelete r.mode;RT.props;const SL=RT;function xL(r){const e=r.el;e[_h]&&e[_h](),e[S1]&&e[S1]()}function EL(r){LT.set(r,r.el.getBoundingClientRect())}function TL(r){const e=IT.get(r),n=LT.get(r),s=e.left-n.left,o=e.top-n.top;if(s||o){const i=r.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${o}px)`,i.transitionDuration="0s",r}}function _L(r,e,n){const s=r.cloneNode(),o=r[Xa];o&&o.forEach(a=>{a.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:l}=kT(s);return i.removeChild(s),l}const Za=r=>{const e=r.props["onUpdate:modelValue"]||!1;return Re(e)?n=>th(e,n):e};function OL(r){r.target.composing=!0}function x1(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ro=Symbol("_assign"),AL={created(r,{modifiers:{lazy:e,trim:n,number:s}},o){r[Ro]=Za(o);const i=s||o.props&&o.props.type==="number";Ti(r,e?"change":"input",l=>{if(l.target.composing)return;let a=r.value;n&&(a=a.trim()),i&&(a=zm(a)),r[Ro](a)}),n&&Ti(r,"change",()=>{r.value=r.value.trim()}),e||(Ti(r,"compositionstart",OL),Ti(r,"compositionend",x1),Ti(r,"change",x1))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:n,trim:s,number:o}},i){if(r[Ro]=Za(i),r.composing)return;const l=(o||r.type==="number")&&!/^0\d/.test(r.value)?zm(r.value):r.value,a=e??"";l!==a&&(document.activeElement===r&&r.type!=="range"&&(n||s&&r.value.trim()===a)||(r.value=a))}},zi={deep:!0,created(r,e,n){r[Ro]=Za(n),Ti(r,"change",()=>{const s=r._modelValue,o=DT(r),i=r.checked,l=r[Ro];if(Re(s)){const a=AE(s,o),c=a!==-1;if(i&&!c)l(s.concat(o));else if(!i&&c){const u=[...s];u.splice(a,1),l(u)}}else if(wp(s)){const a=new Set(s);i?a.add(o):a.delete(o),l(a)}else l(VT(r,i))})},mounted:E1,beforeUpdate(r,e,n){r[Ro]=Za(n),E1(r,e,n)}};function E1(r,{value:e,oldValue:n},s){r._modelValue=e,Re(e)?r.checked=AE(e,s.props.value)>-1:wp(e)?r.checked=e.has(s.props.value):e!==n&&(r.checked=Ja(e,VT(r,!0)))}const $T={created(r,{value:e},n){r.checked=Ja(e,n.props.value),r[Ro]=Za(n),Ti(r,"change",()=>{r[Ro](DT(r))})},beforeUpdate(r,{value:e,oldValue:n},s){r[Ro]=Za(s),e!==n&&(r.checked=Ja(e,s.props.value))}};function DT(r){return"_value"in r?r._value:r.value}function VT(r,e){const n=e?"_trueValue":"_falseValue";return n in r?r[n]:e}const ML=["ctrl","shift","alt","meta"],kL={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>ML.some(n=>r[`${n}Key`]&&!e.includes(n))},It=(r,e)=>{const n=r._withMods||(r._withMods={}),s=e.join(".");return n[s]||(n[s]=(o,...i)=>{for(let l=0;l{const n=r._withKeys||(r._withKeys={}),s=e.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=Zi(o.key);if(e.some(l=>l===i||PL[l]===i))return r(o)})},NL=hn({patchProp:yL},tL);let T1;function FT(){return T1||(T1=II(NL))}const ji=(...r)=>{FT().render(...r)},Gv=(...r)=>{const e=FT().createApp(...r),{mount:n}=e;return e.mount=s=>{const o=LL(s);if(!o)return;const i=e._component;!qe(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,IL(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},e};function IL(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function LL(r){return ft(r)?document.querySelector(r):r}/*! - * vue-router v4.3.2 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const Aa=typeof document<"u";function RL(r){return r.__esModule||r[Symbol.toStringTag]==="Module"}const Dt=Object.assign;function jg(r,e){const n={};for(const s in e){const o=e[s];n[s]=Rs(o)?o.map(r):r(o)}return n}const ku=()=>{},Rs=Array.isArray,BT=/#/g,$L=/&/g,DL=/\//g,VL=/=/g,FL=/\?/g,zT=/\+/g,BL=/%5B/g,zL=/%5D/g,jT=/%5E/g,jL=/%60/g,HT=/%7B/g,HL=/%7C/g,UT=/%7D/g,UL=/%20/g;function Kv(r){return encodeURI(""+r).replace(HL,"|").replace(BL,"[").replace(zL,"]")}function WL(r){return Kv(r).replace(HT,"{").replace(UT,"}").replace(jT,"^")}function Qm(r){return Kv(r).replace(zT,"%2B").replace(UL,"+").replace(BT,"%23").replace($L,"%26").replace(jL,"`").replace(HT,"{").replace(UT,"}").replace(jT,"^")}function qL(r){return Qm(r).replace(VL,"%3D")}function GL(r){return Kv(r).replace(BT,"%23").replace(FL,"%3F")}function KL(r){return r==null?"":GL(r).replace(DL,"%2F")}function od(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const YL=/\/$/,JL=r=>r.replace(YL,"");function Hg(r,e,n="/"){let s,o={},i="",l="";const a=e.indexOf("#");let c=e.indexOf("?");return a=0&&(c=-1),c>-1&&(s=e.slice(0,c),i=e.slice(c+1,a>-1?a:e.length),o=r(i)),a>-1&&(s=s||e.slice(0,a),l=e.slice(a,e.length)),s=eR(s??e,n),{fullPath:s+(i&&"?")+i+l,path:s,query:o,hash:od(l)}}function XL(r,e){const n=e.query?r(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function _1(r,e){return!e||!r.toLowerCase().startsWith(e.toLowerCase())?r:r.slice(e.length)||"/"}function ZL(r,e,n){const s=e.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&Qa(e.matched[s],n.matched[o])&&WT(e.params,n.params)&&r(e.query)===r(n.query)&&e.hash===n.hash}function Qa(r,e){return(r.aliasOf||r)===(e.aliasOf||e)}function WT(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const n in r)if(!QL(r[n],e[n]))return!1;return!0}function QL(r,e){return Rs(r)?O1(r,e):Rs(e)?O1(e,r):r===e}function O1(r,e){return Rs(e)?r.length===e.length&&r.every((n,s)=>n===e[s]):r.length===1&&r[0]===e}function eR(r,e){if(r.startsWith("/"))return r;if(!r)return e;const n=e.split("/"),s=r.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let i=n.length-1,l,a;for(l=0;l1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(l).join("/")}var id;(function(r){r.pop="pop",r.push="push"})(id||(id={}));var Pu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Pu||(Pu={}));function tR(r){if(!r)if(Aa){const e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),JL(r)}const nR=/^[^#]+#/;function rR(r,e){return r.replace(nR,"#")+e}function sR(r,e){const n=document.documentElement.getBoundingClientRect(),s=r.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const kp=()=>({left:window.scrollX,top:window.scrollY});function oR(r){let e;if("el"in r){const n=r.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=sR(o,r)}else e=r;"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 A1(r,e){return(history.state?history.state.position-e:-1)+r}const eb=new Map;function iR(r,e){eb.set(r,e)}function lR(r){const e=eb.get(r);return eb.delete(r),e}let aR=()=>location.protocol+"//"+location.host;function qT(r,e){const{pathname:n,search:s,hash:o}=e,i=r.indexOf("#");if(i>-1){let a=o.includes(r.slice(i))?r.slice(i).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),_1(c,"")}return _1(n,r)+s+o}function cR(r,e,n,s){let o=[],i=[],l=null;const a=({state:h})=>{const p=qT(r,location),g=n.value,m=e.value;let v=0;if(h){if(n.value=p,e.value=h,l&&l===g){l=null;return}v=m?h.position-m.position:0}else s(p);o.forEach(b=>{b(n.value,g,{delta:v,type:id.pop,direction:v?v>0?Pu.forward:Pu.back:Pu.unknown})})};function c(){l=n.value}function u(h){o.push(h);const p=()=>{const g=o.indexOf(h);g>-1&&o.splice(g,1)};return i.push(p),p}function d(){const{history:h}=window;h.state&&h.replaceState(Dt({},h.state,{scroll:kp()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function M1(r,e,n,s=!1,o=!1){return{back:r,current:e,forward:n,replaced:s,position:window.history.length,scroll:o?kp():null}}function uR(r){const{history:e,location:n}=window,s={value:qT(r,n)},o={value:e.state};o.value||i(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,u,d){const f=r.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?r:r.slice(f))+c:aR()+r+c;try{e[d?"replaceState":"pushState"](u,"",h),o.value=u}catch{n[d?"replace":"assign"](h)}}function l(c,u){const d=Dt({},e.state,M1(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,d,!0),s.value=c}function a(c,u){const d=Dt({},o.value,e.state,{forward:c,scroll:kp()});i(d.current,d,!0);const f=Dt({},M1(s.value,c,null),{position:d.position+1},u);i(c,f,!1),s.value=c}return{location:s,state:o,push:a,replace:l}}function dR(r){r=tR(r);const e=uR(r),n=cR(r,e.state,e.location,e.replace);function s(i,l=!0){l||n.pauseListeners(),history.go(i)}const o=Dt({location:"",base:r,go:s,createHref:rR.bind(null,r)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function fR(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),dR(r)}function hR(r){return typeof r=="string"||r&&typeof r=="object"}function GT(r){return typeof r=="string"||typeof r=="symbol"}const li={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},KT=Symbol("");var k1;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(k1||(k1={}));function ec(r,e){return Dt(new Error,{type:r,[KT]:!0},e)}function wo(r,e){return r instanceof Error&&KT in r&&(e==null||!!(r.type&e))}const P1="[^/]+?",pR={sensitive:!1,strict:!1,start:!0,end:!0},gR=/[.+*?^${}()[\]/\\]/g;function mR(r,e){const n=Dt({},pR,e),s=[];let o=n.start?"^":"";const i=[];for(const u of r){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;fe.length?e.length===1&&e[0]===80?1:-1:0}function vR(r,e){let n=0;const s=r.score,o=e.score;for(;n0&&e[e.length-1]<0}const yR={type:0,value:""},wR=/[a-zA-Z0-9_]/;function CR(r){if(!r)return[[]];if(r==="/")return[[yR]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function e(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,s=n;const o=[];let i;function l(){i&&o.push(i),i=[]}let a=0,c,u="",d="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),u="")}function h(){u+=c}for(;a{l(C)}:ku}function l(d){if(GT(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(l),d.alias.forEach(l))}}function a(){return n}function c(d){let f=0;for(;f=0&&(d.record.path!==n[f].record.path||!YT(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!L1(d)&&s.set(d.record.name,d)}function u(d,f){let h,p={},g,m;if("name"in d&&d.name){if(h=s.get(d.name),!h)throw ec(1,{location:d});m=h.record.name,p=Dt(I1(f.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&I1(d.params,h.keys.map(C=>C.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(C=>C.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?s.get(f.name):n.find(C=>C.re.test(f.path)),!h)throw ec(1,{location:d,currentLocation:f});m=h.record.name,p=Dt({},f.params,d.params),g=h.stringify(p)}const v=[];let b=h;for(;b;)v.unshift(b.record),b=b.parent;return{name:m,path:g,params:p,matched:v,meta:_R(v)}}return r.forEach(d=>i(d)),{addRoute:i,resolve:u,removeRoute:l,getRoutes:a,getRecordMatcher:o}}function I1(r,e){const n={};for(const s of e)s in r&&(n[s]=r[s]);return n}function ER(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:TR(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}}}function TR(r){const e={},n=r.props||!1;if("component"in r)e.default=n;else for(const s in r.components)e[s]=typeof n=="object"?n[s]:n;return e}function L1(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function _R(r){return r.reduce((e,n)=>Dt(e,n.meta),{})}function R1(r,e){const n={};for(const s in r)n[s]=s in e?e[s]:r[s];return n}function YT(r,e){return e.children.some(n=>n===r||YT(r,n))}function OR(r){const e={};if(r===""||r==="?")return e;const s=(r[0]==="?"?r.slice(1):r).split("&");for(let o=0;oi&&Qm(i)):[s&&Qm(s)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function AR(r){const e={};for(const n in r){const s=r[n];s!==void 0&&(e[n]=Rs(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return e}const MR=Symbol(""),D1=Symbol(""),Pp=Symbol(""),Yv=Symbol(""),tb=Symbol("");function au(){let r=[];function e(s){return r.push(s),()=>{const o=r.indexOf(s);o>-1&&r.splice(o,1)}}function n(){r=[]}return{add:e,list:()=>r.slice(),reset:n}}function wi(r,e,n,s,o,i=l=>l()){const l=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((a,c)=>{const u=h=>{h===!1?c(ec(4,{from:n,to:e})):h instanceof Error?c(h):hR(h)?c(ec(2,{from:e,to:h})):(l&&s.enterCallbacks[o]===l&&typeof h=="function"&&l.push(h),a())},d=i(()=>r.call(s&&s.instances[o],e,n,u));let f=Promise.resolve(d);r.length<3&&(f=f.then(u)),f.catch(h=>c(h))})}function Ug(r,e,n,s,o=i=>i()){const i=[];for(const l of r)for(const a in l.components){let c=l.components[a];if(!(e!=="beforeRouteEnter"&&!l.instances[a]))if(kR(c)){const d=(c.__vccOpts||c)[e];d&&i.push(wi(d,n,s,l,a,o))}else{let u=c();i.push(()=>u.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${l.path}"`));const f=RL(d)?d.default:d;l.components[a]=f;const p=(f.__vccOpts||f)[e];return p&&wi(p,n,s,l,a,o)()}))}}return i}function kR(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function V1(r){const e=Ve(Pp),n=Ve(Yv),s=z(()=>{const c=S(r.to);return e.resolve(c)}),o=z(()=>{const{matched:c}=s.value,{length:u}=c,d=c[u-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(Qa.bind(null,d));if(h>-1)return h;const p=F1(c[u-2]);return u>1&&F1(d)===p&&f[f.length-1].path!==p?f.findIndex(Qa.bind(null,c[u-2])):h}),i=z(()=>o.value>-1&&LR(n.params,s.value.params)),l=z(()=>o.value>-1&&o.value===n.matched.length-1&&WT(n.params,s.value.params));function a(c={}){return IR(c)?e[S(r.replace)?"replace":"push"](S(r.to)).catch(ku):Promise.resolve()}return{route:s,href:z(()=>s.value.href),isActive:i,isExactActive:l,navigate:a}}const PR=pe({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:V1,setup(r,{slots:e}){const n=St(V1(r)),{options:s}=Ve(Pp),o=z(()=>({[B1(r.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[B1(r.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return r.custom?i:Ye("a",{"aria-current":n.isExactActive?r.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),NR=PR;function IR(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function LR(r,e){for(const n in e){const s=e[n],o=r[n];if(typeof s=="string"){if(s!==o)return!1}else if(!Rs(o)||o.length!==s.length||s.some((i,l)=>i!==o[l]))return!1}return!0}function F1(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const B1=(r,e,n)=>r??e??n,RR=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:e,slots:n}){const s=Ve(tb),o=z(()=>r.route||s.value),i=Ve(D1,0),l=z(()=>{let u=S(i);const{matched:d}=o.value;let f;for(;(f=d[u])&&!f.components;)u++;return u}),a=z(()=>o.value.matched[l.value]);Wt(D1,z(()=>l.value+1)),Wt(MR,a),Wt(tb,o);const c=j();return $e(()=>[c.value,a.value,r.name],([u,d,f],[h,p,g])=>{d&&(d.instances[f]=u,p&&p!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),u&&d&&(!p||!Qa(d,p)||!h)&&(d.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=o.value,d=r.name,f=a.value,h=f&&f.components[d];if(!h)return z1(n.default,{Component:h,route:u});const p=f.props[d],g=p?p===!0?u.params:typeof p=="function"?p(u):p:null,v=Ye(h,Dt({},g,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[d]=null)},ref:c}));return z1(n.default,{Component:v,route:u})||v}}});function z1(r,e){if(!r)return null;const n=r(e);return n.length===1?n[0]:n}const $R=RR;function DR(r){const e=xR(r.routes,r),n=r.parseQuery||OR,s=r.stringifyQuery||$1,o=r.history,i=au(),l=au(),a=au(),c=Ms(li);let u=li;Aa&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=jg.bind(null,G=>""+G),f=jg.bind(null,KL),h=jg.bind(null,od);function p(G,ne){let se,me;return GT(G)?(se=e.getRecordMatcher(G),me=ne):me=G,e.addRoute(me,se)}function g(G){const ne=e.getRecordMatcher(G);ne&&e.removeRoute(ne)}function m(){return e.getRoutes().map(G=>G.record)}function v(G){return!!e.getRecordMatcher(G)}function b(G,ne){if(ne=Dt({},ne||c.value),typeof G=="string"){const L=Hg(n,G,ne.path),te=e.resolve({path:L.path},ne),he=o.createHref(L.fullPath);return Dt(L,te,{params:h(te.params),hash:od(L.hash),redirectedFrom:void 0,href:he})}let se;if(G.path!=null)se=Dt({},G,{path:Hg(n,G.path,ne.path).path});else{const L=Dt({},G.params);for(const te in L)L[te]==null&&delete L[te];se=Dt({},G,{params:f(L)}),ne.params=f(ne.params)}const me=e.resolve(se,ne),Pe=G.hash||"";me.params=d(h(me.params));const Se=XL(s,Dt({},G,{hash:WL(Pe),path:me.path})),D=o.createHref(Se);return Dt({fullPath:Se,hash:Pe,query:s===$1?AR(G.query):G.query||{}},me,{redirectedFrom:void 0,href:D})}function C(G){return typeof G=="string"?Hg(n,G,c.value.path):Dt({},G)}function y(G,ne){if(u!==G)return ec(8,{from:ne,to:G})}function w(G){return _(G)}function x(G){return w(Dt(C(G),{replace:!0}))}function E(G){const ne=G.matched[G.matched.length-1];if(ne&&ne.redirect){const{redirect:se}=ne;let me=typeof se=="function"?se(G):se;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=C(me):{path:me},me.params={}),Dt({query:G.query,hash:G.hash,params:me.path!=null?{}:G.params},me)}}function _(G,ne){const se=u=b(G),me=c.value,Pe=G.state,Se=G.force,D=G.replace===!0,L=E(se);if(L)return _(Dt(C(L),{state:typeof L=="object"?Dt({},Pe,L.state):Pe,force:Se,replace:D}),ne||se);const te=se;te.redirectedFrom=ne;let he;return!Se&&ZL(s,me,se)&&(he=ec(16,{to:te,from:me}),de(me,me,!0,!1)),(he?Promise.resolve(he):k(te,me)).catch(ge=>wo(ge)?wo(ge,2)?ge:ee(ge):Q(ge,te,me)).then(ge=>{if(ge){if(wo(ge,2))return _(Dt({replace:D},C(ge.to),{state:typeof ge.to=="object"?Dt({},Pe,ge.to.state):Pe,force:Se}),ne||te)}else ge=$(te,me,!0,D,Pe);return P(te,me,ge),ge})}function M(G,ne){const se=y(G,ne);return se?Promise.reject(se):Promise.resolve()}function A(G){const ne=fe.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(G):G()}function k(G,ne){let se;const[me,Pe,Se]=VR(G,ne);se=Ug(me.reverse(),"beforeRouteLeave",G,ne);for(const L of me)L.leaveGuards.forEach(te=>{se.push(wi(te,G,ne))});const D=M.bind(null,G,ne);return se.push(D),Ee(se).then(()=>{se=[];for(const L of i.list())se.push(wi(L,G,ne));return se.push(D),Ee(se)}).then(()=>{se=Ug(Pe,"beforeRouteUpdate",G,ne);for(const L of Pe)L.updateGuards.forEach(te=>{se.push(wi(te,G,ne))});return se.push(D),Ee(se)}).then(()=>{se=[];for(const L of Se)if(L.beforeEnter)if(Rs(L.beforeEnter))for(const te of L.beforeEnter)se.push(wi(te,G,ne));else se.push(wi(L.beforeEnter,G,ne));return se.push(D),Ee(se)}).then(()=>(G.matched.forEach(L=>L.enterCallbacks={}),se=Ug(Se,"beforeRouteEnter",G,ne,A),se.push(D),Ee(se))).then(()=>{se=[];for(const L of l.list())se.push(wi(L,G,ne));return se.push(D),Ee(se)}).catch(L=>wo(L,8)?L:Promise.reject(L))}function P(G,ne,se){a.list().forEach(me=>A(()=>me(G,ne,se)))}function $(G,ne,se,me,Pe){const Se=y(G,ne);if(Se)return Se;const D=ne===li,L=Aa?history.state:{};se&&(me||D?o.replace(G.fullPath,Dt({scroll:D&&L&&L.scroll},Pe)):o.push(G.fullPath,Pe)),c.value=G,de(G,ne,se,D),ee()}let B;function W(){B||(B=o.listen((G,ne,se)=>{if(!we.listening)return;const me=b(G),Pe=E(me);if(Pe){_(Dt(Pe,{replace:!0}),me).catch(ku);return}u=me;const Se=c.value;Aa&&iR(A1(Se.fullPath,se.delta),kp()),k(me,Se).catch(D=>wo(D,12)?D:wo(D,2)?(_(D.to,me).then(L=>{wo(L,20)&&!se.delta&&se.type===id.pop&&o.go(-1,!1)}).catch(ku),Promise.reject()):(se.delta&&o.go(-se.delta,!1),Q(D,me,Se))).then(D=>{D=D||$(me,Se,!1),D&&(se.delta&&!wo(D,8)?o.go(-se.delta,!1):se.type===id.pop&&wo(D,20)&&o.go(-1,!1)),P(me,Se,D)}).catch(ku)}))}let I=au(),R=au(),U;function Q(G,ne,se){ee(G);const me=R.list();return me.length&&me.forEach(Pe=>Pe(G,ne,se)),Promise.reject(G)}function q(){return U&&c.value!==li?Promise.resolve():new Promise((G,ne)=>{I.add([G,ne])})}function ee(G){return U||(U=!G,W(),I.list().forEach(([ne,se])=>G?se(G):ne()),I.reset()),G}function de(G,ne,se,me){const{scrollBehavior:Pe}=r;if(!Aa||!Pe)return Promise.resolve();const Se=!se&&lR(A1(G.fullPath,0))||(me||!se)&&history.state&&history.state.scroll||null;return tt().then(()=>Pe(G,ne,Se)).then(D=>D&&oR(D)).catch(D=>Q(D,G,ne))}const ce=G=>o.go(G);let Te;const fe=new Set,we={currentRoute:c,listening:!0,addRoute:p,removeRoute:g,hasRoute:v,getRoutes:m,resolve:b,options:r,push:w,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:R.add,isReady:q,install(G){const ne=this;G.component("RouterLink",NR),G.component("RouterView",$R),G.config.globalProperties.$router=ne,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>S(c)}),Aa&&!Te&&c.value===li&&(Te=!0,w(o.location).catch(Pe=>{}));const se={};for(const Pe in li)Object.defineProperty(se,Pe,{get:()=>c.value[Pe],enumerable:!0});G.provide(Pp,ne),G.provide(Yv,Nv(se)),G.provide(tb,c);const me=G.unmount;fe.add(G),G.unmount=function(){fe.delete(G),fe.size<1&&(u=li,B&&B(),B=null,c.value=li,Te=!1,U=!1),me()}}};function Ee(G){return G.reduce((ne,se)=>ne.then(()=>A(se)),Promise.resolve())}return we}function VR(r,e){const n=[],s=[],o=[],i=Math.max(e.matched.length,r.matched.length);for(let l=0;lQa(u,a))?s.push(a):n.push(a));const c=r.matched[l];c&&(e.matched.find(u=>Qa(u,c))||o.push(c))}return[n,s,o]}function ps(){return Ve(Pp)}function Go(){return Ve(Yv)}/*! - * shared v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const Oh=typeof window<"u",tl=(r,e=!1)=>e?Symbol.for(r):Symbol(r),FR=(r,e,n)=>BR({l:r,k:e,s:n}),BR=r=>JSON.stringify(r).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),_n=r=>typeof r=="number"&&isFinite(r),zR=r=>XT(r)==="[object Date]",Hi=r=>XT(r)==="[object RegExp]",Np=r=>gt(r)&&Object.keys(r).length===0,Yn=Object.assign;let j1;const ko=()=>j1||(j1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function H1(r){return r.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const jR=Object.prototype.hasOwnProperty;function Ah(r,e){return jR.call(r,e)}const Zt=Array.isArray,Kt=r=>typeof r=="function",ze=r=>typeof r=="string",_t=r=>typeof r=="boolean",Lt=r=>r!==null&&typeof r=="object",HR=r=>Lt(r)&&Kt(r.then)&&Kt(r.catch),JT=Object.prototype.toString,XT=r=>JT.call(r),gt=r=>{if(!Lt(r))return!1;const e=Object.getPrototypeOf(r);return e===null||e.constructor===Object},UR=r=>r==null?"":Zt(r)||gt(r)&&r.toString===JT?JSON.stringify(r,null,2):String(r);function WR(r,e=""){return r.reduce((n,s,o)=>o===0?n+s:n+e+s,"")}function Ip(r){let e=r;return()=>++e}function qR(r,e){}const _f=r=>!Lt(r)||Zt(r);function sh(r,e){if(_f(r)||_f(e))throw new Error("Invalid value");const n=[{src:r,des:e}];for(;n.length;){const{src:s,des:o}=n.pop();Object.keys(s).forEach(i=>{_f(s[i])||_f(o[i])?o[i]=s[i]:n.push({src:s[i],des:o[i]})})}}/*! - * message-compiler v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function GR(r,e,n){return{line:r,column:e,offset:n}}function Mh(r,e,n){const s={start:r,end:e};return n!=null&&(s.source=n),s}const KR=/\{([0-9a-zA-Z]+)\}/g;function ZT(r,...e){return e.length===1&&YR(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),r.replace(KR,(n,s)=>e.hasOwnProperty(s)?e[s]:"")}const QT=Object.assign,U1=r=>typeof r=="string",YR=r=>r!==null&&typeof r=="object";function e2(r,e=""){return r.reduce((n,s,o)=>o===0?n+s:n+e+s,"")}const Jv={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},JR={[Jv.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function XR(r,e,...n){const s=ZT(JR[r]||"",...n||[]),o={message:String(s),code:r};return e&&(o.location=e),o}const at={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},ZR={[at.EXPECTED_TOKEN]:"Expected token: '{0}'",[at.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[at.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[at.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[at.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[at.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[at.EMPTY_PLACEHOLDER]:"Empty placeholder",[at.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[at.INVALID_LINKED_FORMAT]:"Invalid linked format",[at.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[at.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[at.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[at.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[at.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[at.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Wc(r,e,n={}){const{domain:s,messages:o,args:i}=n,l=ZT((o||ZR)[r]||"",...i||[]),a=new SyntaxError(String(l));return a.code=r,e&&(a.location=e),a.domain=s,a}function QR(r){throw r}const Co=" ",e$="\r",ur=` -`,t$="\u2028",n$="\u2029";function r$(r){const e=r;let n=0,s=1,o=1,i=0;const l=_=>e[_]===e$&&e[_+1]===ur,a=_=>e[_]===ur,c=_=>e[_]===n$,u=_=>e[_]===t$,d=_=>l(_)||a(_)||c(_)||u(_),f=()=>n,h=()=>s,p=()=>o,g=()=>i,m=_=>l(_)||c(_)||u(_)?ur:e[_],v=()=>m(n),b=()=>m(n+i);function C(){return i=0,d(n)&&(s++,o=0),l(n)&&n++,n++,o++,e[n]}function y(){return l(n+i)&&i++,i++,e[n+i]}function w(){n=0,s=1,o=1,i=0}function x(_=0){i=_}function E(){const _=n+i;for(;_!==n;)C();i=0}return{index:f,line:h,column:p,peekOffset:g,charAt:m,currentChar:v,currentPeek:b,next:C,peek:y,reset:w,resetPeek:x,skipToPeek:E}}const ai=void 0,s$=".",W1="'",o$="tokenizer";function i$(r,e={}){const n=e.location!==!1,s=r$(r),o=()=>s.index(),i=()=>GR(s.line(),s.column(),s.index()),l=i(),a=o(),c={currentType:14,offset:a,startLoc:l,endLoc:l,lastType:14,lastOffset:a,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=e;function f(V,F,J,...ie){const Ae=u();if(F.column+=J,F.offset+=J,d){const re=n?Mh(Ae.startLoc,F):null,Z=Wc(V,re,{domain:o$,args:ie});d(Z)}}function h(V,F,J){V.endLoc=i(),V.currentType=F;const ie={type:F};return n&&(ie.loc=Mh(V.startLoc,V.endLoc)),J!=null&&(ie.value=J),ie}const p=V=>h(V,14);function g(V,F){return V.currentChar()===F?(V.next(),F):(f(at.EXPECTED_TOKEN,i(),0,F),"")}function m(V){let F="";for(;V.currentPeek()===Co||V.currentPeek()===ur;)F+=V.currentPeek(),V.peek();return F}function v(V){const F=m(V);return V.skipToPeek(),F}function b(V){if(V===ai)return!1;const F=V.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F===95}function C(V){if(V===ai)return!1;const F=V.charCodeAt(0);return F>=48&&F<=57}function y(V,F){const{currentType:J}=F;if(J!==2)return!1;m(V);const ie=b(V.currentPeek());return V.resetPeek(),ie}function w(V,F){const{currentType:J}=F;if(J!==2)return!1;m(V);const ie=V.currentPeek()==="-"?V.peek():V.currentPeek(),Ae=C(ie);return V.resetPeek(),Ae}function x(V,F){const{currentType:J}=F;if(J!==2)return!1;m(V);const ie=V.currentPeek()===W1;return V.resetPeek(),ie}function E(V,F){const{currentType:J}=F;if(J!==8)return!1;m(V);const ie=V.currentPeek()===".";return V.resetPeek(),ie}function _(V,F){const{currentType:J}=F;if(J!==9)return!1;m(V);const ie=b(V.currentPeek());return V.resetPeek(),ie}function M(V,F){const{currentType:J}=F;if(!(J===8||J===12))return!1;m(V);const ie=V.currentPeek()===":";return V.resetPeek(),ie}function A(V,F){const{currentType:J}=F;if(J!==10)return!1;const ie=()=>{const re=V.currentPeek();return re==="{"?b(V.peek()):re==="@"||re==="%"||re==="|"||re===":"||re==="."||re===Co||!re?!1:re===ur?(V.peek(),ie()):$(V,!1)},Ae=ie();return V.resetPeek(),Ae}function k(V){m(V);const F=V.currentPeek()==="|";return V.resetPeek(),F}function P(V){const F=m(V),J=V.currentPeek()==="%"&&V.peek()==="{";return V.resetPeek(),{isModulo:J,hasSpace:F.length>0}}function $(V,F=!0){const J=(Ae=!1,re="",Z=!1)=>{const ae=V.currentPeek();return ae==="{"?re==="%"?!1:Ae:ae==="@"||!ae?re==="%"?!0:Ae:ae==="%"?(V.peek(),J(Ae,"%",!0)):ae==="|"?re==="%"||Z?!0:!(re===Co||re===ur):ae===Co?(V.peek(),J(!0,Co,Z)):ae===ur?(V.peek(),J(!0,ur,Z)):!0},ie=J();return F&&V.resetPeek(),ie}function B(V,F){const J=V.currentChar();return J===ai?ai:F(J)?(V.next(),J):null}function W(V){const F=V.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36}function I(V){return B(V,W)}function R(V){const F=V.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36||F===45}function U(V){return B(V,R)}function Q(V){const F=V.charCodeAt(0);return F>=48&&F<=57}function q(V){return B(V,Q)}function ee(V){const F=V.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102}function de(V){return B(V,ee)}function ce(V){let F="",J="";for(;F=q(V);)J+=F;return J}function Te(V){v(V);const F=V.currentChar();return F!=="%"&&f(at.EXPECTED_TOKEN,i(),0,F),V.next(),"%"}function fe(V){let F="";for(;;){const J=V.currentChar();if(J==="{"||J==="}"||J==="@"||J==="|"||!J)break;if(J==="%")if($(V))F+=J,V.next();else break;else if(J===Co||J===ur)if($(V))F+=J,V.next();else{if(k(V))break;F+=J,V.next()}else F+=J,V.next()}return F}function we(V){v(V);let F="",J="";for(;F=U(V);)J+=F;return V.currentChar()===ai&&f(at.UNTERMINATED_CLOSING_BRACE,i(),0),J}function Ee(V){v(V);let F="";return V.currentChar()==="-"?(V.next(),F+=`-${ce(V)}`):F+=ce(V),V.currentChar()===ai&&f(at.UNTERMINATED_CLOSING_BRACE,i(),0),F}function G(V){return V!==W1&&V!==ur}function ne(V){v(V),g(V,"'");let F="",J="";for(;F=B(V,G);)F==="\\"?J+=se(V):J+=F;const ie=V.currentChar();return ie===ur||ie===ai?(f(at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),ie===ur&&(V.next(),g(V,"'")),J):(g(V,"'"),J)}function se(V){const F=V.currentChar();switch(F){case"\\":case"'":return V.next(),`\\${F}`;case"u":return me(V,F,4);case"U":return me(V,F,6);default:return f(at.UNKNOWN_ESCAPE_SEQUENCE,i(),0,F),""}}function me(V,F,J){g(V,F);let ie="";for(let Ae=0;Ae{const ie=V.currentChar();return ie==="{"||ie==="%"||ie==="@"||ie==="|"||ie==="("||ie===")"||!ie||ie===Co?J:(J+=ie,V.next(),F(J))};return F("")}function te(V){v(V);const F=g(V,"|");return v(V),F}function he(V,F){let J=null;switch(V.currentChar()){case"{":return F.braceNest>=1&&f(at.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),V.next(),J=h(F,2,"{"),v(V),F.braceNest++,J;case"}":return F.braceNest>0&&F.currentType===2&&f(at.EMPTY_PLACEHOLDER,i(),0),V.next(),J=h(F,3,"}"),F.braceNest--,F.braceNest>0&&v(V),F.inLinked&&F.braceNest===0&&(F.inLinked=!1),J;case"@":return F.braceNest>0&&f(at.UNTERMINATED_CLOSING_BRACE,i(),0),J=ge(V,F)||p(F),F.braceNest=0,J;default:{let Ae=!0,re=!0,Z=!0;if(k(V))return F.braceNest>0&&f(at.UNTERMINATED_CLOSING_BRACE,i(),0),J=h(F,1,te(V)),F.braceNest=0,F.inLinked=!1,J;if(F.braceNest>0&&(F.currentType===5||F.currentType===6||F.currentType===7))return f(at.UNTERMINATED_CLOSING_BRACE,i(),0),F.braceNest=0,Ce(V,F);if(Ae=y(V,F))return J=h(F,5,we(V)),v(V),J;if(re=w(V,F))return J=h(F,6,Ee(V)),v(V),J;if(Z=x(V,F))return J=h(F,7,ne(V)),v(V),J;if(!Ae&&!re&&!Z)return J=h(F,13,Se(V)),f(at.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,J.value),v(V),J;break}}return J}function ge(V,F){const{currentType:J}=F;let ie=null;const Ae=V.currentChar();switch((J===8||J===9||J===12||J===10)&&(Ae===ur||Ae===Co)&&f(at.INVALID_LINKED_FORMAT,i(),0),Ae){case"@":return V.next(),ie=h(F,8,"@"),F.inLinked=!0,ie;case".":return v(V),V.next(),h(F,9,".");case":":return v(V),V.next(),h(F,10,":");default:return k(V)?(ie=h(F,1,te(V)),F.braceNest=0,F.inLinked=!1,ie):E(V,F)||M(V,F)?(v(V),ge(V,F)):_(V,F)?(v(V),h(F,12,D(V))):A(V,F)?(v(V),Ae==="{"?he(V,F)||ie:h(F,11,L(V))):(J===8&&f(at.INVALID_LINKED_FORMAT,i(),0),F.braceNest=0,F.inLinked=!1,Ce(V,F))}}function Ce(V,F){let J={type:14};if(F.braceNest>0)return he(V,F)||p(F);if(F.inLinked)return ge(V,F)||p(F);switch(V.currentChar()){case"{":return he(V,F)||p(F);case"}":return f(at.UNBALANCED_CLOSING_BRACE,i(),0),V.next(),h(F,3,"}");case"@":return ge(V,F)||p(F);default:{if(k(V))return J=h(F,1,te(V)),F.braceNest=0,F.inLinked=!1,J;const{isModulo:Ae,hasSpace:re}=P(V);if(Ae)return re?h(F,0,fe(V)):h(F,4,Te(V));if($(V))return h(F,0,fe(V));break}}return J}function xe(){const{currentType:V,offset:F,startLoc:J,endLoc:ie}=c;return c.lastType=V,c.lastOffset=F,c.lastStartLoc=J,c.lastEndLoc=ie,c.offset=o(),c.startLoc=i(),s.currentChar()===ai?h(c,14):Ce(s,c)}return{nextToken:xe,currentOffset:o,currentPosition:i,context:u}}const l$="parser",a$=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function c$(r,e,n){switch(r){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(e||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function u$(r={}){const e=r.location!==!1,{onError:n,onWarn:s}=r;function o(y,w,x,E,..._){const M=y.currentPosition();if(M.offset+=E,M.column+=E,n){const A=e?Mh(x,M):null,k=Wc(w,A,{domain:l$,args:_});n(k)}}function i(y,w,x,E,..._){const M=y.currentPosition();if(M.offset+=E,M.column+=E,s){const A=e?Mh(x,M):null;s(XR(w,A,_))}}function l(y,w,x){const E={type:y};return e&&(E.start=w,E.end=w,E.loc={start:x,end:x}),E}function a(y,w,x,E){E&&(y.type=E),e&&(y.end=w,y.loc&&(y.loc.end=x))}function c(y,w){const x=y.context(),E=l(3,x.offset,x.startLoc);return E.value=w,a(E,y.currentOffset(),y.currentPosition()),E}function u(y,w){const x=y.context(),{lastOffset:E,lastStartLoc:_}=x,M=l(5,E,_);return M.index=parseInt(w,10),y.nextToken(),a(M,y.currentOffset(),y.currentPosition()),M}function d(y,w,x){const E=y.context(),{lastOffset:_,lastStartLoc:M}=E,A=l(4,_,M);return A.key=w,x===!0&&(A.modulo=!0),y.nextToken(),a(A,y.currentOffset(),y.currentPosition()),A}function f(y,w){const x=y.context(),{lastOffset:E,lastStartLoc:_}=x,M=l(9,E,_);return M.value=w.replace(a$,c$),y.nextToken(),a(M,y.currentOffset(),y.currentPosition()),M}function h(y){const w=y.nextToken(),x=y.context(),{lastOffset:E,lastStartLoc:_}=x,M=l(8,E,_);return w.type!==12?(o(y,at.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),M.value="",a(M,E,_),{nextConsumeToken:w,node:M}):(w.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,bs(w)),M.value=w.value||"",a(M,y.currentOffset(),y.currentPosition()),{node:M})}function p(y,w){const x=y.context(),E=l(7,x.offset,x.startLoc);return E.value=w,a(E,y.currentOffset(),y.currentPosition()),E}function g(y){const w=y.context(),x=l(6,w.offset,w.startLoc);let E=y.nextToken();if(E.type===9){const _=h(y);x.modifier=_.node,E=_.nextConsumeToken||y.nextToken()}switch(E.type!==10&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs(E)),E=y.nextToken(),E.type===2&&(E=y.nextToken()),E.type){case 11:E.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs(E)),x.key=p(y,E.value||"");break;case 5:E.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs(E)),x.key=d(y,E.value||"");break;case 6:E.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs(E)),x.key=u(y,E.value||"");break;case 7:E.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs(E)),x.key=f(y,E.value||"");break;default:{o(y,at.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const _=y.context(),M=l(7,_.offset,_.startLoc);return M.value="",a(M,_.offset,_.startLoc),x.key=M,a(x,_.offset,_.startLoc),{nextConsumeToken:E,node:x}}}return a(x,y.currentOffset(),y.currentPosition()),{node:x}}function m(y){const w=y.context(),x=w.currentType===1?y.currentOffset():w.offset,E=w.currentType===1?w.endLoc:w.startLoc,_=l(2,x,E);_.items=[];let M=null,A=null;do{const $=M||y.nextToken();switch(M=null,$.type){case 0:$.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs($)),_.items.push(c(y,$.value||""));break;case 6:$.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs($)),_.items.push(u(y,$.value||""));break;case 4:A=!0;break;case 5:$.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs($)),_.items.push(d(y,$.value||"",!!A)),A&&(i(y,Jv.USE_MODULO_SYNTAX,w.lastStartLoc,0,bs($)),A=null);break;case 7:$.value==null&&o(y,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,bs($)),_.items.push(f(y,$.value||""));break;case 8:{const B=g(y);_.items.push(B.node),M=B.nextConsumeToken||null;break}}}while(w.currentType!==14&&w.currentType!==1);const k=w.currentType===1?w.lastOffset:y.currentOffset(),P=w.currentType===1?w.lastEndLoc:y.currentPosition();return a(_,k,P),_}function v(y,w,x,E){const _=y.context();let M=E.items.length===0;const A=l(1,w,x);A.cases=[],A.cases.push(E);do{const k=m(y);M||(M=k.items.length===0),A.cases.push(k)}while(_.currentType!==14);return M&&o(y,at.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),a(A,y.currentOffset(),y.currentPosition()),A}function b(y){const w=y.context(),{offset:x,startLoc:E}=w,_=m(y);return w.currentType===14?_:v(y,x,E,_)}function C(y){const w=i$(y,QT({},r)),x=w.context(),E=l(0,x.offset,x.startLoc);return e&&E.loc&&(E.loc.source=y),E.body=b(w),r.onCacheKey&&(E.cacheKey=r.onCacheKey(y)),x.currentType!==14&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,y[x.offset]||""),a(E,w.currentOffset(),w.currentPosition()),E}return{parse:C}}function bs(r){if(r.type===14)return"EOF";const e=(r.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function d$(r,e={}){const n={ast:r,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function q1(r,e){for(let n=0;nG1(n)),r}function G1(r){if(r.items.length===1){const e=r.items[0];(e.type===3||e.type===9)&&(r.static=e.value,delete e.value)}else{const e=[];for(let n=0;na;function u(v,b){a.code+=v}function d(v,b=!0){const C=b?o:"";u(i?C+" ".repeat(v):C)}function f(v=!0){const b=++a.indentLevel;v&&d(b)}function h(v=!0){const b=--a.indentLevel;v&&d(b)}function p(){d(a.indentLevel)}return{context:c,push:u,indent:f,deindent:h,newline:p,helper:v=>`_${v}`,needIndent:()=>a.needIndent}}function b$(r,e){const{helper:n}=r;r.push(`${n("linked")}(`),tc(r,e.key),e.modifier?(r.push(", "),tc(r,e.modifier),r.push(", _type")):r.push(", undefined, _type"),r.push(")")}function v$(r,e){const{helper:n,needIndent:s}=r;r.push(`${n("normalize")}([`),r.indent(s());const o=e.items.length;for(let i=0;i1){r.push(`${n("plural")}([`),r.indent(s());const o=e.cases.length;for(let i=0;i{const n=U1(e.mode)?e.mode:"normal",s=U1(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` -`,l=e.needIndent?e.needIndent:n!=="arrow",a=r.helpers||[],c=m$(r,{mode:n,filename:s,sourceMap:o,breakLineCode:i,needIndent:l});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),a.length>0&&(c.push(`const { ${e2(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),c.newline()),c.push("return "),tc(c,r),c.deindent(l),c.push("}"),delete r.helpers;const{code:u,map:d}=c.context();return{ast:r,code:u,map:d?d.toJSON():void 0}};function S$(r,e={}){const n=QT({},e),s=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,a=u$(n).parse(r);return s?(i&&h$(a),o&&Ma(a),{ast:a,code:""}):(f$(a,n),C$(a,n))}/*! - * core-base v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function x$(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ko().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ko().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ko().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const nl=[];nl[0]={w:[0],i:[3,0],"[":[4],o:[7]};nl[1]={w:[1],".":[2],"[":[4],o:[7]};nl[2]={w:[2],i:[3,0],0:[3,0]};nl[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};nl[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};nl[5]={"'":[4,0],o:8,l:[5,0]};nl[6]={'"':[4,0],o:8,l:[6,0]};const E$=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function T$(r){return E$.test(r)}function _$(r){const e=r.charCodeAt(0),n=r.charCodeAt(r.length-1);return e===n&&(e===34||e===39)?r.slice(1,-1):r}function O$(r){if(r==null)return"o";switch(r.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return r;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 A$(r){const e=r.trim();return r.charAt(0)==="0"&&isNaN(parseInt(r))?!1:T$(e)?_$(e):"*"+e}function M$(r){const e=[];let n=-1,s=0,o=0,i,l,a,c,u,d,f;const h=[];h[0]=()=>{l===void 0?l=a:l+=a},h[1]=()=>{l!==void 0&&(e.push(l),l=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,s=4,h[0]();else{if(o=0,l===void 0||(l=A$(l),l===!1))return!1;h[1]()}};function p(){const g=r[n+1];if(s===5&&g==="'"||s===6&&g==='"')return n++,a="\\"+g,h[0](),!0}for(;s!==null;)if(n++,i=r[n],!(i==="\\"&&p())){if(c=O$(i),f=nl[s],u=f[c]||f.l||8,u===8||(s=u[0],u[1]!==void 0&&(d=h[u[1]],d&&(a=i,d()===!1))))return;if(s===7)return e}}const K1=new Map;function k$(r,e){return Lt(r)?r[e]:null}function P$(r,e){if(!Lt(r))return null;let n=K1.get(e);if(n||(n=M$(e),n&&K1.set(e,n)),!n)return null;const s=n.length;let o=r,i=0;for(;ir,I$=r=>"",L$="text",R$=r=>r.length===0?"":WR(r),$$=UR;function Y1(r,e){return r=Math.abs(r),e===2?r?r>1?1:0:1:r?Math.min(r,2):0}function D$(r){const e=_n(r.pluralIndex)?r.pluralIndex:-1;return r.named&&(_n(r.named.count)||_n(r.named.n))?_n(r.named.count)?r.named.count:_n(r.named.n)?r.named.n:e:e}function V$(r,e){e.count||(e.count=r),e.n||(e.n=r)}function F$(r={}){const e=r.locale,n=D$(r),s=Lt(r.pluralRules)&&ze(e)&&Kt(r.pluralRules[e])?r.pluralRules[e]:Y1,o=Lt(r.pluralRules)&&ze(e)&&Kt(r.pluralRules[e])?Y1:void 0,i=b=>b[s(n,b.length,o)],l=r.list||[],a=b=>l[b],c=r.named||{};_n(r.pluralIndex)&&V$(n,c);const u=b=>c[b];function d(b){const C=Kt(r.messages)?r.messages(b):Lt(r.messages)?r.messages[b]:!1;return C||(r.parent?r.parent.message(b):I$)}const f=b=>r.modifiers?r.modifiers[b]:N$,h=gt(r.processor)&&Kt(r.processor.normalize)?r.processor.normalize:R$,p=gt(r.processor)&&Kt(r.processor.interpolate)?r.processor.interpolate:$$,g=gt(r.processor)&&ze(r.processor.type)?r.processor.type:L$,v={list:a,named:u,plural:i,linked:(b,...C)=>{const[y,w]=C;let x="text",E="";C.length===1?Lt(y)?(E=y.modifier||E,x=y.type||x):ze(y)&&(E=y||E):C.length===2&&(ze(y)&&(E=y||E),ze(w)&&(x=w||x));const _=d(b)(v),M=x==="vnode"&&Zt(_)&&E?_[0]:_;return E?f(E)(M,x):M},message:d,type:g,interpolate:p,normalize:h,values:Yn({},l,c)};return v}let ld=null;function B$(r){ld=r}function z$(r,e,n){ld&&ld.emit("i18n:init",{timestamp:Date.now(),i18n:r,version:e,meta:n})}const j$=H$("function:translate");function H$(r){return e=>ld&&ld.emit(r,e)}const t2=Jv.__EXTEND_POINT__,vl=Ip(t2),U$={NOT_FOUND_KEY:t2,FALLBACK_TO_TRANSLATE:vl(),CANNOT_FORMAT_NUMBER:vl(),FALLBACK_TO_NUMBER_FORMAT:vl(),CANNOT_FORMAT_DATE:vl(),FALLBACK_TO_DATE_FORMAT:vl(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:vl(),__EXTEND_POINT__:vl()},n2=at.__EXTEND_POINT__,yl=Ip(n2),_s={INVALID_ARGUMENT:n2,INVALID_DATE_ARGUMENT:yl(),INVALID_ISO_DATE_ARGUMENT:yl(),NOT_SUPPORT_NON_STRING_MESSAGE:yl(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:yl(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:yl(),NOT_SUPPORT_LOCALE_TYPE:yl(),__EXTEND_POINT__:yl()};function Zs(r){return Wc(r,null,void 0)}function Zv(r,e){return e.locale!=null?J1(e.locale):J1(r.locale)}let Wg;function J1(r){if(ze(r))return r;if(Kt(r)){if(r.resolvedOnce&&Wg!=null)return Wg;if(r.constructor.name==="Function"){const e=r();if(HR(e))throw Zs(_s.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Wg=e}else throw Zs(_s.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Zs(_s.NOT_SUPPORT_LOCALE_TYPE)}function W$(r,e,n){return[...new Set([n,...Zt(e)?e:Lt(e)?Object.keys(e):ze(e)?[e]:[n]])]}function r2(r,e,n){const s=ze(n)?n:nc,o=r;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(s);if(!i){i=[];let l=[n];for(;Zt(l);)l=X1(i,l,e);const a=Zt(e)||!gt(e)?e:e.default?e.default:null;l=ze(a)?[a]:a,Zt(l)&&X1(i,l,!1),o.__localeChainCache.set(s,i)}return i}function X1(r,e,n){let s=!0;for(let o=0;o`${r.charAt(0).toLocaleUpperCase()}${r.substr(1)}`;function Y$(){return{upper:(r,e)=>e==="text"&&ze(r)?r.toUpperCase():e==="vnode"&&Lt(r)&&"__v_isVNode"in r?r.children.toUpperCase():r,lower:(r,e)=>e==="text"&&ze(r)?r.toLowerCase():e==="vnode"&&Lt(r)&&"__v_isVNode"in r?r.children.toLowerCase():r,capitalize:(r,e)=>e==="text"&&ze(r)?Q1(r):e==="vnode"&&Lt(r)&&"__v_isVNode"in r?Q1(r.children):r}}let s2;function ew(r){s2=r}let o2;function J$(r){o2=r}let i2;function X$(r){i2=r}let l2=null;const Z$=r=>{l2=r},Q$=()=>l2;let a2=null;const tw=r=>{a2=r},e3=()=>a2;let nw=0;function t3(r={}){const e=Kt(r.onWarn)?r.onWarn:qR,n=ze(r.version)?r.version:K$,s=ze(r.locale)||Kt(r.locale)?r.locale:nc,o=Kt(s)?nc:s,i=Zt(r.fallbackLocale)||gt(r.fallbackLocale)||ze(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o,l=gt(r.messages)?r.messages:{[o]:{}},a=gt(r.datetimeFormats)?r.datetimeFormats:{[o]:{}},c=gt(r.numberFormats)?r.numberFormats:{[o]:{}},u=Yn({},r.modifiers||{},Y$()),d=r.pluralRules||{},f=Kt(r.missing)?r.missing:null,h=_t(r.missingWarn)||Hi(r.missingWarn)?r.missingWarn:!0,p=_t(r.fallbackWarn)||Hi(r.fallbackWarn)?r.fallbackWarn:!0,g=!!r.fallbackFormat,m=!!r.unresolving,v=Kt(r.postTranslation)?r.postTranslation:null,b=gt(r.processor)?r.processor:null,C=_t(r.warnHtmlMessage)?r.warnHtmlMessage:!0,y=!!r.escapeParameter,w=Kt(r.messageCompiler)?r.messageCompiler:s2,x=Kt(r.messageResolver)?r.messageResolver:o2||k$,E=Kt(r.localeFallbacker)?r.localeFallbacker:i2||W$,_=Lt(r.fallbackContext)?r.fallbackContext:void 0,M=r,A=Lt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,k=Lt(M.__numberFormatters)?M.__numberFormatters:new Map,P=Lt(M.__meta)?M.__meta:{};nw++;const $={version:n,cid:nw,locale:s,fallbackLocale:i,messages:l,modifiers:u,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:g,unresolving:m,postTranslation:v,processor:b,warnHtmlMessage:C,escapeParameter:y,messageCompiler:w,messageResolver:x,localeFallbacker:E,fallbackContext:_,onWarn:e,__meta:P};return $.datetimeFormats=a,$.numberFormats=c,$.__datetimeFormatters=A,$.__numberFormatters=k,__INTLIFY_PROD_DEVTOOLS__&&z$($,n,P),$}function Qv(r,e,n,s,o){const{missing:i,onWarn:l}=r;if(i!==null){const a=i(r,n,e,o);return ze(a)?a:e}else return e}function cu(r,e,n){const s=r;s.__localeChainCache=new Map,r.localeFallbacker(r,n,e)}function n3(r,e){return r===e?!1:r.split("-")[0]===e.split("-")[0]}function r3(r,e){const n=e.indexOf(r);if(n===-1)return!1;for(let s=n+1;ss3(n,r)}function s3(r,e){const n=e.b||e.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return r.plural(o.reduce((i,l)=>[...i,rw(r,l)],[]))}else return rw(r,n)}function rw(r,e){const n=e.s||e.static;if(n)return r.type==="text"?n:r.normalize([n]);{const s=(e.i||e.items).reduce((o,i)=>[...o,nb(r,i)],[]);return r.normalize(s)}}function nb(r,e){const n=e.t||e.type;switch(n){case 3:{const s=e;return s.v||s.value}case 9:{const s=e;return s.v||s.value}case 4:{const s=e;return r.interpolate(r.named(s.k||s.key))}case 5:{const s=e;return r.interpolate(r.list(s.i!=null?s.i:s.index))}case 6:{const s=e,o=s.m||s.modifier;return r.linked(nb(r,s.k||s.key),o?nb(r,o):void 0,r.type)}case 7:{const s=e;return s.v||s.value}case 8:{const s=e;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const c2=r=>r;let Ra=Object.create(null);const rc=r=>Lt(r)&&(r.t===0||r.type===0)&&("b"in r||"body"in r);function u2(r,e={}){let n=!1;const s=e.onError||QR;return e.onError=o=>{n=!0,s(o)},{...S$(r,e),detectError:n}}const o3=(r,e)=>{if(!ze(r))throw Zs(_s.NOT_SUPPORT_NON_STRING_MESSAGE);{_t(e.warnHtmlMessage)&&e.warnHtmlMessage;const s=(e.onCacheKey||c2)(r),o=Ra[s];if(o)return o;const{code:i,detectError:l}=u2(r,e),a=new Function(`return ${i}`)();return l?a:Ra[s]=a}};function i3(r,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&ze(r)){_t(e.warnHtmlMessage)&&e.warnHtmlMessage;const s=(e.onCacheKey||c2)(r),o=Ra[s];if(o)return o;const{ast:i,detectError:l}=u2(r,{...e,location:!1,jit:!0}),a=qg(i);return l?a:Ra[s]=a}else{const n=r.cacheKey;if(n){const s=Ra[n];return s||(Ra[n]=qg(r))}else return qg(r)}}const sw=()=>"",Yr=r=>Kt(r);function ow(r,...e){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:i,fallbackLocale:l,messages:a}=r,[c,u]=rb(...e),d=_t(u.missingWarn)?u.missingWarn:r.missingWarn,f=_t(u.fallbackWarn)?u.fallbackWarn:r.fallbackWarn,h=_t(u.escapeParameter)?u.escapeParameter:r.escapeParameter,p=!!u.resolvedMessage,g=ze(u.default)||_t(u.default)?_t(u.default)?i?c:()=>c:u.default:n?i?c:()=>c:"",m=n||g!=="",v=Zv(r,u);h&&l3(u);let[b,C,y]=p?[c,v,a[v]||{}]:d2(r,c,v,l,f,d),w=b,x=c;if(!p&&!(ze(w)||rc(w)||Yr(w))&&m&&(w=g,x=w),!p&&(!(ze(w)||rc(w)||Yr(w))||!ze(C)))return o?Lp:c;let E=!1;const _=()=>{E=!0},M=Yr(w)?w:f2(r,c,C,w,x,_);if(E)return w;const A=u3(r,C,y,u),k=F$(A),P=a3(r,M,k),$=s?s(P,c):P;if(__INTLIFY_PROD_DEVTOOLS__){const B={timestamp:Date.now(),key:ze(c)?c:Yr(w)?w.key:"",locale:C||(Yr(w)?w.locale:""),format:ze(w)?w:Yr(w)?w.source:"",message:$};B.meta=Yn({},r.__meta,Q$()||{}),j$(B)}return $}function l3(r){Zt(r.list)?r.list=r.list.map(e=>ze(e)?H1(e):e):Lt(r.named)&&Object.keys(r.named).forEach(e=>{ze(r.named[e])&&(r.named[e]=H1(r.named[e]))})}function d2(r,e,n,s,o,i){const{messages:l,onWarn:a,messageResolver:c,localeFallbacker:u}=r,d=u(r,s,n);let f={},h,p=null;const g="translate";for(let m=0;ms;return u.locale=n,u.key=e,u}const c=l(s,c3(r,n,o,s,a,i));return c.locale=n,c.key=e,c.source=s,c}function a3(r,e,n){return e(n)}function rb(...r){const[e,n,s]=r,o={};if(!ze(e)&&!_n(e)&&!Yr(e)&&!rc(e))throw Zs(_s.INVALID_ARGUMENT);const i=_n(e)?String(e):(Yr(e),e);return _n(n)?o.plural=n:ze(n)?o.default=n:gt(n)&&!Np(n)?o.named=n:Zt(n)&&(o.list=n),_n(s)?o.plural=s:ze(s)?o.default=s:gt(s)&&Yn(o,s),[i,o]}function c3(r,e,n,s,o,i){return{locale:e,key:n,warnHtmlMessage:o,onError:l=>{throw i&&i(l),l},onCacheKey:l=>FR(e,n,l)}}function u3(r,e,n,s){const{modifiers:o,pluralRules:i,messageResolver:l,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:d}=r,h={locale:e,modifiers:o,pluralRules:i,messages:p=>{let g=l(n,p);if(g==null&&d){const[,,m]=d2(d,p,e,a,c,u);g=l(m,p)}if(ze(g)||rc(g)){let m=!1;const b=f2(r,p,e,g,p,()=>{m=!0});return m?sw:b}else return Yr(g)?g:sw}};return r.processor&&(h.processor=r.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),_n(s.plural)&&(h.pluralIndex=s.plural),h}function iw(r,...e){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:i,localeFallbacker:l}=r,{__datetimeFormatters:a}=r,[c,u,d,f]=sb(...e),h=_t(d.missingWarn)?d.missingWarn:r.missingWarn;_t(d.fallbackWarn)?d.fallbackWarn:r.fallbackWarn;const p=!!d.part,g=Zv(r,d),m=l(r,o,g);if(!ze(c)||c==="")return new Intl.DateTimeFormat(g,f).format(u);let v={},b,C=null;const y="datetime format";for(let E=0;E{h2.includes(c)?l[c]=n[c]:i[c]=n[c]}),ze(s)?i.locale=s:gt(s)&&(l=s),gt(o)&&(l=o),[i.key||"",a,i,l]}function lw(r,e,n){const s=r;for(const o in n){const i=`${e}__${o}`;s.__datetimeFormatters.has(i)&&s.__datetimeFormatters.delete(i)}}function aw(r,...e){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:i,localeFallbacker:l}=r,{__numberFormatters:a}=r,[c,u,d,f]=ob(...e),h=_t(d.missingWarn)?d.missingWarn:r.missingWarn;_t(d.fallbackWarn)?d.fallbackWarn:r.fallbackWarn;const p=!!d.part,g=Zv(r,d),m=l(r,o,g);if(!ze(c)||c==="")return new Intl.NumberFormat(g,f).format(u);let v={},b,C=null;const y="number format";for(let E=0;E{p2.includes(c)?l[c]=n[c]:i[c]=n[c]}),ze(s)?i.locale=s:gt(s)&&(l=s),gt(o)&&(l=o),[i.key||"",a,i,l]}function cw(r,e,n){const s=r;for(const o in n){const i=`${e}__${o}`;s.__numberFormatters.has(i)&&s.__numberFormatters.delete(i)}}x$();/*! - * vue-i18n v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const d3="9.13.1";function f3(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ko().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ko().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ko().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ko().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ko().__INTLIFY_PROD_DEVTOOLS__=!1)}const g2=U$.__EXTEND_POINT__,So=Ip(g2);So(),So(),So(),So(),So(),So(),So(),So(),So();const m2=_s.__EXTEND_POINT__,br=Ip(m2),An={UNEXPECTED_RETURN_TYPE:m2,INVALID_ARGUMENT:br(),MUST_BE_CALL_SETUP_TOP:br(),NOT_INSTALLED:br(),NOT_AVAILABLE_IN_LEGACY_MODE:br(),REQUIRED_VALUE:br(),INVALID_VALUE:br(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:br(),NOT_INSTALLED_WITH_PROVIDE:br(),UNEXPECTED_ERROR:br(),NOT_COMPATIBLE_LEGACY_VUE_I18N:br(),BRIDGE_SUPPORT_VUE_2_ONLY:br(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:br(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:br(),__EXTEND_POINT__:br()};function Rn(r,...e){return Wc(r,null,void 0)}const ib=tl("__translateVNode"),lb=tl("__datetimeParts"),ab=tl("__numberParts"),b2=tl("__setPluralRules"),v2=tl("__injectWithOption"),cb=tl("__dispose");function ad(r){if(!Lt(r))return r;for(const e in r)if(Ah(r,e))if(!e.includes("."))Lt(r[e])&&ad(r[e]);else{const n=e.split("."),s=n.length-1;let o=r,i=!1;for(let l=0;l{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(l[c]=l[c]||{},sh(u,l[c])):sh(u,l)}else ze(a)&&sh(JSON.parse(a),l)}),o==null&&i)for(const a in l)Ah(l,a)&&ad(l[a]);return l}function y2(r){return r.type}function w2(r,e,n){let s=Lt(e.messages)?e.messages:{};"__i18nGlobal"in n&&(s=Rp(r.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(i=>{r.mergeLocaleMessage(i,s[i])});{if(Lt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(l=>{r.mergeDateTimeFormat(l,e.datetimeFormats[l])})}if(Lt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(l=>{r.mergeNumberFormat(l,e.numberFormats[l])})}}}function uw(r){return T(da,null,r,0)}const dw="__INTLIFY_META__",fw=()=>[],h3=()=>!1;let hw=0;function pw(r){return(e,n,s,o)=>r(n,s,bt()||void 0,o)}const p3=()=>{const r=bt();let e=null;return r&&(e=y2(r)[dw])?{[dw]:e}:null};function ey(r={},e){const{__root:n,__injectWithOption:s}=r,o=n===void 0,i=r.flatJson,l=Oh?j:Ms,a=!!r.translateExistCompatible;let c=_t(r.inheritLocale)?r.inheritLocale:!0;const u=l(n&&c?n.locale.value:ze(r.locale)?r.locale:nc),d=l(n&&c?n.fallbackLocale.value:ze(r.fallbackLocale)||Zt(r.fallbackLocale)||gt(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:u.value),f=l(Rp(u.value,r)),h=l(gt(r.datetimeFormats)?r.datetimeFormats:{[u.value]:{}}),p=l(gt(r.numberFormats)?r.numberFormats:{[u.value]:{}});let g=n?n.missingWarn:_t(r.missingWarn)||Hi(r.missingWarn)?r.missingWarn:!0,m=n?n.fallbackWarn:_t(r.fallbackWarn)||Hi(r.fallbackWarn)?r.fallbackWarn:!0,v=n?n.fallbackRoot:_t(r.fallbackRoot)?r.fallbackRoot:!0,b=!!r.fallbackFormat,C=Kt(r.missing)?r.missing:null,y=Kt(r.missing)?pw(r.missing):null,w=Kt(r.postTranslation)?r.postTranslation:null,x=n?n.warnHtmlMessage:_t(r.warnHtmlMessage)?r.warnHtmlMessage:!0,E=!!r.escapeParameter;const _=n?n.modifiers:gt(r.modifiers)?r.modifiers:{};let M=r.pluralRules||n&&n.pluralRules,A;A=(()=>{o&&tw(null);const Z={version:d3,locale:u.value,fallbackLocale:d.value,messages:f.value,modifiers:_,pluralRules:M,missing:y===null?void 0:y,missingWarn:g,fallbackWarn:m,fallbackFormat:b,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:x,escapeParameter:E,messageResolver:r.messageResolver,messageCompiler:r.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=h.value,Z.numberFormats=p.value,Z.__datetimeFormatters=gt(A)?A.__datetimeFormatters:void 0,Z.__numberFormatters=gt(A)?A.__numberFormatters:void 0;const ae=t3(Z);return o&&tw(ae),ae})(),cu(A,u.value,d.value);function P(){return[u.value,d.value,f.value,h.value,p.value]}const $=z({get:()=>u.value,set:Z=>{u.value=Z,A.locale=u.value}}),B=z({get:()=>d.value,set:Z=>{d.value=Z,A.fallbackLocale=d.value,cu(A,u.value,Z)}}),W=z(()=>f.value),I=z(()=>h.value),R=z(()=>p.value);function U(){return Kt(w)?w:null}function Q(Z){w=Z,A.postTranslation=Z}function q(){return C}function ee(Z){Z!==null&&(y=pw(Z)),C=Z,A.missing=y}const de=(Z,ae,je,Qe,Me,ke)=>{P();let Je;try{__INTLIFY_PROD_DEVTOOLS__,o||(A.fallbackContext=n?e3():void 0),Je=Z(A)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(A.fallbackContext=void 0)}if(je!=="translate exists"&&_n(Je)&&Je===Lp||je==="translate exists"&&!Je){const[it,ue]=ae();return n&&v?Qe(n):Me(it)}else{if(ke(Je))return Je;throw Rn(An.UNEXPECTED_RETURN_TYPE)}};function ce(...Z){return de(ae=>Reflect.apply(ow,null,[ae,...Z]),()=>rb(...Z),"translate",ae=>Reflect.apply(ae.t,ae,[...Z]),ae=>ae,ae=>ze(ae))}function Te(...Z){const[ae,je,Qe]=Z;if(Qe&&!Lt(Qe))throw Rn(An.INVALID_ARGUMENT);return ce(ae,je,Yn({resolvedMessage:!0},Qe||{}))}function fe(...Z){return de(ae=>Reflect.apply(iw,null,[ae,...Z]),()=>sb(...Z),"datetime format",ae=>Reflect.apply(ae.d,ae,[...Z]),()=>Z1,ae=>ze(ae))}function we(...Z){return de(ae=>Reflect.apply(aw,null,[ae,...Z]),()=>ob(...Z),"number format",ae=>Reflect.apply(ae.n,ae,[...Z]),()=>Z1,ae=>ze(ae))}function Ee(Z){return Z.map(ae=>ze(ae)||_n(ae)||_t(ae)?uw(String(ae)):ae)}const ne={normalize:Ee,interpolate:Z=>Z,type:"vnode"};function se(...Z){return de(ae=>{let je;const Qe=ae;try{Qe.processor=ne,je=Reflect.apply(ow,null,[Qe,...Z])}finally{Qe.processor=null}return je},()=>rb(...Z),"translate",ae=>ae[ib](...Z),ae=>[uw(ae)],ae=>Zt(ae))}function me(...Z){return de(ae=>Reflect.apply(aw,null,[ae,...Z]),()=>ob(...Z),"number format",ae=>ae[ab](...Z),fw,ae=>ze(ae)||Zt(ae))}function Pe(...Z){return de(ae=>Reflect.apply(iw,null,[ae,...Z]),()=>sb(...Z),"datetime format",ae=>ae[lb](...Z),fw,ae=>ze(ae)||Zt(ae))}function Se(Z){M=Z,A.pluralRules=M}function D(Z,ae){return de(()=>{if(!Z)return!1;const je=ze(ae)?ae:u.value,Qe=he(je),Me=A.messageResolver(Qe,Z);return a?Me!=null:rc(Me)||Yr(Me)||ze(Me)},()=>[Z],"translate exists",je=>Reflect.apply(je.te,je,[Z,ae]),h3,je=>_t(je))}function L(Z){let ae=null;const je=r2(A,d.value,u.value);for(let Qe=0;Qe{c&&(u.value=Z,A.locale=Z,cu(A,u.value,d.value))}),$e(n.fallbackLocale,Z=>{c&&(d.value=Z,A.fallbackLocale=Z,cu(A,u.value,d.value))}));const re={id:hw,locale:$,fallbackLocale:B,get inheritLocale(){return c},set inheritLocale(Z){c=Z,Z&&n&&(u.value=n.locale.value,d.value=n.fallbackLocale.value,cu(A,u.value,d.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:W,get modifiers(){return _},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return g},set missingWarn(Z){g=Z,A.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(Z){m=Z,A.fallbackWarn=m},get fallbackRoot(){return v},set fallbackRoot(Z){v=Z},get fallbackFormat(){return b},set fallbackFormat(Z){b=Z,A.fallbackFormat=b},get warnHtmlMessage(){return x},set warnHtmlMessage(Z){x=Z,A.warnHtmlMessage=Z},get escapeParameter(){return E},set escapeParameter(Z){E=Z,A.escapeParameter=Z},t:ce,getLocaleMessage:he,setLocaleMessage:ge,mergeLocaleMessage:Ce,getPostTranslationHandler:U,setPostTranslationHandler:Q,getMissingHandler:q,setMissingHandler:ee,[b2]:Se};return re.datetimeFormats=I,re.numberFormats=R,re.rt=Te,re.te=D,re.tm=te,re.d=fe,re.n=we,re.getDateTimeFormat=xe,re.setDateTimeFormat=V,re.mergeDateTimeFormat=F,re.getNumberFormat=J,re.setNumberFormat=ie,re.mergeNumberFormat=Ae,re[v2]=s,re[ib]=se,re[lb]=Pe,re[ab]=me,re}function g3(r){const e=ze(r.locale)?r.locale:nc,n=ze(r.fallbackLocale)||Zt(r.fallbackLocale)||gt(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:e,s=Kt(r.missing)?r.missing:void 0,o=_t(r.silentTranslationWarn)||Hi(r.silentTranslationWarn)?!r.silentTranslationWarn:!0,i=_t(r.silentFallbackWarn)||Hi(r.silentFallbackWarn)?!r.silentFallbackWarn:!0,l=_t(r.fallbackRoot)?r.fallbackRoot:!0,a=!!r.formatFallbackMessages,c=gt(r.modifiers)?r.modifiers:{},u=r.pluralizationRules,d=Kt(r.postTranslation)?r.postTranslation:void 0,f=ze(r.warnHtmlInMessage)?r.warnHtmlInMessage!=="off":!0,h=!!r.escapeParameterHtml,p=_t(r.sync)?r.sync:!0;let g=r.messages;if(gt(r.sharedMessages)){const E=r.sharedMessages;g=Object.keys(E).reduce((M,A)=>{const k=M[A]||(M[A]={});return Yn(k,E[A]),M},g||{})}const{__i18n:m,__root:v,__injectWithOption:b}=r,C=r.datetimeFormats,y=r.numberFormats,w=r.flatJson,x=r.translateExistCompatible;return{locale:e,fallbackLocale:n,messages:g,flatJson:w,datetimeFormats:C,numberFormats:y,missing:s,missingWarn:o,fallbackWarn:i,fallbackRoot:l,fallbackFormat:a,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:h,messageResolver:r.messageResolver,inheritLocale:p,translateExistCompatible:x,__i18n:m,__root:v,__injectWithOption:b}}function ub(r={},e){{const n=ey(g3(r)),{__extender:s}=r,o={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return _t(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=_t(i)?!i:i},get silentFallbackWarn(){return _t(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=_t(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[l,a,c]=i,u={};let d=null,f=null;if(!ze(l))throw Rn(An.INVALID_ARGUMENT);const h=l;return ze(a)?u.locale=a:Zt(a)?d=a:gt(a)&&(f=a),Zt(c)?d=c:gt(c)&&(f=c),Reflect.apply(n.t,n,[h,d||f||{},u])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[l,a,c]=i,u={plural:1};let d=null,f=null;if(!ze(l))throw Rn(An.INVALID_ARGUMENT);const h=l;return ze(a)?u.locale=a:_n(a)?u.plural=a:Zt(a)?d=a:gt(a)&&(f=a),ze(c)?u.locale=c:Zt(c)?d=c:gt(c)&&(f=c),Reflect.apply(n.t,n,[h,d||f||{},u])},te(i,l){return n.te(i,l)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,l){n.setLocaleMessage(i,l)},mergeLocaleMessage(i,l){n.mergeLocaleMessage(i,l)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,l){n.setDateTimeFormat(i,l)},mergeDateTimeFormat(i,l){n.mergeDateTimeFormat(i,l)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,l){n.setNumberFormat(i,l)},mergeNumberFormat(i,l){n.mergeNumberFormat(i,l)},getChoiceIndex(i,l){return-1}};return o.__extender=s,o}}const ty={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:r=>r==="parent"||r==="global",default:"parent"},i18n:{type:Object}};function m3({slots:r},e){return e.length===1&&e[0]==="default"?(r.default?r.default():[]).reduce((s,o)=>[...s,...o.type===De?o.children:[o]],[]):e.reduce((n,s)=>{const o=r[s];return o&&(n[s]=o()),n},{})}function C2(r){return De}const b3=pe({name:"i18n-t",props:Yn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:r=>_n(r)||!isNaN(r)}},ty),setup(r,e){const{slots:n,attrs:s}=e,o=r.i18n||cn({useScope:r.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),l={};r.locale&&(l.locale=r.locale),r.plural!==void 0&&(l.plural=ze(r.plural)?+r.plural:r.plural);const a=m3(e,i),c=o[ib](r.keypath,a,l),u=Yn({},s),d=ze(r.tag)||Lt(r.tag)?r.tag:C2();return Ye(d,u,c)}}}),gw=b3;function v3(r){return Zt(r)&&!ze(r[0])}function S2(r,e,n,s){const{slots:o,attrs:i}=e;return()=>{const l={part:!0};let a={};r.locale&&(l.locale=r.locale),ze(r.format)?l.key=r.format:Lt(r.format)&&(ze(r.format.key)&&(l.key=r.format.key),a=Object.keys(r.format).reduce((h,p)=>n.includes(p)?Yn({},h,{[p]:r.format[p]}):h,{}));const c=s(r.value,l,a);let u=[l.key];Zt(c)?u=c.map((h,p)=>{const g=o[h.type],m=g?g({[h.type]:h.value,index:p,parts:c}):[h.value];return v3(m)&&(m[0].key=`${h.type}-${p}`),m}):ze(c)&&(u=[c]);const d=Yn({},i),f=ze(r.tag)||Lt(r.tag)?r.tag:C2();return Ye(f,d,u)}}const y3=pe({name:"i18n-n",props:Yn({value:{type:Number,required:!0},format:{type:[String,Object]}},ty),setup(r,e){const n=r.i18n||cn({useScope:r.scope,__useComponent:!0});return S2(r,e,p2,(...s)=>n[ab](...s))}}),mw=y3,w3=pe({name:"i18n-d",props:Yn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ty),setup(r,e){const n=r.i18n||cn({useScope:r.scope,__useComponent:!0});return S2(r,e,h2,(...s)=>n[lb](...s))}}),bw=w3;function C3(r,e){const n=r;if(r.mode==="composition")return n.__getInstance(e)||r.global;{const s=n.__getInstance(e);return s!=null?s.__composer:r.global.__composer}}function S3(r){const e=l=>{const{instance:a,modifiers:c,value:u}=l;if(!a||!a.$)throw Rn(An.UNEXPECTED_ERROR);const d=C3(r,a.$),f=vw(u);return[Reflect.apply(d.t,d,[...yw(f)]),d]};return{created:(l,a)=>{const[c,u]=e(a);Oh&&r.global===u&&(l.__i18nWatcher=$e(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),l.__composer=u,l.textContent=c},unmounted:l=>{Oh&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:a})=>{if(l.__composer){const c=l.__composer,u=vw(a);l.textContent=Reflect.apply(c.t,c,[...yw(u)])}},getSSRProps:l=>{const[a]=e(l);return{textContent:a}}}}function vw(r){if(ze(r))return{path:r};if(gt(r)){if(!("path"in r))throw Rn(An.REQUIRED_VALUE,"path");return r}else throw Rn(An.INVALID_VALUE)}function yw(r){const{path:e,locale:n,args:s,choice:o,plural:i}=r,l={},a=s||{};return ze(n)&&(l.locale=n),_n(o)&&(l.plural=o),_n(i)&&(l.plural=i),[e,a,l]}function x3(r,e,...n){const s=gt(n[0])?n[0]:{},o=!!s.useI18nComponentName;(_t(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":gw.name,"I18nT"].forEach(l=>r.component(l,gw)),[mw.name,"I18nN"].forEach(l=>r.component(l,mw)),[bw.name,"I18nD"].forEach(l=>r.component(l,bw))),r.directive("t",S3(e))}function E3(r,e,n){return{beforeCreate(){const s=bt();if(!s)throw Rn(An.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const i=o.i18n;if(o.__i18n&&(i.__i18n=o.__i18n),i.__root=e,this===this.$root)this.$i18n=ww(r,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=ub(i);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=ww(r,o);else{this.$i18n=ub({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:e});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=r;o.__i18nGlobal&&w2(e,o,o),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,l)=>this.$i18n.te(i,l),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=bt();if(!s)throw Rn(An.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),n.__deleteInstance(s),delete this.$i18n}}}function ww(r,e){r.locale=e.locale||r.locale,r.fallbackLocale=e.fallbackLocale||r.fallbackLocale,r.missing=e.missing||r.missing,r.silentTranslationWarn=e.silentTranslationWarn||r.silentFallbackWarn,r.silentFallbackWarn=e.silentFallbackWarn||r.silentFallbackWarn,r.formatFallbackMessages=e.formatFallbackMessages||r.formatFallbackMessages,r.postTranslation=e.postTranslation||r.postTranslation,r.warnHtmlInMessage=e.warnHtmlInMessage||r.warnHtmlInMessage,r.escapeParameterHtml=e.escapeParameterHtml||r.escapeParameterHtml,r.sync=e.sync||r.sync,r.__composer[b2](e.pluralizationRules||r.pluralizationRules);const n=Rp(r.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(s=>r.mergeLocaleMessage(s,n[s])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(s=>r.mergeDateTimeFormat(s,e.datetimeFormats[s])),e.numberFormats&&Object.keys(e.numberFormats).forEach(s=>r.mergeNumberFormat(s,e.numberFormats[s])),r}const T3=tl("global-vue-i18n");function _3(r={},e){const n=__VUE_I18N_LEGACY_API__&&_t(r.legacy)?r.legacy:__VUE_I18N_LEGACY_API__,s=_t(r.globalInjection)?r.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!r.allowComposition:!0,i=new Map,[l,a]=O3(r,n),c=tl("");function u(h){return i.get(h)||null}function d(h,p){i.set(h,p)}function f(h){i.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(p,...g){if(p.__VUE_I18N_SYMBOL__=c,p.provide(p.__VUE_I18N_SYMBOL__,h),gt(g[0])){const b=g[0];h.__composerExtend=b.__composerExtend,h.__vueI18nExtend=b.__vueI18nExtend}let m=null;!n&&s&&(m=$3(p,h.global)),__VUE_I18N_FULL_INSTALL__&&x3(p,h,...g),__VUE_I18N_LEGACY_API__&&n&&p.mixin(E3(a,a.__composer,h));const v=p.unmount;p.unmount=()=>{m&&m(),h.dispose(),v()}},get global(){return a},dispose(){l.stop()},__instances:i,__getInstance:u,__setInstance:d,__deleteInstance:f};return h}}function cn(r={}){const e=bt();if(e==null)throw Rn(An.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Rn(An.NOT_INSTALLED);const n=A3(e),s=k3(n),o=y2(e),i=M3(r,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!r.__useComponent){if(!n.allowComposition)throw Rn(An.NOT_AVAILABLE_IN_LEGACY_MODE);return L3(e,i,s,r)}if(i==="global")return w2(s,r,o),s;if(i==="parent"){let c=P3(n,e,r.__useComponent);return c==null&&(c=s),c}const l=n;let a=l.__getInstance(e);if(a==null){const c=Yn({},r);"__i18n"in o&&(c.__i18n=o.__i18n),s&&(c.__root=s),a=ey(c),l.__composerExtend&&(a[cb]=l.__composerExtend(a)),I3(l,e,a),l.__setInstance(e,a)}return a}function O3(r,e,n){const s=PE();{const o=__VUE_I18N_LEGACY_API__&&e?s.run(()=>ub(r)):s.run(()=>ey(r));if(o==null)throw Rn(An.UNEXPECTED_ERROR);return[s,o]}}function A3(r){{const e=Ve(r.isCE?T3:r.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Rn(r.isCE?An.NOT_INSTALLED_WITH_PROVIDE:An.UNEXPECTED_ERROR);return e}}function M3(r,e){return Np(r)?"__i18n"in e?"local":"global":r.useScope?r.useScope:"local"}function k3(r){return r.mode==="composition"?r.global:r.global.__composer}function P3(r,e,n=!1){let s=null;const o=e.root;let i=N3(e,n);for(;i!=null;){const l=r;if(r.mode==="composition")s=l.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=l.__getInstance(i);a!=null&&(s=a.__composer,n&&s&&!s[v2]&&(s=null))}if(s!=null||o===i)break;i=i.parent}return s}function N3(r,e=!1){return r==null?null:e&&r.vnode.ctx||r.parent}function I3(r,e,n){nt(()=>{},e),qo(()=>{const s=n;r.__deleteInstance(e);const o=s[cb];o&&(o(),delete s[cb])},e)}function L3(r,e,n,s={}){const o=e==="local",i=Ms(null);if(o&&r.proxy&&!(r.proxy.$options.i18n||r.proxy.$options.__i18n))throw Rn(An.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=_t(s.inheritLocale)?s.inheritLocale:!ze(s.locale),a=j(!o||l?n.locale.value:ze(s.locale)?s.locale:nc),c=j(!o||l?n.fallbackLocale.value:ze(s.fallbackLocale)||Zt(s.fallbackLocale)||gt(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),u=j(Rp(a.value,s)),d=j(gt(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),f=j(gt(s.numberFormats)?s.numberFormats:{[a.value]:{}}),h=o?n.missingWarn:_t(s.missingWarn)||Hi(s.missingWarn)?s.missingWarn:!0,p=o?n.fallbackWarn:_t(s.fallbackWarn)||Hi(s.fallbackWarn)?s.fallbackWarn:!0,g=o?n.fallbackRoot:_t(s.fallbackRoot)?s.fallbackRoot:!0,m=!!s.fallbackFormat,v=Kt(s.missing)?s.missing:null,b=Kt(s.postTranslation)?s.postTranslation:null,C=o?n.warnHtmlMessage:_t(s.warnHtmlMessage)?s.warnHtmlMessage:!0,y=!!s.escapeParameter,w=o?n.modifiers:gt(s.modifiers)?s.modifiers:{},x=s.pluralRules||o&&n.pluralRules;function E(){return[a.value,c.value,u.value,d.value,f.value]}const _=z({get:()=>i.value?i.value.locale.value:a.value,set:L=>{i.value&&(i.value.locale.value=L),a.value=L}}),M=z({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:L=>{i.value&&(i.value.fallbackLocale.value=L),c.value=L}}),A=z(()=>i.value?i.value.messages.value:u.value),k=z(()=>d.value),P=z(()=>f.value);function $(){return i.value?i.value.getPostTranslationHandler():b}function B(L){i.value&&i.value.setPostTranslationHandler(L)}function W(){return i.value?i.value.getMissingHandler():v}function I(L){i.value&&i.value.setMissingHandler(L)}function R(L){return E(),L()}function U(...L){return i.value?R(()=>Reflect.apply(i.value.t,null,[...L])):R(()=>"")}function Q(...L){return i.value?Reflect.apply(i.value.rt,null,[...L]):""}function q(...L){return i.value?R(()=>Reflect.apply(i.value.d,null,[...L])):R(()=>"")}function ee(...L){return i.value?R(()=>Reflect.apply(i.value.n,null,[...L])):R(()=>"")}function de(L){return i.value?i.value.tm(L):{}}function ce(L,te){return i.value?i.value.te(L,te):!1}function Te(L){return i.value?i.value.getLocaleMessage(L):{}}function fe(L,te){i.value&&(i.value.setLocaleMessage(L,te),u.value[L]=te)}function we(L,te){i.value&&i.value.mergeLocaleMessage(L,te)}function Ee(L){return i.value?i.value.getDateTimeFormat(L):{}}function G(L,te){i.value&&(i.value.setDateTimeFormat(L,te),d.value[L]=te)}function ne(L,te){i.value&&i.value.mergeDateTimeFormat(L,te)}function se(L){return i.value?i.value.getNumberFormat(L):{}}function me(L,te){i.value&&(i.value.setNumberFormat(L,te),f.value[L]=te)}function Pe(L,te){i.value&&i.value.mergeNumberFormat(L,te)}const Se={get id(){return i.value?i.value.id:-1},locale:_,fallbackLocale:M,messages:A,datetimeFormats:k,numberFormats:P,get inheritLocale(){return i.value?i.value.inheritLocale:l},set inheritLocale(L){i.value&&(i.value.inheritLocale=L)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:w},get pluralRules(){return i.value?i.value.pluralRules:x},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(L){i.value&&(i.value.missingWarn=L)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(L){i.value&&(i.value.missingWarn=L)},get fallbackRoot(){return i.value?i.value.fallbackRoot:g},set fallbackRoot(L){i.value&&(i.value.fallbackRoot=L)},get fallbackFormat(){return i.value?i.value.fallbackFormat:m},set fallbackFormat(L){i.value&&(i.value.fallbackFormat=L)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:C},set warnHtmlMessage(L){i.value&&(i.value.warnHtmlMessage=L)},get escapeParameter(){return i.value?i.value.escapeParameter:y},set escapeParameter(L){i.value&&(i.value.escapeParameter=L)},t:U,getPostTranslationHandler:$,setPostTranslationHandler:B,getMissingHandler:W,setMissingHandler:I,rt:Q,d:q,n:ee,tm:de,te:ce,getLocaleMessage:Te,setLocaleMessage:fe,mergeLocaleMessage:we,getDateTimeFormat:Ee,setDateTimeFormat:G,mergeDateTimeFormat:ne,getNumberFormat:se,setNumberFormat:me,mergeNumberFormat:Pe};function D(L){L.locale.value=a.value,L.fallbackLocale.value=c.value,Object.keys(u.value).forEach(te=>{L.mergeLocaleMessage(te,u.value[te])}),Object.keys(d.value).forEach(te=>{L.mergeDateTimeFormat(te,d.value[te])}),Object.keys(f.value).forEach(te=>{L.mergeNumberFormat(te,f.value[te])}),L.escapeParameter=y,L.fallbackFormat=m,L.fallbackRoot=g,L.fallbackWarn=p,L.missingWarn=h,L.warnHtmlMessage=C}return zd(()=>{if(r.proxy==null||r.proxy.$i18n==null)throw Rn(An.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const L=i.value=r.proxy.$i18n.__composer;e==="global"?(a.value=L.locale.value,c.value=L.fallbackLocale.value,u.value=L.messages.value,d.value=L.datetimeFormats.value,f.value=L.numberFormats.value):o&&D(L)}),Se}const R3=["locale","fallbackLocale","availableLocales"],Cw=["t","rt","d","n","tm","te"];function $3(r,e){const n=Object.create(null);return R3.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i)throw Rn(An.UNEXPECTED_ERROR);const l=qt(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,o,l)}),r.config.globalProperties.$i18n=n,Cw.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i||!i.value)throw Rn(An.UNEXPECTED_ERROR);Object.defineProperty(r.config.globalProperties,`$${o}`,i)}),()=>{delete r.config.globalProperties.$i18n,Cw.forEach(o=>{delete r.config.globalProperties[`$${o}`]})}}f3();__INTLIFY_JIT_COMPILATION__?ew(i3):ew(o3);J$(P$);X$(r2);if(__INTLIFY_PROD_DEVTOOLS__){const r=ko();r.__INTLIFY__=!0,B$(r.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const D3={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:"了解如何通过画布,快速的构建出流程。了解如何通过代码,对接应答接口"}}},V3={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:"System 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"}}},F3={zh:D3,en:V3},B3=((navigator.language?navigator.language:navigator.userLanguage)||"zh").toLowerCase(),z3=_3({fallbackLocale:"zh",globalInjection:!0,legacy:!1,locale:B3.split("-")[0]||"zh",messages:F3}),j3={__name:"App",setup(r){return(e,n)=>{const s=Pt("router-view");return N(),ye(s)}}},H3='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',U3=r=>getComputedStyle(r).position==="fixed"?!1:r.offsetParent!==null,Sw=r=>Array.from(r.querySelectorAll(H3)).filter(e=>W3(e)&&U3(e)),W3=r=>{if(r.tabIndex>0||r.tabIndex===0&&r.getAttribute("tabIndex")!==null)return!0;if(r.disabled)return!1;switch(r.nodeName){case"A":return!!r.href&&r.rel!=="ignore";case"INPUT":return!(r.type==="hidden"||r.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Oo=(r,e,{checkForDefaultPrevented:n=!0}={})=>o=>{const i=r==null?void 0:r(o);if(n===!1||!i)return e==null?void 0:e(o)};var q3=Object.defineProperty,G3=Object.defineProperties,K3=Object.getOwnPropertyDescriptors,xw=Object.getOwnPropertySymbols,Y3=Object.prototype.hasOwnProperty,J3=Object.prototype.propertyIsEnumerable,Ew=(r,e,n)=>e in r?q3(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,X3=(r,e)=>{for(var n in e||(e={}))Y3.call(e,n)&&Ew(r,n,e[n]);if(xw)for(var n of xw(e))J3.call(e,n)&&Ew(r,n,e[n]);return r},Z3=(r,e)=>G3(r,K3(e));function Tw(r,e){var n;const s=Ms();return to(()=>{s.value=r()},Z3(X3({},e),{flush:(n=e==null?void 0:e.flush)!=null?n:"sync"})),Vd(s)}var _w;const Ct=typeof window<"u",Q3=r=>typeof r=="string",sc=()=>{},eD=Ct&&((_w=window==null?void 0:window.navigator)==null?void 0:_w.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function oc(r){return typeof r=="function"?r():S(r)}function x2(r,e){function n(...s){return new Promise((o,i)=>{Promise.resolve(r(()=>e.apply(this,s),{fn:e,thisArg:this,args:s})).then(o).catch(i)})}return n}function tD(r,e={}){let n,s,o=sc;const i=a=>{clearTimeout(a),o(),o=sc};return a=>{const c=oc(r),u=oc(e.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(s&&(i(s),s=null),Promise.resolve(a())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,u&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,d(a())},u)),n=setTimeout(()=>{s&&i(s),s=null,d(a())},c)})}}function nD(r,e=!0,n=!0,s=!1){let o=0,i,l=!0,a=sc,c;const u=()=>{i&&(clearTimeout(i),i=void 0,a(),a=sc)};return f=>{const h=oc(r),p=Date.now()-o,g=()=>c=f();return u(),h<=0?(o=Date.now(),g()):(p>h&&(n||!l)?(o=Date.now(),g()):e&&(c=new Promise((m,v)=>{a=s?v:m,i=setTimeout(()=>{o=Date.now(),l=!0,m(g()),u()},Math.max(0,h-p))})),!n&&!i&&(i=setTimeout(()=>l=!0,h)),l=!1,c)}}function rD(r){return r}function Hd(r){return NE()?(IE(r),!0):!1}function sD(r,e=200,n={}){return x2(tD(e,n),r)}function oD(r,e=200,n={}){const s=j(r.value),o=sD(()=>{s.value=r.value},e,n);return $e(r,()=>o()),s}function iD(r,e=200,n=!1,s=!0,o=!1){return x2(nD(e,n,s,o),r)}function lD(r,e=!0){bt()?nt(r):e?r():tt(r)}function kh(r,e,n={}){const{immediate:s=!0}=n,o=j(!1);let i=null;function l(){i&&(clearTimeout(i),i=null)}function a(){o.value=!1,l()}function c(...u){l(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,r(...u)},oc(e))}return s&&(o.value=!0,Ct&&c()),Hd(a),{isPending:Vd(o),start:c,stop:a}}function Po(r){var e;const n=oc(r);return(e=n==null?void 0:n.$el)!=null?e:n}const Ud=Ct?window:void 0,aD=Ct?window.document:void 0;function vn(...r){let e,n,s,o;if(Q3(r[0])||Array.isArray(r[0])?([n,s,o]=r,e=Ud):[e,n,s,o]=r,!e)return sc;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],l=()=>{i.forEach(d=>d()),i.length=0},a=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),c=$e(()=>[Po(e),oc(o)],([d,f])=>{l(),d&&i.push(...n.flatMap(h=>s.map(p=>a(d,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),l()};return Hd(u),u}let Ow=!1;function cD(r,e,n={}){const{window:s=Ud,ignore:o=[],capture:i=!0,detectIframe:l=!1}=n;if(!s)return;eD&&!Ow&&(Ow=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",sc)));let a=!0;const c=h=>o.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(g=>g===h.target||h.composedPath().includes(g));{const g=Po(p);return g&&(h.target===g||h.composedPath().includes(g))}}),d=[vn(s,"click",h=>{const p=Po(r);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(a=!c(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:i}),vn(s,"pointerdown",h=>{const p=Po(r);p&&(a=!h.composedPath().includes(p)&&!c(h))},{passive:!0}),l&&vn(s,"blur",h=>{var p;const g=Po(r);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(s.document.activeElement))&&e(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function E2(r,e=!1){const n=j(),s=()=>n.value=!!r();return s(),lD(s,e),n}const Aw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mw="__vueuse_ssr_handlers__";Aw[Mw]=Aw[Mw]||{};function uD({document:r=aD}={}){if(!r)return j("visible");const e=j(r.visibilityState);return vn(r,"visibilitychange",()=>{e.value=r.visibilityState}),e}var kw=Object.getOwnPropertySymbols,dD=Object.prototype.hasOwnProperty,fD=Object.prototype.propertyIsEnumerable,hD=(r,e)=>{var n={};for(var s in r)dD.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&kw)for(var s of kw(r))e.indexOf(s)<0&&fD.call(r,s)&&(n[s]=r[s]);return n};function dr(r,e,n={}){const s=n,{window:o=Ud}=s,i=hD(s,["window"]);let l;const a=E2(()=>o&&"ResizeObserver"in o),c=()=>{l&&(l.disconnect(),l=void 0)},u=$e(()=>Po(r),f=>{c(),a.value&&o&&f&&(l=new ResizeObserver(e),l.observe(f,i))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return Hd(d),{isSupported:a,stop:d}}var Pw=Object.getOwnPropertySymbols,pD=Object.prototype.hasOwnProperty,gD=Object.prototype.propertyIsEnumerable,mD=(r,e)=>{var n={};for(var s in r)pD.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&Pw)for(var s of Pw(r))e.indexOf(s)<0&&gD.call(r,s)&&(n[s]=r[s]);return n};function bD(r,e,n={}){const s=n,{window:o=Ud}=s,i=mD(s,["window"]);let l;const a=E2(()=>o&&"MutationObserver"in o),c=()=>{l&&(l.disconnect(),l=void 0)},u=$e(()=>Po(r),f=>{c(),a.value&&o&&f&&(l=new MutationObserver(e),l.observe(f,i))},{immediate:!0}),d=()=>{c(),u()};return Hd(d),{isSupported:a,stop:d}}var Nw;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(Nw||(Nw={}));var vD=Object.defineProperty,Iw=Object.getOwnPropertySymbols,yD=Object.prototype.hasOwnProperty,wD=Object.prototype.propertyIsEnumerable,Lw=(r,e,n)=>e in r?vD(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,CD=(r,e)=>{for(var n in e||(e={}))yD.call(e,n)&&Lw(r,n,e[n]);if(Iw)for(var n of Iw(e))wD.call(e,n)&&Lw(r,n,e[n]);return r};const SD={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]};CD({linear:rD},SD);function xD({window:r=Ud}={}){if(!r)return j(!1);const e=j(r.document.hasFocus());return vn(r,"blur",()=>{e.value=!1}),vn(r,"focus",()=>{e.value=!0}),e}const ED=()=>Ct&&/firefox/i.test(window.navigator.userAgent),TD=(r,e)=>{if(!Ct||!r||!e)return!1;const n=r.getBoundingClientRect();let s;return e instanceof Element?s=e.getBoundingClientRect():s={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.tops.top&&n.right>s.left&&n.left0){if(++e>=f4)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function m4(r){return function(){return r}}var Ph=function(){try{var r=ha(Object,"defineProperty");return r({},"",{}),r}catch{}}(),b4=Ph?function(r,e){return Ph(r,"toString",{configurable:!0,enumerable:!1,value:m4(e),writable:!0})}:qc;const v4=b4;var k2=g4(v4);function y4(r,e){for(var n=-1,s=r==null?0:r.length;++n-1}var x4=9007199254740991,E4=/^(?:0|[1-9]\d*)$/;function $p(r,e){var n=typeof r;return e=e??x4,!!e&&(n=="number"||n!="symbol"&&E4.test(r))&&r>-1&&r%1==0&&r-1&&r%1==0&&r<=O4}function pa(r){return r!=null&&sy(r.length)&&!ny(r)}function Nh(r,e,n){if(!ln(n))return!1;var s=typeof e;return(s=="number"?pa(n)&&$p(e,n.length):s=="string"&&e in n)?Gc(n[e],r):!1}function L2(r){return Kc(function(e,n){var s=-1,o=n.length,i=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(i=r.length>3&&typeof i=="function"?(o--,i):void 0,l&&Nh(n[0],n[1],l)&&(i=o<3?void 0:i,o=1),e=Object(e);++s-1}function D8(r,e){var n=this.__data__,s=Bp(n,r);return s<0?(++this.size,n.push([r,e])):n[s][1]=e,this}function Ko(r){var e=-1,n=r==null?0:r.length;for(this.clear();++e0&&n(a)?e>1?Jc(a,e-1,n,s,o):ly(o,a):s||(o[o.length]=a)}return o}function Z8(r){var e=r==null?0:r.length;return e?Jc(r,1):[]}function Q8(r){return k2(I2(r,void 0,Z8),r+"")}var ay=F2(Object.getPrototypeOf,Object),eV="[object Object]",tV=Function.prototype,nV=Object.prototype,z2=tV.toString,rV=nV.hasOwnProperty,sV=z2.call(Object);function po(r){if(!$s(r)||rl(r)!=eV)return!1;var e=ay(r);if(e===null)return!0;var n=rV.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&z2.call(n)==sV}function oV(r,e,n){var s=-1,o=r.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++s=s?r:oV(r,e,n)}var lV="\\ud800-\\udfff",aV="\\u0300-\\u036f",cV="\\ufe20-\\ufe2f",uV="\\u20d0-\\u20ff",dV=aV+cV+uV,fV="\\ufe0e\\ufe0f",hV="\\u200d",pV=RegExp("["+hV+lV+dV+fV+"]");function j2(r){return pV.test(r)}function gV(r){return r.split("")}var H2="\\ud800-\\udfff",mV="\\u0300-\\u036f",bV="\\ufe20-\\ufe2f",vV="\\u20d0-\\u20ff",yV=mV+bV+vV,wV="\\ufe0e\\ufe0f",CV="["+H2+"]",fb="["+yV+"]",hb="\\ud83c[\\udffb-\\udfff]",SV="(?:"+fb+"|"+hb+")",U2="[^"+H2+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",xV="\\u200d",G2=SV+"?",K2="["+wV+"]?",EV="(?:"+xV+"(?:"+[U2,W2,q2].join("|")+")"+K2+G2+")*",TV=K2+G2+EV,_V="(?:"+[U2+fb+"?",fb,W2,q2,CV].join("|")+")",OV=RegExp(hb+"(?="+hb+")|"+_V+TV,"g");function AV(r){return r.match(OV)||[]}function MV(r){return j2(r)?AV(r):gV(r)}function Y2(r){return function(e){e=Kd(e);var n=j2(e)?MV(e):void 0,s=n?n[0]:e.charAt(0),o=n?iV(n,1).join(""):e.slice(1);return s[r]()+o}}var Ih=Y2("toUpperCase");function kV(r){return Ih(Kd(r).toLowerCase())}function PV(r,e,n,s){var o=-1,i=r==null?0:r.length;for(s&&i&&(n=r[++o]);++o=e?r:e)),r}function Zr(r,e,n){return n===void 0&&(n=e,e=void 0),n!==void 0&&(n=Ha(n),n=n===n?n:0),e!==void 0&&(e=Ha(e),e=e===e?e:0),wF(Ha(r),e,n)}function CF(){this.__data__=new Ko,this.size=0}function SF(r){var e=this.__data__,n=e.delete(r);return this.size=e.size,n}function xF(r){return this.__data__.get(r)}function EF(r){return this.__data__.has(r)}var TF=200;function _F(r,e){var n=this.__data__;if(n instanceof Ko){var s=n.__data__;if(!ud||s.lengtha))return!1;var u=i.get(r),d=i.get(e);if(u&&d)return u==e&&d==r;var f=-1,h=!0,p=n&n6?new uc:void 0;for(i.set(r,e),i.set(e,r);++f=e||_<0||f&&M>=i}function b(){var E=Jg();if(v(E))return C(E);a=setTimeout(b,m(E))}function C(E){return a=void 0,h&&s?p(E):(s=o=void 0,l)}function y(){a!==void 0&&clearTimeout(a),u=0,s=c=o=a=void 0}function w(){return a===void 0?l:C(Jg())}function x(){var E=Jg(),_=v(E);if(s=arguments,o=this,c=E,_){if(a===void 0)return g(c);if(f)return clearTimeout(a),a=setTimeout(b,e),p(c)}return a===void 0&&(a=setTimeout(b,e)),l}return x.cancel=y,x.flush=w,x}var O_=Object.prototype,q6=O_.hasOwnProperty,G6=Kc(function(r,e){r=Object(r);var n=-1,s=e.length,o=s>2?e[2]:void 0;for(o&&Nh(e[0],e[1],o)&&(s=1);++n=Z6&&(i=dy,l=!1,e=new uc(e));e:for(;++oe}var c5=Object.prototype,u5=c5.hasOwnProperty;function d5(r,e){return r!=null&&u5.call(r,e)}function Af(r,e){return r!=null&&x_(r,e,d5)}var f5="[object Map]",h5="[object Set]",p5=Object.prototype,g5=p5.hasOwnProperty;function N_(r){if(r==null)return!0;if(pa(r)&&(Vn(r)||typeof r=="string"||typeof r.splice=="function"||lc(r)||Fp(r)||ic(r)))return!r.length;var e=cc(r);if(e==f5||e==h5)return!r.size;if(Vp(r))return!B2(r).length;for(var n in r)if(g5.call(r,n))return!1;return!0}function Sr(r,e){return Wp(r,e)}var m5="[object Number]";function mC(r){return typeof r=="number"||$s(r)&&rl(r)==m5}function no(r){return r==null}function I_(r){return r===void 0}var b5=Y2("toLowerCase");function v5(r,e,n){for(var s=-1,o=r.length;++se||i&&l&&c&&!a&&!u||s&&l&&c||!n&&c||!o)return 1;if(!s&&!i&&!u&&r=a)return c;var u=n[s];return c*(u=="desc"?-1:1)}}return r.index-e.index}function E5(r,e,n){e.length?e=ja(e,function(i){return Vn(i)?function(l){return Hp(l,i.length===1?i[0]:i)}:i}):e=[qc];var s=-1;e=ja(e,qd(Jd));var o=P_(r,function(i,l,a){var c=ja(e,function(u){return u(i)});return{criteria:c,index:++s,value:i}});return C5(o,function(i,l){return x5(i,l,n)})}function T5(r,e){return w5(r,e,function(n,s){return E_(r,s)})}var R_=Q8(function(r,e){return r==null?{}:T5(r,e)});function _5(r,e,n){return r==null?r:L_(r,e,n)}var O5=Kc(function(r,e){if(r==null)return[];var n=e.length;return n>1&&Nh(r,e[0],e[1])?e=[]:n>2&&Nh(e[0],e[1],e[2])&&(e=[e[0]]),E5(r,Jc(e,1),[])}),A5=4294967295,M5=A5-1,k5=Math.floor,P5=Math.min;function $_(r,e,n,s){var o=0,i=r==null?0:r.length;if(i===0)return 0;e=n(e);for(var l=e!==e,a=e===null,c=oo(e),u=e===void 0;o>>1;function L5(r,e,n){var s=0,o=r==null?s:r.length;if(typeof e=="number"&&e===e&&o<=I5){for(;s>>1,l=r[i];l!==null&&!oo(l)&&(n?l<=e:l=z5){var u=e?null:B5(r);if(u)return fy(u);l=!1,o=dy,c=new uc}else c=e?[]:a;e:for(;++sr===void 0,is=r=>typeof r=="boolean",Tt=r=>typeof r=="number",ls=r=>typeof Element>"u"?!1:r instanceof Element,fd=r=>no(r),j5=r=>ft(r)?!Number.isNaN(Number(r)):!1,H5=r=>Ct?window.requestAnimationFrame(r):setTimeout(r,16),U5=(r="")=>r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),_i=r=>Dd(r),Vh=r=>Object.keys(r),ih=(r,e,n)=>({get value(){return Xr(r,e,n)},set value(s){_5(r,e,s)}});class W5 extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function sl(r,e){throw new W5(`[${r}] ${e}`)}const F_=(r="")=>r.split(" ").filter(e=>!!e.trim()),Wa=(r,e)=>{if(!r||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return r.classList.contains(e)},ea=(r,e)=>{!r||!e.trim()||r.classList.add(...F_(e))},io=(r,e)=>{!r||!e.trim()||r.classList.remove(...F_(e))},Ol=(r,e)=>{var n;if(!Ct||!r||!e)return"";let s=Ls(e);s==="float"&&(s="cssFloat");try{const o=r.style[s];if(o)return o;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(r,"");return i?i[s]:""}catch{return r.style[s]}};function as(r,e="px"){if(!r)return"";if(Tt(r)||j5(r))return`${r}${e}`;if(ft(r))return r}const q5=(r,e)=>{if(!Ct)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],s=Ol(r,n);return["scroll","auto","overlay"].some(o=>s.includes(o))},G5=(r,e)=>{if(!Ct)return;let n=r;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(q5(n,e))return n;n=n.parentNode}return n};let Mf;const K5=r=>{var e;if(!Ct)return 0;if(Mf!==void 0)return Mf;const n=document.createElement("div");n.className=`${r}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const s=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),Mf=s-i,Mf};function Y5(r,e){if(!Ct)return;if(!e){r.scrollTop=0;return}const n=[];let s=e.offsetParent;for(;s!==null&&r!==s&&r.contains(s);)n.push(s),s=s.offsetParent;const o=e.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),i=o+e.offsetHeight,l=r.scrollTop,a=l+r.clientHeight;oa&&(r.scrollTop=i-r.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var J5=pe({name:"ArrowDown",__name:"arrow-down",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),hy=J5,X5=pe({name:"ArrowLeft",__name:"arrow-left",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),B_=X5,Z5=pe({name:"ArrowRight",__name:"arrow-right",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),Gp=Z5,Q5=pe({name:"ArrowUp",__name:"arrow-up",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),z_=Q5,ez=pe({name:"Back",__name:"back",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),H("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=pe({name:"CircleCheckFilled",__name:"circle-check-filled",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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,sz=pe({name:"CircleCheck",__name:"circle-check",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"}),H("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"})]))}}),oz=sz,iz=pe({name:"CircleCloseFilled",__name:"circle-close-filled",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),py=iz,lz=pe({name:"CircleClose",__name:"circle-close",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"}),H("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"})]))}}),gy=lz,az=pe({name:"Close",__name:"close",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),ta=az,cz=pe({name:"FullScreen",__name:"full-screen",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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=pe({name:"Hide",__name:"hide",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"}),H("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=pe({name:"InfoFilled",__name:"info-filled",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),my=hz,pz=pe({name:"Loading",__name:"loading",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),by=pz,gz=pe({name:"Minus",__name:"minus",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),mz=gz,bz=pe({name:"Plus",__name:"plus",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),j_=bz,vz=pe({name:"RefreshLeft",__name:"refresh-left",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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=vz,wz=pe({name:"RefreshRight",__name:"refresh-right",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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,Sz=pe({name:"ScaleToOriginal",__name:"scale-to-original",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),xz=Sz,Ez=pe({name:"SuccessFilled",__name:"success-filled",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),H_=Ez,Tz=pe({name:"View",__name:"view",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),_z=Tz,Oz=pe({name:"WarningFilled",__name:"warning-filled",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),vy=Oz,Az=pe({name:"ZoomIn",__name:"zoom-in",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),Mz=Az,kz=pe({name:"ZoomOut",__name:"zoom-out",setup(r){return(e,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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 U_="__epPropKey",Be=r=>r,Nz=r=>pt(r)&&!!r[U_],Kp=(r,e)=>{if(!pt(r)||Nz(r))return r;const{values:n,required:s,default:o,type:i,validator:l}=r,c={type:i,required:!!s,validator:n||l?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),wt(r,"default")&&f.push(o),d||(d=f.includes(u))),l&&(d||(d=l(u))),!d&&f.length>0){const h=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");ZI(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[U_]:!0};return wt(r,"default")&&(c.default=o),c},et=r=>Dh(Object.entries(r).map(([e,n])=>[e,Kp(n,e)])),cs=Be([String,Object,Function]),W_={Close:ta},yy={Close:ta,SuccessFilled:H_,InfoFilled:my,WarningFilled:vy,CircleCloseFilled:py},Ui={success:H_,warning:vy,error:py,info:my},q_={validating:by,success:oz,error:gy},Rt=(r,e)=>{if(r.install=n=>{for(const s of[r,...Object.values(e??{})])n.component(s.name,s)},e)for(const[n,s]of Object.entries(e))r[n]=s;return r},G_=(r,e)=>(r.install=n=>{r._context=n._context,n.config.globalProperties[e]=r},r),Iz=(r,e)=>(r.install=n=>{n.directive(e,r)},r),Ar=r=>(r.install=un,r),Lz=(...r)=>e=>{r.forEach(n=>{qe(n)?n(e):n.value=e})},bn={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"},jt="update:modelValue",Xd="change",lh="input",ga=["","default","small","large"],Rz=r=>["",...ga].includes(r);var qr=(r=>(r[r.TEXT=1]="TEXT",r[r.CLASS=2]="CLASS",r[r.STYLE=4]="STYLE",r[r.PROPS=8]="PROPS",r[r.FULL_PROPS=16]="FULL_PROPS",r[r.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",r[r.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",r[r.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",r[r.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",r[r.NEED_PATCH=512]="NEED_PATCH",r[r.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",r[r.HOISTED=-1]="HOISTED",r[r.BAIL=-2]="BAIL",r))(qr||{});function yb(r){return Mn(r)&&r.type===De}function $z(r){return Mn(r)&&r.type===rr}function Dz(r){return Mn(r)&&!yb(r)&&!$z(r)}const ah=r=>{const e=Re(r)?r:[r],n=[];return e.forEach(s=>{var o;Re(s)?n.push(...ah(s)):Mn(s)&&Re(s.children)?n.push(...ah(s.children)):(n.push(s),Mn(s)&&((o=s.component)!=null&&o.subTree)&&n.push(...ah(s.component.subTree)))}),n},K_=r=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(r),Ss=r=>r,Vz=["class","style"],Fz=/^on[A-Z]/,Y_=(r={})=>{const{excludeListeners:e=!1,excludeKeys:n}=r,s=z(()=>((n==null?void 0:n.value)||[]).concat(Vz)),o=bt();return z(o?()=>{var i;return Dh(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([l])=>!s.value.includes(l)&&!(e&&Fz.test(l))))}:()=>({}))},Cr=({from:r,replacement:e,scope:n,version:s,ref:o,type:i="API"},l)=>{$e(()=>S(l),a=>{},{immediate:!0})},J_=(r,e,n,s)=>{let o={offsetX:0,offsetY:0};const i=c=>{const u=c.clientX,d=c.clientY,{offsetX:f,offsetY:h}=o,p=r.value.getBoundingClientRect(),g=p.left,m=p.top,v=p.width,b=p.height,C=document.documentElement.clientWidth,y=document.documentElement.clientHeight,w=-g+f,x=-m+h,E=C-g-v+f,_=y-m-b+h,M=k=>{let P=f+k.clientX-u,$=h+k.clientY-d;s!=null&&s.value||(P=Math.min(Math.max(P,w),E),$=Math.min(Math.max($,x),_)),o={offsetX:P,offsetY:$},r.value&&(r.value.style.transform=`translate(${as(P)}, ${as($)})`)},A=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",A)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",A)},l=()=>{e.value&&r.value&&e.value.addEventListener("mousedown",i)},a=()=>{e.value&&r.value&&e.value.removeEventListener("mousedown",i)};nt(()=>{to(()=>{n.value?l():a()})}),Cn(()=>{a()})};var Bz={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=r=>(e,n)=>jz(e,n,S(r)),jz=(r,e,n)=>Xr(n,r,r).replace(/\{(\w+)\}/g,(s,o)=>{var i;return`${(i=e==null?void 0:e[o])!=null?i:`{${o}}`}`}),Hz=r=>{const e=z(()=>S(r).name),n=qt(r)?r:j(r);return{lang:e,locale:n,t:zz(r)}},X_=Symbol("localeContextKey"),go=r=>{const e=r||Ve(X_,j());return Hz(z(()=>e.value||Bz))},Lu="el",Uz="is-",wl=(r,e,n,s,o)=>{let i=`${r}-${e}`;return n&&(i+=`-${n}`),s&&(i+=`__${s}`),o&&(i+=`--${o}`),i},Z_=Symbol("namespaceContextKey"),wy=r=>{const e=r||(bt()?Ve(Z_,j(Lu)):j(Lu));return z(()=>S(e)||Lu)},Ge=(r,e)=>{const n=wy(e);return{namespace:n,b:(m="")=>wl(n.value,r,m,"",""),e:m=>m?wl(n.value,r,"",m,""):"",m:m=>m?wl(n.value,r,"","",m):"",be:(m,v)=>m&&v?wl(n.value,r,m,v,""):"",em:(m,v)=>m&&v?wl(n.value,r,"",m,v):"",bm:(m,v)=>m&&v?wl(n.value,r,m,"",v):"",bem:(m,v,b)=>m&&v&&b?wl(n.value,r,m,v,b):"",is:(m,...v)=>{const b=v.length>=1?v[0]:!0;return m&&b?`${Uz}${m}`:""},cssVar:m=>{const v={};for(const b in m)m[b]&&(v[`--${n.value}-${b}`]=m[b]);return v},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const v={};for(const b in m)m[b]&&(v[`--${n.value}-${r}-${b}`]=m[b]);return v},cssVarBlockName:m=>`--${n.value}-${r}-${m}`}},Q_=(r,e={})=>{qt(r)||sl("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||Ge("popup"),s=z(()=>n.bm("parent","hidden"));if(!Ct||Wa(document.body,s.value))return;let o=0,i=!1,l="0";const a=()=>{setTimeout(()=>{io(document==null?void 0:document.body,s.value),i&&document&&(document.body.style.width=l)},200)};$e(r,c=>{if(!c){a();return}i=!Wa(document.body,s.value),i&&(l=document.body.style.width),o=K5(n.namespace.value);const u=document.documentElement.clientHeight0&&(u||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`),ea(document.body,s.value)}),IE(()=>a())},Wz=Kp({type:Be(Boolean),default:null}),qz=Kp({type:Be(Function)}),eO=r=>{const e=`update:${r}`,n=`onUpdate:${r}`,s=[e],o={[r]:Wz,[n]:qz};return{useModelToggle:({indicator:l,toggleReason:a,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:f})=>{const h=bt(),{emit:p}=h,g=h.props,m=z(()=>qe(g[n])),v=z(()=>g[r]===null),b=_=>{l.value!==!0&&(l.value=!0,a&&(a.value=_),qe(d)&&d(_))},C=_=>{l.value!==!1&&(l.value=!1,a&&(a.value=_),qe(f)&&f(_))},y=_=>{if(g.disabled===!0||qe(u)&&!u())return;const M=m.value&&Ct;M&&p(e,!0),(v.value||!M)&&b(_)},w=_=>{if(g.disabled===!0||!Ct)return;const M=m.value&&Ct;M&&p(e,!1),(v.value||!M)&&C(_)},x=_=>{is(_)&&(g.disabled&&_?m.value&&p(e,!1):l.value!==_&&(_?b():C()))},E=()=>{l.value?w():y()};return $e(()=>g[r],x),c&&h.appContext.config.globalProperties.$route!==void 0&&$e(()=>({...h.proxy.$route}),()=>{c.value&&l.value&&w()}),nt(()=>{x(g[r])}),{hide:w,show:y,toggle:E,hasUpdateHandler:m}},useModelToggleProps:o,useModelToggleEmits:s}};eO("modelValue");const tO=r=>{const e=bt();return z(()=>{var n,s;return(s=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:s[r]})};var xr="top",us="bottom",ds="right",Er="left",Cy="auto",Zd=[xr,us,ds,Er],fc="start",hd="end",Gz="clippingParents",nO="viewport",du="popper",Kz="reference",vC=Zd.reduce(function(r,e){return r.concat([e+"-"+fc,e+"-"+hd])},[]),Yp=[].concat(Zd,[Cy]).reduce(function(r,e){return r.concat([e,e+"-"+fc,e+"-"+hd])},[]),Yz="beforeRead",Jz="read",Xz="afterRead",Zz="beforeMain",Qz="main",ej="afterMain",tj="beforeWrite",nj="write",rj="afterWrite",sj=[Yz,Jz,Xz,Zz,Qz,ej,tj,nj,rj];function lo(r){return r?(r.nodeName||"").toLowerCase():null}function js(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function hc(r){var e=js(r).Element;return r instanceof e||r instanceof Element}function ns(r){var e=js(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function Sy(r){if(typeof ShadowRoot>"u")return!1;var e=js(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function oj(r){var e=r.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!ns(i)||!lo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function ij(r){var e=r.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(s){var o=e.elements[s],i=e.attributes[s]||{},l=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),a=l.reduce(function(c,u){return c[u]="",c},{});!ns(o)||!lo(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var xy={name:"applyStyles",enabled:!0,phase:"write",fn:oj,effect:ij,requires:["computeStyles"]};function ro(r){return r.split("-")[0]}var Hl=Math.max,Fh=Math.min,pc=Math.round;function gc(r,e){e===void 0&&(e=!1);var n=r.getBoundingClientRect(),s=1,o=1;if(ns(r)&&e){var i=r.offsetHeight,l=r.offsetWidth;l>0&&(s=pc(n.width)/l||1),i>0&&(o=pc(n.height)/i||1)}return{width:n.width/s,height:n.height/o,top:n.top/o,right:n.right/s,bottom:n.bottom/o,left:n.left/s,x:n.left/s,y:n.top/o}}function Ey(r){var e=gc(r),n=r.offsetWidth,s=r.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:r.offsetLeft,y:r.offsetTop,width:n,height:s}}function rO(r,e){var n=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(n&&Sy(n)){var s=e;do{if(s&&r.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Bo(r){return js(r).getComputedStyle(r)}function lj(r){return["table","td","th"].indexOf(lo(r))>=0}function ol(r){return((hc(r)?r.ownerDocument:r.document)||window.document).documentElement}function Jp(r){return lo(r)==="html"?r:r.assignedSlot||r.parentNode||(Sy(r)?r.host:null)||ol(r)}function yC(r){return!ns(r)||Bo(r).position==="fixed"?null:r.offsetParent}function aj(r){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ns(r)){var s=Bo(r);if(s.position==="fixed")return null}var o=Jp(r);for(Sy(o)&&(o=o.host);ns(o)&&["html","body"].indexOf(lo(o))<0;){var i=Bo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Qd(r){for(var e=js(r),n=yC(r);n&&lj(n)&&Bo(n).position==="static";)n=yC(n);return n&&(lo(n)==="html"||lo(n)==="body"&&Bo(n).position==="static")?e:n||aj(r)||e}function Ty(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ru(r,e,n){return Hl(r,Fh(e,n))}function cj(r,e,n){var s=Ru(r,e,n);return s>n?n:s}function sO(){return{top:0,right:0,bottom:0,left:0}}function oO(r){return Object.assign({},sO(),r)}function iO(r,e){return e.reduce(function(n,s){return n[s]=r,n},{})}var uj=function(r,e){return r=typeof r=="function"?r(Object.assign({},e.rects,{placement:e.placement})):r,oO(typeof r!="number"?r:iO(r,Zd))};function dj(r){var e,n=r.state,s=r.name,o=r.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=ro(n.placement),c=Ty(a),u=[Er,ds].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!l)){var f=uj(o.padding,n),h=Ey(i),p=c==="y"?xr:Er,g=c==="y"?us:ds,m=n.rects.reference[d]+n.rects.reference[c]-l[c]-n.rects.popper[d],v=l[c]-n.rects.reference[c],b=Qd(i),C=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,y=m/2-v/2,w=f[p],x=C-h[d]-f[g],E=C/2-h[d]/2+y,_=Ru(w,E,x),M=c;n.modifiersData[s]=(e={},e[M]=_,e.centerOffset=_-E,e)}}function fj(r){var e=r.state,n=r.options,s=n.element,o=s===void 0?"[data-popper-arrow]":s;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!rO(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 mc(r){return r.split("-")[1]}var pj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gj(r){var e=r.x,n=r.y,s=window,o=s.devicePixelRatio||1;return{x:pc(e*o)/o||0,y:pc(n*o)/o||0}}function wC(r){var e,n=r.popper,s=r.popperRect,o=r.placement,i=r.variation,l=r.offsets,a=r.position,c=r.gpuAcceleration,u=r.adaptive,d=r.roundOffsets,f=r.isFixed,h=l.x,p=h===void 0?0:h,g=l.y,m=g===void 0?0:g,v=typeof d=="function"?d({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var b=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),y=Er,w=xr,x=window;if(u){var E=Qd(n),_="clientHeight",M="clientWidth";if(E===js(n)&&(E=ol(n),Bo(E).position!=="static"&&a==="absolute"&&(_="scrollHeight",M="scrollWidth")),E=E,o===xr||(o===Er||o===ds)&&i===hd){w=us;var A=f&&E===x&&x.visualViewport?x.visualViewport.height:E[_];m-=A-s.height,m*=c?1:-1}if(o===Er||(o===xr||o===us)&&i===hd){y=ds;var k=f&&E===x&&x.visualViewport?x.visualViewport.width:E[M];p-=k-s.width,p*=c?1:-1}}var P=Object.assign({position:a},u&&pj),$=d===!0?gj({x:p,y:m}):{x:p,y:m};if(p=$.x,m=$.y,c){var B;return Object.assign({},P,(B={},B[w]=C?"0":"",B[y]=b?"0":"",B.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",B))}return Object.assign({},P,(e={},e[w]=C?m+"px":"",e[y]=b?p+"px":"",e.transform="",e))}function mj(r){var e=r.state,n=r.options,s=n.gpuAcceleration,o=s===void 0?!0:s,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:ro(e.placement),variation:mc(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,wC(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,wC(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var lO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mj,data:{}},kf={passive:!0};function bj(r){var e=r.state,n=r.instance,s=r.options,o=s.scroll,i=o===void 0?!0:o,l=s.resize,a=l===void 0?!0:l,c=js(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,kf)}),a&&c.addEventListener("resize",n.update,kf),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,kf)}),a&&c.removeEventListener("resize",n.update,kf)}}var aO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bj,data:{}},vj={left:"right",right:"left",bottom:"top",top:"bottom"};function ch(r){return r.replace(/left|right|bottom|top/g,function(e){return vj[e]})}var yj={start:"end",end:"start"};function CC(r){return r.replace(/start|end/g,function(e){return yj[e]})}function _y(r){var e=js(r),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function Oy(r){return gc(ol(r)).left+_y(r).scrollLeft}function wj(r){var e=js(r),n=ol(r),s=e.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,a=0;return s&&(o=s.width,i=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=s.offsetLeft,a=s.offsetTop)),{width:o,height:i,x:l+Oy(r),y:a}}function Cj(r){var e,n=ol(r),s=_y(r),o=(e=r.ownerDocument)==null?void 0:e.body,i=Hl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Hl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-s.scrollLeft+Oy(r),c=-s.scrollTop;return Bo(o||n).direction==="rtl"&&(a+=Hl(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function Ay(r){var e=Bo(r),n=e.overflow,s=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+s)}function cO(r){return["html","body","#document"].indexOf(lo(r))>=0?r.ownerDocument.body:ns(r)&&Ay(r)?r:cO(Jp(r))}function $u(r,e){var n;e===void 0&&(e=[]);var s=cO(r),o=s===((n=r.ownerDocument)==null?void 0:n.body),i=js(s),l=o?[i].concat(i.visualViewport||[],Ay(s)?s:[]):s,a=e.concat(l);return o?a:a.concat($u(Jp(l)))}function wb(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function Sj(r){var e=gc(r);return e.top=e.top+r.clientTop,e.left=e.left+r.clientLeft,e.bottom=e.top+r.clientHeight,e.right=e.left+r.clientWidth,e.width=r.clientWidth,e.height=r.clientHeight,e.x=e.left,e.y=e.top,e}function SC(r,e){return e===nO?wb(wj(r)):hc(e)?Sj(e):wb(Cj(ol(r)))}function xj(r){var e=$u(Jp(r)),n=["absolute","fixed"].indexOf(Bo(r).position)>=0,s=n&&ns(r)?Qd(r):r;return hc(s)?e.filter(function(o){return hc(o)&&rO(o,s)&&lo(o)!=="body"}):[]}function Ej(r,e,n){var s=e==="clippingParents"?xj(r):[].concat(e),o=[].concat(s,[n]),i=o[0],l=o.reduce(function(a,c){var u=SC(r,c);return a.top=Hl(u.top,a.top),a.right=Fh(u.right,a.right),a.bottom=Fh(u.bottom,a.bottom),a.left=Hl(u.left,a.left),a},SC(r,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function uO(r){var e=r.reference,n=r.element,s=r.placement,o=s?ro(s):null,i=s?mc(s):null,l=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,c;switch(o){case xr:c={x:l,y:e.y-n.height};break;case us:c={x:l,y:e.y+e.height};break;case ds:c={x:e.x+e.width,y:a};break;case Er:c={x:e.x-n.width,y:a};break;default:c={x:e.x,y:e.y}}var u=o?Ty(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case fc:c[u]=c[u]-(e[d]/2-n[d]/2);break;case hd:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function pd(r,e){e===void 0&&(e={});var n=e,s=n.placement,o=s===void 0?r.placement:s,i=n.boundary,l=i===void 0?Gz:i,a=n.rootBoundary,c=a===void 0?nO:a,u=n.elementContext,d=u===void 0?du:u,f=n.altBoundary,h=f===void 0?!1:f,p=n.padding,g=p===void 0?0:p,m=oO(typeof g!="number"?g:iO(g,Zd)),v=d===du?Kz:du,b=r.rects.popper,C=r.elements[h?v:d],y=Ej(hc(C)?C:C.contextElement||ol(r.elements.popper),l,c),w=gc(r.elements.reference),x=uO({reference:w,element:b,strategy:"absolute",placement:o}),E=wb(Object.assign({},b,x)),_=d===du?E:w,M={top:y.top-_.top+m.top,bottom:_.bottom-y.bottom+m.bottom,left:y.left-_.left+m.left,right:_.right-y.right+m.right},A=r.modifiersData.offset;if(d===du&&A){var k=A[o];Object.keys(M).forEach(function(P){var $=[ds,us].indexOf(P)>=0?1:-1,B=[xr,us].indexOf(P)>=0?"y":"x";M[P]+=k[B]*$})}return M}function Tj(r,e){e===void 0&&(e={});var n=e,s=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Yp:c,d=mc(s),f=d?a?vC:vC.filter(function(g){return mc(g)===d}):Zd,h=f.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=f);var p=h.reduce(function(g,m){return g[m]=pd(r,{placement:m,boundary:o,rootBoundary:i,padding:l})[ro(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function _j(r){if(ro(r)===Cy)return[];var e=ch(r);return[CC(r),e,CC(e)]}function Oj(r){var e=r.state,n=r.options,s=r.name;if(!e.modifiersData[s]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=e.options.placement,b=ro(v),C=b===v,y=c||(C||!g?[ch(v)]:_j(v)),w=[v].concat(y).reduce(function(fe,we){return fe.concat(ro(we)===Cy?Tj(e,{placement:we,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:m}):we)},[]),x=e.rects.reference,E=e.rects.popper,_=new Map,M=!0,A=w[0],k=0;k=0,I=W?"width":"height",R=pd(e,{placement:P,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),U=W?B?ds:Er:B?us:xr;x[I]>E[I]&&(U=ch(U));var Q=ch(U),q=[];if(i&&q.push(R[$]<=0),a&&q.push(R[U]<=0,R[Q]<=0),q.every(function(fe){return fe})){A=P,M=!1;break}_.set(P,q)}if(M)for(var ee=g?3:1,de=function(fe){var we=w.find(function(Ee){var G=_.get(Ee);if(G)return G.slice(0,fe).every(function(ne){return ne})});if(we)return A=we,"break"},ce=ee;ce>0;ce--){var Te=de(ce);if(Te==="break")break}e.placement!==A&&(e.modifiersData[s]._skip=!0,e.placement=A,e.reset=!0)}}var Aj={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function xC(r,e,n){return n===void 0&&(n={x:0,y:0}),{top:r.top-e.height-n.y,right:r.right-e.width+n.x,bottom:r.bottom-e.height+n.y,left:r.left-e.width-n.x}}function EC(r){return[xr,ds,us,Er].some(function(e){return r[e]>=0})}function Mj(r){var e=r.state,n=r.name,s=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,l=pd(e,{elementContext:"reference"}),a=pd(e,{altBoundary:!0}),c=xC(l,s),u=xC(a,o,i),d=EC(c),f=EC(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var kj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mj};function Pj(r,e,n){var s=ro(r),o=[Er,xr].indexOf(s)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:r})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[Er,ds].indexOf(s)>=0?{x:a,y:l}:{x:l,y:a}}function Nj(r){var e=r.state,n=r.options,s=r.name,o=n.offset,i=o===void 0?[0,0]:o,l=Yp.reduce(function(d,f){return d[f]=Pj(f,e.rects,i),d},{}),a=l[e.placement],c=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[s]=l}var Ij={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function Lj(r){var e=r.state,n=r.name;e.modifiersData[n]=uO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var dO={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function Rj(r){return r==="x"?"y":"x"}function $j(r){var e=r.state,n=r.options,s=r.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,g=n.tetherOffset,m=g===void 0?0:g,v=pd(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=ro(e.placement),C=mc(e.placement),y=!C,w=Ty(b),x=Rj(w),E=e.modifiersData.popperOffsets,_=e.rects.reference,M=e.rects.popper,A=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,k=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(E){if(i){var B,W=w==="y"?xr:Er,I=w==="y"?us:ds,R=w==="y"?"height":"width",U=E[w],Q=U+v[W],q=U-v[I],ee=p?-M[R]/2:0,de=C===fc?_[R]:M[R],ce=C===fc?-M[R]:-_[R],Te=e.elements.arrow,fe=p&&Te?Ey(Te):{width:0,height:0},we=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:sO(),Ee=we[W],G=we[I],ne=Ru(0,_[R],fe[R]),se=y?_[R]/2-ee-ne-Ee-k.mainAxis:de-ne-Ee-k.mainAxis,me=y?-_[R]/2+ee+ne+G+k.mainAxis:ce+ne+G+k.mainAxis,Pe=e.elements.arrow&&Qd(e.elements.arrow),Se=Pe?w==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,D=(B=P==null?void 0:P[w])!=null?B:0,L=U+se-D-Se,te=U+me-D,he=Ru(p?Fh(Q,L):Q,U,p?Hl(q,te):q);E[w]=he,$[w]=he-U}if(a){var ge,Ce=w==="x"?xr:Er,xe=w==="x"?us:ds,V=E[x],F=x==="y"?"height":"width",J=V+v[Ce],ie=V-v[xe],Ae=[xr,Er].indexOf(b)!==-1,re=(ge=P==null?void 0:P[x])!=null?ge:0,Z=Ae?J:V-_[F]-M[F]-re+k.altAxis,ae=Ae?V+_[F]+M[F]-re-k.altAxis:ie,je=p&&Ae?cj(Z,V,ae):Ru(p?Z:J,V,p?ae:ie);E[x]=je,$[x]=je-V}e.modifiersData[s]=$}}var Dj={name:"preventOverflow",enabled:!0,phase:"main",fn:$j,requiresIfExists:["offset"]};function Vj(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Fj(r){return r===js(r)||!ns(r)?_y(r):Vj(r)}function Bj(r){var e=r.getBoundingClientRect(),n=pc(e.width)/r.offsetWidth||1,s=pc(e.height)/r.offsetHeight||1;return n!==1||s!==1}function zj(r,e,n){n===void 0&&(n=!1);var s=ns(e),o=ns(e)&&Bj(e),i=ol(e),l=gc(r,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&((lo(e)!=="body"||Ay(i))&&(a=Fj(e)),ns(e)?(c=gc(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Oy(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function jj(r){var e=new Map,n=new Set,s=[];r.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=e.get(a);c&&o(c)}}),s.push(i)}return r.forEach(function(i){n.has(i.name)||o(i)}),s}function Hj(r){var e=jj(r);return sj.reduce(function(n,s){return n.concat(e.filter(function(o){return o.phase===s}))},[])}function Uj(r){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(r())})})),e}}function Wj(r){var e=r.reduce(function(n,s){var o=n[s.name];return n[s.name]=o?Object.assign({},o,s,{options:Object.assign({},o.options,s.options),data:Object.assign({},o.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var TC={placement:"bottom",modifiers:[],strategy:"absolute"};function _C(){for(var r=arguments.length,e=new Array(r),n=0;n{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=Yj(c);Object.assign(l.value,u)},requires:["computeStyles"]},o=z(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:f}=S(n);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],s,{name:"applyStyles",enabled:!1}]}}),i=Ms(),l=j({styles:{popper:{position:S(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return $e(o,c=>{const u=S(i);u&&u.setOptions(c)},{deep:!0}),$e([r,e],([c,u])=>{a(),!(!c||!u)&&(i.value=fO(c,u,S(o)))}),Cn(()=>{a()}),{state:z(()=>{var c;return{...((c=S(i))==null?void 0:c.state)||{}}}),styles:z(()=>S(l).styles),attributes:z(()=>S(l).attributes),update:()=>{var c;return(c=S(i))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=S(i))==null?void 0:c.forceUpdate()},instanceRef:z(()=>S(i))}};function Yj(r){const e=Object.keys(r.elements),n=Dh(e.map(o=>[o,r.styles[o]||{}])),s=Dh(e.map(o=>[o,r.attributes[o]]));return{styles:n,attributes:s}}const ky=r=>{if(!r)return{onClick:un,onMousedown:un,onMouseup:un};let e=!1,n=!1;return{onClick:l=>{e&&n&&r(l),e=n=!1},onMousedown:l=>{e=l.target===l.currentTarget},onMouseup:l=>{n=l.target===l.currentTarget}}};function OC(){let r;const e=(s,o)=>{n(),r=window.setTimeout(s,o)},n=()=>window.clearTimeout(r);return Hd(()=>n()),{registerTimeout:e,cancelTimeout:n}}const AC={prefix:Math.floor(Math.random()*1e4),current:0},Jj=Symbol("elIdInjection"),hO=()=>bt()?Ve(Jj,AC):AC,ao=r=>{const e=hO(),n=wy();return z(()=>S(r)||`${n.value}-id-${e.prefix}-${e.current++}`)};let Pa=[];const MC=r=>{const e=r;e.key===bn.esc&&Pa.forEach(n=>n(e))},Xj=r=>{nt(()=>{Pa.length===0&&document.addEventListener("keydown",MC),Ct&&Pa.push(r)}),Cn(()=>{Pa=Pa.filter(e=>e!==r),Pa.length===0&&Ct&&document.removeEventListener("keydown",MC)})};let kC;const pO=()=>{const r=wy(),e=hO(),n=z(()=>`${r.value}-popper-container-${e.prefix}`),s=z(()=>`#${n.value}`);return{id:n,selector:s}},Zj=r=>{const e=document.createElement("div");return e.id=r,document.body.appendChild(e),e},Qj=()=>{const{id:r,selector:e}=pO();return zd(()=>{Ct&&!kC&&!document.body.querySelector(e.value)&&(kC=Zj(r.value))}),{id:r,selector:e}},eH=et({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),tH=({showAfter:r,hideAfter:e,autoClose:n,open:s,close:o})=>{const{registerTimeout:i}=OC(),{registerTimeout:l,cancelTimeout:a}=OC();return{onOpen:d=>{i(()=>{s(d);const f=S(n);Tt(f)&&f>0&&l(()=>{o(d)},f)},S(r))},onClose:d=>{a(),i(()=>{o(d)},S(e))}}},gO=Symbol("elForwardRef"),nH=r=>{Wt(gO,{setForwardRef:n=>{r.value=n}})},rH=r=>({mounted(e){r(e)},updated(e){r(e)},unmounted(){r(null)}}),PC={current:0},NC=j(0),mO=2e3,IC=Symbol("elZIndexContextKey"),bO=Symbol("zIndexContextKey"),Xp=r=>{const e=bt()?Ve(IC,PC):PC,n=r||(bt()?Ve(bO,void 0):void 0),s=z(()=>{const l=S(n);return Tt(l)?l:mO}),o=z(()=>s.value+NC.value),i=()=>(e.current++,NC.value=e.current,o.value);return!Ct&&Ve(IC),{initialZIndex:s,currentZIndex:o,nextZIndex:i}};function sH(r){const e=j();function n(){if(r.value==null)return;const{selectionStart:o,selectionEnd:i,value:l}=r.value;if(o==null||i==null)return;const a=l.slice(0,Math.max(0,o)),c=l.slice(Math.max(0,i));e.value={selectionStart:o,selectionEnd:i,value:l,beforeTxt:a,afterTxt:c}}function s(){if(r.value==null||e.value==null)return;const{value:o}=r.value,{beforeTxt:i,afterTxt:l,selectionStart:a}=e.value;if(i==null||l==null||a==null)return;let c=o.length;if(o.endsWith(l))c=o.length-l.length;else if(o.startsWith(i))c=i.length;else{const u=i[a-1],d=o.indexOf(u,a-1);d!==-1&&(c=d+1)}r.value.setSelectionRange(c,c)}return[n,s]}const oH=(r,e,n)=>ah(r.subTree).filter(i=>{var l;return Mn(i)&&((l=i.type)==null?void 0:l.name)===e&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),iH=(r,e)=>{const n={},s=Ms([]);return{children:s,addChild:l=>{n[l.uid]=l,s.value=oH(r,e,n)},removeChild:l=>{delete n[l],s.value=s.value.filter(a=>a.uid!==l)}}},Jo=Kp({type:String,values:ga,required:!1}),vO=Symbol("size"),lH=()=>{const r=Ve(vO,{});return z(()=>S(r.size)||"")};function yO(r,{afterFocus:e,beforeBlur:n,afterBlur:s}={}){const o=bt(),{emit:i}=o,l=Ms(),a=j(!1),c=f=>{a.value||(a.value=!0,i("focus",f),e==null||e())},u=f=>{var h;qe(n)&&n(f)||f.relatedTarget&&((h=l.value)!=null&&h.contains(f.relatedTarget))||(a.value=!1,i("blur",f),s==null||s())},d=()=>{var f;(f=r.value)==null||f.focus()};return $e(l,f=>{f&&f.setAttribute("tabindex","-1")}),vn(l,"click",d),{wrapperRef:l,isFocused:a,handleFocus:c,handleBlur:u}}const aH=["",void 0,null],cH=void 0,uH=et({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:r=>qe(r)?!r():!r}}),dH=(r,e)=>{let n=ef();n.value||(n=j({}));const s=z(()=>r.emptyValues||n.value.emptyValues||aH),o=z(()=>qe(r.valueOnClear)?r.valueOnClear():r.valueOnClear!==void 0?r.valueOnClear:qe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:e!==void 0?e:cH),i=l=>s.value.includes(l);return s.value.includes(o.value),{emptyValues:s,valueOnClear:o,isEmptyValue:i}},fH=et({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Xo=r=>R_(fH,r),wO=Symbol(),Bh=j();function ef(r,e=void 0){const n=bt()?Ve(wO,Bh):Bh;return r?z(()=>{var s,o;return(o=(s=n.value)==null?void 0:s[r])!=null?o:e}):n}function Zp(r,e){const n=ef(),s=Ge(r,z(()=>{var a;return((a=n.value)==null?void 0:a.namespace)||Lu})),o=go(z(()=>{var a;return(a=n.value)==null?void 0:a.locale})),i=Xp(z(()=>{var a;return((a=n.value)==null?void 0:a.zIndex)||mO})),l=z(()=>{var a;return S(e)||((a=n.value)==null?void 0:a.size)||""});return hH(z(()=>S(n)||{})),{ns:s,locale:o,zIndex:i,size:l}}const hH=(r,e,n=!1)=>{var s;const o=!!bt(),i=o?ef():void 0,l=(s=e==null?void 0:e.provide)!=null?s:o?Wt:void 0;if(!l)return;const a=z(()=>{const c=S(r);return i!=null&&i.value?pH(i.value,c):c});return l(wO,a),l(X_,z(()=>a.value.locale)),l(Z_,z(()=>a.value.namespace)),l(bO,z(()=>a.value.zIndex)),l(vO,{size:z(()=>a.value.size||"")}),(n||!Bh.value)&&(Bh.value=a.value),a},pH=(r,e)=>{const n=[...new Set([...Vh(r),...Vh(e)])],s={};for(const o of n)s[o]=e[o]!==void 0?e[o]:r[o];return s},LC={};var Xe=(r,e)=>{const n=r.__vccOpts||r;for(const[s,o]of e)n[s]=o;return n};const gH=et({size:{type:Be([Number,String])},color:{type:String}}),mH=pe({name:"ElIcon",inheritAttrs:!1}),bH=pe({...mH,props:gH,setup(r){const e=r,n=Ge("icon"),s=z(()=>{const{size:o,color:i}=e;return!o&&!i?{}:{fontSize:wr(o)?void 0:as(o),"--color":i}});return(o,i)=>(N(),X("i",Dr({class:S(n).b(),style:S(s)},o.$attrs),[_e(o.$slots,"default")],16))}});var vH=Xe(bH,[["__file","icon.vue"]]);const dt=Rt(vH),yH=["light","dark"],wH=et({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Vh(Ui),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:yH,default:"light"}}),CH={close:r=>r instanceof MouseEvent},SH=pe({name:"ElAlert"}),xH=pe({...SH,props:wH,emits:CH,setup(r,{emit:e}){const n=r,{Close:s}=yy,o=Bs(),i=Ge("alert"),l=j(!0),a=z(()=>Ui[n.type]),c=z(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!o.default}]),u=z(()=>({"with-description":n.description||o.default})),d=f=>{l.value=!1,e("close",f)};return(f,h)=>(N(),ye(Or,{name:S(i).b("fade"),persisted:""},{default:O(()=>[Ue(H("div",{class:Y([S(i).b(),S(i).m(f.type),S(i).is("center",f.center),S(i).is(f.effect)]),role:"alert"},[f.showIcon&&S(a)?(N(),ye(S(dt),{key:0,class:Y(S(c))},{default:O(()=>[(N(),ye(Ft(S(a))))]),_:1},8,["class"])):ve("v-if",!0),H("div",{class:Y(S(i).e("content"))},[f.title||f.$slots.title?(N(),X("span",{key:0,class:Y([S(i).e("title"),S(u)])},[_e(f.$slots,"title",{},()=>[le(oe(f.title),1)])],2)):ve("v-if",!0),f.$slots.default||f.description?(N(),X("p",{key:1,class:Y(S(i).e("description"))},[_e(f.$slots,"default",{},()=>[le(oe(f.description),1)])],2)):ve("v-if",!0),f.closable?(N(),X(De,{key:2},[f.closeText?(N(),X("div",{key:0,class:Y([S(i).e("close-btn"),S(i).is("customed")]),onClick:d},oe(f.closeText),3)):(N(),ye(S(dt),{key:1,class:Y(S(i).e("close-btn")),onClick:d},{default:O(()=>[T(S(s))]),_:1},8,["class"]))],64)):ve("v-if",!0)],2)],2),[[st,l.value]])]),_:3},8,["name"]))}});var EH=Xe(xH,[["__file","alert.vue"]]);const CO=Rt(EH),Xc=Symbol("formContextKey"),na=Symbol("formItemContextKey"),fs=(r,e={})=>{const n=j(void 0),s=e.prop?n:tO("size"),o=e.global?n:lH(),i=e.form?{size:void 0}:Ve(Xc,void 0),l=e.formItem?{size:void 0}:Ve(na,void 0);return z(()=>s.value||S(r)||(l==null?void 0:l.size)||(i==null?void 0:i.size)||o.value||"")},Zc=r=>{const e=tO("disabled"),n=Ve(Xc,void 0);return z(()=>e.value||S(r)||(n==null?void 0:n.disabled)||!1)},il=()=>{const r=Ve(Xc,void 0),e=Ve(na,void 0);return{form:r,formItem:e}},tf=(r,{formItemContext:e,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=j(!1)),s||(s=j(!1));const o=j();let i;const l=z(()=>{var a;return!!(!(r.label||r.ariaLabel)&&e&&e.inputIds&&((a=e.inputIds)==null?void 0:a.length)<=1)});return nt(()=>{i=$e([Es(r,"id"),n],([a,c])=>{const u=a??(c?void 0:ao().value);u!==o.value&&(e!=null&&e.removeInputId&&(o.value&&e.removeInputId(o.value),!(s!=null&&s.value)&&!c&&u&&e.addInputId(u)),o.value=u)},{immediate:!0})}),qo(()=>{i&&i(),e!=null&&e.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},TH=et({size:{type:String,values:ga},disabled:Boolean}),_H=et({...TH,model:Object,rules:{type:Be(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:(r,e,n)=>(Re(r)||ft(r))&&is(e)&&ft(n)};function AH(){const r=j([]),e=z(()=>{if(!r.value.length)return"0";const i=Math.max(...r.value);return i?`${i}px`:""});function n(i){const l=r.value.indexOf(i);return l===-1&&e.value,l}function s(i,l){if(i&&l){const a=n(l);r.value.splice(a,1,i)}else i&&r.value.push(i)}function o(i){const l=n(i);l>-1&&r.value.splice(l,1)}return{autoLabelWidth:e,registerLabelWidth:s,deregisterLabelWidth:o}}const Pf=(r,e)=>{const n=Lh(e);return n.length>0?r.filter(s=>s.prop&&n.includes(s.prop)):r},MH="ElForm",kH=pe({name:MH}),PH=pe({...kH,props:_H,emits:OH,setup(r,{expose:e,emit:n}){const s=r,o=[],i=fs(),l=Ge("form"),a=z(()=>{const{labelPosition:y,inline:w}=s;return[l.b(),l.m(i.value||"default"),{[l.m(`label-${y}`)]:y,[l.m("inline")]:w}]}),c=y=>o.find(w=>w.prop===y),u=y=>{o.push(y)},d=y=>{y.prop&&o.splice(o.indexOf(y),1)},f=(y=[])=>{s.model&&Pf(o,y).forEach(w=>w.resetField())},h=(y=[])=>{Pf(o,y).forEach(w=>w.clearValidate())},p=z(()=>!!s.model),g=y=>{if(o.length===0)return[];const w=Pf(o,y);return w.length?w:[]},m=async y=>b(void 0,y),v=async(y=[])=>{if(!p.value)return!1;const w=g(y);if(w.length===0)return!0;let x={};for(const E of w)try{await E.validate("")}catch(_){x={...x,..._}}return Object.keys(x).length===0?!0:Promise.reject(x)},b=async(y=[],w)=>{const x=!qe(w);try{const E=await v(y);return E===!0&&await(w==null?void 0:w(E)),E}catch(E){if(E instanceof Error)throw E;const _=E;return s.scrollToError&&C(Object.keys(_)[0]),await(w==null?void 0:w(!1,_)),x&&Promise.reject(_)}},C=y=>{var w;const x=Pf(o,y)[0];x&&((w=x.$el)==null||w.scrollIntoView(s.scrollIntoViewOptions))};return $e(()=>s.rules,()=>{s.validateOnRuleChange&&m().catch(y=>void 0)},{deep:!0}),Wt(Xc,St({...Uo(s),emit:n,resetFields:f,clearValidate:h,validateField:b,getField:c,addField:u,removeField:d,...AH()})),e({validate:m,validateField:b,resetFields:f,clearValidate:h,scrollToField:C,fields:o}),(y,w)=>(N(),X("form",{class:Y(S(a))},[_e(y.$slots,"default")],2))}});var NH=Xe(PH,[["__file","form.vue"]]);function Il(){return Il=Object.assign?Object.assign.bind():function(r){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 uh(r,e,n){return LH()?uh=Reflect.construct.bind():uh=function(o,i,l){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(o,a),u=new c;return l&&gd(u,l.prototype),u},uh.apply(null,arguments)}function RH(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function Sb(r){var e=typeof Map=="function"?new Map:void 0;return Sb=function(s){if(s===null||!RH(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(s))return e.get(s);e.set(s,o)}function o(){return uh(s,arguments,Cb(this).constructor)}return o.prototype=Object.create(s.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),gd(o,s)},Sb(r)}var $H=/%[sdj%]/g,DH=function(){};function xb(r){if(!r||!r.length)return null;var e={};return r.forEach(function(n){var s=n.field;e[s]=e[s]||[],e[s].push(n)}),e}function Lr(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s=i)return a;switch(a){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return a}});return l}return r}function VH(r){return r==="string"||r==="url"||r==="hex"||r==="email"||r==="date"||r==="pattern"}function kn(r,e){return!!(r==null||e==="array"&&Array.isArray(r)&&!r.length||VH(e)&&typeof r=="string"&&!r)}function FH(r,e,n){var s=[],o=0,i=r.length;function l(a){s.push.apply(s,a||[]),o++,o===i&&n(s)}r.forEach(function(a){e(a,l)})}function RC(r,e,n){var s=0,o=r.length;function i(l){if(l&&l.length){n(l);return}var a=s;s=s+1,a()\[\]\\.,;:\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},mu={integer:function(e){return mu.number(e)&&parseInt(e,10)===e},float:function(e){return mu.number(e)&&!mu.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"&&!mu.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(FC.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(WH())},hex:function(e){return typeof e=="string"&&!!e.match(FC.hex)}},qH=function(e,n,s,o,i){if(e.required&&n===void 0){SO(e,n,s,o,i);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;l.indexOf(a)>-1?mu[a](n)||o.push(Lr(i.messages.types[a],e.fullField,e.type)):a&&typeof n!==e.type&&o.push(Lr(i.messages.types[a],e.fullField,e.type))},GH=function(e,n,s,o,i){var l=typeof e.len=="number",a=typeof e.min=="number",c=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(h?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),p&&(d=n.replace(u,"_").length),l?d!==e.len&&o.push(Lr(i.messages[f].len,e.fullField,e.len)):a&&!c&&de.max?o.push(Lr(i.messages[f].max,e.fullField,e.max)):a&&c&&(de.max)&&o.push(Lr(i.messages[f].range,e.fullField,e.min,e.max))},Ca="enum",KH=function(e,n,s,o,i){e[Ca]=Array.isArray(e[Ca])?e[Ca]:[],e[Ca].indexOf(n)===-1&&o.push(Lr(i.messages[Ca],e.fullField,e[Ca].join(", ")))},YH=function(e,n,s,o,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||o.push(Lr(i.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var l=new RegExp(e.pattern);l.test(n)||o.push(Lr(i.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},kt={required:SO,whitespace:UH,type:qH,range:GH,enum:KH,pattern:YH},JH=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n,"string")&&!e.required)return s();kt.required(e,n,o,l,i,"string"),kn(n,"string")||(kt.type(e,n,o,l,i),kt.range(e,n,o,l,i),kt.pattern(e,n,o,l,i),e.whitespace===!0&&kt.whitespace(e,n,o,l,i))}s(l)},XH=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),n!==void 0&&kt.type(e,n,o,l,i)}s(l)},ZH=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(n===""&&(n=void 0),kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),n!==void 0&&(kt.type(e,n,o,l,i),kt.range(e,n,o,l,i))}s(l)},QH=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),n!==void 0&&kt.type(e,n,o,l,i)}s(l)},e9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),kn(n)||kt.type(e,n,o,l,i)}s(l)},t9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),n!==void 0&&(kt.type(e,n,o,l,i),kt.range(e,n,o,l,i))}s(l)},n9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),n!==void 0&&(kt.type(e,n,o,l,i),kt.range(e,n,o,l,i))}s(l)},r9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(n==null&&!e.required)return s();kt.required(e,n,o,l,i,"array"),n!=null&&(kt.type(e,n,o,l,i),kt.range(e,n,o,l,i))}s(l)},s9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),n!==void 0&&kt.type(e,n,o,l,i)}s(l)},o9="enum",i9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i),n!==void 0&&kt[o9](e,n,o,l,i)}s(l)},l9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n,"string")&&!e.required)return s();kt.required(e,n,o,l,i),kn(n,"string")||kt.pattern(e,n,o,l,i)}s(l)},a9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n,"date")&&!e.required)return s();if(kt.required(e,n,o,l,i),!kn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),kt.type(e,c,o,l,i),c&&kt.range(e,c.getTime(),o,l,i)}}s(l)},c9=function(e,n,s,o,i){var l=[],a=Array.isArray(n)?"array":typeof n;kt.required(e,n,o,l,i,a),s(l)},Xg=function(e,n,s,o,i){var l=e.type,a=[],c=e.required||!e.required&&o.hasOwnProperty(e.field);if(c){if(kn(n,l)&&!e.required)return s();kt.required(e,n,o,a,i,l),kn(n,l)||kt.type(e,n,o,a,i)}s(a)},u9=function(e,n,s,o,i){var l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(kn(n)&&!e.required)return s();kt.required(e,n,o,l,i)}s(l)},Du={string:JH,method:XH,number:ZH,boolean:QH,regexp:e9,integer:t9,float:n9,array:r9,object:s9,enum:i9,pattern:l9,date:a9,url:Xg,hex:Xg,email:Xg,required:c9,any:u9};function Eb(){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 Tb=Eb(),nf=function(){function r(n){this.rules=null,this._messages=Tb,this.define(n)}var e=r.prototype;return e.define=function(s){var o=this;if(!s)throw new Error("Cannot configure a schema with no rules");if(typeof s!="object"||Array.isArray(s))throw new Error("Rules must be an object");this.rules={},Object.keys(s).forEach(function(i){var l=s[i];o.rules[i]=Array.isArray(l)?l:[l]})},e.messages=function(s){return s&&(this._messages=VC(Eb(),s)),this._messages},e.validate=function(s,o,i){var l=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var a=s,c=o,u=i;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function d(m){var v=[],b={};function C(w){if(Array.isArray(w)){var x;v=(x=v).concat.apply(x,w)}else v.push(w)}for(var y=0;y");const o=Ge("form"),i=j(),l=j(0),a=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},c=(d="update")=>{tt(()=>{e.default&&r.isAutoWidth&&(d==="update"?l.value=a():d==="remove"&&(n==null||n.deregisterLabelWidth(l.value)))})},u=()=>c("update");return nt(()=>{u()}),Cn(()=>{c("remove")}),ua(()=>u()),$e(l,(d,f)=>{r.updateAll&&(n==null||n.registerLabelWidth(d,f))}),dr(z(()=>{var d,f;return(f=(d=i.value)==null?void 0:d.firstElementChild)!=null?f:null}),u),()=>{var d,f;if(!e)return null;const{isAutoWidth:h}=r;if(h){const p=n==null?void 0:n.autoLabelWidth,g=s==null?void 0:s.hasLabel,m={};if(g&&p&&p!=="auto"){const v=Math.max(0,Number.parseInt(p,10)-l.value),b=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(m[b]=`${v}px`)}return T("div",{ref:i,class:[o.be("item","label-wrap")],style:m},[(d=e.default)==null?void 0:d.call(e)])}else return T(De,{ref:i},[(f=e.default)==null?void 0:f.call(e)])}}});const p9=["role","aria-labelledby"],g9=pe({name:"ElFormItem"}),m9=pe({...g9,props:f9,setup(r,{expose:e}){const n=r,s=Bs(),o=Ve(Xc,void 0),i=Ve(na,void 0),l=fs(void 0,{formItem:!1}),a=Ge("form-item"),c=ao().value,u=j([]),d=j(""),f=oD(d,100),h=j(""),p=j();let g,m=!1;const v=z(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const G=as(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return G?{width:G}:{}}),b=z(()=>{if((o==null?void 0:o.labelPosition)==="top"||o!=null&&o.inline)return{};if(!n.label&&!n.labelWidth&&A)return{};const G=as(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return!n.label&&!s.label?{marginLeft:G}:{}}),C=z(()=>[a.b(),a.m(l.value),a.is("error",d.value==="error"),a.is("validating",d.value==="validating"),a.is("success",d.value==="success"),a.is("required",W.value||n.required),a.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:o==null?void 0:o.statusIcon}]),y=z(()=>is(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),w=z(()=>[a.e("error"),{[a.em("error","inline")]:y.value}]),x=z(()=>n.prop?ft(n.prop)?n.prop:n.prop.join("."):""),E=z(()=>!!(n.label||s.label)),_=z(()=>n.for||(u.value.length===1?u.value[0]:void 0)),M=z(()=>!_.value&&E.value),A=!!i,k=z(()=>{const G=o==null?void 0:o.model;if(!(!G||!n.prop))return ih(G,n.prop).value}),P=z(()=>{const{required:G}=n,ne=[];n.rules&&ne.push(...Lh(n.rules));const se=o==null?void 0:o.rules;if(se&&n.prop){const me=ih(se,n.prop).value;me&&ne.push(...Lh(me))}if(G!==void 0){const me=ne.map((Pe,Se)=>[Pe,Se]).filter(([Pe])=>Object.keys(Pe).includes("required"));if(me.length>0)for(const[Pe,Se]of me)Pe.required!==G&&(ne[Se]={...Pe,required:G});else ne.push({required:G})}return ne}),$=z(()=>P.value.length>0),B=G=>P.value.filter(se=>!se.trigger||!G?!0:Array.isArray(se.trigger)?se.trigger.includes(G):se.trigger===G).map(({trigger:se,...me})=>me),W=z(()=>P.value.some(G=>G.required)),I=z(()=>{var G;return f.value==="error"&&n.showMessage&&((G=o==null?void 0:o.showMessage)!=null?G:!0)}),R=z(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),U=G=>{d.value=G},Q=G=>{var ne,se;const{errors:me,fields:Pe}=G;U("error"),h.value=me?(se=(ne=me==null?void 0:me[0])==null?void 0:ne.message)!=null?se:`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,h.value)},q=()=>{U("success"),o==null||o.emit("validate",n.prop,!0,"")},ee=async G=>{const ne=x.value;return new nf({[ne]:G}).validate({[ne]:k.value},{firstFields:!0}).then(()=>(q(),!0)).catch(me=>(Q(me),Promise.reject(me)))},de=async(G,ne)=>{if(m||!n.prop)return!1;const se=qe(ne);if(!$.value)return ne==null||ne(!1),!1;const me=B(G);return me.length===0?(ne==null||ne(!0),!0):(U("validating"),ee(me).then(()=>(ne==null||ne(!0),!0)).catch(Pe=>{const{fields:Se}=Pe;return ne==null||ne(!1,Se),se?!1:Promise.reject(Se)}))},ce=()=>{U(""),h.value="",m=!1},Te=async()=>{const G=o==null?void 0:o.model;if(!G||!n.prop)return;const ne=ih(G,n.prop);m=!0,ne.value=dd(g),await tt(),ce(),m=!1},fe=G=>{u.value.includes(G)||u.value.push(G)},we=G=>{u.value=u.value.filter(ne=>ne!==G)};$e(()=>n.error,G=>{h.value=G||"",U(G?"error":"")},{immediate:!0}),$e(()=>n.validateStatus,G=>U(G||""));const Ee=St({...Uo(n),$el:p,size:l,validateState:d,labelId:c,inputIds:u,isGroup:M,hasLabel:E,fieldValue:k,addInputId:fe,removeInputId:we,resetField:Te,clearValidate:ce,validate:de});return Wt(na,Ee),nt(()=>{n.prop&&(o==null||o.addField(Ee),g=dd(k.value))}),Cn(()=>{o==null||o.removeField(Ee)}),e({size:l,validateMessage:h,validateState:d,validate:de,clearValidate:ce,resetField:Te}),(G,ne)=>{var se;return N(),X("div",{ref_key:"formItemRef",ref:p,class:Y(S(C)),role:S(M)?"group":void 0,"aria-labelledby":S(M)?S(c):void 0},[T(S(h9),{"is-auto-width":S(v).width==="auto","update-all":((se=S(o))==null?void 0:se.labelWidth)==="auto"},{default:O(()=>[S(E)?(N(),ye(Ft(S(_)?"label":"div"),{key:0,id:S(c),for:S(_),class:Y(S(a).e("label")),style:vt(S(v))},{default:O(()=>[_e(G.$slots,"label",{label:S(R)},()=>[le(oe(S(R)),1)])]),_:3},8,["id","for","class","style"])):ve("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),H("div",{class:Y(S(a).e("content")),style:vt(S(b))},[_e(G.$slots,"default"),T(SL,{name:`${S(a).namespace.value}-zoom-in-top`},{default:O(()=>[S(I)?_e(G.$slots,"error",{key:0,error:h.value},()=>[H("div",{class:Y(S(w))},oe(h.value),3)]):ve("v-if",!0)]),_:3},8,["name"])],6)],10,p9)}}});var xO=Xe(m9,[["__file","form-item.vue"]]);const ir=Rt(NH,{FormItem:xO}),lr=Ar(xO);let vs;const b9=` - height:0 !important; - visibility:hidden !important; - ${ED()?"":"overflow:hidden !important;"} - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; -`,v9=["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 y9(r){const e=window.getComputedStyle(r),n=e.getPropertyValue("box-sizing"),s=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:v9.map(l=>`${l}:${e.getPropertyValue(l)}`).join(";"),paddingSize:s,borderSize:o,boxSizing:n}}function zC(r,e=1,n){var s;vs||(vs=document.createElement("textarea"),document.body.appendChild(vs));const{paddingSize:o,borderSize:i,boxSizing:l,contextStyle:a}=y9(r);vs.setAttribute("style",`${a};${b9}`),vs.value=r.value||r.placeholder||"";let c=vs.scrollHeight;const u={};l==="border-box"?c=c+i:l==="content-box"&&(c=c-o),vs.value="";const d=vs.scrollHeight-o;if(Tt(e)){let f=d*e;l==="border-box"&&(f=f+o+i),c=Math.max(f,c),u.minHeight=`${f}px`}if(Tt(n)){let f=d*n;l==="border-box"&&(f=f+o+i),c=Math.min(f,c)}return u.height=`${c}px`,(s=vs.parentNode)==null||s.removeChild(vs),vs=void 0,u}const w9=et({id:{type:String,default:void 0},size:Jo,disabled:Boolean,modelValue:{type:Be([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:Be([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:cs},prefixIcon:{type:cs},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:Be([Object,Array,String]),default:()=>Ss({})},autofocus:{type:Boolean,default:!1},...Xo(["ariaLabel"])}),C9={[jt]:r=>ft(r),input:r=>ft(r),change:r=>ft(r),focus:r=>r instanceof FocusEvent,blur:r=>r instanceof FocusEvent,clear:()=>!0,mouseleave:r=>r instanceof MouseEvent,mouseenter:r=>r instanceof MouseEvent,keydown:r=>r instanceof Event,compositionstart:r=>r instanceof CompositionEvent,compositionupdate:r=>r instanceof CompositionEvent,compositionend:r=>r instanceof CompositionEvent},S9=["role"],x9=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],E9=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],T9=pe({name:"ElInput",inheritAttrs:!1}),_9=pe({...T9,props:w9,emits:C9,setup(r,{expose:e,emit:n}){const s=r,o=cT(),i=Bs(),l=z(()=>{const re={};return s.containerRole==="combobox"&&(re["aria-haspopup"]=o["aria-haspopup"],re["aria-owns"]=o["aria-owns"],re["aria-expanded"]=o["aria-expanded"]),re}),a=z(()=>[s.type==="textarea"?v.b():m.b(),m.m(p.value),m.is("disabled",g.value),m.is("exceed",fe.value),{[m.b("group")]:i.prepend||i.append,[m.bm("group","append")]:i.append,[m.bm("group","prepend")]:i.prepend,[m.m("prefix")]:i.prefix||s.prefixIcon,[m.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[m.bm("suffix","password-clear")]:ee.value&&de.value,[m.b("hidden")]:s.type==="hidden"},o.class]),c=z(()=>[m.e("wrapper"),m.is("focus",k.value)]),u=Y_({excludeKeys:z(()=>Object.keys(l.value))}),{form:d,formItem:f}=il(),{inputId:h}=tf(s,{formItemContext:f}),p=fs(),g=Zc(),m=Ge("input"),v=Ge("textarea"),b=Ms(),C=Ms(),y=j(!1),w=j(!1),x=j(!1),E=j(),_=Ms(s.inputStyle),M=z(()=>b.value||C.value),{wrapperRef:A,isFocused:k,handleFocus:P,handleBlur:$}=yO(M,{afterBlur(){var re;s.validateEvent&&((re=f==null?void 0:f.validate)==null||re.call(f,"blur").catch(Z=>void 0))}}),B=z(()=>{var re;return(re=d==null?void 0:d.statusIcon)!=null?re:!1}),W=z(()=>(f==null?void 0:f.validateState)||""),I=z(()=>W.value&&q_[W.value]),R=z(()=>x.value?_z:fz),U=z(()=>[o.style]),Q=z(()=>[s.inputStyle,_.value,{resize:s.resize}]),q=z(()=>no(s.modelValue)?"":String(s.modelValue)),ee=z(()=>s.clearable&&!g.value&&!s.readonly&&!!q.value&&(k.value||y.value)),de=z(()=>s.showPassword&&!g.value&&!s.readonly&&!!q.value&&(!!q.value||k.value)),ce=z(()=>s.showWordLimit&&!!s.maxlength&&(s.type==="text"||s.type==="textarea")&&!g.value&&!s.readonly&&!s.showPassword),Te=z(()=>q.value.length),fe=z(()=>!!ce.value&&Te.value>Number(s.maxlength)),we=z(()=>!!i.suffix||!!s.suffixIcon||ee.value||s.showPassword||ce.value||!!W.value&&B.value),[Ee,G]=sH(b);dr(C,re=>{if(me(),!ce.value||s.resize!=="both")return;const Z=re[0],{width:ae}=Z.contentRect;E.value={right:`calc(100% - ${ae+15+6}px)`}});const ne=()=>{const{type:re,autosize:Z}=s;if(!(!Ct||re!=="textarea"||!C.value))if(Z){const ae=pt(Z)?Z.minRows:void 0,je=pt(Z)?Z.maxRows:void 0,Qe=zC(C.value,ae,je);_.value={overflowY:"hidden",...Qe},tt(()=>{C.value.offsetHeight,_.value=Qe})}else _.value={minHeight:zC(C.value).minHeight}},me=(re=>{let Z=!1;return()=>{var ae;if(Z||!s.autosize)return;((ae=C.value)==null?void 0:ae.offsetParent)===null||(re(),Z=!0)}})(ne),Pe=()=>{const re=M.value,Z=s.formatter?s.formatter(q.value):q.value;!re||re.value===Z||(re.value=Z)},Se=async re=>{Ee();let{value:Z}=re.target;if(s.formatter&&(Z=s.parser?s.parser(Z):Z),!w.value){if(Z===q.value){Pe();return}n(jt,Z),n("input",Z),await tt(),Pe(),G()}},D=re=>{n("change",re.target.value)},L=re=>{n("compositionstart",re),w.value=!0},te=re=>{var Z;n("compositionupdate",re);const ae=(Z=re.target)==null?void 0:Z.value,je=ae[ae.length-1]||"";w.value=!K_(je)},he=re=>{n("compositionend",re),w.value&&(w.value=!1,Se(re))},ge=()=>{x.value=!x.value,Ce()},Ce=async()=>{var re;await tt(),(re=M.value)==null||re.focus()},xe=()=>{var re;return(re=M.value)==null?void 0:re.blur()},V=re=>{y.value=!1,n("mouseleave",re)},F=re=>{y.value=!0,n("mouseenter",re)},J=re=>{n("keydown",re)},ie=()=>{var re;(re=M.value)==null||re.select()},Ae=()=>{n(jt,""),n("change",""),n("clear"),n("input","")};return $e(()=>s.modelValue,()=>{var re;tt(()=>ne()),s.validateEvent&&((re=f==null?void 0:f.validate)==null||re.call(f,"change").catch(Z=>void 0))}),$e(q,()=>Pe()),$e(()=>s.type,async()=>{await tt(),Pe(),ne()}),nt(()=>{!s.formatter&&s.parser,Pe(),tt(ne)}),Cr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},z(()=>!!s.label)),e({input:b,textarea:C,ref:M,textareaStyle:Q,autosize:Es(s,"autosize"),focus:Ce,blur:xe,select:ie,clear:Ae,resizeTextarea:ne}),(re,Z)=>(N(),X("div",Dr(S(l),{class:S(a),style:S(U),role:re.containerRole,onMouseenter:F,onMouseleave:V}),[ve(" input "),re.type!=="textarea"?(N(),X(De,{key:0},[ve(" prepend slot "),re.$slots.prepend?(N(),X("div",{key:0,class:Y(S(m).be("group","prepend"))},[_e(re.$slots,"prepend")],2)):ve("v-if",!0),H("div",{ref_key:"wrapperRef",ref:A,class:Y(S(c))},[ve(" prefix slot "),re.$slots.prefix||re.prefixIcon?(N(),X("span",{key:0,class:Y(S(m).e("prefix"))},[H("span",{class:Y(S(m).e("prefix-inner"))},[_e(re.$slots,"prefix"),re.prefixIcon?(N(),ye(S(dt),{key:0,class:Y(S(m).e("icon"))},{default:O(()=>[(N(),ye(Ft(re.prefixIcon)))]),_:1},8,["class"])):ve("v-if",!0)],2)],2)):ve("v-if",!0),H("input",Dr({id:S(h),ref_key:"input",ref:b,class:S(m).e("inner")},S(u),{minlength:re.minlength,maxlength:re.maxlength,type:re.showPassword?x.value?"text":"password":re.type,disabled:S(g),readonly:re.readonly,autocomplete:re.autocomplete,tabindex:re.tabindex,"aria-label":re.label||re.ariaLabel,placeholder:re.placeholder,style:re.inputStyle,form:re.form,autofocus:re.autofocus,onCompositionstart:L,onCompositionupdate:te,onCompositionend:he,onInput:Se,onFocus:Z[0]||(Z[0]=(...ae)=>S(P)&&S(P)(...ae)),onBlur:Z[1]||(Z[1]=(...ae)=>S($)&&S($)(...ae)),onChange:D,onKeydown:J}),null,16,x9),ve(" suffix slot "),S(we)?(N(),X("span",{key:1,class:Y(S(m).e("suffix"))},[H("span",{class:Y(S(m).e("suffix-inner"))},[!S(ee)||!S(de)||!S(ce)?(N(),X(De,{key:0},[_e(re.$slots,"suffix"),re.suffixIcon?(N(),ye(S(dt),{key:0,class:Y(S(m).e("icon"))},{default:O(()=>[(N(),ye(Ft(re.suffixIcon)))]),_:1},8,["class"])):ve("v-if",!0)],64)):ve("v-if",!0),S(ee)?(N(),ye(S(dt),{key:1,class:Y([S(m).e("icon"),S(m).e("clear")]),onMousedown:It(S(un),["prevent"]),onClick:Ae},{default:O(()=>[T(S(gy))]),_:1},8,["class","onMousedown"])):ve("v-if",!0),S(de)?(N(),ye(S(dt),{key:2,class:Y([S(m).e("icon"),S(m).e("password")]),onClick:ge},{default:O(()=>[(N(),ye(Ft(S(R))))]),_:1},8,["class"])):ve("v-if",!0),S(ce)?(N(),X("span",{key:3,class:Y(S(m).e("count"))},[H("span",{class:Y(S(m).e("count-inner"))},oe(S(Te))+" / "+oe(re.maxlength),3)],2)):ve("v-if",!0),S(W)&&S(I)&&S(B)?(N(),ye(S(dt),{key:4,class:Y([S(m).e("icon"),S(m).e("validateIcon"),S(m).is("loading",S(W)==="validating")])},{default:O(()=>[(N(),ye(Ft(S(I))))]),_:1},8,["class"])):ve("v-if",!0)],2)],2)):ve("v-if",!0)],2),ve(" append slot "),re.$slots.append?(N(),X("div",{key:1,class:Y(S(m).be("group","append"))},[_e(re.$slots,"append")],2)):ve("v-if",!0)],64)):(N(),X(De,{key:1},[ve(" textarea "),H("textarea",Dr({id:S(h),ref_key:"textarea",ref:C,class:S(v).e("inner")},S(u),{minlength:re.minlength,maxlength:re.maxlength,tabindex:re.tabindex,disabled:S(g),readonly:re.readonly,autocomplete:re.autocomplete,style:S(Q),"aria-label":re.label||re.ariaLabel,placeholder:re.placeholder,form:re.form,autofocus:re.autofocus,onCompositionstart:L,onCompositionupdate:te,onCompositionend:he,onInput:Se,onFocus:Z[2]||(Z[2]=(...ae)=>S(P)&&S(P)(...ae)),onBlur:Z[3]||(Z[3]=(...ae)=>S($)&&S($)(...ae)),onChange:D,onKeydown:J}),null,16,E9),S(ce)?(N(),X("span",{key:0,style:vt(E.value),class:Y(S(m).e("count"))},oe(S(Te))+" / "+oe(re.maxlength),7)):ve("v-if",!0)],64))],16,S9))}});var O9=Xe(_9,[["__file","input.vue"]]);const Sn=Rt(O9),Sa=4,A9={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"}},M9=({move:r,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${r}%)`}),Py=Symbol("scrollbarContextKey"),k9=et({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),P9="Thumb",N9=pe({__name:"thumb",props:k9,setup(r){const e=r,n=Ve(Py),s=Ge("scrollbar");n||sl(P9,"can not inject scrollbar context");const o=j(),i=j(),l=j({}),a=j(!1);let c=!1,u=!1,d=Ct?document.onselectstart:null;const f=z(()=>A9[e.vertical?"vertical":"horizontal"]),h=z(()=>M9({size:e.size,move:e.move,bar:f.value})),p=z(()=>o.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/e.ratio/i.value[f.value.offset]),g=E=>{var _;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(_=window.getSelection())==null||_.removeAllRanges(),v(E);const M=E.currentTarget;M&&(l.value[f.value.axis]=M[f.value.offset]-(E[f.value.client]-M.getBoundingClientRect()[f.value.direction]))},m=E=>{if(!i.value||!o.value||!n.wrapElement)return;const _=Math.abs(E.target.getBoundingClientRect()[f.value.direction]-E[f.value.client]),M=i.value[f.value.offset]/2,A=(_-M)*100*p.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=A*n.wrapElement[f.value.scrollSize]/100},v=E=>{E.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),d=document.onselectstart,document.onselectstart=()=>!1},b=E=>{if(!o.value||!i.value||c===!1)return;const _=l.value[f.value.axis];if(!_)return;const M=(o.value.getBoundingClientRect()[f.value.direction]-E[f.value.client])*-1,A=i.value[f.value.offset]-_,k=(M-A)*100*p.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=k*n.wrapElement[f.value.scrollSize]/100},C=()=>{c=!1,l.value[f.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),x(),u&&(a.value=!1)},y=()=>{u=!1,a.value=!!e.size},w=()=>{u=!0,a.value=c};Cn(()=>{x(),document.removeEventListener("mouseup",C)});const x=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return vn(Es(n,"scrollbarElement"),"mousemove",y),vn(Es(n,"scrollbarElement"),"mouseleave",w),(E,_)=>(N(),ye(Or,{name:S(s).b("fade"),persisted:""},{default:O(()=>[Ue(H("div",{ref_key:"instance",ref:o,class:Y([S(s).e("bar"),S(s).is(S(f).key)]),onMousedown:m},[H("div",{ref_key:"thumb",ref:i,class:Y(S(s).e("thumb")),style:vt(S(h)),onMousedown:g},null,38)],34),[[st,E.always||a.value]])]),_:1},8,["name"]))}});var jC=Xe(N9,[["__file","thumb.vue"]]);const I9=et({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),L9=pe({__name:"bar",props:I9,setup(r,{expose:e}){const n=r,s=Ve(Py),o=j(0),i=j(0),l=j(""),a=j(""),c=j(1),u=j(1);return e({handleScroll:h=>{if(h){const p=h.offsetHeight-Sa,g=h.offsetWidth-Sa;i.value=h.scrollTop*100/p*c.value,o.value=h.scrollLeft*100/g*u.value}},update:()=>{const h=s==null?void 0:s.wrapElement;if(!h)return;const p=h.offsetHeight-Sa,g=h.offsetWidth-Sa,m=p**2/h.scrollHeight,v=g**2/h.scrollWidth,b=Math.max(m,n.minSize),C=Math.max(v,n.minSize);c.value=m/(p-m)/(b/(p-b)),u.value=v/(g-v)/(C/(g-C)),a.value=b+Sa(N(),X(De,null,[T(jC,{move:o.value,ratio:u.value,size:l.value,always:h.always},null,8,["move","ratio","size","always"]),T(jC,{move:i.value,ratio:c.value,size:a.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var R9=Xe(L9,[["__file","bar.vue"]]);const $9=et({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Be([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,...Xo(["ariaLabel","ariaOrientation"])}),D9={scroll:({scrollTop:r,scrollLeft:e})=>[r,e].every(Tt)},V9="ElScrollbar",F9=pe({name:V9}),B9=pe({...F9,props:$9,emits:D9,setup(r,{expose:e,emit:n}){const s=r,o=Ge("scrollbar");let i,l;const a=j(),c=j(),u=j(),d=j(),f=z(()=>{const y={};return s.height&&(y.height=as(s.height)),s.maxHeight&&(y.maxHeight=as(s.maxHeight)),[s.wrapStyle,y]}),h=z(()=>[s.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!s.native}]),p=z(()=>[o.e("view"),s.viewClass]),g=()=>{var y;c.value&&((y=d.value)==null||y.handleScroll(c.value),n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function m(y,w){pt(y)?c.value.scrollTo(y):Tt(y)&&Tt(w)&&c.value.scrollTo(y,w)}const v=y=>{Tt(y)&&(c.value.scrollTop=y)},b=y=>{Tt(y)&&(c.value.scrollLeft=y)},C=()=>{var y;(y=d.value)==null||y.update()};return $e(()=>s.noresize,y=>{y?(i==null||i(),l==null||l()):({stop:i}=dr(u,C),l=vn("resize",C))},{immediate:!0}),$e(()=>[s.maxHeight,s.height],()=>{s.native||tt(()=>{var y;C(),c.value&&((y=d.value)==null||y.handleScroll(c.value))})}),Wt(Py,St({scrollbarElement:a,wrapElement:c})),nt(()=>{s.native||tt(()=>{C()})}),ua(()=>C()),e({wrapRef:c,update:C,scrollTo:m,setScrollTop:v,setScrollLeft:b,handleScroll:g}),(y,w)=>(N(),X("div",{ref_key:"scrollbarRef",ref:a,class:Y(S(o).b())},[H("div",{ref_key:"wrapRef",ref:c,class:Y(S(h)),style:vt(S(f)),onScroll:g},[(N(),ye(Ft(y.tag),{id:y.id,ref_key:"resizeRef",ref:u,class:Y(S(p)),style:vt(y.viewStyle),role:y.role,"aria-label":y.ariaLabel,"aria-orientation":y.ariaOrientation},{default:O(()=>[_e(y.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),y.native?ve("v-if",!0):(N(),ye(R9,{key:0,ref_key:"barRef",ref:d,always:y.always,"min-size":y.minSize},null,8,["always","min-size"]))],2))}});var z9=Xe(B9,[["__file","scrollbar.vue"]]);const Qp=Rt(z9),Ny=Symbol("popper"),EO=Symbol("popperContent"),j9=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],TO=et({role:{type:String,values:j9,default:"tooltip"}}),H9=pe({name:"ElPopper",inheritAttrs:!1}),U9=pe({...H9,props:TO,setup(r,{expose:e}){const n=r,s=j(),o=j(),i=j(),l=j(),a=z(()=>n.role),c={triggerRef:s,popperInstanceRef:o,contentRef:i,referenceRef:l,role:a};return e(c),Wt(Ny,c),(u,d)=>_e(u.$slots,"default")}});var W9=Xe(U9,[["__file","popper.vue"]]);const _O=et({arrowOffset:{type:Number,default:5}}),q9=pe({name:"ElPopperArrow",inheritAttrs:!1}),G9=pe({...q9,props:_O,setup(r,{expose:e}){const n=r,s=Ge("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:l}=Ve(EO,void 0);return $e(()=>n.arrowOffset,a=>{o.value=a}),Cn(()=>{i.value=void 0}),e({arrowRef:i}),(a,c)=>(N(),X("span",{ref_key:"arrowRef",ref:i,class:Y(S(s).e("arrow")),style:vt(S(l)),"data-popper-arrow":""},null,6))}});var K9=Xe(G9,[["__file","arrow.vue"]]);const Y9="ElOnlyChild",J9=pe({name:Y9,setup(r,{slots:e,attrs:n}){var s;const o=Ve(gO),i=rH((s=o==null?void 0:o.setForwardRef)!=null?s:un);return()=>{var l;const a=(l=e.default)==null?void 0:l.call(e,n);if(!a||a.length>1)return null;const c=OO(a);return c?Ue(Fo(c,n),[[i]]):null}}});function OO(r){if(!r)return null;const e=r;for(const n of e){if(pt(n))switch(n.type){case rr:continue;case da:case"svg":return HC(n);case De:return OO(n.children);default:return n}return HC(n)}return null}function HC(r){const e=Ge("only-child");return T("span",{class:e.e("content")},[r])}const AO=et({virtualRef:{type:Be(Object)},virtualTriggering:Boolean,onMouseenter:{type:Be(Function)},onMouseleave:{type:Be(Function)},onClick:{type:Be(Function)},onKeydown:{type:Be(Function)},onFocus:{type:Be(Function)},onBlur:{type:Be(Function)},onContextmenu:{type:Be(Function)},id:String,open:Boolean}),X9=pe({name:"ElPopperTrigger",inheritAttrs:!1}),Z9=pe({...X9,props:AO,setup(r,{expose:e}){const n=r,{role:s,triggerRef:o}=Ve(Ny,void 0);nH(o);const i=z(()=>a.value?n.id:void 0),l=z(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=z(()=>{if(s&&s.value!=="tooltip")return s.value}),c=z(()=>a.value?`${n.open}`:void 0);let u;return nt(()=>{$e(()=>n.virtualRef,d=>{d&&(o.value=Po(d))},{immediate:!0}),$e(o,(d,f)=>{u==null||u(),u=void 0,ls(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].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))}),u=$e([i,l,a,c],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{no(h[g])?d.removeAttribute(p):d.setAttribute(p,h[g])})},{immediate:!0})),ls(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>f.removeAttribute(h))},{immediate:!0})}),Cn(()=>{u==null||u(),u=void 0}),e({triggerRef:o}),(d,f)=>d.virtualTriggering?ve("v-if",!0):(N(),ye(S(J9),Dr({key:0},d.$attrs,{"aria-controls":S(i),"aria-describedby":S(l),"aria-expanded":S(c),"aria-haspopup":S(a)}),{default:O(()=>[_e(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Q9=Xe(Z9,[["__file","trigger.vue"]]);const Zg="focus-trap.focus-after-trapped",Qg="focus-trap.focus-after-released",eU="focus-trap.focusout-prevented",UC={cancelable:!0,bubbles:!1},tU={cancelable:!0,bubbles:!1},WC="focusAfterTrapped",qC="focusAfterReleased",MO=Symbol("elFocusTrap"),Iy=j(),eg=j(0),Ly=j(0);let If=0;const kO=r=>{const e=[],n=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},GC=(r,e)=>{for(const n of r)if(!nU(n,e))return n},nU=(r,e)=>{if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(e&&r===e)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1},rU=r=>{const e=kO(r),n=GC(e,r),s=GC(e.reverse(),r);return[n,s]},sU=r=>r instanceof HTMLInputElement&&"select"in r,di=(r,e)=>{if(r&&r.focus){const n=document.activeElement;r.focus({preventScroll:!0}),Ly.value=window.performance.now(),r!==n&&sU(r)&&e&&r.select()}};function KC(r,e){const n=[...r],s=r.indexOf(e);return s!==-1&&n.splice(s,1),n}const oU=()=>{let r=[];return{push:s=>{const o=r[0];o&&s!==o&&o.pause(),r=KC(r,s),r.unshift(s)},remove:s=>{var o,i;r=KC(r,s),(i=(o=r[0])==null?void 0:o.resume)==null||i.call(o)}}},iU=(r,e=!1)=>{const n=document.activeElement;for(const s of r)if(di(s,e),document.activeElement!==n)return},YC=oU(),lU=()=>eg.value>Ly.value,Lf=()=>{Iy.value="pointer",eg.value=window.performance.now()},JC=()=>{Iy.value="keyboard",eg.value=window.performance.now()},aU=()=>(nt(()=>{If===0&&(document.addEventListener("mousedown",Lf),document.addEventListener("touchstart",Lf),document.addEventListener("keydown",JC)),If++}),Cn(()=>{If--,If<=0&&(document.removeEventListener("mousedown",Lf),document.removeEventListener("touchstart",Lf),document.removeEventListener("keydown",JC))}),{focusReason:Iy,lastUserFocusTimestamp:eg,lastAutomatedFocusTimestamp:Ly}),Rf=r=>new CustomEvent(eU,{...tU,detail:r}),cU=pe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[WC,qC,"focusin","focusout","focusout-prevented","release-requested"],setup(r,{emit:e}){const n=j();let s,o;const{focusReason:i}=aU();Xj(g=>{r.trapped&&!l.paused&&e("release-requested",g)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=g=>{if(!r.loop&&!r.trapped||l.paused)return;const{key:m,altKey:v,ctrlKey:b,metaKey:C,currentTarget:y,shiftKey:w}=g,{loop:x}=r,E=m===bn.tab&&!v&&!b&&!C,_=document.activeElement;if(E&&_){const M=y,[A,k]=rU(M);if(A&&k){if(!w&&_===k){const $=Rf({focusReason:i.value});e("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),x&&di(A,!0))}else if(w&&[A,M].includes(_)){const $=Rf({focusReason:i.value});e("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),x&&di(k,!0))}}else if(_===M){const $=Rf({focusReason:i.value});e("focusout-prevented",$),$.defaultPrevented||g.preventDefault()}}};Wt(MO,{focusTrapRef:n,onKeydown:a}),$e(()=>r.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),$e([n],([g],[m])=>{g&&(g.addEventListener("keydown",a),g.addEventListener("focusin",d),g.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",d),m.removeEventListener("focusout",f))});const c=g=>{e(WC,g)},u=g=>e(qC,g),d=g=>{const m=S(n);if(!m)return;const v=g.target,b=g.relatedTarget,C=v&&m.contains(v);r.trapped||b&&m.contains(b)||(s=b),C&&e("focusin",g),!l.paused&&r.trapped&&(C?o=v:di(o,!0))},f=g=>{const m=S(n);if(!(l.paused||!m))if(r.trapped){const v=g.relatedTarget;!no(v)&&!m.contains(v)&&setTimeout(()=>{if(!l.paused&&r.trapped){const b=Rf({focusReason:i.value});e("focusout-prevented",b),b.defaultPrevented||di(o,!0)}},0)}else{const v=g.target;v&&m.contains(v)||e("focusout",g)}};async function h(){await tt();const g=S(n);if(g){YC.push(l);const m=g.contains(document.activeElement)?s:document.activeElement;if(s=m,!g.contains(m)){const b=new Event(Zg,UC);g.addEventListener(Zg,c),g.dispatchEvent(b),b.defaultPrevented||tt(()=>{let C=r.focusStartEl;ft(C)||(di(C),document.activeElement!==C&&(C="first")),C==="first"&&iU(kO(g),!0),(document.activeElement===m||C==="container")&&di(g)})}}}function p(){const g=S(n);if(g){g.removeEventListener(Zg,c);const m=new CustomEvent(Qg,{...UC,detail:{focusReason:i.value}});g.addEventListener(Qg,u),g.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!lU()||g.contains(document.activeElement))&&di(s??document.body),g.removeEventListener(Qg,u),YC.remove(l)}}return nt(()=>{r.trapped&&h(),$e(()=>r.trapped,g=>{g?h():p()})}),Cn(()=>{r.trapped&&p()}),{onKeydown:a}}});function uU(r,e,n,s,o,i){return _e(r.$slots,"default",{handleKeydown:r.onKeydown})}var tg=Xe(cU,[["render",uU],["__file","focus-trap.vue"]]);const dU=["fixed","absolute"],fU=et({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Be(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Yp,default:"bottom"},popperOptions:{type:Be(Object),default:()=>({})},strategy:{type:String,values:dU,default:"absolute"}}),PO=et({...fU,id:String,style:{type:Be([String,Array,Object])},className:{type:Be([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:Be([String,Array,Object])},popperStyle:{type:Be([String,Array,Object])},referenceEl:{type:Be(Object)},triggerTargetEl:{type:Be(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Xo(["ariaLabel"])}),hU={mouseenter:r=>r instanceof MouseEvent,mouseleave:r=>r instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},pU=(r,e=[])=>{const{placement:n,strategy:s,popperOptions:o}=r,i={placement:n,strategy:s,...o,modifiers:[...mU(r),...e]};return bU(i,o==null?void 0:o.modifiers),i},gU=r=>{if(Ct)return Po(r)};function mU(r){const{offset:e,gpuAcceleration:n,fallbackPlacements:s}=r;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:s}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function bU(r,e){e&&(r.modifiers=[...r.modifiers,...e??[]])}const vU=0,yU=r=>{const{popperInstanceRef:e,contentRef:n,triggerRef:s,role:o}=Ve(Ny,void 0),i=j(),l=j(),a=z(()=>({name:"eventListeners",enabled:!!r.visible})),c=z(()=>{var b;const C=S(i),y=(b=S(l))!=null?b:vU;return{name:"arrow",enabled:!I_(C),options:{element:C,padding:y}}}),u=z(()=>({onFirstUpdate:()=>{g()},...pU(r,[S(c),S(a)])})),d=z(()=>gU(r.referenceEl)||S(s)),{attributes:f,state:h,styles:p,update:g,forceUpdate:m,instanceRef:v}=Kj(d,n,u);return $e(v,b=>e.value=b),nt(()=>{$e(()=>{var b;return(b=S(d))==null?void 0:b.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:v,state:h,styles:p,role:o,forceUpdate:m,update:g}},wU=(r,{attributes:e,styles:n,role:s})=>{const{nextZIndex:o}=Xp(),i=Ge("popper"),l=z(()=>S(e).popper),a=j(Tt(r.zIndex)?r.zIndex:o()),c=z(()=>[i.b(),i.is("pure",r.pure),i.is(r.effect),r.popperClass]),u=z(()=>[{zIndex:S(a)},S(n).popper,r.popperStyle||{}]),d=z(()=>s.value==="dialog"?"false":void 0),f=z(()=>S(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:l,contentClass:c,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=Tt(r.zIndex)?r.zIndex:o()}}},CU=(r,e)=>{const n=j(!1),s=j();return{focusStartRef:s,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(s.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{r.visible&&!n.value&&(u.target&&(s.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{r.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},SU=pe({name:"ElPopperContent"}),xU=pe({...SU,props:PO,emits:hU,setup(r,{expose:e,emit:n}){const s=r,{focusStartRef:o,trapped:i,onFocusAfterReleased:l,onFocusAfterTrapped:a,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=CU(s,n),{attributes:f,arrowRef:h,contentRef:p,styles:g,instanceRef:m,role:v,update:b}=yU(s),{ariaModal:C,arrowStyle:y,contentAttrs:w,contentClass:x,contentStyle:E,updateZIndex:_}=wU(s,{styles:g,attributes:f,role:v}),M=Ve(na,void 0),A=j();Wt(EO,{arrowStyle:y,arrowRef:h,arrowOffset:A}),M&&Wt(na,{...M,addInputId:un,removeInputId:un});let k;const P=(B=!0)=>{b(),B&&_()},$=()=>{P(!1),s.visible&&s.focusOnShow?i.value=!0:s.visible===!1&&(i.value=!1)};return nt(()=>{$e(()=>s.triggerTargetEl,(B,W)=>{k==null||k(),k=void 0;const I=S(B||p.value),R=S(W||p.value);ls(I)&&(k=$e([v,()=>s.ariaLabel,C,()=>s.id],U=>{["role","aria-label","aria-modal","id"].forEach((Q,q)=>{no(U[q])?I.removeAttribute(Q):I.setAttribute(Q,U[q])})},{immediate:!0})),R!==I&&ls(R)&&["role","aria-label","aria-modal","id"].forEach(U=>{R.removeAttribute(U)})},{immediate:!0}),$e(()=>s.visible,$,{immediate:!0})}),Cn(()=>{k==null||k(),k=void 0}),e({popperContentRef:p,popperInstanceRef:m,updatePopper:P,contentStyle:E}),(B,W)=>(N(),X("div",Dr({ref_key:"contentRef",ref:p},S(w),{style:S(E),class:S(x),tabindex:"-1",onMouseenter:W[0]||(W[0]=I=>B.$emit("mouseenter",I)),onMouseleave:W[1]||(W[1]=I=>B.$emit("mouseleave",I))}),[T(S(tg),{trapped:S(i),"trap-on-focus-in":!0,"focus-trap-el":S(p),"focus-start-el":S(o),onFocusAfterTrapped:S(a),onFocusAfterReleased:S(l),onFocusin:S(c),onFocusoutPrevented:S(u),onReleaseRequested:S(d)},{default:O(()=>[_e(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var EU=Xe(xU,[["__file","content.vue"]]);const TU=Rt(W9),Ry=Symbol("elTooltip"),Nr=et({...eH,...PO,appendTo:{type:Be([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Be(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Xo(["ariaLabel"])}),md=et({...AO,disabled:Boolean,trigger:{type:Be([String,Array]),default:"hover"},triggerKeys:{type:Be(Array),default:()=>[bn.enter,bn.space]}}),{useModelToggleProps:_U,useModelToggleEmits:OU,useModelToggle:AU}=eO("visible"),MU=et({...TO,..._U,...Nr,...md,..._O,showArrow:{type:Boolean,default:!0}}),kU=[...OU,"before-show","before-hide","show","hide","open","close"],PU=(r,e)=>Re(r)?r.includes(e):r===e,xa=(r,e,n)=>s=>{PU(S(r),e)&&n(s)},NU=pe({name:"ElTooltipTrigger"}),IU=pe({...NU,props:md,setup(r,{expose:e}){const n=r,s=Ge("tooltip"),{controlled:o,id:i,open:l,onOpen:a,onClose:c,onToggle:u}=Ve(Ry,void 0),d=j(null),f=()=>{if(S(o)||n.disabled)return!0},h=Es(n,"trigger"),p=Oo(f,xa(h,"hover",a)),g=Oo(f,xa(h,"hover",c)),m=Oo(f,xa(h,"click",w=>{w.button===0&&u(w)})),v=Oo(f,xa(h,"focus",a)),b=Oo(f,xa(h,"focus",c)),C=Oo(f,xa(h,"contextmenu",w=>{w.preventDefault(),u(w)})),y=Oo(f,w=>{const{code:x}=w;n.triggerKeys.includes(x)&&(w.preventDefault(),u(w))});return e({triggerRef:d}),(w,x)=>(N(),ye(S(Q9),{id:S(i),"virtual-ref":w.virtualRef,open:S(l),"virtual-triggering":w.virtualTriggering,class:Y(S(s).e("trigger")),onBlur:S(b),onClick:S(m),onContextmenu:S(C),onFocus:S(v),onMouseenter:S(p),onMouseleave:S(g),onKeydown:S(y)},{default:O(()=>[_e(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var LU=Xe(IU,[["__file","trigger.vue"]]);const RU=pe({name:"ElTooltipContent",inheritAttrs:!1}),$U=pe({...RU,props:Nr,setup(r,{expose:e}){const n=r,{selector:s}=pO(),o=Ge("tooltip"),i=j(null),l=j(!1),{controlled:a,id:c,open:u,trigger:d,onClose:f,onOpen:h,onShow:p,onHide:g,onBeforeShow:m,onBeforeHide:v}=Ve(Ry,void 0),b=z(()=>n.transition||`${o.namespace.value}-fade-in-linear`),C=z(()=>n.persistent);Cn(()=>{l.value=!0});const y=z(()=>S(C)?!0:S(u)),w=z(()=>n.disabled?!1:S(u)),x=z(()=>n.appendTo||s.value),E=z(()=>{var U;return(U=n.style)!=null?U:{}}),_=z(()=>!S(u)),M=()=>{g()},A=()=>{if(S(a))return!0},k=Oo(A,()=>{n.enterable&&S(d)==="hover"&&h()}),P=Oo(A,()=>{S(d)==="hover"&&f()}),$=()=>{var U,Q;(Q=(U=i.value)==null?void 0:U.updatePopper)==null||Q.call(U),m==null||m()},B=()=>{v==null||v()},W=()=>{p(),R=cD(z(()=>{var U;return(U=i.value)==null?void 0:U.popperContentRef}),()=>{if(S(a))return;S(d)!=="hover"&&f()})},I=()=>{n.virtualTriggering||f()};let R;return $e(()=>S(u),U=>{U||R==null||R()},{flush:"post"}),$e(()=>n.content,()=>{var U,Q;(Q=(U=i.value)==null?void 0:U.updatePopper)==null||Q.call(U)}),e({contentRef:i}),(U,Q)=>(N(),ye(Uc,{disabled:!U.teleported,to:S(x)},[T(Or,{name:S(b),onAfterLeave:M,onBeforeEnter:$,onAfterEnter:W,onBeforeLeave:B},{default:O(()=>[S(y)?Ue((N(),ye(S(EU),Dr({key:0,id:S(c),ref_key:"contentRef",ref:i},U.$attrs,{"aria-label":U.ariaLabel,"aria-hidden":S(_),"boundaries-padding":U.boundariesPadding,"fallback-placements":U.fallbackPlacements,"gpu-acceleration":U.gpuAcceleration,offset:U.offset,placement:U.placement,"popper-options":U.popperOptions,strategy:U.strategy,effect:U.effect,enterable:U.enterable,pure:U.pure,"popper-class":U.popperClass,"popper-style":[U.popperStyle,S(E)],"reference-el":U.referenceEl,"trigger-target-el":U.triggerTargetEl,visible:S(w),"z-index":U.zIndex,onMouseenter:S(k),onMouseleave:S(P),onBlur:I,onClose:S(f)}),{default:O(()=>[l.value?ve("v-if",!0):_e(U.$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"])),[[st,S(w)]]):ve("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var DU=Xe($U,[["__file","content.vue"]]);const VU=["innerHTML"],FU={key:1},BU=pe({name:"ElTooltip"}),zU=pe({...BU,props:MU,emits:kU,setup(r,{expose:e,emit:n}){const s=r;Qj();const o=ao(),i=j(),l=j(),a=()=>{var b;const C=S(i);C&&((b=C.popperInstanceRef)==null||b.update())},c=j(!1),u=j(),{show:d,hide:f,hasUpdateHandler:h}=AU({indicator:c,toggleReason:u}),{onOpen:p,onClose:g}=tH({showAfter:Es(s,"showAfter"),hideAfter:Es(s,"hideAfter"),autoClose:Es(s,"autoClose"),open:d,close:f}),m=z(()=>is(s.visible)&&!h.value);Wt(Ry,{controlled:m,id:o,open:Vd(c),trigger:Es(s,"trigger"),onOpen:b=>{p(b)},onClose:b=>{g(b)},onToggle:b=>{S(c)?g(b):p(b)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:a}),$e(()=>s.disabled,b=>{b&&c.value&&(c.value=!1)});const v=b=>{var C,y;const w=(y=(C=l.value)==null?void 0:C.contentRef)==null?void 0:y.popperContentRef,x=(b==null?void 0:b.relatedTarget)||document.activeElement;return w&&w.contains(x)};return iT(()=>c.value&&f()),e({popperRef:i,contentRef:l,isFocusInsideContent:v,updatePopper:a,onOpen:p,onClose:g,hide:f}),(b,C)=>(N(),ye(S(TU),{ref_key:"popperRef",ref:i,role:b.role},{default:O(()=>[T(LU,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:O(()=>[b.$slots.default?_e(b.$slots,"default",{key:0}):ve("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),T(DU,{ref_key:"contentRef",ref:l,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":b.popperClass,"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:O(()=>[_e(b.$slots,"content",{},()=>[b.rawContent?(N(),X("span",{key:0,innerHTML:b.content},null,8,VU)):(N(),X("span",FU,oe(b.content),1))]),b.showArrow?(N(),ye(S(K9),{key:0,"arrow-offset":b.arrowOffset},null,8,["arrow-offset"])):ve("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 jU=Xe(zU,[["__file","tooltip.vue"]]);const gs=Rt(jU),HU=et({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:Be([String,Object,Array])},badgeStyle:{type:Be([String,Object,Array])},offset:{type:Be(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),UU=["textContent"],WU=pe({name:"ElBadge"}),qU=pe({...WU,props:HU,setup(r,{expose:e}){const n=r,s=Ge("badge"),o=z(()=>n.isDot?"":Tt(n.value)&&Tt(n.max)?n.max{var l,a,c,u,d,f;return[{backgroundColor:n.color,marginRight:as(-((a=(l=n.offset)==null?void 0:l[0])!=null?a:0)),marginTop:as((u=(c=n.offset)==null?void 0:c[1])!=null?u:0)},(d=n.dotStyle)!=null?d:{},(f=n.badgeStyle)!=null?f:{}]});return Cr({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},z(()=>!!n.dotStyle)),Cr({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},z(()=>!!n.dotClass)),e({content:o}),(l,a)=>(N(),X("div",{class:Y(S(s).b())},[_e(l.$slots,"default"),T(Or,{name:`${S(s).namespace.value}-zoom-in-center`,persisted:""},{default:O(()=>[Ue(H("sup",{class:Y([S(s).e("content"),S(s).em("content",l.type),S(s).is("fixed",!!l.$slots.default),S(s).is("dot",l.isDot),l.dotClass,l.badgeClass]),style:vt(S(i)),textContent:oe(S(o))},null,14,UU),[[st,!l.hidden&&(S(o)||l.isDot)]])]),_:1},8,["name"])],2))}});var GU=Xe(qU,[["__file","badge.vue"]]);const KU=Rt(GU),NO=Symbol("buttonGroupContextKey"),YU=(r,e)=>{Cr({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},z(()=>r.type==="text"));const n=Ve(NO,void 0),s=ef("button"),{form:o}=il(),i=fs(z(()=>n==null?void 0:n.size)),l=Zc(),a=j(),c=Bs(),u=z(()=>r.type||(n==null?void 0:n.type)||""),d=z(()=>{var g,m,v;return(v=(m=r.autoInsertSpace)!=null?m:(g=s.value)==null?void 0:g.autoInsertSpace)!=null?v:!1}),f=z(()=>r.tag==="button"?{ariaDisabled:l.value||r.loading,disabled:l.value||r.loading,autofocus:r.autofocus,type:r.nativeType}:{}),h=z(()=>{var g;const m=(g=c.default)==null?void 0:g.call(c);if(d.value&&(m==null?void 0:m.length)===1){const v=m[0];if((v==null?void 0:v.type)===da){const b=v.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:l,_size:i,_type:u,_ref:a,_props:f,shouldAddSpace:h,handleClick:g=>{r.nativeType==="reset"&&(o==null||o.resetFields()),e("click",g)}}},JU=["default","primary","success","warning","info","danger","text",""],XU=["button","submit","reset"],_b=et({size:Jo,disabled:Boolean,type:{type:String,values:JU,default:""},icon:{type:cs},nativeType:{type:String,values:XU,default:"button"},loading:Boolean,loadingIcon:{type:cs,default:()=>by},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:Be([String,Object]),default:"button"}}),ZU={click:r=>r instanceof MouseEvent};function Jn(r,e){QU(r)&&(r="100%");var n=e7(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),n&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function $f(r){return Math.min(1,Math.max(0,r))}function QU(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function e7(r){return typeof r=="string"&&r.indexOf("%")!==-1}function IO(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Df(r){return r<=1?"".concat(Number(r)*100,"%"):r}function Ll(r){return r.length===1?"0"+r:String(r)}function t7(r,e,n){return{r:Jn(r,255)*255,g:Jn(e,255)*255,b:Jn(n,255)*255}}function XC(r,e,n){r=Jn(r,255),e=Jn(e,255),n=Jn(n,255);var s=Math.max(r,e,n),o=Math.min(r,e,n),i=0,l=0,a=(s+o)/2;if(s===o)l=0,i=0;else{var c=s-o;switch(l=a>.5?c/(2-s-o):c/(s+o),s){case r:i=(e-n)/c+(e1&&(n-=1),n<1/6?r+(e-r)*(6*n):n<1/2?e:n<2/3?r+(e-r)*(2/3-n)*6:r}function n7(r,e,n){var s,o,i;if(r=Jn(r,360),e=Jn(e,100),n=Jn(n,100),e===0)o=n,i=n,s=n;else{var l=n<.5?n*(1+e):n+e-n*e,a=2*n-l;s=em(a,l,r+1/3),o=em(a,l,r),i=em(a,l,r-1/3)}return{r:s*255,g:o*255,b:i*255}}function ZC(r,e,n){r=Jn(r,255),e=Jn(e,255),n=Jn(n,255);var s=Math.max(r,e,n),o=Math.min(r,e,n),i=0,l=s,a=s-o,c=s===0?0:a/s;if(s===o)i=0;else{switch(s){case r:i=(e-n)/a+(e>16,g:(r&65280)>>8,b:r&255}}var Ob={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 l7(r){var e={r:0,g:0,b:0},n=1,s=null,o=null,i=null,l=!1,a=!1;return typeof r=="string"&&(r=u7(r)),typeof r=="object"&&(xo(r.r)&&xo(r.g)&&xo(r.b)?(e=t7(r.r,r.g,r.b),l=!0,a=String(r.r).substr(-1)==="%"?"prgb":"rgb"):xo(r.h)&&xo(r.s)&&xo(r.v)?(s=Df(r.s),o=Df(r.v),e=r7(r.h,s,o),l=!0,a="hsv"):xo(r.h)&&xo(r.s)&&xo(r.l)&&(s=Df(r.s),i=Df(r.l),e=n7(r.h,s,i),l=!0,a="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(n=r.a)),n=IO(n),{ok:l,format:r.format||a,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 a7="[-\\+]?\\d+%?",c7="[-\\+]?\\d*\\.\\d+%?",Mi="(?:".concat(c7,")|(?:").concat(a7,")"),tm="[\\s|\\(]+(".concat(Mi,")[,|\\s]+(").concat(Mi,")[,|\\s]+(").concat(Mi,")\\s*\\)?"),nm="[\\s|\\(]+(".concat(Mi,")[,|\\s]+(").concat(Mi,")[,|\\s]+(").concat(Mi,")[,|\\s]+(").concat(Mi,")\\s*\\)?"),ws={CSS_UNIT:new RegExp(Mi),rgb:new RegExp("rgb"+tm),rgba:new RegExp("rgba"+nm),hsl:new RegExp("hsl"+tm),hsla:new RegExp("hsla"+nm),hsv:new RegExp("hsv"+tm),hsva:new RegExp("hsva"+nm),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 u7(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if(Ob[r])r=Ob[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ws.rgb.exec(r);return n?{r:n[1],g:n[2],b:n[3]}:(n=ws.rgba.exec(r),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ws.hsl.exec(r),n?{h:n[1],s:n[2],l:n[3]}:(n=ws.hsla.exec(r),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ws.hsv.exec(r),n?{h:n[1],s:n[2],v:n[3]}:(n=ws.hsva.exec(r),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ws.hex8.exec(r),n?{r:kr(n[1]),g:kr(n[2]),b:kr(n[3]),a:eS(n[4]),format:e?"name":"hex8"}:(n=ws.hex6.exec(r),n?{r:kr(n[1]),g:kr(n[2]),b:kr(n[3]),format:e?"name":"hex"}:(n=ws.hex4.exec(r),n?{r:kr(n[1]+n[1]),g:kr(n[2]+n[2]),b:kr(n[3]+n[3]),a:eS(n[4]+n[4]),format:e?"name":"hex8"}:(n=ws.hex3.exec(r),n?{r:kr(n[1]+n[1]),g:kr(n[2]+n[2]),b:kr(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function xo(r){return!!ws.CSS_UNIT.exec(String(r))}var d7=function(){function r(e,n){e===void 0&&(e=""),n===void 0&&(n={});var s;if(e instanceof r)return e;typeof e=="number"&&(e=i7(e)),this.originalInput=e;var o=l7(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=(s=n.format)!==null&&s!==void 0?s:o.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=o.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},r.prototype.getLuminance=function(){var e=this.toRgb(),n,s,o,i=e.r/255,l=e.g/255,a=e.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*s+.0722*o},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(e){return this.a=IO(e),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},r.prototype.toHsv=function(){var e=ZC(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},r.prototype.toHsvString=function(){var e=ZC(this.r,this.g,this.b),n=Math.round(e.h*360),s=Math.round(e.s*100),o=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(s,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(s,"%, ").concat(o,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var e=XC(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},r.prototype.toHslString=function(){var e=XC(this.r,this.g,this.b),n=Math.round(e.h*360),s=Math.round(e.s*100),o=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(s,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(s,"%, ").concat(o,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(e){return e===void 0&&(e=!1),QC(this.r,this.g,this.b,e)},r.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},r.prototype.toHex8=function(e){return e===void 0&&(e=!1),s7(this.r,this.g,this.b,this.a,e)},r.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},r.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),s=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(s,")"):"rgba(".concat(e,", ").concat(n,", ").concat(s,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Jn(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Jn(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,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+QC(this.r,this.g,this.b,!1),n=0,s=Object.entries(Ob);n=0,i=!n&&o&&(e.startsWith("hex")||e==="name");return i?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=$f(n.l),new r(n)},r.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 r(n)},r.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=$f(n.l),new r(n)},r.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},r.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},r.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=$f(n.s),new r(n)},r.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=$f(n.s),new r(n)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(e){var n=this.toHsl(),s=(n.h+e)%360;return n.h=s<0?360+s:s,new r(n)},r.prototype.mix=function(e,n){n===void 0&&(n=50);var s=this.toRgb(),o=new r(e).toRgb(),i=n/100,l={r:(o.r-s.r)*i+s.r,g:(o.g-s.g)*i+s.g,b:(o.b-s.b)*i+s.b,a:(o.a-s.a)*i+s.a};return new r(l)},r.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var s=this.toHsl(),o=360/n,i=[this];for(s.h=(s.h-(o*e>>1)+720)%360;--e;)s.h=(s.h+o)%360,i.push(new r(s));return i},r.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new r(e)},r.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),s=n.h,o=n.s,i=n.v,l=[],a=1/e;e--;)l.push(new r({h:s,s:o,v:i})),i=(i+a)%1;return l},r.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new r({h:(n+72)%360,s:e.s,l:e.l}),new r({h:(n+216)%360,s:e.s,l:e.l})]},r.prototype.onBackground=function(e){var n=this.toRgb(),s=new r(e).toRgb(),o=n.a+s.a*(1-n.a);return new r({r:(n.r*n.a+s.r*s.a*(1-n.a))/o,g:(n.g*n.a+s.g*s.a*(1-n.a))/o,b:(n.b*n.a+s.b*s.a*(1-n.a))/o,a:o})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(e){for(var n=this.toHsl(),s=n.h,o=[this],i=360/e,l=1;l{let s={};const o=r.color;if(o){const i=new d7(o),l=r.dark?i.tint(20).toString():ci(i,20);if(r.plain)s=n.cssVarBlock({"bg-color":r.dark?ci(i,90):i.tint(90).toString(),"text-color":o,"border-color":r.dark?ci(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),e.value&&(s[n.cssVarBlockName("disabled-bg-color")]=r.dark?ci(i,90):i.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=r.dark?ci(i,50):i.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=r.dark?ci(i,80):i.tint(80).toString());else{const a=r.dark?ci(i,30):i.tint(30).toString(),c=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.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=r.dark?ci(i,50):i.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=u,s[n.cssVarBlockName("disabled-text-color")]=r.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,s[n.cssVarBlockName("disabled-border-color")]=u}}}return s})}const h7=pe({name:"ElButton"}),p7=pe({...h7,props:_b,emits:ZU,setup(r,{expose:e,emit:n}){const s=r,o=f7(s),i=Ge("button"),{_ref:l,_size:a,_type:c,_disabled:u,_props:d,shouldAddSpace:f,handleClick:h}=YU(s,n),p=z(()=>[i.b(),i.m(c.value),i.m(a.value),i.is("disabled",u.value),i.is("loading",s.loading),i.is("plain",s.plain),i.is("round",s.round),i.is("circle",s.circle),i.is("text",s.text),i.is("link",s.link),i.is("has-bg",s.bg)]);return e({ref:l,size:a,type:c,disabled:u,shouldAddSpace:f}),(g,m)=>(N(),ye(Ft(g.tag),Dr({ref_key:"_ref",ref:l},S(d),{class:S(p),style:S(o),onClick:S(h)}),{default:O(()=>[g.loading?(N(),X(De,{key:0},[g.$slots.loading?_e(g.$slots,"loading",{key:0}):(N(),ye(S(dt),{key:1,class:Y(S(i).is("loading"))},{default:O(()=>[(N(),ye(Ft(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(N(),ye(S(dt),{key:1},{default:O(()=>[g.icon?(N(),ye(Ft(g.icon),{key:0})):_e(g.$slots,"icon",{key:1})]),_:3})):ve("v-if",!0),g.$slots.default?(N(),X("span",{key:2,class:Y({[S(i).em("text","expand")]:S(f)})},[_e(g.$slots,"default")],2)):ve("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var g7=Xe(p7,[["__file","button.vue"]]);const m7={size:_b.size,type:_b.type},b7=pe({name:"ElButtonGroup"}),v7=pe({...b7,props:m7,setup(r){const e=r;Wt(NO,St({size:Es(e,"size"),type:Es(e,"type")}));const n=Ge("button");return(s,o)=>(N(),X("div",{class:Y(`${S(n).b("group")}`)},[_e(s.$slots,"default")],2))}});var LO=Xe(v7,[["__file","button-group.vue"]]);const Pn=Rt(g7,{ButtonGroup:LO}),RO=Ar(LO),fi=new Map;let tS;Ct&&(document.addEventListener("mousedown",r=>tS=r),document.addEventListener("mouseup",r=>{for(const e of fi.values())for(const{documentHandler:n}of e)n(r,tS)}));function nS(r,e){let n=[];return Array.isArray(e.arg)?n=e.arg:ls(e.arg)&&n.push(e.arg),function(s,o){const i=e.instance.popperRef,l=s.target,a=o==null?void 0:o.target,c=!e||!e.instance,u=!l||!a,d=r.contains(l)||r.contains(a),f=r===l,h=n.length&&n.some(g=>g==null?void 0:g.contains(l))||n.length&&n.includes(a),p=i&&(i.contains(l)||i.contains(a));c||u||d||f||h||p||e.value(s,o)}}const $O={beforeMount(r,e){fi.has(r)||fi.set(r,[]),fi.get(r).push({documentHandler:nS(r,e),bindingFn:e.value})},updated(r,e){fi.has(r)||fi.set(r,[]);const n=fi.get(r),s=n.findIndex(i=>i.bindingFn===e.oldValue),o={documentHandler:nS(r,e),bindingFn:e.value};s>=0?n.splice(s,1,o):n.push(o)},unmounted(r){fi.delete(r)}},y7=100,w7=600,rS={beforeMount(r,e){const n=e.value,{interval:s=y7,delay:o=w7}=qe(n)?{}:n;let i,l;const a=()=>qe(n)?n():n.handler(),c=()=>{l&&(clearTimeout(l),l=void 0),i&&(clearInterval(i),i=void 0)};r.addEventListener("mousedown",u=>{u.button===0&&(c(),a(),document.addEventListener("mouseup",()=>c(),{once:!0}),l=setTimeout(()=>{i=setInterval(()=>{a()},s)},o))})}},Ab="_trap-focus-children",Rl=[],sS=r=>{if(Rl.length===0)return;const e=Rl[Rl.length-1][Ab];if(e.length>0&&r.code===bn.tab){if(e.length===1){r.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const n=r.shiftKey,s=r.target===e[0],o=r.target===e[e.length-1];s&&n&&(r.preventDefault(),e[e.length-1].focus()),o&&!n&&(r.preventDefault(),e[0].focus())}},C7={beforeMount(r){r[Ab]=Sw(r),Rl.push(r),Rl.length<=1&&document.addEventListener("keydown",sS)},updated(r){tt(()=>{r[Ab]=Sw(r)})},unmounted(){Rl.shift(),Rl.length===0&&document.removeEventListener("keydown",sS)}};var oS=!1,Al,Mb,kb,dh,fh,DO,hh,Pb,Nb,Ib,VO,Lb,Rb,FO,BO;function vr(){if(!oS){oS=!0;var r=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(r),n=/(Mac OS X)|(Windows)|(Linux)/.exec(r);if(Lb=/\b(iPhone|iP[ao]d)/.exec(r),Rb=/\b(iP[ao]d)/.exec(r),Ib=/Android/i.exec(r),FO=/FBAN\/\w+;/i.exec(r),BO=/Mobile/i.exec(r),VO=!!/Win64/.exec(r),e){Al=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Al&&document&&document.documentMode&&(Al=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(r);DO=s?parseFloat(s[1])+4:Al,Mb=e[2]?parseFloat(e[2]):NaN,kb=e[3]?parseFloat(e[3]):NaN,dh=e[4]?parseFloat(e[4]):NaN,dh?(e=/(?:Chrome\/(\d+\.\d+))/.exec(r),fh=e&&e[1]?parseFloat(e[1]):NaN):fh=NaN}else Al=Mb=kb=fh=dh=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(r);hh=o?parseFloat(o[1].replace("_",".")):!0}else hh=!1;Pb=!!n[2],Nb=!!n[3]}else hh=Pb=Nb=!1}}var $b={ie:function(){return vr()||Al},ieCompatibilityMode:function(){return vr()||DO>Al},ie64:function(){return $b.ie()&&VO},firefox:function(){return vr()||Mb},opera:function(){return vr()||kb},webkit:function(){return vr()||dh},safari:function(){return $b.webkit()},chrome:function(){return vr()||fh},windows:function(){return vr()||Pb},osx:function(){return vr()||hh},linux:function(){return vr()||Nb},iphone:function(){return vr()||Lb},mobile:function(){return vr()||Lb||Rb||Ib||BO},nativeApp:function(){return vr()||FO},android:function(){return vr()||Ib},ipad:function(){return vr()||Rb}},S7=$b,Vf=!!(typeof window<"u"&&window.document&&window.document.createElement),x7={canUseDOM:Vf,canUseWorkers:typeof Worker<"u",canUseEventListeners:Vf&&!!(window.addEventListener||window.attachEvent),canUseViewport:Vf&&!!window.screen,isInWorker:!Vf},zO=x7,jO;zO.canUseDOM&&(jO=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function E7(r,e){if(!zO.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+r,s=n in document;if(!s){var o=document.createElement("div");o.setAttribute(n,"return;"),s=typeof o[n]=="function"}return!s&&jO&&r==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var T7=E7,iS=10,lS=40,aS=800;function HO(r){var e=0,n=0,s=0,o=0;return"detail"in r&&(n=r.detail),"wheelDelta"in r&&(n=-r.wheelDelta/120),"wheelDeltaY"in r&&(n=-r.wheelDeltaY/120),"wheelDeltaX"in r&&(e=-r.wheelDeltaX/120),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(e=n,n=0),s=e*iS,o=n*iS,"deltaY"in r&&(o=r.deltaY),"deltaX"in r&&(s=r.deltaX),(s||o)&&r.deltaMode&&(r.deltaMode==1?(s*=lS,o*=lS):(s*=aS,o*=aS)),s&&!e&&(e=s<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:e,spinY:n,pixelX:s,pixelY:o}}HO.getEventType=function(){return S7.firefox()?"DOMMouseScroll":T7("wheel")?"wheel":"mousewheel"};var _7=HO;/** -* 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 O7=function(r,e){if(r&&r.addEventListener){const n=function(s){const o=_7(s);e&&Reflect.apply(e,this,[s,o])};r.addEventListener("wheel",n,{passive:!0})}},A7={beforeMount(r,e){O7(r,e.value)}},UO={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:Jo,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Xo(["ariaControls"])},WO={[jt]:r=>ft(r)||Tt(r)||is(r),change:r=>ft(r)||Tt(r)||is(r)},Qc=Symbol("checkboxGroupContextKey"),M7=({model:r,isChecked:e})=>{const n=Ve(Qc,void 0),s=z(()=>{var i,l;const a=(i=n==null?void 0:n.max)==null?void 0:i.value,c=(l=n==null?void 0:n.min)==null?void 0:l.value;return!wr(a)&&r.value.length>=a&&!e.value||!wr(c)&&r.value.length<=c&&e.value});return{isDisabled:Zc(z(()=>(n==null?void 0:n.disabled.value)||s.value)),isLimitDisabled:s}},k7=(r,{model:e,isLimitExceeded:n,hasOwnLabel:s,isDisabled:o,isLabeledByFormItem:i})=>{const l=Ve(Qc,void 0),{formItem:a}=il(),{emit:c}=bt();function u(g){var m,v,b,C;return[!0,r.trueValue,r.trueLabel].includes(g)?(v=(m=r.trueValue)!=null?m:r.trueLabel)!=null?v:!0:(C=(b=r.falseValue)!=null?b:r.falseLabel)!=null?C:!1}function d(g,m){c("change",u(g),m)}function f(g){if(n.value)return;const m=g.target;c("change",u(m.checked),g)}async function h(g){n.value||!s.value&&!o.value&&i.value&&(g.composedPath().some(b=>b.tagName==="LABEL")||(e.value=u([!1,r.falseValue,r.falseLabel].includes(e.value)),await tt(),d(e.value,g)))}const p=z(()=>(l==null?void 0:l.validateEvent)||r.validateEvent);return $e(()=>r.modelValue,()=>{p.value&&(a==null||a.validate("change").catch(g=>void 0))}),{handleChange:f,onClickRoot:h}},P7=r=>{const e=j(!1),{emit:n}=bt(),s=Ve(Qc,void 0),o=z(()=>wr(s)===!1),i=j(!1),l=z({get(){var a,c;return o.value?(a=s==null?void 0:s.modelValue)==null?void 0:a.value:(c=r.modelValue)!=null?c:e.value},set(a){var c,u;o.value&&Re(a)?(i.value=((c=s==null?void 0:s.max)==null?void 0:c.value)!==void 0&&a.length>(s==null?void 0:s.max.value)&&a.length>l.value.length,i.value===!1&&((u=s==null?void 0:s.changeEvent)==null||u.call(s,a))):(n(jt,a),e.value=a)}});return{model:l,isGroup:o,isLimitExceeded:i}},N7=(r,e,{model:n})=>{const s=Ve(Qc,void 0),o=j(!1),i=z(()=>fd(r.value)?r.label:r.value),l=z(()=>{const d=n.value;return is(d)?d:Re(d)?pt(i.value)?d.map(Mt).some(f=>Sr(f,i.value)):d.map(Mt).includes(i.value):d!=null?d===r.trueValue||d===r.trueLabel:!!d}),a=fs(z(()=>{var d;return(d=s==null?void 0:s.size)==null?void 0:d.value}),{prop:!0}),c=fs(z(()=>{var d;return(d=s==null?void 0:s.size)==null?void 0:d.value})),u=z(()=>!!e.default||!fd(i.value));return{checkboxButtonSize:a,isChecked:l,isFocused:o,checkboxSize:c,hasOwnLabel:u,actualValue:i}},qO=(r,e)=>{const{formItem:n}=il(),{model:s,isGroup:o,isLimitExceeded:i}=P7(r),{isFocused:l,isChecked:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,actualValue:f}=N7(r,e,{model:s}),{isDisabled:h}=M7({model:s,isChecked:a}),{inputId:p,isLabeledByFormItem:g}=tf(r,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:m,onClickRoot:v}=k7(r,{model:s,isLimitExceeded:i,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:g});return(()=>{function C(){var y,w;Re(s.value)&&!s.value.includes(f.value)?s.value.push(f.value):s.value=(w=(y=r.trueValue)!=null?y:r.trueLabel)!=null?w:!0}r.checked&&C()})(),Cr({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!r.controls)),Cr({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&&fd(r.value))),Cr({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!r.trueLabel)),Cr({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!r.falseLabel)),{inputId:p,isLabeledByFormItem:g,isChecked:a,isDisabled:h,isFocused:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:s,actualValue:f,handleChange:m,onClickRoot:v}},I7=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],L7=["id","indeterminate","disabled","value","name","tabindex"],R7=pe({name:"ElCheckbox"}),$7=pe({...R7,props:UO,emits:WO,setup(r){const e=r,n=Bs(),{inputId:s,isLabeledByFormItem:o,isChecked:i,isDisabled:l,isFocused:a,checkboxSize:c,hasOwnLabel:u,model:d,actualValue:f,handleChange:h,onClickRoot:p}=qO(e,n),g=Ge("checkbox"),m=z(()=>[g.b(),g.m(c.value),g.is("disabled",l.value),g.is("bordered",e.border),g.is("checked",i.value)]),v=z(()=>[g.e("input"),g.is("disabled",l.value),g.is("checked",i.value),g.is("indeterminate",e.indeterminate),g.is("focus",a.value)]);return(b,C)=>(N(),ye(Ft(!S(u)&&S(o)?"span":"label"),{class:Y(S(m)),"aria-controls":b.indeterminate?b.controls||b.ariaControls:null,onClick:S(p)},{default:O(()=>{var y,w;return[H("span",{class:Y(S(v))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?Ue((N(),X("input",{key:0,id:S(s),"onUpdate:modelValue":C[0]||(C[0]=x=>qt(d)?d.value=x:null),class:Y(S(g).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:S(l),"true-value":(y=b.trueValue)!=null?y:b.trueLabel,"false-value":(w=b.falseValue)!=null?w:b.falseLabel,onChange:C[1]||(C[1]=(...x)=>S(h)&&S(h)(...x)),onFocus:C[2]||(C[2]=x=>a.value=!0),onBlur:C[3]||(C[3]=x=>a.value=!1),onClick:C[4]||(C[4]=It(()=>{},["stop"]))},null,42,I7)),[[zi,S(d)]]):Ue((N(),X("input",{key:1,id:S(s),"onUpdate:modelValue":C[5]||(C[5]=x=>qt(d)?d.value=x:null),class:Y(S(g).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:S(l),value:S(f),name:b.name,tabindex:b.tabindex,onChange:C[6]||(C[6]=(...x)=>S(h)&&S(h)(...x)),onFocus:C[7]||(C[7]=x=>a.value=!0),onBlur:C[8]||(C[8]=x=>a.value=!1),onClick:C[9]||(C[9]=It(()=>{},["stop"]))},null,42,L7)),[[zi,S(d)]]),H("span",{class:Y(S(g).e("inner"))},null,2)],2),S(u)?(N(),X("span",{key:0,class:Y(S(g).e("label"))},[_e(b.$slots,"default"),b.$slots.default?ve("v-if",!0):(N(),X(De,{key:0},[le(oe(b.label),1)],64))],2)):ve("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var D7=Xe($7,[["__file","checkbox.vue"]]);const V7=["name","tabindex","disabled","true-value","false-value"],F7=["name","tabindex","disabled","value"],B7=pe({name:"ElCheckboxButton"}),z7=pe({...B7,props:UO,emits:WO,setup(r){const e=r,n=Bs(),{isFocused:s,isChecked:o,isDisabled:i,checkboxButtonSize:l,model:a,actualValue:c,handleChange:u}=qO(e,n),d=Ve(Qc,void 0),f=Ge("checkbox"),h=z(()=>{var g,m,v,b;const C=(m=(g=d==null?void 0:d.fill)==null?void 0:g.value)!=null?m:"";return{backgroundColor:C,borderColor:C,color:(b=(v=d==null?void 0:d.textColor)==null?void 0:v.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),p=z(()=>[f.b("button"),f.bm("button",l.value),f.is("disabled",i.value),f.is("checked",o.value),f.is("focus",s.value)]);return(g,m)=>{var v,b;return N(),X("label",{class:Y(S(p))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?Ue((N(),X("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=C=>qt(a)?a.value=C:null),class:Y(S(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:S(i),"true-value":(v=g.trueValue)!=null?v:g.trueLabel,"false-value":(b=g.falseValue)!=null?b:g.falseLabel,onChange:m[1]||(m[1]=(...C)=>S(u)&&S(u)(...C)),onFocus:m[2]||(m[2]=C=>s.value=!0),onBlur:m[3]||(m[3]=C=>s.value=!1),onClick:m[4]||(m[4]=It(()=>{},["stop"]))},null,42,V7)),[[zi,S(a)]]):Ue((N(),X("input",{key:1,"onUpdate:modelValue":m[5]||(m[5]=C=>qt(a)?a.value=C:null),class:Y(S(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:S(i),value:S(c),onChange:m[6]||(m[6]=(...C)=>S(u)&&S(u)(...C)),onFocus:m[7]||(m[7]=C=>s.value=!0),onBlur:m[8]||(m[8]=C=>s.value=!1),onClick:m[9]||(m[9]=It(()=>{},["stop"]))},null,42,F7)),[[zi,S(a)]]),g.$slots.default||g.label?(N(),X("span",{key:2,class:Y(S(f).be("button","inner")),style:vt(S(o)?S(h):void 0)},[_e(g.$slots,"default",{},()=>[le(oe(g.label),1)])],6)):ve("v-if",!0)],2)}}});var GO=Xe(z7,[["__file","checkbox-button.vue"]]);const j7=et({modelValue:{type:Be(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Jo,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Xo(["ariaLabel"])}),H7={[jt]:r=>Re(r),change:r=>Re(r)},U7=pe({name:"ElCheckboxGroup"}),W7=pe({...U7,props:j7,emits:H7,setup(r,{emit:e}){const n=r,s=Ge("checkbox"),{formItem:o}=il(),{inputId:i,isLabeledByFormItem:l}=tf(n,{formItemContext:o}),a=async u=>{e(jt,u),await tt(),e("change",u)},c=z({get(){return n.modelValue},set(u){a(u)}});return Wt(Qc,{...R_(Uo(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:a}),Cr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!n.label)),$e(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,d)=>{var f;return N(),ye(Ft(u.tag),{id:S(i),class:Y(S(s).b("group")),role:"group","aria-label":S(l)?void 0:u.label||u.ariaLabel||"checkbox-group","aria-labelledby":S(l)?(f=S(o))==null?void 0:f.labelId:void 0},{default:O(()=>[_e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var KO=Xe(W7,[["__file","checkbox-group.vue"]]);const ra=Rt(D7,{CheckboxButton:GO,CheckboxGroup:KO});Ar(GO);Ar(KO);const YO=et({modelValue:{type:[String,Number,Boolean],default:void 0},size:Jo,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),q7=et({...YO,border:Boolean}),JO={[jt]:r=>ft(r)||Tt(r)||is(r),[Xd]:r=>ft(r)||Tt(r)||is(r)},XO=Symbol("radioGroupKey"),ZO=(r,e)=>{const n=j(),s=Ve(XO,void 0),o=z(()=>!!s),i=z(()=>fd(r.value)?r.label:r.value),l=z({get(){return o.value?s.modelValue:r.modelValue},set(f){o.value?s.changeEvent(f):e&&e(jt,f),n.value.checked=r.modelValue===i.value}}),a=fs(z(()=>s==null?void 0:s.size)),c=Zc(z(()=>s==null?void 0:s.disabled)),u=j(!1),d=z(()=>c.value||o.value&&l.value!==i.value?-1:0);return Cr({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&&fd(r.value))),{radioRef:n,isGroup:o,radioGroup:s,focus:u,size:a,disabled:c,tabIndex:d,modelValue:l,actualValue:i}},G7=["value","name","disabled"],K7=pe({name:"ElRadio"}),Y7=pe({...K7,props:q7,emits:JO,setup(r,{emit:e}){const n=r,s=Ge("radio"),{radioRef:o,radioGroup:i,focus:l,size:a,disabled:c,modelValue:u,actualValue:d}=ZO(n,e);function f(){tt(()=>e("change",u.value))}return(h,p)=>{var g;return N(),X("label",{class:Y([S(s).b(),S(s).is("disabled",S(c)),S(s).is("focus",S(l)),S(s).is("bordered",h.border),S(s).is("checked",S(u)===S(d)),S(s).m(S(a))])},[H("span",{class:Y([S(s).e("input"),S(s).is("disabled",S(c)),S(s).is("checked",S(u)===S(d))])},[Ue(H("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":p[0]||(p[0]=m=>qt(u)?u.value=m:null),class:Y(S(s).e("original")),value:S(d),name:h.name||((g=S(i))==null?void 0:g.name),disabled:S(c),type:"radio",onFocus:p[1]||(p[1]=m=>l.value=!0),onBlur:p[2]||(p[2]=m=>l.value=!1),onChange:f,onClick:p[3]||(p[3]=It(()=>{},["stop"]))},null,42,G7),[[$T,S(u)]]),H("span",{class:Y(S(s).e("inner"))},null,2)],2),H("span",{class:Y(S(s).e("label")),onKeydown:p[4]||(p[4]=It(()=>{},["stop"]))},[_e(h.$slots,"default",{},()=>[le(oe(h.label),1)])],34)],2)}}});var J7=Xe(Y7,[["__file","radio.vue"]]);const X7=et({...YO}),Z7=["value","name","disabled"],Q7=pe({name:"ElRadioButton"}),eW=pe({...Q7,props:X7,setup(r){const e=r,n=Ge("radio"),{radioRef:s,focus:o,size:i,disabled:l,modelValue:a,radioGroup:c,actualValue:u}=ZO(e),d=z(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(f,h)=>{var p;return N(),X("label",{class:Y([S(n).b("button"),S(n).is("active",S(a)===S(u)),S(n).is("disabled",S(l)),S(n).is("focus",S(o)),S(n).bm("button",S(i))])},[Ue(H("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":h[0]||(h[0]=g=>qt(a)?a.value=g:null),class:Y(S(n).be("button","original-radio")),value:S(u),type:"radio",name:f.name||((p=S(c))==null?void 0:p.name),disabled:S(l),onFocus:h[1]||(h[1]=g=>o.value=!0),onBlur:h[2]||(h[2]=g=>o.value=!1),onClick:h[3]||(h[3]=It(()=>{},["stop"]))},null,42,Z7),[[$T,S(a)]]),H("span",{class:Y(S(n).be("button","inner")),style:vt(S(a)===S(u)?S(d):{}),onKeydown:h[4]||(h[4]=It(()=>{},["stop"]))},[_e(f.$slots,"default",{},()=>[le(oe(f.label),1)])],38)],2)}}});var QO=Xe(eW,[["__file","radio-button.vue"]]);const tW=et({id:{type:String,default:void 0},size:Jo,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},...Xo(["ariaLabel"])}),nW=JO,rW=["id","aria-label","aria-labelledby"],sW=pe({name:"ElRadioGroup"}),oW=pe({...sW,props:tW,emits:nW,setup(r,{emit:e}){const n=r,s=Ge("radio"),o=ao(),i=j(),{formItem:l}=il(),{inputId:a,isLabeledByFormItem:c}=tf(n,{formItemContext:l}),u=f=>{e(jt,f),tt(()=>e("change",f))};nt(()=>{const f=i.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(p=>p.checked)&&h&&(h.tabIndex=0)});const d=z(()=>n.name||o.value);return Wt(XO,St({...Uo(n),changeEvent:u,name:d})),$e(()=>n.modelValue,()=>{n.validateEvent&&(l==null||l.validate("change").catch(f=>void 0))}),Cr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},z(()=>!!n.label)),(f,h)=>(N(),X("div",{id:S(a),ref_key:"radioGroupRef",ref:i,class:Y(S(s).b("group")),role:"radiogroup","aria-label":S(c)?void 0:f.label||f.ariaLabel||"radio-group","aria-labelledby":S(c)?S(l).labelId:void 0},[_e(f.$slots,"default")],10,rW))}});var eA=Xe(oW,[["__file","radio-group.vue"]]);const tA=Rt(J7,{RadioButton:QO,RadioGroup:eA}),$y=Ar(eA),iW=Ar(QO),nA=et({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:ga},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),lW={close:r=>r instanceof MouseEvent,click:r=>r instanceof MouseEvent},aW=pe({name:"ElTag"}),cW=pe({...aW,props:nA,emits:lW,setup(r,{emit:e}){const n=r,s=fs(),o=Ge("tag"),i=z(()=>{const{type:c,hit:u,effect:d,closable:f,round:h}=n;return[o.b(),o.is("closable",f),o.m(c||"primary"),o.m(s.value),o.m(d),o.is("hit",u),o.is("round",h)]}),l=c=>{e("close",c)},a=c=>{e("click",c)};return(c,u)=>c.disableTransitions?(N(),X("span",{key:0,class:Y(S(i)),style:vt({backgroundColor:c.color}),onClick:a},[H("span",{class:Y(S(o).e("content"))},[_e(c.$slots,"default")],2),c.closable?(N(),ye(S(dt),{key:0,class:Y(S(o).e("close")),onClick:It(l,["stop"])},{default:O(()=>[T(S(ta))]),_:1},8,["class","onClick"])):ve("v-if",!0)],6)):(N(),ye(Or,{key:1,name:`${S(o).namespace.value}-zoom-in-center`,appear:""},{default:O(()=>[H("span",{class:Y(S(i)),style:vt({backgroundColor:c.color}),onClick:a},[H("span",{class:Y(S(o).e("content"))},[_e(c.$slots,"default")],2),c.closable?(N(),ye(S(dt),{key:0,class:Y(S(o).e("close")),onClick:It(l,["stop"])},{default:O(()=>[T(S(ta))]),_:1},8,["class","onClick"])):ve("v-if",!0)],6)]),_:3},8,["name"]))}});var uW=Xe(cW,[["__file","tag.vue"]]);const rA=Rt(uW),sA=Symbol("rowContextKey"),dW=["start","center","end","space-around","space-between","space-evenly"],fW=["top","middle","bottom"],hW=et({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:dW,default:"start"},align:{type:String,values:fW}}),pW=pe({name:"ElRow"}),gW=pe({...pW,props:hW,setup(r){const e=r,n=Ge("row"),s=z(()=>e.gutter);Wt(sA,{gutter:s});const o=z(()=>{const l={};return e.gutter&&(l.marginRight=l.marginLeft=`-${e.gutter/2}px`),l}),i=z(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(l,a)=>(N(),ye(Ft(l.tag),{class:Y(S(i)),style:vt(S(o))},{default:O(()=>[_e(l.$slots,"default")]),_:3},8,["class","style"]))}});var mW=Xe(gW,[["__file","row.vue"]]);const ng=Rt(mW),bW=et({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:Be([Number,Object]),default:()=>Ss({})},sm:{type:Be([Number,Object]),default:()=>Ss({})},md:{type:Be([Number,Object]),default:()=>Ss({})},lg:{type:Be([Number,Object]),default:()=>Ss({})},xl:{type:Be([Number,Object]),default:()=>Ss({})}}),vW=pe({name:"ElCol"}),yW=pe({...vW,props:bW,setup(r){const e=r,{gutter:n}=Ve(sA,{gutter:z(()=>0)}),s=Ge("col"),o=z(()=>{const l={};return n.value&&(l.paddingLeft=l.paddingRight=`${n.value/2}px`),l}),i=z(()=>{const l=[];return["span","offset","pull","push"].forEach(u=>{const d=e[u];Tt(d)&&(u==="span"?l.push(s.b(`${e[u]}`)):d>0&&l.push(s.b(`${u}-${e[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{Tt(e[u])?l.push(s.b(`${u}-${e[u]}`)):pt(e[u])&&Object.entries(e[u]).forEach(([d,f])=>{l.push(d!=="span"?s.b(`${u}-${d}-${f}`):s.b(`${u}-${f}`))})}),n.value&&l.push(s.is("guttered")),[s.b(),l]});return(l,a)=>(N(),ye(Ft(l.tag),{class:Y(S(i)),style:vt(S(o))},{default:O(()=>[_e(l.$slots,"default")]),_:3},8,["class","style"]))}});var wW=Xe(yW,[["__file","col.vue"]]);const rg=Rt(wW),CW=pe({name:"ElContainer"}),SW=pe({...CW,props:{direction:{type:String}},setup(r){const e=r,n=Bs(),s=Ge("container"),o=z(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const a=l.type.name;return a==="ElHeader"||a==="ElFooter"}):!1);return(i,l)=>(N(),X("section",{class:Y([S(s).b(),S(s).is("vertical",S(o))])},[_e(i.$slots,"default")],2))}});var xW=Xe(SW,[["__file","container.vue"]]);const EW=pe({name:"ElAside"}),TW=pe({...EW,props:{width:{type:String,default:null}},setup(r){const e=r,n=Ge("aside"),s=z(()=>e.width?n.cssVarBlock({width:e.width}):{});return(o,i)=>(N(),X("aside",{class:Y(S(n).b()),style:vt(S(s))},[_e(o.$slots,"default")],6))}});var oA=Xe(TW,[["__file","aside.vue"]]);const _W=pe({name:"ElFooter"}),OW=pe({..._W,props:{height:{type:String,default:null}},setup(r){const e=r,n=Ge("footer"),s=z(()=>e.height?n.cssVarBlock({height:e.height}):{});return(o,i)=>(N(),X("footer",{class:Y(S(n).b()),style:vt(S(s))},[_e(o.$slots,"default")],6))}});var iA=Xe(OW,[["__file","footer.vue"]]);const AW=pe({name:"ElHeader"}),MW=pe({...AW,props:{height:{type:String,default:null}},setup(r){const e=r,n=Ge("header"),s=z(()=>e.height?n.cssVarBlock({height:e.height}):{});return(o,i)=>(N(),X("header",{class:Y(S(n).b()),style:vt(S(s))},[_e(o.$slots,"default")],6))}});var lA=Xe(MW,[["__file","header.vue"]]);const kW=pe({name:"ElMain"}),PW=pe({...kW,setup(r){const e=Ge("main");return(n,s)=>(N(),X("main",{class:Y(S(e).b())},[_e(n.$slots,"default")],2))}});var aA=Xe(PW,[["__file","main.vue"]]);const NW=Rt(xW,{Aside:oA,Footer:iA,Header:lA,Main:aA}),IW=Ar(oA);Ar(iA);const LW=Ar(lA),RW=Ar(aA),$W=et({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Be([String,Array,Object])},zIndex:{type:Be([String,Number])}}),DW={click:r=>r instanceof MouseEvent},VW="overlay";var FW=pe({name:"ElOverlay",props:$W,emits:DW,setup(r,{slots:e,emit:n}){const s=Ge(VW),o=c=>{n("click",c)},{onClick:i,onMousedown:l,onMouseup:a}=ky(r.customMaskEvent?void 0:o);return()=>r.mask?T("div",{class:[s.b(),r.overlayClass],style:{zIndex:r.zIndex},onClick:i,onMousedown:l,onMouseup:a},[_e(e,"default")],qr.STYLE|qr.CLASS|qr.PROPS,["onClick","onMouseup","onMousedown"]):Ye("div",{class:r.overlayClass,style:{zIndex:r.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[_e(e,"default")])}});const Dy=FW,cA=Symbol("dialogInjectionKey"),uA=et({center:Boolean,alignCenter:Boolean,closeIcon:{type:cs},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),BW={close:()=>!0},zW=["aria-level"],jW=["aria-label"],HW=["id"],UW=pe({name:"ElDialogContent"}),WW=pe({...UW,props:uA,emits:BW,setup(r){const e=r,{t:n}=go(),{Close:s}=W_,{dialogRef:o,headerRef:i,bodyId:l,ns:a,style:c}=Ve(cA),{focusTrapRef:u}=Ve(MO),d=z(()=>[a.b(),a.is("fullscreen",e.fullscreen),a.is("draggable",e.draggable),a.is("align-center",e.alignCenter),{[a.m("center")]:e.center}]),f=Lz(u,o),h=z(()=>e.draggable),p=z(()=>e.overflow);return J_(o,i,h,p),(g,m)=>(N(),X("div",{ref:S(f),class:Y(S(d)),style:vt(S(c)),tabindex:"-1"},[H("header",{ref_key:"headerRef",ref:i,class:Y([S(a).e("header"),{"show-close":g.showClose}])},[_e(g.$slots,"header",{},()=>[H("span",{role:"heading","aria-level":g.ariaLevel,class:Y(S(a).e("title"))},oe(g.title),11,zW)]),g.showClose?(N(),X("button",{key:0,"aria-label":S(n)("el.dialog.close"),class:Y(S(a).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=v=>g.$emit("close"))},[T(S(dt),{class:Y(S(a).e("close"))},{default:O(()=>[(N(),ye(Ft(g.closeIcon||S(s))))]),_:1},8,["class"])],10,jW)):ve("v-if",!0)],2),H("div",{id:S(l),class:Y(S(a).e("body"))},[_e(g.$slots,"default")],10,HW),g.$slots.footer?(N(),X("footer",{key:0,class:Y(S(a).e("footer"))},[_e(g.$slots,"footer")],2)):ve("v-if",!0)],6))}});var qW=Xe(WW,[["__file","dialog-content.vue"]]);const dA=et({...uA,appendToBody:Boolean,appendTo:{type:Be(String),default:"body"},beforeClose:{type:Be(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"}}),fA={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[jt]:r=>is(r),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},hA=(r,e)=>{var n;const o=bt().emit,{nextZIndex:i}=Xp();let l="";const a=ao(),c=ao(),u=j(!1),d=j(!1),f=j(!1),h=j((n=r.zIndex)!=null?n:i());let p,g;const m=ef("namespace",Lu),v=z(()=>{const I={},R=`--${m.value}-dialog`;return r.fullscreen||(r.top&&(I[`${R}-margin-top`]=r.top),r.width&&(I[`${R}-width`]=as(r.width))),I}),b=z(()=>r.alignCenter?{display:"flex"}:{});function C(){o("opened")}function y(){o("closed"),o(jt,!1),r.destroyOnClose&&(f.value=!1)}function w(){o("close")}function x(){g==null||g(),p==null||p(),r.openDelay&&r.openDelay>0?{stop:p}=kh(()=>A(),r.openDelay):A()}function E(){p==null||p(),g==null||g(),r.closeDelay&&r.closeDelay>0?{stop:g}=kh(()=>k(),r.closeDelay):k()}function _(){function I(R){R||(d.value=!0,u.value=!1)}r.beforeClose?r.beforeClose(I):E()}function M(){r.closeOnClickModal&&_()}function A(){Ct&&(u.value=!0)}function k(){u.value=!1}function P(){o("openAutoFocus")}function $(){o("closeAutoFocus")}function B(I){var R;((R=I.detail)==null?void 0:R.focusReason)==="pointer"&&I.preventDefault()}r.lockScroll&&Q_(u);function W(){r.closeOnPressEscape&&_()}return $e(()=>r.modelValue,I=>{I?(d.value=!1,x(),f.value=!0,h.value=I_(r.zIndex)?i():h.value++,tt(()=>{o("open"),e.value&&(e.value.scrollTop=0)})):u.value&&E()}),$e(()=>r.fullscreen,I=>{e.value&&(I?(l=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=l)}),nt(()=>{r.modelValue&&(u.value=!0,f.value=!0,x())}),{afterEnter:C,afterLeave:y,beforeLeave:w,handleClose:_,onModalClick:M,close:E,doClose:k,onOpenAutoFocus:P,onCloseAutoFocus:$,onCloseRequested:W,onFocusoutPrevented:B,titleId:a,bodyId:c,closed:d,style:v,overlayDialogStyle:b,rendered:f,visible:u,zIndex:h}},GW=["aria-label","aria-labelledby","aria-describedby"],KW=pe({name:"ElDialog",inheritAttrs:!1}),YW=pe({...KW,props:dA,emits:fA,setup(r,{expose:e}){const n=r,s=Bs();Cr({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(()=>!!s.title));const o=Ge("dialog"),i=j(),l=j(),a=j(),{visible:c,titleId:u,bodyId:d,style:f,overlayDialogStyle:h,rendered:p,zIndex:g,afterEnter:m,afterLeave:v,beforeLeave:b,handleClose:C,onModalClick:y,onOpenAutoFocus:w,onCloseAutoFocus:x,onCloseRequested:E,onFocusoutPrevented:_}=hA(n,i);Wt(cA,{dialogRef:i,headerRef:l,bodyId:d,ns:o,rendered:p,style:f});const M=ky(y),A=z(()=>n.draggable&&!n.fullscreen);return e({visible:c,dialogContentRef:a}),(k,P)=>(N(),ye(Uc,{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},[T(Or,{name:"dialog-fade",onAfterEnter:S(m),onAfterLeave:S(v),onBeforeLeave:S(b),persisted:""},{default:O(()=>[Ue(T(S(Dy),{"custom-mask-event":"",mask:k.modal,"overlay-class":k.modalClass,"z-index":S(g)},{default:O(()=>[H("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:S(u),"aria-describedby":S(d),class:Y(`${S(o).namespace.value}-overlay-dialog`),style:vt(S(h)),onClick:P[0]||(P[0]=(...$)=>S(M).onClick&&S(M).onClick(...$)),onMousedown:P[1]||(P[1]=(...$)=>S(M).onMousedown&&S(M).onMousedown(...$)),onMouseup:P[2]||(P[2]=(...$)=>S(M).onMouseup&&S(M).onMouseup(...$))},[T(S(tg),{loop:"",trapped:S(c),"focus-start-el":"container",onFocusAfterTrapped:S(w),onFocusAfterReleased:S(x),onFocusoutPrevented:S(_),onReleaseRequested:S(E)},{default:O(()=>[S(p)?(N(),ye(qW,Dr({key:0,ref_key:"dialogContentRef",ref:a},k.$attrs,{center:k.center,"align-center":k.alignCenter,"close-icon":k.closeIcon,draggable:S(A),overflow:k.overflow,fullscreen:k.fullscreen,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:S(C)}),yI({header:O(()=>[k.$slots.title?_e(k.$slots,"title",{key:1}):_e(k.$slots,"header",{key:0,close:S(C),titleId:S(u),titleClass:S(o).e("title")})]),default:O(()=>[_e(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:O(()=>[_e(k.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):ve("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,GW)]),_:3},8,["mask","overlay-class","z-index"]),[[st,S(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var JW=Xe(YW,[["__file","dialog.vue"]]);const ll=Rt(JW),XW=et({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Be(String),default:"solid"}}),ZW=pe({name:"ElDivider"}),QW=pe({...ZW,props:XW,setup(r){const e=r,n=Ge("divider"),s=z(()=>n.cssVar({"border-style":e.borderStyle}));return(o,i)=>(N(),X("div",{class:Y([S(n).b(),S(n).m(o.direction)]),style:vt(S(s)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(N(),X("div",{key:0,class:Y([S(n).e("text"),S(n).is(o.contentPosition)])},[_e(o.$slots,"default")],2)):ve("v-if",!0)],6))}});var eq=Xe(QW,[["__file","divider.vue"]]);const Vy=Rt(eq),tq=et({...dA,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"}}),nq=fA,rq=["aria-label","aria-labelledby","aria-describedby"],sq=["id","aria-level"],oq=["aria-label"],iq=["id"],lq=pe({name:"ElDrawer",inheritAttrs:!1}),aq=pe({...lq,props:tq,emits:nq,setup(r,{expose:e}){const n=r,s=Bs();Cr({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(()=>!!s.title));const o=j(),i=j(),l=Ge("drawer"),{t:a}=go(),{afterEnter:c,afterLeave:u,beforeLeave:d,visible:f,rendered:h,titleId:p,bodyId:g,zIndex:m,onModalClick:v,onOpenAutoFocus:b,onCloseAutoFocus:C,onFocusoutPrevented:y,onCloseRequested:w,handleClose:x}=hA(n,o),E=z(()=>n.direction==="rtl"||n.direction==="ltr"),_=z(()=>as(n.size));return e({handleClose:x,afterEnter:c,afterLeave:u}),(M,A)=>(N(),ye(Uc,{to:"body",disabled:!M.appendToBody},[T(Or,{name:S(l).b("fade"),onAfterEnter:S(c),onAfterLeave:S(u),onBeforeLeave:S(d),persisted:""},{default:O(()=>[Ue(T(S(Dy),{mask:M.modal,"overlay-class":M.modalClass,"z-index":S(m),onClick:S(v)},{default:O(()=>[T(S(tg),{loop:"",trapped:S(f),"focus-trap-el":o.value,"focus-start-el":i.value,onFocusAfterTrapped:S(b),onFocusAfterReleased:S(C),onFocusoutPrevented:S(y),onReleaseRequested:S(w)},{default:O(()=>[H("div",Dr({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:S(p),"aria-describedby":S(g)},M.$attrs,{class:[S(l).b(),M.direction,S(f)&&"open"],style:S(E)?"width: "+S(_):"height: "+S(_),role:"dialog",onClick:A[1]||(A[1]=It(()=>{},["stop"]))}),[H("span",{ref_key:"focusStartRef",ref:i,class:Y(S(l).e("sr-focus")),tabindex:"-1"},null,2),M.withHeader?(N(),X("header",{key:0,class:Y(S(l).e("header"))},[M.$slots.title?_e(M.$slots,"title",{key:1},()=>[ve(" DEPRECATED SLOT ")]):_e(M.$slots,"header",{key:0,close:S(x),titleId:S(p),titleClass:S(l).e("title")},()=>[M.$slots.title?ve("v-if",!0):(N(),X("span",{key:0,id:S(p),role:"heading","aria-level":M.headerAriaLevel,class:Y(S(l).e("title"))},oe(M.title),11,sq))]),M.showClose?(N(),X("button",{key:2,"aria-label":S(a)("el.drawer.close"),class:Y(S(l).e("close-btn")),type:"button",onClick:A[0]||(A[0]=(...k)=>S(x)&&S(x)(...k))},[T(S(dt),{class:Y(S(l).e("close"))},{default:O(()=>[T(S(ta))]),_:1},8,["class"])],10,oq)):ve("v-if",!0)],2)):ve("v-if",!0),S(h)?(N(),X("div",{key:1,id:S(g),class:Y(S(l).e("body"))},[_e(M.$slots,"default")],10,iq)):ve("v-if",!0),M.$slots.footer?(N(),X("div",{key:2,class:Y(S(l).e("footer"))},[_e(M.$slots,"footer")],2)):ve("v-if",!0)],16,rq)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[st,S(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var cq=Xe(aq,[["__file","drawer.vue"]]);const Zo=Rt(cq),uq=pe({inheritAttrs:!1});function dq(r,e,n,s,o,i){return _e(r.$slots,"default")}var fq=Xe(uq,[["render",dq],["__file","collection.vue"]]);const hq=pe({name:"ElCollectionItem",inheritAttrs:!1});function pq(r,e,n,s,o,i){return _e(r.$slots,"default")}var gq=Xe(hq,[["render",pq],["__file","collection-item.vue"]]);const mq="data-el-collection-item",bq=r=>{const e=`El${r}Collection`,n=`${e}Item`,s=Symbol(e),o=Symbol(n),i={...fq,name:e,setup(){const a=j(null),c=new Map;Wt(s,{itemMap:c,getItems:()=>{const d=S(a);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${mq}]`));return[...c.values()].sort((p,g)=>f.indexOf(p.ref)-f.indexOf(g.ref))},collectionRef:a})}},l={...gq,name:n,setup(a,{attrs:c}){const u=j(null),d=Ve(s,void 0);Wt(o,{collectionItemRef:u}),nt(()=>{const f=S(u);f&&d.itemMap.set(f,{ref:f,...c})}),Cn(()=>{const f=S(u);d.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:l}},rm=et({trigger:md.trigger,effect:{...Nr.effect,default:"light"},type:{type:Be(String)},placement:{type:Be(String),default:"bottom"},popperOptions:{type:Be(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:Be([Number,String]),default:0},maxHeight:{type:Be([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Be(Object)},teleported:Nr.teleported});et({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:cs}});et({onKeydown:{type:Be(Function)}});bq("Dropdown");const vq=et({urlList:{type:Be(Array),default:()=>Ss([])},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:Be(String)}}),yq={close:()=>!0,switch:r=>Tt(r),rotate:r=>Tt(r)},wq=["src","crossorigin"],Cq=pe({name:"ElImageViewer"}),Sq=pe({...Cq,props:vq,emits:yq,setup(r,{expose:e,emit:n}){var s;const o=r,i={CONTAIN:{name:"contain",icon:Zu(uz)},ORIGINAL:{name:"original",icon:Zu(xz)}},{t:l}=go(),a=Ge("image-viewer"),{nextZIndex:c}=Xp(),u=j(),d=j([]),f=PE(),h=j(!0),p=j(o.initialIndex),g=Ms(i.CONTAIN),m=j({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=j((s=o.zIndex)!=null?s:c()),b=z(()=>{const{urlList:ee}=o;return ee.length<=1}),C=z(()=>p.value===0),y=z(()=>p.value===o.urlList.length-1),w=z(()=>o.urlList[p.value]),x=z(()=>[a.e("btn"),a.e("prev"),a.is("disabled",!o.infinite&&C.value)]),E=z(()=>[a.e("btn"),a.e("next"),a.is("disabled",!o.infinite&&y.value)]),_=z(()=>{const{scale:ee,deg:de,offsetX:ce,offsetY:Te,enableTransition:fe}=m.value;let we=ce/ee,Ee=Te/ee;switch(de%360){case 90:case-270:[we,Ee]=[Ee,-we];break;case 180:case-180:[we,Ee]=[-we,-Ee];break;case 270:case-90:[we,Ee]=[-Ee,we];break}const G={transform:`scale(${ee}) rotate(${de}deg) translate(${we}px, ${Ee}px)`,transition:fe?"transform .3s":""};return g.value.name===i.CONTAIN.name&&(G.maxWidth=G.maxHeight="100%"),G});function M(){k(),n("close")}function A(){const ee=oh(ce=>{switch(ce.code){case bn.esc:o.closeOnPressEscape&&M();break;case bn.space:I();break;case bn.left:U();break;case bn.up:q("zoomIn");break;case bn.right:Q();break;case bn.down:q("zoomOut");break}}),de=oh(ce=>{const Te=ce.deltaY||ce.deltaX;q(Te<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});f.run(()=>{vn(document,"keydown",ee),vn(document,"wheel",de)})}function k(){f.stop()}function P(){h.value=!1}function $(ee){h.value=!1,ee.target.alt=l("el.image.error")}function B(ee){if(h.value||ee.button!==0||!u.value)return;m.value.enableTransition=!1;const{offsetX:de,offsetY:ce}=m.value,Te=ee.pageX,fe=ee.pageY,we=oh(G=>{m.value={...m.value,offsetX:de+G.pageX-Te,offsetY:ce+G.pageY-fe}}),Ee=vn(document,"mousemove",we);vn(document,"mouseup",()=>{Ee()}),ee.preventDefault()}function W(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function I(){if(h.value)return;const ee=Vh(i),de=Object.values(i),ce=g.value.name,fe=(de.findIndex(we=>we.name===ce)+1)%ee.length;g.value=i[ee[fe]],W()}function R(ee){const de=o.urlList.length;p.value=(ee+de)%de}function U(){C.value&&!o.infinite||R(p.value-1)}function Q(){y.value&&!o.infinite||R(p.value+1)}function q(ee,de={}){if(h.value)return;const{minScale:ce,maxScale:Te}=o,{zoomRate:fe,rotateDeg:we,enableTransition:Ee}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...de};switch(ee){case"zoomOut":m.value.scale>ce&&(m.value.scale=Number.parseFloat((m.value.scale/fe).toFixed(3)));break;case"zoomIn":m.value.scale{tt(()=>{const ee=d.value[0];ee!=null&&ee.complete||(h.value=!0)})}),$e(p,ee=>{W(),n("switch",ee)}),nt(()=>{var ee,de;A(),(de=(ee=u.value)==null?void 0:ee.focus)==null||de.call(ee)}),e({setActiveItem:R}),(ee,de)=>(N(),ye(Uc,{to:"body",disabled:!ee.teleported},[T(Or,{name:"viewer-fade",appear:""},{default:O(()=>[H("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:Y(S(a).e("wrapper")),style:vt({zIndex:v.value})},[H("div",{class:Y(S(a).e("mask")),onClick:de[0]||(de[0]=It(ce=>ee.hideOnClickModal&&M(),["self"]))},null,2),ve(" CLOSE "),H("span",{class:Y([S(a).e("btn"),S(a).e("close")]),onClick:M},[T(S(dt),null,{default:O(()=>[T(S(ta))]),_:1})],2),ve(" ARROW "),S(b)?ve("v-if",!0):(N(),X(De,{key:0},[H("span",{class:Y(S(x)),onClick:U},[T(S(dt),null,{default:O(()=>[T(S(B_))]),_:1})],2),H("span",{class:Y(S(E)),onClick:Q},[T(S(dt),null,{default:O(()=>[T(S(Gp))]),_:1})],2)],64)),ve(" ACTIONS "),H("div",{class:Y([S(a).e("btn"),S(a).e("actions")])},[H("div",{class:Y(S(a).e("actions__inner"))},[T(S(dt),{onClick:de[1]||(de[1]=ce=>q("zoomOut"))},{default:O(()=>[T(S(Pz))]),_:1}),T(S(dt),{onClick:de[2]||(de[2]=ce=>q("zoomIn"))},{default:O(()=>[T(S(Mz))]),_:1}),H("i",{class:Y(S(a).e("actions__divider"))},null,2),T(S(dt),{onClick:I},{default:O(()=>[(N(),ye(Ft(S(g).icon)))]),_:1}),H("i",{class:Y(S(a).e("actions__divider"))},null,2),T(S(dt),{onClick:de[3]||(de[3]=ce=>q("anticlockwise"))},{default:O(()=>[T(S(yz))]),_:1}),T(S(dt),{onClick:de[4]||(de[4]=ce=>q("clockwise"))},{default:O(()=>[T(S(Cz))]),_:1})],2)],2),ve(" CANVAS "),H("div",{class:Y(S(a).e("canvas"))},[(N(!0),X(De,null,Ot(ee.urlList,(ce,Te)=>Ue((N(),X("img",{ref_for:!0,ref:fe=>d.value[Te]=fe,key:ce,src:ce,style:vt(S(_)),class:Y(S(a).e("img")),crossorigin:ee.crossorigin,onLoad:P,onError:$,onMousedown:B},null,46,wq)),[[st,Te===p.value]])),128))],2),_e(ee.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var xq=Xe(Sq,[["__file","image-viewer.vue"]]);const Eq=Rt(xq),Tq=et({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:Be([String,Object])},previewSrcList:{type:Be(Array),default:()=>Ss([])},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:Be(String)}}),_q={load:r=>r instanceof Event,error:r=>r instanceof Event,switch:r=>Tt(r),close:()=>!0,show:()=>!0},Oq=["src","loading","crossorigin"],Aq={key:0},Mq=pe({name:"ElImage",inheritAttrs:!1}),kq=pe({...Mq,props:Tq,emits:_q,setup(r,{emit:e}){const n=r;let s="";const{t:o}=go(),i=Ge("image"),l=cT(),a=Y_(),c=j(),u=j(!1),d=j(!0),f=j(!1),h=j(),p=j(),g=Ct&&"loading"in HTMLImageElement.prototype;let m,v;const b=z(()=>[i.e("inner"),w.value&&i.e("preview"),d.value&&i.is("loading")]),C=z(()=>l.style),y=z(()=>{const{fit:Q}=n;return Ct&&Q?{objectFit:Q}:{}}),w=z(()=>{const{previewSrcList:Q}=n;return Array.isArray(Q)&&Q.length>0}),x=z(()=>{const{previewSrcList:Q,initialIndex:q}=n;let ee=q;return q>Q.length-1&&(ee=0),ee}),E=z(()=>n.loading==="eager"?!1:!g&&n.loading==="lazy"||n.lazy),_=()=>{Ct&&(d.value=!0,u.value=!1,c.value=n.src)};function M(Q){d.value=!1,u.value=!1,e("load",Q)}function A(Q){d.value=!1,u.value=!0,e("error",Q)}function k(){TD(h.value,p.value)&&(_(),B())}const P=iD(k,200,!0);async function $(){var Q;if(!Ct)return;await tt();const{scrollContainer:q}=n;ls(q)?p.value=q:ft(q)&&q!==""?p.value=(Q=document.querySelector(q))!=null?Q:void 0:h.value&&(p.value=G5(h.value)),p.value&&(m=vn(p,"scroll",P),setTimeout(()=>k(),100))}function B(){!Ct||!p.value||!P||(m==null||m(),p.value=void 0)}function W(Q){if(Q.ctrlKey){if(Q.deltaY<0)return Q.preventDefault(),!1;if(Q.deltaY>0)return Q.preventDefault(),!1}}function I(){w.value&&(v=vn("wheel",W,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,e("show"))}function R(){v==null||v(),document.body.style.overflow=s,f.value=!1,e("close")}function U(Q){e("switch",Q)}return $e(()=>n.src,()=>{E.value?(d.value=!0,u.value=!1,B(),$()):_()}),nt(()=>{E.value?$():_()}),(Q,q)=>(N(),X("div",{ref_key:"container",ref:h,class:Y([S(i).b(),Q.$attrs.class]),style:vt(S(C))},[u.value?_e(Q.$slots,"error",{key:0},()=>[H("div",{class:Y(S(i).e("error"))},oe(S(o)("el.image.error")),3)]):(N(),X(De,{key:1},[c.value!==void 0?(N(),X("img",Dr({key:0},S(a),{src:c.value,loading:Q.loading,style:S(y),class:S(b),crossorigin:Q.crossorigin,onClick:I,onLoad:M,onError:A}),null,16,Oq)):ve("v-if",!0),d.value?(N(),X("div",{key:1,class:Y(S(i).e("wrapper"))},[_e(Q.$slots,"placeholder",{},()=>[H("div",{class:Y(S(i).e("placeholder"))},null,2)])],2)):ve("v-if",!0)],64)),S(w)?(N(),X(De,{key:2},[f.value?(N(),ye(S(Eq),{key:0,"z-index":Q.zIndex,"initial-index":S(x),infinite:Q.infinite,"zoom-rate":Q.zoomRate,"min-scale":Q.minScale,"max-scale":Q.maxScale,"url-list":Q.previewSrcList,"hide-on-click-modal":Q.hideOnClickModal,teleported:Q.previewTeleported,"close-on-press-escape":Q.closeOnPressEscape,onClose:R,onSwitch:U},{default:O(()=>[Q.$slots.viewer?(N(),X("div",Aq,[_e(Q.$slots,"viewer")])):ve("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ve("v-if",!0)],64)):ve("v-if",!0)],6))}});var Pq=Xe(kq,[["__file","image.vue"]]);const Nq=Rt(Pq),Iq=et({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:Jo,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:r=>r===null||Tt(r)||["min","max"].includes(r),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:r=>r>=0&&r===Number.parseInt(`${r}`,10)},validateEvent:{type:Boolean,default:!0},...Xo(["ariaLabel"])}),Lq={[Xd]:(r,e)=>e!==r,blur:r=>r instanceof FocusEvent,focus:r=>r instanceof FocusEvent,[lh]:r=>Tt(r)||no(r),[jt]:r=>Tt(r)||no(r)},Rq=["aria-label","onKeydown"],$q=["aria-label","onKeydown"],Dq=pe({name:"ElInputNumber"}),Vq=pe({...Dq,props:Iq,emits:Lq,setup(r,{expose:e,emit:n}){const s=r,{t:o}=go(),i=Ge("input-number"),l=j(),a=St({currentValue:s.modelValue,userInput:null}),{formItem:c}=il(),u=z(()=>Tt(s.modelValue)&&s.modelValue<=s.min),d=z(()=>Tt(s.modelValue)&&s.modelValue>=s.max),f=z(()=>{const I=b(s.step);return wr(s.precision)?Math.max(b(s.modelValue),I):(I>s.precision,s.precision)}),h=z(()=>s.controls&&s.controlsPosition==="right"),p=fs(),g=Zc(),m=z(()=>{if(a.userInput!==null)return a.userInput;let I=a.currentValue;if(no(I))return"";if(Tt(I)){if(Number.isNaN(I))return"";wr(s.precision)||(I=I.toFixed(s.precision))}return I}),v=(I,R)=>{if(wr(R)&&(R=f.value),R===0)return Math.round(I);let U=String(I);const Q=U.indexOf(".");if(Q===-1||!U.replace(".","").split("")[Q+R])return I;const de=U.length;return U.charAt(de-1)==="5"&&(U=`${U.slice(0,Math.max(0,de-1))}6`),Number.parseFloat(Number(U).toFixed(R))},b=I=>{if(no(I))return 0;const R=I.toString(),U=R.indexOf(".");let Q=0;return U!==-1&&(Q=R.length-U-1),Q},C=(I,R=1)=>Tt(I)?v(I+s.step*R):a.currentValue,y=()=>{if(s.readonly||g.value||d.value)return;const I=Number(m.value)||0,R=C(I);E(R),n(lh,a.currentValue),B()},w=()=>{if(s.readonly||g.value||u.value)return;const I=Number(m.value)||0,R=C(I,-1);E(R),n(lh,a.currentValue),B()},x=(I,R)=>{const{max:U,min:Q,step:q,precision:ee,stepStrictly:de,valueOnClear:ce}=s;UU||TeU?U:Q,R&&n(jt,Te)),Te},E=(I,R=!0)=>{var U;const Q=a.currentValue,q=x(I);if(!R){n(jt,q);return}Q===q&&I||(a.userInput=null,n(jt,q),Q!==q&&n(Xd,q,Q),s.validateEvent&&((U=c==null?void 0:c.validate)==null||U.call(c,"change").catch(ee=>void 0)),a.currentValue=q)},_=I=>{a.userInput=I;const R=I===""?null:Number(I);n(lh,R),E(R,!1)},M=I=>{const R=I!==""?Number(I):"";(Tt(R)&&!Number.isNaN(R)||I==="")&&E(R),B(),a.userInput=null},A=()=>{var I,R;(R=(I=l.value)==null?void 0:I.focus)==null||R.call(I)},k=()=>{var I,R;(R=(I=l.value)==null?void 0:I.blur)==null||R.call(I)},P=I=>{n("focus",I)},$=I=>{var R;a.userInput=null,n("blur",I),s.validateEvent&&((R=c==null?void 0:c.validate)==null||R.call(c,"blur").catch(U=>void 0))},B=()=>{a.currentValue!==s.modelValue&&(a.currentValue=s.modelValue)},W=I=>{document.activeElement===I.target&&I.preventDefault()};return $e(()=>s.modelValue,(I,R)=>{const U=x(I,!0);a.userInput===null&&U!==R&&(a.currentValue=U)},{immediate:!0}),nt(()=>{var I;const{min:R,max:U,modelValue:Q}=s,q=(I=l.value)==null?void 0:I.input;if(q.setAttribute("role","spinbutton"),Number.isFinite(U)?q.setAttribute("aria-valuemax",String(U)):q.removeAttribute("aria-valuemax"),Number.isFinite(R)?q.setAttribute("aria-valuemin",String(R)):q.removeAttribute("aria-valuemin"),q.setAttribute("aria-valuenow",a.currentValue||a.currentValue===0?String(a.currentValue):""),q.setAttribute("aria-disabled",String(g.value)),!Tt(Q)&&Q!=null){let ee=Number(Q);Number.isNaN(ee)&&(ee=null),n(jt,ee)}q.addEventListener("wheel",W,{passive:!1})}),ua(()=>{var I,R;const U=(I=l.value)==null?void 0:I.input;U==null||U.setAttribute("aria-valuenow",`${(R=a.currentValue)!=null?R:""}`)}),Cr({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(()=>!!s.label)),e({focus:A,blur:k}),(I,R)=>(N(),X("div",{class:Y([S(i).b(),S(i).m(S(p)),S(i).is("disabled",S(g)),S(i).is("without-controls",!I.controls),S(i).is("controls-right",S(h))]),onDragstart:R[0]||(R[0]=It(()=>{},["prevent"]))},[I.controls?Ue((N(),X("span",{key:0,role:"button","aria-label":S(o)("el.inputNumber.decrease"),class:Y([S(i).e("decrease"),S(i).is("disabled",S(u))]),onKeydown:tr(w,["enter"])},[_e(I.$slots,"decrease-icon",{},()=>[T(S(dt),null,{default:O(()=>[S(h)?(N(),ye(S(hy),{key:0})):(N(),ye(S(mz),{key:1}))]),_:1})])],42,Rq)),[[S(rS),w]]):ve("v-if",!0),I.controls?Ue((N(),X("span",{key:1,role:"button","aria-label":S(o)("el.inputNumber.increase"),class:Y([S(i).e("increase"),S(i).is("disabled",S(d))]),onKeydown:tr(y,["enter"])},[_e(I.$slots,"increase-icon",{},()=>[T(S(dt),null,{default:O(()=>[S(h)?(N(),ye(S(z_),{key:0})):(N(),ye(S(j_),{key:1}))]),_:1})])],42,$q)),[[S(rS),y]]):ve("v-if",!0),T(S(Sn),{id:I.id,ref_key:"input",ref:l,type:"number",step:I.step,"model-value":S(m),placeholder:I.placeholder,readonly:I.readonly,disabled:S(g),size:S(p),max:I.max,min:I.min,name:I.name,"aria-label":I.label||I.ariaLabel,"validate-event":!1,onKeydown:[tr(It(y,["prevent"]),["up"]),tr(It(w,["prevent"]),["down"])],onBlur:$,onFocus:P,onInput:_,onChange:M},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],34))}});var Fq=Xe(Vq,[["__file","input-number.vue"]]);const Fy=Rt(Fq),Bq=et({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:cs}}),zq={click:r=>r instanceof MouseEvent},jq=["href","target"],Hq=pe({name:"ElLink"}),Uq=pe({...Hq,props:Bq,emits:zq,setup(r,{emit:e}){const n=r,s=Ge("link"),o=z(()=>[s.b(),s.m(n.type),s.is("disabled",n.disabled),s.is("underline",n.underline&&!n.disabled)]);function i(l){n.disabled||e("click",l)}return(l,a)=>(N(),X("a",{class:Y(S(o)),href:l.disabled||!l.href?void 0:l.href,target:l.disabled||!l.href?void 0:l.target,onClick:i},[l.icon?(N(),ye(S(dt),{key:0},{default:O(()=>[(N(),ye(Ft(l.icon)))]),_:1})):ve("v-if",!0),l.$slots.default?(N(),X("span",{key:1,class:Y(S(s).e("inner"))},[_e(l.$slots,"default")],2)):ve("v-if",!0),l.$slots.icon?_e(l.$slots,"icon",{key:2}):ve("v-if",!0)],10,jq))}});var Wq=Xe(Uq,[["__file","link.vue"]]);const qq=Rt(Wq),Gq=et({icon:{type:cs,default:()=>tz},title:String,content:{type:String,default:""}}),Kq={back:()=>!0},Yq=["aria-label"],Jq=pe({name:"ElPageHeader"}),Xq=pe({...Jq,props:Gq,emits:Kq,setup(r,{emit:e}){const n=Bs(),{t:s}=go(),o=Ge("page-header"),i=z(()=>[o.b(),{[o.m("has-breadcrumb")]:!!n.breadcrumb,[o.m("has-extra")]:!!n.extra,[o.is("contentful")]:!!n.default}]);function l(){e("back")}return(a,c)=>(N(),X("div",{class:Y(S(i))},[a.$slots.breadcrumb?(N(),X("div",{key:0,class:Y(S(o).e("breadcrumb"))},[_e(a.$slots,"breadcrumb")],2)):ve("v-if",!0),H("div",{class:Y(S(o).e("header"))},[H("div",{class:Y(S(o).e("left"))},[H("div",{class:Y(S(o).e("back")),role:"button",tabindex:"0",onClick:l},[a.icon||a.$slots.icon?(N(),X("div",{key:0,"aria-label":a.title||S(s)("el.pageHeader.title"),class:Y(S(o).e("icon"))},[_e(a.$slots,"icon",{},()=>[a.icon?(N(),ye(S(dt),{key:0},{default:O(()=>[(N(),ye(Ft(a.icon)))]),_:1})):ve("v-if",!0)])],10,Yq)):ve("v-if",!0),H("div",{class:Y(S(o).e("title"))},[_e(a.$slots,"title",{},()=>[le(oe(a.title||S(s)("el.pageHeader.title")),1)])],2)],2),T(S(Vy),{direction:"vertical"}),H("div",{class:Y(S(o).e("content"))},[_e(a.$slots,"content",{},()=>[le(oe(a.content),1)])],2)],2),a.$slots.extra?(N(),X("div",{key:0,class:Y(S(o).e("extra"))},[_e(a.$slots,"extra")],2)):ve("v-if",!0)],2),a.$slots.default?(N(),X("div",{key:1,class:Y(S(o).e("main"))},[_e(a.$slots,"default")],2)):ve("v-if",!0)],2))}});var Zq=Xe(Xq,[["__file","page-header.vue"]]);const mo=Rt(Zq),pA=Symbol("ElSelectGroup"),sg=Symbol("ElSelect");function Qq(r,e){const n=Ve(sg),s=Ve(pA,{disabled:!1}),o=z(()=>n.props.multiple?d(n.props.modelValue,r.value):d([n.props.modelValue],r.value)),i=z(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!o.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),l=z(()=>r.label||(pt(r.value)?"":r.value)),a=z(()=>r.value||r.label||""),c=z(()=>r.disabled||e.groupDisabled||i.value),u=bt(),d=(p=[],g)=>{if(pt(r.value)){const m=n.props.valueKey;return p&&p.some(v=>Mt(Xr(v,m))===Xr(g,m))}else return p&&p.includes(g)},f=()=>{!r.disabled&&!s.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},h=p=>{const g=new RegExp(U5(p),"i");e.visible=g.test(l.value)||r.created};return $e(()=>l.value,()=>{!r.created&&!n.props.remote&&n.setSelected()}),$e(()=>r.value,(p,g)=>{const{remote:m,valueKey:v}=n.props;if(Sr(p,g)||(n.onOptionDestroy(g,u.proxy),n.onOptionCreate(u.proxy)),!r.created&&!m){if(v&&pt(p)&&pt(g)&&p[v]===g[v])return;n.setSelected()}}),$e(()=>s.disabled,()=>{e.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:l,currentValue:a,itemSelected:o,isDisabled:c,hoverItem:f,updateOption:h}}const eG=pe({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(r){const e=Ge("select"),n=ao(),s=z(()=>[e.be("dropdown","item"),e.is("disabled",S(a)),e.is("selected",S(l)),e.is("hovering",S(h))]),o=St({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:l,isDisabled:a,select:c,hoverItem:u,updateOption:d}=Qq(r,o),{visible:f,hover:h}=Uo(o),p=bt().proxy;c.onOptionCreate(p),Cn(()=>{const m=p.value,{selected:v}=c.states,C=(c.props.multiple?v:[v]).some(y=>y.value===p.value);tt(()=>{c.states.cachedOptions.get(m)===p&&!C&&c.states.cachedOptions.delete(m)}),c.onOptionDestroy(m,p)});function g(){r.disabled!==!0&&o.groupDisabled!==!0&&c.handleOptionSelect(p)}return{ns:e,id:n,containerKls:s,currentLabel:i,itemSelected:l,isDisabled:a,select:c,hoverItem:u,updateOption:d,visible:f,hover:h,selectOptionClick:g,states:o}}}),tG=["id","aria-disabled","aria-selected"];function nG(r,e,n,s,o,i){return Ue((N(),X("li",{id:r.id,class:Y(r.containerKls),role:"option","aria-disabled":r.isDisabled||void 0,"aria-selected":r.itemSelected,onMouseenter:e[0]||(e[0]=(...l)=>r.hoverItem&&r.hoverItem(...l)),onClick:e[1]||(e[1]=It((...l)=>r.selectOptionClick&&r.selectOptionClick(...l),["stop"]))},[_e(r.$slots,"default",{},()=>[H("span",null,oe(r.currentLabel),1)])],42,tG)),[[st,r.visible]])}var By=Xe(eG,[["render",nG],["__file","option.vue"]]);const rG=pe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const r=Ve(sg),e=Ge("select"),n=z(()=>r.props.popperClass),s=z(()=>r.props.multiple),o=z(()=>r.props.fitInputWidth),i=j("");function l(){var a;i.value=`${(a=r.selectRef)==null?void 0:a.offsetWidth}px`}return nt(()=>{l(),dr(r.selectRef,l)}),{ns:e,minWidth:i,popperClass:n,isMultiple:s,isFitInputWidth:o}}});function sG(r,e,n,s,o,i){return N(),X("div",{class:Y([r.ns.b("dropdown"),r.ns.is("multiple",r.isMultiple),r.popperClass]),style:vt({[r.isFitInputWidth?"width":"minWidth"]:r.minWidth})},[r.$slots.header?(N(),X("div",{key:0,class:Y(r.ns.be("dropdown","header"))},[_e(r.$slots,"header")],2)):ve("v-if",!0),_e(r.$slots,"default"),r.$slots.footer?(N(),X("div",{key:1,class:Y(r.ns.be("dropdown","footer"))},[_e(r.$slots,"footer")],2)):ve("v-if",!0)],6)}var oG=Xe(rG,[["render",sG],["__file","select-dropdown.vue"]]);function iG(r){const e=j(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:i=>{const l=i.target.value,a=l[l.length-1]||"";e.value=!K_(a)},handleCompositionEnd:i=>{e.value&&(e.value=!1,qe(r)&&r(i))}}}const lG=11,aG=(r,e)=>{const{t:n}=go(),s=ao(),o=Ge("select"),i=Ge("input"),l=St({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:r.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),a=j(null),c=j(null),u=j(null),d=j(null),f=j(null),h=j(null),p=j(null),g=j(null),m=j(null),v=j(null),b=j(null),C=j(null),{wrapperRef:y,isFocused:w,handleFocus:x,handleBlur:E}=yO(f,{afterFocus(){r.automaticDropdown&&!_.value&&(_.value=!0,l.menuVisibleOnFocus=!0)},beforeBlur(be){var Le,$t;return((Le=u.value)==null?void 0:Le.isFocusInsideContent(be))||(($t=d.value)==null?void 0:$t.isFocusInsideContent(be))},afterBlur(){_.value=!1,l.menuVisibleOnFocus=!1}}),_=j(!1),M=j(),{form:A,formItem:k}=il(),{inputId:P}=tf(r,{formItemContext:k}),{valueOnClear:$,isEmptyValue:B}=dH(r),W=z(()=>r.disabled||(A==null?void 0:A.disabled)),I=z(()=>r.multiple?Re(r.modelValue)&&r.modelValue.length>0:!B(r.modelValue)),R=z(()=>r.clearable&&!W.value&&l.inputHovering&&I.value),U=z(()=>r.remote&&r.filterable&&!r.remoteShowSuffix?"":r.suffixIcon),Q=z(()=>o.is("reverse",U.value&&_.value)),q=z(()=>(k==null?void 0:k.validateState)||""),ee=z(()=>q_[q.value]),de=z(()=>r.remote?300:0),ce=z(()=>r.loading?r.loadingText||n("el.select.loading"):r.remote&&!l.inputValue&&l.options.size===0?!1:r.filterable&&l.inputValue&&l.options.size>0&&Te.value===0?r.noMatchText||n("el.select.noMatch"):l.options.size===0?r.noDataText||n("el.select.noData"):null),Te=z(()=>fe.value.filter(be=>be.visible).length),fe=z(()=>{const be=Array.from(l.options.values()),Le=[];return l.optionValues.forEach($t=>{const en=be.findIndex(si=>si.value===$t);en>-1&&Le.push(be[en])}),Le.length>=be.length?Le:be}),we=z(()=>Array.from(l.cachedOptions.values())),Ee=z(()=>{const be=fe.value.filter(Le=>!Le.created).some(Le=>Le.currentLabel===l.inputValue);return r.filterable&&r.allowCreate&&l.inputValue!==""&&!be}),G=()=>{r.filterable&&qe(r.filterMethod)||r.filterable&&r.remote&&qe(r.remoteMethod)||fe.value.forEach(be=>{var Le;(Le=be.updateOption)==null||Le.call(be,l.inputValue)})},ne=fs(),se=z(()=>["small"].includes(ne.value)?"small":"default"),me=z({get(){return _.value&&ce.value!==!1},set(be){_.value=be}}),Pe=z(()=>Re(r.modelValue)?r.modelValue.length===0&&!l.inputValue:r.filterable?!l.inputValue:!0),Se=z(()=>{var be;const Le=(be=r.placeholder)!=null?be:n("el.select.placeholder");return r.multiple||!I.value?Le:l.selectedLabel});$e(()=>r.modelValue,(be,Le)=>{r.multiple&&r.filterable&&!r.reserveKeyword&&(l.inputValue="",D("")),te(),!Sr(be,Le)&&r.validateEvent&&(k==null||k.validate("change").catch($t=>void 0))},{flush:"post",deep:!0}),$e(()=>_.value,be=>{be?D(l.inputValue):(l.inputValue="",l.previousQuery=null,l.isBeforeHide=!0),e("visible-change",be)}),$e(()=>l.options.entries(),()=>{var be;if(!Ct)return;const Le=((be=a.value)==null?void 0:be.querySelectorAll("input"))||[];(!r.filterable&&!r.defaultFirstOption&&!wr(r.modelValue)||!Array.from(Le).includes(document.activeElement))&&te(),r.defaultFirstOption&&(r.filterable||r.remote)&&Te.value&&L()},{flush:"post"}),$e(()=>l.hoveringIndex,be=>{Tt(be)&&be>-1?M.value=fe.value[be]||{}:M.value={},fe.value.forEach(Le=>{Le.hover=M.value===Le})}),to(()=>{l.isBeforeHide||G()});const D=be=>{l.previousQuery!==be&&(l.previousQuery=be,r.filterable&&qe(r.filterMethod)?r.filterMethod(be):r.filterable&&r.remote&&qe(r.remoteMethod)&&r.remoteMethod(be),r.defaultFirstOption&&(r.filterable||r.remote)&&Te.value?tt(L):tt(ge))},L=()=>{const be=fe.value.filter(en=>en.visible&&!en.disabled&&!en.states.groupDisabled),Le=be.find(en=>en.created),$t=be[0];l.hoveringIndex=Je(fe.value,Le||$t)},te=()=>{if(r.multiple)l.selectedLabel="";else{const Le=he(r.modelValue);l.selectedLabel=Le.currentLabel,l.selected=Le;return}const be=[];Re(r.modelValue)&&r.modelValue.forEach(Le=>{be.push(he(Le))}),l.selected=be},he=be=>{let Le;const $t=eh(be).toLowerCase()==="object",en=eh(be).toLowerCase()==="null",si=eh(be).toLowerCase()==="undefined";for(let pl=l.cachedOptions.size-1;pl>=0;pl--){const Ws=we.value[pl];if($t?Xr(Ws.value,r.valueKey)===Xr(be,r.valueKey):Ws.value===be){Le={value:be,currentLabel:Ws.currentLabel,get isDisabled(){return Ws.isDisabled}};break}}if(Le)return Le;const wa=$t?be.label:!en&&!si?be:"";return{value:be,currentLabel:wa}},ge=()=>{r.multiple?l.hoveringIndex=fe.value.findIndex(be=>l.selected.some(Le=>yo(Le)===yo(be))):l.hoveringIndex=fe.value.findIndex(be=>yo(be)===yo(l.selected))},Ce=()=>{l.selectionWidth=c.value.getBoundingClientRect().width},xe=()=>{l.calculatorWidth=h.value.getBoundingClientRect().width},V=()=>{l.collapseItemWidth=b.value.getBoundingClientRect().width},F=()=>{var be,Le;(Le=(be=u.value)==null?void 0:be.updatePopper)==null||Le.call(be)},J=()=>{var be,Le;(Le=(be=d.value)==null?void 0:be.updatePopper)==null||Le.call(be)},ie=()=>{l.inputValue.length>0&&!_.value&&(_.value=!0),D(l.inputValue)},Ae=be=>{if(l.inputValue=be.target.value,r.remote)re();else return ie()},re=dc(()=>{ie()},de.value),Z=be=>{Sr(r.modelValue,be)||e(Xd,be)},ae=be=>r5(be,Le=>!l.disabledOptions.has(Le)),je=be=>{if(r.multiple&&be.code!==bn.delete&&be.target.value.length<=0){const Le=r.modelValue.slice(),$t=ae(Le);if($t<0)return;const en=Le[$t];Le.splice($t,1),e(jt,Le),Z(Le),e("remove-tag",en)}},Qe=(be,Le)=>{const $t=l.selected.indexOf(Le);if($t>-1&&!W.value){const en=r.modelValue.slice();en.splice($t,1),e(jt,en),Z(en),e("remove-tag",Le.value)}be.stopPropagation(),Mr()},Me=be=>{be.stopPropagation();const Le=r.multiple?[]:$.value;if(r.multiple)for(const $t of l.selected)$t.isDisabled&&Le.push($t.value);e(jt,Le),Z(Le),l.hoveringIndex=-1,_.value=!1,e("clear"),Mr()},ke=be=>{if(r.multiple){const Le=(r.modelValue||[]).slice(),$t=Je(Le,be.value);$t>-1?Le.splice($t,1):(r.multipleLimit<=0||Le.length{it(be)})},Je=(be=[],Le)=>{if(!pt(Le))return be.indexOf(Le);const $t=r.valueKey;let en=-1;return be.some((si,wa)=>Mt(Xr(si,$t))===Xr(Le,$t)?(en=wa,!0):!1),en},it=be=>{var Le,$t,en,si,wa;const bf=Re(be)?be[0]:be;let pl=null;if(bf!=null&&bf.value){const Ws=fe.value.filter($0=>$0.value===bf.value);Ws.length>0&&(pl=Ws[0].$el)}if(u.value&&pl){const Ws=(si=(en=($t=(Le=u.value)==null?void 0:Le.popperRef)==null?void 0:$t.contentRef)==null?void 0:en.querySelector)==null?void 0:si.call(en,`.${o.be("dropdown","wrap")}`);Ws&&Y5(Ws,pl)}(wa=C.value)==null||wa.handleScroll()},ue=be=>{l.options.set(be.value,be),l.cachedOptions.set(be.value,be),be.disabled&&l.disabledOptions.set(be.value,be)},Ie=(be,Le)=>{l.options.get(be)===Le&&l.options.delete(be)},{handleCompositionStart:Fe,handleCompositionUpdate:lt,handleCompositionEnd:ct}=iG(be=>Ae(be)),xn=z(()=>{var be,Le;return(Le=(be=u.value)==null?void 0:be.popperRef)==null?void 0:Le.contentRef}),Xn=()=>{l.isBeforeHide=!1,tt(()=>it(l.selected))},Mr=()=>{var be;(be=f.value)==null||be.focus()},ri=()=>{ba()},ms=be=>{Me(be)},ba=be=>{if(_.value=!1,w.value){const Le=new FocusEvent("focus",be);tt(()=>E(Le))}},va=()=>{l.inputValue.length>0?l.inputValue="":_.value=!1},vo=()=>{W.value||(l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:_.value=!_.value)},Pg=()=>{_.value?fe.value[l.hoveringIndex]&&ke(fe.value[l.hoveringIndex]):vo()},yo=be=>pt(be.value)?Xr(be.value,r.valueKey):be.value,ya=z(()=>fe.value.filter(be=>be.visible).every(be=>be.disabled)),nN=z(()=>r.multiple?r.collapseTags?l.selected.slice(0,r.maxCollapseTags):l.selected:[]),rN=z(()=>r.multiple?r.collapseTags?l.selected.slice(r.maxCollapseTags):[]:[]),R0=be=>{if(!_.value){_.value=!0;return}if(!(l.options.size===0||Te.value===0)&&!ya.value){be==="next"?(l.hoveringIndex++,l.hoveringIndex===l.options.size&&(l.hoveringIndex=0)):be==="prev"&&(l.hoveringIndex--,l.hoveringIndex<0&&(l.hoveringIndex=l.options.size-1));const Le=fe.value[l.hoveringIndex];(Le.disabled===!0||Le.states.groupDisabled===!0||!Le.visible)&&R0(be),tt(()=>it(M.value))}},sN=()=>{if(!c.value)return 0;const be=window.getComputedStyle(c.value);return Number.parseFloat(be.gap||"6px")},oN=z(()=>{const be=sN();return{maxWidth:`${b.value&&r.maxCollapseTags===1?l.selectionWidth-l.collapseItemWidth-be:l.selectionWidth}px`}}),iN=z(()=>({maxWidth:`${l.selectionWidth}px`})),lN=z(()=>({width:`${Math.max(l.calculatorWidth,lG)}px`}));return r.multiple&&!Re(r.modelValue)&&e(jt,[]),!r.multiple&&Re(r.modelValue)&&e(jt,""),dr(c,Ce),dr(h,xe),dr(m,F),dr(y,F),dr(v,J),dr(b,V),nt(()=>{te()}),{inputId:P,contentId:s,nsSelect:o,nsInput:i,states:l,isFocused:w,expanded:_,optionsArray:fe,hoverOption:M,selectSize:ne,filteredOptionsCount:Te,resetCalculatorWidth:xe,updateTooltip:F,updateTagTooltip:J,debouncedOnInputChange:re,onInput:Ae,deletePrevTag:je,deleteTag:Qe,deleteSelected:Me,handleOptionSelect:ke,scrollToOption:it,hasModelValue:I,shouldShowPlaceholder:Pe,currentPlaceholder:Se,showClose:R,iconComponent:U,iconReverse:Q,validateState:q,validateIcon:ee,showNewOption:Ee,updateOptions:G,collapseTagSize:se,setSelected:te,selectDisabled:W,emptyText:ce,handleCompositionStart:Fe,handleCompositionUpdate:lt,handleCompositionEnd:ct,onOptionCreate:ue,onOptionDestroy:Ie,handleMenuEnter:Xn,handleFocus:x,focus:Mr,blur:ri,handleBlur:E,handleClearClick:ms,handleClickOutside:ba,handleEsc:va,toggleMenu:vo,selectOption:Pg,getValueKey:yo,navigateOptions:R0,dropdownMenuVisible:me,showTagList:nN,collapseTagList:rN,tagStyle:oN,collapseTagStyle:iN,inputStyle:lN,popperRef:xn,inputRef:f,tooltipRef:u,tagTooltipRef:d,calculatorRef:h,prefixRef:p,suffixRef:g,selectRef:a,wrapperRef:y,selectionRef:c,scrollbarRef:C,menuRef:m,tagMenuRef:v,collapseItemRef:b}};var cG=pe({name:"ElOptions",setup(r,{slots:e}){const n=Ve(sg);let s=[];return()=>{var o,i;const l=(o=e.default)==null?void 0:o.call(e),a=[];function c(u){Re(u)&&u.forEach(d=>{var f,h,p,g;const m=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;m==="ElOptionGroup"?c(!ft(d.children)&&!Re(d.children)&&qe((h=d.children)==null?void 0:h.default)?(p=d.children)==null?void 0:p.default():d.children):m==="ElOption"?a.push((g=d.props)==null?void 0:g.value):Re(d.children)&&c(d.children)})}return l.length&&c((i=l[0])==null?void 0:i.children),Sr(a,s)||(s=a,n&&(n.states.optionValues=a)),l}}});const uG=et({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Jo,effect:{type:Be(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Be(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:Nr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:cs,default:gy},fitInputWidth:Boolean,suffixIcon:{type:cs,default:hy},tagType:{...nA.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Be(String),values:Yp,default:"bottom-start"},fallbackPlacements:{type:Be(Array),default:["bottom-start","top-start","right","left"]},...uH,...Xo(["ariaLabel"])}),cS="ElSelect",dG=pe({name:cS,componentName:cS,components:{ElInput:Sn,ElSelectMenu:oG,ElOption:By,ElOptions:cG,ElTag:rA,ElScrollbar:Qp,ElTooltip:gs,ElIcon:dt},directives:{ClickOutside:$O},props:uG,emits:[jt,Xd,"remove-tag","clear","visible-change","focus","blur"],setup(r,{emit:e}){const n=aG(r,e);return Wt(sg,St({props:r,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),fG=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],hG=["textContent"],pG={key:1};function gG(r,e,n,s,o,i){const l=Pt("el-tag"),a=Pt("el-tooltip"),c=Pt("el-icon"),u=Pt("el-option"),d=Pt("el-options"),f=Pt("el-scrollbar"),h=Pt("el-select-menu"),p=Fv("click-outside");return Ue((N(),X("div",{ref:"selectRef",class:Y([r.nsSelect.b(),r.nsSelect.m(r.selectSize)]),onMouseenter:e[16]||(e[16]=g=>r.states.inputHovering=!0),onMouseleave:e[17]||(e[17]=g=>r.states.inputHovering=!1),onClick:e[18]||(e[18]=It((...g)=>r.toggleMenu&&r.toggleMenu(...g),["prevent","stop"]))},[T(a,{ref:"tooltipRef",visible:r.dropdownMenuVisible,placement:r.placement,teleported:r.teleported,"popper-class":[r.nsSelect.e("popper"),r.popperClass],"popper-options":r.popperOptions,"fallback-placements":r.fallbackPlacements,effect:r.effect,pure:"",trigger:"click",transition:`${r.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:r.persistent,onBeforeShow:r.handleMenuEnter,onHide:e[15]||(e[15]=g=>r.states.isBeforeHide=!1)},{default:O(()=>{var g;return[H("div",{ref:"wrapperRef",class:Y([r.nsSelect.e("wrapper"),r.nsSelect.is("focused",r.isFocused),r.nsSelect.is("hovering",r.states.inputHovering),r.nsSelect.is("filterable",r.filterable),r.nsSelect.is("disabled",r.selectDisabled)])},[r.$slots.prefix?(N(),X("div",{key:0,ref:"prefixRef",class:Y(r.nsSelect.e("prefix"))},[_e(r.$slots,"prefix")],2)):ve("v-if",!0),H("div",{ref:"selectionRef",class:Y([r.nsSelect.e("selection"),r.nsSelect.is("near",r.multiple&&!r.$slots.prefix&&!!r.states.selected.length)])},[r.multiple?_e(r.$slots,"tag",{key:0},()=>[(N(!0),X(De,null,Ot(r.showTagList,m=>(N(),X("div",{key:r.getValueKey(m),class:Y(r.nsSelect.e("selected-item"))},[T(l,{closable:!r.selectDisabled&&!m.isDisabled,size:r.collapseTagSize,type:r.tagType,"disable-transitions":"",style:vt(r.tagStyle),onClose:v=>r.deleteTag(v,m)},{default:O(()=>[H("span",{class:Y(r.nsSelect.e("tags-text"))},[_e(r.$slots,"label",{label:m.currentLabel,value:m.value},()=>[le(oe(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),r.collapseTags&&r.states.selected.length>r.maxCollapseTags?(N(),ye(a,{key:0,ref:"tagTooltipRef",disabled:r.dropdownMenuVisible||!r.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:r.effect,placement:"bottom",teleported:r.teleported},{default:O(()=>[H("div",{ref:"collapseItemRef",class:Y(r.nsSelect.e("selected-item"))},[T(l,{closable:!1,size:r.collapseTagSize,type:r.tagType,"disable-transitions":"",style:vt(r.collapseTagStyle)},{default:O(()=>[H("span",{class:Y(r.nsSelect.e("tags-text"))}," + "+oe(r.states.selected.length-r.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:O(()=>[H("div",{ref:"tagMenuRef",class:Y(r.nsSelect.e("selection"))},[(N(!0),X(De,null,Ot(r.collapseTagList,m=>(N(),X("div",{key:r.getValueKey(m),class:Y(r.nsSelect.e("selected-item"))},[T(l,{class:"in-tooltip",closable:!r.selectDisabled&&!m.isDisabled,size:r.collapseTagSize,type:r.tagType,"disable-transitions":"",onClose:v=>r.deleteTag(v,m)},{default:O(()=>[H("span",{class:Y(r.nsSelect.e("tags-text"))},[_e(r.$slots,"label",{label:m.currentLabel,value:m.value},()=>[le(oe(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ve("v-if",!0)]):ve("v-if",!0),r.selectDisabled?ve("v-if",!0):(N(),X("div",{key:1,class:Y([r.nsSelect.e("selected-item"),r.nsSelect.e("input-wrapper"),r.nsSelect.is("hidden",!r.filterable)])},[Ue(H("input",{id:r.inputId,ref:"inputRef","onUpdate:modelValue":e[0]||(e[0]=m=>r.states.inputValue=m),type:"text",class:Y([r.nsSelect.e("input"),r.nsSelect.is(r.selectSize)]),disabled:r.selectDisabled,autocomplete:r.autocomplete,style:vt(r.inputStyle),role:"combobox",readonly:!r.filterable,spellcheck:"false","aria-activedescendant":((g=r.hoverOption)==null?void 0:g.id)||"","aria-controls":r.contentId,"aria-expanded":r.dropdownMenuVisible,"aria-label":r.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e[1]||(e[1]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[2]||(e[2]=(...m)=>r.handleBlur&&r.handleBlur(...m)),onKeydown:[e[3]||(e[3]=tr(It(m=>r.navigateOptions("next"),["stop","prevent"]),["down"])),e[4]||(e[4]=tr(It(m=>r.navigateOptions("prev"),["stop","prevent"]),["up"])),e[5]||(e[5]=tr(It((...m)=>r.handleEsc&&r.handleEsc(...m),["stop","prevent"]),["esc"])),e[6]||(e[6]=tr(It((...m)=>r.selectOption&&r.selectOption(...m),["stop","prevent"]),["enter"])),e[7]||(e[7]=tr(It((...m)=>r.deletePrevTag&&r.deletePrevTag(...m),["stop"]),["delete"]))],onCompositionstart:e[8]||(e[8]=(...m)=>r.handleCompositionStart&&r.handleCompositionStart(...m)),onCompositionupdate:e[9]||(e[9]=(...m)=>r.handleCompositionUpdate&&r.handleCompositionUpdate(...m)),onCompositionend:e[10]||(e[10]=(...m)=>r.handleCompositionEnd&&r.handleCompositionEnd(...m)),onInput:e[11]||(e[11]=(...m)=>r.onInput&&r.onInput(...m)),onClick:e[12]||(e[12]=It((...m)=>r.toggleMenu&&r.toggleMenu(...m),["stop"]))},null,46,fG),[[AL,r.states.inputValue]]),r.filterable?(N(),X("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Y(r.nsSelect.e("input-calculator")),textContent:oe(r.states.inputValue)},null,10,hG)):ve("v-if",!0)],2)),r.shouldShowPlaceholder?(N(),X("div",{key:2,class:Y([r.nsSelect.e("selected-item"),r.nsSelect.e("placeholder"),r.nsSelect.is("transparent",!r.hasModelValue||r.expanded&&!r.states.inputValue)])},[r.hasModelValue?_e(r.$slots,"label",{key:0,label:r.currentPlaceholder,value:r.modelValue},()=>[H("span",null,oe(r.currentPlaceholder),1)]):(N(),X("span",pG,oe(r.currentPlaceholder),1))],2)):ve("v-if",!0)],2),H("div",{ref:"suffixRef",class:Y(r.nsSelect.e("suffix"))},[r.iconComponent&&!r.showClose?(N(),ye(c,{key:0,class:Y([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.iconReverse])},{default:O(()=>[(N(),ye(Ft(r.iconComponent)))]),_:1},8,["class"])):ve("v-if",!0),r.showClose&&r.clearIcon?(N(),ye(c,{key:1,class:Y([r.nsSelect.e("caret"),r.nsSelect.e("icon")]),onClick:r.handleClearClick},{default:O(()=>[(N(),ye(Ft(r.clearIcon)))]),_:1},8,["class","onClick"])):ve("v-if",!0),r.validateState&&r.validateIcon?(N(),ye(c,{key:2,class:Y([r.nsInput.e("icon"),r.nsInput.e("validateIcon")])},{default:O(()=>[(N(),ye(Ft(r.validateIcon)))]),_:1},8,["class"])):ve("v-if",!0)],2)],2)]}),content:O(()=>[T(h,{ref:"menuRef"},{default:O(()=>[r.$slots.header?(N(),X("div",{key:0,class:Y(r.nsSelect.be("dropdown","header")),onClick:e[13]||(e[13]=It(()=>{},["stop"]))},[_e(r.$slots,"header")],2)):ve("v-if",!0),Ue(T(f,{id:r.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":r.nsSelect.be("dropdown","wrap"),"view-class":r.nsSelect.be("dropdown","list"),class:Y([r.nsSelect.is("empty",r.filteredOptionsCount===0)]),role:"listbox","aria-label":r.ariaLabel,"aria-orientation":"vertical"},{default:O(()=>[r.showNewOption?(N(),ye(u,{key:0,value:r.states.inputValue,created:!0},null,8,["value"])):ve("v-if",!0),T(d,null,{default:O(()=>[_e(r.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[st,r.states.options.size>0&&!r.loading]]),r.$slots.loading&&r.loading?(N(),X("div",{key:1,class:Y(r.nsSelect.be("dropdown","loading"))},[_e(r.$slots,"loading")],2)):r.loading||r.filteredOptionsCount===0?(N(),X("div",{key:2,class:Y(r.nsSelect.be("dropdown","empty"))},[_e(r.$slots,"empty",{},()=>[H("span",null,oe(r.emptyText),1)])],2)):ve("v-if",!0),r.$slots.footer?(N(),X("div",{key:3,class:Y(r.nsSelect.be("dropdown","footer")),onClick:e[14]||(e[14]=It(()=>{},["stop"]))},[_e(r.$slots,"footer")],2)):ve("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[p,r.handleClickOutside,r.popperRef]])}var mG=Xe(dG,[["render",gG],["__file","select.vue"]]);const bG=pe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(r){const e=Ge("select"),n=j(null),s=bt(),o=j([]);Wt(pA,St({...Uo(r)}));const i=z(()=>o.value.some(u=>u.visible===!0)),l=u=>{var d,f;return((d=u.type)==null?void 0:d.name)==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},a=u=>{const d=Lh(u),f=[];return d.forEach(h=>{var p,g;l(h)?f.push(h.component.proxy):(p=h.children)!=null&&p.length?f.push(...a(h.children)):(g=h.component)!=null&&g.subTree&&f.push(...a(h.component.subTree))}),f},c=()=>{o.value=a(s.subTree)};return nt(()=>{c()}),bD(n,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:e}}});function vG(r,e,n,s,o,i){return Ue((N(),X("ul",{ref:"groupRef",class:Y(r.ns.be("group","wrap"))},[H("li",{class:Y(r.ns.be("group","title"))},oe(r.label),3),H("li",null,[H("ul",{class:Y(r.ns.b("group"))},[_e(r.$slots,"default")],2)])],2)),[[st,r.visible]])}var gA=Xe(bG,[["render",vG],["__file","option-group.vue"]]);const Qo=Rt(mG,{Option:By,OptionGroup:gA}),ei=Ar(By);Ar(gA);const yG=et({trigger:md.trigger,placement:rm.placement,disabled:md.disabled,visible:Nr.visible,transition:Nr.transition,popperOptions:rm.popperOptions,tabindex:rm.tabindex,content:Nr.content,popperStyle:Nr.popperStyle,popperClass:Nr.popperClass,enterable:{...Nr.enterable,default:!0},effect:{...Nr.effect,default:"light"},teleported:Nr.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}}),wG={"update:visible":r=>is(r),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},CG="onUpdate:visible",SG=pe({name:"ElPopover"}),xG=pe({...SG,props:yG,emits:wG,setup(r,{expose:e,emit:n}){const s=r,o=z(()=>s[CG]),i=Ge("popover"),l=j(),a=z(()=>{var v;return(v=S(l))==null?void 0:v.popperRef}),c=z(()=>[{width:as(s.width)},s.popperStyle]),u=z(()=>[i.b(),s.popperClass,{[i.m("plain")]:!!s.content}]),d=z(()=>s.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var v;(v=l.value)==null||v.hide()},h=()=>{n("before-enter")},p=()=>{n("before-leave")},g=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:a,hide:f}),(v,b)=>(N(),ye(S(gs),Dr({ref_key:"tooltipRef",ref:l},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":S(u),"popper-style":S(c),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":S(d),"onUpdate:visible":S(o),onBeforeShow:h,onBeforeHide:p,onShow:g,onHide:m}),{content:O(()=>[v.title?(N(),X("div",{key:0,class:Y(S(i).e("title")),role:"title"},oe(v.title),3)):ve("v-if",!0),_e(v.$slots,"default",{},()=>[le(oe(v.content),1)])]),default:O(()=>[v.$slots.reference?_e(v.$slots,"reference",{key:0}):ve("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 EG=Xe(xG,[["__file","popover.vue"]]);const uS=(r,e)=>{const n=e.arg||e.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=r)};var TG={mounted(r,e){uS(r,e)},updated(r,e){uS(r,e)}};const _G="popover",OG=Iz(TG,_G),AG=Rt(EG,{directive:OG}),$a={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},dS={[$a.success]:rz,[$a.warning]:vy,[$a.error]:py,[$a.info]:my},MG=et({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),kG=pe({name:"ElResult"}),PG=pe({...kG,props:MG,setup(r){const e=r,n=Ge("result"),s=z(()=>{const o=e.icon,i=o&&$a[o]?$a[o]:"icon-info",l=dS[i]||dS["icon-info"];return{class:i,component:l}});return(o,i)=>(N(),X("div",{class:Y(S(n).b())},[H("div",{class:Y(S(n).e("icon"))},[_e(o.$slots,"icon",{},()=>[S(s).component?(N(),ye(Ft(S(s).component),{key:0,class:Y(S(s).class)},null,8,["class"])):ve("v-if",!0)])],2),o.title||o.$slots.title?(N(),X("div",{key:0,class:Y(S(n).e("title"))},[_e(o.$slots,"title",{},()=>[H("p",null,oe(o.title),1)])],2)):ve("v-if",!0),o.subTitle||o.$slots["sub-title"]?(N(),X("div",{key:1,class:Y(S(n).e("subtitle"))},[_e(o.$slots,"sub-title",{},()=>[H("p",null,oe(o.subTitle),1)])],2)):ve("v-if",!0),o.$slots.extra?(N(),X("div",{key:2,class:Y(S(n).e("extra"))},[_e(o.$slots,"extra")],2)):ve("v-if",!0)],2))}});var NG=Xe(PG,[["__file","result.vue"]]);const IG=Rt(NG),LG=et({prefixCls:{type:String}}),fS=pe({name:"ElSpaceItem",props:LG,setup(r,{slots:e}){const n=Ge("space"),s=z(()=>`${r.prefixCls||n.b()}__item`);return()=>Ye("div",{class:s.value},_e(e,"default"))}}),hS={small:8,default:12,large:16};function RG(r){const e=Ge("space"),n=z(()=>[e.b(),e.m(r.direction),r.class]),s=j(0),o=j(0),i=z(()=>{const a=r.wrap||r.fill?{flexWrap:"wrap"}:{},c={alignItems:r.alignment},u={rowGap:`${o.value}px`,columnGap:`${s.value}px`};return[a,c,u,r.style]}),l=z(()=>r.fill?{flexGrow:1,minWidth:`${r.fillRatio}%`}:{});return to(()=>{const{size:a="small",wrap:c,direction:u,fill:d}=r;if(Re(a)){const[f=0,h=0]=a;s.value=f,o.value=h}else{let f;Tt(a)?f=a:f=hS[a||"small"]||hS.small,(c||d)&&u==="horizontal"?s.value=o.value=f:u==="horizontal"?(s.value=f,o.value=0):(o.value=f,s.value=0)}}),{classes:n,containerStyle:i,itemStyle:l}}const $G=et({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Be([String,Object,Array]),default:""},style:{type:Be([String,Array,Object]),default:""},alignment:{type:Be(String),default:"center"},prefixCls:{type:String},spacer:{type:Be([Object,String,Number,Array]),default:null,validator:r=>Mn(r)||Tt(r)||ft(r)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ga,validator:r=>Tt(r)||Re(r)&&r.length===2&&r.every(Tt)}}),DG=pe({name:"ElSpace",props:$G,setup(r,{slots:e}){const{classes:n,containerStyle:s,itemStyle:o}=RG(r);function i(l,a="",c=[]){const{prefixCls:u}=r;return l.forEach((d,f)=>{yb(d)?Re(d.children)&&d.children.forEach((h,p)=>{yb(h)&&Re(h.children)?i(h.children,`${a+p}-`,c):c.push(T(fS,{style:o.value,prefixCls:u,key:`nested-${a+p}`},{default:()=>[h]},qr.PROPS|qr.STYLE,["style","prefixCls"]))}):Dz(d)&&c.push(T(fS,{style:o.value,prefixCls:u,key:`LoopKey${a+f}`},{default:()=>[d]},qr.PROPS|qr.STYLE,["style","prefixCls"]))}),c}return()=>{var l;const{spacer:a,direction:c}=r,u=_e(e,"default",{key:0},()=>[]);if(((l=u.children)!=null?l:[]).length===0)return null;if(Re(u.children)){let d=i(u.children);if(a){const f=d.length-1;d=d.reduce((h,p,g)=>{const m=[...h,p];return g!==f&&m.push(T("span",{style:[o.value,c==="vertical"?"width: 100%":null],key:g},[Mn(a)?a:le(a,qr.TEXT)],qr.STYLE)),m},[])}return T("div",{class:n.value,style:s.value},d,qr.STYLE|qr.CLASS)}return u.children}}}),mA=Rt(DG),sm=function(r){var e;return(e=r.target)==null?void 0:e.closest("td")},VG=function(r,e,n,s,o){if(!e&&!s&&(!o||Array.isArray(o)&&!o.length))return r;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=s?null:function(a,c){return o?(Array.isArray(o)||(o=[o]),o.map(u=>typeof u=="string"?Xr(a,u):u(a,c,r))):(e!=="$key"&&pt(a)&&"$value"in a&&(a=a.$value),[pt(a)?Xr(a,e):a])},l=function(a,c){if(s)return s(a.value,c.value);for(let u=0,d=a.key.length;uc.key[u])return 1}return 0};return r.map((a,c)=>({value:a,index:c,key:i?i(a,c):null})).sort((a,c)=>{let u=l(a,c);return u||(u=a.index-c.index),u*+n}).map(a=>a.value)},bA=function(r,e){let n=null;return r.columns.forEach(s=>{s.id===e&&(n=s)}),n},FG=function(r,e){let n=null;for(let s=0;s{if(!r)throw new Error("Row is required when get row identity");if(typeof e=="string"){if(!e.includes("."))return`${r[e]}`;const n=e.split(".");let s=r;for(const o of n)s=s[o];return`${s}`}else if(typeof e=="function")return e.call(null,r)},$l=function(r,e){const n={};return(r||[]).forEach((s,o)=>{n[Kn(s,e)]={row:s,index:o}}),n};function BG(r,e){const n={};let s;for(s in r)n[s]=r[s];for(s in e)if(wt(e,s)){const o=e[s];typeof o<"u"&&(n[s]=o)}return n}function zy(r){return r===""||r!==void 0&&(r=Number.parseInt(r,10),Number.isNaN(r)&&(r="")),r}function vA(r){return r===""||r!==void 0&&(r=zy(r),Number.isNaN(r)&&(r=80)),r}function zG(r){return typeof r=="number"?r:typeof r=="string"?/^\d+(?:px)?$/.test(r)?Number.parseInt(r,10):r:null}function jG(...r){return r.length===0?e=>e:r.length===1?r[0]:r.reduce((e,n)=>(...s)=>e(n(...s)))}function Vu(r,e,n){let s=!1;const o=r.indexOf(e),i=o!==-1,l=a=>{a==="add"?r.push(e):r.splice(o,1),s=!0,Re(e.children)&&e.children.forEach(c=>{Vu(r,c,n??!i)})};return is(n)?n&&!i?l("add"):!n&&i&&l("remove"):l(i?"remove":"add"),s}function HG(r,e,n="children",s="hasChildren"){const o=l=>!(Array.isArray(l)&&l.length);function i(l,a,c){e(l,a,c),a.forEach(u=>{if(u[s]){e(u,null,c+1);return}const d=u[n];o(d)||i(u,d,c+1)})}r.forEach(l=>{if(l[s]){e(l,null,0);return}const a=l[n];o(a)||i(l,a,0)})}let Ur=null;function UG(r,e,n,s){if((Ur==null?void 0:Ur.trigger)===n)return;Ur==null||Ur();const o=s==null?void 0:s.refs.tableWrapper,i=o==null?void 0:o.dataset.prefix,l={strategy:"fixed",...r.popperOptions},a=T(gs,{content:e,virtualTriggering:!0,virtualRef:n,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0,...r,popperOptions:l,onHide:()=>{Ur==null||Ur()}});a.appContext={...s.appContext,...s};const c=document.createElement("div");ji(a,c),a.component.exposed.onOpen();const u=o==null?void 0:o.querySelector(`.${i}-scrollbar__wrap`);Ur=()=>{ji(null,c),u==null||u.removeEventListener("scroll",Ur),Ur=null},Ur.trigger=n,u==null||u.addEventListener("scroll",Ur)}function yA(r){return r.children?o5(r.children,yA):[r]}function gS(r,e){return r+e.colSpan}const wA=(r,e,n,s)=>{let o=0,i=r;const l=n.states.columns.value;if(s){const c=yA(s[r]);o=l.slice(0,l.indexOf(c[0])).reduce(gS,0),i=o+c.reduce(gS,0)-1}else o=r;let a;switch(e){case"left":i=l.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:i=l.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:o,after:i}:{}},jy=(r,e,n,s,o,i=0)=>{const l=[],{direction:a,start:c,after:u}=wA(e,n,s,o);if(a){const d=a==="left";l.push(`${r}-fixed-column--${a}`),d&&u+i===s.states.fixedLeafColumnsLength.value-1?l.push("is-last-column"):!d&&c-i===s.states.columns.value.length-s.states.rightFixedLeafColumnsLength.value&&l.push("is-first-column")}return l};function mS(r,e){return r+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const Hy=(r,e,n,s)=>{const{direction:o,start:i=0,after:l=0}=wA(r,e,n,s);if(!o)return;const a={},c=o==="left",u=n.states.columns.value;return c?a.left=u.slice(0,i).reduce(mS,0):a.right=u.slice(l+1).reverse().reduce(mS,0),a},bc=(r,e)=>{r&&(Number.isNaN(r[e])||(r[e]=`${r[e]}px`))};function WG(r){const e=bt(),n=j(!1),s=j([]);return{updateExpandRows:()=>{const c=r.data.value||[],u=r.rowKey.value;if(n.value)s.value=c.slice();else if(u){const d=$l(s.value,u);s.value=c.reduce((f,h)=>{const p=Kn(h,u);return d[p]&&f.push(h),f},[])}else s.value=[]},toggleRowExpansion:(c,u)=>{Vu(s.value,c,u)&&e.emit("expand-change",c,s.value.slice())},setExpandRowKeys:c=>{e.store.assertRowKey();const u=r.data.value||[],d=r.rowKey.value,f=$l(u,d);s.value=c.reduce((h,p)=>{const g=f[p];return g&&h.push(g.row),h},[])},isRowExpanded:c=>{const u=r.rowKey.value;return u?!!$l(s.value,u)[Kn(c,u)]:s.value.includes(c)},states:{expandRows:s,defaultExpandAll:n}}}function qG(r){const e=bt(),n=j(null),s=j(null),o=u=>{e.store.assertRowKey(),n.value=u,l(u)},i=()=>{n.value=null},l=u=>{const{data:d,rowKey:f}=r;let h=null;f.value&&(h=(S(d)||[]).find(p=>Kn(p,f.value)===u)),s.value=h,e.emit("current-change",s.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:i,setCurrentRowByKey:l,updateCurrentRow:u=>{const d=s.value;if(u&&u!==d){s.value=u,e.emit("current-change",s.value,d);return}!u&&d&&(s.value=null,e.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=r.rowKey.value,d=r.data.value||[],f=s.value;if(!d.includes(f)&&f){if(u){const h=Kn(f,u);l(h)}else s.value=null;s.value===null&&e.emit("current-change",null,f)}else n.value&&(l(n.value),i())},states:{_currentRowKey:n,currentRow:s}}}function GG(r){const e=j([]),n=j({}),s=j(16),o=j(!1),i=j({}),l=j("hasChildren"),a=j("children"),c=bt(),u=z(()=>{if(!r.rowKey.value)return{};const b=r.data.value||[];return f(b)}),d=z(()=>{const b=r.rowKey.value,C=Object.keys(i.value),y={};return C.length&&C.forEach(w=>{if(i.value[w].length){const x={children:[]};i.value[w].forEach(E=>{const _=Kn(E,b);x.children.push(_),E[l.value]&&!y[_]&&(y[_]={children:[]})}),y[w]=x}}),y}),f=b=>{const C=r.rowKey.value,y={};return HG(b,(w,x,E)=>{const _=Kn(w,C);Array.isArray(x)?y[_]={children:x.map(M=>Kn(M,C)),level:E}:o.value&&(y[_]={children:[],lazy:!0,level:E})},a.value,l.value),y},h=(b=!1,C=(y=>(y=c.store)==null?void 0:y.states.defaultExpandAll.value)())=>{var y;const w=u.value,x=d.value,E=Object.keys(w),_={};if(E.length){const M=S(n),A=[],k=($,B)=>{if(b)return e.value?C||e.value.includes(B):!!(C||$!=null&&$.expanded);{const W=C||e.value&&e.value.includes(B);return!!($!=null&&$.expanded||W)}};E.forEach($=>{const B=M[$],W={...w[$]};if(W.expanded=k(B,$),W.lazy){const{loaded:I=!1,loading:R=!1}=B||{};W.loaded=!!I,W.loading=!!R,A.push($)}_[$]=W});const P=Object.keys(x);o.value&&P.length&&A.length&&P.forEach($=>{const B=M[$],W=x[$].children;if(A.includes($)){if(_[$].children.length!==0)throw new Error("[ElTable]children must be an empty array.");_[$].children=W}else{const{loaded:I=!1,loading:R=!1}=B||{};_[$]={lazy:!0,loaded:!!I,loading:!!R,expanded:k(B,$),children:W,level:""}}})}n.value=_,(y=c.store)==null||y.updateTableScrollY()};$e(()=>e.value,()=>{h(!0)}),$e(()=>u.value,()=>{h()}),$e(()=>d.value,()=>{h()});const p=b=>{e.value=b,h()},g=(b,C)=>{c.store.assertRowKey();const y=r.rowKey.value,w=Kn(b,y),x=w&&n.value[w];if(w&&x&&"expanded"in x){const E=x.expanded;C=typeof C>"u"?!x.expanded:C,n.value[w].expanded=C,E!==C&&c.emit("expand-change",b,C),c.store.updateTableScrollY()}},m=b=>{c.store.assertRowKey();const C=r.rowKey.value,y=Kn(b,C),w=n.value[y];o.value&&w&&"loaded"in w&&!w.loaded?v(b,y,w):g(b,void 0)},v=(b,C,y)=>{const{load:w}=c.props;w&&!n.value[C].loaded&&(n.value[C].loading=!0,w(b,y,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,x.length&&(i.value[C]=x),c.emit("expand-change",b,!0)}))};return{loadData:v,loadOrToggle:m,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,normalize:f,states:{expandRowKeys:e,treeData:n,indent:s,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:l,childrenColumnName:a}}}const KG=(r,e)=>{const n=e.sortingColumn;return!n||typeof n.sortable=="string"?r:VG(r,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy)},ph=r=>{const e=[];return r.forEach(n=>{n.children&&n.children.length>0?e.push.apply(e,ph(n.children)):e.push(n)}),e};function YG(){var r;const e=bt(),{size:n}=Uo((r=e.proxy)==null?void 0:r.$props),s=j(null),o=j([]),i=j([]),l=j(!1),a=j([]),c=j([]),u=j([]),d=j([]),f=j([]),h=j([]),p=j([]),g=j([]),m=[],v=j(0),b=j(0),C=j(0),y=j(!1),w=j([]),x=j(!1),E=j(!1),_=j(null),M=j({}),A=j(null),k=j(null),P=j(null),$=j(null),B=j(null);$e(o,()=>e.state&&U(!1),{deep:!0});const W=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},I=Me=>{var ke;(ke=Me.children)==null||ke.forEach(Je=>{Je.fixed=Me.fixed,I(Je)})},R=()=>{a.value.forEach(ue=>{I(ue)}),d.value=a.value.filter(ue=>ue.fixed===!0||ue.fixed==="left"),f.value=a.value.filter(ue=>ue.fixed==="right"),d.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));const Me=a.value.filter(ue=>!ue.fixed);c.value=[].concat(d.value).concat(Me).concat(f.value);const ke=ph(Me),Je=ph(d.value),it=ph(f.value);v.value=ke.length,b.value=Je.length,C.value=it.length,u.value=[].concat(Je).concat(ke).concat(it),l.value=d.value.length>0||f.value.length>0},U=(Me,ke=!1)=>{Me&&R(),ke?e.state.doLayout():e.state.debouncedUpdateLayout()},Q=Me=>w.value.includes(Me),q=()=>{y.value=!1;const Me=w.value;w.value=[],Me.length&&e.emit("selection-change",[])},ee=()=>{let Me;if(s.value){Me=[];const ke=$l(w.value,s.value),Je=$l(o.value,s.value);for(const it in ke)wt(ke,it)&&!Je[it]&&Me.push(ke[it].row)}else Me=w.value.filter(ke=>!o.value.includes(ke));if(Me.length){const ke=w.value.filter(Je=>!Me.includes(Je));w.value=ke,e.emit("selection-change",ke.slice())}},de=()=>(w.value||[]).slice(),ce=(Me,ke=void 0,Je=!0)=>{if(Vu(w.value,Me,ke)){const ue=(w.value||[]).slice();Je&&e.emit("select",ue,Me),e.emit("selection-change",ue)}},Te=()=>{var Me,ke;const Je=E.value?!y.value:!(y.value||w.value.length);y.value=Je;let it=!1,ue=0;const Ie=(ke=(Me=e==null?void 0:e.store)==null?void 0:Me.states)==null?void 0:ke.rowKey.value;o.value.forEach((Fe,lt)=>{const ct=lt+ue;_.value?_.value.call(null,Fe,ct)&&Vu(w.value,Fe,Je)&&(it=!0):Vu(w.value,Fe,Je)&&(it=!0),ue+=Ee(Kn(Fe,Ie))}),it&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",(w.value||[]).slice())},fe=()=>{const Me=$l(w.value,s.value);o.value.forEach(ke=>{const Je=Kn(ke,s.value),it=Me[Je];it&&(w.value[it.index]=ke)})},we=()=>{var Me,ke,Je;if(((Me=o.value)==null?void 0:Me.length)===0){y.value=!1;return}let it;s.value&&(it=$l(w.value,s.value));const ue=function(ct){return it?!!it[Kn(ct,s.value)]:w.value.includes(ct)};let Ie=!0,Fe=0,lt=0;for(let ct=0,xn=(o.value||[]).length;ct{var ke;if(!e||!e.store)return 0;const{treeData:Je}=e.store.states;let it=0;const ue=(ke=Je.value[Me])==null?void 0:ke.children;return ue&&(it+=ue.length,ue.forEach(Ie=>{it+=Ee(Ie)})),it},G=(Me,ke)=>{Array.isArray(Me)||(Me=[Me]);const Je={};return Me.forEach(it=>{M.value[it.id]=ke,Je[it.columnKey||it.id]=ke}),Je},ne=(Me,ke,Je)=>{k.value&&k.value!==Me&&(k.value.order=null),k.value=Me,P.value=ke,$.value=Je},se=()=>{let Me=S(i);Object.keys(M.value).forEach(ke=>{const Je=M.value[ke];if(!Je||Je.length===0)return;const it=bA({columns:u.value},ke);it&&it.filterMethod&&(Me=Me.filter(ue=>Je.some(Ie=>it.filterMethod.call(null,Ie,ue,it))))}),A.value=Me},me=()=>{o.value=KG(A.value,{sortingColumn:k.value,sortProp:P.value,sortOrder:$.value})},Pe=(Me=void 0)=>{Me&&Me.filter||se(),me()},Se=Me=>{const{tableHeaderRef:ke}=e.refs;if(!ke)return;const Je=Object.assign({},ke.filterPanels),it=Object.keys(Je);if(it.length)if(typeof Me=="string"&&(Me=[Me]),Array.isArray(Me)){const ue=Me.map(Ie=>FG({columns:u.value},Ie));it.forEach(Ie=>{const Fe=ue.find(lt=>lt.id===Ie);Fe&&(Fe.filteredValue=[])}),e.store.commit("filterChange",{column:ue,values:[],silent:!0,multi:!0})}else it.forEach(ue=>{const Ie=u.value.find(Fe=>Fe.id===ue);Ie&&(Ie.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},D=()=>{k.value&&(ne(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:L,toggleRowExpansion:te,updateExpandRows:he,states:ge,isRowExpanded:Ce}=WG({data:o,rowKey:s}),{updateTreeExpandKeys:xe,toggleTreeExpansion:V,updateTreeData:F,loadOrToggle:J,states:ie}=GG({data:o,rowKey:s}),{updateCurrentRowData:Ae,updateCurrentRow:re,setCurrentRowKey:Z,states:ae}=qG({data:o,rowKey:s});return{assertRowKey:W,updateColumns:R,scheduleLayout:U,isSelected:Q,clearSelection:q,cleanSelection:ee,getSelectionRows:de,toggleRowSelection:ce,_toggleAllSelection:Te,toggleAllSelection:null,updateSelectionByRowKey:fe,updateAllSelected:we,updateFilters:G,updateCurrentRow:re,updateSort:ne,execFilter:se,execSort:me,execQuery:Pe,clearFilter:Se,clearSort:D,toggleRowExpansion:te,setExpandRowKeysAdapter:Me=>{L(Me),xe(Me)},setCurrentRowKey:Z,toggleRowExpansionAdapter:(Me,ke)=>{u.value.some(({type:it})=>it==="expand")?te(Me,ke):V(Me,ke)},isRowExpanded:Ce,updateExpandRows:he,updateCurrentRowData:Ae,loadOrToggle:J,updateTreeData:F,states:{tableSize:n,rowKey:s,data:o,_data:i,isComplex:l,_columns:a,originColumns:c,columns:u,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:g,updateOrderFns:m,leafColumnsLength:v,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:y,selection:w,reserveSelection:x,selectOnIndeterminate:E,selectable:_,filters:M,filteredData:A,sortingColumn:k,sortProp:P,sortOrder:$,hoverRow:B,...ge,...ie,...ae}}}function Db(r,e){return r.map(n=>{var s;return n.id===e.id?e:((s=n.children)!=null&&s.length&&(n.children=Db(n.children,e)),n)})}function Vb(r){r.forEach(e=>{var n,s;e.no=(n=e.getColumnIndex)==null?void 0:n.call(e),(s=e.children)!=null&&s.length&&Vb(e.children)}),r.sort((e,n)=>e.no-n.no)}function JG(){const r=bt(),e=YG();return{ns:Ge("table"),...e,mutations:{setData(l,a){const c=S(l._data)!==a;l.data.value=a,l._data.value=a,r.store.execQuery(),r.store.updateCurrentRowData(),r.store.updateExpandRows(),r.store.updateTreeData(r.store.states.defaultExpandAll.value),S(l.reserveSelection)?(r.store.assertRowKey(),r.store.updateSelectionByRowKey()):c?r.store.clearSelection():r.store.cleanSelection(),r.store.updateAllSelected(),r.$ready&&r.store.scheduleLayout()},insertColumn(l,a,c,u){const d=S(l._columns);let f=[];c?(c&&!c.children&&(c.children=[]),c.children.push(a),f=Db(d,c)):(d.push(a),f=d),Vb(f),l._columns.value=f,l.updateOrderFns.push(u),a.type==="selection"&&(l.selectable.value=a.selectable,l.reserveSelection.value=a.reserveSelection),r.$ready&&(r.store.updateColumns(),r.store.scheduleLayout())},updateColumnOrder(l,a){var c;((c=a.getColumnIndex)==null?void 0:c.call(a))!==a.no&&(Vb(l._columns.value),r.$ready&&r.store.updateColumns())},removeColumn(l,a,c,u){const d=S(l._columns)||[];if(c)c.children.splice(c.children.findIndex(h=>h.id===a.id),1),tt(()=>{var h;((h=c.children)==null?void 0:h.length)===0&&delete c.children}),l._columns.value=Db(d,c);else{const h=d.indexOf(a);h>-1&&(d.splice(h,1),l._columns.value=d)}const f=l.updateOrderFns.indexOf(u);f>-1&&l.updateOrderFns.splice(f,1),r.$ready&&(r.store.updateColumns(),r.store.scheduleLayout())},sort(l,a){const{prop:c,order:u,init:d}=a;if(c){const f=S(l.columns).find(h=>h.property===c);f&&(f.order=u,r.store.updateSort(f,c,u),r.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(l,a){const{sortingColumn:c,sortProp:u,sortOrder:d}=l,f=S(c),h=S(u),p=S(d);p===null&&(l.sortingColumn.value=null,l.sortProp.value=null);const g={filter:!0};r.store.execQuery(g),(!a||!(a.silent||a.init))&&r.emit("sort-change",{column:f,prop:h,order:p}),r.store.updateTableScrollY()},filterChange(l,a){const{column:c,values:u,silent:d}=a,f=r.store.updateFilters(c,u);r.store.execQuery(),d||r.emit("filter-change",f),r.store.updateTableScrollY()},toggleAllSelection(){r.store.toggleAllSelection()},rowSelectedChanged(l,a){r.store.toggleRowSelection(a),r.store.updateAllSelected()},setHoverRow(l,a){l.hoverRow.value=a},setCurrentRow(l,a){r.store.updateCurrentRow(a)}},commit:function(l,...a){const c=r.store.mutations;if(c[l])c[l].apply(r,[r.store.states].concat(a));else throw new Error(`Action not found: ${l}`)},updateTableScrollY:function(){tt(()=>r.layout.updateScrollY.apply(r.layout))}}}const Fu={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 XG(r,e){if(!r)throw new Error("Table is required.");const n=JG();return n.toggleAllSelection=dc(n._toggleAllSelection,10),Object.keys(Fu).forEach(s=>{CA(SA(e,s),s,n)}),ZG(n,e),n}function ZG(r,e){Object.keys(Fu).forEach(n=>{$e(()=>SA(e,n),s=>{CA(s,n,r)})})}function CA(r,e,n){let s=r,o=Fu[e];typeof Fu[e]=="object"&&(o=o.key,s=s||Fu[e].default),n.states[o].value=s}function SA(r,e){if(e.includes(".")){const n=e.split(".");let s=r;return n.forEach(o=>{s=s[o]}),s}else return r[e]}class QG{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=j(null),this.scrollX=j(!1),this.scrollY=j(!1),this.bodyWidth=j(null),this.fixedWidth=j(null),this.rightFixedWidth=j(null),this.gutterWidth=0;for(const n in e)wt(e,n)&&(qt(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 s=!0;const o=this.scrollY.value;return s=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=s,o!==s}return!1}setHeight(e,n="height"){if(!Ct)return;const s=this.table.vnode.el;if(e=zG(e),this.height.value=Number(e),!s&&(e||e===0))return tt(()=>this.setHeight(e,n));typeof e=="number"?(s.style[n]=`${e}px`,this.updateElsHeight()):typeof e=="string"&&(s.style[n]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(s=>{s.isColumnGroup?e.push.apply(e,s.columns):e.push(s)}),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(!Ct)return;const e=this.fit,n=this.table.vnode.el.clientWidth;let s=0;const o=this.getFlattenColumns(),i=o.filter(c=>typeof c.width!="number");if(o.forEach(c=>{typeof c.width=="number"&&c.realWidth&&(c.realWidth=null)}),i.length>0&&e){if(o.forEach(c=>{s+=Number(c.width||c.minWidth||80)}),s<=n){this.scrollX.value=!1;const c=n-s;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+c;else{const u=i.reduce((h,p)=>h+Number(p.minWidth||80),0),d=c/u;let f=0;i.forEach((h,p)=>{if(p===0)return;const g=Math.floor(Number(h.minWidth||80)*d);f+=g,h.realWidth=Number(h.minWidth||80)+g}),i[0].realWidth=Number(i[0].minWidth||80)+c-f}}else this.scrollX.value=!0,i.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(s,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),s+=c.realWidth}),this.scrollX.value=s>n,this.bodyWidth.value=s;const l=this.store.states.fixedColumns.value;if(l.length>0){let c=0;l.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.fixedWidth.value=c}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let c=0;a.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}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(s=>{var o,i;switch(e){case"columns":(o=s.state)==null||o.onColumnsChange(this);break;case"scrollable":(i=s.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}}const{CheckboxGroup:eK}=ra,tK=pe({name:"ElTableFilterPanel",components:{ElCheckbox:ra,ElCheckboxGroup:eK,ElScrollbar:Qp,ElTooltip:gs,ElIcon:dt,ArrowDown:hy,ArrowUp:z_},directives:{ClickOutside:$O},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(r){const e=bt(),{t:n}=go(),s=Ge("table-filter"),o=e==null?void 0:e.parent;o.filterPanels.value[r.column.id]||(o.filterPanels.value[r.column.id]=e);const i=j(!1),l=j(null),a=z(()=>r.column&&r.column.filters),c=z(()=>r.column.filterClassName?`${s.b()} ${r.column.filterClassName}`:s.b()),u=z({get:()=>{var x;return(((x=r.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{d.value&&(typeof x<"u"&&x!==null?d.value.splice(0,1,x):d.value.splice(0,1))}}),d=z({get(){return r.column?r.column.filteredValue||[]:[]},set(x){r.column&&r.upDataColumn("filteredValue",x)}}),f=z(()=>r.column?r.column.filterMultiple:!0),h=x=>x.value===u.value,p=()=>{i.value=!1},g=x=>{x.stopPropagation(),i.value=!i.value},m=()=>{i.value=!1},v=()=>{y(d.value),p()},b=()=>{d.value=[],y(d.value),p()},C=x=>{u.value=x,y(typeof x<"u"&&x!==null?d.value:[]),p()},y=x=>{r.store.commit("filterChange",{column:r.column,values:x}),r.store.updateAllSelected()};$e(i,x=>{r.column&&r.upDataColumn("filterOpened",x)},{immediate:!0});const w=z(()=>{var x,E;return(E=(x=l.value)==null?void 0:x.popperRef)==null?void 0:E.contentRef});return{tooltipVisible:i,multiple:f,filterClassName:c,filteredValue:d,filterValue:u,filters:a,handleConfirm:v,handleReset:b,handleSelect:C,isActive:h,t:n,ns:s,showFilterPanel:g,hideFilterPanel:m,popperPaneRef:w,tooltip:l}}}),nK={key:0},rK=["disabled"],sK=["label","onClick"];function oK(r,e,n,s,o,i){const l=Pt("el-checkbox"),a=Pt("el-checkbox-group"),c=Pt("el-scrollbar"),u=Pt("arrow-up"),d=Pt("arrow-down"),f=Pt("el-icon"),h=Pt("el-tooltip"),p=Fv("click-outside");return N(),ye(h,{ref:"tooltip",visible:r.tooltipVisible,offset:0,placement:r.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":r.filterClassName,persistent:""},{content:O(()=>[r.multiple?(N(),X("div",nK,[H("div",{class:Y(r.ns.e("content"))},[T(c,{"wrap-class":r.ns.e("wrap")},{default:O(()=>[T(a,{modelValue:r.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=g=>r.filteredValue=g),class:Y(r.ns.e("checkbox-group"))},{default:O(()=>[(N(!0),X(De,null,Ot(r.filters,g=>(N(),ye(l,{key:g.value,value:g.value},{default:O(()=>[le(oe(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),H("div",{class:Y(r.ns.e("bottom"))},[H("button",{class:Y({[r.ns.is("disabled")]:r.filteredValue.length===0}),disabled:r.filteredValue.length===0,type:"button",onClick:e[1]||(e[1]=(...g)=>r.handleConfirm&&r.handleConfirm(...g))},oe(r.t("el.table.confirmFilter")),11,rK),H("button",{type:"button",onClick:e[2]||(e[2]=(...g)=>r.handleReset&&r.handleReset(...g))},oe(r.t("el.table.resetFilter")),1)],2)])):(N(),X("ul",{key:1,class:Y(r.ns.e("list"))},[H("li",{class:Y([r.ns.e("list-item"),{[r.ns.is("active")]:r.filterValue===void 0||r.filterValue===null}]),onClick:e[3]||(e[3]=g=>r.handleSelect(null))},oe(r.t("el.table.clearFilter")),3),(N(!0),X(De,null,Ot(r.filters,g=>(N(),X("li",{key:g.value,class:Y([r.ns.e("list-item"),r.ns.is("active",r.isActive(g))]),label:g.value,onClick:m=>r.handleSelect(g.value)},oe(g.text),11,sK))),128))],2))]),default:O(()=>[Ue((N(),X("span",{class:Y([`${r.ns.namespace.value}-table__column-filter-trigger`,`${r.ns.namespace.value}-none-outline`]),onClick:e[4]||(e[4]=(...g)=>r.showFilterPanel&&r.showFilterPanel(...g))},[T(f,null,{default:O(()=>[r.column.filterOpened?(N(),ye(u,{key:0})):(N(),ye(d,{key:1}))]),_:1})],2)),[[p,r.hideFilterPanel,r.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var iK=Xe(tK,[["render",oK],["__file","filter-panel.vue"]]);function xA(r){const e=bt();zd(()=>{n.value.addObserver(e)}),nt(()=>{s(n.value),o(n.value)}),ua(()=>{s(n.value),o(n.value)}),qo(()=>{n.value.removeObserver(e)});const n=z(()=>{const i=r.layout;if(!i)throw new Error("Can not find table layout.");return i}),s=i=>{var l;const a=((l=r.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const c=i.getFlattenColumns(),u={};c.forEach(d=>{u[d.id]=d});for(let d=0,f=a.length;d{var l,a;const c=((l=r.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=c.length;d{m.stopPropagation()},i=(m,v)=>{!v.filters&&v.sortable?g(m,v,!1):v.filterable&&!v.sortable&&o(m),s==null||s.emit("header-click",v,m)},l=(m,v)=>{s==null||s.emit("header-contextmenu",v,m)},a=j(null),c=j(!1),u=j({}),d=(m,v)=>{if(Ct&&!(v.children&&v.children.length>0)&&a.value&&r.border){c.value=!0;const b=s;e("set-drag-visible",!0);const y=(b==null?void 0:b.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${v.id}`),x=w.getBoundingClientRect(),E=x.left-y+30;ea(w,"noclick"),u.value={startMouseLeft:m.clientX,startLeft:x.right-y,startColumnLeft:x.left-y,tableLeft:y};const _=b==null?void 0:b.refs.resizeProxy;_.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const M=k=>{const P=k.clientX-u.value.startMouseLeft,$=u.value.startLeft+P;_.style.left=`${Math.max(E,$)}px`},A=()=>{if(c.value){const{startColumnLeft:k,startLeft:P}=u.value,B=Number.parseInt(_.style.left,10)-k;v.width=v.realWidth=B,b==null||b.emit("header-dragend",v.width,P-k,v,m),requestAnimationFrame(()=>{r.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,a.value=null,u.value={},e("set-drag-visible",!1)}document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{io(w,"noclick")},0)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",A)}},f=(m,v)=>{if(v.children&&v.children.length>0)return;const b=m.target;if(!ls(b))return;const C=b==null?void 0:b.closest("th");if(!(!v||!v.resizable)&&!c.value&&r.border){const y=C.getBoundingClientRect(),w=document.body.style;y.width>12&&y.right-m.pageX<8?(w.cursor="col-resize",Wa(C,"is-sortable")&&(C.style.cursor="col-resize"),a.value=v):c.value||(w.cursor="",Wa(C,"is-sortable")&&(C.style.cursor="pointer"),a.value=null)}},h=()=>{Ct&&(document.body.style.cursor="")},p=({order:m,sortOrders:v})=>{if(m==="")return v[0];const b=v.indexOf(m||null);return v[b>v.length-2?0:b+1]},g=(m,v,b)=>{var C;m.stopPropagation();const y=v.order===b?null:b||p(v),w=(C=m.target)==null?void 0:C.closest("th");if(w&&Wa(w,"noclick")){io(w,"noclick");return}if(!v.sortable)return;const x=r.store.states;let E=x.sortProp.value,_;const M=x.sortingColumn.value;(M!==v||M===v&&M.order===null)&&(M&&(M.order=null),x.sortingColumn.value=v,E=v.property),y?_=v.order=y:_=v.order=null,x.sortProp.value=E,x.sortOrder.value=_,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:l,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:o}}function aK(r){const e=Ve(bo),n=Ge("table");return{getHeaderRowStyle:a=>{const c=e==null?void 0:e.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:a}):c},getHeaderRowClass:a=>{const c=[],u=e==null?void 0:e.props.headerRowClassName;return typeof u=="string"?c.push(u):typeof u=="function"&&c.push(u.call(null,{rowIndex:a})),c.join(" ")},getHeaderCellStyle:(a,c,u,d)=>{var f;let h=(f=e==null?void 0:e.props.headerCellStyle)!=null?f:{};typeof h=="function"&&(h=h.call(null,{rowIndex:a,columnIndex:c,row:u,column:d}));const p=Hy(c,d.fixed,r.store,u);return bc(p,"left"),bc(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(a,c,u,d)=>{const f=jy(n.b(),c,d.fixed,r.store,u),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const p=e==null?void 0:e.props.headerCellClassName;return typeof p=="string"?h.push(p):typeof p=="function"&&h.push(p.call(null,{rowIndex:a,columnIndex:c,row:u,column:d})),h.push(n.e("cell")),h.filter(g=>!!g).join(" ")}}}const EA=r=>{const e=[];return r.forEach(n=>{n.children?(e.push(n),e.push.apply(e,EA(n.children))):e.push(n)}),e},cK=r=>{let e=1;const n=(i,l)=>{if(l&&(i.level=l.level+1,e{n(c,i),a+=c.colSpan}),i.colSpan=a}else i.colSpan=1};r.forEach(i=>{i.level=1,n(i,void 0)});const s=[];for(let i=0;i{i.children?(i.rowSpan=1,i.children.forEach(l=>l.isSubColumn=!0)):i.rowSpan=e-i.level+1,s[i.level-1].push(i)}),s};function uK(r){const e=Ve(bo),n=z(()=>cK(r.store.states.originColumns.value));return{isGroup:z(()=>{const i=n.value.length>1;return i&&e&&(e.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),e==null||e.store.commit("toggleAllSelection")},columnRows:n}}var dK=pe({name:"ElTableHeader",components:{ElCheckbox:ra},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(r,{emit:e}){const n=bt(),s=Ve(bo),o=Ge("table"),i=j({}),{onColumnsChange:l,onScrollableChange:a}=xA(s);nt(async()=>{await tt(),await tt();const{prop:E,order:_}=r.defaultSort;s==null||s.store.commit("sort",{prop:E,order:_,init:!0})});const{handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:g}=lK(r,e),{getHeaderRowStyle:m,getHeaderRowClass:v,getHeaderCellStyle:b,getHeaderCellClass:C}=aK(r),{isGroup:y,toggleAllSelection:w,columnRows:x}=uK(r);return n.state={onColumnsChange:l,onScrollableChange:a},n.filterPanels=i,{ns:o,filterPanels:i,onColumnsChange:l,onScrollableChange:a,columnRows:x,getHeaderRowClass:v,getHeaderRowStyle:m,getHeaderCellClass:C,getHeaderCellStyle:b,handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:g,isGroup:y,toggleAllSelection:w}},render(){const{ns:r,isGroup:e,columnRows:n,getHeaderCellStyle:s,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:l,handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:f,handleMouseOut:h,store:p,$parent:g}=this;let m=1;return Ye("thead",{class:{[r.is("group")]:e}},n.map((v,b)=>Ye("tr",{class:i(b),key:b,style:l(b)},v.map((C,y)=>(C.rowSpan>m&&(m=C.rowSpan),Ye("th",{class:o(b,y,v,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:s(b,y,v,C),onClick:w=>a(w,C),onContextmenu:w=>c(w,C),onMousedown:w=>u(w,C),onMousemove:w=>d(w,C),onMouseout:h},[Ye("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":""]},[C.renderHeader?C.renderHeader({column:C,$index:y,store:p,_self:g}):C.label,C.sortable&&Ye("span",{onClick:w=>f(w,C),class:"caret-wrapper"},[Ye("i",{onClick:w=>f(w,C,"ascending"),class:"sort-caret ascending"}),Ye("i",{onClick:w=>f(w,C,"descending"),class:"sort-caret descending"})]),C.filterable&&Ye(iK,{store:p,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(w,x)=>{C[w]=x}})])]))))))}});function om(r,e,n=.01){return r-e>n}function fK(r){const e=Ve(bo),n=j(""),s=j(Ye("div")),o=(g,m,v)=>{var b;const C=e,y=sm(g);let w;const x=(b=C==null?void 0:C.vnode.el)==null?void 0:b.dataset.prefix;y&&(w=pS({columns:r.store.states.columns.value},y,x),w&&(C==null||C.emit(`cell-${v}`,m,w,y,g))),C==null||C.emit(`row-${v}`,m,w,g)},i=(g,m)=>{o(g,m,"dblclick")},l=(g,m)=>{r.store.commit("setCurrentRow",m),o(g,m,"click")},a=(g,m)=>{o(g,m,"contextmenu")},c=dc(g=>{r.store.commit("setHoverRow",g)},30),u=dc(()=>{r.store.commit("setHoverRow",null)},30),d=g=>{const m=window.getComputedStyle(g,null),v=Number.parseInt(m.paddingLeft,10)||0,b=Number.parseInt(m.paddingRight,10)||0,C=Number.parseInt(m.paddingTop,10)||0,y=Number.parseInt(m.paddingBottom,10)||0;return{left:v,right:b,top:C,bottom:y}},f=(g,m,v)=>{let b=m.target.parentNode;for(;g>1&&(b=b==null?void 0:b.nextSibling,!(!b||b.nodeName!=="TR"));)v(b,"hover-row hover-fixed-row"),g--};return{handleDoubleClick:i,handleClick:l,handleContextMenu:a,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(g,m,v)=>{var b;const C=e,y=sm(g),w=(b=C==null?void 0:C.vnode.el)==null?void 0:b.dataset.prefix;if(y){const q=pS({columns:r.store.states.columns.value},y,w);y.rowSpan>1&&f(y.rowSpan,g,ea);const ee=C.hoverState={cell:y,column:q,row:m};C==null||C.emit("cell-mouse-enter",ee.row,ee.column,ee.cell,g)}if(!v)return;const x=g.target.querySelector(".cell");if(!(Wa(x,`${w}-tooltip`)&&x.childNodes.length))return;const E=document.createRange();E.setStart(x,0),E.setEnd(x,x.childNodes.length);let{width:_,height:M}=E.getBoundingClientRect();const A=_-Math.floor(_),{width:k,height:P}=x.getBoundingClientRect();A<.001&&(_=Math.floor(_)),M-Math.floor(M)<.001&&(M=Math.floor(M));const{top:B,left:W,right:I,bottom:R}=d(x),U=W+I,Q=B+R;(om(_+U,k)||om(M+Q,P)||om(x.scrollWidth,k))&&UG(v,y.innerText||y.textContent,y,C)},handleCellMouseLeave:g=>{const m=sm(g);if(!m)return;m.rowSpan>1&&f(m.rowSpan,g,io);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,g)},tooltipContent:n,tooltipTrigger:s}}function hK(r){const e=Ve(bo),n=Ge("table");return{getRowStyle:(u,d)=>{const f=e==null?void 0:e.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:d}):f||null},getRowClass:(u,d)=>{const f=[n.e("row")];e!=null&&e.props.highlightCurrentRow&&u===r.store.states.currentRow.value&&f.push("current-row"),r.stripe&&d%2===1&&f.push(n.em("row","striped"));const h=e==null?void 0:e.props.rowClassName;return typeof h=="string"?f.push(h):typeof h=="function"&&f.push(h.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,f,h)=>{const p=e==null?void 0:e.props.cellStyle;let g=p??{};typeof p=="function"&&(g=p.call(null,{rowIndex:u,columnIndex:d,row:f,column:h}));const m=Hy(d,r==null?void 0:r.fixed,r.store);return bc(m,"left"),bc(m,"right"),Object.assign({},g,m)},getCellClass:(u,d,f,h,p)=>{const g=jy(n.b(),d,r==null?void 0:r.fixed,r.store,void 0,p),m=[h.id,h.align,h.className,...g],v=e==null?void 0:e.props.cellClassName;return typeof v=="string"?m.push(v):typeof v=="function"&&m.push(v.call(null,{rowIndex:u,columnIndex:d,row:f,column:h})),m.push(n.e("cell")),m.filter(b=>!!b).join(" ")},getSpan:(u,d,f,h)=>{let p=1,g=1;const m=e==null?void 0:e.props.spanMethod;if(typeof m=="function"){const v=m({row:u,column:d,rowIndex:f,columnIndex:h});Array.isArray(v)?(p=v[0],g=v[1]):typeof v=="object"&&(p=v.rowspan,g=v.colspan)}return{rowspan:p,colspan:g}},getColspanRealWidth:(u,d,f)=>{if(d<1)return u[f].realWidth;const h=u.map(({realWidth:p,width:g})=>p||g).slice(f,f+d);return Number(h.reduce((p,g)=>Number(p)+Number(g),-1))}}}function pK(r){const e=Ve(bo),n=Ge("table"),{handleDoubleClick:s,handleClick:o,handleContextMenu:i,handleMouseEnter:l,handleMouseLeave:a,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:f}=fK(r),{getRowStyle:h,getRowClass:p,getCellStyle:g,getCellClass:m,getSpan:v,getColspanRealWidth:b}=hK(r),C=z(()=>r.store.states.columns.value.findIndex(({type:_})=>_==="default")),y=(_,M)=>{const A=e.props.rowKey;return A?Kn(_,A):M},w=(_,M,A,k=!1)=>{const{tooltipEffect:P,tooltipOptions:$,store:B}=r,{indent:W,columns:I}=B.states,R=p(_,M);let U=!0;return A&&(R.push(n.em("row",`level-${A.level}`)),U=A.display),Ye("tr",{style:[U?null:{display:"none"},h(_,M)],class:R,key:y(_,M),onDblclick:q=>s(q,_),onClick:q=>o(q,_),onContextmenu:q=>i(q,_),onMouseenter:()=>l(M),onMouseleave:a},I.value.map((q,ee)=>{const{rowspan:de,colspan:ce}=v(_,q,M,ee);if(!de||!ce)return null;const Te=Object.assign({},q);Te.realWidth=b(I.value,ce,ee);const fe={store:r.store,_self:r.context||e,column:Te,row:_,$index:M,cellIndex:ee,expanded:k};ee===C.value&&A&&(fe.treeNode={indent:A.level*W.value,level:A.level},typeof A.expanded=="boolean"&&(fe.treeNode.expanded=A.expanded,"loading"in A&&(fe.treeNode.loading=A.loading),"noLazyChildren"in A&&(fe.treeNode.noLazyChildren=A.noLazyChildren)));const we=`${y(_,M)},${ee}`,Ee=Te.columnKey||Te.rawColumnKey||"",G=x(ee,q,fe),ne=q.showOverflowTooltip&&on({effect:P},$,q.showOverflowTooltip);return Ye("td",{style:g(M,ee,_,q),class:m(M,ee,_,q,ce-1),key:`${Ee}${we}`,rowspan:de,colspan:ce,onMouseenter:se=>c(se,_,ne),onMouseleave:u},[G])}))},x=(_,M,A)=>M.renderCell(A);return{wrappedRowRender:(_,M)=>{const A=r.store,{isRowExpanded:k,assertRowKey:P}=A,{treeData:$,lazyTreeNodeMap:B,childrenColumnName:W,rowKey:I}=A.states,R=A.states.columns.value;if(R.some(({type:Q})=>Q==="expand")){const Q=k(_),q=w(_,M,void 0,Q),ee=e.renderExpanded;return Q?ee?[[q,Ye("tr",{key:`expanded-row__${q.key}`},[Ye("td",{colspan:R.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[ee({row:_,$index:M,store:A,expanded:Q})])])]]:q:[[q]]}else if(Object.keys($.value).length){P();const Q=Kn(_,I.value);let q=$.value[Q],ee=null;q&&(ee={expanded:q.expanded,level:q.level,display:!0},typeof q.lazy=="boolean"&&(typeof q.loaded=="boolean"&&q.loaded&&(ee.noLazyChildren=!(q.children&&q.children.length)),ee.loading=q.loading));const de=[w(_,M,ee)];if(q){let ce=0;const Te=(we,Ee)=>{we&&we.length&&Ee&&we.forEach(G=>{const ne={display:Ee.display&&Ee.expanded,level:Ee.level+1,expanded:!1,noLazyChildren:!1,loading:!1},se=Kn(G,I.value);if(se==null)throw new Error("For nested data item, row-key is required.");if(q={...$.value[se]},q&&(ne.expanded=q.expanded,q.level=q.level||ne.level,q.display=!!(q.expanded&&ne.display),typeof q.lazy=="boolean"&&(typeof q.loaded=="boolean"&&q.loaded&&(ne.noLazyChildren=!(q.children&&q.children.length)),ne.loading=q.loading)),ce++,de.push(w(G,M+ce,ne)),q){const me=B.value[se]||G[W.value];Te(me,q)}})};q.display=!0;const fe=B.value[Q]||_[W.value];Te(fe,q)}return de}else return w(_,M,void 0)},tooltipContent:d,tooltipTrigger:f}}const gK={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 mK=pe({name:"ElTableBody",props:gK,setup(r){const e=bt(),n=Ve(bo),s=Ge("table"),{wrappedRowRender:o,tooltipContent:i,tooltipTrigger:l}=pK(r),{onColumnsChange:a,onScrollableChange:c}=xA(n),u=[];return $e(r.store.states.hoverRow,(d,f)=>{var h;const p=e==null?void 0:e.vnode.el,g=Array.from((p==null?void 0:p.children)||[]).filter(b=>b==null?void 0:b.classList.contains(`${s.e("row")}`));let m=d;const v=(h=g[m])==null?void 0:h.childNodes;if(v!=null&&v.length){let b=0;Array.from(v).reduce((y,w,x)=>{var E,_;return((E=v[x])==null?void 0:E.colSpan)>1&&(b=(_=v[x])==null?void 0:_.colSpan),w.nodeName!=="TD"&&b===0&&y.push(x),b>0&&b--,y},[]).forEach(y=>{var w;for(m=d;m>0;){const x=(w=g[m-1])==null?void 0:w.childNodes;if(x[y]&&x[y].nodeName==="TD"&&x[y].rowSpan>1){ea(x[y],"hover-cell"),u.push(x[y]);break}m--}})}else u.forEach(b=>io(b,"hover-cell")),u.length=0;!r.store.states.isComplex.value||!Ct||H5(()=>{const b=g[f],C=g[d];b&&!b.classList.contains("hover-fixed-row")&&io(b,"hover-row"),C&&ea(C,"hover-row")})}),qo(()=>{var d;(d=Ur)==null||d()}),{ns:s,onColumnsChange:a,onScrollableChange:c,wrappedRowRender:o,tooltipContent:i,tooltipTrigger:l}},render(){const{wrappedRowRender:r,store:e}=this,n=e.states.data.value||[];return Ye("tbody",{tabIndex:-1},[n.reduce((s,o)=>s.concat(r(o,s.length)),[])])}});function bK(){const r=Ve(bo),e=r==null?void 0:r.store,n=z(()=>e.states.fixedLeafColumnsLength.value),s=z(()=>e.states.rightFixedColumns.value.length),o=z(()=>e.states.columns.value.length),i=z(()=>e.states.fixedColumns.value.length),l=z(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:s,columnsCount:o,leftFixedCount:i,rightFixedCount:l,columns:e.states.columns}}function vK(r){const{columns:e}=bK(),n=Ge("table");return{getCellClasses:(i,l)=>{const a=i[l],c=[n.e("cell"),a.id,a.align,a.labelClassName,...jy(n.b(),l,a.fixed,r.store)];return a.className&&c.push(a.className),a.children||c.push(n.is("leaf")),c},getCellStyles:(i,l)=>{const a=Hy(l,i.fixed,r.store);return bc(a,"left"),bc(a,"right"),a},columns:e}}var yK=pe({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(r){const{getCellClasses:e,getCellStyles:n,columns:s}=vK(r);return{ns:Ge("table"),getCellClasses:e,getCellStyles:n,columns:s}},render(){const{columns:r,getCellStyles:e,getCellClasses:n,summaryMethod:s,sumText:o}=this,i=this.store.states.data.value;let l=[];return s?l=s({columns:r,data:i}):r.forEach((a,c)=>{if(c===0){l[c]=o;return}const u=i.map(p=>Number(p[a.property])),d=[];let f=!0;u.forEach(p=>{if(!Number.isNaN(+p)){f=!1;const g=`${p}`.split(".")[1];d.push(g?g.length:0)}});const h=Math.max.apply(null,d);f?l[c]="":l[c]=u.reduce((p,g)=>{const m=Number(g);return Number.isNaN(+m)?p:Number.parseFloat((p+g).toFixed(Math.min(h,20)))},0)}),Ye(Ye("tfoot",[Ye("tr",{},[...r.map((a,c)=>Ye("td",{key:c,colspan:a.colSpan,rowspan:a.rowSpan,class:n(r,c),style:e(a,c)},[Ye("div",{class:["cell",a.labelClassName]},[l[c]])]))])]))}});function wK(r){return{setCurrentRow:d=>{r.commit("setCurrentRow",d)},getSelectionRows:()=>r.getSelectionRows(),toggleRowSelection:(d,f)=>{r.toggleRowSelection(d,f,!1),r.updateAllSelected()},clearSelection:()=>{r.clearSelection()},clearFilter:d=>{r.clearFilter(d)},toggleAllSelection:()=>{r.commit("toggleAllSelection")},toggleRowExpansion:(d,f)=>{r.toggleRowExpansionAdapter(d,f)},clearSort:()=>{r.clearSort()},sort:(d,f)=>{r.commit("sort",{prop:d,order:f})}}}function CK(r,e,n,s){const o=j(!1),i=j(null),l=j(!1),a=q=>{l.value=q},c=j({width:null,height:null,headerHeight:null}),u=j(!1),d={display:"inline-block",verticalAlign:"middle"},f=j(),h=j(0),p=j(0),g=j(0),m=j(0),v=j(0);to(()=>{e.setHeight(r.height)}),to(()=>{e.setMaxHeight(r.maxHeight)}),$e(()=>[r.currentRowKey,n.states.rowKey],([q,ee])=>{!S(ee)||!S(q)||n.setCurrentRowKey(`${q}`)},{immediate:!0}),$e(()=>r.data,q=>{s.store.commit("setData",q)},{immediate:!0,deep:!0}),to(()=>{r.expandRowKeys&&n.setExpandRowKeysAdapter(r.expandRowKeys)});const b=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},C=(q,ee)=>{const{pixelX:de,pixelY:ce}=ee;Math.abs(de)>=Math.abs(ce)&&(s.refs.bodyWrapper.scrollLeft+=ee.pixelX/5)},y=z(()=>r.height||r.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=z(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),x=()=>{y.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(A)};nt(async()=>{await tt(),n.updateColumns(),k(),requestAnimationFrame(x);const q=s.vnode.el,ee=s.refs.headerWrapper;r.flexible&&q&&q.parentElement&&(q.parentElement.style.minWidth="0"),c.value={width:f.value=q.offsetWidth,height:q.offsetHeight,headerHeight:r.showHeader&&ee?ee.offsetHeight:null},n.states.columns.value.forEach(de=>{de.filteredValue&&de.filteredValue.length&&s.store.commit("filterChange",{column:de,values:de.filteredValue,silent:!0})}),s.$ready=!0});const E=(q,ee)=>{if(!q)return;const de=Array.from(q.classList).filter(ce=>!ce.startsWith("is-scrolling-"));de.push(e.scrollX.value?ee:"is-scrolling-none"),q.className=de.join(" ")},_=q=>{const{tableWrapper:ee}=s.refs;E(ee,q)},M=q=>{const{tableWrapper:ee}=s.refs;return!!(ee&&ee.classList.contains(q))},A=function(){if(!s.refs.scrollBarRef)return;if(!e.scrollX.value){const Ee="is-scrolling-none";M(Ee)||_(Ee);return}const q=s.refs.scrollBarRef.wrapRef;if(!q)return;const{scrollLeft:ee,offsetWidth:de,scrollWidth:ce}=q,{headerWrapper:Te,footerWrapper:fe}=s.refs;Te&&(Te.scrollLeft=ee),fe&&(fe.scrollLeft=ee);const we=ce-de-1;ee>=we?_("is-scrolling-right"):_(ee===0?"is-scrolling-left":"is-scrolling-middle")},k=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&vn(s.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),r.fit?dr(s.vnode.el,P):vn(window,"resize",P),dr(s.refs.bodyWrapper,()=>{var q,ee;P(),(ee=(q=s.refs)==null?void 0:q.scrollBarRef)==null||ee.update()}))},P=()=>{var q,ee,de,ce;const Te=s.vnode.el;if(!s.$ready||!Te)return;let fe=!1;const{width:we,height:Ee,headerHeight:G}=c.value,ne=f.value=Te.offsetWidth;we!==ne&&(fe=!0);const se=Te.offsetHeight;(r.height||y.value)&&Ee!==se&&(fe=!0);const me=r.tableLayout==="fixed"?s.refs.headerWrapper:(q=s.refs.tableHeaderRef)==null?void 0:q.$el;r.showHeader&&(me==null?void 0:me.offsetHeight)!==G&&(fe=!0),h.value=((ee=s.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,g.value=(me==null?void 0:me.scrollHeight)||0,m.value=((de=s.refs.footerWrapper)==null?void 0:de.offsetHeight)||0,v.value=((ce=s.refs.appendWrapper)==null?void 0:ce.offsetHeight)||0,p.value=h.value-g.value-m.value-v.value,fe&&(c.value={width:ne,height:se,headerHeight:r.showHeader&&(me==null?void 0:me.offsetHeight)||0},x())},$=fs(),B=z(()=>{const{bodyWidth:q,scrollY:ee,gutterWidth:de}=e;return q.value?`${q.value-(ee.value?de:0)}px`:""}),W=z(()=>r.maxHeight?"fixed":r.tableLayout),I=z(()=>{if(r.data&&r.data.length)return null;let q="100%";r.height&&p.value&&(q=`${p.value}px`);const ee=f.value;return{width:ee?`${ee}px`:"",height:q}}),R=z(()=>r.height?{height:Number.isNaN(Number(r.height))?r.height:`${r.height}px`}:r.maxHeight?{maxHeight:Number.isNaN(Number(r.maxHeight))?r.maxHeight:`${r.maxHeight}px`}:{}),U=z(()=>r.height?{height:"100%"}:r.maxHeight?Number.isNaN(Number(r.maxHeight))?{maxHeight:`calc(${r.maxHeight} - ${g.value+m.value}px)`}:{maxHeight:`${r.maxHeight-g.value-m.value}px`}:{});return{isHidden:o,renderExpanded:i,setDragVisible:a,isGroup:u,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:$,emptyBlockStyle:I,handleFixedMousewheel:(q,ee)=>{const de=s.refs.bodyWrapper;if(Math.abs(ee.spinY)>0){const ce=de.scrollTop;ee.pixelY<0&&ce!==0&&q.preventDefault(),ee.pixelY>0&&de.scrollHeight-de.clientHeight>ce&&q.preventDefault(),de.scrollTop+=Math.ceil(ee.pixelY/5)}else de.scrollLeft+=Math.ceil(ee.pixelX/5)},resizeProxyVisible:l,bodyWidth:B,resizeState:c,doLayout:x,tableBodyStyles:w,tableLayout:W,scrollbarViewStyle:d,tableInnerStyle:R,scrollbarStyle:U}}function SK(r){const e=j(),n=()=>{const o=r.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},l=r.store.states.updateOrderFns;e.value=new MutationObserver(()=>{l.forEach(a=>a())}),e.value.observe(o,i)};nt(()=>{n()}),qo(()=>{var s;(s=e.value)==null||s.disconnect()})}var xK={data:{type:Array,default:()=>[]},size:Jo,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 TA(r){const e=r.tableLayout==="auto";let n=r.columns||[];e&&n.every(o=>o.width===void 0)&&(n=[]);const s=o=>{const i={key:`${r.tableLayout}_${o.id}`,style:{},name:void 0};return e?i.style={width:`${o.width}px`}:i.name=o.id,i};return Ye("colgroup",{},n.map(o=>Ye("col",s(o))))}TA.props=["columns","tableLayout"];const EK=()=>{const r=j(),e=(i,l)=>{const a=r.value;a&&a.scrollTo(i,l)},n=(i,l)=>{const a=r.value;a&&Tt(l)&&["Top","Left"].includes(i)&&a[`setScroll${i}`](l)};return{scrollBarRef:r,scrollTo:e,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let TK=1;const _K=pe({name:"ElTable",directives:{Mousewheel:A7},components:{TableHeader:dK,TableBody:mK,TableFooter:yK,ElScrollbar:Qp,hColgroup:TA},props:xK,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(r){const{t:e}=go(),n=Ge("table"),s=bt();Wt(bo,s);const o=XG(s,r);s.store=o;const i=new QG({store:s.store,table:s,fit:r.fit,showHeader:r.showHeader});s.layout=i;const l=z(()=>(o.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,sort:m}=wK(o),{isHidden:v,renderExpanded:b,setDragVisible:C,isGroup:y,handleMouseLeave:w,handleHeaderFooterMousewheel:x,tableSize:E,emptyBlockStyle:_,handleFixedMousewheel:M,resizeProxyVisible:A,bodyWidth:k,resizeState:P,doLayout:$,tableBodyStyles:B,tableLayout:W,scrollbarViewStyle:I,tableInnerStyle:R,scrollbarStyle:U}=CK(r,i,o,s),{scrollBarRef:Q,scrollTo:q,setScrollLeft:ee,setScrollTop:de}=EK(),ce=dc($,50),Te=`${n.namespace.value}-table_${TK++}`;s.tableId=Te,s.state={isGroup:y,resizeState:P,doLayout:$,debouncedUpdateLayout:ce};const fe=z(()=>r.sumText||e("el.table.sumText")),we=z(()=>r.emptyText||e("el.table.emptyText"));return SK(s),{ns:n,layout:i,store:o,handleHeaderFooterMousewheel:x,handleMouseLeave:w,tableId:Te,tableSize:E,isHidden:v,isEmpty:l,renderExpanded:b,resizeProxyVisible:A,resizeState:P,isGroup:y,bodyWidth:k,tableBodyStyles:B,emptyBlockStyle:_,debouncedUpdateLayout:ce,handleFixedMousewheel:M,setCurrentRow:a,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,doLayout:$,sort:m,t:e,setDragVisible:C,context:s,computedSumText:fe,computedEmptyText:we,tableLayout:W,scrollbarViewStyle:I,tableInnerStyle:R,scrollbarStyle:U,scrollBarRef:Q,scrollTo:q,setScrollLeft:ee,setScrollTop:de}}}),OK=["data-prefix"],AK={ref:"hiddenColumns",class:"hidden-columns"};function MK(r,e,n,s,o,i){const l=Pt("hColgroup"),a=Pt("table-header"),c=Pt("table-body"),u=Pt("table-footer"),d=Pt("el-scrollbar"),f=Fv("mousewheel");return N(),X("div",{ref:"tableWrapper",class:Y([{[r.ns.m("fit")]:r.fit,[r.ns.m("striped")]:r.stripe,[r.ns.m("border")]:r.border||r.isGroup,[r.ns.m("hidden")]:r.isHidden,[r.ns.m("group")]:r.isGroup,[r.ns.m("fluid-height")]:r.maxHeight,[r.ns.m("scrollable-x")]:r.layout.scrollX.value,[r.ns.m("scrollable-y")]:r.layout.scrollY.value,[r.ns.m("enable-row-hover")]:!r.store.states.isComplex.value,[r.ns.m("enable-row-transition")]:(r.store.states.data.value||[]).length!==0&&(r.store.states.data.value||[]).length<100,"has-footer":r.showSummary},r.ns.m(r.tableSize),r.className,r.ns.b(),r.ns.m(`layout-${r.tableLayout}`)]),style:vt(r.style),"data-prefix":r.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...h)=>r.handleMouseLeave&&r.handleMouseLeave(...h))},[H("div",{class:Y(r.ns.e("inner-wrapper")),style:vt(r.tableInnerStyle)},[H("div",AK,[_e(r.$slots,"default")],512),r.showHeader&&r.tableLayout==="fixed"?Ue((N(),X("div",{key:0,ref:"headerWrapper",class:Y(r.ns.e("header-wrapper"))},[H("table",{ref:"tableHeader",class:Y(r.ns.e("header")),style:vt(r.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[T(l,{columns:r.store.states.columns.value,"table-layout":r.tableLayout},null,8,["columns","table-layout"]),T(a,{ref:"tableHeaderRef",border:r.border,"default-sort":r.defaultSort,store:r.store,onSetDragVisible:r.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,r.handleHeaderFooterMousewheel]]):ve("v-if",!0),H("div",{ref:"bodyWrapper",class:Y(r.ns.e("body-wrapper"))},[T(d,{ref:"scrollBarRef","view-style":r.scrollbarViewStyle,"wrap-style":r.scrollbarStyle,always:r.scrollbarAlwaysOn},{default:O(()=>[H("table",{ref:"tableBody",class:Y(r.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:vt({width:r.bodyWidth,tableLayout:r.tableLayout})},[T(l,{columns:r.store.states.columns.value,"table-layout":r.tableLayout},null,8,["columns","table-layout"]),r.showHeader&&r.tableLayout==="auto"?(N(),ye(a,{key:0,ref:"tableHeaderRef",class:Y(r.ns.e("body-header")),border:r.border,"default-sort":r.defaultSort,store:r.store,onSetDragVisible:r.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):ve("v-if",!0),T(c,{context:r.context,highlight:r.highlightCurrentRow,"row-class-name":r.rowClassName,"tooltip-effect":r.tooltipEffect,"tooltip-options":r.tooltipOptions,"row-style":r.rowStyle,store:r.store,stripe:r.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),r.showSummary&&r.tableLayout==="auto"?(N(),ye(u,{key:1,class:Y(r.ns.e("body-footer")),border:r.border,"default-sort":r.defaultSort,store:r.store,"sum-text":r.computedSumText,"summary-method":r.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ve("v-if",!0)],6),r.isEmpty?(N(),X("div",{key:0,ref:"emptyBlock",style:vt(r.emptyBlockStyle),class:Y(r.ns.e("empty-block"))},[H("span",{class:Y(r.ns.e("empty-text"))},[_e(r.$slots,"empty",{},()=>[le(oe(r.computedEmptyText),1)])],2)],6)):ve("v-if",!0),r.$slots.append?(N(),X("div",{key:1,ref:"appendWrapper",class:Y(r.ns.e("append-wrapper"))},[_e(r.$slots,"append")],2)):ve("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),r.showSummary&&r.tableLayout==="fixed"?Ue((N(),X("div",{key:1,ref:"footerWrapper",class:Y(r.ns.e("footer-wrapper"))},[H("table",{class:Y(r.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:vt(r.tableBodyStyles)},[T(l,{columns:r.store.states.columns.value,"table-layout":r.tableLayout},null,8,["columns","table-layout"]),T(u,{border:r.border,"default-sort":r.defaultSort,store:r.store,"sum-text":r.computedSumText,"summary-method":r.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[st,!r.isEmpty],[f,r.handleHeaderFooterMousewheel]]):ve("v-if",!0),r.border||r.isGroup?(N(),X("div",{key:2,class:Y(r.ns.e("border-left-patch"))},null,2)):ve("v-if",!0)],6),Ue(H("div",{ref:"resizeProxy",class:Y(r.ns.e("column-resize-proxy"))},null,2),[[st,r.resizeProxyVisible]])],46,OK)}var kK=Xe(_K,[["render",MK],["__file","table.vue"]]);const PK={selection:"table-column--selection",expand:"table__expand-column"},NK={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:""}},IK=r=>PK[r]||"",LK={selection:{renderHeader({store:r,column:e}){function n(){return r.states.data.value&&r.states.data.value.length===0}return Ye(ra,{disabled:n(),size:r.states.tableSize.value,indeterminate:r.states.selection.value.length>0&&!r.states.isAllSelected.value,"onUpdate:modelValue":r.toggleAllSelection,modelValue:r.states.isAllSelected.value,ariaLabel:e.label})},renderCell({row:r,column:e,store:n,$index:s}){return Ye(ra,{disabled:e.selectable?!e.selectable.call(null,r,s):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",r)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(r),ariaLabel:e.label})},sortable:!1,resizable:!1},index:{renderHeader({column:r}){return r.label||"#"},renderCell({column:r,$index:e}){let n=e+1;const s=r.index;return typeof s=="number"?n=e+s:typeof s=="function"&&(n=s(e)),Ye("div",{},[n])},sortable:!1},expand:{renderHeader({column:r}){return r.label||""},renderCell({row:r,store:e,expanded:n}){const{ns:s}=e,o=[s.e("expand-icon")];return n&&o.push(s.em("expand-icon","expanded")),Ye("div",{class:o,onClick:function(l){l.stopPropagation(),e.toggleRowExpansion(r)}},{default:()=>[Ye(dt,null,{default:()=>[Ye(Gp)]})]})},sortable:!1,resizable:!1}};function RK({row:r,column:e,$index:n}){var s;const o=e.property,i=o&&ih(r,o).value;return e&&e.formatter?e.formatter(r,e,i,n):((s=i==null?void 0:i.toString)==null?void 0:s.call(i))||""}function $K({row:r,treeNode:e,store:n},s=!1){const{ns:o}=n;if(!e)return s?[Ye("span",{class:o.e("placeholder")})]:null;const i=[],l=function(a){a.stopPropagation(),!e.loading&&n.loadOrToggle(r)};if(e.indent&&i.push(Ye("span",{class:o.e("indent"),style:{"padding-left":`${e.indent}px`}})),typeof e.expanded=="boolean"&&!e.noLazyChildren){const a=[o.e("expand-icon"),e.expanded?o.em("expand-icon","expanded"):""];let c=Gp;e.loading&&(c=by),i.push(Ye("div",{class:a,onClick:l},{default:()=>[Ye(dt,{class:{[o.is("loading")]:e.loading}},{default:()=>[Ye(c)]})]}))}else i.push(Ye("span",{class:o.e("placeholder")}));return i}function bS(r,e){return r.reduce((n,s)=>(n[s]=s,n),e)}function DK(r,e){const n=bt();return{registerComplexWatchers:()=>{const i=["fixed"],l={realWidth:"width",realMinWidth:"minWidth"},a=bS(i,l);Object.keys(a).forEach(c=>{const u=l[c];wt(e,u)&&$e(()=>e[u],d=>{let f=d;u==="width"&&c==="realWidth"&&(f=zy(d)),u==="minWidth"&&c==="realMinWidth"&&(f=vA(d)),n.columnConfig.value[u]=f,n.columnConfig.value[c]=f;const h=u==="fixed";r.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],l={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=bS(i,l);Object.keys(a).forEach(c=>{const u=l[c];wt(e,u)&&$e(()=>e[u],d=>{n.columnConfig.value[c]=d})})}}}function VK(r,e,n){const s=bt(),o=j(""),i=j(!1),l=j(),a=j(),c=Ge("table");to(()=>{l.value=r.align?`is-${r.align}`:null,l.value}),to(()=>{a.value=r.headerAlign?`is-${r.headerAlign}`:l.value,a.value});const u=z(()=>{let w=s.vnode.vParent||s.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),d=z(()=>{const{store:w}=s.parent;if(!w)return!1;const{treeData:x}=w.states,E=x.value;return E&&Object.keys(E).length>0}),f=j(zy(r.width)),h=j(vA(r.minWidth)),p=w=>(f.value&&(w.width=f.value),h.value&&(w.minWidth=h.value),!f.value&&h.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),g=w=>{const x=w.type,E=LK[x]||{};Object.keys(E).forEach(M=>{const A=E[M];M!=="className"&&A!==void 0&&(w[M]=A)});const _=IK(x);if(_){const M=`${S(c.namespace)}-${_}`;w.className=w.className?`${w.className} ${M}`:M}return w},m=w=>{Array.isArray(w)?w.forEach(E=>x(E)):x(w);function x(E){var _;((_=E==null?void 0:E.type)==null?void 0:_.name)==="ElTableColumn"&&(E.vParent=s)}};return{columnId:o,realAlign:l,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:w=>{r.renderHeader||w.type!=="selection"&&(w.renderHeader=E=>(s.columnConfig.value.label,_e(e,"header",E,()=>[w.label])));let x=w.renderCell;return w.type==="expand"?(w.renderCell=E=>Ye("div",{class:"cell"},[x(E)]),n.value.renderExpanded=E=>e.default?e.default(E):e.default):(x=x||RK,w.renderCell=E=>{let _=null;if(e.default){const B=e.default(E);_=B.some(W=>W.type!==rr)?B:x(E)}else _=x(E);const{columns:M}=n.value.store.states,A=M.value.findIndex(B=>B.type==="default"),k=d.value&&E.cellIndex===A,P=$K(E,k),$={class:"cell",style:{}};return w.showOverflowTooltip&&($.class=`${$.class} ${S(c.namespace)}-tooltip`,$.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),m(_),Ye("div",$,[P,_])}),w},getPropsData:(...w)=>w.reduce((x,E)=>(Array.isArray(E)&&E.forEach(_=>{x[_]=r[_]}),x),{}),getColumnElIndex:(w,x)=>Array.prototype.indexOf.call(w,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var FK={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:r=>r.every(e=>["ascending","descending",null].includes(e))}};let BK=1;var _A=pe({name:"ElTableColumn",components:{ElCheckbox:ra},props:FK,setup(r,{slots:e}){const n=bt(),s=j({}),o=z(()=>{let y=n.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:i,registerComplexWatchers:l}=DK(o,r),{columnId:a,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:p,getPropsData:g,getColumnElIndex:m,realAlign:v,updateColumnOrder:b}=VK(r,e,o),C=d.value;a.value=`${C.tableId||C.columnId}_column_${BK++}`,zd(()=>{c.value=o.value!==C;const y=r.type||"default",w=r.sortable===""?!0:r.sortable,x=wr(r.showOverflowTooltip)?C.props.showOverflowTooltip:r.showOverflowTooltip,E={...NK[y],id:a.value,type:y,property:r.prop||r.property,align:v,headerAlign:u,showOverflowTooltip:x,filterable:r.filters||r.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:r.index,rawColumnKey:n.vnode.key};let P=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);P=BG(E,P),P=jG(p,f,h)(P),s.value=P,i(),l()}),nt(()=>{var y;const w=d.value,x=c.value?w.vnode.el.children:(y=w.refs.hiddenColumns)==null?void 0:y.children,E=()=>m(x||[],n.vnode.el);s.value.getColumnIndex=E,E()>-1&&o.value.store.commit("insertColumn",s.value,c.value?w.columnConfig.value:null,b)}),Cn(()=>{s.value.getColumnIndex()>-1&&o.value.store.commit("removeColumn",s.value,c.value?C.columnConfig.value:null,b)}),n.columnId=a.value,n.columnConfig=s},render(){var r,e,n;try{const s=(e=(r=this.$slots).default)==null?void 0:e.call(r,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(s))for(const l of s)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?o.push(l):l.type===De&&Array.isArray(l.children)&&l.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!ft(a==null?void 0:a.children)&&o.push(a)});return Ye("div",o)}catch{return Ye("div",[])}}});const rf=Rt(kK,{TableColumn:_A}),sf=Ar(_A),og=Symbol("tabsRootContextKey"),zK=et({tabs:{type:Be(Array),default:()=>Ss([])}}),OA="ElTabBar",jK=pe({name:OA}),HK=pe({...jK,props:zK,setup(r,{expose:e}){const n=r,s=bt(),o=Ve(og);o||sl(OA,"");const i=Ge("tabs"),l=j(),a=j(),c=()=>{let d=0,f=0;const h=["top","bottom"].includes(o.props.tabPosition)?"width":"height",p=h==="width"?"x":"y",g=p==="x"?"left":"top";return n.tabs.every(m=>{var v,b;const C=(b=(v=s.parent)==null?void 0:v.refs)==null?void 0:b[`tab-${m.uid}`];if(!C)return!1;if(!m.active)return!0;d=C[`offset${_i(g)}`],f=C[`client${_i(h)}`];const y=window.getComputedStyle(C);return h==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(y.paddingLeft)+Number.parseFloat(y.paddingRight)),d+=Number.parseFloat(y.paddingLeft)),!1}),{[h]:`${f}px`,transform:`translate${_i(p)}(${d}px)`}},u=()=>a.value=c();return $e(()=>n.tabs,async()=>{await tt(),u()},{immediate:!0}),dr(l,()=>u()),e({ref:l,update:u}),(d,f)=>(N(),X("div",{ref_key:"barRef",ref:l,class:Y([S(i).e("active-bar"),S(i).is(S(o).props.tabPosition)]),style:vt(a.value)},null,6))}});var UK=Xe(HK,[["__file","tab-bar.vue"]]);const WK=et({panes:{type:Be(Array),default:()=>Ss([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),qK={tabClick:(r,e,n)=>n instanceof Event,tabRemove:(r,e)=>e instanceof Event},vS="ElTabNav",GK=pe({name:vS,props:WK,emits:qK,setup(r,{expose:e,emit:n}){const s=bt(),o=Ve(og);o||sl(vS,"");const i=Ge("tabs"),l=uD(),a=xD(),c=j(),u=j(),d=j(),f=j(),h=j(!1),p=j(0),g=j(!1),m=j(!0),v=z(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),b=z(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${p.value}px)`})),C=()=>{if(!c.value)return;const A=c.value[`offset${_i(v.value)}`],k=p.value;if(!k)return;const P=k>A?k-A:0;p.value=P},y=()=>{if(!c.value||!u.value)return;const A=u.value[`offset${_i(v.value)}`],k=c.value[`offset${_i(v.value)}`],P=p.value;if(A-P<=k)return;const $=A-P>k*2?P+k:A-k;p.value=$},w=async()=>{const A=u.value;if(!h.value||!d.value||!c.value||!A)return;await tt();const k=d.value.querySelector(".is-active");if(!k)return;const P=c.value,$=["top","bottom"].includes(o.props.tabPosition),B=k.getBoundingClientRect(),W=P.getBoundingClientRect(),I=$?A.offsetWidth-W.width:A.offsetHeight-W.height,R=p.value;let U=R;$?(B.leftW.right&&(U=R+B.right-W.right)):(B.topW.bottom&&(U=R+(B.bottom-W.bottom))),U=Math.max(U,0),p.value=Math.min(U,I)},x=()=>{var A;if(!u.value||!c.value)return;r.stretch&&((A=f.value)==null||A.update());const k=u.value[`offset${_i(v.value)}`],P=c.value[`offset${_i(v.value)}`],$=p.value;P0&&(p.value=0))},E=A=>{const k=A.code,{up:P,down:$,left:B,right:W}=bn;if(![P,$,B,W].includes(k))return;const I=Array.from(A.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),R=I.indexOf(A.target);let U;k===B||k===P?R===0?U=I.length-1:U=R-1:R{m.value&&(g.value=!0)},M=()=>g.value=!1;return $e(l,A=>{A==="hidden"?m.value=!1:A==="visible"&&setTimeout(()=>m.value=!0,50)}),$e(a,A=>{A?setTimeout(()=>m.value=!0,50):m.value=!1}),dr(d,x),nt(()=>setTimeout(()=>w(),0)),ua(()=>x()),e({scrollToActiveTab:w,removeFocus:M}),$e(()=>r.panes,()=>s.update(),{flush:"post",deep:!0}),()=>{const A=h.value?[T("span",{class:[i.e("nav-prev"),i.is("disabled",!h.value.prev)],onClick:C},[T(dt,null,{default:()=>[T(B_,null,null)]})]),T("span",{class:[i.e("nav-next"),i.is("disabled",!h.value.next)],onClick:y},[T(dt,null,{default:()=>[T(Gp,null,null)]})])]:null,k=r.panes.map((P,$)=>{var B,W,I,R;const U=P.uid,Q=P.props.disabled,q=(W=(B=P.props.name)!=null?B:P.index)!=null?W:`${$}`,ee=!Q&&(P.isClosable||r.editable);P.index=`${$}`;const de=ee?T(dt,{class:"is-icon-close",onClick:fe=>n("tabRemove",P,fe)},{default:()=>[T(ta,null,null)]}):null,ce=((R=(I=P.slots).label)==null?void 0:R.call(I))||P.props.label,Te=!Q&&P.active?0:-1;return T("div",{ref:`tab-${U}`,class:[i.e("item"),i.is(o.props.tabPosition),i.is("active",P.active),i.is("disabled",Q),i.is("closable",ee),i.is("focus",g.value)],id:`tab-${q}`,key:`tab-${U}`,"aria-controls":`pane-${q}`,role:"tab","aria-selected":P.active,tabindex:Te,onFocus:()=>_(),onBlur:()=>M(),onClick:fe=>{M(),n("tabClick",P,q,fe)},onKeydown:fe=>{ee&&(fe.code===bn.delete||fe.code===bn.backspace)&&n("tabRemove",P,fe)}},[ce,de])});return T("div",{ref:d,class:[i.e("nav-wrap"),i.is("scrollable",!!h.value),i.is(o.props.tabPosition)]},[A,T("div",{class:i.e("nav-scroll"),ref:c},[T("div",{class:[i.e("nav"),i.is(o.props.tabPosition),i.is("stretch",r.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:b.value,role:"tablist",onKeydown:E},[r.type?null:T(UK,{ref:f,tabs:[...r.panes]},null),k])])])}}}),KK=et({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:Be(Function),default:()=>!0},stretch:Boolean}),im=r=>ft(r)||Tt(r),YK={[jt]:r=>im(r),tabClick:(r,e)=>e instanceof Event,tabChange:r=>im(r),edit:(r,e)=>["remove","add"].includes(e),tabRemove:r=>im(r),tabAdd:()=>!0},JK=pe({name:"ElTabs",props:KK,emits:YK,setup(r,{emit:e,slots:n,expose:s}){var o;const i=Ge("tabs"),{children:l,addChild:a,removeChild:c}=iH(bt(),"ElTabPane"),u=j(),d=j((o=r.modelValue)!=null?o:"0"),f=async(m,v=!1)=>{var b,C,y;if(!(d.value===m||wr(m)))try{await((b=r.beforeLeave)==null?void 0:b.call(r,m,d.value))!==!1&&(d.value=m,v&&(e(jt,m),e("tabChange",m)),(y=(C=u.value)==null?void 0:C.removeFocus)==null||y.call(C))}catch{}},h=(m,v,b)=>{m.props.disabled||(f(v,!0),e("tabClick",m,b))},p=(m,v)=>{m.props.disabled||wr(m.props.name)||(v.stopPropagation(),e("edit",m.props.name,"remove"),e("tabRemove",m.props.name))},g=()=>{e("edit",void 0,"add"),e("tabAdd")};return $e(()=>r.modelValue,m=>f(m)),$e(d,async()=>{var m;await tt(),(m=u.value)==null||m.scrollToActiveTab()}),Wt(og,{props:r,currentName:d,registerPane:a,unregisterPane:c}),s({currentName:d}),()=>{const m=n["add-icon"],v=r.editable||r.addable?T("span",{class:i.e("new-tab"),tabindex:"0",onClick:g,onKeydown:y=>{y.code===bn.enter&&g()}},[m?_e(n,"add-icon"):T(dt,{class:i.is("icon-plus")},{default:()=>[T(j_,null,null)]})]):null,b=T("div",{class:[i.e("header"),i.is(r.tabPosition)]},[v,T(GK,{ref:u,currentName:d.value,editable:r.editable,type:r.type,panes:l.value,stretch:r.stretch,onTabClick:h,onTabRemove:p},null)]),C=T("div",{class:i.e("content")},[_e(n,"default")]);return T("div",{class:[i.b(),i.m(r.tabPosition),{[i.m("card")]:r.type==="card",[i.m("border-card")]:r.type==="border-card"}]},[...r.tabPosition!=="bottom"?[b,C]:[C,b]])}}}),XK=et({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),ZK=["id","aria-hidden","aria-labelledby"],AA="ElTabPane",QK=pe({name:AA}),eY=pe({...QK,props:XK,setup(r){const e=r,n=bt(),s=Bs(),o=Ve(og);o||sl(AA,"usage: ");const i=Ge("tab-pane"),l=j(),a=z(()=>e.closable||o.props.closable),c=Tw(()=>{var p;return o.currentName.value===((p=e.name)!=null?p:l.value)}),u=j(c.value),d=z(()=>{var p;return(p=e.name)!=null?p:l.value}),f=Tw(()=>!e.lazy||u.value||c.value);$e(c,p=>{p&&(u.value=!0)});const h=St({uid:n.uid,slots:s,props:e,paneName:d,active:c,index:l,isClosable:a});return nt(()=>{o.registerPane(h)}),qo(()=>{o.unregisterPane(h.uid)}),(p,g)=>S(f)?Ue((N(),X("div",{key:0,id:`pane-${S(d)}`,class:Y(S(i).b()),role:"tabpanel","aria-hidden":!S(c),"aria-labelledby":`tab-${S(d)}`},[_e(p.$slots,"default")],10,ZK)),[[st,S(c)]]):ve("v-if",!0)}});var MA=Xe(eY,[["__file","tab-pane.vue"]]);const tY=Rt(JK,{TabPane:MA}),nY=Ar(MA),rY=et({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ga,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),sY=pe({name:"ElText"}),oY=pe({...sY,props:rY,setup(r){const e=r,n=fs(),s=Ge("text"),o=z(()=>[s.b(),s.m(e.type),s.m(n.value),s.is("truncated",e.truncated),s.is("line-clamp",!wr(e.lineClamp))]);return(i,l)=>(N(),ye(Ft(i.tag),{class:Y(S(o)),style:vt({"-webkit-line-clamp":i.lineClamp})},{default:O(()=>[_e(i.$slots,"default")]),_:3},8,["class","style"]))}});var iY=Xe(oY,[["__file","text.vue"]]);const Uy=Rt(iY);function lY(r){let e;const n=j(!1),s=St({...r,originalPosition:"",originalOverflow:"",visible:!1});function o(h){s.text=h}function i(){const h=s.parent,p=f.ns;if(!h.vLoadingAddClassList){let g=h.getAttribute("loading-number");g=Number.parseInt(g)-1,g?h.setAttribute("loading-number",g.toString()):(io(h,p.bm("parent","relative")),h.removeAttribute("loading-number")),io(h,p.bm("parent","hidden"))}l(),d.unmount()}function l(){var h,p;(p=(h=f.$el)==null?void 0:h.parentNode)==null||p.removeChild(f.$el)}function a(){var h;r.beforeClose&&!r.beforeClose()||(n.value=!0,clearTimeout(e),e=window.setTimeout(c,400),s.visible=!1,(h=r.closed)==null||h.call(r))}function c(){if(!n.value)return;const h=s.parent;n.value=!1,h.vLoadingAddClassList=void 0,i()}const d=Gv(pe({name:"ElLoading",setup(h,{expose:p}){const{ns:g,zIndex:m}=Zp("loading");return p({ns:g,zIndex:m}),()=>{const v=s.spinner||s.svg,b=Ye("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[Ye("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=s.text?Ye("p",{class:g.b("text")},[s.text]):void 0;return Ye(Or,{name:g.b("fade"),onAfterLeave:c},{default:O(()=>[Ue(T("div",{style:{backgroundColor:s.background||""},class:[g.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[Ye("div",{class:g.b("spinner")},[b,C])]),[[st,s.visible]])])})}}})),f=d.mount(document.createElement("div"));return{...Uo(s),setText:o,removeElLoadingChild:l,close:a,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let Ff;const aY=function(r={}){if(!Ct)return;const e=cY(r);if(e.fullscreen&&Ff)return Ff;const n=lY({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&(Ff=void 0)}});uY(e,e.parent,n),yS(e,e.parent,n),e.parent.vLoadingAddClassList=()=>yS(e,e.parent,n);let s=e.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",e.parent.setAttribute("loading-number",s),e.parent.appendChild(n.$el),tt(()=>n.visible.value=e.visible),e.fullscreen&&(Ff=n),n},cY=r=>{var e,n,s,o;let i;return ft(r.target)?i=(e=document.querySelector(r.target))!=null?e:document.body:i=r.target||document.body,{parent:i===document.body||r.body?document.body:i,background:r.background||"",svg:r.svg||"",svgViewBox:r.svgViewBox||"",spinner:r.spinner||!1,text:r.text||"",fullscreen:i===document.body&&((n=r.fullscreen)!=null?n:!0),lock:(s=r.lock)!=null?s:!1,customClass:r.customClass||"",visible:(o=r.visible)!=null?o:!0,target:i}},uY=async(r,e,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(r.fullscreen)n.originalPosition.value=Ol(document.body,"position"),n.originalOverflow.value=Ol(document.body,"overflow"),o.zIndex=s();else if(r.parent===document.body){n.originalPosition.value=Ol(document.body,"position"),await tt();for(const i of["top","left"]){const l=i==="top"?"scrollTop":"scrollLeft";o[i]=`${r.target.getBoundingClientRect()[i]+document.body[l]+document.documentElement[l]-Number.parseInt(Ol(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${r.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Ol(e,"position");for(const[i,l]of Object.entries(o))n.$el.style[i]=l},yS=(r,e,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?io(e,s.bm("parent","relative")):ea(e,s.bm("parent","relative")),r.fullscreen&&r.lock?ea(e,s.bm("parent","hidden")):io(e,s.bm("parent","hidden"))},gh=Symbol("ElLoading"),wS=(r,e)=>{var n,s,o,i;const l=e.instance,a=h=>pt(e.value)?e.value[h]:void 0,c=h=>{const p=ft(h)&&(l==null?void 0:l[h])||h;return p&&j(p)},u=h=>c(a(h)||r.getAttribute(`element-loading-${Zi(h)}`)),d=(n=a("fullscreen"))!=null?n:e.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(s=a("target"))!=null?s:d?void 0:r,body:(o=a("body"))!=null?o:e.modifiers.body,lock:(i=a("lock"))!=null?i:e.modifiers.lock};r[gh]={options:f,instance:aY(f)}},dY=(r,e)=>{for(const n of Object.keys(e))qt(e[n])&&(e[n].value=r[n])},fY={mounted(r,e){e.value&&wS(r,e)},updated(r,e){const n=r[gh];e.oldValue!==e.value&&(e.value&&!e.oldValue?wS(r,e):e.value&&e.oldValue?pt(e.value)&&dY(e.value,n.options):n==null||n.instance.close())},unmounted(r){var e;(e=r[gh])==null||e.instance.close(),r[gh]=null}},kA=["success","info","warning","error"],Zn=Ss({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:Ct?document.body:void 0}),hY=et({customClass:{type:String,default:Zn.customClass},center:{type:Boolean,default:Zn.center},dangerouslyUseHTMLString:{type:Boolean,default:Zn.dangerouslyUseHTMLString},duration:{type:Number,default:Zn.duration},icon:{type:cs,default:Zn.icon},id:{type:String,default:Zn.id},message:{type:Be([String,Object,Function]),default:Zn.message},onClose:{type:Be(Function),default:Zn.onClose},showClose:{type:Boolean,default:Zn.showClose},type:{type:String,values:kA,default:Zn.type},plain:{type:Boolean,default:Zn.plain},offset:{type:Number,default:Zn.offset},zIndex:{type:Number,default:Zn.zIndex},grouping:{type:Boolean,default:Zn.grouping},repeatNum:{type:Number,default:Zn.repeatNum}}),pY={destroy:()=>!0},Os=Nv([]),gY=r=>{const e=Os.findIndex(o=>o.id===r),n=Os[e];let s;return e>0&&(s=Os[e-1]),{current:n,prev:s}},mY=r=>{const{prev:e}=gY(r);return e?e.vm.exposed.bottom.value:0},bY=(r,e)=>Os.findIndex(s=>s.id===r)>0?16:e,vY=["id"],yY=["innerHTML"],wY=pe({name:"ElMessage"}),CY=pe({...wY,props:hY,emits:pY,setup(r,{expose:e}){const n=r,{Close:s}=yy,{ns:o,zIndex:i}=Zp("message"),{currentZIndex:l,nextZIndex:a}=i,c=j(),u=j(!1),d=j(0);let f;const h=z(()=>n.type?n.type==="error"?"danger":n.type:"info"),p=z(()=>{const _=n.type;return{[o.bm("icon",_)]:_&&Ui[_]}}),g=z(()=>n.icon||Ui[n.type]||""),m=z(()=>mY(n.id)),v=z(()=>bY(n.id,n.offset)+m.value),b=z(()=>d.value+v.value),C=z(()=>({top:`${v.value}px`,zIndex:l.value}));function y(){n.duration!==0&&({stop:f}=kh(()=>{x()},n.duration))}function w(){f==null||f()}function x(){u.value=!1}function E({code:_}){_===bn.esc&&x()}return nt(()=>{y(),a(),u.value=!0}),$e(()=>n.repeatNum,()=>{w(),y()}),vn(document,"keydown",E),dr(c,()=>{d.value=c.value.getBoundingClientRect().height}),e({visible:u,bottom:b,close:x}),(_,M)=>(N(),ye(Or,{name:S(o).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:M[0]||(M[0]=A=>_.$emit("destroy")),persisted:""},{default:O(()=>[Ue(H("div",{id:_.id,ref_key:"messageRef",ref:c,class:Y([S(o).b(),{[S(o).m(_.type)]:_.type},S(o).is("center",_.center),S(o).is("closable",_.showClose),S(o).is("plain",_.plain),_.customClass]),style:vt(S(C)),role:"alert",onMouseenter:w,onMouseleave:y},[_.repeatNum>1?(N(),ye(S(KU),{key:0,value:_.repeatNum,type:S(h),class:Y(S(o).e("badge"))},null,8,["value","type","class"])):ve("v-if",!0),S(g)?(N(),ye(S(dt),{key:1,class:Y([S(o).e("icon"),S(p)])},{default:O(()=>[(N(),ye(Ft(S(g))))]),_:1},8,["class"])):ve("v-if",!0),_e(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(N(),X(De,{key:1},[ve(" Caution here, message could've been compromised, never use user's input as message "),H("p",{class:Y(S(o).e("content")),innerHTML:_.message},null,10,yY)],2112)):(N(),X("p",{key:0,class:Y(S(o).e("content"))},oe(_.message),3))]),_.showClose?(N(),ye(S(dt),{key:2,class:Y(S(o).e("closeBtn")),onClick:It(x,["stop"])},{default:O(()=>[T(S(s))]),_:1},8,["class","onClick"])):ve("v-if",!0)],46,vY),[[st,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var SY=Xe(CY,[["__file","message.vue"]]);let xY=1;const PA=r=>{const e=!r||ft(r)||Mn(r)||qe(r)?{message:r}:r,n={...Zn,...e};if(!n.appendTo)n.appendTo=document.body;else if(ft(n.appendTo)){let s=document.querySelector(n.appendTo);ls(s)||(s=document.body),n.appendTo=s}return n},EY=r=>{const e=Os.indexOf(r);if(e===-1)return;Os.splice(e,1);const{handler:n}=r;n.close()},TY=({appendTo:r,...e},n)=>{const s=`message_${xY++}`,o=e.onClose,i=document.createElement("div"),l={...e,id:s,onClose:()=>{o==null||o(),EY(d)},onDestroy:()=>{ji(null,i)}},a=T(SY,l,qe(l.message)||Mn(l.message)?{default:qe(l.message)?l.message:()=>l.message}:null);a.appContext=n||vc._context,ji(a,i),r.appendChild(i.firstElementChild);const c=a.component,d={id:s,vnode:a,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:a.component.props};return d},vc=(r={},e)=>{if(!Ct)return{close:()=>{}};if(Tt(LC.max)&&Os.length>=LC.max)return{close:()=>{}};const n=PA(r);if(n.grouping&&Os.length){const o=Os.find(({vnode:i})=>{var l;return((l=i.props)==null?void 0:l.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const s=TY(n,e);return Os.push(s),s.handler};kA.forEach(r=>{vc[r]=(e={},n)=>{const s=PA(e);return vc({...s,type:r},n)}});function _Y(r){for(const e of Os)(!r||r===e.props.type)&&e.handler.close()}vc.closeAll=_Y;vc._context=null;const tn=G_(vc,"$message"),OY=pe({name:"ElMessageBox",directives:{TrapFocus:C7},components:{ElButton:Pn,ElFocusTrap:tg,ElInput:Sn,ElOverlay:Dy,ElIcon:dt,...yy},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(r,{emit:e}){const{locale:n,zIndex:s,ns:o,size:i}=Zp("message-box",z(()=>r.buttonSize)),{t:l}=n,{nextZIndex:a}=s,c=j(!1),u=St({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,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),d=z(()=>{const R=u.type;return{[o.bm("icon",R)]:R&&Ui[R]}}),f=ao(),h=ao(),p=z(()=>u.icon||Ui[u.type]||""),g=z(()=>!!u.message),m=j(),v=j(),b=j(),C=j(),y=j(),w=z(()=>u.confirmButtonClass);$e(()=>u.inputValue,async R=>{await tt(),r.boxType==="prompt"&&R!==null&&$()},{immediate:!0}),$e(()=>c.value,R=>{var U,Q;R&&(r.boxType!=="prompt"&&(u.autofocus?b.value=(Q=(U=y.value)==null?void 0:U.$el)!=null?Q:m.value:b.value=m.value),u.zIndex=a()),r.boxType==="prompt"&&(R?tt().then(()=>{var q;C.value&&C.value.$el&&(u.autofocus?b.value=(q=B())!=null?q:m.value:b.value=m.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=z(()=>r.draggable),E=z(()=>r.overflow);J_(m,v,x,E),nt(async()=>{await tt(),r.closeOnHashChange&&window.addEventListener("hashchange",_)}),Cn(()=>{r.closeOnHashChange&&window.removeEventListener("hashchange",_)});function _(){c.value&&(c.value=!1,tt(()=>{u.action&&e("action",u.action)}))}const M=()=>{r.closeOnClickModal&&P(u.distinguishCancelAndClose?"close":"cancel")},A=ky(M),k=R=>{if(u.inputType!=="textarea")return R.preventDefault(),P("confirm")},P=R=>{var U;r.boxType==="prompt"&&R==="confirm"&&!$()||(u.action=R,u.beforeClose?(U=u.beforeClose)==null||U.call(u,R,u,_):_())},$=()=>{if(r.boxType==="prompt"){const R=u.inputPattern;if(R&&!R.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||l("el.messagebox.error"),u.validateError=!0,!1;const U=u.inputValidator;if(typeof U=="function"){const Q=U(u.inputValue);if(Q===!1)return u.editorErrorMessage=u.inputErrorMessage||l("el.messagebox.error"),u.validateError=!0,!1;if(typeof Q=="string")return u.editorErrorMessage=Q,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},B=()=>{const R=C.value.$refs;return R.input||R.textarea},W=()=>{P("close")},I=()=>{r.closeOnPressEscape&&W()};return r.lockScroll&&Q_(c),{...Uo(u),ns:o,overlayEvent:A,visible:c,hasMessage:g,typeClass:d,contentId:f,inputId:h,btnSize:i,iconComponent:p,confirmButtonClasses:w,rootRef:m,focusStartRef:b,headerRef:v,inputRef:C,confirmRef:y,doClose:_,handleClose:W,onCloseRequested:I,handleWrapperClick:M,handleInputEnter:k,handleAction:P,t:l}}}),AY=["aria-label","aria-describedby"],MY=["aria-label"],kY=["id"];function PY(r,e,n,s,o,i){const l=Pt("el-icon"),a=Pt("close"),c=Pt("el-input"),u=Pt("el-button"),d=Pt("el-focus-trap"),f=Pt("el-overlay");return N(),ye(Or,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=h=>r.$emit("vanish")),persisted:""},{default:O(()=>[Ue(T(f,{"z-index":r.zIndex,"overlay-class":[r.ns.is("message-box"),r.modalClass],mask:r.modal},{default:O(()=>[H("div",{role:"dialog","aria-label":r.title,"aria-modal":"true","aria-describedby":r.showInput?void 0:r.contentId,class:Y(`${r.ns.namespace.value}-overlay-message-box`),onClick:e[8]||(e[8]=(...h)=>r.overlayEvent.onClick&&r.overlayEvent.onClick(...h)),onMousedown:e[9]||(e[9]=(...h)=>r.overlayEvent.onMousedown&&r.overlayEvent.onMousedown(...h)),onMouseup:e[10]||(e[10]=(...h)=>r.overlayEvent.onMouseup&&r.overlayEvent.onMouseup(...h))},[T(d,{loop:"",trapped:r.visible,"focus-trap-el":r.rootRef,"focus-start-el":r.focusStartRef,onReleaseRequested:r.onCloseRequested},{default:O(()=>[H("div",{ref:"rootRef",class:Y([r.ns.b(),r.customClass,r.ns.is("draggable",r.draggable),{[r.ns.m("center")]:r.center}]),style:vt(r.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=It(()=>{},["stop"]))},[r.title!==null&&r.title!==void 0?(N(),X("div",{key:0,ref:"headerRef",class:Y([r.ns.e("header"),{"show-close":r.showClose}])},[H("div",{class:Y(r.ns.e("title"))},[r.iconComponent&&r.center?(N(),ye(l,{key:0,class:Y([r.ns.e("status"),r.typeClass])},{default:O(()=>[(N(),ye(Ft(r.iconComponent)))]),_:1},8,["class"])):ve("v-if",!0),H("span",null,oe(r.title),1)],2),r.showClose?(N(),X("button",{key:0,type:"button",class:Y(r.ns.e("headerbtn")),"aria-label":r.t("el.messagebox.close"),onClick:e[0]||(e[0]=h=>r.handleAction(r.distinguishCancelAndClose?"close":"cancel")),onKeydown:e[1]||(e[1]=tr(It(h=>r.handleAction(r.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[T(l,{class:Y(r.ns.e("close"))},{default:O(()=>[T(a)]),_:1},8,["class"])],42,MY)):ve("v-if",!0)],2)):ve("v-if",!0),H("div",{id:r.contentId,class:Y(r.ns.e("content"))},[H("div",{class:Y(r.ns.e("container"))},[r.iconComponent&&!r.center&&r.hasMessage?(N(),ye(l,{key:0,class:Y([r.ns.e("status"),r.typeClass])},{default:O(()=>[(N(),ye(Ft(r.iconComponent)))]),_:1},8,["class"])):ve("v-if",!0),r.hasMessage?(N(),X("div",{key:1,class:Y(r.ns.e("message"))},[_e(r.$slots,"default",{},()=>[r.dangerouslyUseHTMLString?(N(),ye(Ft(r.showInput?"label":"p"),{key:1,for:r.showInput?r.inputId:void 0,innerHTML:r.message},null,8,["for","innerHTML"])):(N(),ye(Ft(r.showInput?"label":"p"),{key:0,for:r.showInput?r.inputId:void 0},{default:O(()=>[le(oe(r.dangerouslyUseHTMLString?"":r.message),1)]),_:1},8,["for"]))])],2)):ve("v-if",!0)],2),Ue(H("div",{class:Y(r.ns.e("input"))},[T(c,{id:r.inputId,ref:"inputRef",modelValue:r.inputValue,"onUpdate:modelValue":e[2]||(e[2]=h=>r.inputValue=h),type:r.inputType,placeholder:r.inputPlaceholder,"aria-invalid":r.validateError,class:Y({invalid:r.validateError}),onKeydown:tr(r.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),H("div",{class:Y(r.ns.e("errormsg")),style:vt({visibility:r.editorErrorMessage?"visible":"hidden"})},oe(r.editorErrorMessage),7)],2),[[st,r.showInput]])],10,kY),H("div",{class:Y(r.ns.e("btns"))},[r.showCancelButton?(N(),ye(u,{key:0,loading:r.cancelButtonLoading,class:Y([r.cancelButtonClass]),round:r.roundButton,size:r.btnSize,onClick:e[3]||(e[3]=h=>r.handleAction("cancel")),onKeydown:e[4]||(e[4]=tr(It(h=>r.handleAction("cancel"),["prevent"]),["enter"]))},{default:O(()=>[le(oe(r.cancelButtonText||r.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ve("v-if",!0),Ue(T(u,{ref:"confirmRef",type:"primary",loading:r.confirmButtonLoading,class:Y([r.confirmButtonClasses]),round:r.roundButton,disabled:r.confirmButtonDisabled,size:r.btnSize,onClick:e[5]||(e[5]=h=>r.handleAction("confirm")),onKeydown:e[6]||(e[6]=tr(It(h=>r.handleAction("confirm"),["prevent"]),["enter"]))},{default:O(()=>[le(oe(r.confirmButtonText||r.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[st,r.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,AY)]),_:3},8,["z-index","overlay-class","mask"]),[[st,r.visible]])]),_:3})}var NY=Xe(OY,[["render",PY],["__file","index.vue"]]);const bd=new Map,IY=r=>{let e=document.body;return r.appendTo&&(ft(r.appendTo)&&(e=document.querySelector(r.appendTo)),ls(r.appendTo)&&(e=r.appendTo),ls(e)||(e=document.body)),e},LY=(r,e,n=null)=>{const s=T(NY,r,qe(r.message)||Mn(r.message)?{default:qe(r.message)?r.message:()=>r.message}:null);return s.appContext=n,ji(s,e),IY(r).appendChild(e.firstElementChild),s.component},RY=()=>document.createElement("div"),$Y=(r,e)=>{const n=RY();r.onVanish=()=>{ji(null,n),bd.delete(o)},r.onAction=i=>{const l=bd.get(o);let a;r.showInput?a={value:o.inputValue,action:i}:a=i,r.callback?r.callback(a,s.proxy):i==="cancel"||i==="close"?r.distinguishCancelAndClose&&i!=="cancel"?l.reject("close"):l.reject("cancel"):l.resolve(a)};const s=LY(r,n,e),o=s.proxy;for(const i in r)wt(r,i)&&!wt(o.$props,i)&&(o[i]=r[i]);return o.visible=!0,o};function eu(r,e=null){if(!Ct)return Promise.reject();let n;return ft(r)||Mn(r)?r={message:r}:n=r.callback,new Promise((s,o)=>{const i=$Y(r,e??eu._context);bd.set(i,{options:r,callback:n,resolve:s,reject:o})})}const DY=["alert","confirm","prompt"],VY={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};DY.forEach(r=>{eu[r]=FY(r)});function FY(r){return(e,n,s,o)=>{let i="";return pt(n)?(s=n,i=""):wr(n)?i="":i=n,eu(Object.assign({title:i,message:e,type:"",...VY[r]},s,{boxType:r}),o)}}eu.close=()=>{bd.forEach((r,e)=>{e.doClose()}),bd.clear()};eu._context=null;const hi=eu;hi.install=r=>{hi._context=r._context,r.config.globalProperties.$msgbox=hi,r.config.globalProperties.$messageBox=hi,r.config.globalProperties.$alert=hi.alert,r.config.globalProperties.$confirm=hi.confirm,r.config.globalProperties.$prompt=hi.prompt};const Vr=hi,NA=["success","info","warning","error"],BY=et({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:cs},id:{type:String,default:""},message:{type:Be([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Be(Function),default:()=>{}},onClose:{type:Be(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:[...NA,""],default:""},zIndex:Number}),zY={destroy:()=>!0},jY=["id"],HY=["textContent"],UY={key:0},WY=["innerHTML"],qY=pe({name:"ElNotification"}),GY=pe({...qY,props:BY,emits:zY,setup(r,{expose:e}){const n=r,{ns:s,zIndex:o}=Zp("notification"),{nextZIndex:i,currentZIndex:l}=o,{Close:a}=W_,c=j(!1);let u;const d=z(()=>{const y=n.type;return y&&Ui[n.type]?s.m(y):""}),f=z(()=>n.type&&Ui[n.type]||n.icon),h=z(()=>n.position.endsWith("right")?"right":"left"),p=z(()=>n.position.startsWith("top")?"top":"bottom"),g=z(()=>{var y;return{[p.value]:`${n.offset}px`,zIndex:(y=n.zIndex)!=null?y:l.value}});function m(){n.duration>0&&({stop:u}=kh(()=>{c.value&&b()},n.duration))}function v(){u==null||u()}function b(){c.value=!1}function C({code:y}){y===bn.delete||y===bn.backspace?v():y===bn.esc?c.value&&b():m()}return nt(()=>{m(),i(),c.value=!0}),vn(document,"keydown",C),e({visible:c,close:b}),(y,w)=>(N(),ye(Or,{name:S(s).b("fade"),onBeforeLeave:y.onClose,onAfterLeave:w[1]||(w[1]=x=>y.$emit("destroy")),persisted:""},{default:O(()=>[Ue(H("div",{id:y.id,class:Y([S(s).b(),y.customClass,S(h)]),style:vt(S(g)),role:"alert",onMouseenter:v,onMouseleave:m,onClick:w[0]||(w[0]=(...x)=>y.onClick&&y.onClick(...x))},[S(f)?(N(),ye(S(dt),{key:0,class:Y([S(s).e("icon"),S(d)])},{default:O(()=>[(N(),ye(Ft(S(f))))]),_:1},8,["class"])):ve("v-if",!0),H("div",{class:Y(S(s).e("group"))},[H("h2",{class:Y(S(s).e("title")),textContent:oe(y.title)},null,10,HY),Ue(H("div",{class:Y(S(s).e("content")),style:vt(y.title?void 0:{margin:0})},[_e(y.$slots,"default",{},()=>[y.dangerouslyUseHTMLString?(N(),X(De,{key:1},[ve(" Caution here, message could've been compromised, never use user's input as message "),H("p",{innerHTML:y.message},null,8,WY)],2112)):(N(),X("p",UY,oe(y.message),1))])],6),[[st,y.message]]),y.showClose?(N(),ye(S(dt),{key:0,class:Y(S(s).e("closeBtn")),onClick:It(b,["stop"])},{default:O(()=>[T(S(a))]),_:1},8,["class","onClick"])):ve("v-if",!0)],2)],46,jY),[[st,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var KY=Xe(GY,[["__file","notification.vue"]]);const zh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Fb=16;let YY=1;const yc=function(r={},e=null){if(!Ct)return{close:()=>{}};(typeof r=="string"||Mn(r))&&(r={message:r});const n=r.position||"top-right";let s=r.offset||0;zh[n].forEach(({vm:d})=>{var f;s+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Fb}),s+=Fb;const o=`notification_${YY++}`,i=r.onClose,l={...r,offset:s,id:o,onClose:()=>{JY(o,n,i)}};let a=document.body;ls(r.appendTo)?a=r.appendTo:ft(r.appendTo)&&(a=document.querySelector(r.appendTo)),ls(a)||(a=document.body);const c=document.createElement("div"),u=T(KY,l,Mn(l.message)?{default:()=>l.message}:null);return u.appContext=e??yc._context,u.props.onDestroy=()=>{ji(null,c)},ji(u,c),zh[n].push({vm:u}),a.appendChild(c.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};NA.forEach(r=>{yc[r]=(e={})=>((typeof e=="string"||Mn(e))&&(e={message:e}),yc({...e,type:r}))});function JY(r,e,n){const s=zh[e],o=s.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===r});if(o===-1)return;const{vm:i}=s[o];if(!i)return;n==null||n(i);const l=i.el.offsetHeight,a=e.split("-")[0];s.splice(o,1);const c=s.length;if(!(c<1))for(let u=o;u{e.component.exposed.visible.value=!1})}yc.closeAll=XY;yc._context=null;const Bf=G_(yc,"$notify");function pi(r){return JSON.parse(JSON.stringify(r))}function rt(r,e,n,s,o){const i={method:r,headers:{Accept:"application/json","Content-Type":"application/json"}};let l="/"+e;if(n){const c=new URLSearchParams(n);l+="?"+c.toString()}if(s){var a=new FormData;for(let c of Objects.keys(s))a.append(c,s[c]);i.body=a}else o&&(i.body=JSON.stringify(o));return fetch(l,i).then(c=>c.json()).catch(c=>c)}function sr(r,e){if(!(r==null||r==null))for(const[n,s]of Object.entries(r))s!=null&&s!=null&&(e[n]=s)}function Ul(){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 Cl(r,e,n,s,o){let i;return o?i="No. "+(r+1)+" branch, condition: "+(n+1)+"-"+(s+1)+" "+o:i="No. "+(r+1)+" branch, "+e,{r:!1,m:i}}function ZY(r){for(let e=0;e-1}function tJ(r,e){window.localStorage.setItem(t.data.robotId+"type",t.data.robotType)}function nJ(r){return window.localStorage.getItem(r+"type")}const rJ={class:"text-large font-600 mr-3"},sJ=H("h3",null,"Global settings",-1),oJ=["checked"],iJ={for:"_randomPortWhenConflict_"},Ea="130px",lJ={__name:"GlobalSettings",setup(r){const{t:e,tm:n}=cn(),s=ps(),o=()=>{s.push("/")},i=St({ip:"127.0.0.1",port:"12715",selectRandomPortWhenConflict:!1});nt(async()=>{const a=await rt("GET","management/global-settings",null,null,null);a.status==200&&sr(a.data,i)});async function l(){let a=await rt("POST","management/global-settings",null,null,i);if(a.status==200)tn({type:"success",message:e("lang.common.saved")}),await checkHfModelFiles();else{const c=e(a.err.message);tn.error(c||a.err.message)}}return(a,c)=>{const u=mo,d=Sn,f=lr,h=Fy,p=Pn,g=ir,m=rg,v=ng;return N(),X(De,null,[T(u,{title:a.$t("lang.common.back"),onBack:o},{content:O(()=>[H("span",rJ,oe(a.$t("lang.settings.title")),1)]),_:1},8,["title"]),sJ,T(v,null,{default:O(()=>[T(m,{span:12,offset:1},{default:O(()=>[T(g,{model:i},{default:O(()=>[T(f,{label:"IP addr (v4 or v6)","label-width":Ea},{default:O(()=>[T(d,{modelValue:i.ip,"onUpdate:modelValue":c[0]||(c[0]=b=>i.ip=b),placeholder:""},null,8,["modelValue"])]),_:1}),T(f,{label:"","label-width":Ea},{default:O(()=>[le(oe(a.$t("lang.settings.ipNote")),1)]),_:1}),T(f,{label:a.$t("lang.settings.prompt2"),"label-width":Ea},{default:O(()=>[T(h,{modelValue:i.port,"onUpdate:modelValue":c[1]||(c[1]=b=>i.port=b),min:1024,max:65530,onChange:a.handleChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),T(f,{label:"","label-width":Ea},{default:O(()=>[Ue(H("input",{type:"checkbox",id:"_randomPortWhenConflict_","onUpdate:modelValue":c[2]||(c[2]=b=>i.selectRandomPortWhenConflict=b),checked:i.selectRandomPortWhenConflict},null,8,oJ),[[zi,i.selectRandomPortWhenConflict]]),H("label",iJ,oe(a.$t("lang.settings.prompt2_2")),1)]),_:1}),T(f,{"label-width":Ea},{default:O(()=>[le(oe(a.$t("lang.settings.note")),1)]),_:1}),T(f,{label:"","label-width":Ea},{default:O(()=>[T(p,{type:"primary",onClick:l},{default:O(()=>[le(oe(a.$t("lang.common.save")),1)]),_:1}),T(p,{onClick:c[3]||(c[3]=b=>o())},{default:O(()=>[le(oe(a.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},aJ={class:"text-large font-600 mr-3"},cJ=H("h3",null,"Common settings",-1),uJ=H("h3",null,"Embedding provider",-1),dJ=H("h3",null,"Email settings",-1),CS="[-\\w\\.\\+]{1,100}@[A-Za-z0-9]{1,30}[A-Za-z\\.]{2,30}",ys="130px",fJ={__name:"Settings",setup(r){const{t:e,tm:n}=cn(),s=Go(),o=ps(),i=s.params.robotId,l=j(30),a=()=>{o.push({name:"robotDetail",params:{robotId:i}})},c=St({maxSessionIdleSec:1800,smtpHost:"",smtpUsername:"",smtpPassword:"",smtpTimeoutSec:60,emailVerificationRegex:"",embeddingProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",connectTimeoutMillis:1500,readTimeoutMillis:3e3}}),u=j(!1),d=j(!1),f=j(!1),h=j(""),p=j(!1),g=j(!1),m=j(""),v=j(""),b=j("");nt(async()=>{const B=await rt("GET","management/settings",{robotId:i},null,null);B.status==200&&(sr(B.data,c),l.value=c.maxSessionIdleSec/60,$(c.embeddingProvider.provider.id)),await C()});async function C(){if(c.embeddingProvider.provider.id!="HuggingFace"){p.value=!1;return}const B=await rt("GET","management/settings/model/check",{robotId:i},null,null);if(B&&B.status!=200){for(let W=0;W-1&&(I=I.substring(0,R)),m.value=I;break}p.value=!0}else p.value=!1}async function y(){c.emailVerificationRegex||(c.emailVerificationRegex=CS),c.maxSessionIdleSec=l.value*60;let B=await rt("POST","management/settings",{robotId:i},null,c);if(B.status==200)tn({type:"success",message:e("lang.common.saved")}),await C();else{const W=e(B.err.message);tn.error(W||B.err.message)}}let w=null;async function x(){rt("GET","management/settings/model/download",{robotId:i},null,null).then(B=>{B.status!=200&&(tn.error("Download failed: "+B.err.message),clearTimeout(w)),g.value=!1,p.value=!0}),p.value=!1,g.value=!0,w=setTimeout(async()=>{await E()},1e3)}async function E(){const B=await rt("GET","management/settings/model/download/progress",null,null,null);B!=null&&B.data!=null&&B.data.downloading?(v.value=B.data.url,b.value=(B.data.downloadedLen/B.data.totalLen*100).toFixed(2),w=setTimeout(async()=>{await E()},1e3)):(p.value=!1,g.value=!1)}const _=async()=>{u.value=!0;const B=await rt("POST","management/settings/smtp/test",null,null,c);B.status==200?(d.value=!0,f.value=!1):(h.value=e(B.err.message),d.value=!1,f.value=!0),u.value=!1},M=[{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-small",value:"text-embedding-3-small"},{label:"text-embedding-3-large",value:"text-embedding-3-large"},{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:"Meta Llama 3",value:"llama3"},{label:"Phi-3",value:"phi3"},{label:"WizardLM-2",value:"wizardlm2"},{label:"Mistral",value:"mistral"},{label:"Gemma",value:"gemma"},{label:"Mixtral",value:"mixtral"},{label:"Llama 2",value:"llama2"},{label:"Qwen",value:"qwen"},{label:"TinyLlama",value:"tinyllama"},{label:"Yi 1.5",value:"yi"},{label:"All Mini LM",value:"all-minilm"},{label:"Llama 2 Chinese",value:"llama2-chinese"}]}],A=St([]),k=new Map,P=j(""),$=B=>{P.value&&k.set(P.value,c.embeddingProvider.apiUrl);for(let W=0;W{const I=mo,R=Fy,U=lr,Q=Pn,q=ir,ee=rg,de=ng,ce=iW,Te=$y,fe=Sn,we=ei,Ee=Qo,G=CO;return N(),X(De,null,[T(I,{title:B.$t("lang.common.back"),onBack:a},{content:O(()=>[H("span",aJ,oe(B.$t("lang.settings.title")),1)]),_:1},8,["title"]),cJ,T(de,null,{default:O(()=>[T(ee,{span:12,offset:1},{default:O(()=>[T(q,{model:c},{default:O(()=>[T(U,{label:B.$t("lang.settings.prompt3"),"label-width":ys},{default:O(()=>[T(R,{modelValue:l.value,"onUpdate:modelValue":W[0]||(W[0]=ne=>l.value=ne),min:2,max:1440,onChange:B.handleChange},null,8,["modelValue","onChange"]),le(" "+oe(B.$t("lang.settings.prompt4")),1)]),_:1},8,["label"]),T(U,{label:"","label-width":ys},{default:O(()=>[T(Q,{type:"primary",onClick:y},{default:O(()=>[le(oe(B.$t("lang.common.save")),1)]),_:1}),T(Q,{onClick:W[1]||(W[1]=ne=>a())},{default:O(()=>[le(oe(B.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),uJ,T(de,null,{default:O(()=>[T(ee,{span:11,offset:1},{default:O(()=>[T(q,{model:c.embeddingProvider,"label-width":ys,style:{"max-width":"600px"}},{default:O(()=>[T(U,{label:"Provider"},{default:O(()=>[T(Te,{modelValue:c.embeddingProvider.provider.id,"onUpdate:modelValue":W[2]||(W[2]=ne=>c.embeddingProvider.provider.id=ne),size:"large",onChange:$},{default:O(()=>[(N(),X(De,null,Ot(M,ne=>T(ce,{id:ne.id,key:ne.id,label:ne.id,value:ne.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),T(U,{label:"Request address"},{default:O(()=>[T(fe,{modelValue:c.embeddingProvider.apiUrl,"onUpdate:modelValue":W[3]||(W[3]=ne=>c.embeddingProvider.apiUrl=ne),disabled:c.embeddingProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),Ue(T(U,{label:"OpenAI API key"},{default:O(()=>[T(fe,{modelValue:c.embeddingProvider.apiKey,"onUpdate:modelValue":W[4]||(W[4]=ne=>c.embeddingProvider.apiKey=ne)},null,8,["modelValue"])]),_:1},512),[[st,c.embeddingProvider.showApiKeyInput]]),T(U,{label:"Model"},{default:O(()=>[T(Ee,{modelValue:c.embeddingProvider.provider.model,"onUpdate:modelValue":W[5]||(W[5]=ne=>c.embeddingProvider.provider.model=ne),placeholder:"Choose a model"},{default:O(()=>[(N(!0),X(De,null,Ot(A,ne=>(N(),ye(we,{id:ne.value,key:ne.value,label:ne.label,value:ne.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Ue(T(U,{label:"Connect timeout"},{default:O(()=>[T(R,{modelValue:c.embeddingProvider.connectTimeoutMillis,"onUpdate:modelValue":W[6]||(W[6]=ne=>c.embeddingProvider.connectTimeoutMillis=ne),min:100,max:5e4},null,8,["modelValue"]),le(" millis ")]),_:1},512),[[st,c.embeddingProvider.provider.id!="HuggingFace"]]),Ue(T(U,{label:"Read timeout"},{default:O(()=>[T(R,{modelValue:c.embeddingProvider.readTimeoutMillis,"onUpdate:modelValue":W[7]||(W[7]=ne=>c.embeddingProvider.readTimeoutMillis=ne),min:1e3,max:65530},null,8,["modelValue"]),le(" millis ")]),_:1},512),[[st,c.embeddingProvider.provider.id!="HuggingFace"]]),Ue(T(U,{label:""},{default:O(()=>[le(" HuggingFace model files were incorrect or missing, please "),T(Q,{type:"primary",text:"",onClick:x},{default:O(()=>[le(" click here to download model files ")]),_:1}),le(", or you can download manually and put them in ./data/model/"+oe(m.value),1)]),_:1},512),[[st,p.value]]),Ue(T(U,{label:""},{default:O(()=>[le(" Downloading: "+oe(v.value)+", "+oe(b.value)+"% ",1)]),_:1},512),[[st,g.value]]),T(U,{label:"","label-width":ys},{default:O(()=>[T(Q,{type:"primary",onClick:y},{default:O(()=>[le(oe(B.$t("lang.common.save")),1)]),_:1}),T(Q,{onClick:W[8]||(W[8]=ne=>a())},{default:O(()=>[le(oe(B.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),dJ,T(de,null,{default:O(()=>[T(ee,{span:11,offset:1},{default:O(()=>[T(q,{model:c},{default:O(()=>[T(U,{label:"Email SMTP","label-width":ys}),T(U,{label:"Host","label-width":ys},{default:O(()=>[T(fe,{modelValue:c.smtpHost,"onUpdate:modelValue":W[9]||(W[9]=ne=>c.smtpHost=ne),placeholder:""},null,8,["modelValue"])]),_:1}),T(U,{label:"Username","label-width":ys},{default:O(()=>[T(fe,{modelValue:c.smtpUsername,"onUpdate:modelValue":W[10]||(W[10]=ne=>c.smtpUsername=ne),placeholder:""},null,8,["modelValue"])]),_:1}),T(U,{label:"Password","label-width":ys},{default:O(()=>[T(fe,{modelValue:c.smtpPassword,"onUpdate:modelValue":W[11]||(W[11]=ne=>c.smtpPassword=ne),placeholder:"",type:"password"},null,8,["modelValue"])]),_:1}),T(U,{label:"Timeout","label-width":ys},{default:O(()=>[T(R,{modelValue:c.smtpTimeoutSec,"onUpdate:modelValue":W[12]||(W[12]=ne=>c.smtpTimeoutSec=ne),min:1,max:600,onChange:B.handleChange},null,8,["modelValue","onChange"]),le(" Seconds ")]),_:1}),T(U,{label:"Email verification regex","label-width":"200px"},{default:O(()=>[T(fe,{modelValue:c.emailVerificationRegex,"onUpdate:modelValue":W[13]||(W[13]=ne=>c.emailVerificationRegex=ne),placeholder:CS},null,8,["modelValue"])]),_:1}),T(U,{label:"","label-width":"200px"},{default:O(()=>[le(" You can customize the email verification regular expression, or leave it blank and the system will automatically use the general verification rules. ")]),_:1}),T(U,{label:"","label-width":ys},{default:O(()=>[T(Q,{loading:u.value,type:"info",onClick:_},{default:O(()=>[le(" Test SMTP settings ")]),_:1},8,["loading"]),d.value?(N(),ye(G,{key:0,title:"SMTP test passed",type:"success"})):ve("",!0),f.value?(N(),ye(G,{key:1,title:h.value,type:"error"},null,8,["title"])):ve("",!0)]),_:1}),T(U,{label:"","label-width":ys},{default:O(()=>[T(Q,{type:"primary",onClick:y},{default:O(()=>[le(oe(B.$t("lang.common.save")),1)]),_:1}),T(Q,{onClick:W[14]||(W[14]=ne=>a())},{default:O(()=>[le(oe(B.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},hJ={class:"text-large font-600 mr-3"},pJ={class:"flex items-center"},gJ="130px",mJ={__name:"MainFlow",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Go(),i=ps(),l=o.params.robotId,a=St({_idx:0,id:"",name:"",enabled:!0}),c=j(!1),u=j([]);nt(async()=>{const y=await rt("GET","mainflow",{robotId:l},null,null);d(y)});const d=y=>{y&&y.status==200&&(u.value=y.data==null?[]:y.data)},f=()=>{i.push({name:"robotDetail",params:{robotId:l}})},h=(y,w)=>{i.push({name:"subflow",params:{robotId:l,id:w.id,name:IA(w.name)}})},p=()=>{a.id="",a.name="",a.enabled=!0,v()},g=(y,w)=>{a._idx=y,a.id=w.id,a.name=w.name,a.enabled=w.enabled,v()},m=async(y,w)=>{Vr.confirm(e("lang.mainflow.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{a.id=w.id;const x=await rt("DELETE","mainflow",null,null,a);u.value.splice(y,1),b(),tn({type:"success",message:x("lang.common.deleted")})}).catch(()=>{})};function v(){c.value=!0}function b(){c.value=!1}const C=async()=>{const y=a.id,w=await rt(y?"PUT":"POST","mainflow",null,null,a);y?u.value[a._idx]={_idx:a._idx,id:a.id,name:a.name,enabled:a.enabled}:w.status==200&&u.value.push(w.data),b()};return(y,w)=>{const x=Pn,E=mo,_=sf,M=rf,A=Sn,k=lr,P=ir,$=ll;return N(),X(De,null,[T(E,{title:S(e)("lang.common.back"),onBack:f},{content:O(()=>[H("span",hJ,oe(y.$t("lang.mainflow.title")),1)]),extra:O(()=>[H("div",pJ,[T(x,{type:"primary",class:"ml-2",onClick:w[0]||(w[0]=B=>p())},{default:O(()=>[le(oe(y.$t("lang.mainflow.add")),1)]),_:1})])]),_:1},8,["title"]),T(M,{data:u.value,stripe:"",style:{width:"100%"}},{default:O(()=>[T(_,{prop:"id",label:"Id",width:"270"}),T(_,{prop:"name",label:S(n)("lang.mainflow.table")[0],width:"360"},null,8,["label"]),T(_,{fixed:"right",label:S(n)("lang.mainflow.table")[2],width:"270"},{default:O(B=>[T(x,{link:"",type:"primary",size:"small",onClick:W=>h(B.$index,B.row)},{default:O(()=>[le(oe(y.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),le(" | "),T(x,{link:"",type:"primary",size:"small",onClick:W=>g(B.$index,B.row)},{default:O(()=>[le(oe(y.$t("lang.common.edit"))+" name ",1)]),_:2},1032,["onClick"]),le(" | "),T(x,{link:"",type:"primary",size:"small",onClick:W=>m(B.$index,B.row)},{default:O(()=>[le(oe(y.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),T($,{modelValue:c.value,"onUpdate:modelValue":w[4]||(w[4]=B=>c.value=B),title:y.$t("lang.mainflow.form.title"),width:"60%"},{footer:O(()=>[T(x,{type:"primary",loading:y.loading,onClick:w[2]||(w[2]=B=>C())},{default:O(()=>[le(oe(y.$t("lang.common.save")),1)]),_:1},8,["loading"]),T(x,{onClick:w[3]||(w[3]=B=>b())},{default:O(()=>[le(oe(y.$t("lang.common.cancel")),1)]),_:1})]),default:O(()=>[T(P,{model:y.nodeData},{default:O(()=>[T(k,{label:y.$t("lang.mainflow.form.name"),"label-width":gJ},{default:O(()=>[T(A,{modelValue:a.name,"onUpdate:modelValue":w[1]||(w[1]=B=>a.name=B),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}},bJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},vJ=H("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),yJ=[vJ];function wJ(r,e){return N(),X("svg",bJ,[...yJ])}const ma={name:"ep-warning",render:wJ},Hs=(r,e)=>{const n=r.__vccOpts||r;for(const[s,o]of e)n[s]=o;return n},CJ={class:"nodeBox"},SJ={class:"demo-drawer__footer"},zf="140px",xJ={__name:"CollectNode",setup(r){const{t:e,tm:n,rt:s}=cn(),o=j(!1),i=St({nodeName:e("lang.collectNode.nodeName"),collectTypeName:"",collectType:"",customizeRegex:"",collectSaveVarName:"",valid:!1,invalidMessages:[],branches:[],newNode:!0}),l=j(),a=Ve("getNode"),{robotId:c}=Ve("robotId");a().on("change:data",({current:C})=>{o.value=!0});const d=[{label:n("lang.collectNode.cTypes")[0],value:"UserInput"},{label:n("lang.collectNode.cTypes")[1],value:"Number"},{label:n("lang.collectNode.cTypes")[2],value:"CustomizeRegex"}],f=[];nt(async()=>{const C=a(),y=C.getData();if(sr(y,i),i.newNode){i.nodeName+=y.nodeCnt.toString();const x=l.value.offsetHeight+50,E=l.value.offsetWidth-15;C.addPort({group:"absolute",args:{x:E,y:x},attrs:{text:{text:n("lang.collectNode.branches")[0],fontSize:12}}}),C.addPort({group:"absolute",args:{x:E,y:x+20},attrs:{text:{text:n("lang.collectNode.branches")[1],fontSize:12}}}),i.newNode=!1}const w=await rt("GET","variable",{robotId:c},null,null);w&&w.status==200&&w.data&&(f.splice(0,f.length),w.data.forEach(function(x,E,_){this.push({label:x.varName,value:x.varName})},f)),p()});const h=n("lang.collectNode.errors");function p(){const C=i,y=C.invalidMessages;y.splice(0,y.length),C.nodeName||y.push(h[0]),C.collectType||y.push(h[1]),C.collectSaveVarName||y.push(h[2]),(C.branches==null||C.branches.length==0)&&y.push(h[3]),C.valid=y.length==0}function g(){o.value=!1}function m(){v();const C=a(),y=C.getPorts();i.branches.splice(0,i.branches.length);for(let w=0;w{const w=dt,x=gs,E=Sn,_=lr,M=ei,A=Qo,k=ir,P=Pn,$=Zo;return N(),X("div",CJ,[H("div",{ref_key:"nodeName",ref:l,class:"nodeTitle"},[le(oe(i.nodeName)+" ",1),Ue(H("span",null,[T(x,{class:"box-item",effect:"dark",content:i.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:O(()=>[T(w,{color:"red",size:"16"},{default:O(()=>[T(S(ma))]),_:1})]),_:1},8,["content"])],512),[[st,i.invalidMessages.length>0]])],512),H("div",null,oe(S(e)("lang.collectNode.cTypeName"))+": "+oe(i.collectTypeName),1),H("div",null,oe(S(e)("lang.collectNode.varName"))+": "+oe(i.collectSaveVarName),1),T($,{modelValue:o.value,"onUpdate:modelValue":y[6]||(y[6]=B=>o.value=B),title:i.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:O(()=>[T(k,{"label-position":C.labelPosition,"label-width":"100px",model:i,style:{"max-width":"460px"}},{default:O(()=>[T(_,{label:S(e)("lang.common.nodeName"),"label-width":zf},{default:O(()=>[T(E,{modelValue:i.nodeName,"onUpdate:modelValue":y[0]||(y[0]=B=>i.nodeName=B)},null,8,["modelValue"])]),_:1},8,["label"]),T(_,{label:S(b)[0],"label-width":zf},{default:O(()=>[T(A,{modelValue:i.collectType,"onUpdate:modelValue":y[1]||(y[1]=B=>i.collectType=B),placeholder:S(b)[1]},{default:O(()=>[(N(),X(De,null,Ot(d,B=>T(M,{key:B.label,label:B.label,value:B.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Ue(T(_,{label:S(b)[2],"label-width":zf},{default:O(()=>[T(E,{modelValue:i.customizeRegex,"onUpdate:modelValue":y[2]||(y[2]=B=>i.customizeRegex=B)},null,8,["modelValue"])]),_:1},8,["label"]),[[st,i.collectType=="CustomizeRegex"]]),T(_,{label:S(b)[3],"label-width":zf},{default:O(()=>[T(A,{modelValue:i.collectSaveVarName,"onUpdate:modelValue":y[3]||(y[3]=B=>i.collectSaveVarName=B),placeholder:S(b)[4]},{default:O(()=>[(N(),X(De,null,Ot(f,B=>T(M,{key:B.label,label:B.label,value:B.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["label-position","model"]),H("div",SJ,[T(P,{type:"primary",loading:C.loading,onClick:y[4]||(y[4]=B=>m())},{default:O(()=>[le(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),T(P,{onClick:y[5]||(y[5]=B=>g())},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},EJ=Hs(xJ,[["__scopeId","data-v-9ad43495"]]),TJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_J=H("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),OJ=[_J];function AJ(r,e){return N(),X("svg",TJ,[...OJ])}const Bu={name:"ep-plus",render:AJ},MJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},kJ=H("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"},null,-1),PJ=[kJ];function NJ(r,e){return N(),X("svg",MJ,[...PJ])}const IJ={name:"ep-minus",render:NJ},LJ={class:"nodeBox"},RJ={class:"dialog-footer"},fu="85px",$J=!1,DJ={__name:"ConditionNode",setup(r){const{t:e,tm:n,rt:s}=cn(),o=new Map,i=Ve("getNode"),{robotId:l}=Ve("robotId"),a=j(!1),c=j(!1),u=Ul().conditionGroup[0][0];u.conditionType="";const d=Ul();d.branchName=e("lang.common.else"),d.branchType="GotoAnotherNode",d.editable=!1;const f=[[]],h=n("lang.conditionNode.types"),p=[{label:h[0],value:"UserIntent"},{label:"Zero-Shot Classification",value:"TextZeroShotClassification"},{label:h[1],value:"UserInput"},{label:h[2],value:"FlowVariable"}],g={FlowVariable:[]},m=n("lang.conditionNode.compares"),v={UserIntent:[{label:m[0],value:"Eq",inputType:0,showCS:!1}],UserInput:[{label:m[0],value:"Eq",inputType:1,showCS:!0},{label:m[2],value:"Contains",inputType:1,showCS:!0},{label:m[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:m[0],value:"Eq",inputType:1,showCS:!0,belongsTo:"StrNum"},{label:m[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"}],TextZeroShotClassification:[]},b={UserIntent:[]};let C=-1;const y=St({nodeName:e("lang.conditionNode.nodeName"),branches:[d],valid:!1,invalidMessages:[],newNode:!0}),w=Ul();w.conditionGroup=[];const x=St(w),E=j();i().on("change:data",({current:fe})=>{a.value=!0}),f[0].push(pi(u)),nt(async()=>{let fe=await rt("GET","intent",null,null,null);if(fe&&fe.status==200&&fe.data){const G=b.UserIntent;G.splice(0,G.length),fe.data.forEach(function(ne,se,me){this.push({label:ne.name,value:ne.name})},G)}if(fe=await rt("GET","variable",{robotId:l},null,null),fe&&fe.status==200&&fe.data){const G=g.FlowVariable;G.splice(0,G.length),fe.data.forEach(function(ne,se,me){this.push({label:ne.varName,value:ne.varName,vtype:ne.varType})},G)}const Ee=i().getData();sr(Ee,y),y.newNode?y.nodeName+=Ee.nodeCnt.toString():y.branches.forEach(function(G,ne){o.set(G.branchId,ne)}),y.newNode=!1,k()});const _=n("lang.conditionNode.errors"),A=St({branchName:[{validator:(fe,we,Ee)=>{if(we=="")Ee(new Error(_[0]));else{for(let G=0;G{y.branches.splice(fe,1),$()}).catch(()=>{})}function R(){a.value=!1}function U(){let fe=E.value.offsetHeight;const we=i(),Ee=y.branches.length,G=E.value.offsetWidth-15;let ne,se;const me=new Map;for(let Pe=0;Pe{we.removePort(Se,{silent:!1}),o.delete(Se)});for(const[Pe,Se]of me)o.set(Pe,Se);we.resize(we.size().width,20+fe,{direction:"bottom",silent:!1}),k(),we.setData(y,{silent:!0}),R()}function Q(fe,we,Ee){const G=x.conditionGroup[we][Ee],ne=g[fe];ne?G.refOptions=ne:G.refOptions=[],G.compareOptions=v[fe],G.compareType="";const se=b[fe];se?G.targetOptions=se:G.targetOptions=[]}function q(fe,we,Ee,G){const ne=x.conditionGroup[we][Ee];if(ne.compareOptions[0].belongsTo){const se=g.FlowVariable.filter(function(me,Pe,Se){return me.label===G});se.length==1&&(ne.compareType="",ne.compareOptions=v[fe].filter(function(me,Pe,Se){return me.belongsTo.indexOf(se[0].vtype)>-1}))}}function ee(fe,we,Ee){x.conditionGroup[fe][we].inputVariable=Ee.inputType==1,x.conditionGroup[fe][we].showCaseSensitiveCheckBox=Ee.showCS}function de(fe){const we=pi(u);fe.push(we)}function ce(){x.conditionGroup.push(...pi(f))}function Te(fe){x.conditionGroup.splice(fe,1)}return(fe,we)=>{const Ee=dt,G=gs,ne=Sn,se=lr,me=ei,Pe=Qo,Se=ra,D=Pn,L=RO,te=Vy,he=ir,ge=ll,Ce=Zo;return N(),X("div",LJ,[H("div",{ref_key:"nodeName",ref:E,class:"nodeTitle"},[le(oe(y.nodeName)+" ",1),Ue(H("span",null,[T(G,{class:"box-item",effect:"dark",content:y.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:O(()=>[T(Ee,{color:"red",size:"16"},{default:O(()=>[T(S(ma))]),_:1})]),_:1},8,["content"])],512),[[st,y.invalidMessages.length>0]])],512),T(ge,{modelValue:c.value,"onUpdate:modelValue":we[5]||(we[5]=xe=>c.value=xe),title:S(e)("lang.conditionNode.newBranch"),width:"75%","append-to-body":!0,"destroy-on-close":!0},{footer:O(()=>[H("span",RJ,[T(D,{type:"primary",onClick:we[2]||(we[2]=xe=>B())},{default:O(()=>[le(oe(S(e)("lang.common.save")),1)]),_:1}),T(D,{onClick:we[3]||(we[3]=xe=>$())},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1}),T(D,{type:"danger",disabled:S(C)==-1,onClick:we[4]||(we[4]=xe=>I(S(C)))},{default:O(()=>[le(oe(S(e)("lang.common.del")),1)]),_:1},8,["disabled"])])]),default:O(()=>[T(he,{model:x,rules:A},{default:O(()=>[T(se,{label:S(e)("lang.conditionNode.condName"),"label-width":fu,prop:"branchName"},{default:O(()=>[T(ne,{modelValue:x.branchName,"onUpdate:modelValue":we[0]||(we[0]=xe=>x.branchName=xe),autocomplete:"off",minlength:"1",maxlength:"15"},null,8,["modelValue"])]),_:1},8,["label"]),(N(!0),X(De,null,Ot(x.conditionGroup,(xe,V)=>(N(),ye(se,{key:V,label:S(e)("lang.conditionNode.condType"),"label-width":fu},{default:O(()=>[(N(!0),X(De,null,Ot(xe,(F,J)=>(N(),X("div",{key:J},[T(Pe,{modelValue:F.conditionType,"onUpdate:modelValue":ie=>F.conditionType=ie,placeholder:S(e)("lang.conditionNode.condTypePH"),onChange:ie=>Q(ie,V,J),style:{width:"116px"}},{default:O(()=>[(N(),X(De,null,Ot(p,ie=>T(me,{key:ie.label,label:ie.label,value:ie.value},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),Ue(T(Pe,{modelValue:F.refChoice,"onUpdate:modelValue":ie=>F.refChoice=ie,placeholder:S(e)("lang.conditionNode.comparedPH"),class:"optionWidth",onChange:ie=>q(F.conditionType,V,J,ie)},{default:O(()=>[(N(!0),X(De,null,Ot(F.refOptions,ie=>(N(),ye(me,{key:ie.label,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),[[st,F.refOptions.length>0]]),Ue(T(Pe,{modelValue:F.compareType,"onUpdate:modelValue":ie=>F.compareType=ie,placeholder:S(e)("lang.conditionNode.compareTypePH"),class:"optionWidth"},{default:O(()=>[(N(!0),X(De,null,Ot(F.compareOptions,ie=>(N(),ye(me,{key:ie.label,label:ie.label,value:ie.value,onClick:Ae=>ee(V,J,ie)},null,8,["label","value","onClick"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[st,F.compareOptions.length>0]]),Ue(T(Pe,{modelValue:F.targetValue,"onUpdate:modelValue":ie=>F.targetValue=ie,placeholder:S(e)("lang.conditionNode.targetPH"),class:"optionWidth"},{default:O(()=>[(N(!0),X(De,null,Ot(F.targetOptions,ie=>(N(),ye(me,{key:ie.label,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[st,F.targetOptions.length>0]]),Ue(T(Pe,{modelValue:F.targetValueVariant,"onUpdate:modelValue":ie=>F.targetValueVariant=ie,class:"optionWidth"},{default:O(()=>[T(me,{label:"const value",value:"Const"}),T(me,{label:"variable value",value:"Variable"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[st,F.inputVariable]]),Ue(T(Pe,{modelValue:F.targetValue,"onUpdate:modelValue":ie=>F.targetValue=ie,placeholder:"Please choose a variable",class:"optionWidth"},{default:O(()=>[(N(!0),X(De,null,Ot(g.FlowVariable,ie=>(N(),ye(me,{key:ie.label,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[st,F.inputVariable&&F.targetValueVariant=="Variable"]]),Ue(T(ne,{modelValue:F.targetValue,"onUpdate:modelValue":ie=>F.targetValue=ie,class:"optionWidth"},null,8,["modelValue","onUpdate:modelValue"]),[[st,F.inputVariable&&F.targetValueVariant=="Const"]]),Ue(T(Se,{modelValue:F.caseSensitiveComparison,"onUpdate:modelValue":ie=>F.caseSensitiveComparison=ie,label:"CaseSensitive"},null,8,["modelValue","onUpdate:modelValue"]),[[st,F.showCaseSensitiveCheckBox]]),T(L,null,{default:O(()=>[T(D,{type:"primary",onClick:ie=>de(xe)},{default:O(()=>[T(Ee,null,{default:O(()=>[T(S(Bu))]),_:1})]),_:2},1032,["onClick"]),Ue(T(D,{type:"danger",onClick:ie=>{xe.splice(J,1)}},{default:O(()=>[T(Ee,null,{default:O(()=>[T(S(IJ))]),_:1})]),_:2},1032,["onClick"]),[[st,xe.length>1]])]),_:2},1024),T(te,{"border-style":"dashed"})]))),128)),T(te),Ue(T(D,{type:"danger",onClick:F=>Te(V)},{default:O(()=>[le(" X ")]),_:2},1032,["onClick"]),[[st,x.conditionGroup.length>1]])]),_:2},1032,["label"]))),128)),T(se,{label:"","label-width":fu},{default:O(()=>[T(D,{type:"primary",onClick:we[1]||(we[1]=xe=>ce())},{default:O(()=>[T(Ee,null,{default:O(()=>[T(S(Bu))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"]),T(Ce,{modelValue:a.value,"onUpdate:modelValue":we[10]||(we[10]=xe=>a.value=xe),title:y.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:O(()=>[T(he,{model:y},{default:O(()=>[T(se,{label:S(e)("lang.common.nodeName"),"label-width":fu},{default:O(()=>[T(ne,{modelValue:y.nodeName,"onUpdate:modelValue":we[6]||(we[6]=xe=>y.nodeName=xe),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),T(se,{label:S(e)("lang.conditionNode.newCond"),"label-width":fu},{default:O(()=>[T(D,{type:"primary",onClick:we[7]||(we[7]=xe=>P())},{default:O(()=>[T(Ee,null,{default:O(()=>[T(S(Bu))]),_:1})]),_:1}),(N(!0),X(De,null,Ot(y.branches,(xe,V)=>(N(),ye(D,{key:V,type:"primary",onClick:F=>W(V),disabled:!xe.editable},{default:O(()=>[le(oe(xe.branchName),1)]),_:2},1032,["onClick","disabled"]))),128))]),_:1},8,["label"])]),_:1},8,["model"]),H("div",null,[T(D,{type:"primary",loading:$J,onClick:we[8]||(we[8]=xe=>U())},{default:O(()=>[le(oe(S(e)("lang.common.save")),1)]),_:1}),T(D,{onClick:we[9]||(we[9]=xe=>R())},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},VJ=Hs(DJ,[["__scopeId","data-v-7702009f"]]);function jn(r){this.content=r}jn.prototype={constructor:jn,find:function(r){for(var e=0;e>1}};jn.from=function(r){if(r instanceof jn)return r;var e=[];if(r)for(var n in r)e.push(n,r[n]);return new jn(e)};function LA(r,e,n){for(let s=0;;s++){if(s==r.childCount||s==e.childCount)return r.childCount==e.childCount?null:n;let o=r.child(s),i=e.child(s);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let l=0;o.text[l]==i.text[l];l++)n++;return n}if(o.content.size||i.content.size){let l=LA(o.content,i.content,n+1);if(l!=null)return l}n+=o.nodeSize}}function RA(r,e,n,s){for(let o=r.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:s};let l=r.child(--o),a=e.child(--i),c=l.nodeSize;if(l==a){n-=c,s-=c;continue}if(!l.sameMarkup(a))return{a:n,b:s};if(l.isText&&l.text!=a.text){let u=0,d=Math.min(l.text.length,a.text.length);for(;ue&&s(c,o+a,i||null,l)!==!1&&c.content.size){let d=a+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,n-d),s,o+d)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,s,o){let i="",l=!0;return this.nodesBetween(e,n,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,n-c):a.isLeaf?o?typeof o=="function"?o(a):o:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&s&&(l?l=!1:i+=s),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,s=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(s)&&(o[o.length-1]=n.withText(n.text+s.text),i=1);ie)for(let i=0,l=0;le&&((ln)&&(a.isText?a=a.cut(Math.max(0,e-l),Math.min(a.text.length,n-l)):a=a.cut(Math.max(0,e-l-1),Math.min(a.content.size,n-l-1))),s.push(a),o+=a.nodeSize),l=c}return new Oe(s,o)}cutByIndex(e,n){return e==n?Oe.empty:e==0&&n==this.content.length?this:new Oe(this.content.slice(e,n))}replaceChild(e,n){let s=this.content[e];if(s==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-s.nodeSize;return o[e]=n,new Oe(o,i)}addToStart(e){return new Oe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Oe(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 s=0,o=0;;s++){let i=this.child(s),l=o+i.nodeSize;if(l>=e)return l==e||n>0?jf(s+1,l):jf(s,o);o=l}}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 Oe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Oe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Oe.empty;let n,s=0;for(let o=0;othis.type.rank&&(n||(n=e.slice(0,o)),n.push(this),s=!0),n&&n.push(i)}}return n||(n=e.slice()),s||n.push(this),n}removeFromSet(e){for(let n=0;ns.type.rank-o.type.rank),n}};Bt.none=[];class Hh extends Error{}class He{constructor(e,n,s){this.content=e,this.openStart=n,this.openEnd=s}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let s=DA(this.content,e+this.openStart,n);return s&&new He(s,this.openStart,this.openEnd)}removeBetween(e,n){return new He($A(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 He.empty;let s=n.openStart||0,o=n.openEnd||0;if(typeof s!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new He(Oe.fromJSON(e,n.content),s,o)}static maxOpen(e,n=!0){let s=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)s++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new He(e,s,o)}}He.empty=new He(Oe.empty,0,0);function $A(r,e,n){let{index:s,offset:o}=r.findIndex(e),i=r.maybeChild(s),{index:l,offset:a}=r.findIndex(n);if(o==e||i.isText){if(a!=n&&!r.child(l).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(n))}if(s!=l)throw new RangeError("Removing non-flat range");return r.replaceChild(s,i.copy($A(i.content,e-o-1,n-o-1)))}function DA(r,e,n,s){let{index:o,offset:i}=r.findIndex(e),l=r.maybeChild(o);if(i==e||l.isText)return s&&!s.canReplace(o,o,n)?null:r.cut(0,e).append(n).append(r.cut(e));let a=DA(l.content,e-i-1,n);return a&&r.replaceChild(o,l.copy(a))}function FJ(r,e,n){if(n.openStart>r.depth)throw new Hh("Inserted content deeper than insertion position");if(r.depth-n.openStart!=e.depth-n.openEnd)throw new Hh("Inconsistent open depths");return VA(r,e,n,0)}function VA(r,e,n,s){let o=r.index(s),i=r.node(s);if(o==e.index(s)&&s=0&&r.isText&&r.sameMarkup(e[n])?e[n]=r.withText(e[n].text+r.text):e.push(r)}function zu(r,e,n,s){let o=(e||r).node(n),i=0,l=e?e.index(n):o.childCount;r&&(i=r.index(n),r.depth>n?i++:r.textOffset&&(Wl(r.nodeAfter,s),i++));for(let a=i;ao&&zb(r,e,o+1),l=s.depth>o&&zb(n,s,o+1),a=[];return zu(null,r,o,a),i&&l&&e.index(o)==n.index(o)?(FA(i,l),Wl(ql(i,BA(r,e,n,s,o+1)),a)):(i&&Wl(ql(i,Uh(r,e,o+1)),a),zu(e,n,o,a),l&&Wl(ql(l,Uh(n,s,o+1)),a)),zu(s,null,o,a),new Oe(a)}function Uh(r,e,n){let s=[];if(zu(null,r,n,s),r.depth>n){let o=zb(r,e,n+1);Wl(ql(o,Uh(r,e,n+1)),s)}return zu(e,null,n,s),new Oe(s)}function BJ(r,e){let n=e.depth-r.openStart,o=e.node(n).copy(r.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(Oe.from(o));return{start:o.resolveNoCache(r.openStart+n),end:o.resolveNoCache(o.content.size-r.openEnd-n)}}class vd{constructor(e,n,s){this.pos=e,this.path=n,this.parentOffset=s,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 s=this.pos-this.path[this.path.length-1],o=e.child(n);return s?e.child(n).cut(s):o}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 s=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;s--)if(e.pos<=this.end(s)&&(!n||n(this.node(s))))return new Wh(this,e,s);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 s=[],o=0,i=n;for(let l=e;;){let{index:a,offset:c}=l.content.findIndex(i),u=i-c;if(s.push(l,a,o+c),!u||(l=l.child(a),l.isText))break;i=u-1,o+=c+1}return new vd(n,s,i)}static resolveCached(e,n){for(let o=0;oe&&this.nodesBetween(e,n,i=>(s.isInSet(i.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()+")"),zA(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,s=Oe.empty,o=0,i=s.childCount){let l=this.contentMatchAt(e).matchFragment(s,o,i),a=l&&l.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let c=o;cn.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 s=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");s=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,s)}let o=Oe.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,s)}};Gl.prototype.text=void 0;class qh extends Gl{constructor(e,n,s,o){if(super(e,n,null,o),!s)throw new RangeError("Empty text nodes are not allowed");this.text=s}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):zA(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 qh(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new qh(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 zA(r,e){for(let n=r.length-1;n>=0;n--)e=r[n].type.name+"("+e+")";return e}class sa{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let s=new HJ(e,n);if(s.next==null)return sa.empty;let o=jA(s);s.next&&s.err("Unexpected trailing text");let i=JJ(YJ(o));return XJ(i,s),i}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(s){e.push(s);for(let o=0;o{let i=o+(s.validEnd?"*":" ")+" ";for(let l=0;l"+e.indexOf(s.next[l].next);return i}).join(` -`)}}sa.empty=new sa(!0);class HJ{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 jA(r){let e=[];do e.push(UJ(r));while(r.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function UJ(r){let e=[];do e.push(WJ(r));while(r.next&&r.next!=")"&&r.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function WJ(r){let e=KJ(r);for(;;)if(r.eat("+"))e={type:"plus",expr:e};else if(r.eat("*"))e={type:"star",expr:e};else if(r.eat("?"))e={type:"opt",expr:e};else if(r.eat("{"))e=qJ(r,e);else break;return e}function SS(r){/\D/.test(r.next)&&r.err("Expected number, got '"+r.next+"'");let e=Number(r.next);return r.pos++,e}function qJ(r,e){let n=SS(r),s=n;return r.eat(",")&&(r.next!="}"?s=SS(r):s=-1),r.eat("}")||r.err("Unclosed braced range"),{type:"range",min:n,max:s,expr:e}}function GJ(r,e){let n=r.nodeTypes,s=n[e];if(s)return[s];let o=[];for(let i in n){let l=n[i];l.groups.indexOf(e)>-1&&o.push(l)}return o.length==0&&r.err("No node type or group '"+e+"' found"),o}function KJ(r){if(r.eat("(")){let e=jA(r);return r.eat(")")||r.err("Missing closing paren"),e}else if(/\W/.test(r.next))r.err("Unexpected token '"+r.next+"'");else{let e=GJ(r,r.next).map(n=>(r.inline==null?r.inline=n.isInline:r.inline!=n.isInline&&r.err("Mixing inline and block content"),{type:"name",value:n}));return r.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function YJ(r){let e=[[]];return o(i(r,0),n()),e;function n(){return e.push([])-1}function s(l,a,c){let u={term:c,to:a};return e[l].push(u),u}function o(l,a){l.forEach(c=>c.to=a)}function i(l,a){if(l.type=="choice")return l.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(l.type=="seq")for(let c=0;;c++){let u=i(l.exprs[c],a);if(c==l.exprs.length-1)return u;o(u,a=n())}else if(l.type=="star"){let c=n();return s(a,c),o(i(l.expr,c),c),[s(c)]}else if(l.type=="plus"){let c=n();return o(i(l.expr,a),c),o(i(l.expr,c),c),[s(c)]}else{if(l.type=="opt")return[s(a)].concat(i(l.expr,a));if(l.type=="range"){let c=a;for(let u=0;u{r[l].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let d=0;d{u||o.push([a,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=e[s.join(",")]=new sa(s.indexOf(r.length-1)>-1);for(let l=0;l-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;ns[i]=new GA(i,n,l));let o=n.spec.topNode||"doc";if(!s[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!s.text)throw new RangeError("Every schema needs a 'text' type");for(let i in s.text.attrs)throw new RangeError("The text node type should not have attributes");return s}};class ZJ{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ig{constructor(e,n,s,o){this.name=e,this.rank=n,this.schema=s,this.spec=o,this.attrs=qA(o.attrs),this.excluded=null;let i=UA(this.attrs);this.instance=i?new Bt(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Bt(this,WA(this.attrs,e))}static compile(e,n){let s=Object.create(null),o=0;return e.forEach((i,l)=>s[i]=new ig(i,o++,n,l)),s}removeFromSet(e){for(var n=0;n-1}}class QJ{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=jn.from(e.nodes),n.marks=jn.from(e.marks||{}),this.nodes=ES.compile(this.spec.nodes,this),this.marks=ig.compile(this.spec.marks,this);let s=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 i=this.nodes[o],l=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=s[l]||(s[l]=sa.parse(l,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?TS(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],l=i.spec.excludes;i.excluded=l==null?[i]:l==""?[]:TS(this,l.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,s,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof ES){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,s,o)}text(e,n){let s=this.nodes.text;return new qh(s,s.defaultAttrs,e,Bt.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Gl.fromJSON(this,e)}markFromJSON(e){return Bt.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function TS(r,e){let n=[];for(let s=0;s-1)&&n.push(l=c)}if(!l)throw new SyntaxError("Unknown mark type: '"+e[s]+"'")}return n}function eX(r){return r.tag!=null}function tX(r){return r.style!=null}let Wy=class Hb{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(s=>{eX(s)?this.tags.push(s):tX(s)&&this.styles.push(s)}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let o=e.nodes[s.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let s=new OS(this,n,!1);return s.addAll(e,n.from,n.to),s.finish()}parseSlice(e,n={}){let s=new OS(this,n,!0);return s.addAll(e,n.from,n.to),He.maxOpen(s.finish())}matchTag(e,n,s){for(let o=s?this.tags.indexOf(s)+1:0;oe.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(l.getAttrs){let c=l.getAttrs(n);if(c===!1)continue;l.attrs=c||void 0}return l}}}static schemaRules(e){let n=[];function s(o){let i=o.priority==null?50:o.priority,l=0;for(;l{s(l=AS(l)),l.mark||l.ignore||l.clearMark||(l.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(l=>{s(l=AS(l)),l.node||l.ignore||l.mark||(l.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Hb(e,Hb.schemaRules(e)))}};const KA={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},nX={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},YA={ol:!0,ul:!0},Gh=1,Kh=2,ju=4;function _S(r,e,n){return e!=null?(e?Gh:0)|(e==="full"?Kh:0):r&&r.whitespace=="pre"?Gh|Kh:n&~ju}class Hf{constructor(e,n,s,o,i,l,a){this.type=e,this.attrs=n,this.marks=s,this.pendingMarks=o,this.solid=i,this.options=a,this.content=[],this.activeMarks=Bt.none,this.stashMarks=[],this.match=l||(a&ju?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Oe.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let s=this.type.contentMatch,o;return(o=s.findWrapping(e.type))?(this.match=s,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Gh)){let s=this.content[this.content.length-1],o;if(s&&s.isText&&(o=/[ \t\r\n\u000c]+$/.exec(s.text))){let i=s;s.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=Oe.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Oe.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,s=this.pendingMarks;nthis.addAll(e)),l&&this.sync(a),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.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 n=Bt.none,s=Bt.none;for(let o=0;o{l.clearMark(a)&&(s=a.addToSet(s))}):n=this.parser.schema.marks[l.mark].create(l.attrs).addToSet(n),l.consuming===!1)i=l;else break}return[n,s]}addElementByRule(e,n,s){let o,i,l;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(l=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(l));let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(s)this.addElement(e,s);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof n.contentElement=="string"?c=e.querySelector(n.contentElement):typeof n.contentElement=="function"?c=n.contentElement(e):n.contentElement&&(c=n.contentElement),this.findAround(e,c,!0),this.addAll(c)}o&&this.sync(a)&&this.open--,l&&this.removePendingMark(l,a)}addAll(e,n,s){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,l=s==null?null:e.childNodes[s];i!=l;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,s;for(let o=this.open;o>=0;o--){let i=this.nodes[o],l=i.findWrapping(e);if(l&&(!n||n.length>l.length)&&(n=l,s=i,!l.length)||i.solid)break}if(!n)return!1;this.sync(s);for(let o=0;othis.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 s=this.nodes[n].content;for(let o=s.length-1;o>=0;o--)e+=s[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let s=0;s-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),s=this.options.context,o=!this.isOpen&&(!s||s.parent.type==this.nodes[0].type),i=-(s?s.depth+1:0)+(o?0:1),l=(a,c)=>{for(;a>=0;a--){let u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;c>=i;c--)if(l(a-1,c))return!0;return!1}else{let d=c>0||c==0&&o?this.nodes[c].type:s&&c>=i?s.node(c-i).type:null;if(!d||d.name!=u&&d.groups.indexOf(u)==-1)return!1;c--}}return!0};return l(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let s=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(s&&s.isTextblock&&s.defaultAttrs)return s}for(let n in this.parser.schema.nodes){let s=this.parser.schema.nodes[n];if(s.isTextblock&&s.defaultAttrs)return s}}addPendingMark(e){let n=lX(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let s=this.open;s>=0;s--){let o=this.nodes[s];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let l=o.popFromStashMark(e);l&&o.type&&o.type.allowsMarkType(l.type)&&(o.activeMarks=l.addToSet(o.activeMarks))}if(o==n)break}}}function rX(r){for(let e=r.firstChild,n=null;e;e=e.nextSibling){let s=e.nodeType==1?e.nodeName.toLowerCase():null;s&&YA.hasOwnProperty(s)&&n?(n.appendChild(e),e=n):s=="li"?n=e:s&&(n=null)}}function sX(r,e){return(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,e)}function oX(r){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,s=[];for(;n=e.exec(r);)s.push(n[1],n[2].trim());return s}function AS(r){let e={};for(let n in r)e[n]=r[n];return e}function iX(r,e){let n=e.schema.nodes;for(let s in n){let o=n[s];if(!o.allowsMarkType(r))continue;let i=[],l=a=>{i.push(a);for(let c=0;c{if(i.length||l.marks.length){let a=0,c=0;for(;a=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(s),s=i.dom)}return s}serializeMark(e,n,s={}){let o=this.marks[e.type.name];return o&&Qs.renderSpec(um(s),o(e,n))}static renderSpec(e,n,s=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(s=o.slice(0,i),o=o.slice(i+1));let l,a=s?e.createElementNS(s,o):e.createElement(o),c=n[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}=Qs.renderSpec(e,f,s);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Qs(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=MS(e.nodes);return n.text||(n.text=s=>s.text),n}static marksFromSchema(e){return MS(e.marks)}}function MS(r){let e={};for(let n in r){let s=r[n].spec.toDOM;s&&(e[n]=s)}return e}function um(r){return r.document||window.document}const JA=65535,XA=Math.pow(2,16);function aX(r,e){return r+e*XA}function kS(r){return r&JA}function cX(r){return(r-(r&JA))/XA}const ZA=1,QA=2,mh=4,eM=8;class Ub{constructor(e,n,s){this.pos=e,this.delInfo=n,this.recover=s}get deleted(){return(this.delInfo&eM)>0}get deletedBefore(){return(this.delInfo&(ZA|mh))>0}get deletedAfter(){return(this.delInfo&(QA|mh))>0}get deletedAcross(){return(this.delInfo&mh)>0}}class Ir{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Ir.empty)return Ir.empty}recover(e){let n=0,s=kS(e);if(!this.inverted)for(let o=0;oe)break;let u=this.ranges[a+i],d=this.ranges[a+l],f=c+u;if(e<=f){let h=u?e==c?-1:e==f?1:n:n,p=c+o+(h<0?0:d);if(s)return p;let g=e==(n<0?c:f)?null:aX(a/3,e-c),m=e==c?QA:e==f?ZA:mh;return(n<0?e!=c:e!=f)&&(m|=eM),new Ub(p,m,g)}o+=d-u}return s?e+o:new Ub(e+o,0,null)}touches(e,n){let s=0,o=kS(n),i=this.inverted?2:1,l=this.inverted?1:2;for(let a=0;ae)break;let u=this.ranges[a+i],d=c+u;if(e<=d&&a==o*3)return!0;s+=this.ranges[a+l]-u}return!1}forEach(e){let n=this.inverted?2:1,s=this.inverted?1:2;for(let o=0,i=0;o=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?s-o-1:void 0)}}invert(){let e=new qa;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let s=this.from;si&&c!l.isAtom||!a.type.allowsMarkType(this.mark.type)?l:l.mark(this.mark.addToSet(l.marks)),o),n.openStart,n.openEnd);return yn.fromReplace(e,this.from,this.to,i)}invert(){return new eo(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),s=e.mapResult(this.to,-1);return n.deleted&&s.deleted||n.pos>=s.pos?null:new ki(n.pos,s.pos,this.mark)}merge(e){return e instanceof ki&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ki(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 ki(n.from,n.to,e.markFromJSON(n.mark))}}ar.jsonID("addMark",ki);class eo extends ar{constructor(e,n,s){super(),this.from=e,this.to=n,this.mark=s}apply(e){let n=e.slice(this.from,this.to),s=new He(qy(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return yn.fromReplace(e,this.from,this.to,s)}invert(){return new ki(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),s=e.mapResult(this.to,-1);return n.deleted&&s.deleted||n.pos>=s.pos?null:new eo(n.pos,s.pos,this.mark)}merge(e){return e instanceof eo&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new eo(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 eo(n.from,n.to,e.markFromJSON(n.mark))}}ar.jsonID("removeMark",eo);class Pi extends ar{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return yn.fail("No node at mark step's position");let s=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return yn.fromReplace(e,this.pos,this.pos+1,new He(Oe.from(s),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let s=this.mark.addToSet(n.marks);if(s.length==n.marks.length){for(let o=0;os.pos?null:new $n(n.pos,s.pos,o,i,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 $n(n.from,n.to,n.gapFrom,n.gapTo,He.fromJSON(e,n.slice),n.insert,!!n.structure)}}ar.jsonID("replaceAround",$n);function Wb(r,e,n){let s=r.resolve(e),o=n-e,i=s.depth;for(;o>0&&i>0&&s.indexAfter(i)==s.node(i).childCount;)i--,o--;if(o>0){let l=s.node(i).maybeChild(s.indexAfter(i));for(;o>0;){if(!l||l.isLeaf)return!0;l=l.firstChild,o--}}return!1}function uX(r,e,n,s){let o=[],i=[],l,a;r.doc.nodesBetween(e,n,(c,u,d)=>{if(!c.isInline)return;let f=c.marks;if(!s.isInSet(f)&&d.type.allowsMarkType(s.type)){let h=Math.max(u,e),p=Math.min(u+c.nodeSize,n),g=s.addToSet(f);for(let m=0;mr.step(c)),i.forEach(c=>r.step(c))}function dX(r,e,n,s){let o=[],i=0;r.doc.nodesBetween(e,n,(l,a)=>{if(!l.isInline)return;i++;let c=null;if(s instanceof ig){let u=l.marks,d;for(;d=s.isInSet(u);)(c||(c=[])).push(d),u=d.removeFromSet(u)}else s?s.isInSet(l.marks)&&(c=[s]):c=l.marks;if(c&&c.length){let u=Math.min(a+l.nodeSize,n);for(let d=0;dr.step(new eo(l.from,l.to,l.style)))}function tM(r,e,n,s=n.contentMatch,o=!0){let i=r.doc.nodeAt(e),l=[],a=e+1;for(let c=0;c=0;c--)r.step(l[c])}function fX(r,e,n){return(e==0||r.canReplace(e,r.childCount))&&(n==r.childCount||r.canReplace(0,n))}function tu(r){let n=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let s=r.depth;;--s){let o=r.$from.node(s),i=r.$from.index(s),l=r.$to.indexAfter(s);if(sn;g--)m||s.index(g)>0?(m=!0,d=Oe.from(s.node(g).copy(d)),f++):c--;let h=Oe.empty,p=0;for(let g=i,m=!1;g>n;g--)m||o.after(g+1)=0;l--){if(s.size){let a=n[l].type.contentMatch.matchFragment(s);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}s=Oe.from(n[l].type.create(n[l].attrs,s))}let o=e.start,i=e.end;r.step(new $n(o,i,o,i,new He(s,0,0),n.length,!0))}function bX(r,e,n,s,o){if(!s.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=r.steps.length;r.doc.nodesBetween(e,n,(l,a)=>{if(l.isTextblock&&!l.hasMarkup(s,o)&&wX(r.doc,r.mapping.slice(i).map(a),s)){let c=null;if(s.schema.linebreakReplacement){let h=s.whitespace=="pre",p=!!s.contentMatch.matchType(s.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&yX(r,l,a,i),tM(r,r.mapping.slice(i).map(a,1),s,void 0,c===null);let u=r.mapping.slice(i),d=u.map(a,1),f=u.map(a+l.nodeSize,1);return r.step(new $n(d,f,d+1,f-1,new He(Oe.from(s.create(o,null,l.marks)),0,0),1,!0)),c===!0&&vX(r,l,a,i),!1}})}function vX(r,e,n,s){e.forEach((o,i)=>{if(o.isText){let l,a=/\r?\n|\r/g;for(;l=a.exec(o.text);){let c=r.mapping.slice(s).map(n+1+i+l.index);r.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function yX(r,e,n,s){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let l=r.mapping.slice(s).map(n+1+i);r.replaceWith(l,l+1,e.type.schema.text(` -`))}})}function wX(r,e,n){let s=r.resolve(e),o=s.index();return s.parent.canReplaceWith(o,o+1,n)}function CX(r,e,n,s,o){let i=r.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let l=n.create(s,null,o||i.marks);if(i.isLeaf)return r.replaceWith(e,e+i.nodeSize,l);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);r.step(new $n(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new He(Oe.from(l),0,0),1,!0))}function Ga(r,e,n=1,s){let o=r.resolve(e),i=o.depth-n,l=s&&s[s.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!l.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,d=n-2;u>i;u--,d--){let f=o.node(u),h=o.index(u);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),g=s&&s[d+1];g&&(p=p.replaceChild(0,g.type.create(g.attrs)));let m=s&&s[d]||f;if(!f.canReplace(h+1,f.childCount)||!m.type.validContent(p))return!1}let a=o.indexAfter(i),c=s&&s[0];return o.node(i).canReplaceWith(a,a,c?c.type:o.node(i+1).type)}function SX(r,e,n=1,s){let o=r.doc.resolve(e),i=Oe.empty,l=Oe.empty;for(let a=o.depth,c=o.depth-n,u=n-1;a>c;a--,u--){i=Oe.from(o.node(a).copy(i));let d=s&&s[u];l=Oe.from(d?d.type.create(d.attrs,l):o.node(a).copy(l))}r.step(new Nn(e,e,new He(i.append(l),n,n),!0))}function al(r,e){let n=r.resolve(e),s=n.index();return nM(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(s,s+1)}function nM(r,e){return!!(r&&e&&!r.isLeaf&&r.canAppend(e))}function lg(r,e,n=-1){let s=r.resolve(e);for(let o=s.depth;;o--){let i,l,a=s.index(o);if(o==s.depth?(i=s.nodeBefore,l=s.nodeAfter):n>0?(i=s.node(o+1),a++,l=s.node(o).maybeChild(a)):(i=s.node(o).maybeChild(a-1),l=s.node(o+1)),i&&!i.isTextblock&&nM(i,l)&&s.node(o).canReplace(a,a+1))return e;if(o==0)break;e=n<0?s.before(o):s.after(o)}}function xX(r,e,n){let s=new Nn(e-n,e+n,He.empty,!0);r.step(s)}function EX(r,e,n){let s=r.resolve(e);if(s.parent.canReplaceWith(s.index(),s.index(),n))return e;if(s.parentOffset==0)for(let o=s.depth-1;o>=0;o--){let i=s.index(o);if(s.node(o).canReplaceWith(i,i,n))return s.before(o+1);if(i>0)return null}if(s.parentOffset==s.parent.content.size)for(let o=s.depth-1;o>=0;o--){let i=s.indexAfter(o);if(s.node(o).canReplaceWith(i,i,n))return s.after(o+1);if(i=0;l--){let a=l==s.depth?0:s.pos<=(s.start(l+1)+s.end(l+1))/2?-1:1,c=s.index(l)+(a>0?1:0),u=s.node(l),d=!1;if(i==1)d=u.canReplace(c,c,o);else{let f=u.contentMatchAt(c).findWrapping(o.firstChild.type);d=f&&u.canReplaceWith(c,c,f[0])}if(d)return a==0?s.pos:a<0?s.before(l+1):s.after(l+1)}return null}function ag(r,e,n=e,s=He.empty){if(e==n&&!s.size)return null;let o=r.resolve(e),i=r.resolve(n);return sM(o,i,s)?new Nn(e,n,s):new TX(o,i,s).fit()}function sM(r,e,n){return!n.openStart&&!n.openEnd&&r.start()==e.start()&&r.parent.canReplace(r.index(),e.index(),n.content)}class TX{constructor(e,n,s){this.$from=e,this.$to=n,this.unplaced=s,this.frontier=[],this.placed=Oe.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=Oe.from(e.node(o).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,s=this.$from,o=this.close(e<0?this.$to:s.doc.resolve(e));if(!o)return null;let i=this.placed,l=s.depth,a=o.depth;for(;l&&a&&i.childCount==1;)i=i.firstChild.content,l--,a--;let c=new He(i,l,a);return e>-1?new $n(s.pos,e,this.$to.pos,this.$to.end(),c,n):c.size||s.pos!=this.$to.pos?new Nn(s.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,s=0,o=this.unplaced.openEnd;s1&&(o=0),i.type.spec.isolating&&o<=s){e=s;break}n=i.content}for(let n=1;n<=2;n++)for(let s=n==1?e:this.unplaced.openStart;s>=0;s--){let o,i=null;s?(i=fm(this.unplaced.content,s-1).firstChild,o=i.content):o=this.unplaced.content;let l=o.firstChild;for(let a=this.depth;a>=0;a--){let{type:c,match:u}=this.frontier[a],d,f=null;if(n==1&&(l?u.matchType(l.type)||(f=u.fillBefore(Oe.from(l),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:s,frontierDepth:a,parent:i,inject:f};if(n==2&&l&&(d=u.findWrapping(l.type)))return{sliceDepth:s,frontierDepth:a,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:s}=this.unplaced,o=fm(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new He(e,n+1,Math.max(s,o.size+n>=e.size-s?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:s}=this.unplaced,o=fm(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new He(bu(e,n-1,1),n-1,i?n-1:s)}else this.unplaced=new He(bu(e,n,1),n,s)}placeNodes({sliceDepth:e,frontierDepth:n,parent:s,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let m=0;m1||c==0||m.content.size)&&(f=v,d.push(oM(m.mark(h.allowedMarks(m.marks)),u==1?c:0,u==a.childCount?p:-1)))}let g=u==a.childCount;g||(p=-1),this.placed=vu(this.placed,n,Oe.from(d)),this.frontier[n].match=f,g&&p<0&&s&&s.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,v=a;m1&&o==this.$to.end(--s);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:s,type:o}=this.frontier[n],i=n=0;a--){let{match:c,type:u}=this.frontier[a],d=hm(e,a,u,c,!0);if(!d||d.childCount)continue e}return{depth:n,fit:l,move:i?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=vu(this.placed,n.depth,n.fit)),e=n.move;for(let s=n.depth+1;s<=e.depth;s++){let o=e.node(s),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(s));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,s){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=vu(this.placed,this.depth,Oe.from(e.create(n,s))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Oe.empty,!0);n.childCount&&(this.placed=vu(this.placed,this.frontier.length,n))}}function bu(r,e,n){return e==0?r.cutByIndex(n,r.childCount):r.replaceChild(0,r.firstChild.copy(bu(r.firstChild.content,e-1,n)))}function vu(r,e,n){return e==0?r.append(n):r.replaceChild(r.childCount-1,r.lastChild.copy(vu(r.lastChild.content,e-1,n)))}function fm(r,e){for(let n=0;n1&&(s=s.replaceChild(0,oM(s.firstChild,e-1,s.childCount==1?n-1:0))),e>0&&(s=r.type.contentMatch.fillBefore(s).append(s),n<=0&&(s=s.append(r.type.contentMatch.matchFragment(s).fillBefore(Oe.empty,!0)))),r.copy(s)}function hm(r,e,n,s,o){let i=r.node(e),l=o?r.indexAfter(e):r.index(e);if(l==i.childCount&&!n.compatibleContent(i.type))return null;let a=s.fillBefore(i.content,!0,l);return a&&!_X(n,i.content,l)?a:null}function _X(r,e,n){for(let s=n;s0;h--,p--){let g=o.node(h).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;l.indexOf(h)>-1?a=h:o.before(h)==p&&l.splice(1,0,-h)}let c=l.indexOf(a),u=[],d=s.openStart;for(let h=s.content,p=0;;p++){let g=h.firstChild;if(u.push(g),p==s.openStart)break;h=g.content}for(let h=d-1;h>=0;h--){let p=u[h],g=OX(p.type);if(g&&!p.sameMarkup(o.node(Math.abs(a)-1)))d=h;else if(g||!p.type.isTextblock)break}for(let h=s.openStart;h>=0;h--){let p=(h+d+1)%(s.openStart+1),g=u[p];if(g)for(let m=0;m=0&&(r.replace(e,n,s),!(r.steps.length>f));h--){let p=l[h];p<0||(e=o.before(p),n=i.after(p))}}function iM(r,e,n,s,o){if(es){let i=o.contentMatchAt(0),l=i.fillBefore(r).append(r);r=l.append(i.matchFragment(l).fillBefore(Oe.empty,!0))}return r}function MX(r,e,n,s){if(!s.isInline&&e==n&&r.doc.resolve(e).parent.content.size){let o=EX(r.doc,e,s.type);o!=null&&(e=n=o)}r.replaceRange(e,n,new He(Oe.from(s),0,0))}function kX(r,e,n){let s=r.doc.resolve(e),o=r.doc.resolve(n),i=lM(s,o);for(let l=0;l0&&(c||s.node(a-1).canReplace(s.index(a-1),o.indexAfter(a-1))))return r.delete(s.before(a),o.after(a))}for(let l=1;l<=s.depth&&l<=o.depth;l++)if(e-s.start(l)==s.depth-l&&n>s.end(l)&&o.end(l)-n!=o.depth-l)return r.delete(s.before(l),n);r.delete(e,n)}function lM(r,e){let n=[],s=Math.min(r.depth,e.depth);for(let o=s;o>=0;o--){let i=r.start(o);if(ie.pos+(e.depth-o)||r.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==r.depth&&o==e.depth&&r.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class Ka extends ar{constructor(e,n,s){super(),this.pos=e,this.attr=n,this.value=s}apply(e){let n=e.nodeAt(this.pos);if(!n)return yn.fail("No node at attribute step's position");let s=Object.create(null);for(let i in n.attrs)s[i]=n.attrs[i];s[this.attr]=this.value;let o=n.type.create(s,null,n.marks);return yn.fromReplace(e,this.pos,this.pos+1,new He(Oe.from(o),0,n.isLeaf?0:1))}getMap(){return Ir.empty}invert(e){return new Ka(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 Ka(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 Ka(n.pos,n.attr,n.value)}}ar.jsonID("attr",Ka);class yd extends ar{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let s=e.type.create(n,e.content,e.marks);return yn.ok(s)}getMap(){return Ir.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,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new yd(n.attr,n.value)}}ar.jsonID("docAttr",yd);let Cc=class extends Error{};Cc=function r(e){let n=Error.call(this,e);return n.__proto__=r.prototype,n};Cc.prototype=Object.create(Error.prototype);Cc.prototype.constructor=Cc;Cc.prototype.name="TransformError";class PX{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new qa}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Cc(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,s=He.empty){let o=ag(this.doc,e,n,s);return o&&this.step(o),this}replaceWith(e,n,s){return this.replace(e,n,new He(Oe.from(s),0,0))}delete(e,n){return this.replace(e,n,He.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,s){return AX(this,e,n,s),this}replaceRangeWith(e,n,s){return MX(this,e,n,s),this}deleteRange(e,n){return kX(this,e,n),this}lift(e,n){return hX(this,e,n),this}join(e,n=1){return xX(this,e,n),this}wrap(e,n){return mX(this,e,n),this}setBlockType(e,n=e,s,o=null){return bX(this,e,n,s,o),this}setNodeMarkup(e,n,s=null,o){return CX(this,e,n,s,o),this}setNodeAttribute(e,n,s){return this.step(new Ka(e,n,s)),this}setDocAttribute(e,n){return this.step(new yd(e,n)),this}addNodeMark(e,n){return this.step(new Pi(e,n)),this}removeNodeMark(e,n){if(!(n instanceof Bt)){let s=this.doc.nodeAt(e);if(!s)throw new RangeError("No node at position "+e);if(n=n.isInSet(s.marks),!n)return this}return this.step(new wc(e,n)),this}split(e,n=1,s){return SX(this,e,n,s),this}addMark(e,n,s){return uX(this,e,n,s),this}removeMark(e,n,s){return dX(this,e,n,s),this}clearIncompatible(e,n,s){return tM(this,e,n,s),this}}const pm=Object.create(null);class Et{constructor(e,n,s){this.$anchor=e,this.$head=n,this.ranges=s||[new NX(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;i--){let l=n<0?Na(e.node(0),e.node(i),e.before(i+1),e.index(i),n,s):Na(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,s);if(l)return l}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Ps(e.node(0))}static atStart(e){return Na(e,e,0,0,1)||new Ps(e)}static atEnd(e){return Na(e,e,e.content.size,e.childCount,-1)||new Ps(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let s=pm[n.type];if(!s)throw new RangeError(`No selection type ${n.type} defined`);return s.fromJSON(e,n)}static jsonID(e,n){if(e in pm)throw new RangeError("Duplicate use of selection JSON ID "+e);return pm[e]=n,n.prototype.jsonID=e,n}getBookmark(){return yt.between(this.$anchor,this.$head).getBookmark()}}Et.prototype.visible=!0;class NX{constructor(e,n){this.$from=e,this.$to=n}}let NS=!1;function IS(r){!NS&&!r.parent.inlineContent&&(NS=!0)}class yt 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 s=e.resolve(n.map(this.head));if(!s.parent.inlineContent)return Et.near(s);let o=e.resolve(n.map(this.anchor));return new yt(o.parent.inlineContent?o:s,s)}replace(e,n=He.empty){if(super.replace(e,n),n==He.empty){let s=this.$from.marksAcross(this.$to);s&&e.ensureMarks(s)}}eq(e){return e instanceof yt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new cg(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 yt(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,s=n){let o=e.resolve(n);return new this(o,s==n?o:e.resolve(s))}static between(e,n,s){let o=e.pos-n.pos;if((!s||o)&&(s=o>=0?1:-1),!n.parent.inlineContent){let i=Et.findFrom(n,s,!0)||Et.findFrom(n,-s,!0);if(i)n=i.$head;else return Et.near(n,s)}return e.parent.inlineContent||(o==0?e=n:(e=(Et.findFrom(e,-s,!0)||Et.findFrom(e,s,!0)).$anchor,e.pos0?0:1);o>0?l=0;l+=o){let a=e.child(l);if(a.isAtom){if(!i&&ot.isSelectable(a))return ot.create(r,n-(o<0?a.nodeSize:0))}else{let c=Na(r,a,n+o,o<0?a.childCount:0,o,i);if(c)return c}n+=a.nodeSize*o}return null}function LS(r,e,n){let s=r.steps.length-1;if(s{l==null&&(l=d)}),r.setSelection(Et.near(r.doc.resolve(l),n))}const RS=1,Uf=2,$S=4;class LX extends PX{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|=Uf,this}ensureMarks(e){return Bt.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&Uf)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Uf,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let s=this.selection;return n&&(e=e.mark(this.storedMarks||(s.empty?s.$from.marks():s.$from.marksAcross(s.$to)||Bt.none))),s.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,s){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(s==null&&(s=n),s=s??n,!e)return this.deleteRange(n,s);let i=this.storedMarks;if(!i){let l=this.doc.resolve(n);i=s==n?l.marks():l.marksAcross(this.doc.resolve(s))}return this.replaceRangeWith(n,s,o.text(e,i)),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|=$S,this}get scrolledIntoView(){return(this.updated&$S)>0}}function DS(r,e){return!e||!r?r:r.bind(e)}class yu{constructor(e,n,s){this.name=e,this.init=DS(n.init,s),this.apply=DS(n.apply,s)}}const RX=[new yu("doc",{init(r){return r.doc||r.schema.topNodeType.createAndFill()},apply(r){return r.doc}}),new yu("selection",{init(r,e){return r.selection||Et.atStart(e.doc)},apply(r){return r.selection}}),new yu("storedMarks",{init(r){return r.storedMarks||null},apply(r,e,n,s){return s.selection.$cursor?r.storedMarks:null}}),new yu("scrollToSelection",{init(){return 0},apply(r,e){return r.scrolledIntoView?e+1:e}})];class gm{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=RX.slice(),n&&n.forEach(s=>{if(this.pluginsByKey[s.key])throw new RangeError("Adding different instances of a keyed plugin ("+s.key+")");this.plugins.push(s),this.pluginsByKey[s.key]=s,s.spec.state&&this.fields.push(new yu(s.key,s.spec.state,s))})}}class Da{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 s=0;ss.toJSON())),e&&typeof e=="object")for(let s in e){if(s=="doc"||s=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[s],i=o.spec.state;i&&i.toJSON&&(n[s]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,s){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new gm(e.schema,e.plugins),i=new Da(o);return o.fields.forEach(l=>{if(l.name=="doc")i.doc=Gl.fromJSON(e.schema,n.doc);else if(l.name=="selection")i.selection=Et.fromJSON(i.doc,n.selection);else if(l.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(s)for(let a in s){let c=s[a],u=c.spec.state;if(c.key==l.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[l.name]=u.fromJSON.call(c,e,n[a],i);return}}i[l.name]=l.init(e,i)}}),i}}function aM(r,e,n){for(let s in r){let o=r[s];o instanceof Function?o=o.bind(e):s=="handleDOMEvents"&&(o=aM(o,e,{})),n[s]=o}return n}class zr{constructor(e){this.spec=e,this.props={},e.props&&aM(e.props,this,this.props),this.key=e.key?e.key.key:cM("plugin")}getState(e){return e[this.key]}}const mm=Object.create(null);function cM(r){return r in mm?r+"$"+ ++mm[r]:(mm[r]=0,r+"$")}class ti{constructor(e="key"){this.key=cM(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Un=function(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e},wd=function(r){let e=r.assignedSlot||r.parentNode;return e&&e.nodeType==11?e.host:e};let qb=null;const Ao=function(r,e,n){let s=qb||(qb=document.createRange());return s.setEnd(r,n??r.nodeValue.length),s.setStart(r,e||0),s},$X=function(){qb=null},oa=function(r,e,n,s){return n&&(VS(r,e,n,s,-1)||VS(r,e,n,s,1))},DX=/^(img|br|input|textarea|hr)$/i;function VS(r,e,n,s,o){for(;;){if(r==n&&e==s)return!0;if(e==(o<0?0:Xs(r))){let i=r.parentNode;if(!i||i.nodeType!=1||of(r)||DX.test(r.nodeName)||r.contentEditable=="false")return!1;e=Un(r)+(o<0?0:1),r=i}else if(r.nodeType==1){if(r=r.childNodes[e+(o<0?-1:0)],r.contentEditable=="false")return!1;e=o<0?Xs(r):0}else return!1}}function Xs(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function VX(r,e){for(;;){if(r.nodeType==3&&e)return r;if(r.nodeType==1&&e>0){if(r.contentEditable=="false")return null;r=r.childNodes[e-1],e=Xs(r)}else if(r.parentNode&&!of(r))e=Un(r),r=r.parentNode;else return null}}function FX(r,e){for(;;){if(r.nodeType==3&&e2),Gr=Sc||(co?/Mac/.test(co.platform):!1),UX=co?/Win/.test(co.platform):!1,Cs=/Android \d/.test(cl),lf=!!FS&&"webkitFontSmoothing"in FS.documentElement.style,WX=lf?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function qX(r){let e=r.defaultView&&r.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.documentElement.clientWidth,top:0,bottom:r.documentElement.clientHeight}}function Eo(r,e){return typeof r=="number"?r:r[e]}function GX(r){let e=r.getBoundingClientRect(),n=e.width/r.offsetWidth||1,s=e.height/r.offsetHeight||1;return{left:e.left,right:e.left+r.clientWidth*n,top:e.top,bottom:e.top+r.clientHeight*s}}function BS(r,e,n){let s=r.someProp("scrollThreshold")||0,o=r.someProp("scrollMargin")||5,i=r.dom.ownerDocument;for(let l=n||r.dom;l;l=wd(l)){if(l.nodeType!=1)continue;let a=l,c=a==i.body,u=c?qX(i):GX(a),d=0,f=0;if(e.topu.bottom-Eo(s,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+Eo(o,"top")-u.top:e.bottom-u.bottom+Eo(o,"bottom")),e.leftu.right-Eo(s,"right")&&(d=e.right-u.right+Eo(o,"right")),d||f)if(c)i.defaultView.scrollBy(d,f);else{let h=a.scrollLeft,p=a.scrollTop;f&&(a.scrollTop+=f),d&&(a.scrollLeft+=d);let g=a.scrollLeft-h,m=a.scrollTop-p;e={left:e.left-g,top:e.top-m,right:e.right-g,bottom:e.bottom-m}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(l).position))break}}function KX(r){let e=r.dom.getBoundingClientRect(),n=Math.max(0,e.top),s,o;for(let i=(e.left+e.right)/2,l=n+1;l=n-20){s=a,o=c.top;break}}return{refDOM:s,refTop:o,stack:dM(r.dom)}}function dM(r){let e=[],n=r.ownerDocument;for(let s=r;s&&(e.push({dom:s,top:s.scrollTop,left:s.scrollLeft}),r!=n);s=wd(s));return e}function YX({refDOM:r,refTop:e,stack:n}){let s=r?r.getBoundingClientRect().top:0;fM(n,s==0?0:s-e)}function fM(r,e){for(let n=0;n=a){l=Math.max(g.bottom,l),a=Math.min(g.top,a);let m=g.left>e.left?g.left-e.left:g.right=(g.left+g.right)/2?1:0));continue}}else g.top>e.top&&!c&&g.left<=e.left&&g.right>=e.left&&(c=d,u={left:Math.max(g.left,Math.min(g.right,e.left)),top:g.top});!n&&(e.left>=g.right&&e.top>=g.top||e.left>=g.left&&e.top>=g.bottom)&&(i=f+1)}}return!n&&c&&(n=c,o=u,s=0),n&&n.nodeType==3?XX(n,o):!n||s&&n.nodeType==1?{node:r,offset:i}:hM(n,o)}function XX(r,e){let n=r.nodeValue.length,s=document.createRange();for(let o=0;o=(i.left+i.right)/2?1:0)}}return{node:r,offset:0}}function Yy(r,e){return r.left>=e.left-1&&r.left<=e.right+1&&r.top>=e.top-1&&r.top<=e.bottom+1}function ZX(r,e){let n=r.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(l.left+l.right)/2?1:-1}return r.docView.posFromDOM(s,o,i)}function eZ(r,e,n,s){let o=-1;for(let i=e,l=!1;i!=r.dom;){let a=r.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!l&&c.left>s.left||c.top>s.top?o=a.posBefore:(!l&&c.right-1?o:r.docView.posFromDOM(e,n,-1)}function pM(r,e,n){let s=r.childNodes.length;if(s&&n.tope.top&&o++}let u;lf&&o&&s.nodeType==1&&(u=s.childNodes[o-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&o--,s==r.dom&&o==s.childNodes.length-1&&s.lastChild.nodeType==1&&e.top>s.lastChild.getBoundingClientRect().bottom?a=r.state.doc.content.size:(o==0||s.nodeType!=1||s.childNodes[o-1].nodeName!="BR")&&(a=eZ(r,s,o,e))}a==null&&(a=QX(r,l,e));let c=r.docView.nearestDesc(l,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function zS(r){return r.top=0&&o==s.nodeValue.length?(c--,d=1):n<0?c--:u++,hu(gi(Ao(s,c,u),d),d<0)}if(!r.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==Xs(s))){let c=s.childNodes[o-1];if(c.nodeType==1)return bm(c.getBoundingClientRect(),!1)}if(i==null&&o=0)}if(i==null&&o&&(n<0||o==Xs(s))){let c=s.childNodes[o-1],u=c.nodeType==3?Ao(c,Xs(c)-(l?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return hu(gi(u,1),!1)}if(i==null&&o=0)}function hu(r,e){if(r.width==0)return r;let n=e?r.left:r.right;return{top:r.top,bottom:r.bottom,left:n,right:n}}function bm(r,e){if(r.height==0)return r;let n=e?r.top:r.bottom;return{top:n,bottom:n,left:r.left,right:r.right}}function mM(r,e,n){let s=r.state,o=r.root.activeElement;s!=e&&r.updateState(e),o!=r.dom&&r.focus();try{return n()}finally{s!=e&&r.updateState(s),o!=r.dom&&o&&o.focus()}}function rZ(r,e,n){let s=e.selection,o=n=="up"?s.$from:s.$to;return mM(r,e,()=>{let{node:i}=r.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let a=r.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let l=gM(r,o.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let c;if(a.nodeType==1)c=a.getClientRects();else if(a.nodeType==3)c=Ao(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;ud.top+1&&(n=="up"?l.top-d.top>(d.bottom-l.top)*2:d.bottom-l.bottom>(l.bottom-d.top)*2))return!1}}return!0})}const sZ=/[\u0590-\u08ac]/;function oZ(r,e,n){let{$head:s}=e.selection;if(!s.parent.isTextblock)return!1;let o=s.parentOffset,i=!o,l=o==s.parent.content.size,a=r.domSelection();return!sZ.test(s.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:l:mM(r,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:f}=r.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",n,"character");let p=s.depth?r.docView.domAfterPos(s.before()):r.dom,{focusNode:g,focusOffset:m}=r.domSelectionRange(),v=g&&!p.contains(g.nodeType==1?g:g.parentNode)||c==g&&u==m;try{a.collapse(d,f),c&&(c!=d||u!=f)&&a.extend&&a.extend(c,u)}catch{}return h!=null&&(a.caretBidiLevel=h),v})}let jS=null,HS=null,US=!1;function iZ(r,e,n){return jS==e&&HS==n?US:(jS=e,HS=n,US=n=="up"||n=="down"?rZ(r,e,n):oZ(r,e,n))}const rs=0,WS=1,Dl=2,uo=3;class af{constructor(e,n,s,o){this.parent=e,this.children=n,this.dom=s,this.contentDOM=o,this.dirty=rs,s.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,s){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;nUn(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(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??s>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let s=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),l;if(i&&(!n||i.node))if(s&&(l=i.nodeDOM)&&!(l.nodeType==1?l.contains(e.nodeType==1?e:e.parentNode):l==e))s=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let s=n;s;s=s.parent)if(s==this)return n}posFromDOM(e,n,s){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,s)}return-1}descAt(e){for(let n=0,s=0;ne||l instanceof vM){o=e-i;break}i=a}if(o)return this.children[s].domFromPos(o-this.children[s].border,n);for(let i;s&&!(i=this.children[s-1]).size&&i instanceof bM&&i.side>=0;s--);if(n<=0){let i,l=!0;for(;i=s?this.children[s-1]:null,!(!i||i.dom.parentNode==this.contentDOM);s--,l=!1);return i&&n&&l&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Un(i.dom)+1:0}}else{let i,l=!0;for(;i=s=d&&n<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,n,d);e=l;for(let f=a;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=Un(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(u>n||a==this.children.length-1)){n=u;for(let d=a+1;dp&&ln){let p=a;a=c,c=p}let h=document.createRange();h.setEnd(c.node,c.offset),h.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(h)}}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 s=0,o=0;o=s:es){let a=s+i.border,c=l-i.border;if(e>=a&&n<=c){this.dirty=e==s||n==l?Dl:WS,e==a&&n==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=uo:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Dl:uo}s=l}this.dirty=Dl}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let s=e==1?Dl:WS;n.dirty{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(l.nodeType!=1){let a=document.createElement("span");a.appendChild(l),l=a}l.contentEditable="false",l.classList.add("ProseMirror-widget")}super(e,[],l,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==rs&&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 lZ extends af{constructor(e,n,s,o){super(e,[],n,null),this.textDOM=s,this.text=o}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 ia extends af{constructor(e,n,s,o){super(e,[],s,o),this.mark=n}static create(e,n,s,o){let i=o.nodeViews[n.type.name],l=i&&i(n,o,s);return(!l||!l.dom)&&(l=Qs.renderSpec(document,n.type.spec.toDOM(n,s))),new ia(e,n,l.dom,l.contentDOM||l.dom)}parseRule(){return this.dirty&uo||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=uo&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=rs){let s=this.parent;for(;!s.node;)s=s.parent;s.dirty0&&(i=Zb(i,0,e,s));for(let a=0;a{if(!c)return l;if(c.parent)return c.parent.posBeforeChild(c)},s,o),d=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:f}=Qs.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let h=d;return d=CM(d,s,n),u?c=new aZ(e,n,s,o,d,f||null,h,u,i,l+1):n.isText?new dg(e,n,s,o,d,h,i):new Vi(e,n,s,o,d,f||null,h,i,l+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 s=this.children[n];if(this.dom.contains(s.dom.parentNode)){e.contentElement=s.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Oe.empty)}return e}matchesNode(e,n,s){return this.dirty==rs&&e.eq(this.node)&&Xb(n,this.outerDeco)&&s.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let s=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,l=i&&i.pos>-1?i:null,a=i&&i.pos<0,c=new uZ(this,l&&l.node,e);hZ(this.node,this.innerDeco,(u,d,f)=>{u.spec.marks?c.syncToMarks(u.spec.marks,s,e):u.type.side>=0&&!f&&c.syncToMarks(d==this.node.childCount?Bt.none:this.node.child(d).marks,s,e),c.placeWidget(u,e,o)},(u,d,f,h)=>{c.syncToMarks(u.marks,s,e);let p;c.findNodeMatch(u,d,f,h)||a&&e.state.selection.from>o&&e.state.selection.to-1&&c.updateNodeAt(u,d,f,p,e)||c.updateNextNode(u,d,f,e,h,o)||c.addNode(u,d,f,e,o),o+=u.nodeSize}),c.syncToMarks([],s,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Dl)&&(l&&this.protectLocalComposition(e,l),yM(this.contentDOM,this.children,e),Sc&&pZ(this.dom))}localCompositionInfo(e,n){let{from:s,to:o}=e.state.selection;if(!(e.state.selection instanceof yt)||sn+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let l=i.nodeValue,a=gZ(this.node.content,l,s-n,o-n);return a<0?null:{node:i,pos:a,text:l}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:s,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let l=new lZ(this,i,n,o);e.input.compositionNodes.push(l),this.children=Zb(this.children,s,s+o.length,e,l)}update(e,n,s,o){return this.dirty==uo||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,s,o),!0)}updateInner(e,n,s,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=s,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=rs}updateOuterDeco(e){if(Xb(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,s=this.dom;this.dom=wM(this.dom,this.nodeDOM,Jb(this.outerDeco,this.node,n),Jb(e,this.node,n)),this.dom!=s&&(s.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 qS(r,e,n,s,o){CM(s,e,r);let i=new Vi(void 0,r,e,n,s,s,s,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class dg extends Vi{constructor(e,n,s,o,i,l,a){super(e,n,s,o,i,null,l,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,s,o){return this.dirty==uo||this.dirty!=rs&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=rs||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=rs,!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,s){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,s)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,s){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new dg(this.parent,o,this.outerDeco,this.innerDeco,i,i,s)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=uo)}get domAtom(){return!1}isText(e){return this.node.text==e}}class vM extends af{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==rs&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class aZ extends Vi{constructor(e,n,s,o,i,l,a,c,u,d){super(e,n,s,o,i,l,a,u,d),this.spec=c}update(e,n,s,o){if(this.dirty==uo)return!1;if(this.spec.update){let i=this.spec.update(e,n,s);return i&&this.updateInner(e,n,s,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,s,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,s,o){this.spec.setSelection?this.spec.setSelection(e,n,s):super.setSelection(e,n,s,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 yM(r,e,n){let s=r.firstChild,o=!1;for(let i=0;i>1,l=Math.min(i,e.length);for(;o-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let c=ia.create(this.top,e[i],n,s);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,s,o){let i=-1,l;if(o>=this.preMatch.index&&(l=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&l.matchesNode(e,n,s))i=this.top.children.indexOf(l,this.index);else for(let a=this.index,c=Math.min(this.top.children.length,a+5);a0;){let a;for(;;)if(s){let u=n.children[s-1];if(u instanceof ia)n=u,s=u.children.length;else{a=u,s--;break}}else{if(n==e)break e;s=n.parent.children.indexOf(n),n=n.parent}let c=a.node;if(c){if(c!=r.child(o-1))break;--o,i.set(a,o),l.push(a)}}return{index:o,matched:i,matches:l.reverse()}}function fZ(r,e){return r.type.side-e.type.side}function hZ(r,e,n,s){let o=e.locals(r),i=0;if(o.length==0){for(let u=0;ui;)a.push(o[l++]);let g=i+h.nodeSize;if(h.isText){let v=g;l!v.inline):a.slice();s(h,m,e.forChild(i,h),p),i=g}}function pZ(r){if(r.nodeName=="UL"||r.nodeName=="OL"){let e=r.style.cssText;r.style.cssText=e+"; list-style: square !important",window.getComputedStyle(r).listStyle,r.style.cssText=e}}function gZ(r,e,n,s){for(let o=0,i=0;o=n){if(i>=s&&c.slice(s-e.length-a,s-a)==e)return s-e.length;let u=a=0&&u+e.length+a>=n)return a+u;if(n==s&&c.length>=s+e.length-a&&c.slice(s-a,s-a+e.length)==e)return s}}return-1}function Zb(r,e,n,s,o){let i=[];for(let l=0,a=0;l=n||d<=e?i.push(c):(un&&i.push(c.slice(n-u,c.size,s)))}return i}function Jy(r,e=null){let n=r.domSelectionRange(),s=r.state.doc;if(!n.focusNode)return null;let o=r.docView.nearestDesc(n.focusNode),i=o&&o.size==0,l=r.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let a=s.resolve(l),c,u;if(ug(n)){for(c=a;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&ot.isSelectable(d)&&o.parent&&!(d.isInline&&BX(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;u=new ot(l==f?a:s.resolve(f))}}else{let d=r.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(d<0)return null;c=s.resolve(d)}if(!u){let d=e=="pointer"||r.state.selection.head{(n.anchorNode!=s||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",r.input.hideSelectionGuard),setTimeout(()=>{(!SM(r)||r.state.selection.visible)&&r.dom.classList.remove("ProseMirror-hideselection")},20))})}function bZ(r){let e=r.domSelection(),n=document.createRange(),s=r.cursorWrapper.dom,o=s.nodeName=="IMG";o?n.setEnd(s.parentNode,Un(s)+1):n.setEnd(s,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!r.state.selection.visible&&Tr&&Di<=11&&(s.disabled=!0,s.disabled=!1)}function xM(r,e){if(e instanceof ot){let n=r.docView.descAt(e.from);n!=r.lastSelectedViewDesc&&(XS(r),n&&n.selectNode(),r.lastSelectedViewDesc=n)}else XS(r)}function XS(r){r.lastSelectedViewDesc&&(r.lastSelectedViewDesc.parent&&r.lastSelectedViewDesc.deselectNode(),r.lastSelectedViewDesc=void 0)}function Xy(r,e,n,s){return r.someProp("createSelectionBetween",o=>o(r,e,n))||yt.between(e,n,s)}function ZS(r){return r.editable&&!r.hasFocus()?!1:EM(r)}function EM(r){let e=r.domSelectionRange();if(!e.anchorNode)return!1;try{return r.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(r.editable||r.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function vZ(r){let e=r.docView.domFromPos(r.state.selection.anchor,0),n=r.domSelectionRange();return oa(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Qb(r,e){let{$anchor:n,$head:s}=r.selection,o=e>0?n.max(s):n.min(s),i=o.parent.inlineContent?o.depth?r.doc.resolve(e>0?o.after():o.before()):null:o;return i&&Et.findFrom(i,e)}function Ci(r,e){return r.dispatch(r.state.tr.setSelection(e).scrollIntoView()),!0}function QS(r,e,n){let s=r.state.selection;if(s instanceof yt)if(n.indexOf("s")>-1){let{$head:o}=s,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let l=r.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return Ci(r,new yt(s.$anchor,l))}else if(s.empty){if(r.endOfTextblock(e>0?"forward":"backward")){let o=Qb(r.state,e);return o&&o instanceof ot?Ci(r,o):!1}else if(!(Gr&&n.indexOf("m")>-1)){let o=s.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,l;if(!i||i.isText)return!1;let a=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(l=r.docView.descAt(a))&&!l.contentDOM?ot.isSelectable(i)?Ci(r,new ot(e<0?r.state.doc.resolve(o.pos-i.nodeSize):o)):lf?Ci(r,new yt(r.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(s instanceof ot&&s.node.isInline)return Ci(r,new yt(e>0?s.$to:s.$from));{let o=Qb(r.state,e);return o?Ci(r,o):!1}}}function Yh(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Uu(r,e){let n=r.pmViewDesc;return n&&n.size==0&&(e<0||r.nextSibling||r.nodeName!="BR")}function _a(r,e){return e<0?yZ(r):wZ(r)}function yZ(r){let e=r.domSelectionRange(),n=e.focusNode,s=e.focusOffset;if(!n)return;let o,i,l=!1;for(Ds&&n.nodeType==1&&s0){if(n.nodeType!=1)break;{let a=n.childNodes[s-1];if(Uu(a,-1))o=n,i=--s;else if(a.nodeType==3)n=a,s=n.nodeValue.length;else break}}else{if(TM(n))break;{let a=n.previousSibling;for(;a&&Uu(a,-1);)o=n.parentNode,i=Un(a),a=a.previousSibling;if(a)n=a,s=Yh(n);else{if(n=n.parentNode,n==r.dom)break;s=0}}}l?ev(r,n,s):o&&ev(r,o,i)}function wZ(r){let e=r.domSelectionRange(),n=e.focusNode,s=e.focusOffset;if(!n)return;let o=Yh(n),i,l;for(;;)if(s{r.state==o&&$o(r)},50)}function ex(r,e){let n=r.state.doc.resolve(e);if(!(fr||UX)&&n.parent.inlineContent){let o=r.coordsAtPos(e);if(e>n.start()){let i=r.coordsAtPos(e-1),l=(i.top+i.bottom)/2;if(l>o.top&&l1)return i.lefto.top&&l1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(r.dom).direction=="rtl"?"rtl":"ltr"}function tx(r,e,n){let s=r.state.selection;if(s instanceof yt&&!s.empty||n.indexOf("s")>-1||Gr&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=s;if(!o.parent.inlineContent||r.endOfTextblock(e<0?"up":"down")){let l=Qb(r.state,e);if(l&&l instanceof ot)return Ci(r,l)}if(!o.parent.inlineContent){let l=e<0?o:i,a=s instanceof Ps?Et.near(l,e):Et.findFrom(l,e);return a?Ci(r,a):!1}return!1}function nx(r,e){if(!(r.state.selection instanceof yt))return!0;let{$head:n,$anchor:s,empty:o}=r.state.selection;if(!n.sameParent(s))return!0;if(!o)return!1;if(r.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let l=r.state.tr;return e<0?l.delete(n.pos-i.nodeSize,n.pos):l.delete(n.pos,n.pos+i.nodeSize),r.dispatch(l),!0}return!1}function rx(r,e,n){r.domObserver.stop(),e.contentEditable=n,r.domObserver.start()}function xZ(r){if(!hr||r.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=r.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let s=e.firstChild;rx(r,s,"true"),setTimeout(()=>rx(r,s,"false"),20)}return!1}function EZ(r){let e="";return r.ctrlKey&&(e+="c"),r.metaKey&&(e+="m"),r.altKey&&(e+="a"),r.shiftKey&&(e+="s"),e}function TZ(r,e){let n=e.keyCode,s=EZ(e);if(n==8||Gr&&n==72&&s=="c")return nx(r,-1)||_a(r,-1);if(n==46&&!e.shiftKey||Gr&&n==68&&s=="c")return nx(r,1)||_a(r,1);if(n==13||n==27)return!0;if(n==37||Gr&&n==66&&s=="c"){let o=n==37?ex(r,r.state.selection.from)=="ltr"?-1:1:-1;return QS(r,o,s)||_a(r,o)}else if(n==39||Gr&&n==70&&s=="c"){let o=n==39?ex(r,r.state.selection.from)=="ltr"?1:-1:1;return QS(r,o,s)||_a(r,o)}else{if(n==38||Gr&&n==80&&s=="c")return tx(r,-1,s)||_a(r,-1);if(n==40||Gr&&n==78&&s=="c")return xZ(r)||tx(r,1,s)||_a(r,1);if(s==(Gr?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function _M(r,e){r.someProp("transformCopied",p=>{e=p(e,r)});let n=[],{content:s,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&s.childCount==1&&s.firstChild.childCount==1;){o--,i--;let p=s.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),s=p.content}let l=r.someProp("clipboardSerializer")||Qs.fromSchema(r.state.schema),a=NM(),c=a.createElement("div");c.appendChild(l.serializeFragment(s,{document:a}));let u=c.firstChild,d,f=0;for(;u&&u.nodeType==1&&(d=PM[u.nodeName.toLowerCase()]);){for(let p=d.length-1;p>=0;p--){let g=a.createElement(d[p]);for(;c.firstChild;)g.appendChild(c.firstChild);c.appendChild(g),f++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=r.someProp("clipboardTextSerializer",p=>p(e,r))||e.content.textBetween(0,e.content.size,` - -`);return{dom:c,text:h,slice:e}}function OM(r,e,n,s,o){let i=o.parent.type.spec.code,l,a;if(!n&&!e)return null;let c=e&&(s||i||!n);if(c){if(r.someProp("transformPastedText",h=>{e=h(e,i||s,r)}),i)return e?new He(Oe.from(r.state.schema.text(e.replace(/\r\n?/g,` -`))),0,0):He.empty;let f=r.someProp("clipboardTextParser",h=>h(e,o,s,r));if(f)a=f;else{let h=o.marks(),{schema:p}=r.state,g=Qs.fromSchema(p);l=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let v=l.appendChild(document.createElement("p"));m&&v.appendChild(g.serializeNode(p.text(m,h)))})}}else r.someProp("transformPastedHTML",f=>{n=f(n,r)}),l=AZ(n),lf&&MZ(l);let u=l&&l.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[3];f>0;f--){let h=l.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;l=h}if(a||(a=(r.someProp("clipboardParser")||r.someProp("domParser")||Wy.fromSchema(r.state.schema)).parseSlice(l,{preserveWhitespace:!!(c||d),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!_Z.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)a=kZ(sx(a,+d[1],+d[2]),d[4]);else if(a=He.maxOpen(OZ(a.content,o),!0),a.openStart||a.openEnd){let f=0,h=0;for(let p=a.content.firstChild;f{a=f(a,r)}),a}const _Z=/^(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 OZ(r,e){if(r.childCount<2)return r;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,l=[];if(r.forEach(a=>{if(!l)return;let c=o.findWrapping(a.type),u;if(!c)return l=null;if(u=l.length&&i.length&&MM(c,i,a,l[l.length-1],0))l[l.length-1]=u;else{l.length&&(l[l.length-1]=kM(l[l.length-1],i.length));let d=AM(a,c);l.push(d),o=o.matchType(d.type),i=c}}),l)return Oe.from(l)}return r}function AM(r,e,n=0){for(let s=e.length-1;s>=n;s--)r=e[s].create(null,Oe.from(r));return r}function MM(r,e,n,s,o){if(o1&&(i=0),o=n&&(a=e<0?l.contentMatchAt(0).fillBefore(a,i<=o).append(a):a.append(l.contentMatchAt(l.childCount).fillBefore(Oe.empty,!0))),r.replaceChild(e<0?0:r.childCount-1,l.copy(a))}function sx(r,e,n){return e]*>)*/.exec(r);e&&(r=r.slice(e[0].length));let n=NM().createElement("div"),s=/<([a-z][^>\s]+)/i.exec(r),o;if((o=s&&PM[s[1].toLowerCase()])&&(r=o.map(i=>"<"+i+">").join("")+r+o.map(i=>"").reverse().join("")),n.innerHTML=r,o)for(let i=0;i=0;a-=2){let c=n.nodes[s[a]];if(!c||c.hasRequiredAttrs())break;o=Oe.from(c.create(s[a+1],o)),i++,l++}return new He(o,i,l)}const pr={},gr={},PZ={touchstart:!0,touchmove:!0};class NZ{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 IZ(r){for(let e in pr){let n=pr[e];r.dom.addEventListener(e,r.input.eventHandlers[e]=s=>{RZ(r,s)&&!Zy(r,s)&&(r.editable||!(s.type in gr))&&n(r,s)},PZ[e]?{passive:!0}:void 0)}hr&&r.dom.addEventListener("input",()=>null),nv(r)}function Ni(r,e){r.input.lastSelectionOrigin=e,r.input.lastSelectionTime=Date.now()}function LZ(r){r.domObserver.stop();for(let e in r.input.eventHandlers)r.dom.removeEventListener(e,r.input.eventHandlers[e]);clearTimeout(r.input.composingTimeout),clearTimeout(r.input.lastIOSEnterFallbackTimeout)}function nv(r){r.someProp("handleDOMEvents",e=>{for(let n in e)r.input.eventHandlers[n]||r.dom.addEventListener(n,r.input.eventHandlers[n]=s=>Zy(r,s))})}function Zy(r,e){return r.someProp("handleDOMEvents",n=>{let s=n[e.type];return s?s(r,e)||e.defaultPrevented:!1})}function RZ(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=r.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function $Z(r,e){!Zy(r,e)&&pr[e.type]&&(r.editable||!(e.type in gr))&&pr[e.type](r,e)}gr.keydown=(r,e)=>{let n=e;if(r.input.shiftKey=n.keyCode==16||n.shiftKey,!LM(r,n)&&(r.input.lastKeyCode=n.keyCode,r.input.lastKeyCodeTime=Date.now(),!(Cs&&fr&&n.keyCode==13)))if(n.keyCode!=229&&r.domObserver.forceFlush(),Sc&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let s=Date.now();r.input.lastIOSEnter=s,r.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{r.input.lastIOSEnter==s&&(r.someProp("handleKeyDown",o=>o(r,Ml(13,"Enter"))),r.input.lastIOSEnter=0)},200)}else r.someProp("handleKeyDown",s=>s(r,n))||TZ(r,n)?n.preventDefault():Ni(r,"key")};gr.keyup=(r,e)=>{e.keyCode==16&&(r.input.shiftKey=!1)};gr.keypress=(r,e)=>{let n=e;if(LM(r,n)||!n.charCode||n.ctrlKey&&!n.altKey||Gr&&n.metaKey)return;if(r.someProp("handleKeyPress",o=>o(r,n))){n.preventDefault();return}let s=r.state.selection;if(!(s instanceof yt)||!s.$from.sameParent(s.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!r.someProp("handleTextInput",i=>i(r,s.$from.pos,s.$to.pos,o))&&r.dispatch(r.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function fg(r){return{left:r.clientX,top:r.clientY}}function DZ(r,e){let n=e.x-r.clientX,s=e.y-r.clientY;return n*n+s*s<100}function Qy(r,e,n,s,o){if(s==-1)return!1;let i=r.state.doc.resolve(s);for(let l=i.depth+1;l>0;l--)if(r.someProp(e,a=>l>i.depth?a(r,n,i.nodeAfter,i.before(l),o,!0):a(r,n,i.node(l),i.before(l),o,!1)))return!0;return!1}function Ya(r,e,n){r.focused||r.focus();let s=r.state.tr.setSelection(e);n=="pointer"&&s.setMeta("pointer",!0),r.dispatch(s)}function VZ(r,e){if(e==-1)return!1;let n=r.state.doc.resolve(e),s=n.nodeAfter;return s&&s.isAtom&&ot.isSelectable(s)?(Ya(r,new ot(n),"pointer"),!0):!1}function FZ(r,e){if(e==-1)return!1;let n=r.state.selection,s,o;n instanceof ot&&(s=n.node);let i=r.state.doc.resolve(e);for(let l=i.depth+1;l>0;l--){let a=l>i.depth?i.nodeAfter:i.node(l);if(ot.isSelectable(a)){s&&n.$from.depth>0&&l>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(l);break}}return o!=null?(Ya(r,ot.create(r.state.doc,o),"pointer"),!0):!1}function BZ(r,e,n,s,o){return Qy(r,"handleClickOn",e,n,s)||r.someProp("handleClick",i=>i(r,e,s))||(o?FZ(r,n):VZ(r,n))}function zZ(r,e,n,s){return Qy(r,"handleDoubleClickOn",e,n,s)||r.someProp("handleDoubleClick",o=>o(r,e,s))}function jZ(r,e,n,s){return Qy(r,"handleTripleClickOn",e,n,s)||r.someProp("handleTripleClick",o=>o(r,e,s))||HZ(r,n,s)}function HZ(r,e,n){if(n.button!=0)return!1;let s=r.state.doc;if(e==-1)return s.inlineContent?(Ya(r,yt.create(s,0,s.content.size),"pointer"),!0):!1;let o=s.resolve(e);for(let i=o.depth+1;i>0;i--){let l=i>o.depth?o.nodeAfter:o.node(i),a=o.before(i);if(l.inlineContent)Ya(r,yt.create(s,a+1,a+1+l.content.size),"pointer");else if(ot.isSelectable(l))Ya(r,ot.create(s,a),"pointer");else continue;return!0}}function e0(r){return Jh(r)}const IM=Gr?"metaKey":"ctrlKey";pr.mousedown=(r,e)=>{let n=e;r.input.shiftKey=n.shiftKey;let s=e0(r),o=Date.now(),i="singleClick";o-r.input.lastClick.time<500&&DZ(n,r.input.lastClick)&&!n[IM]&&(r.input.lastClick.type=="singleClick"?i="doubleClick":r.input.lastClick.type=="doubleClick"&&(i="tripleClick")),r.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let l=r.posAtCoords(fg(n));l&&(i=="singleClick"?(r.input.mouseDown&&r.input.mouseDown.done(),r.input.mouseDown=new UZ(r,l,n,!!s)):(i=="doubleClick"?zZ:jZ)(r,l.pos,l.inside,n)?n.preventDefault():Ni(r,"pointer"))};class UZ{constructor(e,n,s,o){this.view=e,this.pos=n,this.event=s,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!s[IM],this.allowDefault=s.shiftKey;let i,l;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),l=n.inside;else{let d=e.state.doc.resolve(n.pos);i=d.parent,l=d.depth?d.before():0}const a=o?null:s.target,c=a?e.docView.nearestDesc(a,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:u}=e.state;(s.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof ot&&u.from<=l&&u.to>l)&&(this.mightDrag={node:i,pos:l,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ds&&!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)),Ni(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(()=>$o(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(fg(e))),this.updateAllowDefault(e),this.allowDefault||!n?Ni(this.view,"pointer"):BZ(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||hr&&this.mightDrag&&!this.mightDrag.node.isAtom||fr&&!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)?(Ya(this.view,Et.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):Ni(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ni(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)}}pr.touchstart=r=>{r.input.lastTouch=Date.now(),e0(r),Ni(r,"pointer")};pr.touchmove=r=>{r.input.lastTouch=Date.now(),Ni(r,"pointer")};pr.contextmenu=r=>e0(r);function LM(r,e){return r.composing?!0:hr&&Math.abs(e.timeStamp-r.input.compositionEndedAt)<500?(r.input.compositionEndedAt=-2e8,!0):!1}const WZ=Cs?5e3:-1;gr.compositionstart=gr.compositionupdate=r=>{if(!r.composing){r.domObserver.flush();let{state:e}=r,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(s=>s.type.spec.inclusive===!1)))r.markCursor=r.state.storedMarks||n.marks(),Jh(r,!0),r.markCursor=null;else if(Jh(r),Ds&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let s=r.domSelectionRange();for(let o=s.focusNode,i=s.focusOffset;o&&o.nodeType==1&&i!=0;){let l=i<0?o.lastChild:o.childNodes[i-1];if(!l)break;if(l.nodeType==3){r.domSelection().collapse(l,l.nodeValue.length);break}else o=l,i=-1}}r.input.composing=!0}RM(r,WZ)};gr.compositionend=(r,e)=>{r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=e.timeStamp,r.input.compositionPendingChanges=r.domObserver.pendingRecords().length?r.input.compositionID:0,r.input.compositionNode=null,r.input.compositionPendingChanges&&Promise.resolve().then(()=>r.domObserver.flush()),r.input.compositionID++,RM(r,20))};function RM(r,e){clearTimeout(r.input.composingTimeout),e>-1&&(r.input.composingTimeout=setTimeout(()=>Jh(r),e))}function $M(r){for(r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=GZ());r.input.compositionNodes.length>0;)r.input.compositionNodes.pop().markParentsDirty()}function qZ(r){let e=r.domSelectionRange();if(!e.focusNode)return null;let n=VX(e.focusNode,e.focusOffset),s=FX(e.focusNode,e.focusOffset);if(n&&s&&n!=s){let o=s.pmViewDesc;if(!o||!o.isText(s.nodeValue))return s;if(r.input.compositionNode==s){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return s}}return n||s}function GZ(){let r=document.createEvent("Event");return r.initEvent("event",!0,!0),r.timeStamp}function Jh(r,e=!1){if(!(Cs&&r.domObserver.flushingSoon>=0)){if(r.domObserver.forceFlush(),$M(r),e||r.docView&&r.docView.dirty){let n=Jy(r);return n&&!n.eq(r.state.selection)?r.dispatch(r.state.tr.setSelection(n)):r.updateState(r.state),!0}return!1}}function KZ(r,e){if(!r.dom.parentNode)return;let n=r.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let s=getSelection(),o=document.createRange();o.selectNodeContents(e),r.dom.blur(),s.removeAllRanges(),s.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),r.focus()},50)}const Cd=Tr&&Di<15||Sc&&WX<604;pr.copy=gr.cut=(r,e)=>{let n=e,s=r.state.selection,o=n.type=="cut";if(s.empty)return;let i=Cd?null:n.clipboardData,l=s.content(),{dom:a,text:c}=_M(r,l);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):KZ(r,a),o&&r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function YZ(r){return r.openStart==0&&r.openEnd==0&&r.content.childCount==1?r.content.firstChild:null}function JZ(r,e){if(!r.dom.parentNode)return;let n=r.input.shiftKey||r.state.selection.$from.parent.type.spec.code,s=r.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(s.contentEditable="true"),s.style.cssText="position: fixed; left: -10000px; top: 10px",s.focus();let o=r.input.shiftKey&&r.input.lastKeyCode!=45;setTimeout(()=>{r.focus(),s.parentNode&&s.parentNode.removeChild(s),n?Sd(r,s.value,null,o,e):Sd(r,s.textContent,s.innerHTML,o,e)},50)}function Sd(r,e,n,s,o){let i=OM(r,e,n,s,r.state.selection.$from);if(r.someProp("handlePaste",c=>c(r,o,i||He.empty)))return!0;if(!i)return!1;let l=YZ(i),a=l?r.state.tr.replaceSelectionWith(l,s):r.state.tr.replaceSelection(i);return r.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function DM(r){let e=r.getData("text/plain")||r.getData("Text");if(e)return e;let n=r.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}gr.paste=(r,e)=>{let n=e;if(r.composing&&!Cs)return;let s=Cd?null:n.clipboardData,o=r.input.shiftKey&&r.input.lastKeyCode!=45;s&&Sd(r,DM(s),s.getData("text/html"),o,n)?n.preventDefault():JZ(r,n)};class VM{constructor(e,n,s){this.slice=e,this.move=n,this.node=s}}const FM=Gr?"altKey":"ctrlKey";pr.dragstart=(r,e)=>{let n=e,s=r.input.mouseDown;if(s&&s.done(),!n.dataTransfer)return;let o=r.state.selection,i=o.empty?null:r.posAtCoords(fg(n)),l;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof ot?o.to-1:o.to))){if(s&&s.mightDrag)l=ot.create(r.state.doc,s.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=r.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=r.docView&&(l=ot.create(r.state.doc,f.posBefore))}}let a=(l||r.state.selection).content(),{dom:c,text:u,slice:d}=_M(r,a);n.dataTransfer.clearData(),n.dataTransfer.setData(Cd?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Cd||n.dataTransfer.setData("text/plain",u),r.dragging=new VM(d,!n[FM],l)};pr.dragend=r=>{let e=r.dragging;window.setTimeout(()=>{r.dragging==e&&(r.dragging=null)},50)};gr.dragover=gr.dragenter=(r,e)=>e.preventDefault();gr.drop=(r,e)=>{let n=e,s=r.dragging;if(r.dragging=null,!n.dataTransfer)return;let o=r.posAtCoords(fg(n));if(!o)return;let i=r.state.doc.resolve(o.pos),l=s&&s.slice;l?r.someProp("transformPasted",g=>{l=g(l,r)}):l=OM(r,DM(n.dataTransfer),Cd?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(s&&!n[FM]);if(r.someProp("handleDrop",g=>g(r,n,l||He.empty,a))){n.preventDefault();return}if(!l)return;n.preventDefault();let c=l?rM(r.state.doc,i.pos,l):i.pos;c==null&&(c=i.pos);let u=r.state.tr;if(a){let{node:g}=s;g?g.replace(u):u.deleteSelection()}let d=u.mapping.map(c),f=l.openStart==0&&l.openEnd==0&&l.content.childCount==1,h=u.doc;if(f?u.replaceRangeWith(d,d,l.content.firstChild):u.replaceRange(d,d,l),u.doc.eq(h))return;let p=u.doc.resolve(d);if(f&&ot.isSelectable(l.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(l.content.firstChild))u.setSelection(new ot(p));else{let g=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((m,v,b,C)=>g=C),u.setSelection(Xy(r,p,u.doc.resolve(g)))}r.focus(),r.dispatch(u.setMeta("uiEvent","drop"))};pr.focus=r=>{r.input.lastFocus=Date.now(),r.focused||(r.domObserver.stop(),r.dom.classList.add("ProseMirror-focused"),r.domObserver.start(),r.focused=!0,setTimeout(()=>{r.docView&&r.hasFocus()&&!r.domObserver.currentSelection.eq(r.domSelectionRange())&&$o(r)},20))};pr.blur=(r,e)=>{let n=e;r.focused&&(r.domObserver.stop(),r.dom.classList.remove("ProseMirror-focused"),r.domObserver.start(),n.relatedTarget&&r.dom.contains(n.relatedTarget)&&r.domObserver.currentSelection.clear(),r.focused=!1)};pr.beforeinput=(r,e)=>{if(fr&&Cs&&e.inputType=="deleteContentBackward"){r.domObserver.flushSoon();let{domChangeCount:s}=r.input;setTimeout(()=>{if(r.input.domChangeCount!=s||(r.dom.blur(),r.focus(),r.someProp("handleKeyDown",i=>i(r,Ml(8,"Backspace")))))return;let{$cursor:o}=r.state.selection;o&&o.pos>0&&r.dispatch(r.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let r in gr)pr[r]=gr[r];function xd(r,e){if(r==e)return!0;for(let n in r)if(r[n]!==e[n])return!1;for(let n in e)if(!(n in r))return!1;return!0}class Xh{constructor(e,n){this.toDOM=e,this.spec=n||Kl,this.side=this.spec.side||0}map(e,n,s,o){let{pos:i,deleted:l}=e.mapResult(n.from+o,this.side<0?-1:1);return l?null:new Qr(i-s,i-s,this)}valid(){return!0}eq(e){return this==e||e instanceof Xh&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&xd(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Fi{constructor(e,n){this.attrs=e,this.spec=n||Kl}map(e,n,s,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-s,l=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-s;return i>=l?null:new Qr(i,l,this)}valid(e,n){return n.from=e&&(!i||i(a.spec))&&s.push(a.copy(a.from+o,a.to+o))}for(let l=0;le){let a=this.children[l]+1;this.children[l+2].findInner(e-a,n-a,s,o+a,i)}}map(e,n,s){return this==Qn||e.maps.length==0?this:this.mapInner(e,n,0,0,s||Kl)}mapInner(e,n,s,o,i){let l;for(let a=0;a{let u=c+s,d;if(d=zM(n,a,u)){for(o||(o=this.children.slice());ia&&f.to=e){this.children[a]==e&&(s=this.children[a+2]);break}let i=e+1,l=i+n.content.size;for(let a=0;ai&&c.type instanceof Fi){let u=Math.max(i,c.from)-i,d=Math.min(l,c.to)-i;uo.map(e,n,Kl));return Oi.from(s)}forChild(e,n){if(n.isLeaf)return Tn.empty;let s=[];for(let o=0;on instanceof Tn)?e:e.reduce((n,s)=>n.concat(s instanceof Tn?s:s.members),[]))}}}function XZ(r,e,n,s,o,i,l){let a=r.slice();for(let u=0,d=i;u{let v=m-g-(p-h);for(let b=0;bC+d-f)continue;let y=a[b]+d-f;p>=y?a[b+1]=h<=y?-2:-1:h>=d&&v&&(a[b]+=v,a[b+1]+=v)}f+=v}),d=n.maps[u].map(d,-1)}let c=!1;for(let u=0;u=s.content.size){c=!0;continue}let h=n.map(r[u+1]+i,-1),p=h-o,{index:g,offset:m}=s.content.findIndex(f),v=s.maybeChild(g);if(v&&m==f&&m+v.nodeSize==p){let b=a[u+2].mapInner(n,v,d+1,r[u]+i+1,l);b!=Qn?(a[u]=f,a[u+1]=p,a[u+2]=b):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=ZZ(a,r,e,n,o,i,l),d=Zh(u,s,0,l);e=d.local;for(let f=0;fn&&l.to{let u=zM(r,a,c+n);if(u){i=!0;let d=Zh(u,a,n+c+1,s);d!=Qn&&o.push(c,c+a.nodeSize,d)}});let l=BM(i?jM(r):r,-n).sort(Yl);for(let a=0;a0;)e++;r.splice(e,0,n)}function ym(r){let e=[];return r.someProp("decorations",n=>{let s=n(r.state);s&&s!=Qn&&e.push(s)}),r.cursorWrapper&&e.push(Tn.create(r.state.doc,[r.cursorWrapper.deco])),Oi.from(e)}const QZ={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},eQ=Tr&&Di<=11;class tQ{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 nQ{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new tQ,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(s=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),eQ&&(this.onCharData=s=>{this.queue.push({target:s.target,type:"characterData",oldValue:s.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,QZ)),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(ZS(this.view)){if(this.suppressingSelectionUpdates)return $o(this.view);if(Tr&&Di<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&oa(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,s;for(let i=e.focusNode;i;i=wd(i))n.add(i);for(let i=e.anchorNode;i;i=wd(i))if(n.has(i)){s=i;break}let o=s&&this.view.docView.nearestDesc(s);if(o&&o.ignoreMutation({type:"selection",target:s.nodeType==3?s.parentNode:s}))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 n=this.pendingRecords();n.length&&(this.queue=[]);let s=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(s)&&ZS(e)&&!this.ignoreSelectionChange(s),i=-1,l=-1,a=!1,c=[];if(e.editable)for(let d=0;df.nodeName=="BR");if(d.length==2){let[f,h]=d;f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let h of d){let p=h.parentNode;p&&p.nodeName=="LI"&&(!f||oQ(e,f)!=p)&&h.remove()}}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||o)&&(i>-1&&(e.docView.markDirty(i,l),rQ(e)),this.handleDOMChange(i,l,a,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(s)||$o(e),this.currentSelection.set(s))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let s=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(s==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!s||s.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;do;v--){let b=s.childNodes[v-1],C=b.pmViewDesc;if(b.nodeName=="BR"&&!C){i=v;break}if(!C||C.size)break}let f=r.state.doc,h=r.someProp("domParser")||Wy.fromSchema(r.state.schema),p=f.resolve(l),g=null,m=h.parse(s,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:lQ,context:p});if(u&&u[0].pos!=null){let v=u[0].pos,b=u[1]&&u[1].pos;b==null&&(b=v),g={anchor:v+l,head:b+l}}return{doc:m,sel:g,from:l,to:a}}function lQ(r){let e=r.pmViewDesc;if(e)return e.parseRule();if(r.nodeName=="BR"&&r.parentNode){if(hr&&/^(ul|ol)$/i.test(r.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(r.parentNode.lastChild==r||hr&&/^(tr|table)$/i.test(r.parentNode.nodeName))return{ignore:!0}}else if(r.nodeName=="IMG"&&r.getAttribute("mark-placeholder"))return{ignore:!0};return null}const aQ=/^(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 cQ(r,e,n,s,o){let i=r.input.compositionPendingChanges||(r.composing?r.input.compositionID:0);if(r.input.compositionPendingChanges=0,e<0){let A=r.input.lastSelectionTime>Date.now()-50?r.input.lastSelectionOrigin:null,k=Jy(r,A);if(k&&!r.state.selection.eq(k)){if(fr&&Cs&&r.input.lastKeyCode===13&&Date.now()-100$(r,Ml(13,"Enter"))))return;let P=r.state.tr.setSelection(k);A=="pointer"?P.setMeta("pointer",!0):A=="key"&&P.scrollIntoView(),i&&P.setMeta("composition",i),r.dispatch(P)}return}let l=r.state.doc.resolve(e),a=l.sharedDepth(n);e=l.before(a+1),n=r.state.doc.resolve(n).after(a+1);let c=r.state.selection,u=iQ(r,e,n),d=r.state.doc,f=d.slice(u.from,u.to),h,p;r.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Cs)&&o.some(A=>A.nodeType==1&&!aQ.test(A.nodeName))&&(!g||g.endA>=g.endB)&&r.someProp("handleKeyDown",A=>A(r,Ml(13,"Enter")))){r.input.lastIOSEnter=0;return}if(!g)if(s&&c instanceof yt&&!c.empty&&c.$head.sameParent(c.$anchor)&&!r.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))g={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let A=ux(r,r.state.doc,u.sel);if(A&&!A.eq(r.state.selection)){let k=r.state.tr.setSelection(A);i&&k.setMeta("composition",i),r.dispatch(k)}}return}r.input.domChangeCount++,r.state.selection.fromr.state.selection.from&&g.start<=r.state.selection.from+2&&r.state.selection.from>=u.from?g.start=r.state.selection.from:g.endA=r.state.selection.to-2&&r.state.selection.to<=u.to&&(g.endB+=r.state.selection.to-g.endA,g.endA=r.state.selection.to)),Tr&&Di<=11&&g.endB==g.start+1&&g.endA==g.start&&g.start>u.from&&u.doc.textBetween(g.start-u.from-1,g.start-u.from+1)=="  "&&(g.start--,g.endA--,g.endB--);let m=u.doc.resolveNoCache(g.start-u.from),v=u.doc.resolveNoCache(g.endB-u.from),b=d.resolve(g.start),C=m.sameParent(v)&&m.parent.inlineContent&&b.end()>=g.endA,y;if((Sc&&r.input.lastIOSEnter>Date.now()-225&&(!C||o.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!C&&m.posA(r,Ml(13,"Enter")))){r.input.lastIOSEnter=0;return}if(r.state.selection.anchor>g.start&&dQ(d,g.start,g.endA,m,v)&&r.someProp("handleKeyDown",A=>A(r,Ml(8,"Backspace")))){Cs&&fr&&r.domObserver.suppressSelectionUpdates();return}fr&&Cs&&g.endB==g.start&&(r.input.lastAndroidDelete=Date.now()),Cs&&!C&&m.start()!=v.start()&&v.parentOffset==0&&m.depth==v.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==g.endA&&(g.endB-=2,v=u.doc.resolveNoCache(g.endB-u.from),setTimeout(()=>{r.someProp("handleKeyDown",function(A){return A(r,Ml(13,"Enter"))})},20));let w=g.start,x=g.endA,E,_,M;if(C){if(m.pos==v.pos)Tr&&Di<=11&&m.parentOffset==0&&(r.domObserver.suppressSelectionUpdates(),setTimeout(()=>$o(r),20)),E=r.state.tr.delete(w,x),_=d.resolve(g.start).marksAcross(d.resolve(g.endA));else if(g.endA==g.endB&&(M=uQ(m.parent.content.cut(m.parentOffset,v.parentOffset),b.parent.content.cut(b.parentOffset,g.endA-b.start()))))E=r.state.tr,M.type=="add"?E.addMark(w,x,M.mark):E.removeMark(w,x,M.mark);else if(m.parent.child(m.index()).isText&&m.index()==v.index()-(v.textOffset?0:1)){let A=m.parent.textBetween(m.parentOffset,v.parentOffset);if(r.someProp("handleTextInput",k=>k(r,w,x,A)))return;E=r.state.tr.insertText(A,w,x)}}if(E||(E=r.state.tr.replace(w,x,u.doc.slice(g.start-u.from,g.endB-u.from))),u.sel){let A=ux(r,E.doc,u.sel);A&&!(fr&&Cs&&r.composing&&A.empty&&(g.start!=g.endB||r.input.lastAndroidDeletee.content.size?null:Xy(r,e.resolve(n.anchor),e.resolve(n.head))}function uQ(r,e){let n=r.firstChild.marks,s=e.firstChild.marks,o=n,i=s,l,a,c;for(let d=0;dd.mark(a.addToSet(d.marks));else if(o.length==0&&i.length==1)a=i[0],l="remove",c=d=>d.mark(a.removeFromSet(d.marks));else return null;let u=[];for(let d=0;dn||wm(l,!0,!1)0&&(e||r.indexAfter(s)==r.node(s).childCount);)s--,o++,e=!1;if(n){let i=r.node(s).maybeChild(r.indexAfter(s));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function fQ(r,e,n,s,o){let i=r.findDiffStart(e,n);if(i==null)return null;let{a:l,b:a}=r.findDiffEnd(e,n+r.size,n+e.size);if(o=="end"){let c=Math.max(0,i-Math.min(l,a));s-=l+c-i}if(l=l?i-s:0;i-=c,i&&i=a?i-s:0;i-=c,i&&i=56320&&e<=57343&&n>=55296&&n<=56319}class hQ{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 NZ,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(mx),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=px(this),hx(this),this.nodeViews=gx(this),this.docView=qS(this.state.doc,fx(this),ym(this),this.dom,this),this.domObserver=new nQ(this,(s,o,i,l)=>cQ(this,s,o,i,l)),this.domObserver.start(),IZ(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&&nv(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(mx),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let s in this._props)n[s]=this._props[s];n.state=this.state;for(let s in e)n[s]=e[s];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var s;let o=this.state,i=!1,l=!1;e.storedMarks&&this.composing&&($M(this),l=!0),this.state=e;let a=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=gx(this);gQ(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&nv(this),this.editable=px(this),hx(this);let c=ym(this),u=fx(this),d=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,u,c);(f||!e.selection.eq(o.selection))&&(l=!0);let h=d=="preserve"&&l&&this.dom.style.overflowAnchor==null&&KX(this);if(l){this.domObserver.stop();let p=f&&(Tr||fr)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&pQ(o.selection,e.selection);if(f){let g=fr?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=qZ(this)),(i||!this.docView.update(e.doc,u,c,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=qS(e.doc,u,c,this.dom,this)),g&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&vZ(this))?$o(this,p):(xM(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((s=this.dragging)===null||s===void 0)&&s.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&YX(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ot){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&BS(this,n.getBoundingClientRect(),e)}else BS(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(i))==s.node&&(o=i)}this.dragging=new VM(e.slice,e.move,o<0?void 0:ot.create(this.state.doc,o))}someProp(e,n){let s=this._props&&this._props[e],o;if(s!=null&&(o=n?n(s):s))return o;for(let l=0;ln.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return tZ(this,e)}coordsAtPos(e,n=1){return gM(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,s=-1){let o=this.docView.posFromDOM(e,n,s);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return iZ(this,n||this.state,e)}pasteHTML(e,n){return Sd(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Sd(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(LZ(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ym(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,$X())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return $Z(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 hr&&this.root.nodeType===11&&zX(this.dom.ownerDocument)==this.dom&&sQ(this,e)||e}domSelection(){return this.root.getSelection()}}function fx(r){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(r.editable),r.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(r.state)),n)for(let s in n)s=="class"?e.class+=" "+n[s]:s=="style"?e.style=(e.style?e.style+";":"")+n[s]:!e[s]&&s!="contenteditable"&&s!="nodeName"&&(e[s]=String(n[s]))}),e.translate||(e.translate="no"),[Qr.node(0,r.state.doc.content.size,e)]}function hx(r){if(r.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),r.cursorWrapper={dom:e,deco:Qr.widget(r.state.selection.head,e,{raw:!0,marks:r.markCursor})}}else r.cursorWrapper=null}function px(r){return!r.someProp("editable",e=>e(r.state)===!1)}function pQ(r,e){let n=Math.min(r.$anchor.sharedDepth(r.head),e.$anchor.sharedDepth(e.head));return r.$anchor.start(n)!=e.$anchor.start(n)}function gx(r){let e=Object.create(null);function n(s){for(let o in s)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=s[o])}return r.someProp("nodeViews",n),r.someProp("markViews",n),e}function gQ(r,e){let n=0,s=0;for(let o in r){if(r[o]!=e[o])return!0;n++}for(let o in e)s++;return n!=s}function mx(r){if(r.spec.state||r.spec.filterTransaction||r.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Wi={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:"'"},Qh={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mQ=typeof navigator<"u"&&/Mac/.test(navigator.platform),bQ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Wn=0;Wn<10;Wn++)Wi[48+Wn]=Wi[96+Wn]=String(Wn);for(var Wn=1;Wn<=24;Wn++)Wi[Wn+111]="F"+Wn;for(var Wn=65;Wn<=90;Wn++)Wi[Wn]=String.fromCharCode(Wn+32),Qh[Wn]=String.fromCharCode(Wn);for(var Cm in Wi)Qh.hasOwnProperty(Cm)||(Qh[Cm]=Wi[Cm]);function vQ(r){var e=mQ&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||bQ&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",n=!e&&r.key||(r.shiftKey?Qh:Wi)[r.keyCode]||r.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 yQ=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function wQ(r){let e=r.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let s,o,i,l;for(let a=0;a127)&&(i=Wi[s.keyCode])&&i!=o){let a=e[Sm(i,s)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const xQ=(r,e)=>r.selection.empty?!1:(e&&e(r.tr.deleteSelection().scrollIntoView()),!0);function UM(r,e){let{$cursor:n}=r.selection;return!n||(e?!e.endOfTextblock("backward",r):n.parentOffset>0)?null:n}const EQ=(r,e,n)=>{let s=UM(r,n);if(!s)return!1;let o=r0(s);if(!o){let l=s.blockRange(),a=l&&tu(l);return a==null?!1:(e&&e(r.tr.lift(l,a).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&KM(r,o,e))return!0;if(s.parent.content.size==0&&(xc(i,"end")||ot.isSelectable(i))){let l=ag(r.doc,s.before(),s.after(),He.empty);if(l&&l.slice.size{let s=UM(r,n);if(!s)return!1;let o=r0(s);return o?WM(r,o,e):!1},_Q=(r,e,n)=>{let s=qM(r,n);if(!s)return!1;let o=s0(s);return o?WM(r,o,e):!1};function WM(r,e,n){let s=e.nodeBefore,o=s,i=e.pos-1;for(;!o.isTextblock;i--){if(o.type.spec.isolating)return!1;let d=o.lastChild;if(!d)return!1;o=d}let l=e.nodeAfter,a=l,c=e.pos+1;for(;!a.isTextblock;c++){if(a.type.spec.isolating)return!1;let d=a.firstChild;if(!d)return!1;a=d}let u=ag(r.doc,i,c,He.empty);if(!u||u.from!=i||u instanceof Nn&&u.slice.size>=c-i)return!1;if(n){let d=r.tr.step(u);d.setSelection(yt.create(d.doc,i)),n(d.scrollIntoView())}return!0}function xc(r,e,n=!1){for(let s=r;s;s=e=="start"?s.firstChild:s.lastChild){if(s.isTextblock)return!0;if(n&&s.childCount!=1)return!1}return!1}const OQ=(r,e,n)=>{let{$head:s,empty:o}=r.selection,i=s;if(!o)return!1;if(s.parent.isTextblock){if(n?!n.endOfTextblock("backward",r):s.parentOffset>0)return!1;i=r0(s)}let l=i&&i.nodeBefore;return!l||!ot.isSelectable(l)?!1:(e&&e(r.tr.setSelection(ot.create(r.doc,i.pos-l.nodeSize)).scrollIntoView()),!0)};function r0(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){if(r.index(e)>0)return r.doc.resolve(r.before(e+1));if(r.node(e).type.spec.isolating)break}return null}function qM(r,e){let{$cursor:n}=r.selection;return!n||(e?!e.endOfTextblock("forward",r):n.parentOffset{let s=qM(r,n);if(!s)return!1;let o=s0(s);if(!o)return!1;let i=o.nodeAfter;if(KM(r,o,e))return!0;if(s.parent.content.size==0&&(xc(i,"start")||ot.isSelectable(i))){let l=ag(r.doc,s.before(),s.after(),He.empty);if(l&&l.slice.size{let{$head:s,empty:o}=r.selection,i=s;if(!o)return!1;if(s.parent.isTextblock){if(n?!n.endOfTextblock("forward",r):s.parentOffset=0;e--){let n=r.node(e);if(r.index(e)+1{let n=r.selection,s=n instanceof ot,o;if(s){if(n.node.isTextblock||!al(r.doc,n.from))return!1;o=n.from}else if(o=lg(r.doc,n.from,-1),o==null)return!1;if(e){let i=r.tr.join(o);s&&i.setSelection(ot.create(i.doc,o-r.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},PQ=(r,e)=>{let n=r.selection,s;if(n instanceof ot){if(n.node.isTextblock||!al(r.doc,n.to))return!1;s=n.to}else if(s=lg(r.doc,n.to,1),s==null)return!1;return e&&e(r.tr.join(s).scrollIntoView()),!0},NQ=(r,e)=>{let{$from:n,$to:s}=r.selection,o=n.blockRange(s),i=o&&tu(o);return i==null?!1:(e&&e(r.tr.lift(o,i).scrollIntoView()),!0)},IQ=(r,e)=>{let{$head:n,$anchor:s}=r.selection;return!n.parent.type.spec.code||!n.sameParent(s)?!1:(e&&e(r.tr.insertText(` -`).scrollIntoView()),!0)};function GM(r){for(let e=0;e{let{$head:n,$anchor:s}=r.selection;if(!n.parent.type.spec.code||!n.sameParent(s))return!1;let o=n.node(-1),i=n.indexAfter(-1),l=GM(o.contentMatchAt(i));if(!l||!o.canReplaceWith(i,i,l))return!1;if(e){let a=n.after(),c=r.tr.replaceWith(a,a,l.createAndFill());c.setSelection(Et.near(c.doc.resolve(a),1)),e(c.scrollIntoView())}return!0},RQ=(r,e)=>{let n=r.selection,{$from:s,$to:o}=n;if(n instanceof Ps||s.parent.inlineContent||o.parent.inlineContent)return!1;let i=GM(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let l=(!s.parentOffset&&o.index(){let{$cursor:n}=r.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Ga(r.doc,i))return e&&e(r.tr.split(i).scrollIntoView()),!0}let s=n.blockRange(),o=s&&tu(s);return o==null?!1:(e&&e(r.tr.lift(s,o).scrollIntoView()),!0)},DQ=(r,e)=>{let{$from:n,to:s}=r.selection,o,i=n.sharedDepth(s);return i==0?!1:(o=n.before(i),e&&e(r.tr.setSelection(ot.create(r.doc,o))),!0)};function VQ(r,e,n){let s=e.nodeBefore,o=e.nodeAfter,i=e.index();return!s||!o||!s.type.compatibleContent(o.type)?!1:!s.content.size&&e.parent.canReplace(i-1,i)?(n&&n(r.tr.delete(e.pos-s.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||al(r.doc,e.pos))?!1:(n&&n(r.tr.clearIncompatible(e.pos,s.type,s.contentMatchAt(s.childCount)).join(e.pos).scrollIntoView()),!0)}function KM(r,e,n){let s=e.nodeBefore,o=e.nodeAfter,i,l;if(s.type.spec.isolating||o.type.spec.isolating)return!1;if(VQ(r,e,n))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(i=(l=s.contentMatchAt(s.childCount)).findWrapping(o.type))&&l.matchType(i[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,h=Oe.empty;for(let m=i.length-1;m>=0;m--)h=Oe.from(i[m].create(null,h));h=Oe.from(s.copy(h));let p=r.tr.step(new $n(e.pos-1,f,e.pos,f,new He(h,1,0),i.length,!0)),g=f+2*i.length;al(p.doc,g)&&p.join(g),n(p.scrollIntoView())}return!0}let c=Et.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),d=u&&tu(u);if(d!=null&&d>=e.depth)return n&&n(r.tr.lift(u,d).scrollIntoView()),!0;if(a&&xc(o,"start",!0)&&xc(s,"end")){let f=s,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let p=o,g=1;for(;!p.isTextblock;p=p.firstChild)g++;if(f.canReplace(f.childCount,f.childCount,p.content)){if(n){let m=Oe.empty;for(let b=h.length-1;b>=0;b--)m=Oe.from(h[b].copy(m));let v=r.tr.step(new $n(e.pos-h.length,e.pos+o.nodeSize,e.pos+g,e.pos+o.nodeSize-g,new He(m,h.length,0),0,!0));n(v.scrollIntoView())}return!0}}return!1}function YM(r){return function(e,n){let s=e.selection,o=r<0?s.$from:s.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(yt.create(e.doc,r<0?o.start(i):o.end(i)))),!0):!1}}const FQ=YM(-1),BQ=YM(1);function zQ(r,e=null){return function(n,s){let{$from:o,$to:i}=n.selection,l=o.blockRange(i),a=l&&Gy(l,r,e);return a?(s&&s(n.tr.wrap(l,a).scrollIntoView()),!0):!1}}function bx(r,e=null){return function(n,s){let o=!1;for(let i=0;i{if(o)return!1;if(!(!c.isTextblock||c.hasMarkup(r,e)))if(c.type==r)o=!0;else{let d=n.doc.resolve(u),f=d.index();o=d.parent.canReplaceWith(f,f+1,r)}})}if(!o)return!1;if(s){let i=n.tr;for(let l=0;l=2&&o.node(l.depth-1).type.compatibleContent(r)&&l.startIndex==0){if(o.index(l.depth-1)==0)return!1;let d=n.doc.resolve(l.start-2);c=new Wh(d,d,l.depth),l.endIndex=0;d--)i=Oe.from(n[d].type.create(n[d].attrs,i));r.step(new $n(e.start-(s?2:0),e.end,e.start,e.end,new He(i,0,0),n.length,!0));let l=0;for(let d=0;dl.childCount>0&&l.firstChild.type==r);return i?n?s.node(i.depth-1).type==r?WQ(e,n,r,i):qQ(e,n,i):!0:!1}}function WQ(r,e,n,s){let o=r.tr,i=s.end,l=s.$to.end(s.depth);im;g--)p-=o.child(g).nodeSize,s.delete(p-1,p+1);let i=s.doc.resolve(n.start),l=i.nodeAfter;if(s.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,c=n.endIndex==o.childCount,u=i.node(-1),d=i.index(-1);if(!u.canReplace(d+(a?0:1),d+1,l.content.append(c?Oe.empty:Oe.from(o))))return!1;let f=i.pos,h=f+l.nodeSize;return s.step(new $n(f-(a?1:0),h+(c?1:0),f+1,h-1,new He((a?Oe.empty:Oe.from(o.copy(Oe.empty))).append(c?Oe.empty:Oe.from(o.copy(Oe.empty))),a?0:1,c?0:1),a?0:1)),e(s.scrollIntoView()),!0}function GQ(r){return function(e,n){let{$from:s,$to:o}=e.selection,i=s.blockRange(o,u=>u.childCount>0&&u.firstChild.type==r);if(!i)return!1;let l=i.startIndex;if(l==0)return!1;let a=i.parent,c=a.child(l-1);if(c.type!=r)return!1;if(n){let u=c.lastChild&&c.lastChild.type==a.type,d=Oe.from(u?r.create():null),f=new He(Oe.from(r.create(null,Oe.from(a.type.create(null,d)))),u?3:1,0),h=i.start,p=i.end;n(e.tr.step(new $n(h-(u?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function hg(r){const{state:e,transaction:n}=r;let{selection:s}=n,{doc:o}=n,{storedMarks:i}=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 i},get selection(){return s},get doc(){return o},get tr(){return s=n.selection,o=n.doc,i=n.storedMarks,n}}}class pg{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:s}=this,{view:o}=n,{tr:i}=s,l=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,c])=>[a,(...d)=>{const f=c(...d)(l);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:s,editor:o,state:i}=this,{view:l}=o,a=[],c=!!e,u=e||i.tr,d=()=>(!c&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&l.dispatch(u),a.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(s).map(([h,p])=>[h,(...m)=>{const v=this.buildProps(u,n),b=p(...m)(v);return a.push(b),f}])),run:d};return f}createCan(e){const{rawCommands:n,state:s}=this,o=!1,i=e||s.tr,l=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...d)=>u(...d)({...l,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,n=!0){const{rawCommands:s,editor:o,state:i}=this,{view:l}=o,a={tr:e,editor:o,view:l,state:hg({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(s).map(([c,u])=>[c,(...d)=>u(...d)(a)]))}};return a}}class KQ{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const s=this.callbacks[e];return s&&s.forEach(o=>o.apply(this,n)),this}off(e,n){const s=this.callbacks[e];return s&&(n?this.callbacks[e]=s.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Ke(r,e,n){return r.config[e]===void 0&&r.parent?Ke(r.parent,e,n):typeof r.config[e]=="function"?r.config[e].bind({...n,parent:r.parent?Ke(r.parent,e,n):null}):r.config[e]}function gg(r){const e=r.filter(o=>o.type==="extension"),n=r.filter(o=>o.type==="node"),s=r.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:s}}function JM(r){const e=[],{nodeExtensions:n,markExtensions:s}=gg(r),o=[...n,...s],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return r.forEach(l=>{const a={name:l.name,options:l.options,storage:l.storage},c=Ke(l,"addGlobalAttributes",a);if(!c)return;c().forEach(d=>{d.types.forEach(f=>{Object.entries(d.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...i,...p}})})})})}),o.forEach(l=>{const a={name:l.name,options:l.options,storage:l.storage},c=Ke(l,"addAttributes",a);if(!c)return;const u=c();Object.entries(u).forEach(([d,f])=>{const h={...i,...f};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:l.name,name:d,attribute:h})})}),e}function Fn(r,e){if(typeof r=="string"){if(!e.nodes[r])throw Error(`There is no node type named '${r}'. Maybe you forgot to add the extension?`);return e.nodes[r]}return r}function pn(...r){return r.filter(e=>!!e).reduce((e,n)=>{const s={...e};return Object.entries(n).forEach(([o,i])=>{if(!s[o]){s[o]=i;return}if(o==="class"){const a=i?i.split(" "):[],c=s[o]?s[o].split(" "):[],u=a.filter(d=>!c.includes(d));s[o]=[...c,...u].join(" ")}else o==="style"?s[o]=[s[o],i].join("; "):s[o]=i}),s},{})}function rv(r,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(r.attrs)||{}:{[n.name]:r.attrs[n.name]}).reduce((n,s)=>pn(n,s),{})}function XM(r){return typeof r=="function"}function xt(r,e=void 0,...n){return XM(r)?e?r.bind(e)(...n):r(...n):r}function YQ(r={}){return Object.keys(r).length===0&&r.constructor===Object}function JQ(r){return typeof r!="string"?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):r==="true"?!0:r==="false"?!1:r}function vx(r,e){return r.style?r:{...r,getAttrs:n=>{const s=r.getAttrs?r.getAttrs(n):r.attrs;if(s===!1)return!1;const o=e.reduce((i,l)=>{const a=l.attribute.parseHTML?l.attribute.parseHTML(n):JQ(n.getAttribute(l.name));return a==null?i:{...i,[l.name]:a}},{});return{...s,...o}}}}function yx(r){return Object.fromEntries(Object.entries(r).filter(([e,n])=>e==="attrs"&&YQ(n)?!1:n!=null))}function XQ(r,e){var n;const s=JM(r),{nodeExtensions:o,markExtensions:i}=gg(r),l=(n=o.find(u=>Ke(u,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(o.map(u=>{const d=s.filter(b=>b.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=r.reduce((b,C)=>{const y=Ke(C,"extendNodeSchema",f);return{...b,...y?y(u):{}}},{}),p=yx({...h,content:xt(Ke(u,"content",f)),marks:xt(Ke(u,"marks",f)),group:xt(Ke(u,"group",f)),inline:xt(Ke(u,"inline",f)),atom:xt(Ke(u,"atom",f)),selectable:xt(Ke(u,"selectable",f)),draggable:xt(Ke(u,"draggable",f)),code:xt(Ke(u,"code",f)),defining:xt(Ke(u,"defining",f)),isolating:xt(Ke(u,"isolating",f)),attrs:Object.fromEntries(d.map(b=>{var C;return[b.name,{default:(C=b==null?void 0:b.attribute)===null||C===void 0?void 0:C.default}]}))}),g=xt(Ke(u,"parseHTML",f));g&&(p.parseDOM=g.map(b=>vx(b,d)));const m=Ke(u,"renderHTML",f);m&&(p.toDOM=b=>m({node:b,HTMLAttributes:rv(b,d)}));const v=Ke(u,"renderText",f);return v&&(p.toText=v),[u.name,p]})),c=Object.fromEntries(i.map(u=>{const d=s.filter(v=>v.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=r.reduce((v,b)=>{const C=Ke(b,"extendMarkSchema",f);return{...v,...C?C(u):{}}},{}),p=yx({...h,inclusive:xt(Ke(u,"inclusive",f)),excludes:xt(Ke(u,"excludes",f)),group:xt(Ke(u,"group",f)),spanning:xt(Ke(u,"spanning",f)),code:xt(Ke(u,"code",f)),attrs:Object.fromEntries(d.map(v=>{var b;return[v.name,{default:(b=v==null?void 0:v.attribute)===null||b===void 0?void 0:b.default}]}))}),g=xt(Ke(u,"parseHTML",f));g&&(p.parseDOM=g.map(v=>vx(v,d)));const m=Ke(u,"renderHTML",f);return m&&(p.toDOM=v=>m({mark:v,HTMLAttributes:rv(v,d)})),[u.name,p]}));return new QJ({topNode:l,nodes:a,marks:c})}function xm(r,e){return e.nodes[r]||e.marks[r]||null}function wx(r,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===r.name):e}const ZQ=(r,e=500)=>{let n="";const s=r.parentOffset;return r.parent.nodesBetween(Math.max(0,s-e),s,(o,i,l,a)=>{var c,u;const d=((u=(c=o.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:o,pos:i,parent:l,index:a}))||o.textContent||"%leaf%";n+=d.slice(0,Math.max(0,s-i))}),n};function o0(r){return Object.prototype.toString.call(r)==="[object RegExp]"}class mg{constructor(e){this.find=e.find,this.handler=e.handler}}const QQ=(r,e)=>{if(o0(e))return e.exec(r);const n=e(r);if(!n)return null;const s=[n.text];return s.index=n.index,s.input=r,s.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith),s.push(n.replaceWith)),s};function Wf(r){var e;const{editor:n,from:s,to:o,text:i,rules:l,plugin:a}=r,{view:c}=n;if(c.composing)return!1;const u=c.state.doc.resolve(s);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let d=!1;const f=ZQ(u)+i;return l.forEach(h=>{if(d)return;const p=QQ(f,h.find);if(!p)return;const g=c.state.tr,m=hg({state:c.state,transaction:g}),v={from:s-(p[0].length-i.length),to:o},{commands:b,chain:C,can:y}=new pg({editor:n,state:m});h.handler({state:m,range:v,match:p,commands:b,chain:C,can:y})===null||!g.steps.length||(g.setMeta(a,{transform:g,from:s,to:o,text:i}),c.dispatch(g),d=!0)}),d}function eee(r){const{editor:e,rules:n}=r,s=new zr({state:{init(){return null},apply(o,i){const l=o.getMeta(s);if(l)return l;const a=o.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:u,text:d}=a,f=u+d.length;Wf({editor:e,from:u,to:f,text:d,rules:n,plugin:s})}),o.selectionSet||o.docChanged?null:i}},props:{handleTextInput(o,i,l,a){return Wf({editor:e,from:i,to:l,text:a,rules:n,plugin:s})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&Wf({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:s})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:l}=o.state.selection;return l?Wf({editor:e,from:l.pos,to:l.pos,text:` -`,rules:n,plugin:s}):!1}},isInputRules:!0});return s}function tee(r){return typeof r=="number"}class nee{constructor(e){this.find=e.find,this.handler=e.handler}}const ree=(r,e,n)=>{if(o0(e))return[...r.matchAll(e)];const s=e(r,n);return s?s.map(o=>{const i=[o.text];return i.index=o.index,i.input=r,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith),i.push(o.replaceWith)),i}):[]};function see(r){const{editor:e,state:n,from:s,to:o,rule:i,pasteEvent:l,dropEvent:a}=r,{commands:c,chain:u,can:d}=new pg({editor:e,state:n}),f=[];return n.doc.nodesBetween(s,o,(p,g)=>{if(!p.isTextblock||p.type.spec.code)return;const m=Math.max(s,g),v=Math.min(o,g+p.content.size),b=p.textBetween(m-g,v-g,void 0,"");ree(b,i.find,l).forEach(y=>{if(y.index===void 0)return;const w=m+y.index+1,x=w+y[0].length,E={from:n.tr.mapping.map(w),to:n.tr.mapping.map(x)},_=i.handler({state:n,range:E,match:y,commands:c,chain:u,can:d,pasteEvent:l,dropEvent:a});f.push(_)})}),f.every(p=>p!==null)}const oee=r=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",r),n};function iee(r){const{editor:e,rules:n}=r;let s=null,o=!1,i=!1,l=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const c=({state:d,from:f,to:h,rule:p,pasteEvt:g})=>{const m=d.tr,v=hg({state:d,transaction:m});if(!(!see({editor:e,state:v,from:Math.max(f-1,0),to:h.b-1,rule:p,pasteEvent:g,dropEvent:a})||!m.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,l=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m};return n.map(d=>new zr({view(f){const h=p=>{var g;s=!((g=f.dom.parentElement)===null||g===void 0)&&g.contains(p.target)?f.dom.parentElement:null};return window.addEventListener("dragstart",h),{destroy(){window.removeEventListener("dragstart",h)}}},props:{handleDOMEvents:{drop:(f,h)=>(i=s===f.dom.parentElement,a=h,!1),paste:(f,h)=>{var p;const g=(p=h.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return l=h,o=!!(g!=null&&g.includes("data-pm-slice")),!1}}},appendTransaction:(f,h,p)=>{const g=f[0],m=g.getMeta("uiEvent")==="paste"&&!o,v=g.getMeta("uiEvent")==="drop"&&!i,b=g.getMeta("applyPasteRules"),C=!!b;if(!m&&!v&&!C)return;if(C){const{from:x,text:E}=b,_=x+E.length,M=oee(E);return c({rule:d,state:p,from:x,to:{b:_},pasteEvt:M})}const y=h.doc.content.findDiffStart(p.doc.content),w=h.doc.content.findDiffEnd(p.doc.content);if(!(!tee(y)||!w||y===w.b))return c({rule:d,state:p,from:y,to:w,pasteEvt:l})}}))}function lee(r){const e=r.filter((n,s)=>r.indexOf(n)!==s);return[...new Set(e)]}class Va{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Va.resolve(e),this.schema=XQ(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Va.sort(Va.flatten(e));return lee(n.map(o=>o.name)).length,n}static flatten(e){return e.map(n=>{const s={name:n.name,options:n.options,storage:n.storage},o=Ke(n,"addExtensions",s);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((s,o)=>{const i=Ke(s,"priority")||100,l=Ke(o,"priority")||100;return i>l?-1:i{const s={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:xm(n.name,this.schema)},o=Ke(n,"addCommands",s);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=Va.sort([...this.extensions].reverse()),s=[],o=[],i=n.map(l=>{const a={name:l.name,options:l.options,storage:l.storage,editor:e,type:xm(l.name,this.schema)},c=[],u=Ke(l,"addKeyboardShortcuts",a);let d={};if(l.type==="mark"&&l.config.exitable&&(d.ArrowRight=()=>hs.handleExit({editor:e,mark:l})),u){const m=Object.fromEntries(Object.entries(u()).map(([v,b])=>[v,()=>b({editor:e})]));d={...d,...m}}const f=SQ(d);c.push(f);const h=Ke(l,"addInputRules",a);wx(l,e.options.enableInputRules)&&h&&s.push(...h());const p=Ke(l,"addPasteRules",a);wx(l,e.options.enablePasteRules)&&p&&o.push(...p());const g=Ke(l,"addProseMirrorPlugins",a);if(g){const m=g();c.push(...m)}return c}).flat();return[eee({editor:e,rules:s}),...iee({editor:e,rules:o}),...i]}get attributes(){return JM(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=gg(this.extensions);return Object.fromEntries(n.filter(s=>!!Ke(s,"addNodeView")).map(s=>{const o=this.attributes.filter(c=>c.type===s.name),i={name:s.name,options:s.options,storage:s.storage,editor:e,type:Fn(s.name,this.schema)},l=Ke(s,"addNodeView",i);if(!l)return[];const a=(c,u,d,f)=>{const h=rv(c,o);return l()({editor:e,node:c,getPos:d,decorations:f,HTMLAttributes:h,extension:s})};return[s.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const s={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:xm(e.name,this.schema)};e.type==="mark"&&(!((n=xt(Ke(e,"keepOnSplit",s)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const o=Ke(e,"onBeforeCreate",s),i=Ke(e,"onCreate",s),l=Ke(e,"onUpdate",s),a=Ke(e,"onSelectionUpdate",s),c=Ke(e,"onTransaction",s),u=Ke(e,"onFocus",s),d=Ke(e,"onBlur",s),f=Ke(e,"onDestroy",s);o&&this.editor.on("beforeCreate",o),i&&this.editor.on("create",i),l&&this.editor.on("update",l),a&&this.editor.on("selectionUpdate",a),c&&this.editor.on("transaction",c),u&&this.editor.on("focus",u),d&&this.editor.on("blur",d),f&&this.editor.on("destroy",f)})}}function aee(r){return Object.prototype.toString.call(r).slice(8,-1)}function Em(r){return aee(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function bg(r,e){const n={...r};return Em(r)&&Em(e)&&Object.keys(e).forEach(s=>{Em(e[s])?s in r?n[s]=bg(r[s],e[s]):Object.assign(n,{[s]:e[s]}):Object.assign(n,{[s]:e[s]})}),n}class mr{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=xt(Ke(this,"addOptions",{name:this.name}))),this.storage=xt(Ke(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new mr(e)}configure(e={}){const n=this.extend();return n.parent=this.parent,n.options=bg(this.options,e),n.storage=xt(Ke(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new mr({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions,n.options=xt(Ke(n,"addOptions",{name:n.name})),n.storage=xt(Ke(n,"addStorage",{name:n.name,options:n.options})),n}}function ZM(r,e,n){const{from:s,to:o}=e,{blockSeparator:i=` - -`,textSerializers:l={}}=n||{};let a="";return r.nodesBetween(s,o,(c,u,d,f)=>{var h;c.isBlock&&u>s&&(a+=i);const p=l==null?void 0:l[c.type.name];if(p)return d&&(a+=p({node:c,pos:u,parent:d,index:f,range:e})),!1;c.isText&&(a+=(h=c==null?void 0:c.text)===null||h===void 0?void 0:h.slice(Math.max(s,u)-u,o-u))}),a}function QM(r){return Object.fromEntries(Object.entries(r.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const cee=mr.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new zr({key:new ti("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:r}=this,{state:e,schema:n}=r,{doc:s,selection:o}=e,{ranges:i}=o,l=Math.min(...i.map(d=>d.$from.pos)),a=Math.max(...i.map(d=>d.$to.pos)),c=QM(n);return ZM(s,{from:l,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),uee=()=>({editor:r,view:e})=>(requestAnimationFrame(()=>{var n;r.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),dee=(r=!1)=>({commands:e})=>e.setContent("",r),fee=()=>({state:r,tr:e,dispatch:n})=>{const{selection:s}=e,{ranges:o}=s;return n&&o.forEach(({$from:i,$to:l})=>{r.doc.nodesBetween(i.pos,l.pos,(a,c)=>{if(a.type.isText)return;const{doc:u,mapping:d}=e,f=u.resolve(d.map(c)),h=u.resolve(d.map(c+a.nodeSize)),p=f.blockRange(h);if(!p)return;const g=tu(p);if(a.type.isTextblock){const{defaultType:m}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,m)}(g||g===0)&&e.lift(p,g)})}),!0},hee=r=>e=>r(e),pee=()=>({state:r,dispatch:e})=>RQ(r,e),gee=(r,e)=>({editor:n,tr:s})=>{const{state:o}=n,i=o.doc.slice(r.from,r.to);s.deleteRange(r.from,r.to);const l=s.mapping.map(e);return s.insert(l,i.content),s.setSelection(new yt(s.doc.resolve(l-1))),!0},mee=()=>({tr:r,dispatch:e})=>{const{selection:n}=r,s=n.$anchor.node();if(s.content.size>0)return!1;const o=r.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===s.type){if(e){const a=o.before(i),c=o.after(i);r.delete(a,c).scrollIntoView()}return!0}return!1},bee=r=>({tr:e,state:n,dispatch:s})=>{const o=Fn(r,n.schema),i=e.selection.$anchor;for(let l=i.depth;l>0;l-=1)if(i.node(l).type===o){if(s){const c=i.before(l),u=i.after(l);e.delete(c,u).scrollIntoView()}return!0}return!1},vee=r=>({tr:e,dispatch:n})=>{const{from:s,to:o}=r;return n&&e.delete(s,o),!0},yee=()=>({state:r,dispatch:e})=>xQ(r,e),wee=()=>({commands:r})=>r.keyboardShortcut("Enter"),Cee=()=>({state:r,dispatch:e})=>LQ(r,e);function ep(r,e,n={strict:!0}){const s=Object.keys(e);return s.length?s.every(o=>n.strict?e[o]===r[o]:o0(e[o])?e[o].test(r[o]):e[o]===r[o]):!0}function sv(r,e,n={}){return r.find(s=>s.type===e&&ep(s.attrs,n))}function See(r,e,n={}){return!!sv(r,e,n)}function i0(r,e,n={}){if(!r||!e)return;let s=r.parent.childAfter(r.parentOffset);if(r.parentOffset===s.offset&&s.offset!==0&&(s=r.parent.childBefore(r.parentOffset)),!s.node)return;const o=sv([...s.node.marks],e,n);if(!o)return;let i=s.index,l=r.start()+s.offset,a=i+1,c=l+s.node.nodeSize;for(sv([...s.node.marks],e,n);i>0&&o.isInSet(r.parent.child(i-1).marks);)i-=1,l-=r.parent.child(i).nodeSize;for(;a({tr:n,state:s,dispatch:o})=>{const i=ul(r,s.schema),{doc:l,selection:a}=n,{$from:c,from:u,to:d}=a;if(o){const f=i0(c,i,e);if(f&&f.from<=u&&f.to>=d){const h=yt.create(l,f.from,f.to);n.setSelection(h)}}return!0},Eee=r=>e=>{const n=typeof r=="function"?r(e):r;for(let s=0;s({editor:n,view:s,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const l=()=>{a0()&&s.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(s.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(s.hasFocus()&&r===null||r===!1)return!0;if(i&&r===null&&!l0(n.state.selection))return l(),!0;const a=ek(o.doc,r)||n.state.selection,c=n.state.selection.eq(a);return i&&(c||o.setSelection(a),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),l()),!0},_ee=(r,e)=>n=>r.every((s,o)=>e(s,{...n,index:o})),Oee=(r,e)=>({tr:n,commands:s})=>s.insertContentAt({from:n.selection.from,to:n.selection.to},r,e),tk=r=>{const e=r.childNodes;for(let n=e.length-1;n>=0;n-=1){const s=e[n];s.nodeType===3&&s.nodeValue&&/^(\n\s\s|\n)$/.test(s.nodeValue)?r.removeChild(s):s.nodeType===1&&tk(s)}return r};function Cx(r){const e=`${r}`,n=new window.DOMParser().parseFromString(e,"text/html").body;return tk(n)}function tp(r,e,n){n={slice:!0,parseOptions:{},...n};const s=typeof r=="object"&&r!==null,o=typeof r=="string";if(s)try{return Array.isArray(r)&&r.length>0?Oe.fromArray(r.map(l=>e.nodeFromJSON(l))):e.nodeFromJSON(r)}catch{return tp("",e,n)}if(o){const i=Wy.fromSchema(e);return n.slice?i.parseSlice(Cx(r),n.parseOptions).content:i.parse(Cx(r),n.parseOptions)}return tp("",e,n)}function Aee(r,e,n){const s=r.steps.length-1;if(s{l===0&&(l=d)}),r.setSelection(Et.near(r.doc.resolve(l),n))}const Mee=r=>r.toString().startsWith("<"),kee=(r,e,n)=>({tr:s,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};const l=tp(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(l.toString()==="<>")return!0;let{from:a,to:c}=typeof r=="number"?{from:r,to:r}:{from:r.from,to:r.to},u=!0,d=!0;if((Mee(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}=s.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,s.insertText(h,a,c)):(h=l,s.replaceWith(a,c,h)),n.updateSelection&&Aee(s,s.steps.length-1,-1),n.applyInputRules&&s.setMeta("applyInputRules",{from:a,text:h}),n.applyPasteRules&&s.setMeta("applyPasteRules",{from:a,text:h})}return!0},Pee=()=>({state:r,dispatch:e})=>kQ(r,e),Nee=()=>({state:r,dispatch:e})=>PQ(r,e),Iee=()=>({state:r,dispatch:e})=>EQ(r,e),Lee=()=>({state:r,dispatch:e})=>AQ(r,e),Ree=()=>({tr:r,state:e,dispatch:n})=>{try{const s=lg(e.doc,e.selection.$from.pos,-1);return s==null?!1:(r.join(s,2),n&&n(r),!0)}catch{return!1}},$ee=()=>({state:r,dispatch:e,tr:n})=>{try{const s=lg(r.doc,r.selection.$from.pos,1);return s==null?!1:(n.join(s,2),e&&e(n),!0)}catch{return!1}},Dee=()=>({state:r,dispatch:e})=>TQ(r,e),Vee=()=>({state:r,dispatch:e})=>_Q(r,e);function nk(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Fee(r){const e=r.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let s,o,i,l;for(let a=0;a({editor:e,view:n,tr:s,dispatch:o})=>{const i=Fee(r).split(/-(?!$)/),l=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:l==="Space"?" ":l,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,a))});return c==null||c.steps.forEach(u=>{const d=u.map(s.mapping);d&&o&&s.maybeStep(d)}),!0};function Ed(r,e,n={}){const{from:s,to:o,empty:i}=r.selection,l=e?Fn(e,r.schema):null,a=[];r.doc.nodesBetween(s,o,(f,h)=>{if(f.isText)return;const p=Math.max(s,h),g=Math.min(o,h+f.nodeSize);a.push({node:f,from:p,to:g})});const c=o-s,u=a.filter(f=>l?l.name===f.node.type.name:!0).filter(f=>ep(f.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((f,h)=>f+h.to-h.from,0)>=c}const zee=(r,e={})=>({state:n,dispatch:s})=>{const o=Fn(r,n.schema);return Ed(n,o,e)?NQ(n,s):!1},jee=()=>({state:r,dispatch:e})=>$Q(r,e),Hee=r=>({state:e,dispatch:n})=>{const s=Fn(r,e.schema);return UQ(s)(e,n)},Uee=()=>({state:r,dispatch:e})=>IQ(r,e);function vg(r,e){return e.nodes[r]?"node":e.marks[r]?"mark":null}function Sx(r,e){const n=typeof e=="string"?[e]:e;return Object.keys(r).reduce((s,o)=>(n.includes(o)||(s[o]=r[o]),s),{})}const Wee=(r,e)=>({tr:n,state:s,dispatch:o})=>{let i=null,l=null;const a=vg(typeof r=="string"?r:r.name,s.schema);return a?(a==="node"&&(i=Fn(r,s.schema)),a==="mark"&&(l=ul(r,s.schema)),o&&n.selection.ranges.forEach(c=>{s.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{i&&i===u.type&&n.setNodeMarkup(d,void 0,Sx(u.attrs,e)),l&&u.marks.length&&u.marks.forEach(f=>{l===f.type&&n.addMark(d,d+u.nodeSize,l.create(Sx(f.attrs,e)))})})}),!0):!1},qee=()=>({tr:r,dispatch:e})=>(e&&r.scrollIntoView(),!0),Gee=()=>({tr:r,commands:e})=>e.setTextSelection({from:0,to:r.doc.content.size}),Kee=()=>({state:r,dispatch:e})=>OQ(r,e),Yee=()=>({state:r,dispatch:e})=>MQ(r,e),Jee=()=>({state:r,dispatch:e})=>DQ(r,e),Xee=()=>({state:r,dispatch:e})=>BQ(r,e),Zee=()=>({state:r,dispatch:e})=>FQ(r,e);function rk(r,e,n={}){return tp(r,e,{slice:!1,parseOptions:n})}const Qee=(r,e=!1,n={})=>({tr:s,editor:o,dispatch:i})=>{const{doc:l}=s,a=rk(r,o.schema,n);return i&&s.replaceWith(0,l.content.size,a).setMeta("preventUpdate",!e),!0};function cf(r,e){const n=ul(e,r.schema),{from:s,to:o,empty:i}=r.selection,l=[];i?(r.storedMarks&&l.push(...r.storedMarks),l.push(...r.selection.$head.marks())):r.doc.nodesBetween(s,o,c=>{l.push(...c.marks)});const a=l.find(c=>c.type.name===n.name);return a?{...a.attrs}:{}}function ete(r){for(let e=0;e0;n-=1){const s=r.node(n);if(e(s))return{pos:n>0?r.before(n):0,start:r.start(n),depth:n,node:s}}}function c0(r){return e=>tte(e.$from,r)}function nte(r,e){const n=Qs.fromSchema(e).serializeFragment(r),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function rte(r,e){const n={from:0,to:r.content.size};return ZM(r,n,e)}function ste(r,e){const n=Fn(e,r.schema),{from:s,to:o}=r.selection,i=[];r.doc.nodesBetween(s,o,a=>{i.push(a)});const l=i.reverse().find(a=>a.type.name===n.name);return l?{...l.attrs}:{}}function ote(r,e){const n=vg(typeof e=="string"?e:e.name,r.schema);return n==="node"?ste(r,e):n==="mark"?cf(r,e):{}}function sk(r,e,n){const s=[];return r===e?n.resolve(r).marks().forEach(o=>{const i=n.resolve(r-1),l=i0(i,o.type);l&&s.push({mark:o,...l})}):n.nodesBetween(r,e,(o,i)=>{!o||(o==null?void 0:o.nodeSize)===void 0||s.push(...o.marks.map(l=>({from:i,to:i+o.nodeSize,mark:l})))}),s}function bh(r,e,n){return Object.fromEntries(Object.entries(n).filter(([s])=>{const o=r.find(i=>i.type===e&&i.name===s);return o?o.attribute.keepOnSplit:!1}))}function ov(r,e,n={}){const{empty:s,ranges:o}=r.selection,i=e?ul(e,r.schema):null;if(s)return!!(r.storedMarks||r.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>ep(f.attrs,n,{strict:!1}));let l=0;const a=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,g=h.pos;r.doc.nodesBetween(p,g,(m,v)=>{if(!m.isText&&!m.marks.length)return;const b=Math.max(p,v),C=Math.min(g,v+m.nodeSize),y=C-b;l+=y,a.push(...m.marks.map(w=>({mark:w,from:b,to:C})))})}),l===0)return!1;const c=a.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>ep(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),u=a.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(c>0?c+u:c)>=l}function ite(r,e,n={}){if(!e)return Ed(r,null,n)||ov(r,null,n);const s=vg(e,r.schema);return s==="node"?Ed(r,e,n):s==="mark"?ov(r,e,n):!1}function xx(r,e){const{nodeExtensions:n}=gg(e),s=n.find(l=>l.name===r);if(!s)return!1;const o={name:s.name,options:s.options,storage:s.storage},i=xt(Ke(s,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function lte(r){var e;const n=(e=r.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),s=r.toJSON();return JSON.stringify(n)===JSON.stringify(s)}function ate(r){return r instanceof ot}function cte(r,e,n){const o=r.state.doc.content.size,i=No(e,0,o),l=No(n,0,o),a=r.coordsAtPos(i),c=r.coordsAtPos(l,-1),u=Math.min(a.top,c.top),d=Math.max(a.bottom,c.bottom),f=Math.min(a.left,c.left),h=Math.max(a.right,c.right),p=h-f,g=d-u,b={top:u,bottom:d,left:f,right:h,width:p,height:g,x:f,y:u};return{...b,toJSON:()=>b}}function ute(r,e,n){var s;const{selection:o}=e;let i=null;if(l0(o)&&(i=o.$cursor),i){const a=(s=r.storedMarks)!==null&&s!==void 0?s:i.marks();return!!n.isInSet(a)||!a.some(c=>c.type.excludes(n))}const{ranges:l}=o;return l.some(({$from:a,$to:c})=>{let u=a.depth===0?r.doc.inlineContent&&r.doc.type.allowsMarkType(n):!1;return r.doc.nodesBetween(a.pos,c.pos,(d,f,h)=>{if(u)return!1;if(d.isInline){const p=!h||h.type.allowsMarkType(n),g=!!n.isInSet(d.marks)||!d.marks.some(m=>m.type.excludes(n));u=p&&g}return!u}),u})}const dte=(r,e={})=>({tr:n,state:s,dispatch:o})=>{const{selection:i}=n,{empty:l,ranges:a}=i,c=ul(r,s.schema);if(o)if(l){const u=cf(s,c);n.addStoredMark(c.create({...u,...e}))}else a.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;s.doc.nodesBetween(d,f,(h,p)=>{const g=Math.max(p,d),m=Math.min(p+h.nodeSize,f);h.marks.find(b=>b.type===c)?h.marks.forEach(b=>{c===b.type&&n.addMark(g,m,c.create({...b.attrs,...e}))}):n.addMark(g,m,c.create(e))})});return ute(s,n,c)},fte=(r,e)=>({tr:n})=>(n.setMeta(r,e),!0),hte=(r,e={})=>({state:n,dispatch:s,chain:o})=>{const i=Fn(r,n.schema);return i.isTextblock?o().command(({commands:l})=>bx(i,e)(n)?!0:l.clearNodes()).command(({state:l})=>bx(i,e)(l,s)).run():!1},pte=r=>({tr:e,dispatch:n})=>{if(n){const{doc:s}=e,o=No(r,0,s.content.size),i=ot.create(s,o);e.setSelection(i)}return!0},gte=r=>({tr:e,dispatch:n})=>{if(n){const{doc:s}=e,{from:o,to:i}=typeof r=="number"?{from:r,to:r}:r,l=yt.atStart(s).from,a=yt.atEnd(s).to,c=No(o,l,a),u=No(i,l,a),d=yt.create(s,c,u);e.setSelection(d)}return!0},mte=r=>({state:e,dispatch:n})=>{const s=Fn(r,e.schema);return GQ(s)(e,n)};function Ex(r,e){const n=r.storedMarks||r.selection.$to.parentOffset&&r.selection.$from.marks();if(n){const s=n.filter(o=>e==null?void 0:e.includes(o.type.name));r.tr.ensureMarks(s)}}const bte=({keepMarks:r=!0}={})=>({tr:e,state:n,dispatch:s,editor:o})=>{const{selection:i,doc:l}=e,{$from:a,$to:c}=i,u=o.extensionManager.attributes,d=bh(u,a.node().type.name,a.node().attrs);if(i instanceof ot&&i.node.isBlock)return!a.parentOffset||!Ga(l,a.pos)?!1:(s&&(r&&Ex(n,o.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(s){const f=c.parentOffset===c.parent.content.size;i instanceof yt&&e.deleteSelection();const h=a.depth===0?void 0:ete(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=f&&h?[{type:h,attrs:d}]:void 0,g=Ga(e.doc,e.mapping.map(a.pos),1,p);if(!p&&!g&&Ga(e.doc,e.mapping.map(a.pos),1,h?[{type:h}]:void 0)&&(g=!0,p=h?[{type:h,attrs:d}]:void 0),g&&(e.split(e.mapping.map(a.pos),1,p),h&&!f&&!a.parentOffset&&a.parent.type!==h)){const m=e.mapping.map(a.before()),v=e.doc.resolve(m);a.node(-1).canReplaceWith(v.index(),v.index()+1,h)&&e.setNodeMarkup(e.mapping.map(a.before()),h)}r&&Ex(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},vte=r=>({tr:e,state:n,dispatch:s,editor:o})=>{var i;const l=Fn(r,n.schema),{$from:a,$to:c}=n.selection,u=n.selection.node;if(u&&u.isBlock||a.depth<2||!a.sameParent(c))return!1;const d=a.node(-1);if(d.type!==l)return!1;const f=o.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(s){let v=Oe.empty;const b=a.index(-1)?1:a.index(-2)?2:3;for(let _=a.depth-b;_>=a.depth-3;_-=1)v=Oe.from(a.node(_).copy(v));const C=a.indexAfter(-1){if(E>-1)return!1;_.isTextblock&&_.content.size===0&&(E=M+1)}),E>-1&&e.setSelection(yt.near(e.doc.resolve(E))),e.scrollIntoView()}return!0}const h=c.pos===a.end()?d.contentMatchAt(0).defaultType:null,p=bh(f,d.type.name,d.attrs),g=bh(f,a.node().type.name,a.node().attrs);e.delete(a.pos,c.pos);const m=h?[{type:l,attrs:p},{type:h,attrs:g}]:[{type:l,attrs:p}];if(!Ga(e.doc,a.pos,2))return!1;if(s){const{selection:v,storedMarks:b}=n,{splittableMarks:C}=o.extensionManager,y=b||v.$to.parentOffset&&v.$from.marks();if(e.split(a.pos,2,m).scrollIntoView(),!y||!s)return!0;const w=y.filter(x=>C.includes(x.type.name));e.ensureMarks(w)}return!0},Tm=(r,e)=>{const n=c0(l=>l.type===e)(r.selection);if(!n)return!0;const s=r.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(s===void 0)return!0;const o=r.doc.nodeAt(s);return n.node.type===(o==null?void 0:o.type)&&al(r.doc,n.pos)&&r.join(n.pos),!0},_m=(r,e)=>{const n=c0(l=>l.type===e)(r.selection);if(!n)return!0;const s=r.doc.resolve(n.start).after(n.depth);if(s===void 0)return!0;const o=r.doc.nodeAt(s);return n.node.type===(o==null?void 0:o.type)&&al(r.doc,s)&&r.join(s),!0},yte=(r,e,n,s={})=>({editor:o,tr:i,state:l,dispatch:a,chain:c,commands:u,can:d})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=Fn(r,l.schema),g=Fn(e,l.schema),{selection:m,storedMarks:v}=l,{$from:b,$to:C}=m,y=b.blockRange(C),w=v||m.$to.parentOffset&&m.$from.marks();if(!y)return!1;const x=c0(E=>xx(E.type.name,f))(m);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return u.liftListItem(g);if(xx(x.node.type.name,f)&&p.validContent(x.node.content)&&a)return c().command(()=>(i.setNodeMarkup(x.pos,p),!0)).command(()=>Tm(i,p)).command(()=>_m(i,p)).run()}return!n||!w||!a?c().command(()=>d().wrapInList(p,s)?!0:u.clearNodes()).wrapInList(p,s).command(()=>Tm(i,p)).command(()=>_m(i,p)).run():c().command(()=>{const E=d().wrapInList(p,s),_=w.filter(M=>h.includes(M.type.name));return i.ensureMarks(_),E?!0:u.clearNodes()}).wrapInList(p,s).command(()=>Tm(i,p)).command(()=>_m(i,p)).run()},wte=(r,e={},n={})=>({state:s,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,l=ul(r,s.schema);return ov(s,l,e)?o.unsetMark(l,{extendEmptyMarkRange:i}):o.setMark(l,e)},Cte=(r,e,n={})=>({state:s,commands:o})=>{const i=Fn(r,s.schema),l=Fn(e,s.schema);return Ed(s,i,n)?o.setNode(l):o.setNode(i,n)},Ste=(r,e={})=>({state:n,commands:s})=>{const o=Fn(r,n.schema);return Ed(n,o,e)?s.lift(o):s.wrapIn(o,e)},xte=()=>({state:r,dispatch:e})=>{const n=r.plugins;for(let s=0;s=0;c-=1)l.step(a.steps[c].invert(a.docs[c]));if(i.text){const c=l.doc.resolve(i.from).marks();l.replaceWith(i.from,i.to,r.schema.text(i.text,c))}else l.delete(i.from,i.to)}return!0}}return!1},Ete=()=>({tr:r,dispatch:e})=>{const{selection:n}=r,{empty:s,ranges:o}=n;return s||e&&o.forEach(i=>{r.removeMark(i.$from.pos,i.$to.pos)}),!0},Tte=(r,e={})=>({tr:n,state:s,dispatch:o})=>{var i;const{extendEmptyMarkRange:l=!1}=e,{selection:a}=n,c=ul(r,s.schema),{$from:u,empty:d,ranges:f}=a;if(!o)return!0;if(d&&l){let{from:h,to:p}=a;const g=(i=u.marks().find(v=>v.type===c))===null||i===void 0?void 0:i.attrs,m=i0(u,c,g);m&&(h=m.from,p=m.to),n.removeMark(h,p,c)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,c)});return n.removeStoredMark(c),!0},_te=(r,e={})=>({tr:n,state:s,dispatch:o})=>{let i=null,l=null;const a=vg(typeof r=="string"?r:r.name,s.schema);return a?(a==="node"&&(i=Fn(r,s.schema)),a==="mark"&&(l=ul(r,s.schema)),o&&n.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;s.doc.nodesBetween(u,d,(f,h)=>{i&&i===f.type&&n.setNodeMarkup(h,void 0,{...f.attrs,...e}),l&&f.marks.length&&f.marks.forEach(p=>{if(l===p.type){const g=Math.max(h,u),m=Math.min(h+f.nodeSize,d);n.addMark(g,m,l.create({...p.attrs,...e}))}})})}),!0):!1},Ote=(r,e={})=>({state:n,dispatch:s})=>{const o=Fn(r,n.schema);return zQ(o,e)(n,s)},Ate=(r,e={})=>({state:n,dispatch:s})=>{const o=Fn(r,n.schema);return jQ(o,e)(n,s)};var Mte=Object.freeze({__proto__:null,blur:uee,clearContent:dee,clearNodes:fee,command:hee,createParagraphNear:pee,cut:gee,deleteCurrentNode:mee,deleteNode:bee,deleteRange:vee,deleteSelection:yee,enter:wee,exitCode:Cee,extendMarkRange:xee,first:Eee,focus:Tee,forEach:_ee,insertContent:Oee,insertContentAt:kee,joinUp:Pee,joinDown:Nee,joinBackward:Iee,joinForward:Lee,joinItemBackward:Ree,joinItemForward:$ee,joinTextblockBackward:Dee,joinTextblockForward:Vee,keyboardShortcut:Bee,lift:zee,liftEmptyBlock:jee,liftListItem:Hee,newlineInCode:Uee,resetAttributes:Wee,scrollIntoView:qee,selectAll:Gee,selectNodeBackward:Kee,selectNodeForward:Yee,selectParentNode:Jee,selectTextblockEnd:Xee,selectTextblockStart:Zee,setContent:Qee,setMark:dte,setMeta:fte,setNode:hte,setNodeSelection:pte,setTextSelection:gte,sinkListItem:mte,splitBlock:bte,splitListItem:vte,toggleList:yte,toggleMark:wte,toggleNode:Cte,toggleWrap:Ste,undoInputRule:xte,unsetAllMarks:Ete,unsetMark:Tte,updateAttributes:_te,wrapIn:Ote,wrapInList:Ate});const kte=mr.create({name:"commands",addCommands(){return{...Mte}}}),Pte=mr.create({name:"editable",addProseMirrorPlugins(){return[new zr({key:new ti("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Nte=mr.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:r}=this;return[new zr({key:new ti("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{r.isFocused=!0;const s=r.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(s),!1},blur:(e,n)=>{r.isFocused=!1;const s=r.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(s),!1}}}})]}}),Ite=mr.create({name:"keymap",addKeyboardShortcuts(){const r=()=>this.editor.commands.first(({commands:l})=>[()=>l.undoInputRule(),()=>l.command(({tr:a})=>{const{selection:c,doc:u}=a,{empty:d,$anchor:f}=c,{pos:h,parent:p}=f,g=f.parent.isTextblock&&h>0?a.doc.resolve(h-1):f,m=g.parent.type.spec.isolating,v=f.pos-f.parentOffset,b=m&&g.parent.childCount===1?v===f.pos:Et.atStart(u).from===h;return!d||!p.type.isTextblock||p.textContent.length||!b||b&&f.parent.type.name==="paragraph"?!1:l.clearNodes()}),()=>l.deleteSelection(),()=>l.joinBackward(),()=>l.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:l})=>[()=>l.deleteSelection(),()=>l.deleteCurrentNode(),()=>l.joinForward(),()=>l.selectNodeForward()]),s={Enter:()=>this.editor.commands.first(({commands:l})=>[()=>l.newlineInCode(),()=>l.createParagraphNear(),()=>l.liftEmptyBlock(),()=>l.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:r,"Mod-Backspace":r,"Shift-Backspace":r,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...s},i={...s,"Ctrl-h":r,"Alt-Backspace":r,"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 a0()||nk()?i:o},addProseMirrorPlugins(){return[new zr({key:new ti("clearDocument"),appendTransaction:(r,e,n)=>{if(!(r.some(g=>g.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:i,to:l}=e.selection,a=Et.atStart(e.doc).from,c=Et.atEnd(e.doc).to;if(o||!(i===a&&l===c)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,h=hg({state:n,transaction:f}),{commands:p}=new pg({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),Lte=mr.create({name:"tabindex",addProseMirrorPlugins(){return[new zr({key:new ti("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class kl{constructor(e,n,s=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=s,this.resolvedPos=e,this.editor=n,this.currentNode=o}get name(){return this.node.type.name}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,s=this.to;if(this.isBlock){if(this.content.size===0)return;n=this.from+1,s=this.to-1}this.editor.commands.insertContentAt({from:n,to:s},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 kl(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 kl(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 kl(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,s)=>{const o=n.isBlock&&!n.isTextblock,i=this.pos+s+1,l=this.resolvedPos.doc.resolve(i);if(!o&&l.depth<=this.depth)return;const a=new kl(l,this.editor,o,o?n:null);o&&(a.actualDepth=this.depth+1),e.push(new kl(l,this.editor,o,o?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 s=null,o=this.parent;for(;o&&!s;){if(o.node.type.name===e)if(Object.keys(n).length>0){const i=o.node.attrs,l=Object.keys(n);for(let a=0;a{s&&o.length>0||(l.node.type.name===e&&i.every(c=>n[c]===l.node.attrs[c])&&o.push(l),!(s&&o.length>0)&&(o=o.concat(l.querySelectorAll(e,n,s))))}),o}setAttribute(e){const n=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(n.from).run()}}const Rte=`.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 $te(r,e,n){const s=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(s!==null)return s;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=r,document.getElementsByTagName("head")[0].appendChild(o),o}let Dte=class extends KQ{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,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>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.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=$te(Rte,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 s=XM(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:s});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const n=typeof e=="string"?`${e}$`:e.key,s=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(n))});this.view.updateState(s)}createExtensionManager(){var e,n;const o=[...this.options.enableCoreExtensions?[Pte,cee.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),kte,Nte,Ite,Lte]:[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Va(o,this)}createCommandManager(){this.commandManager=new pg({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=rk(this.options.content,this.schema,this.options.parseOptions),n=ek(e,this.options.autofocus);this.view=new hQ(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Da.create({doc:e,selection:n||void 0})});const s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),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 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(l=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(l)});return}const n=this.state.apply(e),s=!this.state.selection.eq(n.selection);this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),s&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return ote(this.state,e)}isActive(e,n){const s=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return ite(this.state,s,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return nte(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=` - -`,textSerializers:s={}}=e||{};return rte(this.state.doc,{blockSeparator:n,textSerializers:{...QM(this.schema),...s}})}get isEmpty(){return lte(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,n){var s;return((s=this.$doc)===null||s===void 0?void 0:s.querySelector(e,n))||null}$nodes(e,n){var s;return((s=this.$doc)===null||s===void 0?void 0:s.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new kl(n,this)}get $doc(){return this.$pos(0)}};function Ec(r){return new mg({find:r.find,handler:({state:e,range:n,match:s})=>{const o=xt(r.getAttributes,void 0,s);if(o===!1||o===null)return null;const{tr:i}=e,l=s[s.length-1],a=s[0];if(l){const c=a.search(/\S/),u=n.from+a.indexOf(l),d=u+l.length;if(sk(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(m=>m===r.type&&m!==p.mark.type)).filter(p=>p.to>u).length)return null;dn.from&&i.delete(n.from+c,u);const h=n.from+c+l.length;i.addMark(n.from+c,h,r.type.create(o||{})),i.removeStoredMark(r.type)}}})}function Vte(r){return new mg({find:r.find,handler:({state:e,range:n,match:s})=>{const o=xt(r.getAttributes,void 0,s)||{},{tr:i}=e,l=n.from;let a=n.to;const c=r.type.create(o);if(s[1]){const u=s[0].lastIndexOf(s[1]);let d=l+u;d>a?d=a:a=d+s[1].length;const f=s[0][s[0].length-1];i.insertText(f,l+s[0].length-1),i.replaceWith(d,a,c)}else s[0]&&i.insert(l-1,r.type.create(o)).delete(i.mapping.map(l),i.mapping.map(a));i.scrollIntoView()}})}function iv(r){return new mg({find:r.find,handler:({state:e,range:n,match:s})=>{const o=e.doc.resolve(n.from),i=xt(r.getAttributes,void 0,s)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),r.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,r.type,i)}})}function Td(r){return new mg({find:r.find,handler:({state:e,range:n,match:s,chain:o})=>{const i=xt(r.getAttributes,void 0,s)||{},l=e.tr.delete(n.from,n.to),c=l.doc.resolve(n.from).blockRange(),u=c&&Gy(c,r.type,i);if(!u)return null;if(l.wrap(c,u),r.keepMarks&&r.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=r.editor.extensionManager,g=h||f.$to.parentOffset&&f.$from.marks();if(g){const m=g.filter(v=>p.includes(v.type.name));l.ensureMarks(m)}}if(r.keepAttributes){const f=r.type.name==="bulletList"||r.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const d=l.doc.resolve(n.from-1).nodeBefore;d&&d.type===r.type&&al(l.doc,n.from-1)&&(!r.joinPredicate||r.joinPredicate(s,d))&&l.join(n.from-1)}})}class hs{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=xt(Ke(this,"addOptions",{name:this.name}))),this.storage=xt(Ke(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new hs(e)}configure(e={}){const n=this.extend();return n.options=bg(this.options,e),n.storage=xt(Ke(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new hs({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions,n.options=xt(Ke(n,"addOptions",{name:n.name})),n.storage=xt(Ke(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:s}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const l=o.marks();if(!!!l.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const c=l.find(u=>(u==null?void 0:u.type.name)===n.name);return c&&s.removeStoredMark(c),s.insertText(" ",o.pos),e.view.dispatch(s),!0}return!1}}let jr=class lv{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=xt(Ke(this,"addOptions",{name:this.name}))),this.storage=xt(Ke(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new lv(e)}configure(e={}){const n=this.extend();return n.options=bg(this.options,e),n.storage=xt(Ke(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new lv({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions,n.options=xt(Ke(n,"addOptions",{name:n.name})),n.storage=xt(Ke(n,"addStorage",{name:n.name,options:n.options})),n}};function Tc(r){return new nee({find:r.find,handler:({state:e,range:n,match:s,pasteEvent:o})=>{const i=xt(r.getAttributes,void 0,s,o);if(i===!1||i===null)return null;const{tr:l}=e,a=s[s.length-1],c=s[0];let u=n.to;if(a){const d=c.search(/\S/),f=n.from+c.indexOf(a),h=f+a.length;if(sk(n.from,n.to,e.doc).filter(g=>g.mark.type.excluded.find(v=>v===r.type&&v!==g.mark.type)).filter(g=>g.to>f).length)return null;hn.from&&l.delete(n.from+d,f),u=n.from+d+a.length,l.addMark(n.from+d,u,r.type.create(i||{})),l.removeStoredMark(r.type)}}})}var Fte="tippy-box",ok="tippy-content",Bte="tippy-backdrop",ik="tippy-arrow",lk="tippy-svg-arrow",El={passive:!0,capture:!0},ak=function(){return document.body};function Om(r,e,n){if(Array.isArray(r)){var s=r[e];return s??(Array.isArray(n)?n[e]:n)}return r}function u0(r,e){var n={}.toString.call(r);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function ck(r,e){return typeof r=="function"?r.apply(void 0,e):r}function Tx(r,e){if(e===0)return r;var n;return function(s){clearTimeout(n),n=setTimeout(function(){r(s)},e)}}function zte(r){return r.split(/\s+/).filter(Boolean)}function La(r){return[].concat(r)}function _x(r,e){r.indexOf(e)===-1&&r.push(e)}function jte(r){return r.filter(function(e,n){return r.indexOf(e)===n})}function Hte(r){return r.split("-")[0]}function np(r){return[].slice.call(r)}function Ox(r){return Object.keys(r).reduce(function(e,n){return r[n]!==void 0&&(e[n]=r[n]),e},{})}function Wu(){return document.createElement("div")}function yg(r){return["Element","Fragment"].some(function(e){return u0(r,e)})}function Ute(r){return u0(r,"NodeList")}function Wte(r){return u0(r,"MouseEvent")}function qte(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function Gte(r){return yg(r)?[r]:Ute(r)?np(r):Array.isArray(r)?r:np(document.querySelectorAll(r))}function Am(r,e){r.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Ax(r,e){r.forEach(function(n){n&&n.setAttribute("data-state",e)})}function Kte(r){var e,n=La(r),s=n[0];return s!=null&&(e=s.ownerDocument)!=null&&e.body?s.ownerDocument:document}function Yte(r,e){var n=e.clientX,s=e.clientY;return r.every(function(o){var i=o.popperRect,l=o.popperState,a=o.props,c=a.interactiveBorder,u=Hte(l.placement),d=l.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,h=u==="top"?d.bottom.y:0,p=u==="right"?d.left.x:0,g=u==="left"?d.right.x:0,m=i.top-s+f>c,v=s-i.bottom-h>c,b=i.left-n+p>c,C=n-i.right-g>c;return m||v||b||C})}function Mm(r,e,n){var s=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){r[s](o,n)})}function Mx(r,e){for(var n=e;n;){var s;if(r.contains(n))return!0;n=n.getRootNode==null||(s=n.getRootNode())==null?void 0:s.host}return!1}var Ys={isTouch:!1},kx=0;function Jte(){Ys.isTouch||(Ys.isTouch=!0,window.performance&&document.addEventListener("mousemove",uk))}function uk(){var r=performance.now();r-kx<20&&(Ys.isTouch=!1,document.removeEventListener("mousemove",uk)),kx=r}function Xte(){var r=document.activeElement;if(qte(r)){var e=r._tippy;r.blur&&!e.state.isVisible&&r.blur()}}function Zte(){document.addEventListener("touchstart",Jte,El),window.addEventListener("blur",Xte)}var Qte=typeof window<"u"&&typeof document<"u",ene=Qte?!!window.msCrypto:!1,tne={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},nne={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},As=Object.assign({appendTo:ak,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},tne,nne),rne=Object.keys(As),sne=function(e){var n=Object.keys(e);n.forEach(function(s){As[s]=e[s]})};function dk(r){var e=r.plugins||[],n=e.reduce(function(s,o){var i=o.name,l=o.defaultValue;if(i){var a;s[i]=r[i]!==void 0?r[i]:(a=As[i])!=null?a:l}return s},{});return Object.assign({},r,n)}function one(r,e){var n=e?Object.keys(dk(Object.assign({},As,{plugins:e}))):rne,s=n.reduce(function(o,i){var l=(r.getAttribute("data-tippy-"+i)||"").trim();if(!l)return o;if(i==="content")o[i]=l;else try{o[i]=JSON.parse(l)}catch{o[i]=l}return o},{});return s}function Px(r,e){var n=Object.assign({},e,{content:ck(e.content,[r])},e.ignoreAttributes?{}:one(r,e.plugins));return n.aria=Object.assign({},As.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 ine=function(){return"innerHTML"};function av(r,e){r[ine()]=e}function Nx(r){var e=Wu();return r===!0?e.className=ik:(e.className=lk,yg(r)?e.appendChild(r):av(e,r)),e}function Ix(r,e){yg(e.content)?(av(r,""),r.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?av(r,e.content):r.textContent=e.content)}function cv(r){var e=r.firstElementChild,n=np(e.children);return{box:e,content:n.find(function(s){return s.classList.contains(ok)}),arrow:n.find(function(s){return s.classList.contains(ik)||s.classList.contains(lk)}),backdrop:n.find(function(s){return s.classList.contains(Bte)})}}function fk(r){var e=Wu(),n=Wu();n.className=Fte,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var s=Wu();s.className=ok,s.setAttribute("data-state","hidden"),Ix(s,r.props),e.appendChild(n),n.appendChild(s),o(r.props,r.props);function o(i,l){var a=cv(e),c=a.box,u=a.content,d=a.arrow;l.theme?c.setAttribute("data-theme",l.theme):c.removeAttribute("data-theme"),typeof l.animation=="string"?c.setAttribute("data-animation",l.animation):c.removeAttribute("data-animation"),l.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof l.maxWidth=="number"?l.maxWidth+"px":l.maxWidth,l.role?c.setAttribute("role",l.role):c.removeAttribute("role"),(i.content!==l.content||i.allowHTML!==l.allowHTML)&&Ix(u,r.props),l.arrow?d?i.arrow!==l.arrow&&(c.removeChild(d),c.appendChild(Nx(l.arrow))):c.appendChild(Nx(l.arrow)):d&&c.removeChild(d)}return{popper:e,onUpdate:o}}fk.$$tippy=!0;var lne=1,qf=[],km=[];function ane(r,e){var n=Px(r,Object.assign({},As,dk(Ox(e)))),s,o,i,l=!1,a=!1,c=!1,u=!1,d,f,h,p=[],g=Tx(L,n.interactiveDebounce),m,v=lne++,b=null,C=jte(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:v,reference:r,popper:Wu(),popperInstance:b,props:n,state:y,plugins:C,clearDelayTimeouts:Z,setProps:ae,setContent:je,show:Qe,hide:Me,hideWithInteractivity:ke,enable:Ae,disable:re,unmount:Je,destroy:it};if(!n.render)return w;var x=n.render(w),E=x.popper,_=x.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+w.id,w.popper=E,r._tippy=w,E._tippy=w;var M=C.map(function(ue){return ue.fn(w)}),A=r.hasAttribute("aria-expanded");return Pe(),ee(),U(),Q("onCreate",[w]),n.showOnCreate&&J(),E.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&W().addEventListener("mousemove",g)}),w;function k(){var ue=w.props.touch;return Array.isArray(ue)?ue:[ue,0]}function P(){return k()[0]==="hold"}function $(){var ue;return!!((ue=w.props.render)!=null&&ue.$$tippy)}function B(){return m||r}function W(){var ue=B().parentNode;return ue?Kte(ue):document}function I(){return cv(E)}function R(ue){return w.state.isMounted&&!w.state.isVisible||Ys.isTouch||d&&d.type==="focus"?0:Om(w.props.delay,ue?0:1,As.delay)}function U(ue){ue===void 0&&(ue=!1),E.style.pointerEvents=w.props.interactive&&!ue?"":"none",E.style.zIndex=""+w.props.zIndex}function Q(ue,Ie,Fe){if(Fe===void 0&&(Fe=!0),M.forEach(function(ct){ct[ue]&&ct[ue].apply(ct,Ie)}),Fe){var lt;(lt=w.props)[ue].apply(lt,Ie)}}function q(){var ue=w.props.aria;if(ue.content){var Ie="aria-"+ue.content,Fe=E.id,lt=La(w.props.triggerTarget||r);lt.forEach(function(ct){var xn=ct.getAttribute(Ie);if(w.state.isVisible)ct.setAttribute(Ie,xn?xn+" "+Fe:Fe);else{var Xn=xn&&xn.replace(Fe,"").trim();Xn?ct.setAttribute(Ie,Xn):ct.removeAttribute(Ie)}})}}function ee(){if(!(A||!w.props.aria.expanded)){var ue=La(w.props.triggerTarget||r);ue.forEach(function(Ie){w.props.interactive?Ie.setAttribute("aria-expanded",w.state.isVisible&&Ie===B()?"true":"false"):Ie.removeAttribute("aria-expanded")})}}function de(){W().removeEventListener("mousemove",g),qf=qf.filter(function(ue){return ue!==g})}function ce(ue){if(!(Ys.isTouch&&(c||ue.type==="mousedown"))){var Ie=ue.composedPath&&ue.composedPath()[0]||ue.target;if(!(w.props.interactive&&Mx(E,Ie))){if(La(w.props.triggerTarget||r).some(function(Fe){return Mx(Fe,Ie)})){if(Ys.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else Q("onClickOutside",[w,ue]);w.props.hideOnClick===!0&&(w.clearDelayTimeouts(),w.hide(),a=!0,setTimeout(function(){a=!1}),w.state.isMounted||Ee())}}}function Te(){c=!0}function fe(){c=!1}function we(){var ue=W();ue.addEventListener("mousedown",ce,!0),ue.addEventListener("touchend",ce,El),ue.addEventListener("touchstart",fe,El),ue.addEventListener("touchmove",Te,El)}function Ee(){var ue=W();ue.removeEventListener("mousedown",ce,!0),ue.removeEventListener("touchend",ce,El),ue.removeEventListener("touchstart",fe,El),ue.removeEventListener("touchmove",Te,El)}function G(ue,Ie){se(ue,function(){!w.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&Ie()})}function ne(ue,Ie){se(ue,Ie)}function se(ue,Ie){var Fe=I().box;function lt(ct){ct.target===Fe&&(Mm(Fe,"remove",lt),Ie())}if(ue===0)return Ie();Mm(Fe,"remove",f),Mm(Fe,"add",lt),f=lt}function me(ue,Ie,Fe){Fe===void 0&&(Fe=!1);var lt=La(w.props.triggerTarget||r);lt.forEach(function(ct){ct.addEventListener(ue,Ie,Fe),p.push({node:ct,eventType:ue,handler:Ie,options:Fe})})}function Pe(){P()&&(me("touchstart",D,{passive:!0}),me("touchend",te,{passive:!0})),zte(w.props.trigger).forEach(function(ue){if(ue!=="manual")switch(me(ue,D),ue){case"mouseenter":me("mouseleave",te);break;case"focus":me(ene?"focusout":"blur",he);break;case"focusin":me("focusout",he);break}})}function Se(){p.forEach(function(ue){var Ie=ue.node,Fe=ue.eventType,lt=ue.handler,ct=ue.options;Ie.removeEventListener(Fe,lt,ct)}),p=[]}function D(ue){var Ie,Fe=!1;if(!(!w.state.isEnabled||ge(ue)||a)){var lt=((Ie=d)==null?void 0:Ie.type)==="focus";d=ue,m=ue.currentTarget,ee(),!w.state.isVisible&&Wte(ue)&&qf.forEach(function(ct){return ct(ue)}),ue.type==="click"&&(w.props.trigger.indexOf("mouseenter")<0||l)&&w.props.hideOnClick!==!1&&w.state.isVisible?Fe=!0:J(ue),ue.type==="click"&&(l=!Fe),Fe&&!lt&&ie(ue)}}function L(ue){var Ie=ue.target,Fe=B().contains(Ie)||E.contains(Ie);if(!(ue.type==="mousemove"&&Fe)){var lt=F().concat(E).map(function(ct){var xn,Xn=ct._tippy,Mr=(xn=Xn.popperInstance)==null?void 0:xn.state;return Mr?{popperRect:ct.getBoundingClientRect(),popperState:Mr,props:n}:null}).filter(Boolean);Yte(lt,ue)&&(de(),ie(ue))}}function te(ue){var Ie=ge(ue)||w.props.trigger.indexOf("click")>=0&&l;if(!Ie){if(w.props.interactive){w.hideWithInteractivity(ue);return}ie(ue)}}function he(ue){w.props.trigger.indexOf("focusin")<0&&ue.target!==B()||w.props.interactive&&ue.relatedTarget&&E.contains(ue.relatedTarget)||ie(ue)}function ge(ue){return Ys.isTouch?P()!==ue.type.indexOf("touch")>=0:!1}function Ce(){xe();var ue=w.props,Ie=ue.popperOptions,Fe=ue.placement,lt=ue.offset,ct=ue.getReferenceClientRect,xn=ue.moveTransition,Xn=$()?cv(E).arrow:null,Mr=ct?{getBoundingClientRect:ct,contextElement:ct.contextElement||B()}:r,ri={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(va){var vo=va.state;if($()){var Pg=I(),yo=Pg.box;["placement","reference-hidden","escaped"].forEach(function(ya){ya==="placement"?yo.setAttribute("data-placement",vo.placement):vo.attributes.popper["data-popper-"+ya]?yo.setAttribute("data-"+ya,""):yo.removeAttribute("data-"+ya)}),vo.attributes.popper={}}}},ms=[{name:"offset",options:{offset:lt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!xn}},ri];$()&&Xn&&ms.push({name:"arrow",options:{element:Xn,padding:3}}),ms.push.apply(ms,(Ie==null?void 0:Ie.modifiers)||[]),w.popperInstance=fO(Mr,E,Object.assign({},Ie,{placement:Fe,onFirstUpdate:h,modifiers:ms}))}function xe(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function V(){var ue=w.props.appendTo,Ie,Fe=B();w.props.interactive&&ue===ak||ue==="parent"?Ie=Fe.parentNode:Ie=ck(ue,[Fe]),Ie.contains(E)||Ie.appendChild(E),w.state.isMounted=!0,Ce()}function F(){return np(E.querySelectorAll("[data-tippy-root]"))}function J(ue){w.clearDelayTimeouts(),ue&&Q("onTrigger",[w,ue]),we();var Ie=R(!0),Fe=k(),lt=Fe[0],ct=Fe[1];Ys.isTouch&<==="hold"&&ct&&(Ie=ct),Ie?s=setTimeout(function(){w.show()},Ie):w.show()}function ie(ue){if(w.clearDelayTimeouts(),Q("onUntrigger",[w,ue]),!w.state.isVisible){Ee();return}if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ue.type)>=0&&l)){var Ie=R(!1);Ie?o=setTimeout(function(){w.state.isVisible&&w.hide()},Ie):i=requestAnimationFrame(function(){w.hide()})}}function Ae(){w.state.isEnabled=!0}function re(){w.hide(),w.state.isEnabled=!1}function Z(){clearTimeout(s),clearTimeout(o),cancelAnimationFrame(i)}function ae(ue){if(!w.state.isDestroyed){Q("onBeforeUpdate",[w,ue]),Se();var Ie=w.props,Fe=Px(r,Object.assign({},Ie,Ox(ue),{ignoreAttributes:!0}));w.props=Fe,Pe(),Ie.interactiveDebounce!==Fe.interactiveDebounce&&(de(),g=Tx(L,Fe.interactiveDebounce)),Ie.triggerTarget&&!Fe.triggerTarget?La(Ie.triggerTarget).forEach(function(lt){lt.removeAttribute("aria-expanded")}):Fe.triggerTarget&&r.removeAttribute("aria-expanded"),ee(),U(),_&&_(Ie,Fe),w.popperInstance&&(Ce(),F().forEach(function(lt){requestAnimationFrame(lt._tippy.popperInstance.forceUpdate)})),Q("onAfterUpdate",[w,ue])}}function je(ue){w.setProps({content:ue})}function Qe(){var ue=w.state.isVisible,Ie=w.state.isDestroyed,Fe=!w.state.isEnabled,lt=Ys.isTouch&&!w.props.touch,ct=Om(w.props.duration,0,As.duration);if(!(ue||Ie||Fe||lt)&&!B().hasAttribute("disabled")&&(Q("onShow",[w],!1),w.props.onShow(w)!==!1)){if(w.state.isVisible=!0,$()&&(E.style.visibility="visible"),U(),we(),w.state.isMounted||(E.style.transition="none"),$()){var xn=I(),Xn=xn.box,Mr=xn.content;Am([Xn,Mr],0)}h=function(){var ms;if(!(!w.state.isVisible||u)){if(u=!0,E.offsetHeight,E.style.transition=w.props.moveTransition,$()&&w.props.animation){var ba=I(),va=ba.box,vo=ba.content;Am([va,vo],ct),Ax([va,vo],"visible")}q(),ee(),_x(km,w),(ms=w.popperInstance)==null||ms.forceUpdate(),Q("onMount",[w]),w.props.animation&&$()&&ne(ct,function(){w.state.isShown=!0,Q("onShown",[w])})}},V()}}function Me(){var ue=!w.state.isVisible,Ie=w.state.isDestroyed,Fe=!w.state.isEnabled,lt=Om(w.props.duration,1,As.duration);if(!(ue||Ie||Fe)&&(Q("onHide",[w],!1),w.props.onHide(w)!==!1)){if(w.state.isVisible=!1,w.state.isShown=!1,u=!1,l=!1,$()&&(E.style.visibility="hidden"),de(),Ee(),U(!0),$()){var ct=I(),xn=ct.box,Xn=ct.content;w.props.animation&&(Am([xn,Xn],lt),Ax([xn,Xn],"hidden"))}q(),ee(),w.props.animation?$()&&G(lt,w.unmount):w.unmount()}}function ke(ue){W().addEventListener("mousemove",g),_x(qf,g),g(ue)}function Je(){w.state.isVisible&&w.hide(),w.state.isMounted&&(xe(),F().forEach(function(ue){ue._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),km=km.filter(function(ue){return ue!==w}),w.state.isMounted=!1,Q("onHidden",[w]))}function it(){w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),Se(),delete r._tippy,w.state.isDestroyed=!0,Q("onDestroy",[w]))}}function uf(r,e){e===void 0&&(e={});var n=As.plugins.concat(e.plugins||[]);Zte();var s=Object.assign({},e,{plugins:n}),o=Gte(r),i=o.reduce(function(l,a){var c=a&&ane(a,s);return c&&l.push(c),l},[]);return yg(r)?i[0]:i}uf.defaultProps=As;uf.setDefaultProps=sne;uf.currentInput=Ys;Object.assign({},xy,{effect:function(e){var n=e.state,s={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,s.popper),n.styles=s,n.elements.arrow&&Object.assign(n.elements.arrow.style,s.arrow)}});uf.setDefaultProps({render:fk});class cne{constructor({editor:e,element:n,view:s,tippyOptions:o={},updateDelay:i=250,shouldShow:l}){this.preventHide=!1,this.shouldShow=({view:a,state:c,from:u,to:d})=>{const{doc:f,selection:h}=c,{empty:p}=h,g=!f.textBetween(u,d).length&&l0(c.selection),m=this.element.contains(document.activeElement);return!(!(a.hasFocus()||m)||p||g||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var c;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,c)=>{const u=!(c!=null&&c.selection.eq(a.state.selection)),d=!(c!=null&&c.doc.eq(a.state.doc));!u&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,u,d,c)},this.updateDelay))},this.updateHandler=(a,c,u,d)=>{var f,h,p;const{state:g,composing:m}=a,{selection:v}=g;if(m||!c&&!u)return;this.createTooltip();const{ranges:C}=v,y=Math.min(...C.map(E=>E.$from.pos)),w=Math.max(...C.map(E=>E.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:a,state:g,oldState:d,from:y,to:w}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(ate(g.selection)){let E=a.nodeDOM(y);const _=E.dataset.nodeViewWrapper?E:E.querySelector("[data-node-view-wrapper]");if(_&&(E=_.firstChild),E)return E.getBoundingClientRect()}return cte(a,y,w)})}),this.show()},this.editor=e,this.element=n,this.view=s,this.updateDelay=i,l&&(this.shouldShow=l),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,n=!!e.parentElement;this.tippy||!n||(this.tippy=uf(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:s}=e,o=s.selection.$from.pos!==s.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,n);return}const i=!(n!=null&&n.selection.eq(e.state.selection)),l=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,i,l,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 hk=r=>new zr({key:typeof r.pluginKey=="string"?new ti(r.pluginKey):r.pluginKey,view:e=>new cne({view:e,...r})});mr.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[hk({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});const une=pe({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(r,{slots:e}){const n=j(null);return nt(()=>{const{updateDelay:s,editor:o,pluginKey:i,shouldShow:l,tippyOptions:a}=r;o.registerPlugin(hk({updateDelay:s,editor:o,element:n.value,pluginKey:i,shouldShow:l,tippyOptions:a}))}),Cn(()=>{const{pluginKey:s,editor:o}=r;o.unregisterPlugin(s)}),()=>{var s;return Ye("div",{ref:n},(s=e.default)===null||s===void 0?void 0:s.call(e))}}});function Lx(r){return qN((e,n)=>({get(){return e(),r},set(s){r=s,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class dne extends Dte{constructor(e={}){return super(e),this.vueRenderers=St(new Map),this.contentComponent=null,this.reactiveState=Lx(this.view.state),this.reactiveExtensionStorage=Lx(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,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,n){super.registerPlugin(e,n),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const fne=pe({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(r){const e=j(),n=bt();return to(()=>{const s=r.editor;s&&s.options.element&&e.value&&tt(()=>{if(!e.value||!s.options.element.firstChild)return;const o=S(e.value);e.value.append(...s.options.element.childNodes),s.contentComponent=n.ctx._,s.setOptions({element:o}),s.createNodeViews()})}),Cn(()=>{const s=r.editor;if(!s||(s.isDestroyed||s.view.setProps({nodeViews:{}}),s.contentComponent=null,!s.options.element.firstChild))return;const o=document.createElement("div");o.append(...s.options.element.childNodes),s.setOptions({element:o})}),{rootEl:e}},render(){const r=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const n=Ye(Uc,{to:e.teleportElement,key:e.id},Ye(e.component,{ref:e.id,...e.props}));r.push(n)}),Ye("div",{ref:e=>{this.rootEl=e}},...r)}}),hne=/^\s*>\s$/,pne=jr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:r}){return["blockquote",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{setBlockquote:()=>({commands:r})=>r.wrapIn(this.name),toggleBlockquote:()=>({commands:r})=>r.toggleWrap(this.name),unsetBlockquote:()=>({commands:r})=>r.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Td({find:hne,type:this.type})]}}),gne=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,mne=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,bne=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,vne=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,yne=hs.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:r=>r.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:r=>/^(bold(er)?|[5-9]\d{2,})$/.test(r)&&null}]},renderHTML({HTMLAttributes:r}){return["strong",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{setBold:()=>({commands:r})=>r.setMark(this.name),toggleBold:()=>({commands:r})=>r.toggleMark(this.name),unsetBold:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Ec({find:gne,type:this.type}),Ec({find:bne,type:this.type})]},addPasteRules(){return[Tc({find:mne,type:this.type}),Tc({find:vne,type:this.type})]}}),wne=jr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",pn(this.options.HTMLAttributes,r),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)}}}),Rx=hs.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:r=>r.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["span",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:r,commands:e})=>{const n=cf(r,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),$x=/^\s*([-+*])\s$/,Cne=jr.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:r}){return["ul",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleBulletList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(wne.name,this.editor.getAttributes(Rx.name)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let r=Td({find:$x,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(r=Td({find:$x,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Rx.name),editor:this.editor})),[r]}}),Sne=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,xne=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,Ene=hs.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:r}){return["code",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{setCode:()=>({commands:r})=>r.setMark(this.name),toggleCode:()=>({commands:r})=>r.toggleMark(this.name),unsetCode:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Ec({find:Sne,type:this.type})]},addPasteRules(){return[Tc({find:xne,type:this.type})]}}),Tne=/^```([a-z]+)?[\s\n]$/,_ne=/^~~~([a-z]+)?[\s\n]$/,One=jr.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:r=>{var e;const{languageClassPrefix:n}=this.options,i=[...((e=r.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(l=>l.startsWith(n)).map(l=>l.replace(n,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:r,HTMLAttributes:e}){return["pre",pn(this.options.HTMLAttributes,e),["code",{class:r.attrs.language?this.options.languageClassPrefix+r.attrs.language:null},0]]},addCommands(){return{setCodeBlock:r=>({commands:e})=>e.setNode(this.name,r),toggleCodeBlock:r=>({commands:e})=>e.toggleNode(this.name,"paragraph",r)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:r,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!r||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:r})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=r,{selection:n}=e,{$from:s,empty:o}=n;if(!o||s.parent.type!==this.type)return!1;const i=s.parentOffset===s.parent.nodeSize-2,l=s.parent.textContent.endsWith(` - -`);return!i||!l?!1:r.chain().command(({tr:a})=>(a.delete(s.pos-2,s.pos),!0)).exitCode().run()},ArrowDown:({editor:r})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=r,{selection:n,doc:s}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const a=o.after();return a===void 0||s.nodeAt(a)?!1:r.commands.exitCode()}}},addInputRules(){return[iv({find:Tne,type:this.type,getAttributes:r=>({language:r[1]})}),iv({find:_ne,type:this.type,getAttributes:r=>({language:r[1]})})]},addProseMirrorPlugins(){return[new zr({key:new ti("codeBlockVSCodeHandler"),props:{handlePaste:(r,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),s=e.clipboardData.getData("vscode-editor-data"),o=s?JSON.parse(s):void 0,i=o==null?void 0:o.mode;if(!n||!i)return!1;const{tr:l}=r.state;return r.state.selection.from===r.state.doc.nodeSize-(1+r.state.selection.$to.depth*2)?l.insert(r.state.selection.from-1,this.type.create({language:i})):l.replaceSelectionWith(this.type.create({language:i})),l.setSelection(yt.near(l.doc.resolve(Math.max(0,l.selection.from-2)))),l.insertText(n.replace(/\r\n?/g,` -`)),l.setMeta("paste",!0),r.dispatch(l),!0}}})]}}),Ane=jr.create({name:"doc",topNode:!0,content:"block+"});function Mne(r={}){return new zr({view(e){return new kne(e,r)}})}class kne{constructor(e,n){var s;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(s=n.width)!==null&&s!==void 0?s:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=l=>{this[o](l)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}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,s;if(n){let a=e.nodeBefore,c=e.nodeAfter;if(a||c){let u=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(u){let d=u.getBoundingClientRect(),f=a?d.bottom:d.top;a&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),s={left:d.left,right:d.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!s){let a=this.editorView.coordsAtPos(this.cursorPos);s={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.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",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,l;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,l=-pageYOffset;else{let a=o.getBoundingClientRect();i=a.left-o.scrollLeft,l=a.top-o.scrollTop}this.element.style.left=s.left-i+"px",this.element.style.top=s.top-l+"px",this.element.style.width=s.right-s.left+"px",this.element.style.height=s.bottom-s.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}),s=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=s&&s.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let l=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=rM(this.editorView.state.doc,l,this.editorView.dragging.slice);a!=null&&(l=a)}this.setCursor(l),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 Pne=mr.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Mne(this.options)]}});class sn extends Et{constructor(e){super(e,e)}map(e,n){let s=e.resolve(n.map(this.head));return sn.valid(s)?new sn(s):Et.near(s)}content(){return He.empty}eq(e){return e instanceof sn&&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 sn(e.resolve(n.pos))}getBookmark(){return new d0(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!Nne(e)||!Ine(e))return!1;let s=n.type.spec.allowGapCursor;if(s!=null)return s;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,s=!1){e:for(;;){if(!s&&sn.valid(e))return e;let o=e.pos,i=null;for(let l=e.depth;;l--){let a=e.node(l);if(n>0?e.indexAfter(l)0){i=a.child(n>0?e.indexAfter(l):e.index(l)-1);break}else if(l==0)return null;o+=n;let c=e.doc.resolve(o);if(sn.valid(c))return c}for(;;){let l=n>0?i.firstChild:i.lastChild;if(!l){if(i.isAtom&&!i.isText&&!ot.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),s=!1;continue e}break}i=l,o+=n;let a=e.doc.resolve(o);if(sn.valid(a))return a}return null}}}sn.prototype.visible=!1;sn.findFrom=sn.findGapCursorFrom;Et.jsonID("gapcursor",sn);class d0{constructor(e){this.pos=e}map(e){return new d0(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return sn.valid(n)?new sn(n):Et.near(n)}}function Nne(r){for(let e=r.depth;e>=0;e--){let n=r.index(e),s=r.node(e);if(n==0){if(s.type.spec.isolating)return!0;continue}for(let o=s.child(n-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 Ine(r){for(let e=r.depth;e>=0;e--){let n=r.indexAfter(e),s=r.node(e);if(n==s.childCount){if(s.type.spec.isolating)return!0;continue}for(let o=s.child(n);;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 Lne(){return new zr({props:{decorations:Vne,createSelectionBetween(r,e,n){return e.pos==n.pos&&sn.valid(n)?new sn(n):null},handleClick:$ne,handleKeyDown:Rne,handleDOMEvents:{beforeinput:Dne}}})}const Rne=HM({ArrowLeft:Gf("horiz",-1),ArrowRight:Gf("horiz",1),ArrowUp:Gf("vert",-1),ArrowDown:Gf("vert",1)});function Gf(r,e){const n=r=="vert"?e>0?"down":"up":e>0?"right":"left";return function(s,o,i){let l=s.selection,a=e>0?l.$to:l.$from,c=l.empty;if(l instanceof yt){if(!i.endOfTextblock(n)||a.depth==0)return!1;c=!1,a=s.doc.resolve(e>0?a.after():a.before())}let u=sn.findGapCursorFrom(a,e,c);return u?(o&&o(s.tr.setSelection(new sn(u))),!0):!1}}function $ne(r,e,n){if(!r||!r.editable)return!1;let s=r.state.doc.resolve(e);if(!sn.valid(s))return!1;let o=r.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&ot.isSelectable(r.state.doc.nodeAt(o.inside))?!1:(r.dispatch(r.state.tr.setSelection(new sn(s))),!0)}function Dne(r,e){if(e.inputType!="insertCompositionText"||!(r.state.selection instanceof sn))return!1;let{$from:n}=r.state.selection,s=n.parent.contentMatchAt(n.index()).findWrapping(r.state.schema.nodes.text);if(!s)return!1;let o=Oe.empty;for(let l=s.length-1;l>=0;l--)o=Oe.from(s[l].createAndFill(null,o));let i=r.state.tr.replace(n.pos,n.pos,new He(o,0,0));return i.setSelection(yt.near(i.doc.resolve(n.pos+1))),r.dispatch(i),!1}function Vne(r){if(!(r.selection instanceof sn))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Tn.create(r.doc,[Qr.widget(r.selection.head,e,{key:"gapcursor"})])}const Fne=mr.create({name:"gapCursor",addProseMirrorPlugins(){return[Lne()]},extendNodeSchema(r){var e;const n={name:r.name,options:r.options,storage:r.storage};return{allowGapCursor:(e=xt(Ke(r,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),Bne=jr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:r}){return["br",pn(this.options.HTMLAttributes,r)]},renderText(){return` -`},addCommands(){return{setHardBreak:()=>({commands:r,chain:e,state:n,editor:s})=>r.first([()=>r.exitCode(),()=>r.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:l}=this.options,{splittableMarks:a}=s.extensionManager,c=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:d})=>{if(d&&c&&l){const f=c.filter(h=>a.includes(h.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),zne=jr.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(r=>({tag:`h${r}`,attrs:{level:r}}))},renderHTML({node:r,HTMLAttributes:e}){return[`h${this.options.levels.includes(r.attrs.level)?r.attrs.level:this.options.levels[0]}`,pn(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.setNode(this.name,r):!1,toggleHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.toggleNode(this.name,"paragraph",r):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((r,e)=>({...r,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(r=>iv({find:new RegExp(`^(#{1,${r}})\\s$`),type:this.type,getAttributes:{level:r}}))}});var rp=200,Dn=function(){};Dn.prototype.append=function(e){return e.length?(e=Dn.from(e),!this.length&&e||e.length=n?Dn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};Dn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Dn.prototype.forEach=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length),n<=s?this.forEachInner(e,n,s,0):this.forEachInvertedInner(e,n,s,0)};Dn.prototype.map=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length);var o=[];return this.forEach(function(i,l){return o.push(e(i,l))},n,s),o};Dn.from=function(e){return e instanceof Dn?e:e&&e.length?new pk(e):Dn.empty};var pk=function(r){function e(s){r.call(this),this.values=s}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.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(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,l,a){for(var c=i;c=l;c--)if(o(this.values[c],a+c)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=rp)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=rp)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Dn);Dn.empty=new pk([]);var jne=function(r){function e(n,s){r.call(this),this.left=n,this.right=s,this.length=n.length+s.length,this.depth=Math.max(n.depth,s.depth)+1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(s){return sa&&this.right.forEachInner(s,Math.max(o-a,0),Math.min(this.length,i)-a,l+a)===!1)return!1},e.prototype.forEachInvertedInner=function(s,o,i,l){var a=this.left.length;if(o>a&&this.right.forEachInvertedInner(s,o-a,Math.max(i,a)-a,l+a)===!1||i=i?this.right.slice(s-i,o-i):this.left.slice(s,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(s){var o=this.right.leafAppend(s);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(s){var o=this.left.leafPrepend(s);if(o)return new e(o,this.right)},e.prototype.appendInner=function(s){return this.left.depth>=Math.max(this.right.depth,s.depth)+1?new e(this.left,new e(this.right,s)):new e(this,s)},e}(Dn);const Hne=500;class xs{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}let o,i;n&&(o=this.remapping(s,this.items.length),i=o.maps.length);let l=e.tr,a,c,u=[],d=[];return this.items.forEach((f,h)=>{if(!f.step){o||(o=this.remapping(s,h+1),i=o.maps.length),i--,d.push(f);return}if(o){d.push(new Gs(f.map));let p=f.step.map(o.slice(i)),g;p&&l.maybeStep(p).doc&&(g=l.mapping.maps[l.mapping.maps.length-1],u.push(new Gs(g,void 0,void 0,u.length+d.length))),i--,g&&o.appendMap(g,i)}else l.maybeStep(f.step);if(f.selection)return a=o?f.selection.map(o.slice(i)):f.selection,c=new xs(this.items.slice(0,s).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:l,selection:a}}addTransform(e,n,s,o){let i=[],l=this.eventCount,a=this.items,c=!o&&a.length?a.get(a.length-1):null;for(let d=0;dWne&&(a=Une(a,u),l-=u),new xs(a.append(i),l)}remapping(e,n){let s=new qa;return this.items.forEach((o,i)=>{let l=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?s.maps.length-o.mirrorOffset:void 0;s.appendMap(o.map,l)},e,n),s}addMaps(e){return this.eventCount==0?this:new xs(this.items.append(e.map(n=>new Gs(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let s=[],o=Math.max(0,this.items.length-n),i=e.mapping,l=e.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},o);let c=n;this.items.forEach(h=>{let p=i.getMirror(--c);if(p==null)return;l=Math.min(l,p);let g=i.maps[p];if(h.step){let m=e.steps[p].invert(e.docs[p]),v=h.selection&&h.selection.map(i.slice(c+1,p));v&&a++,s.push(new Gs(g,m,v))}else s.push(new Gs(g))},o);let u=[];for(let h=n;hHne&&(f=f.compress(this.items.length-s.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),s=n.maps.length,o=[],i=0;return this.items.forEach((l,a)=>{if(a>=e)o.push(l),l.selection&&i++;else if(l.step){let c=l.step.map(n.slice(s)),u=c&&c.getMap();if(s--,u&&n.appendMap(u,s),c){let d=l.selection&&l.selection.map(n.slice(s));d&&i++;let f=new Gs(u.invert(),c,d),h,p=o.length-1;(h=o.length&&o[p].merge(f))?o[p]=h:o.push(f)}}else l.map&&s--},this.items.length,0),new xs(Dn.from(o.reverse()),i)}}xs.empty=new xs(Dn.empty,0);function Une(r,e){let n;return r.forEach((s,o)=>{if(s.selection&&e--==0)return n=o,!1}),r.slice(n)}class Gs{constructor(e,n,s,o){this.map=e,this.step=n,this.selection=s,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Gs(n.getMap().invert(),n,this.selection)}}}class Si{constructor(e,n,s,o,i){this.done=e,this.undone=n,this.prevRanges=s,this.prevTime=o,this.prevComposition=i}}const Wne=20;function qne(r,e,n,s){let o=n.getMeta(Jl),i;if(o)return o.historyState;n.getMeta(Yne)&&(r=new Si(r.done,r.undone,null,0,-1));let l=n.getMeta("appendedTransaction");if(n.steps.length==0)return r;if(l&&l.getMeta(Jl))return l.getMeta(Jl).redo?new Si(r.done.addTransform(n,void 0,s,vh(e)),r.undone,Dx(n.mapping.maps[n.steps.length-1]),r.prevTime,r.prevComposition):new Si(r.done,r.undone.addTransform(n,void 0,s,vh(e)),null,r.prevTime,r.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(l&&l.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),c=r.prevTime==0||!l&&r.prevComposition!=a&&(r.prevTime<(n.time||0)-s.newGroupDelay||!Gne(n,r.prevRanges)),u=l?Pm(r.prevRanges,n.mapping):Dx(n.mapping.maps[n.steps.length-1]);return new Si(r.done.addTransform(n,c?e.selection.getBookmark():void 0,s,vh(e)),xs.empty,u,n.time,a??r.prevComposition)}else return(i=n.getMeta("rebased"))?new Si(r.done.rebased(n,i),r.undone.rebased(n,i),Pm(r.prevRanges,n.mapping),r.prevTime,r.prevComposition):new Si(r.done.addMaps(n.mapping.maps),r.undone.addMaps(n.mapping.maps),Pm(r.prevRanges,n.mapping),r.prevTime,r.prevComposition)}function Gne(r,e){if(!e)return!1;if(!r.docChanged)return!0;let n=!1;return r.mapping.maps[0].forEach((s,o)=>{for(let i=0;i=e[i]&&(n=!0)}),n}function Dx(r){let e=[];return r.forEach((n,s,o,i)=>e.push(o,i)),e}function Pm(r,e){if(!r)return null;let n=[];for(let s=0;s{let o=Jl.getState(n);if(!o||(r?o.undone:o.done).eventCount==0)return!1;if(s){let i=Kne(o,n,r);i&&s(e?i.scrollIntoView():i)}return!0}}const mk=gk(!1,!0),bk=gk(!0,!0),Xne=mr.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:r,dispatch:e})=>mk(r,e),redo:()=>({state:r,dispatch:e})=>bk(r,e)}},addProseMirrorPlugins(){return[Jne(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()}}}),Zne=jr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:r}){return["hr",pn(this.options.HTMLAttributes,r)]},addCommands(){return{setHorizontalRule:()=>({chain:r,state:e})=>{const{$to:n}=e.selection,s=r();return n.parentOffset===0?s.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:o,dispatch:i})=>{var l;if(i){const{$to:a}=o.selection,c=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?o.setSelection(yt.create(o.doc,a.pos+1)):a.nodeAfter.isBlock?o.setSelection(ot.create(o.doc,a.pos)):o.setSelection(yt.create(o.doc,a.pos));else{const u=(l=a.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();u&&(o.insert(c,u),o.setSelection(yt.create(o.doc,c+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Vte({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Qne=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,ere=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,tre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,nre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,rre=hs.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:r=>r.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:r}){return["em",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{setItalic:()=>({commands:r})=>r.setMark(this.name),toggleItalic:()=>({commands:r})=>r.toggleMark(this.name),unsetItalic:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Ec({find:Qne,type:this.type}),Ec({find:tre,type:this.type})]},addPasteRules(){return[Tc({find:ere,type:this.type}),Tc({find:nre,type:this.type})]}}),sre=jr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",pn(this.options.HTMLAttributes,r),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)}}}),ore=jr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",pn(this.options.HTMLAttributes,r),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)}}}),Fx=hs.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:r=>r.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["span",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:r,commands:e})=>{const n=cf(r,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Bx=/^(\d+)\.\s$/,ire=jr.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:r=>r.hasAttribute("start")?parseInt(r.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:r}){const{start:e,...n}=r;return e===1?["ol",pn(this.options.HTMLAttributes,n),0]:["ol",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleOrderedList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ore.name,this.editor.getAttributes(Fx.name)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let r=Td({find:Bx,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)&&(r=Td({find:Bx,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Fx.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[r]}}),lre=jr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:r}){return["p",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{setParagraph:()=>({commands:r})=>r.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),are=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,cre=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,ure=hs.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["s",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{setStrike:()=>({commands:r})=>r.setMark(this.name),toggleStrike:()=>({commands:r})=>r.toggleMark(this.name),unsetStrike:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Ec({find:are,type:this.type})]},addPasteRules(){return[Tc({find:cre,type:this.type})]}}),dre=jr.create({name:"text",group:"inline"}),fre=mr.create({name:"starterKit",addExtensions(){var r,e,n,s,o,i,l,a,c,u,d,f,h,p,g,m,v,b;const C=[];return this.options.blockquote!==!1&&C.push(pne.configure((r=this.options)===null||r===void 0?void 0:r.blockquote)),this.options.bold!==!1&&C.push(yne.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&C.push(Cne.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&C.push(Ene.configure((s=this.options)===null||s===void 0?void 0:s.code)),this.options.codeBlock!==!1&&C.push(One.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&C.push(Ane.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&C.push(Pne.configure((l=this.options)===null||l===void 0?void 0:l.dropcursor)),this.options.gapcursor!==!1&&C.push(Fne.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&C.push(Bne.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&C.push(zne.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&C.push(Xne.configure((d=this.options)===null||d===void 0?void 0:d.history)),this.options.horizontalRule!==!1&&C.push(Zne.configure((f=this.options)===null||f===void 0?void 0:f.horizontalRule)),this.options.italic!==!1&&C.push(rre.configure((h=this.options)===null||h===void 0?void 0:h.italic)),this.options.listItem!==!1&&C.push(sre.configure((p=this.options)===null||p===void 0?void 0:p.listItem)),this.options.orderedList!==!1&&C.push(ire.configure((g=this.options)===null||g===void 0?void 0:g.orderedList)),this.options.paragraph!==!1&&C.push(lre.configure((m=this.options)===null||m===void 0?void 0:m.paragraph)),this.options.strike!==!1&&C.push(ure.configure((v=this.options)===null||v===void 0?void 0:v.strike)),this.options.text!==!1&&C.push(dre.configure((b=this.options)===null||b===void 0?void 0:b.text)),C}}),hre=hs.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["u",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{setUnderline:()=>({commands:r})=>r.setMark(this.name),toggleUnderline:()=>({commands:r})=>r.toggleMark(this.name),unsetUnderline:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),pre=hs.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:r=>r.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["span",pn(this.options.HTMLAttributes,r),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:r,commands:e})=>{const n=cf(r,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),gre=mr.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:r=>{var e;return(e=r.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:r=>r.color?{style:`color: ${r.color}`}:{}}}}]},addCommands(){return{setColor:r=>({chain:e})=>e().setMark("textStyle",{color:r}).run(),unsetColor:()=>({chain:r})=>r().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),mre=pe({name:"DialogNode",setup(){const{t:r,tm:e,rt:n}=cn();return{t:r,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:"",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,robotType:"",editor:null}},mounted(){const r=this.getNode(),e=r.getData();if(sr(e,this.nodeData),this.setPreview(),this.nodeData.newNode){this.nodeData.nodeName+=e.nodeCnt.toString();const s=Ul();s.branchType="GotoAnotherNode",this.nodeData.branches.push(s);const o=this.$refs.nodeName.offsetHeight+this.$refs.nodeAnswer.offsetHeight+20,i=this.$refs.nodeName.offsetWidth-15;this.getNode().addPort({group:"absolute",args:{x:i,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,r.setData(this.nodeData,{silent:!1})}this.validate(),r.on("change:data",({current:s})=>{this.nodeSetFormVisible=!0}),tt(()=>{this.setPortPos()});const{robotId:n}=Ve("robotId");this.robotType=nJ(n),this.robotType=="TextBot"&&(this.editor=new dne({extensions:[gre,fre,hre,pre],content:this.nodeData.dialogText,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 r=this.nodeData,e=r.invalidMessages;e.splice(0,e.length),r.nodeName||e.push(this.tm("lang.dialogNode.errors")[0]),r.dialogText.length<1&&e.push(this.tm("lang.dialogNode.errors")[1]),r.dialogText.length>200&&e.push(this.tm("lang.dialogNode.errors")[2]),r.valid=e.length==0},getTextWidth(){return this.$refs.nodeAnswer.offsetWidth},setPreview(){let r=this.nodeData.dialogText.replace(/<[^>]+>/g,"").replace(/\r/g,"");if(r){const e=r.split(` -`);e.length>3&&e.splice(3,e.length-3,"......");const n=this.getNode();e.forEach(function(s,o,i){if(this.$refs.nodeAnswer.getBoundingClientRect().width>n.size().width){const l=(this.$refs.nodeAnswer.scrollWidth-n.size().width)/n.size().width;i[o]=s.substring(0,Math.floor(l*s.length)-5)+"..."}},this),r=e.join(` -`),tt(()=>{this.setPortPos()})}this.preview=r},setPortPos(){const r=this.getNode(),e=r.getPortAt(0),n=this.$refs.nodeName.offsetHeight+this.$refs.nodeAnswer.offsetHeight+20;r.setPortProp(e.id,["args","y"],n),r.resize(r.size().width,20+n,{direction:"bottom"})},saveForm(){let r="";for(let o=0;o0&&(this.lastEditRange=r.getRangeAt(0))},async showVarsForm(){let r=await rt("GET","variable",null,null,null);r&&r.status==200&&r.data&&(this.vars=r.data),this.varDialogVisible=!0},insertVar(){this.nodeData.dialogText+="`"+this.selectedVar+"`",this.varDialogVisible=!1},changeEditorNote(){if(this.nodeData.dialogText)if(this.textEditor=="1")Vr.confirm("Switch to plain text and all styles will be lost. Whether to continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{const r=this.nodeData.dialogText.replace(/<\/p>/g,` -`).trim(),e=/(<([^>]+)>)/ig;this.nodeData.dialogText=r.replace(e,"")}).catch(()=>{this.textEditor="2"});else{const r="

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

")+"

";this.$refs.editor.setContent(r)}}},components:{EpPlus:Bu,EpWarning:ma,EditorContent:fne,BubbleMenu:une},props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],watch:{modelValue(r){this.editor.getHTML()!==r&&this.editor.commands.setContent(r,!1)}}}),bre={class:"nodeBox"},vre={ref:"nodeName",class:"nodeTitle"},yre={key:2,class:"menubar"},wre=["value"],Cre={class:"demo-drawer__footer"},Sre={class:"dialog-footer"};function xre(r,e,n,s,o,i){const l=Pt("EpWarning"),a=dt,c=gs,u=Sn,d=lr,f=Pt("bubble-menu"),h=Pt("editor-content"),p=Pt("EpPlus"),g=Pn,m=ei,v=Qo,b=ir,C=Zo,y=ll;return N(),X("div",bre,[H("div",vre,[le(oe(r.nodeData.nodeName)+" ",1),Ue(H("span",null,[T(c,{class:"box-item",effect:"dark",content:r.nodeData.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:O(()=>[T(a,{color:"red",size:"16"},{default:O(()=>[T(l)]),_:1})]),_:1},8,["content"])],512),[[st,r.nodeData.invalidMessages.length>0]])],512),H("div",{ref:"nodeAnswer",style:{"white-space":"pre-wrap","font-size":"12px"}},oe(r.preview),513),T(C,{modelValue:r.nodeSetFormVisible,"onUpdate:modelValue":e[25]||(e[25]=w=>r.nodeSetFormVisible=w),title:r.nodeData.nodeName,direction:"rtl",size:"72%","append-to-body":!0,"destroy-on-close":!0},{default:O(()=>[T(b,{model:r.nodeData},{default:O(()=>[T(d,{label:r.t("lang.common.nodeName"),"label-width":r.formLabelWidth},{default:O(()=>[T(u,{modelValue:r.nodeData.nodeName,"onUpdate:modelValue":e[0]||(e[0]=w=>r.nodeData.nodeName=w),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),T(d,{label:r.t("lang.dialogNode.form.label"),"label-width":r.formLabelWidth},{default:O(()=>[r.editor==null||r.robotType!="TextBot"?(N(),ye(u,{key:0,ref:"textArea",modelValue:r.nodeData.dialogText,"onUpdate:modelValue":e[1]||(e[1]=w=>r.nodeData.dialogText=w),type:"textarea",onBlur:r.getSel},null,8,["modelValue","onBlur"])):ve("",!0),r.editor&&r.robotType=="TextBot"?(N(),ye(f,{key:1,id:"bubbleMenu",editor:r.editor,"tippy-options":{duration:100}},{default:O(()=>[H("button",{type:"button",class:Y(["inactive",{"is-active":r.editor.isActive("bold")}]),onClick:e[2]||(e[2]=w=>r.editor.chain().focus().toggleBold().run())}," bold ",2),H("button",{type:"button",class:Y(["inactive",{"is-active":r.editor.isActive("italic")}]),onClick:e[3]||(e[3]=w=>r.editor.chain().focus().toggleItalic().run())}," italic ",2),H("button",{type:"button",class:Y(["inactive",{"is-active":r.editor.isActive("strike")}]),onClick:e[4]||(e[4]=w=>r.editor.chain().focus().toggleStrike().run())}," strike ",2)]),_:1},8,["editor"])):ve("",!0),r.editor&&r.robotType=="TextBot"?(N(),X("div",yre,[H("button",{type:"button",class:Y({"is-active":r.editor.isActive("bold")}),onClick:e[5]||(e[5]=w=>r.editor.chain().focus().toggleBold().run())}," B ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("italic")}),onClick:e[6]||(e[6]=w=>r.editor.chain().focus().toggleItalic().run())}," I ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("strike")}),onClick:e[7]||(e[7]=w=>r.editor.chain().focus().toggleStrike().run())}," S ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("underline")}),onClick:e[8]||(e[8]=w=>r.editor.chain().focus().toggleUnderline().run())}," Underline ",2),H("input",{type:"color",onInput:e[9]||(e[9]=w=>r.editor.chain().focus().setColor(w.target.value).run()),value:r.editor.getAttributes("textStyle").color},null,40,wre),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("code")}),onClick:e[10]||(e[10]=w=>r.editor.chain().focus().toggleCode().run())}," Code ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("heading",{level:1})}),onClick:e[11]||(e[11]=w=>r.editor.chain().focus().toggleHeading({level:1}).run())}," H1 ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("heading",{level:2})}),onClick:e[12]||(e[12]=w=>r.editor.chain().focus().toggleHeading({level:2}).run())}," H2 ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("heading",{level:3})}),onClick:e[13]||(e[13]=w=>r.editor.chain().focus().toggleHeading({level:3}).run())}," H3 ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("bulletList")}),onClick:e[14]||(e[14]=w=>r.editor.chain().focus().toggleBulletList().run())}," Ul ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("orderedList")}),onClick:e[15]||(e[15]=w=>r.editor.chain().focus().toggleOrderedList().run())}," Ol ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("blockquote")}),onClick:e[16]||(e[16]=w=>r.editor.chain().focus().toggleBlockquote().run())}," Quote ",2),H("button",{type:"button",class:Y({"is-active":r.editor.isActive("codeBlock")}),onClick:e[17]||(e[17]=w=>r.editor.chain().focus().toggleCodeBlock().run())}," CodeBlock ",2),H("button",{type:"button",onClick:e[18]||(e[18]=w=>r.editor.chain().focus().setHorizontalRule().run())}," HR "),H("button",{type:"button",onClick:e[19]||(e[19]=w=>r.editor.chain().focus().undo().run())}," Undo "),H("button",{type:"button",onClick:e[20]||(e[20]=w=>r.editor.chain().focus().redo().run())}," Redo ")])):ve("",!0),r.editor&&r.robotType=="TextBot"?(N(),ye(h,{key:3,editor:r.editor,style:{width:"100%",border:"#e5e9f2 1px solid"},modelValue:r.nodeData.dialogText,"onUpdate:modelValue":e[21]||(e[21]=w=>r.nodeData.dialogText=w)},null,8,["editor","modelValue"])):ve("",!0)]),_:1},8,["label","label-width"]),T(d,{label:"","label-width":r.formLabelWidth},{default:O(()=>[T(g,{link:"",onClick:r.showVarsForm},{default:O(()=>[T(a,null,{default:O(()=>[T(p)]),_:1}),le(" "+oe(r.t("lang.dialogNode.form.addVar")),1)]),_:1},8,["onClick"])]),_:1},8,["label-width"]),T(d,{label:r.t("lang.dialogNode.form.nextStep"),"label-width":r.formLabelWidth},{default:O(()=>[T(v,{modelValue:r.nodeData.nextStep,"onUpdate:modelValue":e[22]||(e[22]=w=>r.nodeData.nextStep=w),placeholder:r.t("lang.dialogNode.form.choose")},{default:O(()=>[(N(!0),X(De,null,Ot(r.nextSteps,w=>(N(),ye(m,{key:w.label,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","label-width"])]),_:1},8,["model"]),H("div",Cre,[T(g,{type:"primary",loading:r.loading,onClick:e[23]||(e[23]=w=>r.saveForm())},{default:O(()=>[le(oe(r.t("lang.common.save")),1)]),_:1},8,["loading"]),T(g,{onClick:e[24]||(e[24]=w=>r.hideForm())},{default:O(()=>[le(oe(r.t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"]),T(y,{modelValue:r.varDialogVisible,"onUpdate:modelValue":e[28]||(e[28]=w=>r.varDialogVisible=w),title:r.t("lang.dialogNode.var.title"),width:"30%","append-to-body":!0,"destroy-on-close":!0},{footer:O(()=>[H("span",Sre,[T(g,{type:"primary",onClick:r.insertVar},{default:O(()=>[le(oe(r.t("lang.common.insert")),1)]),_:1},8,["onClick"]),T(g,{onClick:e[27]||(e[27]=w=>r.varDialogVisible=!1)},{default:O(()=>[le(oe(r.t("lang.common.cancel")),1)]),_:1})])]),default:O(()=>[T(v,{modelValue:r.selectedVar,"onUpdate:modelValue":e[26]||(e[26]=w=>r.selectedVar=w),class:"m-2",placeholder:r.t("lang.dialogNode.var.choose"),size:"large"},{default:O(()=>[(N(!0),X(De,null,Ot(r.vars,w=>(N(),ye(m,{key:w.varName,label:w.varName,value:w.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["modelValue","title"])])}const Ere=Hs(mre,[["render",xre],["__scopeId","data-v-a74fd6be"]]),Tre={class:"nodeBox"},_re={class:"demo-drawer__footer"},zx="90px",Ore={__name:"EndNode",setup(r){const{t:e,tm:n,rt:s}=cn(),o=j(!1),i=St({nodeName:"The end",endingText:"",valid:!1,invalidMessages:[],newNode:!0}),l=j(),a=Ve("getNode");a().on("change:data",({current:p})=>{o.value=!0}),nt(async()=>{const g=a().getData();sr(g,i),i.newNode&&(i.nodeName+=g.nodeCnt.toString(),i.newNode=!1),u()});function u(){const p=i,g=p.invalidMessages;g.splice(0,g.length),p.endingText&&p.endingText.length>1e4&&g.push(""),p.valid=g.length==0}function d(){o.value=!1}const f=j();function h(){const p=a();u(),p.setData(i,{silent:!1}),d();const g=l.value.offsetHeight+f.value.offsetHeight;p.resize(p.size().width,20+g,{direction:"bottom"})}return(p,g)=>{const m=dt,v=gs,b=Sn,C=lr,y=ir,w=Pn,x=Zo;return N(),X("div",Tre,[H("div",{ref_key:"nodeName",ref:l,class:"nodeTitle"},[le(oe(i.nodeName)+" ",1),Ue(H("span",null,[T(v,{class:"box-item",effect:"dark",content:i.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:O(()=>[T(m,{color:"red",size:"16"},{default:O(()=>[T(S(ma))]),_:1})]),_:1},8,["content"])],512),[[st,i.invalidMessages.length>0]])],512),H("div",{ref_key:"nodeAnswer",ref:f,style:{"white-space":"pre-wrap","font-size":"12px"}},oe(i.endingText),513),T(x,{modelValue:o.value,"onUpdate:modelValue":g[4]||(g[4]=E=>o.value=E),title:i.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:O(()=>[T(y,{"label-position":p.labelPosition,"label-width":"100px",model:i,style:{"max-width":"460px"}},{default:O(()=>[T(C,{label:S(e)("lang.common.nodeName"),"label-width":zx},{default:O(()=>[T(b,{modelValue:i.nodeName,"onUpdate:modelValue":g[0]||(g[0]=E=>i.nodeName=E)},null,8,["modelValue"])]),_:1},8,["label"]),T(C,{label:"Ending text","label-width":zx},{default:O(()=>[T(b,{modelValue:i.endingText,"onUpdate:modelValue":g[1]||(g[1]=E=>i.endingText=E),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["label-position","model"]),H("div",_re,[T(w,{type:"primary",loading:p.loading,onClick:g[2]||(g[2]=E=>h())},{default:O(()=>[le(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),T(w,{onClick:g[3]||(g[3]=E=>d())},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Are=Hs(Ore,[["__scopeId","data-v-42225c28"]]),Mre={class:"nodeBox"},kre={class:"nodeTitle"},pu="110px",Pre={__name:"GotoNode",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Ve("getNode"),{subflowNames:i,updateSubFlowNames:l}=Ve("subFlowNamesFn"),a=j(!1),c=j([]),u=j([]),d=n("lang.gotoNode.types"),f=[{label:d[1],value:"GotoMainFlow",disabled:!1},{label:d[2],value:"GotoSubFlow",disabled:!1},{label:d[3],value:"GotoExternalLink",disabled:!1}],h=St({nodeName:e("lang.gotoNode.nodeName"),brief:"",gotoType:"",gotoMainFlowId:"",gotoSubFlowName:"",gotoSubFlowId:"",externalLink:"",valid:!1,invalidMessages:[],newNode:!0}),p=j(!1);o().on("change:data",({current:x})=>{a.value=!0}),nt(async()=>{const E=o().getData();sr(E,h),g(h.goToType),h.newNode&&(h.nodeName+=E.nodeCnt.toString()),h.newNode=!1,b();const _=await rt("GET","mainflow",null,null,null);_.status==200&&(c.value=_.data),E.gotoSubFlowId&&await m(E.gotoMainFlowId)});async function g(x){x=="GotoMainFlow"||x=="GotoSubFlow"&&(u.value=l(),p.value=!0)}async function m(x){if(x){const E=await rt("GET","subflow/simple",{mainFlowId:x,data:""},null,null);E.status==200&&(u.value=E.data)}else u.value=l();p.value=!0}const v=n("lang.gotoNode.errors");function b(){const x=h,E=x.invalidMessages;E.splice(0,E.length),x.nodeName||E.push(v[0]),x.gotoType||E.push(v[1]),x.gotoType=="GotoSubFlow"&&!x.gotoSubFlowId&&E.push(v[2]),x.gotoType=="GotoExternalLink"&&!x.externalLink&&E.push(v[3]),x.valid=E.length==0}function C(){a.value=!1}const y=n("lang.gotoNode.briefs");function w(){if(h.brief=y[0]+": ",h.gotoType=="Terminate")h.brief+=y[1];else if(h.gotoType=="GotoMainFlow"){h.brief+=y[4]+` -`;for(let E=0;E{const _=dt,M=gs,A=Sn,k=lr,P=ei,$=Qo,B=ir,W=Pn,I=Zo;return N(),X("div",Mre,[H("div",kre,[le(oe(h.nodeName)+" ",1),Ue(H("span",null,[T(M,{class:"box-item",effect:"dark",content:h.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:O(()=>[T(_,{color:"red",size:"16"},{default:O(()=>[T(S(ma))]),_:1})]),_:1},8,["content"])],512),[[st,h.invalidMessages.length>0]])]),H("div",null,oe(h.brief),1),a.value?(N(),ye(I,{key:0,modelValue:a.value,"onUpdate:modelValue":E[7]||(E[7]=R=>a.value=R),title:h.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:O(()=>[T(B,{"label-position":x.labelPosition,"label-width":"70px",model:h,style:{"max-width":"700px"}},{default:O(()=>[T(k,{label:S(e)("lang.common.nodeName"),"label-width":pu},{default:O(()=>[T(A,{modelValue:h.nodeName,"onUpdate:modelValue":E[0]||(E[0]=R=>h.nodeName=R)},null,8,["modelValue"])]),_:1},8,["label"]),T(k,{label:S(e)("lang.gotoNode.gotoType"),"label-width":pu},{default:O(()=>[T($,{modelValue:h.gotoType,"onUpdate:modelValue":E[1]||(E[1]=R=>h.gotoType=R),placeholder:S(e)("lang.gotoNode.gotoTypePH"),onChange:g},{default:O(()=>[(N(),X(De,null,Ot(f,R=>T(P,{key:R.label,label:R.label,value:R.value,disabled:R.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Ue(H("div",null,[T(k,{label:S(e)("lang.gotoNode.gotoMainFlow"),"label-width":pu},{default:O(()=>[T($,{modelValue:h.gotoMainFlowId,"onUpdate:modelValue":E[2]||(E[2]=R=>h.gotoMainFlowId=R),placeholder:S(e)("lang.gotoNode.gotoMainFlowPH"),onChange:m},{default:O(()=>[(N(!0),X(De,null,Ot(c.value,R=>(N(),ye(P,{key:R.id,label:R.name,value:R.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[st,h.gotoType==="GotoMainFlow"]]),Ue(H("div",null,[T(k,{label:S(e)("lang.gotoNode.gotoSubFlow"),"label-width":pu},{default:O(()=>[T($,{modelValue:h.gotoSubFlowId,"onUpdate:modelValue":E[3]||(E[3]=R=>h.gotoSubFlowId=R),placeholder:S(e)("lang.gotoNode.gotoSubFlowPH")},{default:O(()=>[(N(!0),X(De,null,Ot(u.value,R=>(N(),ye(P,{key:R.id,label:R.name,value:R.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[st,p.value]]),Ue(H("div",null,[T(k,{label:S(e)("lang.gotoNode.externalLink"),"label-width":pu},{default:O(()=>[T(A,{modelValue:h.externalLink,"onUpdate:modelValue":E[4]||(E[4]=R=>h.externalLink=R)},null,8,["modelValue"])]),_:1},8,["label"])],512),[[st,h.gotoType==="GotoExternalLink"]])]),_:1},8,["label-position","model"]),H("div",null,[T(W,{type:"primary",loading:x.loading,onClick:E[5]||(E[5]=R=>w())},{default:O(()=>[le(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),T(W,{onClick:E[6]||(E[6]=R=>C())},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):ve("",!0)])}}},Nre=Hs(Pre,[["__scopeId","data-v-e844225f"]]),f0=r=>(Fd("data-v-cfe08cad"),r=r(),Bd(),r),Ire={class:"nodeBox"},Lre=f0(()=>H("div",null,[H("strong",null,"Please note"),le(" that this is just calling the interface, but the returned data will be ignored.")],-1)),Rre=f0(()=>H("div",null,"If you need to obtain data, please create a variable and select a certain interface as the source of the data.",-1)),$re=f0(()=>H("div",null,"Checkout tutorial.",-1)),Dre={class:"demo-drawer__footer"},Im="100px",Vre={__name:"ExternalHttpNode",setup(r){const{t:e,tm:n,rt:s}=cn(),o=j(!1),i=Ve("getNode"),{robotId:l}=Ve("robotId"),a=i(),c=St([]),u=j(),d=j(),f=St({nodeName:"ExternalHttpNode",httpApiName:"",httpApiId:"",valid:!1,invalidMessages:[],newNode:!0,branches:[]}),h=()=>{const v=f,b=v.invalidMessages;b.splice(0,b.length),(f.httpApiName==""||f.httpApiId=="")&&b.push("Please choose a HTTP interface"),i().getPortAt(0).id==""&&b.push('Please connect "Next" to another node'),v.valid=b.length==0},p=()=>{const v=i().getPortAt(0),b=f.branches[0];b.branchName="Next",b.branchId=v.id,h(),a.setData(f,{silent:!1}),m()},g=v=>{for(var b in c)if(c[b].id==v){f.httpApiName=c[b].name;break}},m=()=>{o.value=!1};return a.on("change:data",({current:v})=>{o.value=!0}),nt(async()=>{const v=await rt("GET","external/http",{robotId:l},null,null);if(v.status==200)for(var b in v.data)v.data.hasOwnProperty(b)&&c.push(v.data[b]);a.addPort({group:"absolute",args:{x:u.value.offsetWidth-15,y:u.value.offsetHeight+50},attrs:{text:{text:"Next",fontSize:12}}}),f.branches.push(Ul())}),(v,b)=>{const C=dt,y=gs,w=Sn,x=lr,E=ei,_=Qo,M=Uy,A=ir,k=Pn,P=Zo;return N(),X("div",Ire,[H("div",{ref_key:"nodeName",ref:u,class:"nodeTitle"},[le(oe(f.nodeName)+" ",1),Ue(H("span",null,[T(y,{class:"box-item",effect:"dark",content:f.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:O(()=>[T(C,{color:"red",size:"16"},{default:O(()=>[T(S(ma))]),_:1})]),_:1},8,["content"])],512),[[st,f.invalidMessages.length>0]])],512),H("div",null,"Call Http: "+oe(f.httpApiName),1),T(P,{modelValue:o.value,"onUpdate:modelValue":b[5]||(b[5]=$=>o.value=$),title:f.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:O(()=>[T(A,{"label-position":v.labelPosition,"label-width":"70px",model:f,style:{"max-width":"850px"}},{default:O(()=>[T(x,{label:S(e)("lang.common.nodeName"),"label-width":Im},{default:O(()=>[T(w,{modelValue:f.nodeName,"onUpdate:modelValue":b[0]||(b[0]=$=>f.nodeName=$)},null,8,["modelValue"])]),_:1},8,["label"]),T(x,{label:"HTTP APIs","label-width":Im},{default:O(()=>[T(_,{ref_key:"apisRef",ref:d,modelValue:f.httpApiId,"onUpdate:modelValue":b[1]||(b[1]=$=>f.httpApiId=$),placeholder:"Choose an http interface",onChange:b[2]||(b[2]=$=>g($))},{default:O(()=>[(N(!0),X(De,null,Ot(c,$=>(N(),ye(E,{key:$.id,label:$.name,value:$.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),T(x,{label:"","label-width":Im},{default:O(()=>[T(M,{size:"large"},{default:O(()=>[Lre,Rre,$re]),_:1})]),_:1})]),_:1},8,["label-position","model"]),H("div",Dre,[T(k,{type:"primary",loading:v.loading,onClick:b[3]||(b[3]=$=>p())},{default:O(()=>[le(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),T(k,{onClick:b[4]||(b[4]=$=>m())},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Fre=Hs(Vre,[["__scopeId","data-v-cfe08cad"]]),Bre=r=>(Fd("data-v-abe7dc58"),r=r(),Bd(),r),zre={class:"nodeBox"},jre=["checked"],Hre=Bre(()=>H("label",{for:"_asyncSend_"},"Send asynchronously",-1)),Ure={class:"demo-drawer__footer"},Wre={__name:"SendEmailNode",setup(r){const{t:e,tm:n}=cn(),s=St({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 i=j(),l=j(""),a=j(""),c=j(!1),u=Ve("getNode"),d=u(),f=[];d.on("change:data",({current:v})=>{c.value=!0}),nt(async()=>{const v=d.getData();sr(v,s),s.newNode?(s.nodeName+=v.nodeCnt.toString(),h(),s.newNode=!1):o=s.asyncSend;let b=await rt("GET","variable",null,null,null);b&&b.status==200&&b.data&&(f.splice(0,f.length),b.data.forEach(function(C,y,w){this.push({label:C.varName,value:C.varName})},f)),b=await rt("GET","management/settings",null,null,null),b&&b.status==200&&b.data&&(l.value=b.data.smtpHost,a.value=b.data.emailVerificationRegex),p()});const h=()=>{d.removePorts();const v=i.value.offsetHeight+50,b=i.value.offsetWidth-15;s.asyncSend?d.addPort({group:"absolute",args:{x:b,y:v},attrs:{text:{text:n("lang.dialogNode.nextSteps")[1],fontSize:12}}}):(d.addPort({group:"absolute",args:{x:b,y:v},attrs:{text:{text:n("lang.collectNode.branches")[0],fontSize:12}}}),d.addPort({group:"absolute",args:{x:b,y:v+20},attrs:{text:{text:n("lang.collectNode.branches")[1],fontSize:12}}}),d.resize(d.size().width,40+v,{direction:"bottom"}))},p=()=>{const v=s,b=v.invalidMessages;b.splice(0,b.length),l.value||b.push("SMTP host is not configured"),v.nodeName||b.push("Need to fill in the node name");const C=new RegExp(a.value);v.to?v.to.split(";").forEach(function(y){y.match(C)?v.toRecipients.push(y):b.push(y+" is not a valid email format")}):b.push("Need to fill in the email recipient"),v.cc&&v.cc.split(";").forEach(function(y){y.match(C)?v.ccRecipients.push(y):b.push(y+" is not a valid email format")}),v.bcc&&v.bcc.split(";").forEach(function(y){y.match(C)?v.bccRecipients.push(y):b.push(y+" is not a valid email format")}),v.subject||b.push("Need to fill in the email subject"),v.content||b.push("Need to fill in the email content"),(v.branches==null||v.branches.length==0)&&b.push("Wrong node branch information"),v.valid=b.length==0},g=()=>{o!=s.asyncSend&&(o=s.asyncSend,h());const v=u(),b=v.getPorts();s.branches.splice(0,s.branches.length);for(let C=0;C1?"EmailSentSuccessfully":"GotoAnotherNode",s.branches.push(y)}p(),v.setData(s,{silent:!1}),m()},m=()=>{c.value=!1};return(v,b)=>{const C=dt,y=gs,w=Sn,x=lr,E=tA,_=$y,M=ir,A=Pn,k=Zo;return N(),X("div",zre,[H("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[le(oe(s.nodeName)+" ",1),Ue(H("span",null,[T(y,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:O(()=>[T(C,{color:"yellow",size:"16"},{default:O(()=>[T(S(ma))]),_:1})]),_:1},8,["content"])],512),[[st,s.invalidMessages.length>0]])],512),H("div",null,"To: "+oe(s.to),1),H("div",null,"Subject: "+oe(s.subject),1),T(k,{modelValue:c.value,"onUpdate:modelValue":b[11]||(b[11]=P=>c.value=P),title:s.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:O(()=>[T(M,{"label-position":v.labelPosition,"label-width":"100px",model:s,style:{"max-width":"500px"}},{default:O(()=>[T(x,{label:S(e)("lang.common.nodeName")},{default:O(()=>[T(w,{modelValue:s.nodeName,"onUpdate:modelValue":b[0]||(b[0]=P=>s.nodeName=P)},null,8,["modelValue"])]),_:1},8,["label"]),T(x,{label:"From","label-width":v.formLabelWidth},{default:O(()=>[T(w,{modelValue:s.from,"onUpdate:modelValue":b[1]||(b[1]=P=>s.from=P),placeholder:""},null,8,["modelValue"])]),_:1},8,["label-width"]),T(x,{label:"To"},{default:O(()=>[T(w,{modelValue:s.to,"onUpdate:modelValue":b[2]||(b[2]=P=>s.to=P),placeholder:""},null,8,["modelValue"])]),_:1}),T(x,{label:""},{default:O(()=>[le(" Separate multiple recipients with semicolons ")]),_:1}),T(x,{label:"Cc"},{default:O(()=>[T(w,{modelValue:s.cc,"onUpdate:modelValue":b[3]||(b[3]=P=>s.cc=P),placeholder:""},null,8,["modelValue"])]),_:1}),T(x,{label:"Bcc"},{default:O(()=>[T(w,{modelValue:s.bcc,"onUpdate:modelValue":b[4]||(b[4]=P=>s.bcc=P),placeholder:""},null,8,["modelValue"])]),_:1}),T(x,{label:"Subject"},{default:O(()=>[T(w,{modelValue:s.subject,"onUpdate:modelValue":b[5]||(b[5]=P=>s.subject=P),placeholder:""},null,8,["modelValue"])]),_:1}),T(x,{label:"Content"},{default:O(()=>[T(w,{modelValue:s.content,"onUpdate:modelValue":b[6]||(b[6]=P=>s.content=P),rows:2,type:"textarea",placeholder:"Please input"},null,8,["modelValue"])]),_:1}),T(x,{label:"Content type"},{default:O(()=>[T(_,{modelValue:s.contentType,"onUpdate:modelValue":b[7]||(b[7]=P=>s.contentType=P),class:"ml-4"},{default:O(()=>[T(E,{label:"TextHtml",size:"large"},{default:O(()=>[le("text/html")]),_:1}),T(E,{label:"TextPlain",size:"large"},{default:O(()=>[le("text/plain")]),_:1})]),_:1},8,["modelValue"])]),_:1}),T(x,{label:""},{default:O(()=>[Ue(H("input",{type:"checkbox",id:"_asyncSend_","onUpdate:modelValue":b[8]||(b[8]=P=>s.asyncSend=P),checked:s.asyncSend},null,8,jre),[[zi,s.asyncSend]]),Hre]),_:1})]),_:1},8,["label-position","model"]),H("div",Ure,[T(A,{type:"primary",loading:v.loading,onClick:b[9]||(b[9]=P=>g())},{default:O(()=>[le(oe(S(e)("lang.common.save")),1)]),_:1},8,["loading"]),T(A,{onClick:b[10]||(b[10]=P=>m())},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},qre=Hs(Wre,[["__scopeId","data-v-abe7dc58"]]);typeof window=="object"&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);typeof window<"u"&&function(r){r.forEach(e=>{Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value(...n){const s=document.createDocumentFragment();n.forEach(o=>{const i=o instanceof Node;s.appendChild(i?o:document.createTextNode(String(o)))}),this.appendChild(s)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);class zo{get disposed(){return this._disposed===!0}dispose(){this._disposed=!0}}(function(r){function e(){return(n,s,o)=>{const i=o.value,l=n.__proto__;o.value=function(...a){this.disposed||(i.call(this,...a),l.dispose.call(this))}}}r.dispose=e})(zo||(zo={}));class jx{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(r){function e(n){const s=new r;return n.forEach(o=>{s.add(o)}),s}r.from=e})(jx||(jx={}));function vk(r,e,n){if(n)switch(n.length){case 0:return r.call(e);case 1:return r.call(e,n[0]);case 2:return r.call(e,n[0],n[1]);case 3:return r.call(e,n[0],n[1],n[2]);case 4:return r.call(e,n[0],n[1],n[2],n[3]);case 5:return r.call(e,n[0],n[1],n[2],n[3],n[4]);case 6:return r.call(e,n[0],n[1],n[2],n[3],n[4],n[5]);default:return r.apply(e,n)}return r.call(e)}function ht(r,e,...n){return vk(r,e,n)}function Gre(r){return typeof r=="object"&&r.then&&typeof r.then=="function"}function Hx(r){return r!=null&&(r instanceof Promise||Gre(r))}function yk(...r){const e=[];if(r.forEach(s=>{Array.isArray(s)?e.push(...s):e.push(s)}),e.some(s=>Hx(s))){const s=e.map(o=>Hx(o)?o:Promise.resolve(o!==!1));return Promise.all(s).then(o=>o.reduce((i,l)=>l!==!1&&i,!0))}return e.every(s=>s!==!1)}function Lm(r,e){const n=[];for(let s=0;s(this.off(e,o),Lm([n,s],i));return this.on(e,o,this)}off(e,n,s){if(!(e||n||s))return this.listeners={},this;const o=this.listeners;return(e?[e]:Object.keys(o)).forEach(l=>{const a=o[l];if(a){if(!(n||s)){delete o[l];return}for(let c=a.length-2;c>=0;c-=2)n&&a[c]!==n||s&&a[c+1]!==s||a.splice(c,2)}}),this}trigger(e,...n){let s=!0;if(e!=="*"){const i=this.listeners[e];i!=null&&(s=Lm([...i],n))}const o=this.listeners["*"];return o!=null?yk([s,Lm([...o],[e,...n])]):s}emit(e,...n){return this.trigger(e,...n)}}function Yre(r,...e){e.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(r.prototype,s,Object.getOwnPropertyDescriptor(n.prototype,s))})})}const Jre=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])};function Xre(r,e){Jre(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}class Zre{}const Qre=/^\s*class\s+/.test(`${Zre}`)||/^\s*class\s*\{/.test(`${class{}}`);function h0(r,e){let n;return Qre?n=class extends e{}:(n=function(){return e.apply(this,arguments)},Xre(n,e)),Object.defineProperty(n,"name",{value:r}),n}function Ux(r){return r==="__proto__"}function p0(r,e,n="/"){let s;const o=Array.isArray(e)?e:e.split(n);if(o.length)for(s=r;o.length;){const i=o.shift();if(Object(s)===s&&i&&i in s)s=s[i];else return}return s}function nu(r,e,n,s="/"){const o=Array.isArray(e)?e:e.split(s),i=o.pop();if(i&&!Ux(i)){let l=r;o.forEach(a=>{Ux(a)||(l[a]==null&&(l[a]={}),l=l[a])}),l[i]=n}return r}function Wx(r,e,n="/"){const s=Array.isArray(e)?e.slice():e.split(n),o=s.pop();if(o)if(s.length>0){const i=p0(r,s);i&&delete i[o]}else delete r[o];return r}var ese=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class Fr extends Kre{dispose(){this.off()}}ese([zo.dispose()],Fr.prototype,"dispose",null);(function(r){r.dispose=zo.dispose})(Fr||(Fr={}));Yre(Fr,zo);const wk=r=>{const e=Object.create(null);return n=>e[n]||(e[n]=r(n))},Ck=wk(r=>r.replace(/\B([A-Z])/g,"-$1").toLowerCase()),g0=wk(r=>D5(Up(r)).replace(/ /g,""));function Rm(r){let e=2166136261,n=!1,s=r;for(let o=0,i=s.length;o127&&!n&&(s=unescape(encodeURIComponent(s)),l=s.charCodeAt(o),n=!0),e^=l,e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24)}return e>>>0}function sp(){let r="";const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let n=0,s=e.length;nn?a-n:1,d=e.length>n+a?n+a:e.length;o[0]=a;let f=a;for(let p=1;pn)return;const h=s;s=o,o=h}const l=s[e.length];return l>n?void 0:l}function jo(r){return typeof r=="string"&&r.slice(-1)==="%"}function Ns(r,e){if(r==null)return 0;let n;if(typeof r=="string"){if(n=parseFloat(r),jo(r)&&(n/=100,Number.isFinite(n)))return n*e}else n=r;return Number.isFinite(n)?n>0&&n<1?n*e:n:0}function la(r){if(typeof r=="object"){let n=0,s=0,o=0,i=0;return r.vertical!=null&&Number.isFinite(r.vertical)&&(s=i=r.vertical),r.horizontal!=null&&Number.isFinite(r.horizontal)&&(o=n=r.horizontal),r.left!=null&&Number.isFinite(r.left)&&(n=r.left),r.top!=null&&Number.isFinite(r.top)&&(s=r.top),r.right!=null&&Number.isFinite(r.right)&&(o=r.right),r.bottom!=null&&Number.isFinite(r.bottom)&&(i=r.bottom),{top:s,right:o,bottom:i,left:n}}let e=0;return r!=null&&Number.isFinite(r)&&(e=r),{top:e,right:e,bottom:e,left:e}}let m0=!1,Sk=!1,xk=!1,Ek=!1,Tk=!1,_k=!1,Ok=!1,Ak=!1,Mk=!1,kk=!1,Pk=!1,Nk=!1,Ik=!1,Lk=!1,Rk=!1,$k=!1;if(typeof navigator=="object"){const r=navigator.userAgent;m0=r.indexOf("Macintosh")>=0,Sk=!!r.match(/(iPad|iPhone|iPod)/g),xk=r.indexOf("Windows")>=0,Ek=r.indexOf("MSIE")>=0,Tk=!!r.match(/Trident\/7\./),_k=!!r.match(/Edge\//),Ok=r.indexOf("Mozilla/")>=0&&r.indexOf("MSIE")<0&&r.indexOf("Edge/")<0,Mk=r.indexOf("Chrome/")>=0&&r.indexOf("Edge/")<0,kk=r.indexOf("Opera/")>=0||r.indexOf("OPR/")>=0,Pk=r.indexOf("Firefox/")>=0,Nk=r.indexOf("AppleWebKit/")>=0&&r.indexOf("Chrome/")<0&&r.indexOf("Edge/")<0,typeof document=="object"&&($k=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||r.indexOf("Opera/")>=0)}typeof window=="object"&&(Ak=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,Lk=window.PointerEvent!=null&&!m0);if(typeof document=="object"){Ik="ontouchstart"in document.documentElement;try{const r=Object.defineProperty({},"passive",{get(){Rk=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",()=>{},r)}catch{}}var qi;(function(r){r.IS_MAC=m0,r.IS_IOS=Sk,r.IS_WINDOWS=xk,r.IS_IE=Ek,r.IS_IE11=Tk,r.IS_EDGE=_k,r.IS_NETSCAPE=Ok,r.IS_CHROME_APP=Ak,r.IS_CHROME=Mk,r.IS_OPERA=kk,r.IS_FIREFOX=Pk,r.IS_SAFARI=Nk,r.SUPPORT_TOUCH=Ik,r.SUPPORT_POINTER=Lk,r.SUPPORT_PASSIVE=Rk,r.NO_FOREIGNOBJECT=$k,r.SUPPORT_FOREIGNOBJECT=!r.NO_FOREIGNOBJECT})(qi||(qi={}));(function(r){function e(){const i=window.module;return i!=null&&i.hot!=null&&i.hot.status!=null?i.hot.status():"unkonwn"}r.getHMRStatus=e;function n(){return e()==="apply"}r.isApplyingHMR=n;const s={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function o(i){const l=document.createElement(s[i]||"div"),a=`on${i}`;let c=a in l;return c||(l.setAttribute(a,"return;"),c=typeof l[a]=="function"),c}r.isEventSupported=o})(qi||(qi={}));const b0=/[\t\r\n\f]/g,v0=/\S+/g,_c=r=>` ${r} `;function Oc(r){return r&&r.getAttribute&&r.getAttribute("class")||""}function df(r,e){if(r==null||e==null)return!1;const n=_c(Oc(r)),s=_c(e);return r.nodeType===1?n.replace(b0," ").includes(s):!1}function Nt(r,e){if(!(r==null||e==null)){if(typeof e=="function")return Nt(r,e(Oc(r)));if(typeof e=="string"&&r.nodeType===1){const n=e.match(v0)||[],s=_c(Oc(r)).replace(b0," ");let o=n.reduce((i,l)=>i.indexOf(_c(l))<0?`${i}${l} `:i,s);o=o.trim(),s!==o&&r.setAttribute("class",o)}}}function es(r,e){if(r!=null){if(typeof e=="function")return es(r,e(Oc(r)));if((!e||typeof e=="string")&&r.nodeType===1){const n=(e||"").match(v0)||[],s=_c(Oc(r)).replace(b0," ");let o=n.reduce((i,l)=>{const a=_c(l);return i.indexOf(a)>-1?i.replace(a," "):i},s);o=e?o.trim():"",s!==o&&r.setAttribute("class",o)}}}function Dk(r,e,n){if(!(r==null||e==null)){if(n!=null&&typeof e=="string"){n?Nt(r,e):es(r,e);return}if(typeof e=="function")return Dk(r,e(Oc(r),n),n);typeof e=="string"&&(e.match(v0)||[]).forEach(o=>{df(r,o)?es(r,o):Nt(r,o)})}}let qx=0;function rse(){return qx+=1,`v${qx}`}function y0(r){return(r.id==null||r.id==="")&&(r.id=rse()),r.id}function Gi(r){return r==null?!1:typeof r.getScreenCTM=="function"&&r instanceof SVGElement}const In={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"},Gx="1.1";function Kx(r,e=document){return e.createElement(r)}function w0(r,e=In.xhtml,n=document){return n.createElementNS(e,r)}function Us(r,e=document){return w0(r,In.svg,e)}function op(r){if(r){const n=`${r}`,{documentElement:s}=sse(n,{async:!1});return s}const e=document.createElementNS(In.svg,"svg");return e.setAttributeNS(In.xmlns,"xmlns:xlink",In.xlink),e.setAttribute("version",Gx),e}function sse(r,e={}){let n;try{const s=new DOMParser;if(e.async!=null){const o=s;o.async=e.async}n=s.parseFromString(r,e.mimeType||"text/xml")}catch{n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${r}`);return n}function ose(r,e=!0){const n=r.nodeName;return e?n.toLowerCase():n.toUpperCase()}function C0(r){let e=0,n=r.previousSibling;for(;n;)n.nodeType===1&&(e+=1),n=n.previousSibling;return e}function ise(r,e){return r.querySelectorAll(e)}function lse(r,e){return r.querySelector(e)}function Vk(r,e,n){const s=r.ownerSVGElement;let o=r.parentNode;for(;o&&o!==n&&o!==s;){if(df(o,e))return o;o=o.parentNode}return null}function Fk(r,e){const n=e&&e.parentNode;return r===n||!!(n&&n.nodeType===1&&r.compareDocumentPosition(n)&16)}function Ac(r){r&&(Array.isArray(r)?r:[r]).forEach(n=>{n.parentNode&&n.parentNode.removeChild(n)})}function ff(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function hf(r,e){(Array.isArray(e)?e:[e]).forEach(s=>{s!=null&&r.appendChild(s)})}function ase(r,e){const n=r.firstChild;return n?S0(n,e):hf(r,e)}function S0(r,e){const n=r.parentNode;n&&(Array.isArray(e)?e:[e]).forEach(o=>{o!=null&&n.insertBefore(o,r)})}function cse(r,e){e!=null&&e.appendChild(r)}function Yx(r){try{return r instanceof HTMLElement}catch{return typeof r=="object"&&r.nodeType===1&&typeof r.style=="object"&&typeof r.ownerDocument=="object"}}const Bk=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function use(r,e){return r.getAttribute(e)}function zk(r,e){const n=Hk(e);n.ns?r.hasAttributeNS(n.ns,n.local)&&r.removeAttributeNS(n.ns,n.local):r.hasAttribute(e)&&r.removeAttribute(e)}function x0(r,e,n){if(n==null)return zk(r,e);const s=Hk(e);s.ns&&typeof n=="string"?r.setAttributeNS(s.ns,e,n):e==="id"?r.id=`${n}`:r.setAttribute(e,`${n}`)}function jk(r,e){Object.keys(e).forEach(n=>{x0(r,n,e[n])})}function Ut(r,e,n){if(e==null){const s=r.attributes,o={};for(let i=0;i{const s=Bk.includes(n)?n:Ck(n);e[s]=r[n]}),e}function Kf(r){const e={};return r.split(";").forEach(s=>{const o=s.trim();if(o){const i=o.split("=");i.length&&(e[i[0].trim()]=i[1]?i[1].trim():"")}}),e}function uv(r,e){return Object.keys(e).forEach(n=>{if(n==="class")r[n]=r[n]?`${r[n]} ${e[n]}`:e[n];else if(n==="style"){const s=typeof r[n]=="object",o=typeof e[n]=="object";let i,l;s&&o?(i=r[n],l=e[n]):s?(i=r[n],l=Kf(e[n])):o?(i=Kf(r[n]),l=e[n]):(i=Kf(r[n]),l=Kf(e[n])),r[n]=uv(i,l)}else r[n]=e[n]}),r}function dse(r,e,n={}){const s=n.offset||0,o=[],i=[];let l,a,c=null;for(let u=0;u=p&&ud(null,u));return}const f=()=>{d(new Error(`Failed to load image: ${u}`))},h=window.FileReader?g=>{if(g.status===200){const m=new FileReader;m.onload=v=>{const b=v.target.result;d(null,b)},m.onerror=f,m.readAsDataURL(g.response)}else f()}:g=>{const m=v=>{const C=[];for(let y=0;yh(p)),p.send()}r.imageToDataUri=n;function s(u){let d=u.replace(/\s/g,"");d=decodeURIComponent(d);const f=d.indexOf(","),h=d.slice(0,f),p=h.split(":")[1].split(";")[0],g=d.slice(f+1);let m;h.indexOf("base64")>=0?m=atob(g):m=unescape(encodeURIComponent(g));const v=new Uint8Array(m.length);for(let b=0;b]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return d&&d[2]?d[2].replace(/\s+/," ").split(" "):null}function a(u){const d=parseFloat(u);return Number.isNaN(d)?null:d}function c(u,d={}){let f=null;const h=y=>(f==null&&(f=l(u)),f!=null?a(f[y]):null),p=y=>{const w=u.match(y);return w&&w[2]?a(w[2]):null};let g=d.width;if(g==null&&(g=p(/]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),g==null&&(g=h(2)),g==null)throw new Error("Can not parse width from svg string");let m=d.height;if(m==null&&(m=p(/]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),m==null&&(m=h(3)),m==null)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(u).replace(/'/g,"%27").replace(/"/g,"%22")}`}r.svgToDataUrl=c})(Jx||(Jx={}));let Pl;const hse={px(r){return r},mm(r){return Pl*r},cm(r){return Pl*r*10},in(r){return Pl*r*25.4},pt(r){return Pl*(25.4*r/72)},pc(r){return Pl*(25.4*r/6)}};var Xx;(function(r){function e(s,o,i){const l=document.createElement("div"),a=l.style;a.display="inline-block",a.position="absolute",a.left="-15000px",a.top="-15000px",a.width=s+(i||"px"),a.height=o+(i||"px"),document.body.appendChild(l);const c=l.getBoundingClientRect(),u={width:c.width||0,height:c.height||0};return document.body.removeChild(l),u}r.measure=e;function n(s,o){Pl==null&&(Pl=e("1","1","mm").width);const i=o?hse[o]:null;return i?i(s):s}r.toPx=n})(Xx||(Xx={}));const pse=/-(.)/g;function gse(r){return r.replace(pse,(e,n)=>n.toUpperCase())}const $m={},Zx=["webkit","ms","moz","o"],Uk=typeof document<"u"?document.createElement("div").style:{};function mse(r){for(let e=0;e{s[o]=eE(r,o)}),s}if(typeof e=="string"){if(n===void 0)return eE(r,e);Sse(r,e,n);return}for(const s in e)aa(r,s,e[s])}class ut{get[Symbol.toStringTag](){return ut.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}constructor(e,n,s){if(!e)throw new TypeError("Invalid element to create vector");let o;if(ut.isVector(e))o=e.node;else if(typeof e=="string")if(e.toLowerCase()==="svg")o=op();else if(e[0]==="<"){const i=op(e);o=document.importNode(i.firstChild,!0)}else o=document.createElementNS(In.svg,e);else o=e;this.node=o,n&&this.setAttributes(n),s&&this.append(s)}transform(e,n){return e==null?Mc(this.node):(Mc(this.node,e,n),this)}translate(e,n=0,s={}){return e==null?nE(this.node):(nE(this.node,e,n,s),this)}rotate(e,n,s,o={}){return e==null?hv(this.node):(hv(this.node,e,n,s,o),this)}scale(e,n){return e==null?pv(this.node):(pv(this.node,e,n),this)}getTransformToElement(e){const n=ut.toNode(e);return Gu(this.node,n)}removeAttribute(e){return zk(this.node,e),this}getAttribute(e){return use(this.node,e)}setAttribute(e,n){return x0(this.node,e,n),this}setAttributes(e){return jk(this.node,e),this}attr(e,n){return e==null?Ut(this.node):typeof e=="string"&&n===void 0?Ut(this.node,e):(typeof e=="object"?Ut(this.node,e):Ut(this.node,e,n),this)}svg(){return this.node instanceof SVGSVGElement?this:ut.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,n=e.node.getElementsByTagName("defs")[0];return n?ut.create(n):ut.create("defs").appendTo(e)}text(e,n={}){return qk(this.node,e,n),this}tagName(){return ose(this.node)}clone(){return ut.create(this.node.cloneNode(!0))}remove(){return Ac(this.node),this}empty(){return ff(this.node),this}append(e){return hf(this.node,ut.toNodes(e)),this}appendTo(e){return cse(this.node,ut.isVector(e)?e.node:e),this}prepend(e){return ase(this.node,ut.toNodes(e)),this}before(e){return S0(this.node,ut.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(ut.toNode(e),this.node),ut.create(e)}first(){return this.node.firstChild?ut.create(this.node.firstChild):null}last(){return this.node.lastChild?ut.create(this.node.lastChild):null}get(e){const n=this.node.childNodes[e];return n?ut.create(n):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(ut.toNode(e))}find(e){const n=[],s=ise(this.node,e);if(s)for(let o=0,i=s.length;oo(a)):[o(l)]}r.toNodes=i})(ut||(ut={}));function xse(r,e){const n=ut.create(e),s=ut.create("textPath"),o=r.d;if(o&&r["xlink:href"]===void 0){const i=ut.create("path").attr("d",o).appendTo(n.defs());s.attr("xlink:href",`#${i.id}`)}return typeof r=="object"&&s.attr(r),s.node}function Ese(r,e,n){const s=n.eol,o=n.baseSize,i=n.lineHeight;let l=0,a;const c={},u=e.length-1;for(let d=0;d<=u;d+=1){let f=e[d],h=null;if(typeof f=="object"){const p=f.attrs,g=ut.create("tspan",p);a=g.node;let m=f.t;s&&d===u&&(m+=s),a.textContent=m;const v=p.class;v&&g.addClass(v),n.includeAnnotationIndices&&g.attr("annotations",f.annotations.join(",")),h=parseFloat(p["font-size"]),h===void 0&&(h=o),h&&h>l&&(l=h)}else s&&d===u&&(f+=s),a=document.createTextNode(f||" "),o&&o>l&&(l=o);r.appendChild(a)}return l&&(c.maxFontSize=l),i?c.lineHeight=i:l&&(c.lineHeight=l*1.2),c}const Wk=/em$/;function Yf(r,e){const n=parseFloat(r);return Wk.test(r)?n*e:n}function Tse(r,e,n,s){if(!Array.isArray(e))return 0;const o=e.length;if(!o)return 0;let i=e[0];const l=Yf(i.maxFontSize,n)||n;let a=0;const c=Yf(s,n);for(let f=1;f0&&P.setAttribute("dy",C),(A>0||o)&&P.setAttribute("x",a),P.className.baseVal=k,b.appendChild(P),y+=B.length+1}if(l)if(u)C=Tse(i,E,v,h);else if(i==="top")C="0.8em";else{let A;switch(_>0?(A=parseFloat(h)||1,A*=_,Wk.test(h)||(A/=v)):A=0,i){case"middle":C=`${.3-A/2}em`;break;case"bottom":C=`${-A-.3}em`;break}}else i===0?C="0em":i?C=i:(C=0,r.getAttribute("y")==null&&r.setAttribute("y",`${w||"0.8em"}`));b.firstChild.setAttribute("dy",C),r.appendChild(b)}function qu(r,e={}){const n=document.createElement("canvas").getContext("2d");if(!r)return{width:0};const s=[],o=e["font-size"]?`${parseFloat(e["font-size"])}px`:"14px";return s.push(e["font-style"]||"normal"),s.push(e["font-variant"]||"normal"),s.push(e["font-weight"]||400),s.push(o),s.push(e["font-family"]||"sans-serif"),n.font=s.join(" "),n.measureText(r)}function tE(r,e,n,s={}){if(e>=n)return[r,""];const o=r.length,i={};let l=Math.round(e/n*o-1);for(l<0&&(l=0);l>=0&&le)l-=1;else if(d<=e)l+=1;else break}return[r.slice(0,l),r.slice(l)]}function Gk(r,e,n={},s={}){const o=e.width,i=e.height,l=s.eol||` -`,a=n.fontSize||14,c=n.lineHeight?parseFloat(n.lineHeight):Math.ceil(a*1.4),u=Math.floor(i/c);if(r.indexOf(l)>-1){const v=sp(),b=[];return r.split(l).map(C=>{const y=Gk(C,Object.assign(Object.assign({},e),{height:Number.MAX_SAFE_INTEGER}),n,Object.assign(Object.assign({},s),{eol:v}));y&&b.push(...y.split(v))}),b.slice(0,u).join(l)}const{width:d}=qu(r,n);if(do)if(v===u-1){const[C]=tE(h,o-m,p,n);f.push(g?`${C}${g}`:C)}else{const[C,y]=tE(h,o,p,n);f.push(C),h=y,p=qu(h,n).width}else{f.push(h);break}return f.join(l)}const dv=.551784;function qn(r,e,n=NaN){const s=r.getAttribute(e);if(s==null)return n;const o=parseFloat(s);return Number.isNaN(o)?n:o}function _se(r,e=1){const n=r.getTotalLength(),s=[];let o=0,i;for(;o`${n.x} ${n.y}`).join(" L")}`}function lp(r){const e=[],n=r.points;if(n)for(let s=0,o=n.numberOfItems;s=0){const l=Od(r),a=Dse(l);e=[a.translateX,a.translateY],n=[a.rotation],s=[a.scaleX,a.scaleY];const c=[];(e[0]!==0||e[1]!==0)&&c.push(`translate(${e.join(",")})`),(s[0]!==1||s[1]!==1)&&c.push(`scale(${s.join(",")})`),n[0]!==0&&c.push(`rotate(${n[0]})`),r=c.join(" ")}else{const l=r.match(/translate\((.*?)\)/);l&&(e=l[1].split(i));const a=r.match(/rotate\((.*?)\)/);a&&(n=a[1].split(i));const c=r.match(/scale\((.*?)\)/);c&&(s=c[1].split(i))}}const o=s&&s[0]?parseFloat(s[0]):1;return{raw:r||"",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:o,sy:s&&s[1]?parseFloat(s[1]):o}}}function fv(r,e){const n=e.x*r.a+e.y*r.c+0,s=e.x*r.b+e.y*r.d+0;return{x:n,y:s}}function Dse(r){const e=fv(r,{x:0,y:1}),n=fv(r,{x:1,y:0}),s=180/Math.PI*Math.atan2(e.y,e.x)-90,o=180/Math.PI*Math.atan2(n.y,n.x);return{skewX:s,skewY:o,translateX:r.e,translateY:r.f,scaleX:Math.sqrt(r.a*r.a+r.b*r.b),scaleY:Math.sqrt(r.c*r.c+r.d*r.d),rotation:s}}function Vse(r){let e,n,s,o;return r?(e=r.a==null?1:r.a,o=r.d==null?1:r.d,n=r.b,s=r.c):e=o=1,{sx:n?Math.sqrt(e*e+n*n):e,sy:s?Math.sqrt(s*s+o*o):o}}function Fse(r){let e={x:0,y:1};r&&(e=fv(r,e));const n=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:n%360+(n<0?360:0)}}function Bse(r){return{tx:r&&r.e||0,ty:r&&r.f||0}}function Mc(r,e,n={}){if(e==null)return Od(Ut(r,"transform"));if(n.absolute){r.setAttribute("transform",ru(e));return}const s=r.transform,o=wu(e);s.baseVal.appendItem(o)}function nE(r,e,n=0,s={}){let o=Ut(r,"transform");const i=wg(o);if(e==null)return i.translation;o=i.raw,o=o.replace(/translate\([^)]*\)/g,"").trim();const l=s.absolute?e:i.translation.tx+e,a=s.absolute?n:i.translation.ty+n,c=`translate(${l},${a})`;r.setAttribute("transform",`${c} ${o}`.trim())}function hv(r,e,n,s,o={}){let i=Ut(r,"transform");const l=wg(i);if(e==null)return l.rotation;i=l.raw,i=i.replace(/rotate\([^)]*\)/g,"").trim(),e%=360;const a=o.absolute?e:l.rotation.angle+e,c=n!=null&&s!=null?`,${n},${s}`:"",u=`rotate(${a}${c})`;r.setAttribute("transform",`${i} ${u}`.trim())}function pv(r,e,n){let s=Ut(r,"transform");const o=wg(s);if(e==null)return o.scale;n=n??e,s=o.raw,s=s.replace(/scale\([^)]*\)/g,"").trim();const i=`scale(${e},${n})`;r.setAttribute("transform",`${s} ${i}`.trim())}function Gu(r,e){if(Gi(e)&&Gi(r)){const n=e.getScreenCTM(),s=r.getScreenCTM();if(n&&s)return n.inverse().multiply(s)}return Bn()}function zse(r,e){let n=Bn();if(Gi(e)&&Gi(r)){let s=r;const o=[];for(;s&&s!==e;){const i=s.getAttribute("transform")||null,l=Od(i);o.push(l),s=s.parentNode}o.reverse().forEach(i=>{n=n.multiply(i)})}return n}function jse(r,e,n){const s=r instanceof SVGSVGElement?r:r.ownerSVGElement,o=s.createSVGPoint();o.x=e,o.y=n;try{const i=s.getScreenCTM(),l=o.matrixTransform(i.inverse()),a=Gu(r,s).inverse();return l.matrixTransform(a)}catch{return o}}var Jr;(function(r){const e={};function n(i){return e[i]||{}}r.get=n;function s(i,l){e[i]=l}r.register=s;function o(i){delete e[i]}r.unregister=o})(Jr||(Jr={}));var Fl;(function(r){const e=new WeakMap;function n(i){return e.has(i)||e.set(i,{events:Object.create(null)}),e.get(i)}r.ensure=n;function s(i){return e.get(i)}r.get=s;function o(i){return e.delete(i)}r.remove=o})(Fl||(Fl={}));var mt;(function(r){r.returnTrue=()=>!0,r.returnFalse=()=>!1;function e(o){o.stopPropagation()}r.stopPropagationCallback=e;function n(o,i,l){o.addEventListener!=null&&o.addEventListener(i,l)}r.addEventListener=n;function s(o,i,l){o.removeEventListener!=null&&o.removeEventListener(i,l)}r.removeEventListener=s})(mt||(mt={}));(function(r){const e=/[^\x20\t\r\n\f]+/g,n=/^([^.]*)(?:\.(.+)|)/;function s(a){return(a||"").match(e)||[""]}r.splitType=s;function o(a){const c=n.exec(a)||[];return{originType:c[1]?c[1].trim():c[1],namespaces:c[2]?c[2].split(".").map(u=>u.trim()).sort():[]}}r.normalizeType=o;function i(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType}r.isValidTarget=i;function l(a,c){if(c){const u=a;return u.querySelector!=null&&u.querySelector(c)!=null}return!0}r.isValidSelector=l})(mt||(mt={}));(function(r){let e=0;const n=new WeakMap;function s(a){return n.has(a)||(n.set(a,e),e+=1),n.get(a)}r.ensureHandlerId=s;function o(a){return n.get(a)}r.getHandlerId=o;function i(a){return n.delete(a)}r.removeHandlerId=i;function l(a,c){return n.set(a,c)}r.setHandlerId=l})(mt||(mt={}));(function(r){function e(n,s){const o=[],i=Fl.get(n),l=i&&i.events&&i.events[s.type],a=l&&l.handlers||[],c=l?l.delegateCount:0;if(c>0&&!(s.type==="click"&&typeof s.button=="number"&&s.button>=1)){for(let u=s.target;u!==n;u=u.parentNode||n)if(u.nodeType===1&&!(s.type==="click"&&u.disabled===!0)){const d=[],f={};for(let h=0;h{v.push(b)}),f[g]=v.includes(u)}f[g]&&d.push(p)}d.length&&o.push({elem:u,handlers:d})}}return c{const s=this.originalEvent;this.isDefaultPrevented=mt.returnTrue,s&&!this.isSimulated&&s.preventDefault()},this.stopPropagation=()=>{const s=this.originalEvent;this.isPropagationStopped=mt.returnTrue,s&&!this.isSimulated&&s.stopPropagation()},this.stopImmediatePropagation=()=>{const s=this.originalEvent;this.isImmediatePropagationStopped=mt.returnTrue,s&&!this.isSimulated&&s.stopImmediatePropagation(),this.stopPropagation()},typeof e=="string"?this.type=e:e.type&&(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?mt.returnTrue:mt.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(r){function e(n){return n instanceof r?n:new r(n)}r.create=e})(so||(so={}));(function(r){function e(n,s){Object.defineProperty(r.prototype,n,{enumerable:!0,configurable:!0,get:typeof s=="function"?function(){if(this.originalEvent)return s(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set(o){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:o})}})}r.addProperty=e})(so||(so={}));(function(r){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=>r.addProperty(n,e[n]))})(so||(so={}));(function(r){Jr.register("load",{noBubble:!0})})();(function(r){Jr.register("beforeunload",{postDispatch(e,n){n.result!==void 0&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}})})();(function(r){Jr.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(e,n){let s;const o=n.relatedTarget,i=n.handleObj;return(!o||o!==e&&!mt.contains(e,o))&&(n.type=i.originType,s=i.handler.call(e,n),n.type="mouseover"),s}}),Jr.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(e,n){let s;const o=n.relatedTarget,i=n.handleObj;return(!o||o!==e&&!mt.contains(e,o))&&(n.type=i.originType,s=i.handler.call(e,n),n.type="mouseout"),s}})})();var Hse=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{const{originType:v,namespaces:b}=mt.normalizeType(m);if(!v)return;let C=v,y=Jr.get(C);C=(d?y.delegateType:y.bindType)||C,y=Jr.get(C);const w=Object.assign({type:C,originType:v,data:u,selector:d,guid:g,handler:c,namespace:b.join(".")},f),x=h.events;let E=x[C];E||(E=x[C]={handlers:[],delegateCount:0},(!y.setup||y.setup(l,u,b,p)===!1)&&mt.addEventListener(l,C,p)),y.add&&(mt.removeHandlerId(w.handler),y.add(l,w),mt.setHandlerId(w.handler,g)),d?(E.handlers.splice(E.delegateCount,0,w),E.delegateCount+=1):E.handlers.push(w)})}r.on=n;function s(l,a,c,u,d){const f=Fl.get(l);if(!f)return;const h=f.events;h&&(mt.splitType(a).forEach(p=>{const{originType:g,namespaces:m}=mt.normalizeType(p);if(!g){Object.keys(h).forEach(x=>{s(l,x+p,c,u,!0)});return}let v=g;const b=Jr.get(v);v=(u?b.delegateType:b.bindType)||v;const C=h[v];if(!C)return;const y=m.length>0?new RegExp(`(^|\\.)${m.join("\\.(?:.*\\.|)")}(\\.|$)`):null,w=C.handlers.length;for(let x=C.handlers.length-1;x>=0;x-=1){const E=C.handlers[x];(d||g===E.originType)&&(!c||mt.getHandlerId(c)===E.guid)&&(y==null||E.namespace&&y.test(E.namespace))&&(u==null||u===E.selector||u==="**"&&E.selector)&&(C.handlers.splice(x,1),E.selector&&(C.delegateCount-=1),b.remove&&b.remove(l,E))}w&&C.handlers.length===0&&((!b.teardown||b.teardown(l,m,f.handler)===!1)&&mt.removeEventListener(l,v,f.handler),delete h[v])}),Object.keys(h).length===0&&Fl.remove(l))}r.off=s;function o(l,a,...c){const u=so.create(a);u.delegateTarget=l;const d=Jr.get(u.type);if(d.preDispatch&&d.preDispatch(l,u)===!1)return;const f=mt.getHandlerQueue(l,u);for(let h=0,p=f.length;h-1&&(h=f.split("."),f=h.shift(),h.sort());const g=f.indexOf(":")<0&&`on${f}`;d=l instanceof so?l:new so(f,typeof l=="object"?l:null),d.namespace=h.join("."),d.rnamespace=d.namespace?new RegExp(`(^|\\.)${h.join("\\.(?:.*\\.|)")}(\\.|$)`):null,d.result=void 0,d.target||(d.target=p);const m=[d];Array.isArray(a)?m.push(...a):m.push(a);const v=Jr.get(f);if(!u&&v.trigger&&v.trigger(p,d,a)===!1)return;let b;const C=[p];if(!u&&!v.noBubble&&!mt.isWindow(p)){b=v.delegateType||f;let w=p,x=p.parentNode;for(;x!=null;)C.push(x),w=x,x=x.parentNode;const E=p.ownerDocument||document;if(w===E){const _=w.defaultView||w.parentWindow||window;C.push(_)}}let y=p;for(let w=0,x=C.length;w1?b:v.bindType||f;const _=Fl.get(E);_&&_.events[d.type]&&_.handler&&_.handler.call(E,...m);const M=g&&E[g]||null;M&&mt.isValidTarget(E)&&(d.result=M.call(E,...m),d.result===!1&&d.preventDefault())}if(d.type=f,!u&&!d.isDefaultPrevented()){const w=v.preventDefault;if((w==null||w(C.pop(),d,a)===!1)&&mt.isValidTarget(p)&&g&&typeof p[f]=="function"&&!mt.isWindow(p)){const x=p[g];x&&(p[g]=null),e=f,d.isPropagationStopped()&&y.addEventListener(f,mt.stopPropagationCallback),p[f](),d.isPropagationStopped()&&y.removeEventListener(f,mt.stopPropagationCallback),e=void 0,x&&(p[g]=x)}}return d.result}r.trigger=i})(Ad||(Ad={}));var Hn;(function(r){function e(i,l,a,c,u){return Ku.on(i,l,a,c,u),i}r.on=e;function n(i,l,a,c,u){return Ku.on(i,l,a,c,u,!0),i}r.once=n;function s(i,l,a,c){return Ku.off(i,l,a,c),i}r.off=s;function o(i,l,a,c){return Ad.trigger(l,a,i,c),i}r.trigger=o})(Hn||(Hn={}));var Ku;(function(r){function e(s,o,i,l,a,c){if(typeof o=="object"){typeof i!="string"&&(l=l||i,i=void 0),Object.keys(o).forEach(u=>e(s,u,i,l,o[u],c));return}if(l==null&&a==null?(a=i,l=i=void 0):a==null&&(typeof i=="string"?(a=l,l=void 0):(a=l,l=i,i=void 0)),a===!1)a=mt.returnFalse;else if(!a)return;if(c){const u=a;a=function(d,...f){return r.off(s,d),u.call(this,d,...f)},mt.setHandlerId(a,mt.ensureHandlerId(u))}Ad.on(s,o,a,l,i)}r.on=e;function n(s,o,i,l){const a=o;if(a&&a.preventDefault!=null&&a.handleObj!=null){const c=a.handleObj;n(a.delegateTarget,c.namespace?`${c.originType}.${c.namespace}`:c.originType,c.selector,c.handler);return}if(typeof o=="object"){const c=o;Object.keys(c).forEach(u=>n(s,u,i,c[u]));return}(i===!1||typeof i=="function")&&(l=i,i=void 0),l===!1&&(l=mt.returnFalse),Ad.off(s,o,l,i)}r.off=n})(Ku||(Ku={}));class Zk{constructor(e,n,s){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=qi.isEventSupported("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=n,this.onWheelGuard=s,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 Qk(r,e=60){let n=null;return(...s)=>{n&&clearTimeout(n),n=window.setTimeout(()=>{r.apply(this,s)},e)}}function Use(r){let e=null,n=[];const s=()=>{if(getComputedStyle(r).position==="static"){const u=r.style;u.position="relative"}const c=document.createElement("object");return c.onload=()=>{c.contentDocument.defaultView.addEventListener("resize",o),o()},c.style.display="block",c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.height="100%",c.style.width="100%",c.style.overflow="hidden",c.style.pointerEvents="none",c.style.zIndex="-1",c.style.opacity="0",c.setAttribute("tabindex","-1"),c.type="text/html",r.appendChild(c),c.data="about:blank",c},o=Qk(()=>{n.forEach(c=>c(r))}),i=c=>{e||(e=s()),n.indexOf(c)===-1&&n.push(c)},l=()=>{e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",o),e.parentNode.removeChild(e),e=null,n=[])};return{element:r,bind:i,destroy:l,unbind:c=>{const u=n.indexOf(c);u!==-1&&n.splice(u,1),n.length===0&&e&&l()}}}function Wse(r){let e=null,n=[];const s=Qk(()=>{n.forEach(c=>{c(r)})}),o=()=>{const c=new ResizeObserver(s);return c.observe(r),s(),c},i=c=>{e||(e=o()),n.indexOf(c)===-1&&n.push(c)},l=()=>{e&&(e.disconnect(),n=[],e=null)};return{element:r,bind:i,destroy:l,unbind:c=>{const u=n.indexOf(c);u!==-1&&n.splice(u,1),n.length===0&&e&&l()}}}const qse=typeof ResizeObserver<"u"?Wse:Use;var ap;(function(r){const e=new WeakMap;function n(o){let i=e.get(o);return i||(i=qse(o),e.set(o,i),i)}function s(o){o.destroy(),e.delete(o.element)}r.bind=(o,i)=>{const l=n(o);return l.bind(i),()=>l.unbind(i)},r.clear=o=>{const i=n(o);s(i)}})(ap||(ap={}));class Md{constructor(e={}){this.comparator=e.comparator||Md.defaultComparator,this.index={},this.data=e.data||[],this.heapify()}isEmpty(){return this.data.length===0}insert(e,n,s){const o={priority:e,value:n},i=this.data.length;return s&&(o.id=s,this.index[s]=i),this.data.push(o),this.bubbleUp(i),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 s=this.index[e];if(typeof s>"u")throw new Error(`Node with id '${e}' was not found in the heap.`);const o=this.data,i=o[s].priority,l=this.comparator(n,i);l<0?(o[s].priority=n,this.bubbleUp(s)):l>0&&(o[s].priority=n,this.bubbleDown(s))}remove(){const e=this.data,n=e[0],s=e.pop();return n.id&&delete this.index[n.id],e.length>0&&(e[0]=s,s.id&&(this.index[s.id]=0),this.bubbleDown(0)),n?n.value:null}heapify(){for(let e=0;e0&&(o=i-1>>>1,this.comparator(n[i].priority,n[o].priority)<0);){s=n[o],n[o]=n[i];let l=n[i].id;l!=null&&(this.index[l]=o),n[i]=s,l=n[i].id,l!=null&&(this.index[l]=i),i=o}}bubbleDown(e){const n=this.data,s=n.length-1;let o=e;for(;;){const i=(o<<1)+1,l=i+1;let a=o;if(i<=s&&this.comparator(n[i].priority,n[a].priority)<0&&(a=i),l<=s&&this.comparator(n[l].priority,n[a].priority)<0&&(a=l),a!==o){const c=n[a];n[a]=n[o];let u=n[o].id;u!=null&&(this.index[u]=a),n[o]=c,u=n[o].id,u!=null&&(this.index[u]=o),o=a}else break}}}(function(r){r.defaultComparator=(e,n)=>e-n})(Md||(Md={}));var gv;(function(r){function e(n,s,o=(i,l)=>1){const i={},l={},a={},c=new Md;for(i[s]=0,Object.keys(n).forEach(u=>{u!==s&&(i[u]=1/0),c.insert(i[u],u,u)});!c.isEmpty();){const u=c.remove();a[u]=!0;const d=n[u]||[];for(let f=0;f{const s=this[n].toString(16);return s.length<2?`0${s}`:s}).join("")}`}toRGBA(){return this.toArray()}toHSLA(){return Io.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 Io.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(r){function e(y){return new r(y)}r.fromArray=e;function n(y){return new r([...g(y),1])}r.fromHex=n;function s(y){const w=y.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(w){const x=w[1].split(/\s*,\s*/).map(E=>parseInt(E,10));return new r(x)}return null}r.fromRGBA=s;function o(y,w,x){x<0&&++x,x>1&&--x;const E=6*x;return E<1?y+(w-y)*E:2*x<1?w:3*x<2?y+(w-y)*(2/3-x)*6:y}function i(y){const w=y.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(w){const x=w[2].split(/\s*,\s*/),E=(parseFloat(x[0])%360+360)%360/360,_=parseFloat(x[1])/100,M=parseFloat(x[2])/100,A=x[3]==null?1:parseInt(x[3],10);return new r(u(E,_,M,A))}return null}r.fromHSLA=i;function l(y){if(y.startsWith("#"))return n(y);if(y.startsWith("rgb"))return s(y);const w=r.named[y];return w?n(w):i(y)}r.fromString=l;function a(y,w){return r.fromArray([y,y,y,w])}r.makeGrey=a;function c(y,w,x,E){const _=Array.isArray(y)?y[0]:y,M=Array.isArray(y)?y[1]:w,A=Array.isArray(y)?y[2]:x,k=Array.isArray(y)?y[3]:E,P=Math.max(_,M,A),$=Math.min(_,M,A),B=(P+$)/2;let W=0,I=0;if($!==P){const R=P-$;switch(I=B>.5?R/(2-P-$):R/(P+$),P){case _:W=(M-A)/R+(M186?"#000000":"#ffffff":`${A?"#":""}${m(255-k,255-P,255-$)}`}const x=y[0],E=y[1],_=y[2],M=y[3];return w?x*.299+E*.587+_*.114>186?[0,0,0,M]:[255,255,255,M]:[255-x,255-E,255-_,M]}r.invert=p;function g(y){const w=y.indexOf("#")===0?y:`#${y}`;let x=+`0x${w.substr(1)}`;if(!(w.length===4||w.length===7)||Number.isNaN(x))throw new Error("Invalid hex color.");const E=w.length===4?4:8,_=(1<{const A=x&_;return x>>=E,E===4?17*A:A});return[M[2],M[1],M[0]]}function m(y,w,x){const E=_=>_.length<2?`0${_}`:_;return`${E(y.toString(16))}${E(w.toString(16))}${E(x.toString(16))}`}function v(y,w){return C(y,w)}r.lighten=v;function b(y,w){return C(y,-w)}r.darken=b;function C(y,w){if(typeof y=="string"){const _=y[0]==="#",M=parseInt(_?y.substr(1):y,16),A=Zr((M>>16)+w,0,255),k=Zr((M>>8&255)+w,0,255),P=Zr((M&255)+w,0,255);return`${_?"#":""}${(P|k<<8|A<<16).toString(16)}`}const x=m(y[0],y[1],y[2]),E=g(C(x,w));return[E[0],E[1],E[2],y[3]]}})(Io||(Io={}));(function(r){r.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"}})(Io||(Io={}));class mv{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 s=this.map.get(e);return this.map.delete(e),s}each(e){this.arr.forEach(n=>{const s=this.map.get(n);e(s,n)})}dispose(){this.clear()}}var kc;(function(r){function e(o){const i=[],l=[];return Array.isArray(o)?i.push(...o):o.split("|").forEach(a=>{a.indexOf("&")===-1?i.push(a):l.push(...a.split("&"))}),{or:i,and:l}}r.parse=e;function n(o,i){if(o!=null&&i!=null){const l=e(o),a=e(i),c=l.or.sort(),u=a.or.sort(),d=l.and.sort(),f=a.and.sort(),h=(p,g)=>p.length===g.length&&(p.length===0||p.every((m,v)=>m===g[v]));return h(c,u)&&h(d,f)}return o==null&&i==null}r.equals=n;function s(o,i,l){if(i==null||Array.isArray(i)&&i.length===0)return l?o.altKey!==!0&&o.ctrlKey!==!0&&o.metaKey!==!0&&o.shiftKey!==!0:!0;const{or:a,and:c}=e(i),u=d=>{const f=`${d.toLowerCase()}Key`;return o[f]===!0};return a.some(d=>u(d))&&c.every(d=>u(d))}r.isMatch=s})(kc||(kc={}));var ca;(function(r){r.linear=e=>e,r.quad=e=>e*e,r.cubic=e=>e*e*e,r.inout=e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*e,s=n*e;return 4*(e<.5?s:3*(e-n)+s-.75)},r.exponential=e=>Math.pow(2,10*(e-1)),r.bounce=e=>{for(let n=0,s=1;;n+=s,s/=2)if(e>=(7-4*n)/11){const o=(11-6*n-11*e)/4;return-o*o+s*s}}})(ca||(ca={}));(function(r){r.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,s=1){return o=>{const i=e(o);return is?s:i}},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)}}})(ca||(ca={}));(function(r){function e(I){return-1*Math.cos(I*(Math.PI/2))+1}r.easeInSine=e;function n(I){return Math.sin(I*(Math.PI/2))}r.easeOutSine=n;function s(I){return-.5*(Math.cos(Math.PI*I)-1)}r.easeInOutSine=s;function o(I){return I*I}r.easeInQuad=o;function i(I){return I*(2-I)}r.easeOutQuad=i;function l(I){return I<.5?2*I*I:-1+(4-2*I)*I}r.easeInOutQuad=l;function a(I){return I*I*I}r.easeInCubic=a;function c(I){const R=I-1;return R*R*R+1}r.easeOutCubic=c;function u(I){return I<.5?4*I*I*I:(I-1)*(2*I-2)*(2*I-2)+1}r.easeInOutCubic=u;function d(I){return I*I*I*I}r.easeInQuart=d;function f(I){const R=I-1;return 1-R*R*R*R}r.easeOutQuart=f;function h(I){const R=I-1;return I<.5?8*I*I*I*I:1-8*R*R*R*R}r.easeInOutQuart=h;function p(I){return I*I*I*I*I}r.easeInQuint=p;function g(I){const R=I-1;return 1+R*R*R*R*R}r.easeOutQuint=g;function m(I){const R=I-1;return I<.5?16*I*I*I*I*I:1+16*R*R*R*R*R}r.easeInOutQuint=m;function v(I){return I===0?0:Math.pow(2,10*(I-1))}r.easeInExpo=v;function b(I){return I===1?1:-Math.pow(2,-10*I)+1}r.easeOutExpo=b;function C(I){if(I===0||I===1)return I;const R=I*2,U=R-1;return R<1?.5*Math.pow(2,10*U):.5*(-Math.pow(2,-10*U)+2)}r.easeInOutExpo=C;function y(I){const R=I/1;return-1*(Math.sqrt(1-R*I)-1)}r.easeInCirc=y;function w(I){const R=I-1;return Math.sqrt(1-R*R)}r.easeOutCirc=w;function x(I){const R=I*2,U=R-2;return R<1?-.5*(Math.sqrt(1-R*R)-1):.5*(Math.sqrt(1-U*U)+1)}r.easeInOutCirc=x;function E(I,R=1.70158){return I*I*((R+1)*I-R)}r.easeInBack=E;function _(I,R=1.70158){const U=I/1-1;return U*U*((R+1)*U+R)+1}r.easeOutBack=_;function M(I,R=1.70158){const U=I*2,Q=U-2,q=R*1.525;return U<1?.5*U*U*((q+1)*U-q):.5*(Q*Q*((q+1)*Q+q)+2)}r.easeInOutBack=M;function A(I,R=.7){if(I===0||I===1)return I;const Q=I/1-1,q=1-R,ee=q/(2*Math.PI)*Math.asin(1);return-(Math.pow(2,10*Q)*Math.sin((Q-ee)*(2*Math.PI)/q))}r.easeInElastic=A;function k(I,R=.7){const U=1-R,Q=I*2;if(I===0||I===1)return I;const q=U/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*Q)*Math.sin((Q-q)*(2*Math.PI)/U)+1}r.easeOutElastic=k;function P(I,R=.65){const U=1-R;if(I===0||I===1)return I;const Q=I*2,q=Q-1,ee=U/(2*Math.PI)*Math.asin(1);return Q<1?-.5*(Math.pow(2,10*q)*Math.sin((q-ee)*(2*Math.PI)/U)):Math.pow(2,-10*q)*Math.sin((q-ee)*(2*Math.PI)/U)*.5+1}r.easeInOutElastic=P;function $(I){const R=I/1;if(R<1/2.75)return 7.5625*R*R;if(R<2/2.75){const U=R-.5454545454545454;return 7.5625*U*U+.75}if(R<2.5/2.75){const U=R-.8181818181818182;return 7.5625*U*U+.9375}{const U=R-.9545454545454546;return 7.5625*U*U+.984375}}r.easeOutBounce=$;function B(I){return 1-$(1-I)}r.easeInBounce=B;function W(I){return I<.5?B(I*2)*.5:$(I*2-1)*.5+.5}r.easeInOutBounce=W})(ca||(ca={}));var Bl;(function(r){r.number=(e,n)=>{const s=n-e;return o=>e+s*o},r.object=(e,n)=>{const s=Object.keys(e);return o=>{const i={};for(let l=s.length-1;l!==-1;l-=1){const a=s[l];i[a]=e[a]+(n[a]-e[a])*o}return i}},r.unit=(e,n)=>{const s=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,o=s.exec(e),i=s.exec(n),l=i?i[1]:"",a=o?+o[1]:0,c=i?+i[1]:0,u=l.indexOf("."),d=u>0?l[1].length-u-1:0,f=c-a,h=o?o[2]:"";return p=>(a+f*p).toFixed(d)+h},r.color=(e,n)=>{const s=parseInt(e.slice(1),16),o=parseInt(n.slice(1),16),i=s&255,l=(o&255)-i,a=s&65280,c=(o&65280)-a,u=s&16711680,d=(o&16711680)-u;return f=>{const h=i+l*f&255,p=a+c*f&65280,g=u+d*f&16711680;return`#${(1<<24|h|p|g).toString(16).slice(1)}`}}})(Bl||(Bl={}));const Yu=[];function Gse(r,e){const n=Yu.find(s=>s.name===r);if(!(n&&(n.loadTimes+=1,n.loadTimes>1))&&!qi.isApplyingHMR()){const s=document.createElement("style");s.setAttribute("type","text/css"),s.textContent=e;const o=document.querySelector("head");o&&o.insertBefore(s,o.firstChild),Yu.push({name:r,loadTimes:1,styleElement:s})}}function Kse(r){const e=Yu.findIndex(n=>n.name===r);if(e>-1){const n=Yu[e];if(n.loadTimes-=1,n.loadTimes>0)return;let s=n.styleElement;s&&s.parentNode&&s.parentNode.removeChild(s),s=null,Yu.splice(e,1)}}var Ht;(function(r){function e(s){return 180*s/Math.PI%360}r.toDeg=e,r.toRad=function(s,o=!1){return(o?s:s%360)*Math.PI/180};function n(s){return s%360+(s<0?360:0)}r.normalize=n})(Ht||(Ht={}));var zt;(function(r){function e(a,c=0){return Number.isInteger(a)?a:+a.toFixed(c)}r.round=e;function n(a,c){let u,d;if(c==null?(d=a??1,u=0):(d=c,u=a??0),du?u:a:ac?c:a}r.clamp=s;function o(a,c){return c*Math.round(a/c)}r.snapToGrid=o;function i(a,c){return c!=null&&a!=null&&c.x>=a.x&&c.x<=a.x+a.width&&c.y>=a.y&&c.y<=a.y+a.height}r.containsPoint=i;function l(a,c){const u=a.x-c.x,d=a.y-c.y;return u*u+d*d}r.squaredLength=l})(zt||(zt={}));class dl{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class K extends dl{constructor(e,n){super(),this.x=e??0,this.y=n??0}round(e=0){return this.x=zt.round(this.x,e),this.y=zt.round(this.y,e),this}add(e,n){const s=K.create(e,n);return this.x+=s.x,this.y+=s.y,this}update(e,n){const s=K.create(e,n);return this.x=s.x,this.y=s.y,this}translate(e,n){const s=K.create(e,n);return this.x+=s.x,this.y+=s.y,this}rotate(e,n){const s=K.rotate(this,e,n);return this.x=s.x,this.y=s.y,this}scale(e,n,s=new K){const o=K.create(s);return this.x=o.x+e*(this.x-o.x),this.y=o.y+n*(this.y-o.y),this}closest(e){if(e.length===1)return K.create(e[0]);let n=null,s=1/0;return e.forEach(o=>{const i=this.squaredDistance(o);io&&(a=(this.x+this.width-o)/(m.x-o)),m.y>i&&(f=(this.y+this.height-i)/(m.y-i));const v=s.topRight;v.x>o&&(c=(this.x+this.width-o)/(v.x-o)),v.yi&&(p=(this.y+this.height-i)/(b.y-i)),{sx:Math.min(l,a,c,u),sy:Math.min(d,f,h,p)}}getMaxUniformScaleToFit(e,n=this.center){const s=this.getMaxScaleToFit(e,n);return Math.min(s.sx,s.sy)}containsPoint(e,n){return zt.containsPoint(this,K.create(e,n))}containsRect(e,n,s,o){const i=Ne.create(e,n,s,o),l=this.x,a=this.y,c=this.width,u=this.height,d=i.x,f=i.y,h=i.width,p=i.height;return c===0||u===0||h===0||p===0?!1:d>=l&&f>=a&&d+h<=l+c&&f+p<=a+u}intersectsWithLine(e){const n=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],s=[],o=[];return n.forEach(i=>{const l=e.intersectsWithLine(i);l!==null&&o.indexOf(l.toString())<0&&(s.push(l),o.push(l.toString()))}),s.length>0?s:null}intersectsWithLineFromCenterToPoint(e,n){const s=K.clone(e),o=this.center;let i=null;n!=null&&n!==0&&s.rotate(n,o);const l=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],a=new We(o,s);for(let c=l.length-1;c>=0;c-=1){const u=l[c].intersectsWithLine(a);if(u!==null){i=u;break}}return i&&n!=null&&n!==0&&i.rotate(-n,o),i}intersectsWithRect(e,n,s,o){const i=Ne.create(e,n,s,o);if(!this.isIntersectWithRect(i))return null;const l=this.origin,a=this.corner,c=i.origin,u=i.corner,d=Math.max(l.x,c.x),f=Math.max(l.y,c.y);return new Ne(d,f,Math.min(a.x,u.x)-d,Math.min(a.y,u.y)-f)}isIntersectWithRect(e,n,s,o){const i=Ne.create(e,n,s,o),l=this.origin,a=this.corner,c=i.origin,u=i.corner;return!(u.x<=l.x||u.y<=l.y||c.x>=a.x||c.y>=a.y)}normalize(){let e=this.x,n=this.y,s=this.width,o=this.height;return this.width<0&&(e=this.x+this.width,s=-this.width),this.height<0&&(n=this.y+this.height,o=-this.height),this.x=e,this.y=n,this.width=s,this.height=o,this}union(e){const n=Ne.clone(e),s=this.origin,o=this.corner,i=n.origin,l=n.corner,a=Math.min(s.x,i.x),c=Math.min(s.y,i.y),u=Math.max(o.x,l.x),d=Math.max(o.y,l.y);return new Ne(a,c,u-a,d-c)}getNearestSideToPoint(e){const n=K.clone(e),s=n.x-this.x,o=this.x+this.width-n.x,i=n.y-this.y,l=this.y+this.height-n.y;let a=s,c="left";return o=1?s.clone():n.lerp(s,e)}pointAtLength(e){const n=this.start,s=this.end;let o=!0;e<0&&(o=!1,e=-e);const i=this.length();if(e>=i)return o?s.clone():n.clone();const l=(o?e:i-e)/i;return this.pointAt(l)}divideAt(e){const n=this.pointAt(e);return[new We(this.start,n),new We(n,this.end)]}divideAtLength(e){const n=this.pointAtLength(e);return[new We(this.start,n),new We(n,this.end)]}containsPoint(e){const n=this.start,s=this.end;if(n.cross(e,s)!==0)return!1;const o=this.length();return!(new We(n,e).length()>o||new We(e,s).length()>o)}intersect(e,n){const s=e.intersectsWithLine(this,n);return s?Array.isArray(s)?s:[s]:null}intersectsWithLine(e){const n=new K(this.end.x-this.start.x,this.end.y-this.start.y),s=new K(e.end.x-e.start.x,e.end.y-e.start.y),o=n.x*s.y-n.y*s.x,i=new K(e.start.x-this.start.x,e.start.y-this.start.y),l=i.x*s.y-i.y*s.x,a=i.x*n.y-i.y*n.x;if(o===0||l*o<0||a*o<0)return null;if(o>0){if(l>o||a>o)return null}else if(l0&&(o-=l,i-=a,c=o*l+i*a,c<0&&(c=0))),c<0?-1:c>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 We(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(r){function e(n){return n!=null&&n instanceof r}r.isLine=e})(We||(We={}));class Vs extends dl{get center(){return new K(this.x,this.y)}constructor(e,n,s,o){super(),this.x=e??0,this.y=n??0,this.a=s??0,this.b=o??0}bbox(){return Ne.fromEllipse(this)}getCenter(){return this.center}inflate(e,n){const s=e,o=n??e;return this.a+=2*s,this.b+=2*o,this}normalizedDistance(e,n){const s=K.create(e,n),o=s.x-this.x,i=s.y-this.y,l=this.a,a=this.b;return o*o/(l*l)+i*i/(a*a)}containsPoint(e,n){return this.normalizedDistance(e,n)<=1}intersectsWithLine(e){const n=[],s=this.a,o=this.b,i=e.start,l=e.end,a=e.vector(),c=i.diff(new K(this.x,this.y)),u=new K(a.x/(s*s),a.y/(o*o)),d=new K(c.x/(s*s),c.y/(o*o)),f=a.dot(u),h=a.dot(d),p=c.dot(d)-1,g=h*h-f*p;if(g<0)return null;if(g>0){const m=Math.sqrt(g),v=(-h-m)/f,b=(-h+m)/f;if((v<0||v>1)&&(b<0||b>1))return null;v>=0&&v<=1&&n.push(i.lerp(l,v)),b>=0&&b<=1&&n.push(i.lerp(l,b))}else{const m=-h/f;if(m>=0&&m<=1)n.push(i.lerp(l,m));else return null}return n}intersectsWithLineFromCenterToPoint(e,n=0){const s=K.clone(e);n&&s.rotate(n,this.getCenter());const o=s.x-this.x,i=s.y-this.y;let l;if(o===0)return l=this.bbox().getNearestPointToPoint(s),n?l.rotate(-n,this.getCenter()):l;const a=i/o,c=a*a,u=this.a*this.a,d=this.b*this.b;let f=Math.sqrt(1/(1/u+c/d));f=o<0?-f:f;const h=a*f;return l=new K(this.x+f,this.y+h),n?l.rotate(-n,this.getCenter()):l}tangentTheta(e){const n=K.clone(e),s=n.x,o=n.y,i=this.a,l=this.b,a=this.bbox().center,c=a.x,u=a.y,d=30,f=s>a.x+i/2,h=sa.x?o-d:o+d,p=i*i/(s-c)-i*i*(o-u)*(g-u)/(l*l*(s-c))+c):(p=o>a.y?s+d:s-d,g=l*l/(o-u)-l*l*(s-c)*(p-c)/(i*i*(o-u))+u),new K(p,g).theta(n)}scale(e,n){return this.a*=e,this.b*=n,this}rotate(e,n){const s=Ne.fromEllipse(this);s.rotate(e,n);const o=Vs.fromRect(s);return this.a=o.a,this.b=o.b,this.x=o.x,this.y=o.y,this}translate(e,n){const s=K.create(e,n);return this.x+=s.x,this.y+=s.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 Vs(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(r){function e(n){return n!=null&&n instanceof r}r.isEllipse=e})(Vs||(Vs={}));(function(r){function e(o,i,l,a){return o==null||typeof o=="number"?new r(o,i,l,a):n(o)}r.create=e;function n(o){return r.isEllipse(o)?o.clone():Array.isArray(o)?new r(o[0],o[1],o[2],o[3]):new r(o.x,o.y,o.a,o.b)}r.parse=n;function s(o){const i=o.center;return new r(i.x,i.y,o.width/2,o.height/2)}r.fromRect=s})(Vs||(Vs={}));const Yse=new RegExp("^[\\s\\dLMCZz,.]*$");function Jse(r){return typeof r!="string"?!1:Yse.test(r)}function Dm(r,e){return(r%e+e)%e}function Xse(r,e,n,s,o){const i=[],l=r[r.length-1],a=e!=null&&e>0,c=e||0;if(s&&a){r=r.slice();const f=r[0],h=new K(l.x+(f.x-l.x)/2,l.y+(f.y-l.y)/2);r.splice(0,0,h)}let u=r[0],d=1;for(n?i.push("M",u.x,u.y):i.push("L",u.x,u.y);d<(s?r.length:r.length-1);){let f=r[Dm(d,r.length)],h=u.x-f.x,p=u.y-f.y;if(a&&(h!==0||p!==0)&&(o==null||o.indexOf(d-1)<0)){let g=Math.sqrt(h*h+p*p);const m=h*Math.min(c,g/2)/g,v=p*Math.min(c,g/2)/g,b=f.x+m,C=f.y+v;i.push("L",b,C);let y=r[Dm(d+1,r.length)];for(;dtypeof f=="string"?f:+f.toFixed(3)).join(" ")}function eP(r,e={}){const n=[];return r&&r.length&&r.forEach(s=>{Array.isArray(s)?n.push({x:s[0],y:s[1]}):n.push({x:s.x,y:s.y})}),Xse(n,e.round,e.initialMove==null||e.initialMove,e.close,e.exclude)}function cp(r,e,n,s,o=0,i=0,l=0,a,c){if(n===0||s===0)return[];a-=r,c-=e,n=Math.abs(n),s=Math.abs(s);const u=-a/2,d=-c/2,f=Math.cos(o*Math.PI/180),h=Math.sin(o*Math.PI/180),p=f*u+h*d,g=-1*h*u+f*d,m=p*p,v=g*g,b=n*n,C=s*s,y=m/b+v/C;let w;if(y>1)n=Math.sqrt(y)*n,s=Math.sqrt(y)*s,w=0;else{let G=1;i===l&&(G=-1),w=G*Math.sqrt((b*C-b*v-C*m)/(b*v+C*m))}const x=w*n*g/s,E=-1*w*s*p/n,_=f*x-h*E+a/2,M=h*x+f*E+c/2;let A=Math.atan2((g-E)/s,(p-x)/n)-Math.atan2(0,1),k=A>=0?A:2*Math.PI+A;A=Math.atan2((-g-E)/s,(-p-x)/n)-Math.atan2((g-E)/s,(p-x)/n);let P=A>=0?A:2*Math.PI+A;l===0&&P>0?P-=2*Math.PI:l!==0&&P<0&&(P+=2*Math.PI);const $=P*2/Math.PI,B=Math.ceil($<0?-1*$:$),W=P/B,I=8/3*Math.sin(W/4)*Math.sin(W/4)/Math.sin(W/2),R=f*n,U=f*s,Q=h*n,q=h*s;let ee=Math.cos(k),de=Math.sin(k),ce=-I*(R*de+q*ee),Te=-I*(Q*de-U*ee),fe=0,we=0;const Ee=[];for(let G=0;G+G.toFixed(2))}function Zse(r,e,n,s,o=0,i=0,l=0,a,c){const u=[],d=cp(r,e,n,s,o,i,l,a,c);if(d!=null)for(let f=0,h=d.length;fK.create(n))}else this.points=[]}scale(e,n,s=new K){return this.points.forEach(o=>o.scale(e,n,s)),this}rotate(e,n){return this.points.forEach(s=>s.rotate(e,n)),this}translate(e,n){const s=K.create(e,n);return this.points.forEach(o=>o.translate(s.x,s.y)),this}round(e=0){return this.points.forEach(n=>n.round(e)),this}bbox(){if(this.points.length===0)return new Ne;let e=1/0,n=-1/0,s=1/0,o=-1/0;const i=this.points;for(let l=0,a=i.length;ln&&(n=u),do&&(o=d)}return new Ne(e,s,n-e,o-s)}closestPoint(e){const n=this.closestPointLength(e);return this.pointAtLength(n)}closestPointLength(e){const n=this.points,s=n.length;if(s===0||s===1)return 0;let o=0,i=0,l=1/0;for(let a=0,c=s-1;af.y||o>d.y&&o<=f.y){const p=d.x-s>f.x-s?d.x-s:f.x-s;if(p>=0){const g=new K(s+p,o),m=new We(e,g);h.intersectsWithLine(m)&&(c+=1)}}a=u}return c%2===1}intersectsWithLine(e){const n=[];for(let s=0,o=this.points.length-1;s0?n:null}isDifferentiable(){for(let e=0,n=this.points.length-1;e=1)return n[s-1].clone();const i=this.length()*e;return this.pointAtLength(i)}pointAtLength(e){const n=this.points,s=n.length;if(s===0)return null;if(s===1)return n[0].clone();let o=!0;e<0&&(o=!1,e=-e);let i=0;for(let a=0,c=s-1;a1&&(e=1);const i=this.length()*e;return this.tangentAtLength(i)}tangentAtLength(e){const n=this.points,s=n.length;if(s===0||s===1)return null;let o=!0;e<0&&(o=!1,e=-e);let i,l=0;for(let a=0,c=s-1;as.x)&&(s=e[h]);const o=[];for(let h=0;h{let g=h[2]-p[2];return g===0&&(g=p[1]-h[1]),g}),o.length>2){const h=o[o.length-1];o.unshift(h)}const i={},l=[],a=h=>`${h[0].toString()}@${h[1]}`;for(;o.length!==0;){const h=o.pop(),p=h[0];if(i[a(h)])continue;let g=!1;for(;!g;)if(l.length<2)l.push(h),g=!0;else{const m=l.pop(),v=m[0],b=l.pop(),C=b[0],y=C.cross(v,p);if(y<0)l.push(b),l.push(m),l.push(h),g=!0;else if(y===0){const x=v.angleBetween(C,p);Math.abs(x-180)<1e-10||v.equals(p)||C.equals(v)?(i[a(m)]=v,l.push(b)):Math.abs((x+1)%360-1)<1e-10&&(l.push(b),o.push(m))}else i[a(m)]=v,l.push(b)}}l.length>2&&l.pop();let c,u=-1;for(let h=0,p=l.length;h0){const h=l.slice(u),p=l.slice(0,u);d=h.concat(p)}else d=l;const f=[];for(let h=0,p=d.length;hn.equals(this.points[s]))}clone(){return new dn(this.points.map(e=>e.clone()))}toJSON(){return this.points.map(e=>e.toJSON())}serialize(){return this.points.map(e=>`${e.serialize()}`).join(" ")}}(function(r){function e(n){return n!=null&&n instanceof r}r.isPolyline=e})(dn||(dn={}));(function(r){function e(n){const s=n.trim();if(s==="")return new r;const o=[],i=s.split(/\s*,\s*|\s+/);for(let l=0,a=i.length;l0&&C<1&&p.push(C);continue}x=v*v-4*b*m,E=Math.sqrt(x),!(x<0)&&(y=(-v+E)/(2*m),y>0&&y<1&&p.push(y),w=(-v-E)/(2*m),w>0&&w<1&&p.push(w))}let _,M,A,k=p.length;const P=k;for(;k;)k-=1,C=p[k],A=1-C,_=A*A*A*i+3*A*A*C*a+3*A*C*C*u+C*C*C*f,g[0][k]=_,M=A*A*A*l+3*A*A*C*c+3*A*C*C*d+C*C*C*h,g[1][k]=M;p[P]=0,p[P+1]=1,g[0][P]=i,g[1][P]=l,g[0][P+1]=f,g[1][P+1]=h,p.length=P+2,g[0].length=P+2,g[1].length=P+2;const $=Math.min.apply(null,g[0]),B=Math.min.apply(null,g[1]),W=Math.max.apply(null,g[0]),I=Math.max.apply(null,g[1]);return new Ne($,B,W-$,I-B)}closestPoint(e,n={}){return this.pointAtT(this.closestPointT(e,n))}closestPointLength(e,n={}){const s=this.getOptions(n);return this.lengthAtT(this.closestPointT(e,s),s)}closestPointNormalizedLength(e,n={}){const s=this.getOptions(n),o=this.closestPointLength(e,s);if(!o)return 0;const i=this.length(s);return i===0?0:o/i}closestPointT(e,n={}){const s=this.getPrecision(n),o=this.getDivisions(n),i=Math.pow(10,-s);let l=null,a=0,c=0,u=0,d=0,f=0,h=null;const p=o.length;let g=p>0?1/p:0;for(o.forEach((m,v)=>{const b=m.start.distance(e),C=m.end.distance(e),y=b+C;(h==null||y=1)return this.divideAtT(1);const s=this.tAt(e,n);return this.divideAtT(s)}divideAtLength(e,n={}){const s=this.tAtLength(e,n);return this.divideAtT(s)}divide(e){return this.divideAtT(e)}divideAtT(e){const n=this.start,s=this.controlPoint1,o=this.controlPoint2,i=this.end;if(e<=0)return[new nn(n,n,n,n),new nn(n,s,o,i)];if(e>=1)return[new nn(n,s,o,i),new nn(i,i,i,i)];const l=this.getSkeletonPoints(e),a=l.startControlPoint1,c=l.startControlPoint2,u=l.divider,d=l.dividerControlPoint1,f=l.dividerControlPoint2;return[new nn(n,a,c,u),new nn(u,d,f,i)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const n=this.start,s=this.controlPoint1,o=this.controlPoint2,i=this.end;if(e<=0)return{startControlPoint1:n.clone(),startControlPoint2:n.clone(),divider:n.clone(),dividerControlPoint1:s.clone(),dividerControlPoint2:o.clone()};if(e>=1)return{startControlPoint1:s.clone(),startControlPoint2:o.clone(),divider:i.clone(),dividerControlPoint1:i.clone(),dividerControlPoint2:i.clone()};const l=new We(n,s).pointAt(e),a=new We(s,o).pointAt(e),c=new We(o,i).pointAt(e),u=new We(l,a).pointAt(e),d=new We(a,c).pointAt(e),f=new We(u,d).pointAt(e);return{startControlPoint1:l,startControlPoint2:u,divider:f,dividerControlPoint1:d,dividerControlPoint2:c}}getSubdivisions(e={}){const n=this.getPrecision(e);let s=[new nn(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(n===0)return s;let o=this.endpointDistance();const i=Math.pow(10,-n);let l=0;for(;;){l+=1;const a=[];s.forEach(d=>{const f=d.divide(.5);a.push(f[0],f[1])});const c=a.reduce((d,f)=>d+f.endpointDistance(),0),u=c!==0?(c-o)/c:0;if(l>1&&us+o.endpointDistance(),0)}lengthAtT(e,n={}){if(e<=0)return 0;const s=n.precision===void 0?this.PRECISION:n.precision;return this.divide(e)[0].length({precision:s})}pointAt(e,n={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const s=this.tAt(e,n);return this.pointAtT(s)}pointAtLength(e,n={}){const s=this.tAtLength(e,n);return this.pointAtT(s)}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,s=this.controlPoint2,o=this.end;return!(e.equals(n)&&n.equals(s)&&s.equals(o))}tangentAt(e,n={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const s=this.tAt(e,n);return this.tangentAtT(s)}tangentAtLength(e,n={}){if(!this.isDifferentiable())return null;const s=this.tAtLength(e,n);return this.tangentAtT(s)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const n=this.getSkeletonPoints(e),s=n.startControlPoint2,o=n.dividerControlPoint1,i=n.divider,l=new We(s,o);return l.translate(i.x-s.x,i.y-s.y),l}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),s=this.getDivisions(e);return{precision:n,subdivisions:s}}tAt(e,n={}){if(e<=0)return 0;if(e>=1)return 1;const s=this.getOptions(n),i=this.length(s)*e;return this.tAtLength(i,s)}tAtLength(e,n={}){let s=!0;e<0&&(s=!1,e=-e);const o=this.getPrecision(n),i=this.getDivisions(n),l={precision:o,subdivisions:i};let a=null,c,u,d=0,f=0,h=0;const p=i.length;let g=p>0?1/p:0;for(let b=0;bs.push(o.end.clone())),s}toPolyline(e={}){return new dn(this.toPoints(e))}scale(e,n,s){return this.start.scale(e,n,s),this.controlPoint1.scale(e,n,s),this.controlPoint2.scale(e,n,s),this.end.scale(e,n,s),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 nn(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(r){function e(n){return n!=null&&n instanceof r}r.isCurve=e})(nn||(nn={}));(function(r){function e(o){const i=o.length,l=[],a=[];let c=2;l[0]=o[0]/c;for(let u=1;uK.clone(h)),l=[],a=[],c=i.length-1;if(c===1)return l[0]=new K((2*i[0].x+i[1].x)/3,(2*i[0].y+i[1].y)/3),a[0]=new K(2*l[0].x-i[0].x,2*l[0].y-i[0].y),[l,a];const u=[];for(let h=1;h=1?s:s*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 nr extends Cg{constructor(e,n){super(),We.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=K.create(e,n).round(2)}get type(){return"L"}get line(){return new We(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 nr(n[0]),new nr(n[1])]}divideAtLength(e){const n=this.line.divideAtLength(e);return[new nr(n[0]),new nr(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 nr(this.end)}scale(e,n,s){return this.end.scale(e,n,s),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(r){function e(...n){const s=n.length,o=n[0];if(We.isLine(o))return new r(o);if(K.isPointLike(o))return s===1?new r(o):n.map(l=>new r(l));if(s===2)return new r(+n[0],+n[1]);const i=[];for(let l=0;l1&&(R=Math.sqrt(R),n=R*n,s=R*s);const U=n*n,Q=s*s,q=(i===l?-1:1)*Math.sqrt(Math.abs((U*Q-U*I*I-Q*W*W)/(U*I*I+Q*W*W)));v=q*n*I/s+(r+a)/2,b=q*-s*W/n+(e+c)/2,g=Math.asin((e-b)/s),m=Math.asin((c-b)/s),g=rm&&(g-=Math.PI*2),!l&&m>g&&(m-=Math.PI*2)}let C=m-g;if(Math.abs(C)>d){const W=m,I=a,R=c;m=g+d*(l&&m>g?1:-1),a=v+n*Math.cos(m),c=b+s*Math.sin(m),h=tP(a,c,n,s,o,0,l,I,R,[m,W,v,b])}C=m-g;const y=Math.cos(g),w=Math.sin(g),x=Math.cos(m),E=Math.sin(m),_=Math.tan(C/4),M=4/3*(n*_),A=4/3*(s*_),k=[r,e],P=[r+M*w,e-A*y],$=[a+M*E,c-A*x],B=[a,c];if(P[0]=2*k[0]-P[0],P[1]=2*k[1]-P[1],u)return[P,$,B].concat(h);{h=[P,$,B].concat(h).join().split(",");const W=[],I=h.length;for(let R=0;R{const u=[];let d=a.toLowerCase();c.replace(s,(h,p)=>(p&&u.push(+p),h)),d==="m"&&u.length>2&&(i.push([a,...u.splice(0,2)]),d="l",a=a==="m"?"l":"L");const f=o[d];for(;u.length>=f&&(i.push([a,...u.splice(0,f)]),!!f););return l}),i}function eoe(r){const e=Qse(r);if(!e||!e.length)return[["M",0,0]];let n=0,s=0,o=0,i=0;const l=[];for(let a=0,c=e.length;a7){c[u].shift();const d=c[u];for(;d.length;)i[u]="A",u+=1,c.splice(u,0,["C"].concat(d.splice(0,6)));c.splice(u,1),a=e.length}}const i=[];let l="",a=e.length;for(let c=0;c0&&(l=i[c-1])),e[c]=s(e[c],n,l),i[c]!=="A"&&u==="C"&&(i[c]="C"),o(e,c);const d=e[c],f=d.length;n.x=d[f-2],n.y=d[f-1],n.bx=parseFloat(d[f-4])||n.x,n.by=parseFloat(d[f-3])||n.y}return(!e[0][0]||e[0][0]!=="M")&&e.unshift(["M",0,0]),e}function noe(r){return toe(r).map(e=>e.map(n=>typeof n=="string"?n:zt.round(n,2))).join(",").split(",").join(" ")}class Ze extends dl{constructor(e){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(e))if(We.isLine(e[0])||nn.isCurve(e[0])){let n=null;e.forEach((o,i)=>{i===0&&this.appendSegment(Ze.createSegment("M",o.start)),n!=null&&!n.end.equals(o.start)&&this.appendSegment(Ze.createSegment("M",o.start)),We.isLine(o)?this.appendSegment(Ze.createSegment("L",o.end)):nn.isCurve(o)&&this.appendSegment(Ze.createSegment("C",o.controlPoint1,o.controlPoint2,o.end)),n=o})}else e.forEach(s=>{s.isSegment&&this.appendSegment(s)});else e!=null&&(We.isLine(e)?(this.appendSegment(Ze.createSegment("M",e.start)),this.appendSegment(Ze.createSegment("L",e.end))):nn.isCurve(e)?(this.appendSegment(Ze.createSegment("M",e.start)),this.appendSegment(Ze.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):dn.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((n,s)=>{const o=s===0?Ze.createSegment("M",n):Ze.createSegment("L",n);this.appendSegment(o)}):e.isSegment&&this.appendSegment(e))}get start(){const e=this.segments,n=e.length;if(n===0)return null;for(let s=0;s=0;s-=1){const o=e[s];if(o.isVisible)return o.end}return e[n-1].end}moveTo(...e){return this.appendSegment(Nc.create.call(null,...e))}lineTo(...e){return this.appendSegment(nr.create.call(null,...e))}curveTo(...e){return this.appendSegment(Kr.create.call(null,...e))}arcTo(e,n,s,o,i,l,a){const c=this.end||new K,u=typeof l=="number"?cp(c.x,c.y,e,n,s,o,i,l,a):cp(c.x,c.y,e,n,s,o,i,l.x,l.y);if(u!=null)for(let d=0,f=u.length;ds||e<0)throw new Error("Index out of range.");let o,i=null,l=null;if(s!==0&&(e>=1?(i=this.segments[e-1],l=i.nextSegment):(i=null,l=this.segments[0])),!Array.isArray(n))o=this.prepareSegment(n,i,l),this.segments.splice(e,0,o);else for(let a=0,c=n.length;a=n||s<0)throw new Error("Index out of range.");return s}segmentAt(e,n={}){const s=this.segmentIndexAt(e,n);return s?this.getSegment(s):null}segmentAtLength(e,n={}){const s=this.segmentIndexAtLength(e,n);return s?this.getSegment(s):null}segmentIndexAt(e,n={}){if(this.segments.length===0)return null;const s=zt.clamp(e,0,1),o=this.getOptions(n),l=this.length(o)*s;return this.segmentIndexAtLength(l,o)}segmentIndexAtLength(e,n={}){const s=this.segments.length;if(s===0)return null;let o=!0;e<0&&(o=!1,e=-e);const i=this.getPrecision(n),l=this.getSubdivisions(n);let a=0,c=null;for(let u=0;u=1)return this.end.clone();const s=this.getOptions(n),i=this.length(s)*e;return this.pointAtLength(i,s)}pointAtLength(e,n={}){if(this.segments.length===0)return null;if(e===0)return this.start.clone();let s=!0;e<0&&(s=!1,e=-e);const o=this.getPrecision(n),i=this.getSubdivisions(n);let l,a=0;for(let u=0,d=this.segments.length;u=s)return n[s-1].pointAtT(1);const i=zt.clamp(e.value,0,1);return n[o].pointAtT(i)}divideAt(e,n={}){if(this.segments.length===0)return null;const s=zt.clamp(e,0,1),o=this.getOptions(n),l=this.length(o)*s;return this.divideAtLength(l,o)}divideAtLength(e,n={}){if(this.segments.length===0)return null;let s=!0;e<0&&(s=!1,e=-e);const o=this.getPrecision(n),i=this.getSubdivisions(n);let l=0,a,c,u,d,f;for(let x=0,E=this.segments.length;x=s&&(o=s-1,i=1);const l=this.getPrecision(n),a=this.getSubdivisions(n);let c=0;for(let f=0;f=n)return this.segments[n-1].tangentAtT(1);const o=zt.clamp(e.value,0,1);return this.segments[s].tangentAtT(o)}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),s=this.getSubdivisions(e);return{precision:n,segmentSubdivisions:s}}toPoints(e={}){const n=this.segments,s=n.length;if(s===0)return null;const o=this.getSubdivisions(e),i=[];let l=[];for(let a=0;a0?u.forEach(d=>l.push(d.start)):l.push(c.start)}else l.length>0&&(l.push(n[a-1].end),i.push(l),l=[])}return l.length>0&&(l.push(this.end),i.push(l)),i}toPolylines(e={}){const n=this.toPoints(e);return n?n.map(s=>new dn(s)):null}scale(e,n,s){return this.segments.forEach(o=>o.scale(e,n,s)),this}rotate(e,n){return this.segments.forEach(s=>s.rotate(e,n)),this}translate(e,n){return typeof e=="number"?this.segments.forEach(s=>s.translate(e,n)):this.segments.forEach(s=>s.translate(e)),this}clone(){const e=new Ze;return this.segments.forEach(n=>e.appendSegment(n.clone())),e}equals(e){if(e==null)return!1;const n=this.segments,s=e.segments,o=n.length;if(s.length!==o)return!1;for(let i=0;ie.toJSON())}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map(e=>e.serialize()).join(" ")}toString(){return this.serialize()}}(function(r){function e(n){return n!=null&&n instanceof r}r.isPath=e})(Ze||(Ze={}));(function(r){function e(s){if(!s)return new r;const o=new r,i=/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g,l=r.normalize(s).match(i);if(l!=null)for(let a=0,c=l.length;a+m),g=n.call(null,h,...p);o.appendSegment(g)}}return o}r.parse=e;function n(s,...o){if(s==="M")return Nc.create.call(null,...o);if(s==="L")return nr.create.call(null,...o);if(s==="C")return Kr.create.call(null,...o);if(s==="z"||s==="Z")return Pc.create();throw new Error(`Invalid path segment type "${s}"`)}r.createSegment=n})(Ze||(Ze={}));(function(r){r.normalize=noe,r.isValid=Jse,r.drawArc=Zse,r.drawPoints=eP,r.arcToCurves=cp})(Ze||(Ze={}));class gn{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,s=!1){if(typeof e=="object"){Object.entries(e).forEach(([l,a])=>{this.register(l,a,n)});return}this.exist(e)&&!s&&!qi.isApplyingHMR()&&this.onDuplicated(e);const o=this.options.process,i=o?ht(o,this,e,n):n;return this.data[e]=i,i}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&&ht(this.options.onConflict,this,e),new Error(`${Ih(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 s=this.getSpellingSuggestionForName(e),o=n?`${n} ${b5(this.options.type)}`:this.options.type;return`${Ih(o)} with name '${e}' does not exist.${s?` Did you mean '${s}'?`:""}`}getSpellingSuggestionForName(e){return tse(e,Object.keys(this.data),n=>n)}}(function(r){function e(n){return new r(n)}r.create=e})(gn||(gn={}));const roe={color:"#aaaaaa",thickness:1,markup:"rect",update(r,e){const n=e.thickness*e.sx,s=e.thickness*e.sy;Ut(r,{width:n,height:s,rx:n,ry:s,fill:e.color})}},soe={color:"#aaaaaa",thickness:1,markup:"rect",update(r,e){const n=e.sx<=1?e.thickness*e.sx:e.thickness;Ut(r,{width:n,height:n,rx:n,ry:n,fill:e.color})}},ooe={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(r,e){let n;const s=e.width,o=e.height,i=e.thickness;s-i>=0&&o-i>=0?n=["M",s,0,"H0 M0 0 V0",o].join(" "):n="M 0 0 0 0",Ut(r,{d:n,stroke:e.color,"stroke-width":e.thickness})}},ioe=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(r,e){let n;const s=e.width,o=e.height,i=e.thickness;s-i>=0&&o-i>=0?n=["M",s,0,"H0 M0 0 V0",o].join(" "):n="M 0 0 0 0",Ut(r,{d:n,stroke:e.color,"stroke-width":e.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(r,e){let n;const s=e.factor||1,o=e.width*s,i=e.height*s,l=e.thickness;o-l>=0&&i-l>=0?n=["M",o,0,"H0 M0 0 V0",i].join(" "):n="M 0 0 0 0",e.width=o,e.height=i,Ut(r,{d:n,stroke:e.color,"stroke-width":e.thickness})}}],loe=Object.freeze(Object.defineProperty({__proto__:null,dot:roe,doubleMesh:ioe,fixedDot:soe,mesh:ooe},Symbol.toStringTag,{value:"Module"}));class Ii{constructor(){this.patterns={},this.root=ut.create(op(),{width:"100%",height:"100%"},[Us("defs")]).node}add(e,n){const s=this.root.childNodes[0];s&&s.appendChild(n),this.patterns[e]=n,ut.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(r){r.presets=loe,r.registry=gn.create({type:"grid"}),r.registry.register(r.presets,!0)})(Ii||(Ii={}));const nP=function(r){const e=document.createElement("canvas"),n=r.width,s=r.height;e.width=n*2,e.height=s;const o=e.getContext("2d");return o.drawImage(r,0,0,n,s),o.translate(2*n,0),o.scale(-1,1),o.drawImage(r,0,0,n,s),e},rP=function(r){const e=document.createElement("canvas"),n=r.width,s=r.height;e.width=n,e.height=s*2;const o=e.getContext("2d");return o.drawImage(r,0,0,n,s),o.translate(0,2*s),o.scale(1,-1),o.drawImage(r,0,0,n,s),e},sP=function(r){const e=document.createElement("canvas"),n=r.width,s=r.height;e.width=2*n,e.height=2*s;const o=e.getContext("2d");return o.drawImage(r,0,0,n,s),o.setTransform(-1,0,0,-1,e.width,e.height),o.drawImage(r,0,0,n,s),o.setTransform(-1,0,0,1,e.width,0),o.drawImage(r,0,0,n,s),o.setTransform(1,0,0,-1,0,e.height),o.drawImage(r,0,0,n,s),e},aoe=function(r,e){const n=r.width,s=r.height,o=document.createElement("canvas");o.width=n*3,o.height=s*3;const i=o.getContext("2d"),l=e.angle!=null?-e.angle:-20,a=Ht.toRad(l),c=o.width/4,u=o.height/4;for(let d=0;d<4;d+=1)for(let f=0;f<4;f+=1)(d+f)%2>0&&(i.setTransform(1,0,0,1,(2*d-1)*c,(2*f-1)*u),i.rotate(a),i.drawImage(r,-n/2,-s/2,n,s));return o},coe=Object.freeze(Object.defineProperty({__proto__:null,flipX:nP,flipXY:sP,flipY:rP,watermark:aoe},Symbol.toStringTag,{value:"Module"}));var kd;(function(r){r.presets=Object.assign({},coe),r.presets["flip-x"]=nP,r.presets["flip-y"]=rP,r.presets["flip-xy"]=sP,r.registry=gn.create({type:"background pattern"}),r.registry.register(r.presets,!0)})(kd||(kd={}));function E0(r,e){return r??e}function Ln(r,e){return r!=null&&Number.isFinite(r)?r:e}function uoe(r={}){const e=E0(r.color,"blue"),n=Ln(r.width,1),s=Ln(r.margin,2),o=Ln(r.opacity,1),i=s,l=s+n;return` - - - - - - - - - - - - `.trim()}function doe(r={}){const e=E0(r.color,"red"),n=Ln(r.blur,0),s=Ln(r.width,1),o=Ln(r.opacity,1);return` - - - - - - - - `.trim()}function foe(r={}){const e=Ln(r.x,2);return` - - - - `.trim()}function hoe(r={}){const e=Ln(r.dx,0),n=Ln(r.dy,0),s=E0(r.color,"black"),o=Ln(r.blur,4),i=Ln(r.opacity,1);return"SVGFEDropShadowElement"in window?` - - `.trim():` - - - - - - - - - - - - `.trim()}function poe(r={}){const e=Ln(r.amount,1),n=.2126+.7874*(1-e),s=.7152-.7152*(1-e),o=.0722-.0722*(1-e),i=.2126-.2126*(1-e),l=.7152+.2848*(1-e),a=.0722-.0722*(1-e),c=.2126-.2126*(1-e),u=.0722+.9278*(1-e);return` - - - - `.trim()}function goe(r={}){const e=Ln(r.amount,1),n=.393+.607*(1-e),s=.769-.769*(1-e),o=.189-.189*(1-e),i=.349-.349*(1-e),l=.686+.314*(1-e),a=.168-.168*(1-e),c=.272-.272*(1-e),u=.534-.534*(1-e),d=.131+.869*(1-e);return` - - - - `.trim()}function moe(r={}){return` - - - - `.trim()}function boe(r={}){return` - - - - `.trim()}function voe(r={}){const e=Ln(r.amount,1),n=1-e;return` - - - - - - - - `.trim()}function yoe(r={}){const e=Ln(r.amount,1);return` - - - - - - - - `.trim()}function woe(r={}){const e=Ln(r.amount,1),n=.5-e/2;return` - - - - - - - - `.trim()}const Coe=Object.freeze(Object.defineProperty({__proto__:null,blur:foe,brightness:yoe,contrast:woe,dropShadow:hoe,grayScale:poe,highlight:doe,hueRotate:boe,invert:voe,outline:uoe,saturate:moe,sepia:goe},Symbol.toStringTag,{value:"Module"}));var Ic;(function(r){r.presets=Coe,r.registry=gn.create({type:"filter"}),r.registry.register(r.presets,!0)})(Ic||(Ic={}));const Soe={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"},xoe={},oP={position:Sg("x","width","origin")},iP={position:Sg("y","height","origin")},Eoe={position:Sg("x","width","corner")},Toe={position:Sg("y","height","corner")},lP={set:Ki("width","width")},aP={set:Ki("height","height")},_oe={set:Ki("rx","width")},Ooe={set:Ki("ry","height")},cP={set:(r=>{const e=Ki(r,"width"),n=Ki(r,"height");return function(s,o){const i=o.refBBox,l=i.height>i.width?e:n;return ht(l,this,s,o)}})("r")},Aoe={set(r,{refBBox:e}){let n=parseFloat(r);const s=jo(r);s&&(n/=100);const o=Math.sqrt(e.height*e.height+e.width*e.width);let i;return Number.isFinite(n)&&(s||n>=0&&n<=1?i=n*o:i=Math.max(n+o,0)),{r:i}}},Moe={set:Ki("cx","width")},koe={set:Ki("cy","height")},uP={set:hP({resetOffset:!0})},Poe={set:hP({resetOffset:!1})},dP={set:pP({resetOffset:!0})},Noe={set:pP({resetOffset:!1})},Ioe=cP,Loe=uP,Roe=dP,$oe=oP,Doe=iP,Voe=lP,Foe=aP;function Sg(r,e,n){return(s,{refBBox:o})=>{if(s==null)return null;let i=parseFloat(s);const l=jo(s);l&&(i/=100);let a;if(Number.isFinite(i)){const u=o[n];l||i>0&&i<1?a=u[r]+o[e]*i:a=u[r]+i}const c=new K;return c[r]=a||0,c}}function Ki(r,e){return function(n,{refBBox:s}){let o=parseFloat(n);const i=jo(n);i&&(o/=100);const l={};if(Number.isFinite(o)){const a=i||o>=0&&o<=1?o*s[e]:Math.max(o+s[e],0);l[r]=a}return l}}function fP(r,e){const n="x6-shape",s=e&&e.resetOffset;return function(o,{elem:i,refBBox:l}){let a=aa(i,n);if(!a||a.value!==o){const m=r(o);a={value:o,shape:m,shapeBBox:m.bbox()},aa(i,n,a)}const c=a.shape.clone(),u=a.shapeBBox.clone(),d=u.getOrigin(),f=l.getOrigin();u.x=f.x,u.y=f.y;const h=l.getMaxScaleToFit(u,f),p=u.width===0||l.width===0?1:h.sx,g=u.height===0||l.height===0?1:h.sy;return c.scale(p,g,d),s&&c.translate(-d.x,-d.y),c}}function hP(r){function e(s){return Ze.parse(s)}const n=fP(e,r);return(s,o)=>({d:n(s,o).serialize()})}function pP(r){const e=fP(n=>new dn(n),r);return(n,s)=>({points:e(n,s).serialize()})}const Boe={qualify:po,set(r,{view:e}){return`url(#${e.graph.defineGradient(r)})`}},zoe={qualify:po,set(r,{view:e}){const n=e.cell,s=Object.assign({},r);if(n.isEdge()&&s.type==="linearGradient"){const o=e,i=o.sourcePoint,l=o.targetPoint;s.id=`gradient-${s.type}-${n.id}`,s.attrs=Object.assign(Object.assign({},s.attrs),{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:"userSpaceOnUse"}),e.graph.defs.remove(s.id)}return`url(#${e.graph.defineGradient(s)})`}},gP={qualify(r,{attrs:e}){return e.textWrap==null||!po(e.textWrap)},set(r,{view:e,elem:n,attrs:s}){const o="x6-text",i=aa(n,o),l=d=>{try{return JSON.parse(d)}catch{return d}},a={x:s.x,eol:s.eol,annotations:l(s.annotations),textPath:l(s["text-path"]||s.textPath),textVerticalAnchor:s["text-vertical-anchor"]||s.textVerticalAnchor,displayEmpty:(s["display-empty"]||s.displayEmpty)==="true",lineHeight:s["line-height"]||s.lineHeight},c=s["font-size"]||s.fontSize,u=JSON.stringify([r,a]);if(c&&n.setAttribute("font-size",c),i==null||i!==u){const d=a.textPath;if(d!=null&&typeof d=="object"){const f=d.selector;if(typeof f=="string"){const h=e.find(f)[0];h instanceof SVGPathElement&&(y0(h),a.textPath=Object.assign({"xlink:href":`#${h.id}`},d))}}qk(n,`${r}`,a),aa(n,o,u)}}},joe={qualify:po,set(r,{view:e,elem:n,attrs:s,refBBox:o}){const i=r,l=i.width||0;jo(l)?o.width*=parseFloat(l)/100:l<=0?o.width+=l:o.width=l;const a=i.height||0;jo(a)?o.height*=parseFloat(a)/100:a<=0?o.height+=a:o.height=a;let c,u=i.text;u==null&&(u=s.text||(n==null?void 0:n.textContent)),u!=null?c=Gk(`${u}`,o,{"font-weight":s["font-weight"]||s.fontWeight,"font-size":s["font-size"]||s.fontSize,"font-family":s["font-family"]||s.fontFamily,lineHeight:s.lineHeight},{ellipsis:i.ellipsis}):c="",ht(gP.set,this,c,{view:e,elem:n,attrs:s,refBBox:o,cell:e.cell})}},su=(r,{attrs:e})=>e.text!==void 0,Hoe={qualify:su},Uoe={qualify:su},Woe={qualify:su},qoe={qualify:su},Goe={qualify:su},Koe={qualify:su},Yoe={qualify(r,{elem:e}){return e instanceof SVGElement},set(r,{elem:e}){const n="x6-title",s=`${r}`,o=aa(e,n);if(o==null||o!==s){aa(e,n,s);const i=e.firstChild;if(i&&i.tagName.toUpperCase()==="TITLE"){const l=i;l.textContent=s}else{const l=document.createElementNS(e.namespaceURI,"title");l.textContent=s,e.insertBefore(l,i)}}}},Joe={offset:mP("x","width","right")},Xoe={offset:mP("y","height","bottom")},Zoe={offset(r,{refBBox:e}){return r?{x:-e.x,y:-e.y}:{x:0,y:0}}};function mP(r,e,n){return(s,{refBBox:o})=>{const i=new K;let l;return s==="middle"?l=o[e]/2:s===n?l=o[e]:typeof s=="number"&&Number.isFinite(s)?l=s>-1&&s<1?-o[e]*s:-s:jo(s)?l=o[e]*parseFloat(s)/100:l=0,i[r]=-(o[r]+l),i}}const Qoe={qualify:po,set(r,{elem:e}){pf(e,r)}},eie={set(r,{elem:e}){e.innerHTML=`${r}`}},tie={qualify:po,set(r,{view:e}){return`url(#${e.graph.defineFilter(r)})`}},nie={set(r){return r!=null&&typeof r=="object"&&r.id?r.id:r}};function fl(r,e,n){let s,o;typeof e=="object"?(s=e.x,o=e.y):(s=e,o=n);const i=Ze.parse(r),l=i.bbox();if(l){let a=-l.height/2-l.y,c=-l.width/2-l.x;typeof s=="number"&&(c-=s),typeof o=="number"&&(a-=o),i.translate(c,a)}return i.serialize()}var bP=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var{size:e,width:n,height:s,offset:o,open:i}=r,l=bP(r,["size","width","height","offset","open"]);return vP({size:e,width:n,height:s,offset:o},i===!0,!0,void 0,l)},sie=r=>{var{size:e,width:n,height:s,offset:o,factor:i}=r,l=bP(r,["size","width","height","offset","factor"]);return vP({size:e,width:n,height:s,offset:o},!1,!1,i,l)};function vP(r,e,n,s=3/4,o={}){const i=r.size||10,l=r.width||i,a=r.height||i,c=new Ze,u={};if(e)c.moveTo(l,0).lineTo(0,a/2).lineTo(l,a),u.fill="none";else{if(c.moveTo(0,a/2),c.lineTo(l,0),!n){const d=Zr(s,0,1);c.lineTo(l*d,a/2)}c.lineTo(l,a),c.close()}return Object.assign(Object.assign(Object.assign({},u),o),{tagName:"path",d:fl(c.serialize(),{x:r.offset!=null?r.offset:-l/2})})}var oie=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var{size:e,width:n,height:s,offset:o}=r,i=oie(r,["size","width","height","offset"]);const l=e||10,a=n||l,c=s||l,u=new Ze;return u.moveTo(0,c/2).lineTo(a/2,0).lineTo(a,c/2).lineTo(a/2,c).close(),Object.assign(Object.assign({},i),{tagName:"path",d:fl(u.serialize(),o??-a/2)})};var lie=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var{d:e,offsetX:n,offsetY:s}=r,o=lie(r,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},o),{tagName:"path",d:fl(e,n,s)})};var cie=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var{size:e,width:n,height:s,offset:o}=r,i=cie(r,["size","width","height","offset"]);const l=e||10,a=n||l,c=s||l,u=new Ze;return u.moveTo(0,0).lineTo(a,c).moveTo(0,c).lineTo(a,0),Object.assign(Object.assign({},i),{tagName:"path",fill:"none",d:fl(u.serialize(),o||-a/2)})};var die=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var{width:e,height:n,offset:s,open:o,flip:i}=r,l=die(r,["width","height","offset","open","flip"]);let a=n||6;const c=e||10,u=o===!0,d=i===!0,f=Object.assign(Object.assign({},l),{tagName:"path"});d&&(a=-a);const h=new Ze;return h.moveTo(0,a).lineTo(c,0),u?f.fill="none":(h.lineTo(c,a),h.close()),f.d=fl(h.serialize(),{x:s||-c/2,y:a/2}),f};var yP=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var{r:e}=r,n=yP(r,["r"]);const s=e||5;return Object.assign(Object.assign({cx:s},n),{tagName:"circle",r:s})},hie=r=>{var{r:e}=r,n=yP(r,["r"]);const s=e||5,o=new Ze;return o.moveTo(s,0).lineTo(s,s*2),o.moveTo(0,s).lineTo(s*2,s),{children:[Object.assign(Object.assign({},wP({r:s})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:fl(o.serialize(),-s)})]}};var pie=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var{rx:e,ry:n}=r,s=pie(r,["rx","ry"]);const o=e||5,i=n||5;return Object.assign(Object.assign({cx:o},s),{tagName:"ellipse",rx:o,ry:i})},mie=Object.freeze(Object.defineProperty({__proto__:null,async:fie,block:rie,circle:wP,circlePlus:hie,classic:sie,cross:uie,diamond:iie,ellipse:gie,path:aie},Symbol.toStringTag,{value:"Module"}));var Yi;(function(r){r.presets=mie,r.registry=gn.create({type:"marker"}),r.registry.register(r.presets,!0)})(Yi||(Yi={}));(function(r){r.normalize=fl})(Yi||(Yi={}));var bie=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o1){const l=Math.ceil(i/2);n.refX=e==="marker-start"?l:-l}}return n}const gf=(r,{view:e})=>e.cell.isEdge(),Sie={qualify:gf,set(r,e){var n,s,o,i;const l=e.view,a=r.reverse||!1,c=r.stubs||0;let u;if(Number.isFinite(c)&&c!==0)if(a){let d,f;const h=l.getConnectionLength()||0;c<0?(d=(h+c)/2,f=-c):(d=c,f=h-c*2);const p=l.getConnection();u=(i=(o=(s=(n=p==null?void 0:p.divideAtLength(d))===null||n===void 0?void 0:n[1])===null||s===void 0?void 0:s.divideAtLength(f))===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.serialize()}else{let d;c<0?d=((l.getConnectionLength()||0)+c)/2:d=c;const f=l.getConnection();if(f){const h=f.divideAtLength(d),p=f.divideAtLength(-d);h&&p&&(u=`${h[0].serialize()} ${p[1].serialize()}`)}}return{d:u||l.getConnectionPathData()}}},CP={qualify:gf,set:xg("getTangentAtLength",{rotate:!0})},xie={qualify:gf,set:xg("getTangentAtLength",{rotate:!1})},SP={qualify:gf,set:xg("getTangentAtRatio",{rotate:!0})},Eie={qualify:gf,set:xg("getTangentAtRatio",{rotate:!1})},Tie=CP,_ie=SP;function xg(r,e){const n={x:1,y:0};return(s,o)=>{let i,l;const a=o.view,c=a[r](Number(s));return c?(l=e.rotate?c.vector().vectorAngle(n):0,i=c.start):(i=a.path.start,l=0),l===0?{transform:`translate(${i.x},${i.y}')`}:{transform:`translate(${i.x},${i.y}') rotate(${l})`}}}const Oie=Object.freeze(Object.defineProperty({__proto__:null,annotations:qoe,atConnectionLength:Tie,atConnectionLengthIgnoreGradient:xie,atConnectionLengthKeepGradient:CP,atConnectionRatio:_ie,atConnectionRatioIgnoreGradient:Eie,atConnectionRatioKeepGradient:SP,connection:Sie,displayEmpty:Koe,eol:Goe,fill:Boe,filter:tie,html:eie,lineHeight:Hoe,port:nie,ref:xoe,refCx:Moe,refCy:koe,refD:Loe,refDKeepOffset:Poe,refDResetOffset:uP,refDx:Eoe,refDy:Toe,refHeight:aP,refHeight2:Foe,refPoints:Roe,refPointsKeepOffset:Noe,refPointsResetOffset:dP,refR:Ioe,refRCircumscribed:Aoe,refRInscribed:cP,refRx:_oe,refRy:Ooe,refWidth:lP,refWidth2:Voe,refX:oP,refX2:$oe,refY:iP,refY2:Doe,resetOffset:Zoe,sourceMarker:vie,stroke:zoe,style:Qoe,targetMarker:yie,text:gP,textPath:Woe,textVerticalAnchor:Uoe,textWrap:joe,title:Yoe,vertexMarker:wie,xAlign:Joe,yAlign:Xoe},Symbol.toStringTag,{value:"Module"}));var fo;(function(r){function e(n,s,o){return!!(n!=null&&(typeof n=="string"||typeof n.qualify!="function"||ht(n.qualify,this,s,o)))}r.isValidDefinition=e})(fo||(fo={}));(function(r){r.presets=Object.assign(Object.assign({},Soe),Oie),r.registry=gn.create({type:"attribute definition"}),r.registry.register(r.presets,!0)})(fo||(fo={}));const Fs={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,prefix(r){return`${Fs.prefixCls}-${r}`}},sE=Fs.prefix("highlighted"),Aie={highlight(r,e,n){const s=n&&n.className||sE;Nt(e,s)},unhighlight(r,e,n){const s=n&&n.className||sE;es(e,s)}},oE=Fs.prefix("highlight-opacity"),Mie={highlight(r,e){Nt(e,oE)},unhighlight(r,e){es(e,oE)}};var Vt;(function(r){r.normalizeMarker=fl;function e(h,p){const g=$se(h.x,h.y).matrixTransform(p);return new K(g.x,g.y)}r.transformPoint=e;function n(h,p){return new We(e(h.start,p),e(h.end,p))}r.transformLine=n;function s(h,p){let g=h instanceof dn?h.points:h;return Array.isArray(g)||(g=[]),new dn(g.map(m=>e(m,p)))}r.transformPolyline=s;function o(h,p){const m=Us("svg").createSVGPoint();m.x=h.x,m.y=h.y;const v=m.matrixTransform(p);m.x=h.x+h.width,m.y=h.y;const b=m.matrixTransform(p);m.x=h.x+h.width,m.y=h.y+h.height;const C=m.matrixTransform(p);m.x=h.x,m.y=h.y+h.height;const y=m.matrixTransform(p),w=Math.min(v.x,b.x,C.x,y.x),x=Math.max(v.x,b.x,C.x,y.x),E=Math.min(v.y,b.y,C.y,y.y),_=Math.max(v.y,b.y,C.y,y.y);return new Ne(w,E,x-w,_-E)}r.transformRectangle=o;function i(h,p,g){let m;const v=h.ownerSVGElement;if(!v)return new Ne(0,0,0,0);try{m=h.getBBox()}catch{m={x:h.clientLeft,y:h.clientTop,width:h.clientWidth,height:h.clientHeight}}if(p)return Ne.create(m);const b=Gu(h,g||v);return o(m,b)}r.bbox=i;function l(h,p={}){let g;if(!h.ownerSVGElement||!Gi(h)){if(Yx(h)){const{left:C,top:y,width:w,height:x}=a(h);return new Ne(C,y,w,x)}return new Ne(0,0,0,0)}let v=p.target;if(!p.recursive){try{g=h.getBBox()}catch{g={x:h.clientLeft,y:h.clientTop,width:h.clientWidth,height:h.clientHeight}}if(!v)return Ne.create(g);const C=Gu(h,v);return o(g,C)}{const C=h.childNodes,y=C.length;if(y===0)return l(h,{target:v});v||(v=h);for(let w=0;w{const m=h.getAttribute(g),v=m?parseFloat(m):0;return Number.isNaN(v)?0:v};switch(h instanceof SVGElement&&h.nodeName.toLowerCase()){case"rect":return new Ne(p("x"),p("y"),p("width"),p("height"));case"circle":return new Vs(p("cx"),p("cy"),p("r"),p("r"));case"ellipse":return new Vs(p("cx"),p("cy"),p("rx"),p("ry"));case"polyline":{const g=lp(h);return new dn(g)}case"polygon":{const g=lp(h);return g.length>1&&g.push(g[0]),new dn(g)}case"path":{let g=h.getAttribute("d");return Ze.isValid(g)||(g=Ze.normalize(g)),Ze.parse(g)}case"line":return new We(p("x1"),p("y1"),p("x2"),p("y2"))}return l(h)}r.toGeometryShape=c;function u(h,p,g,m){const v=K.create(p),b=K.create(g);m||(m=h instanceof SVGSVGElement?h:h.ownerSVGElement);const C=pv(h);h.setAttribute("transform","");const y=l(h,{target:m}).scale(C.sx,C.sy),w=wu();w.setTranslate(-y.x-y.width/2,-y.y-y.height/2);const x=wu(),E=v.angleBetween(b,v.clone().translate(1,0));E&&x.setRotate(E,0,0);const _=wu(),M=v.clone().move(b,y.width/2);_.setTranslate(2*v.x-M.x,2*v.y-M.y);const A=Gu(h,m),k=wu();k.setMatrix(_.matrix.multiply(x.matrix.multiply(w.matrix.multiply(A.scale(C.sx,C.sy))))),h.setAttribute("transform",ru(k.matrix))}r.translateAndAutoOrient=u;function d(h){if(h==null)return null;let p=h;do{let g=p.tagName;if(typeof g!="string")return null;if(g=g.toUpperCase(),df(p,"x6-port"))p=p.nextElementSibling;else if(g==="G")p=p.firstElementChild;else if(g==="TITLE")p=p.nextElementSibling;else break}while(p);return p}r.findShapeNode=d;function f(h){const p=d(h);if(!Gi(p)){if(Yx(h)){const{left:v,top:b,width:C,height:y}=a(h);return new Ne(v,b,C,y)}return new Ne(0,0,0,0)}return c(p).bbox()||Ne.create()}r.getBBoxV2=f})(Vt||(Vt={}));const kie={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},Pie={highlight(r,e,n){const s=xi.getHighlighterId(e,n);if(xi.hasCache(s))return;n=M_({},n,kie);const o=ut.create(e);let i,l;try{i=o.toPathData()}catch{l=Vt.bbox(o.node,!0),i=Yk(Object.assign(Object.assign({},n),l))}const a=Us("path");if(Ut(a,Object.assign({d:i,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?_d(n.attrs):null)),r.isEdgeElement(e))Ut(a,"d",r.getConnectionPathData());else{let d=o.getTransformToElement(r.container);const f=n.padding;if(f){l==null&&(l=Vt.bbox(o.node,!0));const h=l.x+l.width/2,p=l.y+l.height/2;l=Vt.transformRectangle(l,d);const g=Math.max(l.width,1),m=Math.max(l.height,1),v=(g+f)/g,b=(m+f)/m,C=Bn({a:v,b:0,c:0,d:b,e:h-v*h,f:p-b*p});d=d.multiply(C)}Mc(a,d)}Nt(a,Fs.prefix("highlight-stroke"));const c=r.cell,u=()=>xi.removeHighlighter(s);c.on("removed",u),c.model&&c.model.on("reseted",u),r.container.appendChild(a),xi.setCache(s,a)},unhighlight(r,e,n){xi.removeHighlighter(xi.getHighlighterId(e,n))}};var xi;(function(r){function e(l,a){return y0(l),l.id+JSON.stringify(a)}r.getHighlighterId=e;const n={};function s(l,a){n[l]=a}r.setCache=s;function o(l){return n[l]!=null}r.hasCache=o;function i(l){const a=n[l];a&&(Ac(a),delete n[l])}r.removeHighlighter=i})(xi||(xi={}));const Nie=Object.freeze(Object.defineProperty({__proto__:null,className:Aie,opacity:Mie,stroke:Pie},Symbol.toStringTag,{value:"Module"}));var Do;(function(r){function e(n,s){if(typeof s.highlight!="function")throw new Error(`Highlighter '${n}' is missing required \`highlight()\` method`);if(typeof s.unhighlight!="function")throw new Error(`Highlighter '${n}' is missing required \`unhighlight()\` method`)}r.check=e})(Do||(Do={}));(function(r){r.presets=Nie,r.registry=gn.create({type:"highlighter"}),r.registry.register(r.presets,!0)})(Do||(Do={}));function bv(r,e={}){return new K(Ns(e.x,r.width),Ns(e.y,r.height))}function O0(r,e,n){return Object.assign({angle:e,position:r.toJSON()},n)}const Iie=(r,e)=>r.map(({x:n,y:s,angle:o})=>O0(bv(e,{x:n,y:s}),o||0)),Lie=(r,e,n)=>{const s=n.start||0,o=n.step||20;return xP(r,e,s,(i,l)=>(i+.5-l/2)*o)},Rie=(r,e,n)=>{const s=n.start||0,o=n.step||360/r.length;return xP(r,e,s,i=>i*o)};function xP(r,e,n,s){const o=e.getCenter(),i=e.getTopCenter(),l=e.width/e.height,a=Vs.fromRect(e),c=r.length;return r.map((u,d)=>{const f=n+s(d,c),h=i.clone().rotate(-f,o).scale(l,1,o),p=u.compensateRotate?-a.tangentTheta(h):0;return(u.dx||u.dy)&&h.translate(u.dx||0,u.dy||0),u.dr&&h.move(o,u.dr),O0(h.round(),p,u)})}var $ie=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{const s=bv(e,n.start||e.getOrigin()),o=bv(e,n.end||e.getCorner());return mf(r,s,o,n)},Vie=(r,e,n)=>mf(r,e.getTopLeft(),e.getBottomLeft(),n),Fie=(r,e,n)=>mf(r,e.getTopRight(),e.getBottomRight(),n),Bie=(r,e,n)=>mf(r,e.getTopLeft(),e.getTopRight(),n),zie=(r,e,n)=>mf(r,e.getBottomLeft(),e.getBottomRight(),n);function mf(r,e,n,s){const o=new We(e,n),i=r.length;return r.map((l,a)=>{var{strict:c}=l,u=$ie(l,["strict"]);const d=c||s.strict?(a+1)/(i+1):(a+.5)/i,f=o.pointAt(d);return(u.dx||u.dy)&&f.translate(u.dx||0,u.dy||0),O0(f.round(),0,u)})}const jie=Object.freeze(Object.defineProperty({__proto__:null,absolute:Iie,bottom:zie,ellipse:Lie,ellipseSpread:Rie,left:Vie,line:Die,right:Fie,top:Bie},Symbol.toStringTag,{value:"Module"}));var Xl;(function(r){r.presets=jie,r.registry=gn.create({type:"port layout"}),r.registry.register(r.presets,!0)})(Xl||(Xl={}));const Hie={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function hl(r,e){const{x:n,y:s,angle:o,attrs:i}=e||{};return M_({},{angle:o,attrs:i,position:{x:n,y:s}},r,Hie)}const Uie=(r,e,n)=>hl({position:e.getTopLeft()},n),Wie=(r,e,n)=>hl({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n),qie=(r,e,n)=>hl({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n),Gie=(r,e,n)=>hl({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n),Kie=(r,e,n)=>hl({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n),Yie=(r,e,n)=>EP(r,e,!1,n),Jie=(r,e,n)=>EP(r,e,!0,n),Xie=(r,e,n)=>TP(r,e,!1,n),Zie=(r,e,n)=>TP(r,e,!0,n);function EP(r,e,n,s){const o=s.offset!=null?s.offset:15,i=e.getCenter().theta(r),l=_P(e);let a,c,u,d,f=0;return il[2]?(a=".3em",c=o,u=0,d="start"):il[2]?(a=".3em",c=-o,u=0,d="end"):iOP(r.diff(e.getCenter()),!1,n),ele=(r,e,n)=>OP(r.diff(e.getCenter()),!0,n);function OP(r,e,n){const s=n.offset!=null?n.offset:20,o=new K(0,0),i=-r.theta(o),l=r.clone().move(o,s).diff(r).round();let a=".3em",c,u=i;return(i+90)%180===0?(c=e?"end":"middle",!e&&i===-270&&(a="0em")):i>-270&&i<-90?(c="start",u=i-180):c="end",hl({position:l.round().toJSON(),angle:e?u:0,attrs:{".":{y:a,"text-anchor":c}}},n)}const tle=Object.freeze(Object.defineProperty({__proto__:null,bottom:Kie,inside:Xie,insideOriented:Zie,left:Wie,manual:Uie,outside:Yie,outsideOriented:Jie,radial:Qie,radialOriented:ele,right:qie,top:Gie},Symbol.toStringTag,{value:"Module"}));var Lc;(function(r){r.presets=tle,r.registry=gn.create({type:"port label layout"}),r.registry.register(r.presets,!0)})(Lc||(Lc={}));var nle=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class Qt extends Fr{get priority(){return 2}get disposeContainer(){return!0}constructor(){super(),this.cid=vv.uniqueId(),Qt.views[this.cid]=this}confirmUpdate(e,n){return 0}empty(e=this.container){return ff(e),this}unmount(e=this.container){return Ac(e),this}remove(e=this.container){return e===this.container?(this.removeEventListeners(document),this.onRemove(),delete Qt.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 Nt(n,Array.isArray(e)?e.join(" "):e),this}removeClass(e,n=this.container){return es(n,Array.isArray(e)?e.join(" "):e),this}setStyle(e,n=this.container){return pf(n,e),this}setAttrs(e,n=this.container){return e!=null&&n!=null&&Ut(n,e),this}findAttr(e,n=this.container){let s=n;for(;s&&s.nodeType===1;){const o=s.getAttribute(e);if(o!=null)return o;if(s===this.container)return null;s=s.parentNode}return null}find(e,n=this.container,s=this.selectors){return Qt.find(e,n,s).elems}findOne(e,n=this.container,s=this.selectors){const o=this.find(e,n,s);return o.length>0?o[0]:null}findByAttr(e,n=this.container){let s=n;for(;s&&s.getAttribute;){const o=s.getAttribute(e);if((o!=null||s===this.container)&&o!=="false")return s;s=s.parentNode}return null}getSelector(e,n){let s;if(e===this.container)return typeof n=="string"&&(s=`> ${n}`),s;if(e){const o=C0(e)+1;s=`${e.tagName.toLowerCase()}:nth-child(${o})`,n&&(s+=` > ${n}`),s=this.getSelector(e.parentNode,s)}return s}prefixClassName(e){return Fs.prefix(e)}delegateEvents(e,n){if(e==null)return this;n||this.undelegateEvents();const s=/^(\S+)\s*(.*)$/;return Object.keys(e).forEach(o=>{const i=o.match(s);if(i==null)return;const l=this.getEventHandler(e[o]);typeof l=="function"&&this.delegateEvent(i[1],i[2],l)}),this}undelegateEvents(){return Hn.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,s){return Hn.on(this.container,e+this.getEventNamespace(),n,s),this}undelegateEvent(e,n,s){const o=e+this.getEventNamespace();return n==null?Hn.off(this.container,o):typeof n=="string"?Hn.off(this.container,o,n,s):Hn.off(this.container,o,n),this}addEventListeners(e,n,s){if(n==null)return this;const o=this.getEventNamespace();return Object.keys(n).forEach(i=>{const l=this.getEventHandler(n[i]);typeof l=="function"&&Hn.on(e,i+o,s,l)}),this}removeEventListeners(e){return e!=null&&Hn.off(e,this.getEventNamespace()),this}getEventNamespace(){return`.${Fs.prefixCls}-event-${this.cid}`}getEventHandler(e){let n;if(typeof e=="string"){const s=this[e];typeof s=="function"&&(n=(...o)=>s.call(this,...o))}else n=(...s)=>e.call(this,...s);return n}getEventTarget(e,n={}){const{target:s,type:o,clientX:i=0,clientY:l=0}=e;return n.fromPoint||o==="touchmove"||o==="touchend"?document.elementFromPoint(i,l):s}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 s=e.data;const o=`__${this.cid}__`;return n==null?s==null?{}:s[o]||{}:(s==null&&(s=e.data={}),s[o]==null?s[o]=Object.assign({},n):s[o]=Object.assign(Object.assign({},s[o]),n),s[o])}normalizeEvent(e){return Qt.normalizeEvent(e)}dispose(){this.remove()}}nle([Qt.dispose()],Qt.prototype,"dispose",null);(function(r){function e(o,i){return i?Us(o||"g"):w0(o||"div")}r.createElement=e;function n(o,i,l){if(!o||o===".")return{elems:[i]};if(l){const a=l[o];if(a)return{elems:Array.isArray(a)?a:[a]}}{const a=o.includes(">")?`:scope ${o}`:o;return{isCSSSelector:!0,elems:Array.prototype.slice.call(i.querySelectorAll(a))}}}r.find=n;function s(o){let i=o;const l=o.originalEvent,a=l&&l.changedTouches&&l.changedTouches[0];if(a){for(const c in o)a[c]===void 0&&(a[c]=o[c]);i=a}return i}r.normalizeEvent=s})(Qt||(Qt={}));(function(r){r.views={};function e(n){return r.views[n]||null}r.getView=e})(Qt||(Qt={}));var vv;(function(r){let e=0;function n(){const s=`v${e}`;return e+=1,s}r.uniqueId=n})(vv||(vv={}));class rle{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new mv,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 s=this.view.container;n.matrix=zse(e,s)}return Bn(n.matrix)}getShape(e){const n=this.get(e);return n.shape==null&&(n.shape=Vt.toGeometryShape(e)),n.shape.clone()}getBoundingRect(e){const n=this.get(e);return n.boundingRect==null&&(n.boundingRect=Vt.getBBoxV2(e)),n.boundingRect.clone()}}var Yt;(function(r){function e(u){return u!=null&&!n(u)}r.isJSONMarkup=e;function n(u){return u!=null&&typeof u=="string"}r.isStringMarkup=n;function s(u){return u==null||n(u)?u:rn(u)}r.clone=s;function o(u){return`${u}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")}r.sanitize=o;function i(u,d={ns:In.svg}){const f=document.createDocumentFragment(),h={},p={},g=[{markup:Array.isArray(u)?u:[u],parent:f,ns:d.ns}];for(;g.length>0;){const m=g.pop();let v=m.ns||In.svg;const b=m.markup,C=m.parent;b.forEach(y=>{const w=y.tagName;if(!w)throw new TypeError("Invalid tagName");y.ns&&(v=y.ns);const x=v?w0(w,v):Kx(w),E=y.attrs;E&&Ut(x,_d(E));const _=y.style;_&&pf(x,_);const M=y.className;M!=null&&x.setAttribute("class",Array.isArray(M)?M.join(" "):M),y.textContent&&(x.textContent=y.textContent);const A=y.selector;if(A!=null){if(p[A])throw new TypeError("Selector must be unique");p[A]=x}if(y.groupSelector){let P=y.groupSelector;Array.isArray(P)||(P=[P]),P.forEach($=>{h[$]||(h[$]=[]),h[$].push(x)})}C.appendChild(x);const k=y.children;Array.isArray(k)&&g.push({ns:v,markup:k,parent:x})})}return Object.keys(h).forEach(m=>{if(p[m])throw new Error("Ambiguous group selector");p[m]=h[m]}),{fragment:f,selectors:p,groups:h}}r.parseJSONMarkup=i;function l(u){return u instanceof SVGElement?Us("g"):Kx("div")}function a(u){if(n(u)){const p=ut.createVectors(u),g=p.length;if(g===1)return{elem:p[0].node};if(g>1){const m=l(p[0].node);return p.forEach(v=>{m.appendChild(v.node)}),{elem:m}}return{}}const d=i(u),f=d.fragment;let h=null;return f.childNodes.length>1?(h=l(f.firstChild),h.appendChild(f)):h=f.firstChild,{elem:h,selectors:d.selectors}}r.renderMarkup=a;function c(u){const d=ut.createVectors(u),f=document.createDocumentFragment();for(let h=0,p=d.length;h ${l} > ${o}`:i=`> ${l}`,i;const a=n.parentNode;if(a&&a.childNodes.length>1){const c=C0(n)+1;i=`${l}:nth-child(${c})`}else i=l;return o&&(i+=` > ${o}`),e(n.parentNode,s,i)}return o}r.getSelector=e})(Yt||(Yt={}));(function(r){function e(){return"g"}r.getPortContainerMarkup=e;function n(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}}r.getPortMarkup=n;function s(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}r.getPortLabelMarkup=s})(Yt||(Yt={}));(function(r){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"}}]}r.getEdgeMarkup=e})(Yt||(Yt={}));(function(r){function e(n=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:In.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:In.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:n?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}r.getForeignObjectMarkup=e})(Yt||(Yt={}));class AP{constructor(e){this.view=e}get cell(){return this.view.cell}getDefinition(e){return this.cell.getAttrDefinition(e)}processAttrs(e,n){let s,o,i,l;const a=[];return Object.keys(n).forEach(c=>{const u=n[c],d=this.getDefinition(c),f=ht(fo.isValidDefinition,this.view,d,u,{elem:e,attrs:n,cell:this.cell,view:this.view});if(d&&f)typeof d=="string"?(s==null&&(s={}),s[d]=u):u!==null&&a.push({name:c,definition:d});else{s==null&&(s={});const h=Bk.includes(c)?c:Ck(c);s[h]=u}}),a.forEach(({name:c,definition:u})=>{const d=n[c];typeof u.set=="function"&&(o==null&&(o={}),o[c]=d),typeof u.offset=="function"&&(i==null&&(i={}),i[c]=d),typeof u.position=="function"&&(l==null&&(l={}),l[c]=d)}),{raw:n,normal:s,set:o,offset:i,position:l}}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 s=e.normal&&e.normal.transform;s!=null&&n.normal&&(n.normal.transform=s),e.normal=n.normal}findAttrs(e,n,s,o){const i=[],l=new mv;return Object.keys(e).forEach(a=>{const c=e[a];if(!po(c))return;const{isCSSSelector:u,elems:d}=Qt.find(a,n,o);s[a]=d;for(let f=0,h=d.length;f{const c=l.get(a),u=c.attrs;c.attrs=u.reduceRight((d,f)=>on(d,f),{})}),l}updateRelativeAttrs(e,n,s){const o=n.raw||{};let i=n.normal||{};const l=n.set,a=n.position,c=n.offset,u=()=>({elem:e,cell:this.cell,view:this.view,attrs:o,refBBox:s.clone()});if(l!=null&&Object.keys(l).forEach(v=>{const b=l[v],C=this.getDefinition(v);if(C!=null){const y=ht(C.set,this.view,b,u());typeof y=="object"?i=Object.assign(Object.assign({},i),y):y!=null&&(i[v]=y)}}),e instanceof HTMLElement){this.view.setAttrs(i,e);return}const d=i.transform,f=d?`${d}`:null,h=Od(f),p=new K(h.e,h.f);d&&(delete i.transform,h.e=0,h.f=0);let g=!1;a!=null&&Object.keys(a).forEach(v=>{const b=a[v],C=this.getDefinition(v);if(C!=null){const y=ht(C.position,this.view,b,u());y!=null&&(g=!0,p.translate(K.create(y)))}}),this.view.setAttrs(i,e);let m=!1;if(c!=null){const v=this.view.getBoundingRectOfElement(e);if(v.width>0&&v.height>0){const b=Vt.transformRectangle(v,h);Object.keys(c).forEach(C=>{const y=c[C],w=this.getDefinition(C);if(w!=null){const x=ht(w.offset,this.view,y,{elem:e,cell:this.cell,view:this.view,attrs:o,refBBox:b});x!=null&&(m=!0,p.translate(K.create(x)))}})}}(d!=null||g||m)&&(p.round(1),h.e=p.x,h.f=p.y,e.setAttribute("transform",ru(h)))}update(e,n,s){const o={},i=this.findAttrs(s.attrs||n,e,o,s.selectors),l=s.attrs?this.findAttrs(n,e,o,s.selectors):i,a=[];i.each(d=>{const f=d.elem,h=d.attrs,p=this.processAttrs(f,h);if(p.set==null&&p.position==null&&p.offset==null)this.view.setAttrs(p.normal,f);else{const g=l.get(f),m=g?g.attrs:null,v=m&&h.ref==null?m.ref:h.ref;let b;if(v){if(b=(o[v]||this.view.find(v,e,s.selectors))[0],!b)throw new Error(`"${v}" reference does not exist.`)}else b=null;const C={node:f,refNode:b,attributes:m,processedAttributes:p},y=a.findIndex(w=>w.refNode===f);y>-1?a.splice(y,0,C):a.push(C)}});const c=new mv;let u;a.forEach(d=>{const f=d.node,h=d.refNode;let p;const g=h!=null&&s.rotatableNode!=null&&Fk(s.rotatableNode,h);if(h&&(p=c.get(h)),!p){const b=g?s.rotatableNode:e;p=h?Vt.getBBox(h,{target:b}):s.rootBBox,h&&c.set(h,p)}let m;s.attrs&&d.attributes?(m=this.processAttrs(f,d.attributes),this.mergeProcessedAttrs(m,d.processedAttributes)):m=d.processedAttributes;let v=p;g&&s.rotatableNode!=null&&!s.rotatableNode.contains(f)&&(u||(u=Od(Ut(s.rotatableNode,"transform"))),v=Vt.transformRectangle(p,u)),this.updateRelativeAttrs(f,m,v)})}}class MP{get cell(){return this.view.cell}constructor(e,n,s=[]){this.view=e;const o={},i={};let l=0;Object.keys(n).forEach(c=>{let u=n[c];Array.isArray(u)||(u=[u]),u.forEach(d=>{let f=o[d];f||(l+=1,f=o[d]=1<{o[c]||(l+=1,o[c]=1<25)throw new Error("Maximum number of flags exceeded.");this.flags=o,this.attrs=i,this.bootstrap=s}getFlag(e){const n=this.flags;return n==null?0:Array.isArray(e)?e.reduce((s,o)=>s|n[o],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 sle=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},ole=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);od!=null?V_([...Array.isArray(u)?u:[u],...Array.isArray(d)?d:[d]]):Array.isArray(u)?[...u]:[u],s=rn(this.getDefaults()),{bootstrap:o,actions:i,events:l,documentEvents:a}=e,c=ole(e,["bootstrap","actions","events","documentEvents"]);return o&&(s.bootstrap=n(s.bootstrap,o)),i&&Object.entries(i).forEach(([u,d])=>{const f=s.actions[u];d&&f?s.actions[u]=n(f,d):d&&(s.actions[u]=n(d))}),l&&(s.events=Object.assign(Object.assign({},s.events),l)),e.documentEvents&&(s.documentEvents=Object.assign(Object.assign({},s.documentEvents),a)),on(s,c)}get[Symbol.toStringTag](){return fn.toStringTag}constructor(e,n={}){super(),this.cell=e,this.options=this.ensureOptions(n),this.graph=this.options.graph,this.attr=new AP(this),this.flag=new MP(this,this.options.actions,this.options.bootstrap),this.cache=new rle(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 Qt.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 s=this.getContainerStyle();s!=null&&this.setStyle(s,e);const o=this.getContainerClassName();o!=null&&this.addClass(o,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,s,o){if(this.hasAction(e,n)){s();const i=[n];return o&&(typeof o=="string"?i.push(o):i.push(...o)),this.removeAction(e,i)}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 s=Yt.parseJSONMarkup(e),o=s.selectors,i=this.rootSelector;if(n&&i){if(o[i])throw new Error("Invalid root selector");o[i]=n}return s}can(e){let n=this.graph.options.interacting;if(typeof n=="function"&&(n=ht(n,this.graph,this)),typeof n=="object"){let s=n[e];return typeof s=="function"&&(s=ht(s,this.graph,this)),s!==!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),s=this.getMatrixOfElement(e),o=this.getRootRotatedMatrix(),i=this.getRootTranslatedMatrix();return Vt.transformRectangle(n,i.multiply(o).multiply(s))}getUnrotatedBBoxOfElement(e){const n=this.getBoundingRectOfElement(e),s=this.getMatrixOfElement(e),o=this.getRootTranslatedMatrix();return Vt.transformRectangle(n,o.multiply(s))}getBBox(e={}){let n;if(e.useCellGeometry){const s=this.cell,o=s.isNode()?s.getAngle():0;n=s.getBBox().bbox(o)}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 Bn().translate(n.x,n.y)}getRootRotatedMatrix(){let e=Bn();const n=this.cell,s=n.isNode()?n.getAngle():0;if(s){const o=n.getBBox(),i=o.width/2,l=o.height/2;e=e.translate(i,l).rotate(s).translate(-i,-l)}return e}findMagnet(e=this.container){return this.findByAttr("magnet",e)}updateAttrs(e,n,s={}){s.rootBBox==null&&(s.rootBBox=new Ne),s.selectors==null&&(s.selectors=this.selectors),this.attr.update(e,n,s)}isEdgeElement(e){return this.cell.isEdge()&&(e==null||e===this.container)}prepareHighlight(e,n={}){const s=e||this.container;return n.partial=s===this.container,s}highlight(e,n={}){const s=this.prepareHighlight(e,n);return this.notify("cell:highlight",{magnet:s,options:n,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:s,options:n,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:s,options:n,view:this,node:this.cell,cell:this.cell}),this}unhighlight(e,n={}){const s=this.prepareHighlight(e,n);return this.notify("cell:unhighlight",{magnet:s,options:n,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:s,options:n,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:s,options:n,view:this,edge:this.cell,cell:this.cell}),this}notifyUnhighlight(e,n){}getEdgeTerminal(e,n,s,o,i){const l=this.cell,a=this.findAttr("port",e),c=e.getAttribute("data-selector"),u={cell:l.id};return c!=null&&(u.magnet=c),a!=null?(u.port=a,l.isNode()&&!l.hasPort(a)&&c==null&&(u.selector=this.getSelector(e))):c==null&&this.container!==e&&(u.selector=this.getSelector(e)),u}getMagnetFromEdgeTerminal(e){const n=this.cell,s=this.container,o=e.port;let i=e.magnet,l;return o!=null&&n.isNode()&&n.hasPort(o)?l=this.findPortElem(o,i)||s:(i||(i=e.selector),!i&&o!=null&&(i=`[port="${o}"]`),l=this.findOne(i,s,this.selectors)),l}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=wn.isToolsView(e)?e:new wn(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,s){const o=this,i=o.cell;return n==null||s==null?{e,view:o,cell:i}:{e,x:n,y:s,view:o,cell:i}}onClick(e,n,s){this.notify("cell:click",this.getEventArgs(e,n,s))}onDblClick(e,n,s){this.notify("cell:dblclick",this.getEventArgs(e,n,s))}onContextMenu(e,n,s){this.notify("cell:contextmenu",this.getEventArgs(e,n,s))}onMouseDown(e,n,s){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,n,s))}onMouseUp(e,n,s){this.notify("cell:mouseup",this.getEventArgs(e,n,s)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(e,n,s){this.notify("cell:mousemove",this.getEventArgs(e,n,s))}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,s,o){this.notify("cell:mousewheel",Object.assign({delta:o},this.getEventArgs(e,n,s)))}onCustomEvent(e,n,s,o){this.notify("cell:customevent",Object.assign({name:n},this.getEventArgs(e,s,o))),this.notify(n,Object.assign({},this.getEventArgs(e,s,o)))}onMagnetMouseDown(e,n,s,o){}onMagnetDblClick(e,n,s,o){}onMagnetContextMenu(e,n,s,o){}onLabelMouseDown(e,n,s){}checkMouseleave(e){const n=this.getEventTarget(e,{fromPoint:!0}),s=this.graph.findViewByElem(n);s!==this&&(this.onMouseLeave(e),s&&s.onMouseEnter(e))}dispose(){this.cell.off("changed",this.onCellChanged,this)}}fn.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}};sle([fn.dispose()],fn.prototype,"dispose",null);(function(r){r.Flag=MP,r.Attr=AP})(fn||(fn={}));(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.toStringTag)&&typeof o.isNodeView=="function"&&typeof o.isEdgeView=="function"&&typeof o.confirmUpdate=="function"}r.isCellView=e})(fn||(fn={}));(function(r){function e(s){return function(o){o.config({priority:s})}}r.priority=e;function n(s){return function(o){o.config({bootstrap:s})}}r.bootstrap=n})(fn||(fn={}));(function(r){r.registry=gn.create({type:"view"})})(fn||(fn={}));class wn extends Qt{get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return wn.toStringTag}constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}createContainer(e,n){const s=e?Qt.createElement("g",!0):Qt.createElement("div",!1);return Nt(s,this.prefixClassName("cell-tools")),n.className&&Nt(s,n.className),s}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!fn.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 n=this.options.items;if(!Array.isArray(n))return this;this.tools=[];const s=[];n.forEach(o=>{wn.ToolItem.isToolItem(o)?o.name==="vertices"?s.unshift(o):s.push(o):(typeof o=="object"?o.name:o)==="vertices"?s.unshift(o):s.push(o)});for(let o=0;o{e.toolId!==s.cid&&s.isVisible()&&s.update()}),this}focus(e){const n=this.tools;return n&&n.forEach(s=>{e===s?s.show():s.hide()}),this}blur(e){const n=this.tools;return n&&n.forEach(s=>{s!==e&&!s.isVisible()&&(s.show(),s.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),Ac(this.svgContainer),Ac(this.htmlContainer),super.remove()}mount(){const e=this.tools,n=this.cellView;if(n&&e){const s=e.some(i=>i.options.isSVGElement!==!1),o=e.some(i=>i.options.isSVGElement===!1);s&&(this.options.local?n.container:n.graph.view.decorator).appendChild(this.svgContainer),o&&this.graph.container.appendChild(this.htmlContainer)}return this}}(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.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"}r.isToolsView=e})(wn||(wn={}));(function(r){class e extends Qt{static getDefaults(){return this.defaults}static config(s){this.defaults=this.getOptions(s)}static getOptions(s){return on(rn(this.getDefaults()),s)}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(s={}){super(),this.visible=!0,this.options=this.getOptions(s),this.container=Qt.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(s){return this.constructor.getOptions(s)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(s,o){return this.cellView=s,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 s=this.options.markup;if(s){const o=Yt.parseJSONMarkup(s);this.container.appendChild(o.fragment),this.childNodes=o.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(s){s&&s.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 s=this.options.focusOpacity;return s!=null&&Number.isFinite(s)&&(this.container.style.opacity=`${s}`),this.parent.focus(this),this}blur(){return this.container.style.opacity="",this.parent.blur(this),this}guard(s){return this.graph==null||this.cellView==null?!0:this.graph.view.guard(s,this.cellView)}}e.defaults={isSVGElement:!0,tagName:"g"},r.ToolItem=e,function(n){let s=0;function o(l){return l?g0(l):(s+=1,`CustomTool${s}`)}function i(l){const a=h0(o(l.name),this);return a.config(l),a}n.define=i}(e=r.ToolItem||(r.ToolItem={})),function(n){n.toStringTag=`X6.${n.name}`;function s(o){if(o==null)return!1;if(o instanceof n)return!0;const i=o[Symbol.toStringTag],l=o;return(i==null||i===n.toStringTag)&&l.graph!=null&&l.cell!=null&&typeof l.config=="function"&&typeof l.update=="function"&&typeof l.focus=="function"&&typeof l.blur=="function"&&typeof l.show=="function"&&typeof l.hide=="function"&&typeof l.isVisible=="function"}n.isToolItem=s}(e=r.ToolItem||(r.ToolItem={}))})(wn||(wn={}));const ile=r=>r;function iE(r,e){return e===0?"0%":`${Math.round(r/e*100)}%`}function kP(r){return(n,s,o,i)=>s.isEdgeElement(o)?ale(r,n,s,o,i):lle(r,n,s,o,i)}function lle(r,e,n,s,o){const i=n.cell,l=i.getAngle(),a=n.getUnrotatedBBoxOfElement(s),c=i.getBBox().getCenter(),u=K.create(o).rotate(l,c);let d=u.x-a.x,f=u.y-a.y;return r&&(d=iE(d,a.width),f=iE(f,a.height)),e.anchor={name:"topLeft",args:{dx:d,dy:f,rotate:!0}},e}function ale(r,e,n,s,o){const i=n.getConnection();if(!i)return e;const l=i.closestPointLength(o);if(r){const a=i.length();e.anchor={name:"ratio",args:{ratio:l/a}}}else e.anchor={name:"length",args:{length:l}};return e}const cle=kP(!0),ule=kP(!1),dle=Object.freeze(Object.defineProperty({__proto__:null,noop:ile,pinAbsolute:ule,pinRelative:cle},Symbol.toStringTag,{value:"Module"}));var yv;(function(r){r.presets=dle,r.registry=gn.create({type:"connection strategy"}),r.registry.register(r.presets,!0)})(yv||(yv={}));function PP(r,e,n,s){return ht(yv.presets.pinRelative,this.graph,{},e,n,r,this.cell,s,{}).anchor}function NP(r,e){return e?r.cell.getBBox():r.cell.isEdge()?r.getConnection().bbox():r.getUnrotatedBBoxOfElement(r.container)}class Ji extends wn.ToolItem{onRender(){Nt(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();Mc(this.container,n,{absolute:!0})}getNodeMatrix(){const e=this.cellView,n=this.options;let{x:s=0,y:o=0}=n;const{offset:i,useCellGeometry:l,rotate:a}=n;let c=NP(e,l);const u=e.cell.getAngle();a||(c=c.bbox(u));let d=0,f=0;typeof i=="number"?(d=i,f=i):typeof i=="object"&&(d=i.x,f=i.y),s=Ns(s,c.width),o=Ns(o,c.height);let h=Bn().translate(c.x+c.width/2,c.y+c.height/2);return a&&(h=h.rotate(u)),h=h.translate(s+d-c.width/2,o+f-c.height/2),h}getEdgeMatrix(){const e=this.cellView,n=this.options,{offset:s=0,distance:o=0,rotate:i}=n;let l,a,c;const u=Ns(o,1);u>=0&&u<=1?l=e.getTangentAtRatio(u):l=e.getTangentAtLength(u),l?(a=l.start,c=l.vector().vectorAngle(new K(1,0))||0):(a=e.getConnection().start,c=0);let d=Bn().translate(a.x,a.y).rotate(c);return typeof s=="object"?d=d.translate(s.x||0,s.y||0):d=d.translate(0,s),i||(d=d.rotate(-c)),d}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const n=this.options.onClick;typeof n=="function"&&ht(n,this.cellView,{e,view:this.cellView,cell:this.cellView.cell,btn:this})}}(function(r){r.config({name:"button",useCellGeometry:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})})(Ji||(Ji={}));(function(r){r.Remove=r.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})}})})(Ji||(Ji={}));var fle=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{this.stopHandleListening(n),n.remove()})}renderHandles(){const e=this.vertices;for(let n=0,s=e.length;nthis.guard(c),attrs:this.options.attrs||{}});l&&l(a),a.updatePosition(o.x,o.y),this.stamp(a.container),this.container.appendChild(a.container),this.handles.push(a),this.startHandleListening(a)}}updateHandles(){const e=this.vertices;for(let n=0,s=e.length;n0?s[e-1]:n.sourceAnchor,i=e0){const o=this.getNeighborPoints(n),i=o.prev,l=o.next;Math.abs(e.x-i.x)new r.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"}})})(Pd||(Pd={}));class Nd extends wn.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,n=[...this.vertices];n.unshift(e.sourcePoint),n.push(e.targetPoint);for(let s=0,o=n.length;sthis.guard(i),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(o),this.updateHandle(o,e,n),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(n=>{this.stopHandleListening(n),n.remove()})}shiftHandleIndexes(e){const n=this.handles;for(let s=0,o=n.length;snew r.Handle(e),anchor:PP})})(Nd||(Nd={}));class dp extends wn.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 n=e.anchor;if(!n)return;const s=this.type,o=this.cellView,i=this.options,l=o.getTerminalAnchor(s),a=o.cell.prop([s,"anchor"]);n.setAttribute("transform",`translate(${l.x}, ${l.y})`);const c=a?i.customAnchorAttrs:i.defaultAnchorAttrs;c&&Object.keys(c).forEach(u=>{n.setAttribute(u,c[u])})}updateArea(){const e=this.childNodes;if(!e)return;const n=e.area;if(!n)return;const s=this.type,o=this.cellView,i=o.getTerminalView(s);if(i){const l=i.cell,a=o.getTerminalMagnet(s);let c=this.options.areaPadding||0;Number.isFinite(c)||(c=0);let u,d,f;i.isEdgeElement(a)?(u=i.getBBox(),d=0,f=u.getCenter()):(u=i.getUnrotatedBBoxOfElement(a),d=l.getAngle(),f=u.getCenter(),d&&f.rotate(-d,l.getBBox().getCenter())),u.inflate(c),Ut(n,{x:-u.width/2,y:-u.height/2,width:u.width,height:u.height,transform:`translate(${f.x}, ${f.y}) rotate(${d})`})}}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,s=this.cell;e?s.prop([n,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):s.removeProp([n,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(e){const n=this.type,s=this.cellView,o=s.getTerminalView(n);if(o==null)return;const i=this.normalizeEvent(e),l=o.cell,a=s.getTerminalMagnet(n);let c=this.graph.coord.clientToLocalPoint(i.clientX,i.clientY);const u=this.options.snap;if(typeof u=="function"){const h=ht(u,s,c,o,a,n,s,this);c=K.create(h)}if(this.options.restrictArea)if(o.isEdgeElement(a)){const h=o.getClosestPoint(c);h&&(c=h)}else{const h=o.getUnrotatedBBoxOfElement(a),p=l.getAngle(),g=l.getBBox().getCenter(),m=c.clone().rotate(p,g);h.containsPoint(m)||(c=h.getNearestPointToPoint(m).rotate(-p,g))}let d;const f=this.options.anchor;typeof f=="function"&&(d=ht(f,s,c,o,a,n,s,this)),this.resetAnchor(d),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(r){r.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:PP,snap(e,n,s,o,i,l){const a=l.options.snapRadius||0,c=o==="source",u=c?0:-1,d=this.cell.getVertexAt(u)||this.getTerminalAnchor(c?"target":"source");return d&&(Math.abs(d.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 ht(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"){ht(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 s=this.cell;if(this.labelIndex===-1){if(e){const o={position:{distance:this.distance},attrs:{}};nu(o,`attrs/${n}`,e),s.appendLabel(o)}}else e!==null?s.prop(`labels/${this.labelIndex}/attrs/${n}`,e):typeof this.labelIndex=="number"&&s.removeLabelAt(this.labelIndex)}}}onRemove(){const e=this.cellView;e&&e.off("cell:dblclick",this.dblClick),this.removeElement()}}(function(r){r.config({tagName:"div",isSVGElement:!1,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"},documentEvents:{mouseup:"onDocumentMouseUp",touchend:"onDocumentMouseUp",touchcancel:"onDocumentMouseUp"}})})(Rc||(Rc={}));(function(r){r.NodeEditor=r.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText:"text/text",setText:"text/text"}),r.EdgeEditor=r.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},labelAddable:!0,getText:"label/text",setText:"label/text"})})(Rc||(Rc={}));var IP=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o1&&(o/=100),r.getPointAtRatio(o)},Lle=function(r,e,n,s){const o=s.length!=null?s.length:20;return r.getPointAtLength(o)},RP=function(r,e,n,s){const o=r.getClosestPoint(n);return o??new K},Rle=Eg(RP),$le=function(r,e,n,s){const i=r.getConnection(),l=r.getConnectionSubdivisions(),a=new We(n.clone().translate(0,1e6),n.clone().translate(0,-1e6)),c=new We(n.clone().translate(1e6,0),n.clone().translate(-1e6,0)),u=a.intersect(i,{segmentSubdivisions:l}),d=c.intersect(i,{segmentSubdivisions:l}),f=[];return u&&f.push(...u),d&&f.push(...d),f.length>0?n.closest(f):s.fallbackAt!=null?LP(r,s.fallbackAt):ht(RP,this,r,e,n,s)},Dle=Eg($le),Vle=Object.freeze(Object.defineProperty({__proto__:null,closest:Rle,length:Lle,orth:Dle,ratio:Ile},Symbol.toStringTag,{value:"Module"}));var Fc;(function(r){r.presets=Vle,r.registry=gn.create({type:"edge endpoint"}),r.registry.register(r.presets,!0)})(Fc||(Fc={}));function Tg(r,e,n){let s;if(typeof n=="object"){if(Number.isFinite(n.y)){const i=new We(e,r),{start:l,end:a}=i.parallel(n.y);e=l,r=a}s=n.x}else s=n;if(s==null||!Number.isFinite(s))return r;const o=r.distance(e);return s===0&&o>0?r:r.move(e,-Math.min(s,o-1))}function hp(r){const e=r.getAttribute("stroke-width");return e===null?0:parseFloat(e)||0}function Fle(r){if(r==null)return null;let e=r;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 $P=function(r,e,n,s){const o=e.getBBoxOfElement(n);s.stroked&&o.inflate(hp(n)/2);const i=r.intersect(o),l=i&&i.length?r.start.closest(i):r.end;return Tg(l,r.start,s.offset)},Ble=function(r,e,n,s,o){const i=e.cell,l=i.isNode()?i.getAngle():0;if(l===0)return ht($P,this,r,e,n,s,o);const a=e.getUnrotatedBBoxOfElement(n);s.stroked&&a.inflate(hp(n)/2);const c=a.getCenter(),u=r.clone().rotate(l,c),d=u.setLength(1e6).intersect(a),f=d&&d.length?u.start.closest(d).rotate(-l,c):r.end;return Tg(f,r.start,s.offset)},zle=function(r,e,n,s){let o,i;const l=r.end,a=s.selector;if(typeof a=="string"?o=e.findOne(a):Array.isArray(a)?o=p0(n,a):o=Fle(n),!Gi(o)){if(o===n||!Gi(n))return l;o=n}const c=e.getShapeOfElement(o),u=e.getMatrixOfElement(o),d=e.getRootTranslatedMatrix(),f=e.getRootRotatedMatrix(),h=d.multiply(f).multiply(u),p=h.inverse(),g=Vt.transformLine(r,p),m=g.start.clone(),v=e.getDataOfElement(o);if(s.insideout===!1){v.shapeBBox==null&&(v.shapeBBox=c.bbox());const w=v.shapeBBox;if(w!=null&&w.containsPoint(m))return l}s.extrapolate===!0&&g.setLength(1e6);let b;if(Ze.isPath(c)){const w=s.precision||2;v.segmentSubdivisions==null&&(v.segmentSubdivisions=c.getSegmentSubdivisions({precision:w})),b={precision:w,segmentSubdivisions:v.segmentSubdivisions},i=g.intersect(c,b)}else i=g.intersect(c);i?Array.isArray(i)&&(i=m.closest(i)):s.sticky===!0&&(Ne.isRectangle(c)?i=c.getNearestPointToPoint(m):Vs.isEllipse(c)?i=c.intersectsWithLineFromCenterToPoint(m):i=c.closestPoint(m,b));const C=i?Vt.transformPoint(i,h):l;let y=s.offset||0;return s.stroked!==!1&&(typeof y=="object"?(y=Object.assign({},y),y.x==null&&(y.x=0),y.x+=hp(o)/2):y+=hp(o)/2),Tg(C,r.start,y)};function jle(r,e,n=0){const{start:s,end:o}=r;let i,l,a,c;switch(e){case"left":c="x",i=o,l=s,a=-1;break;case"right":c="x",i=s,l=o,a=1;break;case"top":c="y",i=o,l=s,a=-1;break;case"bottom":c="y",i=s,l=o,a=1;break;default:return}s[c]0?c[u]=a[u]:a[u]=c[u],[a.toJSON(),...r,c.toJSON()]};function Xf(r){return new Ne(r.x,r.y,0,0)}function pp(r={}){const e=la(r.padding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function DP(r,e={}){return r.sourceBBox.clone().moveAndExpand(pp(e))}function VP(r,e={}){return r.targetBBox.clone().moveAndExpand(pp(e))}function Gle(r,e={}){return r.sourceAnchor?r.sourceAnchor:DP(r,e).getCenter()}function Kle(r,e={}){return r.targetAnchor?r.targetAnchor:VP(r,e).getCenter()}const FP=function(r,e,n){let s=DP(n,e),o=VP(n,e);const i=Gle(n,e),l=Kle(n,e);s=s.union(Xf(i)),o=o.union(Xf(l));const a=r.map(d=>K.create(d));a.unshift(i),a.push(l);let c=null;const u=[];for(let d=0,f=a.length-1;dh.y?"N":"S":f.y===h.y?f.x>h.x?"W":"E":null}r.getBearing=i;function l(f,h,p){const g=new K(f.x,h.y),m=new K(h.x,f.y),v=i(f,g),b=i(f,m),C=p?e[p]:null,y=v===p||v!==C&&(b===C||b!==p)?g:m;return{points:[y],direction:i(y,h)}}r.vertexToVertex=l;function a(f,h,p){const g=s(f,h,p);return{points:[g],direction:i(g,h)}}r.nodeToVertex=a;function c(f,h,p,g){const m=[new K(f.x,h.y),new K(h.x,f.y)],v=m.filter(y=>!p.containsPoint(y)),b=v.filter(y=>i(y,f)!==g);let C;if(b.length>0)return C=b.filter(y=>i(f,y)===g).pop(),C=C||b[0],{points:[C],direction:i(C,h)};{C=e5(m,v)[0];const y=K.create(h).move(C,-o(p,g)/2);return{points:[s(y,f,p),y],direction:i(y,h)}}}r.vertexToNode=c;function u(f,h,p,g){let m=a(h,f,g);const v=m.points[0];if(p.containsPoint(v)){m=a(f,h,p);const b=m.points[0];if(g.containsPoint(b)){const C=K.create(f).move(b,-o(p,i(f,b))/2),y=K.create(h).move(v,-o(g,i(h,v))/2),w=new We(C,y).getCenter(),x=a(f,w,p),E=l(w,h,x.direction);m.points=[x.points[0],E.points[0]],m.direction=E.direction}}return m}r.nodeToNode=u;function d(f,h,p,g,m){const v=p.union(g).inflate(1),b=v.getCenter(),C=b.distance(h)>b.distance(f),y=C?h:f,w=C?f:h;let x,E,_;m?(x=K.fromPolar(v.width+v.height,n[m],y),x=v.getNearestPointToPoint(x).move(x,-1)):x=v.getNearestPointToPoint(y).move(y,1),E=s(x,w,v);let M;x.round().equals(E.round())?(E=K.fromPolar(v.width+v.height,Ht.toRad(x.theta(y))+Math.PI/2,w),E=v.getNearestPointToPoint(E).move(w,1).round(),_=s(x,E,v),M=C?[E,_,x]:[x,_,E]):M=C?[E,x]:[x,E];const A=i(C?x:E,h);return{points:M,direction:A}}r.insideNode=d})(Wr||(Wr={}));const Yle={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 Ai(this.step,this)},directions(){const r=Ai(this.step,this),e=Ai(this.cost,this);return[{cost:e,offsetX:r,offsetY:0},{cost:e,offsetX:-r,offsetY:0},{cost:e,offsetX:0,offsetY:r},{cost:e,offsetX:0,offsetY:-r}]},penalties(){const r=Ai(this.step,this);return{0:0,45:r/2,90:r/2}},paddingBox(){const r=Ai(this.step,this);return{x:-r,y:-r,width:2*r,height:2*r}},fallbackRouter:FP,draggingRouter:null,snapToGrid:!0};function Ai(r,e){return typeof r=="function"?r.call(e):r}function Jle(r){const e=Object.keys(r).reduce((n,s)=>{const o=n;return s==="fallbackRouter"||s==="draggingRouter"||s==="fallbackRoute"?o[s]=r[s]:o[s]=Ai(r[s],r),n},{});if(e.padding){const n=la(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 s=new K(0,0),o=new K(n.offsetX,n.offsetY);n.angle=Ht.normalize(s.theta(o))}),e}const lE=1,aE=2;class Xle{constructor(){this.items=[],this.hash={},this.values={}}add(e,n){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=lE,this.values[e]=n;const s=$5(this.items,e,o=>this.values[o]);this.items.splice(s,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=aE),e}isOpen(e){return this.hash[e]===lE}isClose(e){return this.hash[e]===aE}isEmpty(){return this.items.length===0}}class Zle{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}build(e,n){const s=this.options,o=s.excludeTerminals.reduce((u,d)=>{const f=n[d];if(f){const h=e.getCell(f.cell);h&&u.push(h)}return u},[]);let i=[];const l=e.getCell(n.getSourceCellId());l&&(i=bC(i,l.getAncestors().map(u=>u.id)));const a=e.getCell(n.getTargetCellId());a&&(i=bC(i,a.getAncestors().map(u=>u.id)));const c=this.mapGridSize;return e.getNodes().reduce((u,d)=>{const f=o.some(v=>v.id===d.id),h=d.shape?s.excludeShapes.includes(d.shape):!1,p=s.excludeNodes.some(v=>typeof v=="string"?d.id===v:v===d),g=i.includes(d.id),m=h||f||p||g;if(d.isVisible()&&!m){const v=d.getBBox().moveAndExpand(s.paddingBox),b=v.getOrigin().snapToGrid(c),C=v.getCorner().snapToGrid(c);for(let y=b.x;y<=C.x;y+=c)for(let w=b.y;w<=C.y;w+=c){const x=new K(y,w).toString();u[x]==null&&(u[x]=[]),u[x].push(v)}}return u},this.map),this}isAccessible(e){const n=e.clone().snapToGrid(this.mapGridSize).toString(),s=this.map[n];return s?s.every(o=>!o.containsPoint(e)):!0}}function BP(r,e){const n=r.sourceBBox.clone();return e&&e.paddingBox?n.moveAndExpand(e.paddingBox):n}function zP(r,e){const n=r.targetBBox.clone();return e&&e.paddingBox?n.moveAndExpand(e.paddingBox):n}function jP(r,e){return r.sourceAnchor?r.sourceAnchor:BP(r,e).getCenter()}function Qle(r,e){return r.targetAnchor?r.targetAnchor:zP(r,e).getCenter()}function Vm(r,e,n,s,o){const i=360/n,l=r.theta(eae(r,e,s,o)),a=Ht.normalize(l+i/2);return i*Math.floor(a/i)}function eae(r,e,n,s){const o=s.step,i=e.x-r.x,l=e.y-r.y,a=i/n.x,c=l/n.y,u=a*o,d=c*o;return new K(r.x+u,r.y+d)}function cE(r,e){const n=Math.abs(r-e);return n>180?360-n:n}function tae(r,e){const n=e.step;return e.directions.forEach(s=>{s.gridOffsetX=s.offsetX/n*r.x,s.gridOffsetY=s.offsetY/n*r.y}),e.directions}function nae(r,e,n){return{source:e.clone(),x:uE(n.x-e.x,r),y:uE(n.y-e.y,r)}}function uE(r,e){if(!r)return e;const n=Math.abs(r),s=Math.round(n/e);if(!s)return n;const o=s*e,l=(n-o)/s;return e+l}function rae(r,e){const n=e.source,s=zt.snapToGrid(r.x-n.x,e.x)+n.x,o=zt.snapToGrid(r.y-n.y,e.y)+n.y;return new K(s,o)}function Cu(r,e){return r.round(e)}function yh(r,e,n){return Cu(rae(r.clone(),e),n)}function Ju(r){return r.toString()}function Fm(r){return new K(r.x===0?0:Math.abs(r.x)/r.x,r.y===0?0:Math.abs(r.y)/r.y)}function dE(r,e){let n=1/0;for(let s=0,o=e.length;s{if(n.includes(d)){const f=l[d],h=new K(r.x+f.x*(Math.abs(a.x)+e.width),r.y+f.y*(Math.abs(a.y)+e.height)),g=new We(r,h).intersect(e)||[];let m,v=null;for(let b=0;bm)&&(m=y,v=C)}if(v){let b=yh(v,s,i);e.containsPoint(b)&&(b=yh(b.translate(f.x*s.x,f.y*s.y),s,i)),u.push(b)}}return u},[]);return e.containsPoint(r)||c.push(yh(r,s,i)),c}function sae(r,e,n,s,o){const i=[];let l=Fm(o.diff(n)),a=Ju(n),c=r[a],u;for(;c;){u=e[a];const h=Fm(u.diff(c));h.equals(l)||(i.unshift(u),l=h),a=Ju(c),c=r[a]}const d=e[a];return Fm(d.diff(s)).equals(l)||i.unshift(d),i}function oae(r,e,n,s,o){const i=o.precision;let l,a;Ne.isRectangle(e)?l=Cu(jP(r,o).clone(),i):l=Cu(e.clone(),i),Ne.isRectangle(n)?a=Cu(Qle(r,o).clone(),i):a=Cu(n.clone(),i);const c=nae(o.step,l,a),u=l,d=a;let f,h;if(Ne.isRectangle(e)?f=fE(u,e,o.startDirections,c,o):f=[u],Ne.isRectangle(n)?h=fE(a,n,o.endDirections,c,o):h=[d],f=f.filter(p=>s.isAccessible(p)),h=h.filter(p=>s.isAccessible(p)),f.length>0&&h.length>0){const p=new Xle,g={},m={},v={};for(let k=0,P=f.length;k{const $=Ju(P);return k.push($),k},[]),M=K.equalPoints(f,h);let A=o.maxLoopCount;for(;!p.isEmpty()&&A>0;){const k=p.pop(),P=g[k],$=m[k],B=v[k],W=P.equals(u),I=$==null;let R;if(I?C?W?R=null:R=Vm(u,P,E,c,o):R=b:R=Vm($,P,E,c,o),!(I&&M)&&_.indexOf(k)>=0)return o.previousDirectionAngle=R,sae(m,g,P,u,d);for(let Q=0;Qo.maxDirectionChange)continue;const ee=yh(P.clone().translate(y.gridOffsetX||0,y.gridOffsetY||0),c,i),de=Ju(ee);if(p.isClose(de)||!s.isAccessible(ee))continue;if(_.indexOf(de)>=0&&!ee.equals(d)){const Ee=Vm(ee,d,E,c,o);if(cE(q,Ee)>o.maxDirectionChange)continue}const ce=y.cost,Te=W?0:o.penalties[w],fe=B+ce+Te;(!p.isOpen(de)||feK.create(p)),u=[];let d=l,f,h;for(let p=0,g=c.length;p<=g;p+=1){let m=null;if(f=h||o,h=c[p],h==null){h=i;const b=n.cell;if((b.getSourceCellId()==null||b.getTargetCellId()==null)&&typeof s.draggingRouter=="function"){const y=f===o?l:f,w=h.getOrigin();m=ht(s.draggingRouter,n,y,w,s)}}if(m==null&&(m=oae(n,f,h,a,s)),m===null)return ht(s.fallbackRouter,this,r,s,n);const v=m[0];v&&v.equals(d)&&m.shift(),d=m[m.length-1]||d,u.push(...m)}return s.snapToGrid?iae(u,n.graph.grid.getGridSize()):u},HP=function(r,e,n){return ht(lae,this,r,Object.assign(Object.assign({},Yle),e),n)},aae={maxDirectionChange:45,directions(){const r=Ai(this.step,this),e=Ai(this.cost,this),n=Math.ceil(Math.sqrt(r*r<<1));return[{cost:e,offsetX:r,offsetY:0},{cost:n,offsetX:r,offsetY:r},{cost:e,offsetX:0,offsetY:r},{cost:n,offsetX:-r,offsetY:r},{cost:e,offsetX:-r,offsetY:0},{cost:n,offsetX:-r,offsetY:-r},{cost:e,offsetX:0,offsetY:-r},{cost:n,offsetX:r,offsetY:-r}]},fallbackRoute(r,e,n){const s=r.theta(e),o=[];let i={x:e.x,y:r.y},l={x:r.x,y:e.y};if(s%180>90){const y=i;i=l,l=y}const a=s%90<45?i:l,c=new We(r,a),u=90*Math.ceil(s/90),d=K.fromPolar(c.squaredLength(),Ht.toRad(u+135),a),f=new We(e,d),h=c.intersectsWithLine(f),p=h||e,g=h?p:r,m=360/n.directions.length,v=g.theta(e),b=Ht.normalize(v+m/2),C=m*Math.floor(b/m);return n.previousDirectionAngle=C,p&&o.push(p.round()),o.push(e),o}},cae=function(r,e,n){return ht(HP,this,r,Object.assign(Object.assign({},aae),e),n)},uae=function(r,e,n){const s=e.offset||32,o=e.min==null?16:e.min;let i=0,l=e.direction;const a=n.sourceBBox,c=n.targetBBox,u=a.getCenter(),d=c.getCenter();if(typeof s=="number"&&(i=s),l==null){let b=c.left-a.right,C=c.top-a.bottom;b>=0&&C>=0?l=b>=C?"L":"T":b<=0&&C>=0?(b=a.left-c.right,b>=0?l=b>=C?"R":"T":l="T"):b>=0&&C<=0?(C=a.top-c.bottom,C>=0?l=b>=C?"L":"B":l="L"):(b=a.left-c.right,C=a.top-c.bottom,b>=0&&C>=0?l=b>=C?"R":"B":b<=0&&C>=0?l="B":b>=0&&C<=0?l="R":l=Math.abs(b)>Math.abs(C)?"R":"B")}l==="H"?l=d.x-u.x>=0?"L":"R":l==="V"&&(l=d.y-u.y>=0?"T":"B"),s==="center"&&(l==="L"?i=(c.left-a.right)/2:l==="R"?i=(a.left-c.right)/2:l==="T"?i=(c.top-a.bottom)/2:l==="B"&&(i=(a.top-c.bottom)/2));let f,h,p;const g=l==="L"||l==="R";if(g){if(d.y===u.y)return[...r];p=l==="L"?1:-1,f="x",h="width"}else{if(d.x===u.x)return[...r];p=l==="T"?1:-1,f="y",h="height"}const m=u.clone(),v=d.clone();if(m[f]+=p*(a[h]/2+i),v[f]-=p*(c[h]/2+i),g){const b=m.x,C=v.x,y=a.width/2+o,w=c.width/2+o;d.x>u.x?C<=b&&(m.x=Math.max(C,u.x+y),v.x=Math.min(b,d.x-w)):C>=b&&(m.x=Math.min(C,u.x-y),v.x=Math.max(b,d.x+w))}else{const b=m.y,C=v.y,y=a.height/2+o,w=c.height/2+o;d.y>u.y?C<=b&&(m.y=Math.max(C,u.y+y),v.y=Math.min(b,d.y-w)):C>=b&&(m.y=Math.min(C,u.y-y),v.y=Math.max(b,d.y+w))}return[m.toJSON(),...r,v.toJSON()]};function Oa(r,e){if(e!=null&&e!==!1){const n=typeof e=="boolean"?0:e;if(n>0){const s=K.create(r[1]).move(r[2],n),o=K.create(r[1]).move(r[0],n);return[s.toJSON(),...r,o.toJSON()]}{const s=r[1];return[Object.assign({},s),...r,Object.assign({},s)]}}return r}const dae=function(r,e,n){const s=e.width||50,i=(e.height||80)/2,l=e.angle||"auto",a=n.sourceAnchor,c=n.targetAnchor,u=n.sourceBBox,d=n.targetBBox;if(a.equals(c)){const f=b=>{const C=Ht.toRad(b),y=Math.sin(C),w=Math.cos(C),x=new K(a.x+w*s,a.y+y*s),E=new K(x.x-w*i,x.y-y*i),_=E.clone().rotate(-90,x),M=E.clone().rotate(90,x);return[_.toJSON(),x.toJSON(),M.toJSON()]},h=b=>{const C=a.clone().move(b,-1),y=new We(C,b);return!u.containsPoint(b)&&!u.intersectsWithLine(y)},p=[0,90,180,270,45,135,225,315];if(typeof l=="number")return Oa(f(l),e.merge);const g=u.getCenter();if(g.equals(a))return Oa(f(0),e.merge);const m=g.angleBetween(a,g.clone().translate(1,0));let v=f(m);if(h(v[1]))return Oa(v,e.merge);for(let b=1,C=p.length;b1&&(i.rotate(180-d,u),l.rotate(180-d,u),a.rotate(180-d,u))}const c=` - M ${r.x} ${r.y} - Q ${i.x} ${i.y} ${a.x} ${a.y} - Q ${l.x} ${l.y} ${e.x} ${e.y} - `;return s.raw?Ze.parse(c):c},gae=function(r,e,n,s={}){const o=new Ze;o.appendSegment(Ze.createSegment("M",r));const i=1/3,l=2/3,a=s.radius||10;let c,u;for(let d=0,f=n.length;d=Math.abs(r.y-e.y)?"H":"V"),i==="H"){const l=(r.x+e.x)/2;o.appendSegment(Ze.createSegment("C",l,r.y,l,e.y,e.x,e.y))}else{const l=(r.y+e.y)/2;o.appendSegment(Ze.createSegment("C",r.x,l,e.x,l,e.x,e.y))}return s.raw?o:o.serialize()},hE=1,Zf=1/3,Qf=2/3;function bae(r){let e=r.graph._jumpOverUpdateList;if(e==null&&(e=r.graph._jumpOverUpdateList=[],r.graph.on("cell:mouseup",()=>{const n=r.graph._jumpOverUpdateList;setTimeout(()=>{for(let s=0;s{e=r.graph._jumpOverUpdateList=[]})),e.indexOf(r)<0){e.push(r);const n=()=>e.splice(e.indexOf(r),1);r.cell.once("change:connector",n),r.cell.once("removed",n)}}function Bm(r,e,n=[]){const s=[r,...n,e],o=[];return s.forEach((i,l)=>{const a=s[l+1];a!=null&&o.push(new We(i,a))}),o}function vae(r,e){const n=[];return e.forEach(s=>{const o=r.intersectsWithLine(s);o&&n.push(o)}),n}function pE(r,e){return new We(r,e).squaredLength()}function yae(r,e,n){return e.reduce((s,o,i)=>{if(gp.includes(o))return s;const l=s.pop()||r,a=K.create(o).move(l.start,-n);let c=K.create(o).move(l.start,+n);const u=e[i+1];if(u!=null){const h=c.distance(u);h<=n&&(c=u.move(l.start,h),gp.push(u))}else if(a.distance(l.end){if(Id.includes(l)){let c,u,d,f;if(n==="arc"){c=-90,u=l.start.diff(l.end),(u.x<0||u.x===0&&u.y<0)&&(c+=180);const p=l.getCenter(),g=new We(p,l.end).rotate(c,p);let m;m=new We(l.start,p),d=m.pointAt(2/3).rotate(c,l.start),f=g.pointAt(1/3).rotate(-c,g.end),i=Ze.createSegment("C",d,f,g.end),o.appendSegment(i),m=new We(p,l.end),d=g.pointAt(1/3).rotate(c,g.end),f=m.pointAt(1/3).rotate(-c,l.end),i=Ze.createSegment("C",d,f,l.end),o.appendSegment(i)}else if(n==="gap")i=Ze.createSegment("M",l.end),o.appendSegment(i);else if(n==="cubic"){c=l.start.theta(l.end);const h=e*.6;let p=e*1.35;u=l.start.diff(l.end),(u.x<0||u.x===0&&u.y<0)&&(p*=-1),d=new K(l.start.x+h,l.start.y+p).rotate(c,l.start),f=new K(l.end.x-h,l.end.y+p).rotate(c,l.end),i=Ze.createSegment("C",d,f,l.end),o.appendSegment(i)}}else{const c=r[a+1];s===0||!c||Id.includes(c)?(i=Ze.createSegment("L",l.end),o.appendSegment(i)):wae(s,o,l.end,l.start,c.end)}}),o}function wae(r,e,n,s,o){const i=n.distance(s)/2,l=n.distance(o)/2,a=-Math.min(r,i),c=-Math.min(r,l),u=n.clone().move(s,a).round(),d=n.clone().move(o,c).round(),f=new K(Zf*u.x+Qf*n.x,Qf*n.y+Zf*u.y),h=new K(Zf*d.x+Qf*n.x,Qf*n.y+Zf*d.y);let p;p=Ze.createSegment("L",u),e.appendSegment(p),p=Ze.createSegment("C",f,h,d),e.appendSegment(p)}let Id,gp;const Cae=function(r,e,n,s={}){Id=[],gp=[],bae(this);const o=s.size||5,i=s.type||"arc",l=s.radius||0,a=s.ignoreConnectors||["smooth"],c=this.graph,d=c.model.getEdges();if(d.length===1)return gE(Bm(r,e,n),o,i,l);const f=this.cell,h=d.indexOf(f),p=c.options.connecting.connector||{},g=d.filter((w,x)=>{const E=w.getConnector()||p;return a.includes(E.name)?!1:x>h?E.name!=="jumpover":!0}),m=g.map(w=>c.findViewByCell(w)),v=Bm(r,e,n),b=m.map(w=>w==null?[]:w===this?v:Bm(w.sourcePoint,w.targetPoint,w.routePoints)),C=[];v.forEach(w=>{const x=g.reduce((E,_,M)=>{if(_!==f){const A=vae(w,b[M]);E.push(...A)}return E},[]).sort((E,_)=>pE(w.start,E)-pE(w.start,_));x.length>0?C.push(...yae(w,x,o)):C.push(w)});const y=gE(C,o,i,l);return Id=[],gp=[],s.raw?y:y.serialize()},Sae=Object.freeze(Object.defineProperty({__proto__:null,jumpover:Cae,loop:pae,normal:hae,rounded:gae,smooth:mae},Symbol.toStringTag,{value:"Module"}));var Zl;(function(r){r.presets=Sae,r.registry=gn.create({type:"connector"}),r.registry.register(r.presets,!0)})(Zl||(Zl={}));var xae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class UP extends Fr{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(rn(e)),this.changed={}}mutate(e,n={}){const s=n.unset===!0,o=n.silent===!0,i=[],l=this.changing;this.changing=!0,l||(this.previous=rn(this.data),this.changed={});const a=this.data,c=this.previous,u=this.changed;if(Object.keys(e).forEach(d=>{const f=d,h=e[f];Sr(a[f],h)||i.push(f),Sr(c[f],h)?delete u[f]:u[f]=h,s?delete a[f]:a[f]=h}),!o&&i.length>0&&(this.pending=!0,this.pendingOptions=n,i.forEach(d=>{this.emit("change:*",{key:d,options:n,store:this,current:a[d],previous:c[d]})})),l)return this;if(!o)for(;this.pending;)this.pending=!1,this.emit("changed",{current:a,previous:c,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 s=this.data[e];return s??n}getPrevious(e){if(this.previous){const n=this.previous[e];return n??void 0}}set(e,n,s){return e!=null&&(typeof e=="object"?this.mutate(e,n):this.mutate({[e]:n},s)),this}remove(e,n){const o={};let i;if(typeof e=="string")o[e]=void 0,i=n;else if(Array.isArray(e))e.forEach(l=>o[l]=void 0),i=n;else{for(const l in this.data)o[l]=void 0;i=e}return this.mutate(o,Object.assign(Object.assign({},i),{unset:!0})),this}getByPath(e){return p0(this.data,e,"/")}setByPath(e,n,s={}){const o="/",i=Array.isArray(e)?[...e]:e.split(o),l=Array.isArray(e)?e.join(o):e,a=i[0],c=i.length;if(s.propertyPath=l,s.propertyValue=n,s.propertyPathArray=i,c===1)this.set(a,n,s);else{const u={};let d=u,f=a;for(let g=1;g0:e in this.changed}getChanges(e){if(e==null)return this.hasChanged()?rn(this.changed):null;const n=this.changing?this.previous:this.data,s={};let o;for(const i in e){const l=e[i];Sr(n[i],l)||(s[i]=l,o=!0)}return o?rn(s):null}toJSON(){return rn(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})}}xae([Fr.dispose()],UP.prototype,"dispose",null);class Ld{constructor(e){this.cell=e,this.ids={},this.cache={}}get(){return Object.keys(this.ids)}start(e,n,s={},o="/"){const i=this.cell.getPropByPath(e),l=G6(s,Ld.defaultOptions),a=this.getTiming(l.timing),c=this.getInterp(l.interp,i,n);let u=0;const d=Array.isArray(e)?e.join(o):e,f=Array.isArray(e)?e:e.split(o),h=()=>{const p=new Date().getTime();u===0&&(u=p);let m=(p-u)/l.duration;m<1?this.ids[d]=requestAnimationFrame(h):m=1;const v=c(a(m));this.cell.setPropByPath(f,v),s.progress&&s.progress(Object.assign({progress:m,currentValue:v},this.getArgs(d))),m===1&&(this.cell.notify("transition:complete",this.getArgs(d)),s.complete&&s.complete(this.getArgs(d)),this.cell.notify("transition:finish",this.getArgs(d)),s.finish&&s.finish(this.getArgs(d)),this.clean(d))};return setTimeout(()=>{this.stop(e,void 0,o),this.cache[d]={startValue:i,targetValue:n,options:l},this.ids[d]=requestAnimationFrame(h),this.cell.notify("transition:start",this.getArgs(d)),s.start&&s.start(this.getArgs(d))},s.delay),this.stop.bind(this,e,o,s)}stop(e,n={},s="/"){const o=Array.isArray(e)?e:e.split(s);return Object.keys(this.ids).filter(i=>Sr(o,i.split(s).slice(0,o.length))).forEach(i=>{cancelAnimationFrame(this.ids[i]);const l=this.cache[i],a=this.getArgs(i),c=Object.assign(Object.assign({},l.options),n),u=c.jumpedToEnd;u&&l.targetValue!=null&&(this.cell.setPropByPath(i,l.targetValue),this.cell.notify("transition:end",Object.assign({},a)),this.cell.notify("transition:complete",Object.assign({},a)),c.complete&&c.complete(Object.assign({},a)));const d=Object.assign({jumpedToEnd:u},a);this.cell.notify("transition:stop",Object.assign({},d)),c.stop&&c.stop(Object.assign({},d)),this.cell.notify("transition:finish",Object.assign({},a)),c.finish&&c.finish(Object.assign({},a)),this.clean(i)}),this}clean(e){delete this.ids[e],delete this.cache[e]}getTiming(e){return typeof e=="string"?ca[e]:e}getInterp(e,n,s){return e?e(n,s):typeof s=="number"?Bl.number(n,s):typeof s=="string"?s[0]==="#"?Bl.color(n,s):Bl.unit(n,s):Bl.object(n,s)}getArgs(e){const n=this.cache[e];return{path:e,startValue:n.startValue,targetValue:n.targetValue,cell:this.cell}}}(function(r){r.defaultOptions={delay:10,duration:100,timing:"linear"}})(Ld||(Ld={}));var Eae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},WP=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{typeof l=="function"&&this.propHooks.push(l)})),o&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),o)),this.defaults=on({},this.defaults,i)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:rn(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,n){return this.propHooks.reduce((s,o)=>o?ht(o,e,s):s,n)}get[Symbol.toStringTag](){return At.toStringTag}constructor(e={}){super();const s=this.constructor.getDefaults(!0),o=on({},this.preprocess(s),this.preprocess(e));this.id=o.id||sp(),this.store=new UP(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,n){const s=e.id,i=this.constructor.applyPropHooks(this,e);return s==null&&n!==!0&&(i.id=sp()),i}postprocess(e){}setup(){this.store.on("change:*",e=>{const{key:n,current:s,previous:o,options:i}=e;this.notify("change:*",{key:n,options:i,current:s,previous:o,cell:this}),this.notify(`change:${n}`,{options:i,current:s,previous:o,cell:this});const l=n;(l==="source"||l==="target")&&this.notify("change:terminal",{type:l,current:s,previous:o,options:i,cell:this})}),this.store.on("changed",({options:e})=>this.notify("changed",{options:e,cell:this}))}notify(e,n){this.trigger(e,n);const s=this.model;return s&&(s.notify(`cell:${e}`,n),this.isNode()?s.notify(`node:${e}`,Object.assign(Object.assign({},n),{node:this})):this.isEdge()&&s.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,s){if(typeof e=="string")this.store.set(e,n,s);else{const o=this.preprocess(e,!0);this.store.set(on({},this.getProp(),o),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,s={}){return this.model&&(e==="children"?this._children=n?n.map(o=>this.model.getCell(o)).filter(o=>o!=null):null:e==="parent"&&(this._parent=n?this.model.getCell(n):null)),this.store.setByPath(e,n,s),this}removePropByPath(e,n={}){const s=Array.isArray(e)?e:e.split("/");return s[0]==="attrs"&&(n.dirty=!0),this.store.removeByPath(s,n),this}prop(e,n,s){return e==null?this.getProp():typeof e=="string"||Array.isArray(e)?arguments.length===1?this.getPropByPath(e):n==null?this.removePropByPath(e,s||{}):this.setPropByPath(e,n,s||{}):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 s=n.getMaxZIndex(),o;e.deep?(o=this.getDescendants({deep:!0,breadthFirst:!0}),o.unshift(this)):o=[this],s=s-o.length+1;const i=n.total();let l=n.indexOf(this)!==i-o.length;l||(l=o.some((a,c)=>a.getZIndex()!==s+c)),l&&this.batchUpdate("to-front",()=>{s+=o.length,o.forEach((a,c)=>{a.setZIndex(s+c,e)})})}return this}toBack(e={}){const n=this.model;if(n){let s=n.getMinZIndex(),o;e.deep?(o=this.getDescendants({deep:!0,breadthFirst:!0}),o.unshift(this)):o=[this];let i=n.indexOf(this)!==0;i||(i=o.some((l,a)=>l.getZIndex()!==s+a)),i&&this.batchUpdate("to-back",()=>{s-=o.length,o.forEach((l,a)=>{l.setZIndex(s+a,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 s=o=>this.store.set("attrs",o,n);if(n.overwrite===!0)s(e);else{const o=this.getAttrs();n.deep===!1?s(Object.assign(Object.assign({},o),e)):s(on({},o,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 s=this.constructor.getAttrHooks()||{};let o=s[e]||fo.registry.get(e);if(!o){const i=Up(e);o=s[i]||fo.registry.get(i)}return o||null}getAttrByPath(e){return e==null||e===""?this.getAttrs():this.getPropByPath(this.prefixAttrPath(e))}setAttrByPath(e,n,s={}){return this.setPropByPath(this.prefixAttrPath(e),n,s),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,s){return e==null?this.getAttrByPath():typeof e=="string"||Array.isArray(e)?arguments.length===1?this.getAttrByPath(e):n==null?this.removeAttrByPath(e,s||{}):this.setAttrByPath(e,n,s||{}):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 s=typeof e=="boolean"?e:!this.isVisible(),o=typeof e=="boolean"?n:e;return s?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,n={}){if(e==null)this.removeData(n);else{const s=o=>this.store.set("data",o,n);if(n.overwrite===!0)s(e);else{const o=this.getData();n.deep===!1?s(typeof e=="object"?Object.assign(Object.assign({},o),e):e):s(on({},o,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(s=>{var o;return(o=this.model)===null||o===void 0?void 0:o.getCell(s)}).filter(s=>s!=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 s=this.getParent();for(;s;)n.push(s),s=e.deep!==!1?s.getParent():null;return n}getDescendants(e={}){if(e.deep!==!1){if(e.breadthFirst){const n=[],s=this.getChildren()||[];for(;s.length>0;){const o=s.shift(),i=o.getChildren();n.push(o),i&&s.push(...i)}return n}{const n=this.getChildren()||[];return n.forEach(s=>{n.push(...s.getDescendants(e))}),n}}return this.getChildren()||[]}isDescendantOf(e,n={}){if(e==null)return!1;if(n.deep!==!1){let s=this.getParent();for(;s;){if(s===e)return!0;s=s.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 At.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(s=>s.id),n):this.store.remove("children",n),this}unembed(e,n={}){const s=this.children;if(s!=null&&e!=null){const o=this.getChildIndex(e);o!==-1&&(s.splice(o,1),e.setParent(null,n),this.setChildren(s,n))}return this}embed(e,n={}){return e.addTo(this,n),this}addTo(e,n={}){return At.isCell(e)?e.addChild(this,n):e.addCell(this,n),this}insertTo(e,n,s={}){return e.insertChild(this,n,s),this}addChild(e,n={}){return this.insertChild(e,void 0,n)}insertChild(e,n,s={}){if(e!=null&&e!==this){const o=e.getParent(),i=this!==o;let l=n;if(l==null&&(l=this.getChildCount(),i||(l-=1)),o){const c=o.getChildren();if(c){const u=c.indexOf(e);u>=0&&(e.setParent(null,s),c.splice(u,1),o.setChildren(c,s))}}let a=this.children;if(a==null?(a=[],a.push(e)):a.splice(l,0,e),e.setParent(this,s),this.setChildren(a,s),i&&this.model){const c=this.model.getIncomingEdges(this),u=this.model.getOutgoingEdges(this);c&&c.forEach(d=>d.updateParent(s)),u&&u.forEach(d=>d.updateParent(s))}this.model&&this.model.addCell(e,s)}return this}removeFromParent(e={}){const n=this.getParent();if(n!=null){const s=n.getChildIndex(this);n.removeChildAt(s,e)}return this}removeChild(e,n={}){const s=this.getChildIndex(e);return this.removeChildAt(s,n)}removeChildAt(e,n={}){const s=this.getChildAt(e);return this.children!=null&&s!=null&&(this.unembed(s,n),s.remove(n)),s}remove(e={}){return this.batchUpdate("remove",()=>{const n=this.getParent();n&&n.removeChild(this,e),e.deep!==!1&&this.eachChild(s=>s.remove(e)),this.model&&this.model.removeCell(this,e)}),this}transition(e,n,s={},o="/"){return this.animation.start(e,n,s,o)}stopTransition(e,n,s="/"){return this.animation.stop(e,n,s),this}getTransitions(){return this.animation.get()}translate(e,n,s){return this}scale(e,n,s,o){return this}addTools(e,n,s){const o=Array.isArray(e)?e:[e],i=typeof n=="string"?n:null,l=typeof n=="object"?n:typeof s=="object"?s:{};if(l.reset)return this.setTools({name:i,items:o,local:l.local},l);let a=rn(this.getTools());if(a==null||i==null||a.name===i)return a==null&&(a={}),a.items||(a.items=[]),a.name=i,a.items=[...a.items,...o],this.setTools(Object.assign({},a),l)}setTools(e,n={}){return e==null?this.removeTools():this.store.set("tools",At.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(s=>typeof s=="string"?s===e:s.name===e)}removeTool(e,n={}){const s=rn(this.getTools());if(s){let o=!1;const i=s.items.slice(),l=a=>{i.splice(a,1),o=!0};if(typeof e=="number")l(e);else for(let a=i.length-1;a>=0;a-=1){const c=i[a];(typeof c=="string"?c===e:c.name===e)&&l(a)}o&&(s.items=i,this.setTools(s,n))}return this}getBBox(e){return new Ne}getConnectionPoint(e,n){return new K}toJSON(e={}){const n=Object.assign({},this.store.get()),s=Object.prototype.toString,o=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!n.shape){const g=this.constructor;throw new Error(`Unable to serialize ${o} missing "shape" prop, check the ${o} "${g.name||s.call(g)}"`)}const i=this.constructor,l=e.diff===!0,a=n.attrs||{},c=i.getDefaults(!0),u=l?this.preprocess(c,!0):c,d=u.attrs||{},f={};Object.entries(n).forEach(([g,m])=>{if(m!=null&&!Array.isArray(m)&&typeof m=="object"&&!po(m))throw new Error(`Can only serialize ${o} with plain-object props, but got a "${s.call(m)}" type of key "${g}" on ${o} "${this.id}"`);if(g!=="attrs"&&g!=="shape"&&l){const v=u[g];Sr(m,v)&&delete n[g]}}),Object.keys(a).forEach(g=>{const m=a[g],v=d[g];Object.keys(m).forEach(b=>{const C=m[b],y=v?v[b]:null;C!=null&&typeof C=="object"&&!Array.isArray(C)?Object.keys(C).forEach(w=>{const x=C[w];if(v==null||y==null||!ln(y)||!Sr(y[w],x)){f[g]==null&&(f[g]={}),f[g][b]==null&&(f[g][b]={});const E=f[g][b];E[w]=x}}):(v==null||!Sr(y,C))&&(f[g]==null&&(f[g]={}),f[g][b]=C)})});const h=Object.assign(Object.assign({},n),{attrs:N_(f)?void 0:f});h.attrs==null&&delete h.attrs;const p=h;return p.angle===0&&delete p.angle,rn(p)}clone(e={}){if(!e.deep){const s=Object.assign({},this.store.get());e.keepId||delete s.id,delete s.parent,delete s.children;const o=this.constructor;return new o(s)}return At.deepClone(this)[this.id]}findView(e){return e.findViewByCell(this)}startBatch(e,n={},s=this.model){return this.notify("batch:start",{name:e,data:n,cell:this}),s&&s.startBatch(e,Object.assign(Object.assign({},n),{cell:this})),this}stopBatch(e,n={},s=this.model){return s&&s.stopBatch(e,Object.assign(Object.assign({},n),{cell:this})),this.notify("batch:stop",{name:e,data:n,cell:this}),this}batchUpdate(e,n,s){const o=this.model;this.startBatch(e,s,o);const i=n();return this.stopBatch(e,s,o),i}dispose(){this.removeFromParent(),this.store.dispose()}}At.defaults={};At.attrHooks={};At.propHooks=[];Eae([Fr.dispose()],At.prototype,"dispose",null);(function(r){function e(n){return typeof n=="string"?{items:[n]}:Array.isArray(n)?{items:n}:n.items?n:{items:[n]}}r.normalizeTools=e})(At||(At={}));(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.toStringTag)&&typeof o.isNode=="function"&&typeof o.isEdge=="function"&&typeof o.prop=="function"&&typeof o.attr=="function"}r.isCell=e})(At||(At={}));(function(r){function e(...i){const l=i.filter(c=>c!=null).map(c=>c.getAncestors()).sort((c,u)=>c.length-u.length);return l.shift().find(c=>l.every(u=>u.includes(c)))||null}r.getCommonAncestor=e;function n(i,l={}){let a=null;for(let c=0,u=i.length;c(c[u.id]=u.clone(),c),{});return l.forEach(c=>{const u=a[c.id];if(u.isEdge()){const h=u.getSourceCellId(),p=u.getTargetCellId();h&&a[h]&&u.setSource(Object.assign(Object.assign({},u.getSource()),{cell:a[h].id})),p&&a[p]&&u.setTarget(Object.assign(Object.assign({},u.getTarget()),{cell:a[p].id}))}const d=c.getParent();d&&a[d.id]&&u.setParent(a[d.id]);const f=c.getChildren();if(f&&f.length){const h=f.reduce((p,g)=>(a[g.id]&&p.push(a[g.id]),p),[]);h.length>0&&u.setChildren(h)}}),a}r.cloneCells=o})(At||(At={}));(function(r){r.config({propHooks(e){var{tools:n}=e,s=WP(e,["tools"]);return n&&(s.tools=r.normalizeTools(n)),s}})})(At||(At={}));var zc;(function(r){let e,n;function s(l,a){return a?e!=null&&e.exist(l):n!=null&&n.exist(l)}r.exist=s;function o(l){e=l}r.setEdgeRegistry=o;function i(l){n=l}r.setNodeRegistry=i})(zc||(zc={}));class Tae{constructor(e){this.ports=[],this.groups={},this.init(rn(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 s=this.getPortsByGroup(e),o=e?this.getGroup(e):null,i=o?o.position:null,l=i?i.name:null;let a;if(l!=null){const f=Xl.registry.get(l);if(f==null)return Xl.registry.onNotFound(l);a=f}else a=Xl.presets.left;const c=s.map(f=>f&&f.position&&f.position.args||{}),u=i&&i.args||{};return a(c,n,u).map((f,h)=>{const p=s[h];return{portLayout:f,portId:p.id,portSize:p.size,portAttrs:p.attrs,labelSize:p.label.size,labelLayout:this.getPortLabelLayout(p,K.create(f.position),n)}})}init(e){const{groups:n,items:s}=e;n!=null&&Object.keys(n).forEach(o=>{this.groups[o]=this.parseGroup(n[o])}),Array.isArray(s)&&s.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 n=Object.assign({},e),s=this.getGroup(e.group)||{};return n.markup=n.markup||s.markup,n.attrs=on({},s.attrs,n.attrs),n.position=this.createPosition(s,n),n.label=on({},s.label,this.getLabel(n)),n.zIndex=this.getZIndex(s,n),n.size=Object.assign(Object.assign({},s.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 on({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 s=e.label||{};return s.position=this.getPortLabelPosition(s.position,n),s}getPortLabelLayout(e,n,s){const o=e.label.position.name||"left",i=e.label.position.args||{},l=Lc.registry.get(o)||Lc.presets.left;return l?l(n,s,i):null}}var _g=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{var a;((a=s.exclude)===null||a===void 0?void 0:a.includes(l))||l.translate(e,n,s)})):(this.startBatch("translate",s),this.store.set("position",i,s),this.eachChild(l=>{var a;((a=s.exclude)===null||a===void 0?void 0:a.includes(l))||l.translate(e,n,s)}),this.stopBatch("translate",s)),this}angle(e,n){return e==null?this.getAngle():this.rotate(e,n)}getAngle(){return this.store.get("angle",0)}rotate(e,n={}){const s=this.getAngle();if(n.center){const o=this.getSize(),i=this.getPosition(),l=this.getBBox().getCenter();l.rotate(s-e,n.center);const a=l.x-o.width/2-i.x,c=l.y-o.height/2-i.y;this.startBatch("rotate",{angle:e,options:n}),this.setPosition(i.x+a,i.y+c,n),this.rotate(e,Object.assign(Object.assign({},n),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",n.absolute?e:(s+e)%360,n);return this}getBBox(e={}){if(e.deep){const n=this.getDescendants({deep:!0,breadthFirst:!0});return n.push(this),At.getCellsBBox(n)}return Ne.fromPositionAndSize(this.getPosition(),this.getSize())}getConnectionPoint(e,n){const s=this.getBBox(),o=s.getCenter(),i=e.getTerminal(n);if(i==null)return o;const l=i.port;if(!l||!this.hasPort(l))return o;const a=this.getPort(l);if(!a||!a.group)return o;const u=this.getPortsPosition(a.group)[l].position,d=K.create(u).translate(s.getOrigin()),f=this.getAngle();return f&&d.rotate(-f,o),d}fit(e={}){const s=(this.getChildren()||[]).filter(u=>u.isNode());if(s.length===0)return this;this.startBatch("fit-embeds",e),e.deep&&s.forEach(u=>u.fit(e));let{x:o,y:i,width:l,height:a}=At.getCellsBBox(s);const c=la(e.padding);return o-=c.left,i-=c.top,l+=c.left+c.right,a+=c.bottom+c.top,this.store.set({position:{x:o,y:i},size:{width:l,height:a}},e),this.stopBatch("fit-embeds"),this}get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(e){this.setPortContainerMarkup(e)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||Yt.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,n={}){return this.store.set("portContainerMarkup",Yt.clone(e),n),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||Yt.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,n={}){return this.store.set("portMarkup",Yt.clone(e),n),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||Yt.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,n={}){return this.store.set("portLabelMarkup",Yt.clone(e),n),this}get ports(){const e=this.store.get("ports",{items:[]});return e.items==null&&(e.items=[]),e}getPorts(){return rn(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter(n=>n.group===e)}getPort(e){return rn(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(s=>s.id===n):-1}getPortsPosition(e){const n=this.getSize();return this.port.getPortsLayoutByGroup(e,new Ne(0,0,n.width,n.height)).reduce((o,i)=>{const l=i.portLayout;return o[i.portId]={position:Object.assign({},l.position),angle:l.angle||0},o},{})}getPortProp(e,n){return this.getPropByPath(this.prefixPortPath(e,n))}setPortProp(e,n,s,o){if(typeof n=="string"||Array.isArray(n)){const a=this.prefixPortPath(e,n),c=s;return this.setPropByPath(a,c,o)}const i=this.prefixPortPath(e),l=n;return this.setPropByPath(i,l,s)}removePortProp(e,n,s){return typeof n=="string"||Array.isArray(n)?this.removePropByPath(this.prefixPortPath(e,n),s):this.removePropByPath(this.prefixPortPath(e),n)}portProp(e,n,s,o){return n==null?this.getPortProp(e):typeof n=="string"||Array.isArray(n)?arguments.length===2?this.getPortProp(e,n):s==null?this.removePortProp(e,n,o):this.setPortProp(e,n,s,o):this.setPortProp(e,n,s)}prefixPortPath(e,n){const s=this.getPortIndex(e);if(s===-1)throw new Error(`Unable to find port with id: "${e}"`);return n==null||n===""?["ports","items",`${s}`]:Array.isArray(n)?["ports","items",`${s}`,...n]:`ports/items/${s}/${n}`}addPort(e,n){const s=[...this.ports.items];return s.push(e),this.setPropByPath("ports/items",s,n),this}addPorts(e,n){return this.setPropByPath("ports/items",[...this.ports.items,...e],n),this}insertPort(e,n,s){const o=[...this.ports.items];return o.splice(e,0,n),this.setPropByPath("ports/items",o,s),this}removePort(e,n={}){return this.removePortAt(this.getPortIndex(e),n)}removePortAt(e,n={}){if(e>=0){const s=[...this.ports.items];s.splice(e,1),n.rewrite=!0,this.setPropByPath("ports/items",s,n)}return this}removePorts(e,n){let s;if(Array.isArray(e)){if(s=n||{},e.length){s.rewrite=!0;const i=[...this.ports.items].filter(l=>!e.some(a=>{const c=typeof a=="string"?a:a.id;return l.id===c}));this.setPropByPath("ports/items",i,s)}}else s=e||{},s.rewrite=!0,this.setPropByPath("ports/items",[],s);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(l=>{l.id&&(n[l.id]=!0)});const s={};(this.store.getPrevious("ports")||{items:[]}).items.forEach(l=>{l.id&&!n[l.id]&&(s[l.id]=!0)});const i=this.model;i&&!N_(s)&&(i.getConnectedEdges(this,{incoming:!0}).forEach(c=>{const u=c.getTargetPortId();u&&s[u]&&c.remove()}),i.getConnectedEdges(this,{outgoing:!0}).forEach(c=>{const u=c.getSourcePortId();u&&s[u]&&c.remove()}))}validatePorts(){const e={},n=[];return this.ports.items.forEach(s=>{typeof s!="object"&&n.push(`Invalid port ${s}.`),s.id==null&&(s.id=this.generatePortId()),e[s.id]&&n.push("Duplicitied port id."),e[s.id]=!0}),n}generatePortId(){return sp()}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 Tae(this.ports);const s=this.port.getPorts(),o=n?s.filter(l=>n.find(a=>a.id===l.id)?null:l):[...s],i=n?n.filter(l=>s.find(a=>a.id===l.id)?null:l):[];o.length>0&&this.notify("ports:added",{added:o,cell:this,node:this}),i.length>0&&this.notify("ports:removed",{removed:i,cell:this,node:this})}};mn.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}};(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.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"}r.isNode=e})(mn||(mn={}));(function(r){r.config({propHooks(e){var{ports:n}=e,s=_g(e,["ports"]);return n&&(s.ports=Array.isArray(n)?{items:n}:n),s}})})(mn||(mn={}));(function(r){r.registry=gn.create({type:"node",process(e,n){if(zc.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 s=r;const{inherit:o}=n,i=_g(n,["inherit"]);if(o)if(typeof o=="string"){const a=this.get(o);a==null?this.onNotFound(o,"inherited"):s=a}else s=o;i.constructorName==null&&(i.constructorName=e);const l=s.define.call(s,i);return l.config({shape:e}),l}}),zc.setNodeRegistry(r.registry)})(mn||(mn={}));(function(r){let e=0;function n(i){return i?g0(i):(e+=1,`CustomNode${e}`)}function s(i){const{constructorName:l,overwrite:a}=i,c=_g(i,["constructorName","overwrite"]),u=h0(n(l||c.shape),this);return u.config(c),c.shape&&r.registry.register(c.shape,u,a),u}r.define=s;function o(i){const l=i.shape||"rect",a=r.registry.get(l);return a?new a(i):r.registry.onNotFound(l)}r.create=o})(mn||(mn={}));var Og=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);otypeof g=="string"||typeof g=="number";if(s!=null)if(At.isCell(s))h.source={cell:s.id};else if(p(s))h.source={cell:s};else if(K.isPoint(s))h.source=s.toJSON();else if(Array.isArray(s))h.source={x:s[0],y:s[1]};else{const g=s.cell;At.isCell(g)?h.source=Object.assign(Object.assign({},s),{cell:g.id}):h.source=s}if(o!=null||i!=null){let g=h.source;if(o!=null){const m=p(o)?o:o.id;g?g.cell=m:g=h.source={cell:m}}i!=null&&g&&(g.port=i)}else l!=null&&(h.source=K.create(l).toJSON());if(a!=null)if(At.isCell(a))h.target={cell:a.id};else if(p(a))h.target={cell:a};else if(K.isPoint(a))h.target=a.toJSON();else if(Array.isArray(a))h.target={x:a[0],y:a[1]};else{const g=a.cell;At.isCell(g)?h.target=Object.assign(Object.assign({},a),{cell:g.id}):h.target=a}if(c!=null||u!=null){let g=h.target;if(c!=null){const m=p(c)?c:c.id;g?g.cell=m:g=h.target={cell:m}}u!=null&&g&&(g.port=u)}else d!=null&&(h.target=K.create(d).toJSON());return super.preprocess(h,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,s={}){return this.setTerminal("source",e,n,s)}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,s={}){return this.setTerminal("target",e,n,s)}getTerminal(e){return Object.assign({},this.store.get(e))}setTerminal(e,n,s,o={}){if(At.isCell(n))return this.store.set(e,on({},s,{cell:n.id}),o),this;const i=n;return K.isPoint(n)||i.x!=null&&i.y!=null?(this.store.set(e,on({},s,{x:i.x,y:i.y}),o),this):(this.store.set(e,rn(n),o),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const n=this[e];if(K.isPointLike(n))return K.create(n);const s=this.getTerminalCell(e);return s?s.getConnectionPoint(this,e):new K}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 s={};for(;n&&n.isEdge();){if(s[n.id])return null;s[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,s){return typeof e=="object"?this.store.set("router",e,n):this.store.set("router",{name:e,args:n},s),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,s){return typeof e=="object"?this.store.set("connector",e,n):this.store.set("connector",{name:e,args:n},s),this}removeConnector(e={}){return this.store.remove("connector",e)}getDefaultLabel(){const e=this.constructor,n=this.store.get("defaultLabel")||e.defaultLabel||{};return rn(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,s={}){const o=this.getLabels(),i=o.length;let l=n!=null&&Number.isFinite(n)?n:i;return l<0&&(l=i+l+1),o.splice(l,0,this.parseLabel(e)),this.setLabels(o,s)}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,s={}){if(e!=null&&Number.isFinite(e)){const o=this.getLabels();o[e]=this.parseLabel(n),this.setLabels(o,s)}return this}removeLabelAt(e,n={}){const s=this.getLabels(),o=e!=null&&Number.isFinite(e)?e:-1,i=s.splice(o,1);return this.setLabels(s,n),i.length?i[0]:null}parseLabel(e){return typeof e=="string"?this.constructor.parseStringLabel(e):e}onLabelsChanged({previous:e,current:n}){const s=e&&n?n.filter(i=>e.find(l=>i===l||Sr(i,l))?null:i):n?[...n]:[],o=e&&n?e.filter(i=>n.find(l=>i===l||Sr(i,l))?null:i):e?[...e]:[];s.length>0&&this.notify("labels:added",{added:s,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,n={}){const s=Array.isArray(e)?e:[e];return this.store.set("vertices",s.map(o=>K.toJSON(o)),n),this}insertVertex(e,n,s={}){const o=this.getVertices(),i=o.length;let l=n!=null&&Number.isFinite(n)?n:i;return l<0&&(l=i+l+1),o.splice(l,0,K.toJSON(e)),this.setVertices(o,s)}appendVertex(e,n={}){return this.insertVertex(e,-1,n)}getVertexAt(e){return e!=null&&Number.isFinite(e)?this.getVertices()[e]:null}setVertexAt(e,n,s={}){if(e!=null&&Number.isFinite(e)){const o=this.getVertices();o[e]=n,this.setVertices(o,s)}return this}removeVertexAt(e,n={}){const s=this.getVertices(),o=e!=null&&Number.isFinite(e)?e:-1;return s.splice(o,1),this.setVertices(s,n)}onVertexsChanged({previous:e,current:n}){const s=e&&n?n.filter(i=>e.find(l=>K.equals(i,l))?null:i):n?[...n]:[],o=e&&n?e.filter(i=>n.find(l=>K.equals(i,l))?null:i):e?[...e]:[];s.length>0&&this.notify("vertexs:added",{added:s,cell:this,edge:this}),o.length>0&&this.notify("vertexs:removed",{removed:o,cell:this,edge:this})}getDefaultMarkup(){return this.store.get("defaultMarkup")||Yt.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}translate(e,n,s={}){return s.translateBy=s.translateBy||this.id,s.tx=e,s.ty=n,this.applyToPoints(o=>({x:(o.x||0)+e,y:(o.y||0)+n}),s)}scale(e,n,s,o={}){return this.applyToPoints(i=>K.create(i).scale(e,n,s).toJSON(),o)}applyToPoints(e,n={}){const s={},o=this.getSource(),i=this.getTarget();K.isPointLike(o)&&(s.source=e(o)),K.isPointLike(i)&&(s.target=e(i));const l=this.getVertices();return l.length>0&&(s.vertices=l.map(e)),this.store.set(s,n),this}getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const e=[this.getSourcePoint(),...this.getVertices().map(n=>K.create(n)),this.getTargetPoint()];return new dn(e)}updateParent(e){let n=null;const s=this.getSourceCell(),o=this.getTargetCell(),i=this.getParent();return s&&o&&(s===o||s.isDescendantOf(o)?n=o:o.isDescendantOf(s)?n=s:n=At.getCommonAncestor(s,o)),i&&n&&n.id!==i.id&&i.unembed(this,e),n&&(!i||i.id!==n.id)&&n.embed(this,e),n}hasLoop(e={}){const n=this.getSource(),s=this.getTarget(),o=n.cell,i=s.cell;if(!o||!i)return!1;let l=o===i;if(!l&&e.deep&&this._model){const a=this.getSourceCell(),c=this.getTargetCell();a&&c&&(l=a.isAncestorOf(c,e)||c.isAncestorOf(a,e))}return l}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))}};an.defaults={};(function(r){function e(n,s){const o=n,i=s;return o.cell===i.cell?o.port===i.port||o.port==null&&i.port==null:!1}r.equalTerminals=e})(an||(an={}));(function(r){r.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}}}}r.parseStringLabel=e})(an||(an={}));(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.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"}r.isEdge=e})(an||(an={}));(function(r){r.registry=gn.create({type:"edge",process(e,n){if(zc.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 s=r;const{inherit:o="edge"}=n,i=Og(n,["inherit"]);if(typeof o=="string"){const a=this.get(o||"edge");a==null&&o?this.onNotFound(o,"inherited"):s=a}else s=o;i.constructorName==null&&(i.constructorName=e);const l=s.define.call(s,i);return l.config({shape:e}),l}}),zc.setEdgeRegistry(r.registry)})(an||(an={}));(function(r){let e=0;function n(i){return i?g0(i):(e+=1,`CustomEdge${e}`)}function s(i){const{constructorName:l,overwrite:a}=i,c=Og(i,["constructorName","overwrite"]),u=h0(n(l||c.shape),this);return u.config(c),c.shape&&r.registry.register(c.shape,u,a),u}r.define=s;function o(i){const l=i.shape||"edge",a=r.registry.get(l);return a?new a(i):r.registry.onNotFound(l)}r.create=o})(an||(an={}));(function(r){const e="basic.edge";r.config({shape:e,propHooks(n){const{label:s,vertices:o}=n,i=Og(n,["label","vertices"]);if(s){i.labels==null&&(i.labels=[]);const l=typeof s=="string"?r.parseStringLabel(s):s;i.labels.push(l)}return o&&Array.isArray(o)&&(i.vertices=o.map(l=>K.create(l).toJSON())),i}}),r.registry.register(e,r)})(an||(an={}));var _ae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class wv extends Fr{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,s){let o,i;typeof n=="number"?(o=n,i=Object.assign({merge:!1},s)):(o=this.length,i=Object.assign({merge:!1},n)),o>this.length&&(o=this.length),o<0&&(o+=this.length+1);const l=Array.isArray(e)?e:[e],a=this.comparator&&typeof n!="number"&&i.sort!==!1,c=this.comparator||null;let u=!1;const d=[],f=[];return l.forEach(h=>{const p=this.get(h);p?i.merge&&!h.isSameStore(p)&&(p.setProp(h.getProp(),s),f.push(p),a&&!u&&(c==null||typeof c=="function"?u=p.hasChanged():typeof c=="string"?u=p.hasChanged(c):u=c.some(g=>p.hasChanged(g)))):(d.push(h),this.reference(h))}),d.length&&(a&&(u=!0),this.cells.splice(o,0,...d),this.length=this.cells.length),u&&this.sort({silent:!0}),i.silent||(d.forEach((h,p)=>{const g={cell:h,index:o+p,options:i};this.trigger("added",g),i.dryrun||h.notify("added",Object.assign({},g))}),u&&this.trigger("sorted"),(d.length||f.length)&&this.trigger("updated",{added:d,merged:f,removed:[],options:i})),this}remove(e,n={}){const s=Array.isArray(e)?e:[e],o=this.removeCells(s,n);return!n.silent&&o.length>0&&this.trigger("updated",{options:n,removed:o,added:[],merged:[]}),Array.isArray(e)?o:o[0]}removeCells(e,n){const s=[];for(let o=0;othis.unreference(o)),this.clean(),this.add(e,Object.assign({silent:!0},n)),!n.silent){const o=this.cells.slice();this.trigger("reseted",{options:n,previous:s,current:o});const i=[],l=[];o.forEach(a=>{s.some(u=>u.id===a.id)||i.push(a)}),s.forEach(a=>{o.some(u=>u.id===a.id)||l.push(a)}),this.trigger("updated",{options:n,added:i,removed:l,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=O5(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 s=n.cell;this.trigger(`cell:${e}`,n),s&&(s.isNode()?this.trigger(`node:${e}`,Object.assign(Object.assign({},n),{node:s})):s.isEdge()&&this.trigger(`edge:${e}`,Object.assign(Object.assign({},n),{edge:s})))}clean(){this.length=0,this.cells=[],this.map={}}dispose(){this.reset([])}}_ae([wv.dispose()],wv.prototype,"dispose",null);var Oae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class Is extends Fr{get[Symbol.toStringTag](){return Is.toStringTag}constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new wv(e),this.setup()}notify(e,n){this.trigger(e,n);const s=this.graph;return s&&(e==="sorted"||e==="reseted"||e==="updated"?s.trigger(`model:${e}`,n):s.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 s=n.cell;this.onCellRemoved(s,n.options),this.notify("cell:removed",n),s.isNode()?this.notify("node:removed",Object.assign(Object.assign({},n),{node:s})):s.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},n),{edge:s}))}),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 s=e.id;if(e.isEdge()){delete this.edges[s];const o=e.getSource(),i=e.getTarget();if(o&&o.cell){const l=this.outgoings[o.cell],a=l?l.indexOf(s):-1;a>=0&&(l.splice(a,1),l.length===0&&delete this.outgoings[o.cell])}if(i&&i.cell){const l=this.incomings[i.cell],a=l?l.indexOf(s):-1;a>=0&&(l.splice(a,1),l.length===0&&delete this.incomings[i.cell])}}else delete this.nodes[s];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 s=n==="source"?this.outgoings:this.incomings,o=e.previous(n);if(o&&o.cell){const l=At.isCell(o.cell)?o.cell.id:o.cell,a=s[l],c=a?a.indexOf(e.id):-1;c>=0&&(a.splice(c,1),a.length===0&&delete s[l])}const i=e.getTerminal(n);if(i&&i.cell){const l=At.isCell(i.cell)?i.cell.id:i.cell,a=s[l]||[];a.indexOf(e.id)===-1&&a.push(e.id),s[l]=a}}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(s=>this.prepareCell(s,Object.assign(Object.assign({},n),{dryrun:!0}))),this.collection.reset(e,n),e.map(s=>this.prepareCell(s,{options:n})),this}clear(e={}){const n=this.getCells();if(n.length===0)return this;const s=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",()=>{const o=n.sort((i,l)=>{const a=i.isEdge()?1:2,c=l.isEdge()?1:2;return a-c});for(;o.length>0;){const i=o.shift();i&&i.remove(s)}},s),this}addNode(e,n={}){const s=mn.isNode(e)?e:this.createNode(e);return this.addCell(s,n),s}updateNode(e,n={}){const s=this.createNode(e),o=s.getProp();return s.dispose(),this.updateCell(o,n)}createNode(e){return mn.create(e)}addEdge(e,n={}){const s=an.isEdge(e)?e:this.createEdge(e);return this.addCell(s,n),s}createEdge(e){return an.create(e)}updateEdge(e,n={}){const s=this.createEdge(e),o=s.getProp();return s.dispose(),this.updateCell(o,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(s=>this.addCell(s,n)),this.addings.delete(e)),this)}addCells(e,n={}){const s=e.length;if(s===0)return this;const o=Object.assign(Object.assign({},n),{position:s-1,maxPosition:s-1});return this.startBatch("add",Object.assign(Object.assign({},o),{cells:e})),e.forEach(i=>{this.addCell(i,o),o.position-=1}),this.stopBatch("add",Object.assign(Object.assign({},o),{cells:e})),this}updateCell(e,n={}){const s=e.id&&this.getCell(e.id);return s?this.batchUpdate("update",()=>(Object.entries(e).forEach(([o,i])=>s.setProp(o,i,n)),!0),e):!1}removeCell(e,n={}){const s=typeof e=="string"?this.getCell(e):e;return s&&this.has(s)?this.collection.remove(s,n):null}updateCellId(e,n){if(e.id===n)return;this.startBatch("update",{id:n}),e.prop("id",n);const s=e.clone({keepId:!0});return this.addCell(s),this.getConnectedEdges(e).forEach(i=>{const l=i.getSourceCell(),a=i.getTargetCell();l===e&&i.setSource(Object.assign(Object.assign({},i.getSource()),{cell:n})),a===e&&i.setTarget(Object.assign(Object.assign({},i.getTarget()),{cell:n}))}),this.removeCell(e),this.stopBatch("update",{id:n}),s}removeCells(e,n={}){return e.length?this.batchUpdate("remove",()=>e.map(s=>this.removeCell(s,n))):[]}removeConnectedEdges(e,n={}){const s=this.getConnectedEdges(e);return s.forEach(o=>{o.remove(n)}),s}disconnectConnectedEdges(e,n={}){const s=typeof e=="string"?e:e.id;this.getConnectedEdges(e).forEach(o=>{const i=o.getSourceCellId(),l=o.getTargetCellId();i===s&&o.setSource({x:0,y:0},n),l===s&&o.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,s=this.outgoings[n];return s?s.map(o=>this.getCell(o)).filter(o=>o&&o.isEdge()):null}getIncomingEdges(e){const n=typeof e=="string"?e:e.id,s=this.incomings[n];return s?s.map(o=>this.getCell(o)).filter(o=>o&&o.isEdge()):null}getConnectedEdges(e,n={}){const s=[],o=typeof e=="string"?this.getCell(e):e;if(o==null)return s;const i={},l=n.indirect;let a=n.incoming,c=n.outgoing;a==null&&c==null&&(a=c=!0);const u=(d,f)=>{const h=f?this.getOutgoingEdges(d):this.getIncomingEdges(d);if(h!=null&&h.forEach(p=>{i[p.id]||(s.push(p),i[p.id]=!0,l&&(a&&u(p,!1),c&&u(p,!0)))}),l&&d.isEdge()){const p=f?d.getTargetCell():d.getSourceCell();p&&p.isEdge()&&(i[p.id]||(s.push(p),u(p,f)))}};if(c&&u(o,!0),a&&u(o,!1),n.deep){const d=o.getDescendants({deep:!0}),f={};d.forEach(p=>{p.isNode()&&(f[p.id]=!0)});const h=(p,g)=>{const m=g?this.getOutgoingEdges(p.id):this.getIncomingEdges(p.id);m!=null&&m.forEach(v=>{if(!i[v.id]){const b=v.getSourceCell(),C=v.getTargetCell();if(!n.enclosed&&b&&f[b.id]&&C&&f[C.id])return;s.push(v),i[v.id]=!0}})};d.forEach(p=>{p.isEdge()||(c&&h(p,!0),a&&h(p,!1))})}return s}isBoundary(e,n){const s=typeof e=="string"?this.getCell(e):e,o=n?this.getIncomingEdges(s):this.getOutgoingEdges(s);return o==null||o.length===0}getBoundaryNodes(e){const n=[];return Object.keys(this.nodes).forEach(s=>{if(this.isBoundary(s,e)){const o=this.getCell(s);o&&n.push(o)}}),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 s=n.incoming,o=n.outgoing;s==null&&o==null&&(s=o=!0);const l=this.getConnectedEdges(e,n).reduce((a,c)=>{const u=c.hasLoop(n),d=c.getSourceCell(),f=c.getTargetCell();return s&&d&&d.isNode()&&!a[d.id]&&(u||d!==e&&(!n.deep||!d.isDescendantOf(e)))&&(a[d.id]=d),o&&f&&f.isNode()&&!a[f.id]&&(u||f!==e&&(!n.deep||!f.isDescendantOf(e)))&&(a[f.id]=f),a},{});if(e.isEdge()){if(s){const a=e.getSourceCell();a&&a.isNode()&&!l[a.id]&&(l[a.id]=a)}if(o){const a=e.getTargetCell();a&&a.isNode()&&!l[a.id]&&(l[a.id]=a)}}return Object.keys(l).map(a=>l[a])}isNeighbor(e,n,s={}){let o=s.incoming,i=s.outgoing;return o==null&&i==null&&(o=i=!0),this.getConnectedEdges(e,s).some(l=>{const a=l.getSourceCell(),c=l.getTargetCell();return!!(o&&a&&a.id===n.id||i&&c&&c.id===n.id)})}getSuccessors(e,n={}){const s=[];return this.search(e,(o,i)=>{o!==e&&this.matchDistance(i,n.distance)&&s.push(o)},Object.assign(Object.assign({},n),{outgoing:!0})),s}isSuccessor(e,n,s={}){let o=!1;return this.search(e,(i,l)=>{if(i===n&&i!==e&&this.matchDistance(l,s.distance))return o=!0,!1},Object.assign(Object.assign({},s),{outgoing:!0})),o}getPredecessors(e,n={}){const s=[];return this.search(e,(o,i)=>{o!==e&&this.matchDistance(i,n.distance)&&s.push(o)},Object.assign(Object.assign({},n),{incoming:!0})),s}isPredecessor(e,n,s={}){let o=!1;return this.search(e,(i,l)=>{if(i===n&&i!==e&&this.matchDistance(l,s.distance))return o=!0,!1},Object.assign(Object.assign({},s),{incoming:!0})),o}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(s=>{s&&(Array.isArray(s)?n.push(...s):n.push(s))}),At.getCommonAncestor(...n)}getSubGraph(e,n={}){const s=[],o={},i=[],l=[],a=c=>{o[c.id]||(s.push(c),o[c.id]=c,c.isEdge()&&l.push(c),c.isNode()&&i.push(c))};return e.forEach(c=>{a(c),n.deep&&c.getDescendants({deep:!0}).forEach(d=>a(d))}),l.forEach(c=>{const u=c.getSourceCell(),d=c.getTargetCell();u&&!o[u.id]&&(s.push(u),o[u.id]=u,u.isNode()&&i.push(u)),d&&!o[d.id]&&(s.push(d),o[d.id]=d,d.isNode()&&i.push(d))}),i.forEach(c=>{this.getConnectedEdges(c,n).forEach(d=>{const f=d.getSourceCell(),h=d.getTargetCell();!o[d.id]&&f&&o[f.id]&&h&&o[h.id]&&(s.push(d),o[d.id]=d)})}),s}cloneSubGraph(e,n={}){const s=this.getSubGraph(e,n);return this.cloneCells(s)}cloneCells(e){return At.cloneCells(e)}getNodesFromPoint(e,n){const s=typeof e=="number"?{x:e,y:n||0}:e;return this.getNodes().filter(o=>o.getBBox().containsPoint(s))}getNodesInArea(e,n,s,o,i){const l=typeof e=="number"?new Ne(e,n,s,o):Ne.create(e),a=typeof e=="number"?i:n,c=a&&a.strict;return this.getNodes().filter(u=>{const d=u.getBBox();return c?l.containsRect(d):l.isIntersectWithRect(d)})}getEdgesInArea(e,n,s,o,i){const l=typeof e=="number"?new Ne(e,n,s,o):Ne.create(e),a=typeof e=="number"?i:n,c=a&&a.strict;return this.getEdges().filter(u=>{const d=u.getBBox();return d.width===0?d.inflate(1,0):d.height===0&&d.inflate(0,1),c?l.containsRect(d):l.isIntersectWithRect(d)})}getNodesUnderNode(e,n={}){const s=e.getBBox();return(n.by==null||n.by==="bbox"?this.getNodesInArea(s):this.getNodesFromPoint(s[n.by])).filter(i=>e.id!==i.id&&!i.isDescendantOf(e))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(e,n={}){return At.getCellsBBox(e,n)}search(e,n,s={}){s.breadthFirst?this.breadthFirstSearch(e,n,s):this.depthFirstSearch(e,n,s)}breadthFirstSearch(e,n,s={}){const o=[],i={},l={};for(o.push(e),l[e.id]=0;o.length>0;){const a=o.shift();if(a==null||i[a.id]||(i[a.id]=!0,ht(n,this,a,l[a.id])===!1))continue;this.getNeighbors(a,s).forEach(u=>{l[u.id]=l[a.id]+1,o.push(u)})}}depthFirstSearch(e,n,s={}){const o=[],i={},l={};for(o.push(e),l[e.id]=0;o.length>0;){const a=o.pop();if(a==null||i[a.id]||(i[a.id]=!0,ht(n,this,a,l[a.id])===!1))continue;const c=this.getNeighbors(a,s),u=o.length;c.forEach(d=>{l[d.id]=l[a.id]+1,o.splice(u,0,d)})}}getShortestPath(e,n,s={}){const o={};this.getEdges().forEach(u=>{const d=u.getSourceCellId(),f=u.getTargetCellId();d&&f&&(o[d]||(o[d]=[]),o[f]||(o[f]=[]),o[d].push(f),s.directed||o[f].push(d))});const i=typeof e=="string"?e:e.id,l=gv.run(o,i,s.weight),a=[];let c=typeof n=="string"?n:n.id;for(l[c]&&a.push(c);c=l[c];)a.unshift(c);return a}translate(e,n,s){return this.getCells().filter(o=>!o.hasParent()).forEach(o=>o.translate(e,n,s)),this}resize(e,n,s){return this.resizeCells(e,n,this.getCells(),s)}resizeCells(e,n,s,o={}){const i=this.getCellsBBox(s);if(i){const l=Math.max(e/i.width,0),a=Math.max(n/i.height,0),c=i.getOrigin();s.forEach(u=>u.scale(l,a,c,o))}return this}toJSON(e={}){return Is.toJSON(this.getCells(),e)}parseJSON(e){return Is.fromJSON(e)}fromJSON(e,n={}){const s=this.parseJSON(e);return this.resetCells(s,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,s={}){this.startBatch(e,s);const o=n();return this.stopBatch(e,s),o}hasActiveBatch(e=Object.keys(this.batches)){return(Array.isArray(e)?e:[e]).some(s=>this.batches[s]>0)}dispose(){this.collection.dispose()}}Oae([Is.dispose()],Is.prototype,"dispose",null);(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.toStringTag)&&typeof o.addNode=="function"&&typeof o.addEdge=="function"&&o.collection!=null}r.isModel=e})(Is||(Is={}));(function(r){function e(s,o={}){return{cells:s.map(i=>i.toJSON(o))}}r.toJSON=e;function n(s){const o=[];return Array.isArray(s)?o.push(...s):(s.cells&&o.push(...s.cells),s.nodes&&s.nodes.forEach(i=>{i.shape==null&&(i.shape="rect"),o.push(i)}),s.edges&&s.edges.forEach(i=>{i.shape==null&&(i.shape="edge"),o.push(i)})),o.map(i=>{const l=i.shape;if(l){if(mn.registry.exist(l))return mn.create(i);if(an.registry.exist(l))return an.create(i)}throw new Error("The `shape` should be specified when creating a node/edge instance")})}r.fromJSON=n})(Is||(Is={}));var Aae=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{const{imageUrl:s,imageWidth:o,imageHeight:i}=n,l=Mae(n,["imageUrl","imageWidth","imageHeight"]);if(s!=null||o!=null||i!=null){const a=()=>{if(l.attrs){const c=l.attrs.image;s!=null&&(c[r]=s),o!=null&&(c.width=o),i!=null&&(c.height=i),l.attrs.image=c}};l.attrs?(l.attrs.image==null&&(l.attrs.image={}),a()):(l.attrs={image:{}},a())}return l}}function ou(r,e,n={}){const s={constructorName:r,markup:kae(r,n.selector),attrs:{[r]:Object.assign({},Xi.bodyAttr)}};return(n.parent||Xi).define(on(s,e,{shape:r}))}ou("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}});const Nae=an.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"}}});ou("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});var Iae=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);oArray.isArray(s)?s.join(","):K.isPointLike(s)?`${s.x}, ${s.y}`:"").join(" ")}r.pointsToString=e,r.config({propHooks(n){const{points:s}=n,o=Iae(n,["points"]);if(s){const i=e(s);i&&nu(o,"attrs/body/refPoints",i)}return o}})})(jc||(jc={}));ou("polygon",{},{parent:jc});ou("polyline",{},{parent:jc});var Lae=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);othis.resize(),"update"),s=this.handleAction(s,"update",()=>this.update(),"ports"),s=this.handleAction(s,"translate",()=>this.translate()),s=this.handleAction(s,"rotate",()=>this.rotate()),s=this.handleAction(s,"ports",()=>this.renderPorts()),s=this.handleAction(s,"tools",()=>{this.getFlag("tools")===e?this.renderTools():this.updateTools(n)})),s}update(e){this.cleanCache(),this.removePorts();const n=this.cell,s=n.getSize(),o=n.getAttrs();this.updateAttrs(this.container,o,{attrs:e===o?null:e,rootBBox:new Ne(0,0,s.width,s.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 s=e?this.portsCache[e]:null;if(!s)return null;const o=s.portContentElement,i=s.portContentSelectors||{};return this.findOne(n,o,i)}cleanPortsCache(){this.portsCache={}}removePorts(){Object.values(this.portsCache).forEach(e=>{Ac(e.portElement)})}renderPorts(){const e=this.container,n=[];e.childNodes.forEach(l=>{n.push(l)});const s=this.cell.getParsedPorts(),o=gC(s,"zIndex"),i="auto";o[i]&&o[i].forEach(l=>{const a=this.getPortElement(l);e.append(a),n.push(a)}),Object.keys(o).forEach(l=>{if(l!==i){const a=parseInt(l,10);this.appendPorts(o[l],a,n)}}),this.updatePorts()}appendPorts(e,n,s){const o=e.map(i=>this.getPortElement(i));s[n]||n<0?S0(s[Math.max(n,0)],o):hf(this.container,o)}getPortElement(e){const n=this.portsCache[e.id];return n?n.portElement:this.createPortElement(e)}createPortElement(e){let n=Yt.renderMarkup(this.cell.getPortContainerMarkup());const s=n.elem;if(s==null)throw new Error("Invalid port container markup.");n=Yt.renderMarkup(this.getPortMarkup(e));const o=n.elem,i=n.selectors;if(o==null)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},o);let l="x6-port";e.group&&(l+=` x6-port-${e.group}`),Nt(s,l),Nt(s,"x6-port"),Nt(o,"x6-port-body"),s.appendChild(o);let a=i,c,u;if(this.existPortLabel(e)){if(n=Yt.renderMarkup(this.getPortLabelMarkup(e.label)),c=n.elem,u=n.selectors,c==null)throw new Error("Invalid port label markup.");if(i&&u){for(const f in u)if(i[f]&&f!==this.rootSelector)throw new Error("Selectors within port must be unique.");a=Object.assign(Object.assign({},i),u)}Nt(c,"x6-port-label"),s.appendChild(c)}return this.portsCache[e.id]={portElement:s,portSelectors:a,portLabelElement:c,portLabelSelectors:u,portContentElement:o,portContentSelectors:i},this.graph.options.onPortRendered&&this.graph.options.onPortRendered({port:e,node:this.cell,container:s,selectors:a,labelContainer:c,labelSelectors:u,contentContainer:o,contentSelectors:i}),s}updatePorts(){const e=this.cell.getParsedGroups(),n=Object.keys(e);n.length===0?this.updatePortGroup():n.forEach(s=>this.updatePortGroup(s))}updatePortGroup(e){const n=Ne.fromSize(this.cell.getSize()),s=this.cell.getPortsLayoutByGroup(e,n);for(let o=0,i=s.length;oi.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:n},this.getEventArgs(e,s,o)))}onMagnetDblClick(e,n,s,o){this.notify("node:magnet:dblclick",Object.assign({magnet:n},this.getEventArgs(e,s,o)))}onMagnetContextMenu(e,n,s,o){this.notify("node:magnet:contextmenu",Object.assign({magnet:n},this.getEventArgs(e,s,o)))}onMagnetMouseDown(e,n,s,o){this.startMagnetDragging(e,s,o)}onCustomEvent(e,n,s,o){this.notify("node:customevent",Object.assign({name:n},this.getEventArgs(e,s,o))),super.onCustomEvent(e,n,s,o)}prepareEmbedding(e){const n=this.graph,o=this.getEventData(e).cell||this.cell,i=n.findViewByCell(o),l=n.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e,node:o,view:i,cell:o,x:l.x,y:l.y,currentParent:o.getParent()})}processEmbedding(e,n){const s=n.cell||this.cell,o=n.graph||this.graph,i=o.options.embedding,l=i.findParent;let a=typeof l=="function"?ht(l,o,{view:this,node:this.cell}).filter(h=>At.isCell(h)&&this.cell.id!==h.id&&!h.isDescendantOf(this.cell)):o.model.getNodesUnderNode(s,{by:l});if(i.frontOnly&&a.length>0){const h=gC(a,"zIndex"),p=y5(Object.keys(h).map(g=>parseInt(g,10)));p&&(a=h[p])}a=a.filter(h=>h.visible);let c=null;const u=n.candidateEmbedView,d=i.validate;for(let h=a.length-1;h>=0;h-=1){const p=a[h];if(u&&u.cell.id===p.id){c=u;break}else{const g=p.findView(o);if(d&&ht(d,o,{child:this.cell,parent:g.cell,childView:this,parentView:g})){c=g;break}}}this.clearEmbedding(n),c&&c.highlight(null,{type:"embedding"}),n.candidateEmbedView=c;const f=o.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e,cell:s,node:s,view:o.findViewByCell(s),x:f.x,y:f.y,currentParent:s.getParent(),candidateParent:c?c.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 s=n.cell||this.cell,o=n.graph||this.graph,i=o.findViewByCell(s),l=s.getParent(),a=n.candidateEmbedView;if(a?(a.unhighlight(null,{type:"embedding"}),n.candidateEmbedView=null,(l==null||l.id!==a.cell.id)&&a.cell.insertChild(s,void 0,{ui:!0})):l&&l.unembed(s,{ui:!0}),o.model.getConnectedEdges(s,{deep:!0}).forEach(c=>{c.updateParent({ui:!0})}),i&&a){const c=o.snapToGrid(e.clientX,e.clientY);i.notify("node:embedded",{e,cell:s,x:c.x,y:c.y,node:s,view:o.findViewByCell(s),previousParent:l,currentParent:s.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,s){if(n.getAttribute("magnet")!=="passive"){const o=this.graph.options.connecting.validateMagnet;return o?ht(o,this.graph,{e:s,magnet:n,view:e,cell:e.cell}):!0}return!1}startMagnetDragging(e,n,s){if(!this.can("magnetConnectable"))return;e.stopPropagation();const o=e.currentTarget,i=this.graph;this.setEventData(e,{targetMagnet:o}),this.validateMagnet(this,o,e)?(i.options.magnetThreshold<=0&&this.startConnectting(e,o,n,s),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,n,s),i.view.delegateDragEvents(e,this)}startConnectting(e,n,s,o){this.graph.model.startBatch("add-edge");const i=this.createEdgeFromMagnet(n,s,o);i.setEventData(e,i.prepareArrowheadDragging("target",{x:s,y:o,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:i}),i.notifyMouseDown(e,s,o)}getDefaultEdge(e,n){let s;const o=this.graph.options.connecting.createEdge;return o&&(s=ht(o,this.graph,{sourceMagnet:n,sourceView:e,sourceCell:e.cell})),s}createEdgeFromMagnet(e,n,s){const o=this.graph,i=o.model,l=this.getDefaultEdge(this,e);return l.setSource(Object.assign(Object.assign({},l.getSource()),this.getEdgeTerminal(e,n,s,l,"source"))),l.setTarget(Object.assign(Object.assign({},l.getTarget()),{x:n,y:s})),l.addTo(i,{async:!1,ui:!0}),l.findView(o)}dragMagnet(e,n,s){const o=this.getEventData(e),i=o.edgeView;if(i)i.onMouseMove(e,n,s),this.autoScrollGraph(e.clientX,e.clientY);else{const l=this.graph,a=l.options.magnetThreshold,c=this.getEventTarget(e),u=o.targetMagnet;if(a==="onleave"){if(u===c||u.contains(c))return}else if(l.view.getMouseMovedCount(e)<=a)return;this.startConnectting(e,u,n,s)}}stopMagnetDragging(e,n,s){const i=this.eventData(e).edgeView;i&&(i.onMouseUp(e,n,s),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(e,n,s){this.notify("node:unhandled:mousedown",{e,x:n,y:s,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(e,n,s,o,i){let l=[i];const a=this.graph.getPlugin("selection");if(a&&a.isSelectionMovable()){const c=a.getSelectedCells();c.includes(i)&&(l=c.filter(u=>u.isNode()))}l.forEach(c=>{this.notify(e,{e:n,x:s,y:o,cell:c,node:c,view:c.findView(this.graph)})})}getRestrictArea(e){const n=this.graph.options.translating.restrict,s=typeof n=="function"?ht(n,this.graph,e):n;return typeof s=="number"?this.graph.transform.getGraphArea().inflate(s):s===!0?this.graph.transform.getGraphArea():s||null}startNodeDragging(e,n,s){const o=this.getDelegatedView();if(o==null||!o.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,n,s);this.setEventData(e,{targetView:o,action:"move"});const i=K.create(o.cell.getPosition());o.setEventData(e,{moving:!1,offset:i.diff(n,s),restrict:this.getRestrictArea(o)})}dragNode(e,n,s){const o=this.cell,i=this.graph,l=i.getGridSize(),a=this.getEventData(e),c=a.offset,u=a.restrict;a.moving||(a.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,n,s,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);const d=zt.snapToGrid(n+c.x,l),f=zt.snapToGrid(s+c.y,l);o.setPosition(d,f,{restrict:u,deep:!0,ui:!0}),i.options.embedding.enabled&&(a.embedding||(this.prepareEmbedding(e),a.embedding=!0),this.processEmbedding(e,a))}stopNodeDragging(e,n,s){const o=this.getEventData(e);o.embedding&&this.finalizeEmbedding(e,o),o.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,n,s,this.cell)),o.moving=!1,o.embedding=!1}autoScrollGraph(e,n){const s=this.graph.getPlugin("scroller");s&&s.autoScroll(e,n)}}(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.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"}r.isNodeView=e})(Br||(Br={}));Br.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"]}});Br.registry.register("node",Br,!0);var $ae=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);othis.update(n)),s=this.handleAction(s,"labels",()=>this.onLabelsChange(n)),s=this.handleAction(s,"tools",()=>this.renderTools()),s)}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 s=0,o=n.length;s1){const i=s[1];if(n[i]){if(o===2)return typeof e.propertyValue=="object"&&Af(e.propertyValue,"markup");if(s[2]!=="markup")return!1}}}return!0}parseLabelMarkup(e){return e?typeof e=="string"?this.parseLabelStringMarkup(e):this.parseJSONMarkup(e):null}parseLabelStringMarkup(e){const n=ut.createVectors(e),s=document.createDocumentFragment();for(let o=0,i=n.length;o1||o[0].nodeName.toUpperCase()!=="G"?s=ut.create("g").append(n):s=ut.create(o[0]),s.addClass(this.prefixClassName("edge-label")),{node:s.node,selectors:e.selectors}}updateLabels(){if(this.labelContainer){const e=this.cell,n=e.labels,s=this.can("edgeLabelMovable"),o=e.getDefaultLabel();for(let i=0,l=n.length;iu.toJSON()),c=a.length;return i===c?0:(n.setVertices(a.slice(1,c-1),e),i-c)}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,n={}){switch(e){case"source":{if(n.raw)return this.sourceMagnet;const s=this.sourceView;return s?this.sourceMagnet||s.container:null}case"target":{if(n.raw)return this.targetMagnet;const s=this.targetView;return s?this.targetMagnet||s.container:null}default:throw new Error(`Unknown terminal type '${e}'`)}}updateConnection(e={}){const n=this.cell;if(e.translateBy&&n.isFragmentDescendantOf(e.translateBy)){const s=e.tx||0,o=e.ty||0;this.routePoints=new dn(this.routePoints).translate(s,o).points,this.translateConnectionPoints(s,o),this.path.translate(s,o)}else{const s=n.getVertices(),o=this.findAnchors(s);this.sourceAnchor=o.source,this.targetAnchor=o.target,this.routePoints=this.findRoutePoints(s);const i=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=i.source,this.targetPoint=i.target;const l=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);this.path=this.findPath(this.routePoints,l.source||this.sourcePoint,l.target||this.targetPoint)}this.cleanCache()}findAnchors(e){const n=this.cell,s=n.source,o=n.target,i=e[0],l=e[e.length-1];return o.priority&&!s.priority?this.findAnchorsOrdered("target",l,"source",i):this.findAnchorsOrdered("source",i,"target",l)}findAnchorsOrdered(e,n,s,o){let i,l;const a=this.cell,c=a[e],u=a[s],d=this.getTerminalView(e),f=this.getTerminalView(s),h=this.getTerminalMagnet(e),p=this.getTerminalMagnet(s);if(d){let g;n?g=K.create(n):f?g=p:g=K.create(u),i=this.getAnchor(c.anchor,d,h,g,e)}else i=K.create(c);if(f){const g=K.create(o||i);l=this.getAnchor(u.anchor,f,p,g,s)}else l=K.isPointLike(u)?K.create(u):new K;return{[e]:i,[s]:l}}getAnchor(e,n,s,o,i){const l=n.isEdgeElement(s),a=this.graph.options.connecting;let c=typeof e=="string"?{name:e}:e;if(!c){const f=l?(i==="source"?a.sourceEdgeAnchor:a.targetEdgeAnchor)||a.edgeAnchor:(i==="source"?a.sourceAnchor:a.targetAnchor)||a.anchor;c=typeof f=="string"?{name:f}:f}if(!c)throw new Error("Anchor should be specified.");let u;const d=c.name;if(l){const f=Fc.registry.get(d);if(typeof f!="function")return Fc.registry.onNotFound(d);u=ht(f,this,n,s,o,c.args||{},i)}else{const f=Vc.registry.get(d);if(typeof f!="function")return Vc.registry.onNotFound(d);u=ht(f,this,n,s,o,c.args||{},i)}return u?u.round(this.POINT_ROUNDING):new K}findRoutePoints(e=[]){const n=this.graph.options.connecting.router||Li.presets.normal,s=this.cell.getRouter()||n;let o;if(typeof s=="function")o=ht(s,this,e,{},this);else{const i=typeof s=="string"?s:s.name,l=typeof s=="string"?{}:s.args||{},a=i?Li.registry.get(i):Li.presets.normal;if(typeof a!="function")return Li.registry.onNotFound(i);o=ht(a,this,e,l,this)}return o==null?e.map(i=>K.create(i)):o.map(i=>K.create(i))}findConnectionPoints(e,n,s){const o=this.cell,i=this.graph.options.connecting,l=o.getSource(),a=o.getTarget(),c=this.sourceView,u=this.targetView,d=e[0],f=e[e.length-1];let h;if(c&&!c.isEdgeElement(this.sourceMagnet)){const g=this.sourceMagnet||c.container,m=d||s,v=new We(m,n),b=l.connectionPoint||i.sourceConnectionPoint||i.connectionPoint;h=this.getConnectionPoint(b,c,g,v,"source")}else h=n;let p;if(u&&!u.isEdgeElement(this.targetMagnet)){const g=this.targetMagnet||u.container,m=a.connectionPoint||i.targetConnectionPoint||i.connectionPoint,v=f||n,b=new We(v,s);p=this.getConnectionPoint(m,u,g,b,"target")}else p=s;return{source:h,target:p}}getConnectionPoint(e,n,s,o,i){const l=o.end;if(e==null)return l;const a=typeof e=="string"?e:e.name,c=typeof e=="string"?{}:e.args,u=Bc.registry.get(a);if(typeof u!="function")return Bc.registry.onNotFound(a);const d=ht(u,this,o,n,s,c||{},i);return d?d.round(this.POINT_ROUNDING):l}findMarkerPoints(e,n,s){const o=f=>{const h=this.cell.getAttrs(),p=Object.keys(h);for(let g=0,m=p.length;g0?v/m:0),d&&(v=-1*(m-v)||1),i.distance=v;let b;c||(b=f.tangentAtT(g));let C;if(b)C=b.pointOffset(p);else{const y=f.pointAtT(g),w=p.diff(y);C={x:w.x,y:w.y}}return i.offset=C,i.angle=l,i}normalizeLabelPosition(e){return typeof e=="number"?{distance:e}:e}getLabelTransformationMatrix(e){const n=this.normalizeLabelPosition(e),s=n.options||{},o=n.angle||0,i=n.distance,l=i>0&&i<=1;let a=0;const c={x:0,y:0},u=n.offset;u&&(typeof u=="number"?a=u:(u.x!=null&&(c.x=u.x),u.y!=null&&(c.y=u.y)));const d=c.x!==0||c.y!==0||a===0,f=s.keepGradient,h=s.ensureLegibility,p=this.path,g={segmentSubdivisions:this.getConnectionSubdivisions()},m=l?i*this.getConnectionLength():i,v=p.tangentAtLength(m,g);let b,C=o;if(v){if(d)b=v.start,b.translate(c);else{const y=v.clone();y.rotate(-90,v.start),y.setLength(a),b=y.end}f&&(C=v.angle()+o,h&&(C=Ht.normalize((C+90)%180-90)))}else b=p.start,d&&b.translate(c);return Bn().translate(b.x,b.y).rotate(C)}getVertexIndex(e,n){const o=this.cell.getVertices(),i=this.getClosestPointLength(new K(e,n));let l=0;if(i!=null)for(const a=o.length;l(n[i]=c,n[i+1]=c.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,s,o,i,l,a){const c=this.graph.options.connecting,u=c.allowLoop,d=c.allowNode,f=c.allowEdge,h=c.allowPort,p=c.allowMulti,g=c.validateConnection,m=l?l.cell:null,v=i==="target"?s:e,b=i==="target"?o:n;let C=!0;const y=w=>{const x=i==="source"?a?a.port:null:m?m.getSourcePortId():null,E=i==="target"?a?a.port:null:m?m.getTargetPortId():null;return ht(w,this.graph,{edge:m,edgeView:l,sourceView:e,targetView:s,sourcePort:x,targetPort:E,sourceMagnet:n,targetMagnet:o,sourceCell:e?e.cell:null,targetCell:s?s.cell:null,type:i})};if(u!=null&&(typeof u=="boolean"?!u&&e===s&&(C=!1):C=y(u)),C&&h!=null&&(typeof h=="boolean"?!h&&b&&(C=!1):C=y(h)),C&&f!=null&&(typeof f=="boolean"?!f&&Ho.isEdgeView(v)&&(C=!1):C=y(f)),C&&d!=null&&b==null&&(typeof d=="boolean"?!d&&Br.isNodeView(v)&&(C=!1):C=y(d)),C&&p!=null&&l){const w=l.cell,x=i==="source"?a:w.getSource(),E=i==="target"?a:w.getTarget(),_=a?this.graph.getCellById(a.cell):null;if(x&&E&&x.cell&&E.cell&&_)if(typeof p=="function")C=y(p);else{const M=this.graph.model.getConnectedEdges(_,{outgoing:i==="source",incoming:i==="target"});M.length&&(p==="withPort"?M.some(k=>{const P=k.getSource(),$=k.getTarget();return P&&$&&P.cell===x.cell&&$.cell===E.cell&&P.port!=null&&P.port===x.port&&$.port!=null&&$.port===E.port})&&(C=!1):p||M.some(k=>{const P=k.getSource(),$=k.getTarget();return P&&$&&P.cell===x.cell&&$.cell===E.cell})&&(C=!1))}}return C&&g!=null&&(C=y(g)),C}allowConnectToBlank(e){const n=this.graph,o=n.options.connecting.allowBlank;if(typeof o!="function")return!!o;const i=n.findViewByCell(e),l=e.getSourceCell(),a=e.getTargetCell(),c=n.findViewByCell(l),u=n.findViewByCell(a);return ht(o,n,{edge:e,edgeView:i,sourceCell:l,targetCell:a,sourceView:c,targetView:u,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:i.sourceMagnet,targetMagnet:i.targetMagnet})}validateEdge(e,n,s){const o=this.graph;if(!this.allowConnectToBlank(e)){const l=e.getSourceCellId(),a=e.getTargetCellId();if(!(l&&a))return!1}const i=o.options.connecting.validateEdge;return i?ht(i,o,{edge:e,type:n,previous:s}):!0}arrowheadDragging(e,n,s,o){o.x=n,o.y=s,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,n,s,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:n,y:s},Object.assign(Object.assign({},o.options),{ui:!0}))}arrowheadDragged(e,n,s){const o=e.currentView,i=e.currentMagnet;if(!i||!o)return;o.unhighlight(i,{type:"magnetAdsorbed"});const l=e.terminalType,a=o.getEdgeTerminal(i,n,s,this.cell,l);this.cell.setTerminal(l,a,{ui:!0})}snapArrowhead(e,n,s){const o=this.graph,{snap:i,allowEdge:l}=o.options.connecting,a=typeof i=="object"&&i.radius||50,c=typeof i=="object"&&i.anchor||"center",u=o.renderer.findViewsInArea({x:e-a,y:n-a,width:2*a,height:2*a},{nodeOnly:!0});if(l){const w=o.renderer.findEdgeViewsFromPoint({x:e,y:n},a).filter(x=>x!==this);u.push(...w)}const d=s.closestView||null,f=s.closestMagnet||null;s.closestView=null,s.closestMagnet=null;let h,p=Number.MAX_SAFE_INTEGER;const g=new K(e,n);u.forEach(w=>{if(w.container.getAttribute("magnet")!=="false"){if(w.isNodeView())h=c==="center"?w.cell.getBBox().getCenter().distance(g):w.cell.getBBox().getNearestPointToPoint(g).distance(g);else if(w.isEdgeView()){const x=w.getClosestPoint(g);x?h=x.distance(g):h=Number.MAX_SAFE_INTEGER}h{if(x.getAttribute("magnet")!=="false"){const E=w.getBBoxOfElement(x);h=g.distance(E.getCenter()),hthis.validateConnection(...e.getValidateConnectionArgs(l,u),l.getEdgeTerminal(u,e.x,e.y,this.cell,e.terminalType)));if(c.length>0){for(let u=0,d=c.length;u{const o=this.graph.findViewByCell(s);o&&(n[s].forEach(l=>{o.unhighlight(l,{type:"magnetAvailable"})}),o.unhighlight(null,{type:"nodeAvailable"}))}),e.marked=null}startArrowheadDragging(e,n,s){if(!this.can("arrowheadMovable")){this.notifyUnhandledMouseDown(e,n,s);return}const i=e.target.getAttribute("data-terminal"),l=this.prepareArrowheadDragging(i,{x:n,y:s});this.setEventData(e,l)}dragArrowhead(e,n,s){const o=this.getEventData(e);this.graph.options.connecting.snap?this.snapArrowhead(n,s,o):this.arrowheadDragging(this.getEventTarget(e),n,s,o)}stopArrowheadDragging(e,n,s){const o=this.graph,i=this.getEventData(e);o.options.connecting.snap?this.snapArrowheadEnd(i):this.arrowheadDragged(i,n,s),this.validateEdge(this.cell,i.terminalType,i.initialTerminal)?(this.finishEmbedding(i),this.notifyConnectionEvent(i,e)):this.fallbackConnection(i),this.afterArrowheadDragging(i)}startLabelDragging(e,n,s){if(this.can("edgeLabelMovable")){const o=e.currentTarget,i=parseInt(o.getAttribute("data-index"),10),l=this.getLabelPositionAngle(i),a=this.getLabelPositionArgs(i),c=this.getDefaultLabelPositionArgs(),u=this.mergeLabelPositionArgs(a,c);this.setEventData(e,{index:i,positionAngle:l,positionArgs:u,stopPropagation:!0,action:"drag-label"})}else this.setEventData(e,{stopPropagation:!0});this.graph.view.delegateDragEvents(e,this)}dragLabel(e,n,s){const o=this.getEventData(e),i=this.cell.getLabelAt(o.index),l=on({},i,{position:this.getLabelPosition(n,s,o.positionAngle,o.positionArgs)});this.cell.setLabelAt(o.index,l)}stopLabelDragging(e,n,s){}}(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag],o=n;return(s==null||s===r.toStringTag)&&typeof o.isNodeView=="function"&&typeof o.isEdgeView=="function"&&typeof o.confirmUpdate=="function"&&typeof o.update=="function"&&typeof o.getConnection=="function"}r.isEdgeView=e})(Ho||(Ho={}));Ho.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"]}});Ho.registry.register("edge",Ho,!0);var Dae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class ho extends Qt{get disposeContainer(){return!1}get options(){return this.graph.options}constructor(e){super(),this.graph=e;const{selectors:n,fragment:s}=Yt.parseJSONMarkup(ho.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=ho.snapshoot(this.container),Nt(this.container,this.prefixClassName("graph")),hf(this.container,s),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&&At.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),s=this.findView(n.target);if(this.guard(n,s))return;const o=this.graph.snapToGrid(n.clientX,n.clientY);s?s.onDblClick(n,o.x,o.y):this.graph.trigger("blank:dblclick",{e:n,x:o.x,y:o.y})}onClick(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){const n=this.normalizeEvent(e),s=this.findView(n.target);if(this.guard(n,s))return;const o=this.graph.snapToGrid(n.clientX,n.clientY);s?s.onClick(n,o.x,o.y):this.graph.trigger("blank:click",{e:n,x:o.x,y:o.y})}}isPreventDefaultContextMenu(e){let n=this.options.preventDefaultContextMenu;return typeof n=="function"&&(n=ht(n,this.graph,{view:e})),n}onContextMenu(e){const n=this.normalizeEvent(e),s=this.findView(n.target);if(this.isPreventDefaultContextMenu(s)&&e.preventDefault(),this.guard(n,s))return;const o=this.graph.snapToGrid(n.clientX,n.clientY);s?s.onContextMenu(n,o.x,o.y):this.graph.trigger("blank:contextmenu",{e:n,x:o.x,y:o.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 s=this.constructor;this.delegateDocumentEvents(s.documentEvents,e.data),this.undelegateEvents()}getMouseMovedCount(e){return this.getEventData(e).mouseMovedCount||0}onMouseDown(e){const n=this.normalizeEvent(e),s=this.findView(n.target);if(this.guard(n,s))return;this.options.preventDefaultMouseDown&&e.preventDefault();const o=this.graph.snapToGrid(n.clientX,n.clientY);s?s.onMouseDown(n,o.x,o.y):(this.options.preventDefaultBlankAction&&["touchstart"].includes(n.type)&&e.preventDefault(),this.graph.trigger("blank:mousedown",{e:n,x:o.x,y:o.y})),this.delegateDragEvents(n,s)}onMouseMove(e){const n=this.getEventData(e),s=n.startPosition;if(s&&s.x===e.clientX&&s.y===e.clientY||(n.mouseMovedCount==null&&(n.mouseMovedCount=0),n.mouseMovedCount+=1,n.mouseMovedCount<=this.options.moveThreshold))return;const i=this.normalizeEvent(e),l=this.graph.snapToGrid(i.clientX,i.clientY),a=n.currentView;a?a.onMouseMove(i,l.x,l.y):this.graph.trigger("blank:mousemove",{e:i,x:l.x,y:l.y}),this.setEventData(i,n)}onMouseUp(e){this.undelegateDocumentEvents();const n=this.normalizeEvent(e),s=this.graph.snapToGrid(n.clientX,n.clientY),i=this.getEventData(e).currentView;if(i?i.onMouseUp(n,s.x,s.y):this.graph.trigger("blank:mouseup",{e:n,x:s.x,y:s.y}),!e.isPropagationStopped()){const l=new so(e,{type:"click",data:e.data});this.onClick(l)}e.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(e){const n=this.normalizeEvent(e),s=this.findView(n.target);if(!this.guard(n,s))if(s)s.onMouseOver(n);else{if(this.container===n.target)return;this.graph.trigger("blank:mouseover",{e:n})}}onMouseOut(e){const n=this.normalizeEvent(e),s=this.findView(n.target);if(!this.guard(n,s))if(s)s.onMouseOut(n);else{if(this.container===n.target)return;this.graph.trigger("blank:mouseout",{e:n})}}onMouseEnter(e){const n=this.normalizeEvent(e),s=this.findView(n.target);if(this.guard(n,s))return;const o=this.graph.findViewByElem(n.relatedTarget);if(s){if(o===s)return;s.onMouseEnter(n)}else{if(o)return;this.graph.trigger("graph:mouseenter",{e:n})}}onMouseLeave(e){const n=this.normalizeEvent(e),s=this.findView(n.target);if(this.guard(n,s))return;const o=this.graph.findViewByElem(n.relatedTarget);if(s){if(o===s)return;s.onMouseLeave(n)}else{if(o)return;this.graph.trigger("graph:mouseleave",{e:n})}}onMouseWheel(e){const n=this.normalizeEvent(e),s=this.findView(n.target);if(this.guard(n,s))return;const o=n.originalEvent,i=this.graph.snapToGrid(o.clientX,o.clientY),l=Math.max(-1,Math.min(1,o.wheelDelta||-o.detail));s?s.onMouseWheel(n,i.x,i.y,l):this.graph.trigger("blank:mousewheel",{e:n,delta:l,x:i.x,y:i.y})}onCustomEvent(e){const n=e.currentTarget,s=n.getAttribute("event")||n.getAttribute("data-event");if(s){const o=this.findView(n);if(o){const i=this.normalizeEvent(e);if(this.guard(i,o))return;const l=this.graph.snapToGrid(i.clientX,i.clientY);o.onCustomEvent(i,s,l.x,l.y)}}}handleMagnetEvent(e,n){const s=e.currentTarget,o=s.getAttribute("magnet");if(o&&o.toLowerCase()!=="false"){const i=this.findView(s);if(i){const l=this.normalizeEvent(e);if(this.guard(l,i))return;const a=this.graph.snapToGrid(l.clientX,l.clientY);ht(n,this.graph,i,l,s,a.x,a.y)}}}onMagnetMouseDown(e){this.handleMagnetEvent(e,(n,s,o,i,l)=>{n.onMagnetMouseDown(s,o,i,l)})}onMagnetDblClick(e){this.handleMagnetEvent(e,(n,s,o,i,l)=>{n.onMagnetDblClick(s,o,i,l)})}onMagnetContextMenu(e){const n=this.findView(e.target);this.isPreventDefaultContextMenu(n)&&e.preventDefault(),this.handleMagnetEvent(e,(s,o,i,l,a)=>{s.onMagnetContextMenu(o,i,l,a)})}onLabelMouseDown(e){const n=e.currentTarget,s=this.findView(n);if(s){const o=this.normalizeEvent(e);if(this.guard(o,s))return;const i=this.graph.snapToGrid(o.clientX,o.clientY);s.onLabelMouseDown(o,i.x,i.y)}}onImageDragStart(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}Dae([Qt.dispose()],ho.prototype,"dispose",null);(function(r){const e=`${Fs.prefixCls}-graph`;r.markup=[{ns:In.xhtml,tagName:"div",selector:"background",className:`${e}-background`},{ns:In.xhtml,tagName:"div",selector:"grid",className:`${e}-grid`},{ns:In.svg,tagName:"svg",selector:"svg",className:`${e}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":In.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(s){const o=s.cloneNode();return s.childNodes.forEach(i=>o.appendChild(i)),()=>{for(ff(s);s.attributes.length>0;)s.removeAttribute(s.attributes[0].name);for(let i=0,l=o.attributes.length;is.appendChild(i))}}r.snapshoot=n})(ho||(ho={}));(function(r){const e=Fs.prefixCls;r.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"},r.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}})(ho||(ho={}));const Vae=`.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 zn extends zo{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 Fae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class Cv extends zn{init(){Gse("core",Vae)}dispose(){Kse("core")}}Fae([Cv.dispose()],Cv.prototype,"dispose",null);var Bae=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{const p=n[h];typeof p=="boolean"?u[h].enabled=p:u[h]=Object.assign(Object.assign({},u[h]),p)}),u}r.get=e})(Rd||(Rd={}));(function(r){r.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:Fs.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:Fs.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:s}){return(e==="target"?s:n)!=null},createEdge(){return new Nae}},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 zae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},jae=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{const d=`pattern_${u}`,f=s.a||1,h=s.d||1,{update:p,markup:g}=c,m=jae(c,["update","markup"]),v=Object.assign(Object.assign(Object.assign({},m),i[u]),{sx:f,sy:h,ox:s.e||0,oy:s.f||0,width:n*f,height:n*h});o.has(d)||o.add(d,ut.create("pattern",{id:d,patternUnits:"userSpaceOnUse"},ut.createVectors(g)).node);const b=o.get(d);typeof p=="function"&&p(b.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),Ut(b,{x:C,y,width:v.width,height:v.height})});const l=new XMLSerializer().serializeToString(o.root),a=`url(data:image/svg+xml;base64,${btoa(l)})`;this.elem.style.backgroundImage=a}getInstance(){return this.instance||(this.instance=new Ii),this.instance}resolveGrid(e){if(!e)return[];const n=e.type;if(n==null)return[Object.assign(Object.assign({},Ii.presets.dot),e.args)];const s=Ii.registry.get(n);if(s){let o=e.args||[];return Array.isArray(o)||(o=[o]),Array.isArray(s)?s.map((i,l)=>Object.assign(Object.assign({},i),o[l])):[Object.assign(Object.assign({},s),o[0])]}return Ii.registry.onNotFound(n)}dispose(){this.stopListening(),this.clear()}}zae([zn.dispose()],A0.prototype,"dispose",null);class KP extends zn{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),Bn(this.viewportMatrix)}setMatrix(e){const n=Bn(e),s=ru(n);this.viewport.setAttribute("transform",s),this.viewportMatrix=n,this.viewportTransformString=s}resize(e,n){let s=e===void 0?this.options.width:e,o=n===void 0?this.options.height:n;this.options.width=s,this.options.height=o,typeof s=="number"&&(s=Math.round(s)),typeof o=="number"&&(o=Math.round(o)),this.container.style.width=s==null?"":`${s}px`,this.container.style.height=o==null?"":`${o}px`;const i=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},i)),this}getComputedSize(){let e=this.options.width,n=this.options.height;return mC(e)||(e=this.container.clientWidth),mC(n)||(n=this.container.clientHeight),{width:e,height:n}}getScale(){return Vse(this.getMatrix())}scale(e,n=e,s=0,o=0){if(e=this.clampScale(e),n=this.clampScale(n),s||o){const l=this.getTranslation(),a=l.tx-s*(e-1),c=l.ty-o*(n-1);(a!==l.tx||c!==l.ty)&&this.translate(a,c)}const i=this.getMatrix();return i.a=e,i.d=n,this.setMatrix(i),this.graph.trigger("scale",{sx:e,sy:n,ox:s,oy:o}),this}clampScale(e){const n=this.graph.options.scaling;return Zr(e,n.min||.01,n.max||16)}getZoom(){return this.getScale().sx}zoom(e,n){n=n||{};let s=e,o=e;const i=this.getScale(),l=this.getComputedSize();let a=l.width/2,c=l.height/2;if(n.absolute||(s+=i.sx,o+=i.sy),n.scaleGrid&&(s=Math.round(s/n.scaleGrid)*n.scaleGrid,o=Math.round(o/n.scaleGrid)*n.scaleGrid),n.maxScale&&(s=Math.min(n.maxScale,s),o=Math.min(n.maxScale,o)),n.minScale&&(s=Math.max(n.minScale,s),o=Math.max(n.minScale,o)),n.center&&(a=n.center.x,c=n.center.y),s=this.clampScale(s),o=this.clampScale(o),a||c){const u=this.getTranslation(),d=a-(a-u.tx)*(s/i.sx),f=c-(c-u.ty)*(o/i.sy);(d!==u.tx||f!==u.ty)&&this.translate(d,f)}return this.scale(s,o),this}getRotation(){return Fse(this.getMatrix())}rotate(e,n,s){if(n==null||s==null){const i=Vt.getBBox(this.stage);n=i.width/2,s=i.height/2}const o=this.getMatrix().translate(n,s).rotate(e).translate(-n,-s);return this.setMatrix(o),this}getTranslation(){return Bse(this.getMatrix())}translate(e,n){const s=this.getMatrix();s.e=e||0,s.f=n||0,this.setMatrix(s);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,n){return this.translate(e||0,n||0)}fitToContent(e,n,s,o){if(typeof e=="object"){const y=e;e=y.gridWidth||1,n=y.gridHeight||1,s=y.padding||0,o=y}else e=e||1,n=n||1,s=s||0,o==null&&(o={});const i=la(s),l=o.border||0,a=o.contentArea?Ne.create(o.contentArea):this.getContentArea(o);l>0&&a.inflate(l);const c=this.getScale(),u=this.getTranslation(),d=c.sx,f=c.sy;a.x*=d,a.y*=f,a.width*=d,a.height*=f;let h=Math.max(Math.ceil((a.width+a.x)/e),1)*e,p=Math.max(Math.ceil((a.height+a.y)/n),1)*n,g=0,m=0;(o.allowNewOrigin==="negative"&&a.x<0||o.allowNewOrigin==="positive"&&a.x>=0||o.allowNewOrigin==="any")&&(g=Math.ceil(-a.x/e)*e,g+=i.left,h+=g),(o.allowNewOrigin==="negative"&&a.y<0||o.allowNewOrigin==="positive"&&a.y>=0||o.allowNewOrigin==="any")&&(m=Math.ceil(-a.y/n)*n,m+=i.top,p+=m),h+=i.right,p+=i.bottom,h=Math.max(h,o.minWidth||0),p=Math.max(p,o.minHeight||0),h=Math.min(h,o.maxWidth||Number.MAX_SAFE_INTEGER),p=Math.min(p,o.maxHeight||Number.MAX_SAFE_INTEGER);const v=this.getComputedSize(),b=h!==v.width||p!==v.height;return(g!==u.tx||m!==u.ty)&&this.translate(g,m),b&&this.resize(h,p),new Ne(-g/d,-m/f,h/d,p/f)}scaleContentToFit(e={}){this.scaleContentToFitImpl(e)}scaleContentToFitImpl(e={},n=!0){let s,o;if(e.contentArea){const b=e.contentArea;s=this.graph.localToGraph(b),o=K.create(b)}else s=this.getContentBBox(e),o=this.graph.graphToLocal(s);if(!s.width||!s.height)return;const i=la(e.padding),l=e.minScale||0,a=e.maxScale||Number.MAX_SAFE_INTEGER,c=e.minScaleX||l,u=e.maxScaleX||a,d=e.minScaleY||l,f=e.maxScaleY||a;let h;if(e.viewportArea)h=e.viewportArea;else{const b=this.getComputedSize(),C=this.getTranslation();h={x:C.tx,y:C.ty,width:b.width,height:b.height}}h=Ne.create(h).moveAndExpand({x:i.left,y:i.top,width:-i.left-i.right,height:-i.top-i.bottom});const p=this.getScale();let g=h.width/s.width*p.sx,m=h.height/s.height*p.sy;e.preserveAspectRatio!==!1&&(g=m=Math.min(g,m));const v=e.scaleGrid;if(v&&(g=v*Math.floor(g/v),m=v*Math.floor(m/v)),g=Zr(g,c,u),m=Zr(m,d,f),this.scale(g,m),n){const b=this.options,C=h.x-o.x*g-b.x,y=h.y-o.y*m-b.y;this.translate(C,y)}}getContentArea(e={}){return e.useCellGeometry!==!1?this.model.getAllCellsBBox()||new Ne:Vt.getBBox(this.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=Ne.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,n={}){const s=Ne.create(e),o=this.graph;n.contentArea=s,n.viewportArea==null&&(n.viewportArea={x:o.options.x,y:o.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(n,!1);const i=s.getCenter();return this.centerPoint(i.x,i.y),this}zoomToFit(e={}){return this.zoomToRect(this.getContentArea(e),e)}centerPoint(e,n){const s=this.getComputedSize(),o=this.getScale(),i=this.getTranslation(),l=s.width/2,a=s.height/2;e=typeof e=="number"?e:l,n=typeof n=="number"?n:a,e=l-e*o.sx,n=a-n*o.sy,(i.tx!==e||i.ty!==n)&&this.translate(e,n)}centerContent(e){const s=this.graph.getContentArea(e).getCenter();this.centerPoint(s.x,s.y)}centerCell(e){return this.positionCell(e,"center")}positionPoint(e,n,s){const o=this.getComputedSize();n=Ns(n,Math.max(0,o.width)),n<0&&(n=o.width+n),s=Ns(s,Math.max(0,o.height)),s<0&&(s=o.height+s);const i=this.getTranslation(),l=this.getScale(),a=n-e.x*l.sx,c=s-e.y*l.sy;(i.tx!==a||i.ty!==c)&&this.translate(a,c)}positionRect(e,n){const s=Ne.create(e);switch(n){case"center":return this.positionPoint(s.getCenter(),"50%","50%");case"top":return this.positionPoint(s.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(s.getTopRight(),"100%",0);case"right":return this.positionPoint(s.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(s.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(s.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(s.getBottomLeft(),0,"100%");case"left":return this.positionPoint(s.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(s.getTopLeft(),0,0);default:return this}}positionCell(e,n){const s=e.getBBox();return this.positionRect(s,n)}positionContent(e,n){const s=this.graph.getContentArea(n);return this.positionRect(s,e)}}var Hae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class M0 extends zn{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",s=e.position||"center";const o=this.graph.transform.getScale(),i=this.graph.translate();if(typeof s=="object"){const l=i.tx+o.sx*(s.x||0),a=i.ty+o.sy*(s.y||0);s=`${l}px ${a}px`}typeof n=="object"&&(n=Ne.fromSize(n).scale(o.sx,o.sy),n=`${n.width}px ${n.height}px`),this.elem.style.backgroundSize=n,this.elem.style.backgroundPosition=s}drawBackgroundImage(e,n={}){if(!(e instanceof HTMLImageElement)){this.elem.style.backgroundImage="";return}const s=this.optionsCache;if(s&&s.image!==n.image)return;let o;const i=n.opacity,l=n.size;let a=n.repeat||"no-repeat";const c=kd.registry.get(a);if(typeof c=="function"){const d=n.quality||1;e.width*=d,e.height*=d;const f=c(e,n);if(!(f instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");o=f.toDataURL("image/png"),n.repeat&&a!==n.repeat?a=n.repeat:a="repeat",typeof l=="object"?(l.width*=f.width/e.width,l.height*=f.height/e.height):l===void 0&&(n.size={width:f.width/d,height:f.height/d})}else o=e.src,l===void 0&&(n.size={width:e.width,height:e.height});s!=null&&typeof n.size=="object"&&n.image===s.image&&n.repeat===s.repeat&&n.quality===s.quality&&(s.size=dd(n.size));const u=this.elem.style;u.backgroundImage=`url(${o})`,u.backgroundRepeat=a,u.opacity=i==null||i>=1?"":`${i}`,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=dd(n);const s=document.createElement("img");s.onload=()=>this.drawBackgroundImage(s,e),s.setAttribute("crossorigin","anonymous"),s.src=n.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}Hae([zn.dispose()],M0.prototype,"dispose",null);var Uae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class k0 extends zn{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),Hn.on(this.graph.container,"mousedown",this.onRightMouseDown),Hn.on(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle=new Zk(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),Hn.off(this.graph.container,"mousedown",this.onRightMouseDown),Hn.off(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle&&this.mousewheelHandle.disable()}allowPanning(e,n){return e.spaceKey=this.isSpaceKeyPressed,this.pannable&&kc.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(),Hn.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)}),Hn.on(window,"mouseup.panning",this.stopPanning.bind(this))}pan(e){const n=this.view.normalizeEvent(e),s=n.clientX-this.clientX,o=n.clientY-this.clientY;this.clientX=n.clientX,this.clientY=n.clientY,this.graph.translateBy(s,o)}stopPanning(e){this.panning=!1,this.updateClassName(),Hn.off(document.body,".panning"),Hn.off(window,".panning")}updateClassName(){const e=this.view.container,n=this.view.prefixClassName("graph-panning"),s=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(Nt(e,n),es(e,s)):(es(e,n),Nt(e,s)):(es(e,n),es(e,s))}onMouseDown({e}){if(!this.allowBlankMouseDown(e))return;const n=this.graph.getPlugin("selection"),s=n&&n.allowRubberband(e,!0);(this.allowPanning(e,!0)||this.allowPanning(e)&&!s)&&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,s){this.graph.translateBy(-n,-s)}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 o=this.graph.getGraphArea();let i=0,l=0;e<=o.left+10&&(i=-10),n<=o.top+10&&(l=-10),e>=o.right-10&&(i=10),n>=o.bottom-10&&(l=10),(i!==0||l!==0)&&this.graph.translateBy(-i,-l)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}Uae([zn.dispose()],k0.prototype,"dispose",null);var Wae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class P0 extends zn{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 Zk(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))&&kc.isMatch(e,this.widgetOptions.modifiers)}onMouseWheel(e){const n=this.widgetOptions.guard;if((n==null||n(e))&&kc.isMatch(e,this.widgetOptions.modifiers)){const s=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*s*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/s)*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 i=this.currentScale;let l=this.graph.transform.clampScale(i*this.cumulatedFactor);const a=this.widgetOptions.minScale||Number.MIN_SAFE_INTEGER,c=this.widgetOptions.maxScale||Number.MAX_SAFE_INTEGER;if(l=Zr(l,a,c),l!==i)if(this.widgetOptions.zoomAtMousePosition){const d=!!this.graph.getPlugin("scroller")?this.graph.clientToLocal(this.startPos):this.graph.clientToGraph(this.startPos);this.graph.zoom(l,{absolute:!0,center:d.clone()})}else this.graph.zoom(l,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}Wae([zo.dispose()],P0.prototype,"dispose",null);var qae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class YP extends zn{init(){this.resetRenderArea=oh(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()}}qae([zn.dispose()],YP.prototype,"dispose",null);class Gae{constructor(){this.isFlushing=!1,this.isFlushPending=!1,this.scheduleId=0,this.queue=[],this.frameInterval=33,this.initialTime=Date.now()}queueJob(e){if(e.priority&Mo.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,s=this.queue.length,o=s-1;const i=e.priority;for(;n<=o;){const l=(o-n>>1)+n;i<=this.queue[l].priority?n=l+1:(s=l,o=l-1)}return s}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 Mo;(function(r){r[r.Update=2]="Update",r[r.RenderEdge=4]="RenderEdge",r[r.RenderNode=8]="RenderNode",r[r.PRIOR=1048576]="PRIOR"})(Mo||(Mo={}));var Kae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class En extends zo{get model(){return this.graph.model}get container(){return this.graph.view.stage}constructor(e){super(),this.views={},this.willRemoveViews={},this.queue=new Gae,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(s=>s.id)}))}onCellAdded({cell:e,options:n}){this.renderViews([e],n)}onCellRemoved({cell:e}){this.removeViews([e])}onCellZIndexChanged({cell:e,options:n}){const s=this.views[e.id];s&&this.requestViewUpdate(s.view,En.FLAG_INSERT,n,Mo.Update,!0)}onCellVisibleChanged({cell:e,current:n}){this.toggleVisible(e,!!n)}requestViewUpdate(e,n,s={},o=Mo.Update,i=!0){const l=e.cell.id,a=this.views[l];if(!a)return;a.flag=n,a.options=s,(e.hasAction(n,["translate","resize","rotate"])||s.async===!1)&&(o=Mo.PRIOR,i=!1),this.queue.queueJob({id:l,priority:o,cb:()=>{this.renderViewInArea(e,n,s);const d=s.queue;if(d){const f=d.indexOf(e.cell.id);f>=0&&d.splice(f,1),d.length===0&&this.graph.trigger("render:done")}}}),this.getEffectedEdges(e).forEach(d=>{this.requestViewUpdate(d.view,d.flag,s,o,!1)}),i&&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===En.ViewState.MOUNTED:!1}renderViews(e,n={}){e.sort((s,o)=>s.isNode()&&o.isEdge()?-1:0),e.forEach(s=>{const o=s.id,i=this.views;let l=0,a=i[o];if(a)l=En.FLAG_INSERT;else{const c=this.createCellView(s);c&&(c.graph=this.graph,l=En.FLAG_INSERT|c.getBootstrapFlag(),a={view:c,flag:l,options:n,state:En.ViewState.CREATED},this.views[o]=a)}a&&this.requestViewUpdate(a.view,l,n,this.getRenderPriority(a.view),!1)}),this.flush()}renderViewInArea(e,n,s={}){const o=e.cell,i=o.id,l=this.views[i];if(!l)return;let a=0;this.isUpdatable(e)?(a=this.updateView(e,n,s),l.flag=a):l.state===En.ViewState.MOUNTED?(a=this.updateView(e,n,s),l.flag=a):l.state=En.ViewState.WAITING,a&&o.isEdge()&&!(a&e.getFlag(["source","target"]))&&this.queue.queueJob({id:i,priority:Mo.RenderEdge,cb:()=>{this.updateView(e,n,s)}})}removeViews(e){e.forEach(n=>{const s=n.id,o=this.views[s];o&&(this.willRemoveViews[s]=o,delete this.views[s],this.queue.queueJob({id:s,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===En.ViewState.WAITING){const{view:n,flag:s,options:o}=e;this.requestViewUpdate(n,s,o,this.getRenderPriority(n),!1)}}),this.flush()}updateView(e,n,s={}){if(e==null)return 0;if(fn.isCellView(e)){if(n&En.FLAG_REMOVE)return this.removeView(e.cell),0;n&En.FLAG_INSERT&&(this.insertView(e),n^=En.FLAG_INSERT)}return n?e.confirmUpdate(n,s):0}insertView(e){const n=this.views[e.cell.id];if(n){const s=e.cell.getZIndex(),o=this.addZPivot(s);this.container.insertBefore(e.container,o),e.cell.isVisible()||this.toggleVisible(e.cell,!1),n.state=En.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,s=this.willRemoveViews[n.id];s&&e&&(s.view.remove(),delete this.willRemoveViews[n.id],this.graph.trigger("view:unmounted",{view:e}))}toggleVisible(e,n){const s=this.model.getConnectedEdges(e);for(let i=0,l=s.length;io&&(o=a,e-1)}const i=this.container;if(o!==-1/0){const l=n[o];i.insertBefore(s,l.nextSibling)}else i.insertBefore(s,i.firstChild);return s}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},s=this.graph.options.createCellView;if(s){const i=ht(s,this.graph,e);if(i)return new i(e,n);if(i===null)return null}const o=e.view;if(o!=null&&typeof o=="string"){const i=fn.registry.get(o);return i?new i(e,n):fn.registry.onNotFound(o)}return e.isNode()?new Br(e,n):e.isEdge()?new Ho(e,n):null}getEffectedEdges(e){const n=[],s=e.cell,o=this.model.getConnectedEdges(s);for(let i=0,l=o.length;i{this.views[e].view.dispose()}),this.views={}}}Kae([zo.dispose()],En.prototype,"dispose",null);(function(r){r.FLAG_INSERT=1<<30,r.FLAG_REMOVE=1<<29,r.FLAG_RENDER=(1<<26)-1})(En||(En={}));(function(r){(function(e){e[e.CREATED=0]="CREATED",e[e.MOUNTED=1]="MOUNTED",e[e.WAITING=2]="WAITING"})(r.ViewState||(r.ViewState={}))})(En||(En={}));var Yae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class N0 extends zn{constructor(){super(...arguments),this.schedule=new En(this.graph)}requestViewUpdate(e,n,s={}){this.schedule.requestViewUpdate(e,n,s)}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,s=typeof e=="string"?n.querySelector(e):e instanceof Element?e:e[0];if(s){const o=this.graph.view.findAttr("data-cell-id",s);if(o){const i=this.schedule.views;if(i[o])return i[o].view}}return null}findViewByCell(e){if(e==null)return null;const n=At.isCell(e)?e.id:e,s=this.schedule.views;return s[n]?s[n].view:null}findViewsFromPoint(e){const n={x:e.x,y:e.y};return this.model.getCells().map(s=>this.findViewByCell(s)).filter(s=>s!=null?Vt.getBBox(s.container,{target:this.view.stage}).containsPoint(n):!1)}findEdgeViewsFromPoint(e,n=5){return this.model.getEdges().map(s=>this.findViewByCell(s)).filter(s=>{if(s!=null){const o=s.getClosestPoint(e);if(o)return o.distance(e)<=n}return!1})}findViewsInArea(e,n={}){const s=Ne.create(e);return this.model.getCells().map(o=>this.findViewByCell(o)).filter(o=>{if(o){if(n.nodeOnly&&!o.isNodeView())return!1;const i=Vt.getBBox(o.container,{target:this.view.stage});return i.width===0?i.inflate(1,0):i.height===0&&i.inflate(0,1),n.strict?s.containsRect(i):s.isIntersectWithRect(i)}return!1})}dispose(){this.schedule.dispose()}}Yae([zn.dispose()],N0.prototype,"dispose",null);var mE=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o{const u=c.opacity!=null&&Number.isFinite(c.opacity)?c.opacity:1;return``}),l=`<${s}>${i.join("")}`,a=Object.assign({id:n},e.attrs);ut.create(l,a).appendTo(this.defs)}return n}marker(e){const{id:n,refX:s,refY:o,markerUnits:i,markerOrient:l,tagName:a,children:c}=e,u=mE(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let d=n;if(d||(d=`marker-${this.cid}-${Rm(JSON.stringify(e))}`),!this.isDefined(d)){a!=="path"&&delete u.d;const f=ut.create("marker",{refX:s,refY:o,id:d,overflow:"visible",orient:l??"auto",markerUnits:i||"userSpaceOnUse"},c?c.map(h=>{var{tagName:p}=h,g=mE(h,["tagName"]);return ut.create(`${p}`||"path",_d(Object.assign(Object.assign({},u),g)))}):[ut.create(a||"path",_d(u))]);this.defs.appendChild(f.node)}return d}remove(e){const n=this.svg.getElementById(e);n&&n.parentNode&&n.parentNode.removeChild(n)}}class XP extends zn{getClientMatrix(){return Bn(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,n){return(typeof e=="number"?this.clientToLocalPoint(e,n):this.clientToLocalPoint(e.x,e.y)).snapToGrid(this.graph.getGridSize())}localToGraphPoint(e,n){const s=K.create(e,n);return Vt.transformPoint(s,this.graph.matrix())}localToClientPoint(e,n){const s=K.create(e,n);return Vt.transformPoint(s,this.getClientMatrix())}localToPagePoint(e,n){return(typeof e=="number"?this.localToGraphPoint(e,n):this.localToGraphPoint(e)).translate(this.getPageOffset())}localToGraphRect(e,n,s,o){const i=Ne.create(e,n,s,o);return Vt.transformRectangle(i,this.graph.matrix())}localToClientRect(e,n,s,o){const i=Ne.create(e,n,s,o);return Vt.transformRectangle(i,this.getClientMatrix())}localToPageRect(e,n,s,o){return(typeof e=="number"?this.localToGraphRect(e,n,s,o):this.localToGraphRect(e)).translate(this.getPageOffset())}graphToLocalPoint(e,n){const s=K.create(e,n);return Vt.transformPoint(s,this.graph.matrix().inverse())}clientToLocalPoint(e,n){const s=K.create(e,n);return Vt.transformPoint(s,this.getClientMatrix().inverse())}clientToGraphPoint(e,n){const s=K.create(e,n);return Vt.transformPoint(s,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,n){const o=K.create(e,n).diff(this.getPageOffset());return this.graphToLocalPoint(o)}graphToLocalRect(e,n,s,o){const i=Ne.create(e,n,s,o);return Vt.transformRectangle(i,this.graph.matrix().inverse())}clientToLocalRect(e,n,s,o){const i=Ne.create(e,n,s,o);return Vt.transformRectangle(i,this.getClientMatrix().inverse())}clientToGraphRect(e,n,s,o){const i=Ne.create(e,n,s,o);return Vt.transformRectangle(i,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,n,s,o){const i=Ne.create(e,n,s,o),l=this.getPageOffset();return i.x-=l.x,i.y-=l.y,this.graphToLocalRect(i)}}var Jae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class mp extends zn{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:s={}}){const o=this.resolveHighlighter(s);if(!o)return;const i=this.getHighlighterId(n,o);if(!this.highlights[i]){const l=o.highlighter;l.highlight(e,n,Object.assign({},o.args)),this.highlights[i]={cellView:e,magnet:n,highlighter:l,args:o.args}}}onCellUnhighlight({magnet:e,options:n={}}){const s=this.resolveHighlighter(n);if(!s)return;const o=this.getHighlighterId(e,s);this.unhighlight(o)}resolveHighlighter(e){const n=this.options;let s=e.highlighter;if(s==null){const a=e.type;s=a&&n.highlighting[a]||n.highlighting.default}if(s==null)return null;const o=typeof s=="string"?{name:s}:s,i=o.name,l=Do.registry.get(i);return l==null?Do.registry.onNotFound(i):(Do.check(i,l),{name:i,highlighter:l,args:o.args||{}})}getHighlighterId(e,n){return y0(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()}}Jae([mp.dispose()],mp.prototype,"dispose",null);var Xae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class ZP extends zn{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&&ap.bind(n,()=>{const s=n.offsetWidth,o=n.offsetHeight;this.resize(s,o)})}}resize(e,n){const s=this.getScroller();s?s.resize(e,n):this.graph.transform.resize(e,n)}dispose(){ap.clear(this.graph.container)}}Xae([zn.dispose()],ZP.prototype,"dispose",null);var Zae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i};class or extends Fr{get container(){return this.options.container}get[Symbol.toStringTag](){return or.toStringTag}constructor(e){super(),this.installedPlugins=new Set,this.options=Rd.get(e),this.css=new Cv(this),this.view=new ho(this),this.defs=new JP(this),this.coord=new XP(this),this.transform=new KP(this),this.highlight=new mp(this),this.grid=new A0(this),this.background=new M0(this),this.options.model?this.model=this.options.model:(this.model=new Is,this.model.graph=this),this.renderer=new N0(this),this.panning=new k0(this),this.mousewheel=new P0(this),this.virtualRender=new YP(this),this.size=new ZP(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(s=>mn.isNode(s)?s:this.createNode(s)),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(s=>an.isEdge(s)?s:this.createEdge(s)),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,s={}){return this.model.isNeighbor(e,n,s)}getSuccessors(e,n={}){return this.model.getSuccessors(e,n)}isSuccessor(e,n,s={}){return this.model.isSuccessor(e,n,s)}getPredecessors(e,n={}){return this.model.getPredecessors(e,n)}isPredecessor(e,n,s={}){return this.model.isPredecessor(e,n,s)}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,s,o,i){return this.model.getNodesInArea(e,n,s,o,i)}getNodesUnderNode(e,n={}){return this.model.getNodesUnderNode(e,n)}searchCell(e,n,s={}){return this.model.search(e,n,s),this}getShortestPath(e,n,s={}){return this.model.getShortestPath(e,n,s)}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,s){const o=typeof e=="string"?e:"update",i=typeof e=="string"?n:e,l=typeof n=="function"?s:n;this.startBatch(o,l);const a=i();return this.stopBatch(o,l),a}updateCellId(e,n){return this.model.updateCellId(e,n)}findView(e){return At.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return Ne.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,n){const s=typeof e=="number"?{x:e,y:n}:e;return this.renderer.findViewsFromPoint(s)}findViewsInArea(e,n,s,o,i){const l=typeof e=="number"?{x:e,y:n,width:s,height:o}:e,a=typeof e=="number"?i:n;return this.renderer.findViewsInArea(l,a)}matrix(e){return typeof e>"u"?this.transform.getMatrix():(this.transform.setMatrix(e),this)}resize(e,n){const s=this.getPlugin("scroller");return s?s.resize(e,n):this.transform.resize(e,n),this}scale(e,n=e,s=0,o=0){return typeof e>"u"?this.transform.getScale():(this.transform.scale(e,n,s,o),this)}zoom(e,n){const s=this.getPlugin("scroller");if(s){if(typeof e>"u")return s.zoom();s.zoom(e,n)}else{if(typeof e>"u")return this.transform.getZoom();this.transform.zoom(e,n)}return this}zoomTo(e,n={}){const s=this.getPlugin("scroller");return s?s.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 s=this.getPlugin("scroller");return s?s.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,s){return typeof e>"u"?this.transform.getRotation():(this.transform.rotate(e,n,s),this)}translate(e,n){return typeof e>"u"?this.transform.getTranslation():(this.transform.translate(e,n),this)}translateBy(e,n){const s=this.translate(),o=s.tx+e,i=s.ty+n;return this.translate(o,i)}getGraphArea(){return this.transform.getGraphArea()}getContentArea(e={}){return this.transform.getContentArea(e)}getContentBBox(e={}){return this.transform.getContentBBox(e)}fitToContent(e,n,s,o){return this.transform.fitToContent(e,n,s,o)}scaleContentToFit(e={}){return this.transform.scaleContentToFit(e),this}center(e){return this.centerPoint(e)}centerPoint(e,n,s){const o=this.getPlugin("scroller");return o?o.centerPoint(e,n,s):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 s=this.getPlugin("scroller");return s?s.centerCell(e,n):this.transform.centerCell(e),this}positionPoint(e,n,s,o={}){const i=this.getPlugin("scroller");return i?i.positionPoint(e,n,s,o):this.transform.positionPoint(e,n,s),this}positionRect(e,n,s){const o=this.getPlugin("scroller");return o?o.positionRect(e,n,s):this.transform.positionRect(e,n),this}positionCell(e,n,s){const o=this.getPlugin("scroller");return o?o.positionCell(e,n,s):this.transform.positionCell(e,n),this}positionContent(e,n){const s=this.getPlugin("scroller");return s?s.positionContent(e,n):this.transform.positionContent(e,n),this}snapToGrid(e,n){return this.coord.snapToGrid(e,n)}pageToLocal(e,n,s,o){return Ne.isRectangleLike(e)?this.coord.pageToLocalRect(e):typeof e=="number"&&typeof n=="number"&&typeof s=="number"&&typeof o=="number"?this.coord.pageToLocalRect(e,n,s,o):this.coord.pageToLocalPoint(e,n)}localToPage(e,n,s,o){return Ne.isRectangleLike(e)?this.coord.localToPageRect(e):typeof e=="number"&&typeof n=="number"&&typeof s=="number"&&typeof o=="number"?this.coord.localToPageRect(e,n,s,o):this.coord.localToPagePoint(e,n)}clientToLocal(e,n,s,o){return Ne.isRectangleLike(e)?this.coord.clientToLocalRect(e):typeof e=="number"&&typeof n=="number"&&typeof s=="number"&&typeof o=="number"?this.coord.clientToLocalRect(e,n,s,o):this.coord.clientToLocalPoint(e,n)}localToClient(e,n,s,o){return Ne.isRectangleLike(e)?this.coord.localToClientRect(e):typeof e=="number"&&typeof n=="number"&&typeof s=="number"&&typeof o=="number"?this.coord.localToClientRect(e,n,s,o):this.coord.localToClientPoint(e,n)}localToGraph(e,n,s,o){return Ne.isRectangleLike(e)?this.coord.localToGraphRect(e):typeof e=="number"&&typeof n=="number"&&typeof s=="number"&&typeof o=="number"?this.coord.localToGraphRect(e,n,s,o):this.coord.localToGraphPoint(e,n)}graphToLocal(e,n,s,o){return Ne.isRectangleLike(e)?this.coord.graphToLocalRect(e):typeof e=="number"&&typeof n=="number"&&typeof s=="number"&&typeof o=="number"?this.coord.graphToLocalRect(e,n,s,o):this.coord.graphToLocalPoint(e,n)}clientToGraph(e,n,s,o){return Ne.isRectangleLike(e)?this.coord.clientToGraphRect(e):typeof e=="number"&&typeof n=="number"&&typeof s=="number"&&typeof o=="number"?this.coord.clientToGraphRect(e,n,s,o):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 s=this.getPlugin("scroller");return s!=null&&(this.options.background==null||!n)?s.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 s=this.getPlugins(n);return s==null||s.forEach(o=>{var i;(i=o==null?void 0:o.enable)===null||i===void 0||i.call(o)}),this}disablePlugins(e){let n=e;Array.isArray(n)||(n=[n]);const s=this.getPlugins(n);return s==null||s.forEach(o=>{var i;(i=o==null?void 0:o.disable)===null||i===void 0||i.call(o)}),this}isPluginEnabled(e){var n;const s=this.getPlugin(e);return(n=s==null?void 0:s.isEnabled)===null||n===void 0?void 0:n.call(s)}disposePlugins(e){let n=e;Array.isArray(n)||(n=[n]);const s=this.getPlugins(n);return s==null||s.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(n=>{n.dispose()})}}Zae([Fr.dispose()],or.prototype,"dispose",null);(function(r){r.View=ho,r.Renderer=N0,r.MouseWheel=P0,r.DefsManager=JP,r.GridManager=A0,r.CoordManager=XP,r.TransformManager=KP,r.HighlightManager=mp,r.BackgroundManager=M0,r.PanningManager=k0})(or||(or={}));(function(r){r.toStringTag=`X6.${r.name}`;function e(n){if(n==null)return!1;if(n instanceof r)return!0;const s=n[Symbol.toStringTag];return s==null||s===r.toStringTag}r.isGraph=e})(or||(or={}));(function(r){function e(n,s){const o=n instanceof HTMLElement?new r({container:n}):new r(n);return s!=null&&o.fromJSON(s),o}r.render=e})(or||(or={}));(function(r){r.registerNode=mn.registry.register,r.registerEdge=an.registry.register,r.registerView=fn.registry.register,r.registerAttr=fo.registry.register,r.registerGrid=Ii.registry.register,r.registerFilter=Ic.registry.register,r.registerNodeTool=$c.registry.register,r.registerEdgeTool=Dc.registry.register,r.registerBackground=kd.registry.register,r.registerHighlighter=Do.registry.register,r.registerPortLayout=Xl.registry.register,r.registerPortLabelLayout=Lc.registry.register,r.registerMarker=Yi.registry.register,r.registerRouter=Li.registry.register,r.registerConnector=Zl.registry.register,r.registerAnchor=Vc.registry.register,r.registerEdgeAnchor=Fc.registry.register,r.registerConnectionPoint=Bc.registry.register})(or||(or={}));(function(r){r.unregisterNode=mn.registry.unregister,r.unregisterEdge=an.registry.unregister,r.unregisterView=fn.registry.unregister,r.unregisterAttr=fo.registry.unregister,r.unregisterGrid=Ii.registry.unregister,r.unregisterFilter=Ic.registry.unregister,r.unregisterNodeTool=$c.registry.unregister,r.unregisterEdgeTool=Dc.registry.unregister,r.unregisterBackground=kd.registry.unregister,r.unregisterHighlighter=Do.registry.unregister,r.unregisterPortLayout=Xl.registry.unregister,r.unregisterPortLabelLayout=Lc.registry.unregister,r.unregisterMarker=Yi.registry.unregister,r.unregisterRouter=Li.registry.unregister,r.unregisterConnector=Zl.registry.unregister,r.unregisterAnchor=Vc.registry.unregister,r.unregisterEdgeAnchor=Fc.registry.unregister,r.unregisterConnectionPoint=Bc.registry.unregister})(or||(or={}));var Qae=function(r,e,n,s){var o=arguments.length,i=o<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,n):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,n,s);else for(var a=r.length-1;a>=0;a--)(l=r[a])&&(i=(o<3?l(i):o>3?l(e,n,i):l(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},ece=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);othis.renderHTMLComponent())}renderHTMLComponent(){const s=this.selectors&&this.selectors.foContent;if(s){ff(s);const o=r.shapeMaps[this.cell.shape];if(!o)return;let{html:i}=o;typeof i=="function"&&(i=i(this.cell)),i&&(typeof i=="string"?s.innerHTML=i:hf(s,i))}}dispose(){this.cell.off("change:*",this.onCellChangeAny,this)}}Qae([e.dispose()],e.prototype,"dispose",null),r.View=e,function(n){n.action="html",n.config({bootstrap:[n.action],actions:{html:n.action}}),Br.registry.register("html-view",n,!0)}(e=r.View||(r.View={}))})(Hc||(Hc={}));(function(r){r.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},Yt.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),mn.registry.register("html",r,!0)})(Hc||(Hc={}));(function(r){r.shapeMaps={};function e(n){const{shape:s,html:o,effect:i,inherit:l}=n,a=ece(n,["shape","html","effect","inherit"]);if(!s)throw new Error("should specify shape in config");r.shapeMaps[s]={html:o,effect:i},or.registerNode(s,Object.assign({inherit:l||"html"},a),!0)}r.register=e})(Hc||(Hc={}));class bE extends mn{}(function(r){function e(n){const s=[],o=Yt.getForeignObjectMarkup();return n?s.push({tagName:n,selector:"body"},o):s.push(o),s}r.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 s=n.primer;if(s){n.markup=e(s);let o={};switch(s){case"circle":o={refCx:"50%",refCy:"50%",refR:"50%"};break;case"ellipse":o={refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"};break}n.attrs=on({},{body:Object.assign({refWidth:null,refHeight:null},o)},n.attrs||{})}}return n}}),mn.registry.register("vue-shape",r,!0)})(bE||(bE={}));var tce=function(r,e){var n={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(n[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);oYe(Uc,{to:n},[Ye(e,{node:s,graph:o})]),provide:()=>({getNode:()=>s,getGraph:()=>o})})))}function rce(r){Ag&&delete bp[r]}function vE(){return Ag}function sce(){return Ag=!0,pe({setup(){return()=>Ye(De,{},Object.keys(bp).map(r=>Ye(bp[r])))}})}class vp extends Br{getComponentContainer(){return this.selectors&&this.selectors.foContent}confirmUpdate(e){const n=super.confirmUpdate(e);return this.handleAction(n,vp.action,()=>{this.renderVueComponent()})}targetId(){return`${this.graph.view.cid}:${this.cell.id}`}renderVueComponent(){this.unmountVueComponent();const e=this.getComponentContainer(),n=this.cell,s=this.graph;if(e){const{component:o}=QP[n.shape];o&&(vE()?nce(this.targetId(),o,e,n,s):(this.vm=Gv({render(){return Ye(o,{node:n,graph:s})},provide(){return{getNode:()=>n,getGraph:()=>s}}}),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,s){const o=e.target;if(o.tagName.toLowerCase()==="input"){const l=o.getAttribute("type");if(l==null||["text","password","number","email","search","tel","url"].includes(l))return}super.onMouseDown(e,n,s)}unmount(){return vE()&&rce(this.targetId()),this.unmountVueComponent(),super.unmount(),this}}(function(r){r.action="vue",r.config({bootstrap:[r.action],actions:{component:r.action}}),Br.registry.register("vue-shape-view",r,!0)})(vp||(vp={}));const oce={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ice=H("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),lce=[ice];function ace(r,e){return N(),X("svg",oce,[...lce])}const cce={name:"ep-delete",render:ace},uce={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},dce=H("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),fce=H("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),hce=[dce,fce];function pce(r,e){return N(),X("svg",uce,[...hce])}const gce={name:"ep-edit",render:pce},mce={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},bce=H("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),vce=[bce];function yce(r,e){return N(),X("svg",mce,[...vce])}const wce={name:"ep-finished",render:yce},Cce={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Sce=H("path",{fill:"currentColor",d:"m64 448l832-320l-128 704l-446.08-243.328L832 192L242.816 545.472zm256 512V657.024L512 768z"},null,-1),xce=[Sce];function Ece(r,e){return N(),X("svg",Cce,[...xce])}const Tce={name:"ep-promotion",render:Ece},_ce={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Oce=H("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),Ace=[Oce];function Mce(r,e){return N(),X("svg",_ce,[...Ace])}const yE={name:"ep-d-arrow-right",render:Mce},kce={class:"text-large font-600 mr-3"},Pce={class:"flex items-center"},Nce=["id","onClick"],Ice=["onClick"],Lce={class:"nodesBox"},Rce=["onDragend"],$ce={class:"dialog-footer"},Dce={style:{flex:"auto"}},Vce={__name:"SubFlow",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Go(),i=ps(),l=o.params.robotId,a=sce(),c=j([]),u=j([]);function d(){const Se=new Array;for(let D=0;D-1;nt(async()=>{const Se=document.getElementById("canvas");p=new or({container:Se,width:Se.offsetWidth-10,height:Se.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}),p.on("node:click",({e:L,x:te,y:he,node:ge,view:Ce})=>{ge.setTools([{name:"button-remove",args:{x:0,y:0}}])}),p.on("node:mouseleave",({e:L,x:te,y:he,node:ge,view:Ce})=>{ge.hasTool("button-remove")&&ge.removeTool("button-remove")}),p.on("node:dblclick",({e:L,x:te,y:he,node:ge,view:Ce})=>{ge.setData({currentTime:Date.now()}),g=!0}),p.on("edge:click",({e:L,x:te,y:he,edge:ge,view:Ce})=>{ge.setTools(["button-remove"])});const D=await rt("GET","subflow",{robotId:l,mainFlowId:m,data:""},null,null);x(b?{status:200,data:D}:D),tt(()=>{k(0)})}),qo(()=>{p!=null&&p.dispose()});function C(Se,D,L){const te=p.addNode({shape:L.type,x:Se,y:D});L.cnt++,te.setData({nodeType:L.type,nodeCnt:L.cnt}),g=!0}function y(Se,D){const L=p.pageToLocal(Se.pageX,Se.pageY);C(L.x,L.y,D)}function w(Se){Se.preventDefault()}function x(Se){Se&&Se.status==200&&Se.data&&(c.value=Se.data)}const E=j(!1),_=j("");async function M(){await $();const Se=await rt("POST","subflow/new",{robotId:l,mainFlowId:m,data:_.value},null,null);if(Se.status==200){const D=c.value.length;x(Se),tt(()=>{k(D),_.value=""})}}function A(Se){c.value.length<2?tn.error(e("lang.flow.needOne")):Vr.confirm(e("lang.flow.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{(await rt("DELETE","subflow",{robotId:l,mainFlowId:m,data:h},null,null)).status==200&&(h=-1,c.value.splice(Se,1),k(0)),tn({type:"success",message:e("lang.common.deleted")})}).catch(()=>{})}async function k(Se){Se!=h&&(g?Vr.confirm(e("lang.flow.changeSaveTip"),"Warning",{confirmButtonText:e("lang.common.save"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{await $(),P(Se),g=!1}).catch(()=>{}):P(Se))}function P(Se){const D=document.getElementById(B(h));D&&(D.style.backgroundColor="white",D.style.color="black"),h=Se;const L=document.getElementById(B(h));if(L.style.backgroundColor="rgb(245,246,249)",L.style.color="rgb(131,88,179)",c.value[h].canvas){const he=JSON.parse(c.value[h].canvas).cells;p.fromJSON(he)}else p.clearCells()}async function $(){R.value=!0,U.value=!0;const Se=p.toJSON();Se.cells.forEach(function(Ce,xe,V){Ce.shape!="edge"&&(Ce.data.nodeId=Ce.id)},f);const L=c.value[h],te=[];for(let Ce=0;Ce0&&!Te.value)return;Te.value&&G(Te.value,"userText"),we||(we=Ee());const Se={robotId:l,mainFlowId:m,sessionId:we,userInputResult:fe.value.length==0||Te.value?"Successful":"Timeout",userInput:Te.value,importVariables:[]},D=await rt("POST","flow/answer",null,null,Se);if(D.status==200){const L=D.data,te=L.answers;for(let he=0;he{ee.value.setScrollTop(de.value.clientHeight)})}else Bf({title:e("lang.common.errTip"),message:Ye("b",{style:"color: teal"},D.err.message),type:"error"});me.value.focus()}async function se(){fe.value.splice(0,fe.value.length),Te.value="",we="",q.value=!1,await ne()}const me=j(),Pe=async()=>{ce.value=!0,await ne()};return(Se,D)=>{const L=dt,te=Uy,he=Pn,ge=mo,Ce=LW,xe=IW,V=gs,F=RW,J=NW,ie=Sn,Ae=lr,re=ir,Z=ll,ae=Qp,je=RO,Qe=Zo,Me=fY;return N(),X("div",null,[T(J,null,{default:O(()=>[T(Ce,{height:"40px"},{default:O(()=>[T(ge,{title:S(e)("lang.common.back"),onBack:W},{content:O(()=>[H("span",kce,oe(S(v)),1)]),extra:O(()=>[H("div",Pce,[Ue(T(te,null,{default:O(()=>[le(oe(Se.$tm("lang.flow.steps")[0])+" ",1),T(L,{size:20},{default:O(()=>[T(S(yE))]),_:1})]),_:1},512),[[st,b]]),Ue(T(he,{type:"primary",class:"ml-2",onClick:$,loading:U.value,size:"large"},{default:O(()=>[T(L,{size:20},{default:O(()=>[T(S(gce))]),_:1}),le(oe(Se.$t("lang.flow.save")),1)]),_:1},8,["loading"]),[[st,!b]]),T(he,{type:"success",onClick:I,loading:Q.value,size:"large"},{default:O(()=>[T(L,{size:20},{default:O(()=>[T(S(wce))]),_:1}),le(oe(Se.$t("lang.flow.pub")),1)]),_:1},8,["loading"]),Ue(T(te,null,{default:O(()=>[le(oe(Se.$tm("lang.flow.steps")[1])+" ",1),T(L,null,{default:O(()=>[T(S(yE))]),_:1})]),_:1},512),[[st,b]]),T(he,{color:"#626aef",class:"ml-2",onClick:Pe,size:"large"},{default:O(()=>[T(L,{size:20},{default:O(()=>[T(S(Tce))]),_:1}),le(" "+oe(Se.$t("lang.flow.test")),1)]),_:1})])]),_:1},8,["title"])]),_:1}),T(J,null,{default:O(()=>[T(xe,{width:"150px"},{default:O(()=>[H("div",{class:"newSubFlowBtn",onClick:D[0]||(D[0]=ke=>E.value=!0)},[T(L,{size:"16px"},{default:O(()=>[T(S(Bu))]),_:1}),le(" "+oe(Se.$t("lang.flow.addSubFlow")),1)]),(N(!0),X(De,null,Ot(c.value,(ke,Je)=>(N(),X("div",{id:B(Je),key:ke.label,onClick:it=>k(Je),class:"subFlowBtn"},[le(oe(ke.name)+" ",1),H("span",{onClick:it=>A(Je)},[T(L,null,{default:O(()=>[T(S(cce))]),_:1})],8,Ice)],8,Nce))),128))]),_:1}),Ue((N(),ye(F,null,{default:O(()=>[H("div",Lce,[(N(),X(De,null,Ot(f,ke=>H("div",{key:ke.type,class:Y(["node-btn",ke.type]),draggable:"true",onDragend:Je=>y(Je,ke)},[T(V,{class:"box-item",effect:"dark",content:ke.desc,placement:"right-start"},{default:O(()=>[H("span",null,oe(ke.name),1)]),_:2},1032,["content"])],42,Rce)),64))]),H("div",{id:"canvas",onDragover:w,style:{border:"1px #000 solid"}},null,32),T(S(a))]),_:1})),[[Me,R.value]])]),_:1})]),_:1}),T(Z,{modelValue:E.value,"onUpdate:modelValue":D[4]||(D[4]=ke=>E.value=ke),title:Se.$t("lang.flow.addSubFlow")},{footer:O(()=>[H("span",$ce,[T(he,{type:"primary",onClick:D[2]||(D[2]=ke=>{E.value=!1,M()})},{default:O(()=>[le(oe(Se.$t("lang.common.add")),1)]),_:1}),T(he,{onClick:D[3]||(D[3]=ke=>E.value=!1)},{default:O(()=>[le(oe(Se.$t("lang.common.cancel")),1)]),_:1})])]),default:O(()=>[T(re,{model:Se.form},{default:O(()=>[T(Ae,{label:S(e)("lang.flow.form.name"),"label-width":"110px"},{default:O(()=>[T(ie,{modelValue:_.value,"onUpdate:modelValue":D[1]||(D[1]=ke=>_.value=ke),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),T(Qe,{modelValue:ce.value,"onUpdate:modelValue":D[7]||(D[7]=ke=>ce.value=ke),direction:"rtl"},{header:O(()=>[H("b",null,oe(Se.$t("lang.flow.test")),1)]),default:O(()=>[T(ae,{ref_key:"chatScrollbarRef",ref:ee,height:"100%",always:""},{default:O(()=>[H("div",{ref_key:"dryrunChatRecords",ref:de},[(N(!0),X(De,null,Ot(fe.value,ke=>(N(),X("div",{key:ke.id,class:Y(ke.cssClass)},[T(te,null,{default:O(()=>[le(oe(ke.text),1)]),_:2},1024)],2))),128))],512)]),_:1},512)]),footer:O(()=>[H("div",Dce,[T(ie,{ref_key:"dryrunInput",ref:me,disabled:q.value,modelValue:Te.value,"onUpdate:modelValue":D[5]||(D[5]=ke=>Te.value=ke),placeholder:"",style:{width:"200px"},onKeypress:D[6]||(D[6]=ke=>{ke.keyCode==13&&ne()})},null,8,["disabled","modelValue"]),T(je,null,{default:O(()=>[T(he,{type:"primary",disabled:q.value,onClick:ne},{default:O(()=>[le(oe(Se.$t("lang.flow.send")),1)]),_:1},8,["disabled"]),T(he,{onClick:se},{default:O(()=>[le(oe(Se.$t("lang.flow.reset")),1)]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}},wE=Hs(Vce,[["__scopeId","data-v-3d106c8d"]]),Fce={class:"text-large font-600 mr-3"},Bce={class:"flex items-center"},zce={class:"dialog-footer"},jce="70px",Hce={__name:"IntentList",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Go(),i=ps(),l=j([]),a=j(!1),c=j(""),u=o.params.robotId;nt(async()=>{await f()});const d=()=>{i.push({name:"robotDetail",params:{robotId:u}})};async function f(){const C=await rt("GET","intent",{robotId:u},null,null);C.status==200&&(l.value=C.data)}async function h(){const C={robotId:u,id:"",data:c.value};(await rt("POST","intent",null,null,C)).status==200&&await f()}function p(C,y){i.push({path:"/intent/detail",query:{robotId:u,id:l.value[C].id,idx:C,name:y.name}})}async function g(C,y){Vr.confirm(e("lang.intent.delConfirm"),"Warning",{confirmButtonText:e("lang.common.del"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{const w={robotId:u,id:l.value[C].id,data:C.toString()},x=await rt("DELETE","intent",null,null,w);x.status==200?(await f(),tn({type:"success",message:x("lang.common.deleted")})):tn({type:"error",message:x.err.message})}).catch(()=>{})}const m=j(""),v=j("");async function b(){const C={robotId:u,id:"",data:m.value},y=await rt("POST","intent/detect",null,null,C);y.status==200&&(y.data==null?v.value="No intention detected.":v.value="The detected intention is: "+y.data)}return(C,y)=>{const w=Pn,x=mo,E=sf,_=rf,M=Vy,A=Sn,k=lr,P=ir,$=ll;return N(),X(De,null,[T(x,{title:S(e)("lang.common.back"),onBack:d},{content:O(()=>[H("span",Fce,oe(C.$t("lang.intent.title")),1)]),extra:O(()=>[H("div",Bce,[T(w,{type:"primary",class:"ml-2",onClick:y[0]||(y[0]=B=>a.value=!0)},{default:O(()=>[le(oe(C.$t("lang.intent.add")),1)]),_:1})])]),_:1},8,["title"]),T(_,{data:l.value,stripe:"",style:{width:"100%"}},{default:O(()=>[T(E,{prop:"name",label:S(n)("lang.intent.table")[0],width:"180"},null,8,["label"]),T(E,{prop:"keyword_num",label:S(n)("lang.intent.table")[1],width:"180"},null,8,["label"]),T(E,{prop:"regex_num",label:S(n)("lang.intent.table")[2],width:"180"},null,8,["label"]),T(E,{prop:"phrase_num",label:S(n)("lang.intent.table")[3],width:"230"},null,8,["label"]),T(E,{fixed:"right",label:S(n)("lang.intent.table")[4],width:"120"},{default:O(B=>[T(w,{link:"",type:"primary",size:"small",onClick:W=>p(B.$index,B.row)},{default:O(()=>[le(oe(C.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),T(w,{link:"",type:"primary",size:"small",onClick:W=>g(B.$index,B.row)},{default:O(()=>[le(oe(C.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),T(M),T(A,{modelValue:m.value,"onUpdate:modelValue":y[1]||(y[1]=B=>m.value=B),style:{width:"240px"},placeholder:"Please input some texts",onChange:b},null,8,["modelValue"]),T(w,{type:"primary",onClick:b},{default:O(()=>[le("Test intent detection")]),_:1}),H("div",null,oe(v.value),1),T($,{modelValue:a.value,"onUpdate:modelValue":y[5]||(y[5]=B=>a.value=B),title:S(e)("lang.intent.form.title")},{footer:O(()=>[H("span",zce,[T(w,{type:"primary",onClick:y[3]||(y[3]=B=>{a.value=!1,h()})},{default:O(()=>[le(oe(C.$t("lang.common.add")),1)]),_:1}),T(w,{onClick:y[4]||(y[4]=B=>a.value=!1)},{default:O(()=>[le(oe(C.$t("lang.common.cancel")),1)]),_:1})])]),default:O(()=>[T(P,{model:C.form},{default:O(()=>[T(k,{label:S(e)("lang.intent.form.name"),"label-width":jce},{default:O(()=>[T(A,{modelValue:c.value,"onUpdate:modelValue":y[2]||(y[2]=B=>c.value=B),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}},Uce={class:"text-large font-600 mr-3"},Wce={__name:"IntentDetail",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Go(),i=ps(),l=o.query.robotId,a=St({keywords:[],regexes:[],phrases:[]}),c={robotId:"",id:"",data:""};nt(async()=>{c.robotId=l,c.id=o.query.id;let B=await rt("GET","intent/detail",c,null,null);B.status==200&&B.data&&(a.keywords=B.data.keywords,a.regexes=B.data.regexes,a.phrases=B.data.phrases.map((W,I,R)=>W.phrase)),B=await rt("GET","management/settings/model/check",{robotId:l},null,null),E.value=B==null||B.status==null||B.status!=200});const u=j(""),d=j(!1),f=j(),h=()=>{d.value=!0,tt(()=>{f.value.focus()})};async function p(){u.value&&(c.id=o.query.id,c.data=u.value,(await rt("POST","intent/keyword",{id:c.id,data:o.query.idx},null,c)).status==200&&a.keywords.push(u.value)),d.value=!1,u.value=""}async function g(B){Vr.confirm(B+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const W=a.keywords.indexOf(B);c.id=o.query.id,c.data=W.toString(),(await rt("DELETE","intent/keyword",null,null,c)).status==200&&(a.keywords.splice(W,1),tn({type:"success",message:"Delete completed"}))}).catch(()=>{})}const m=j(""),v=j(!1),b=j(),C=()=>{v.value=!0,tt(()=>{b.value.focus()})};async function y(){m.value&&(c.id=o.query.id,c.data=m.value,(await rt("POST","intent/regex",{id:c.id,data:o.query.idx},null,c)).status==200&&a.regexes.push(m.value)),v.value=!1,m.value=""}async function w(B){Vr.confirm(B+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const W=a.regexes.indexOf(B);c.id=o.query.id,c.data=W.toString(),(await rt("DELETE","intent/regex",null,null,c)).status==200&&(a.regexes.splice(W,1),tn({type:"success",message:"Delete completed"}))}).catch(()=>{})}const x=j(""),E=j(!0),_=j(!1),M=j(),A=()=>{_.value=!0,tt(()=>{M.value.focus()})};async function k(){x.value&&(c.id=o.query.id,c.data=x.value,(await rt("POST","intent/phrase",{robotId:l,id:c.id,data:o.query.idx},null,c)).status==200&&a.phrases.push(x.value)),_.value=!1,x.value=""}async function P(B){Vr.confirm(B+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const W=a.phrases.indexOf(B);c.id=o.query.id,c.data=W.toString(),(await rt("DELETE","intent/phrase",null,null,c)).status==200&&(a.phrases.splice(W,1),tn({type:"success",message:"Delete completed"}))}).catch(()=>{})}const $=()=>{i.push({name:"intents",params:{robotId:l}})};return(B,W)=>{const I=mo,R=rA,U=Sn,Q=Pn,q=Pt("router-link");return N(),X(De,null,[T(I,{title:S(e)("lang.common.back"),onBack:$},{content:O(()=>[H("span",Uce,oe(B.$t("lang.intent.detail.edit"))+": "+oe(S(o).query.name),1)]),_:1},8,["title"]),H("h3",null,oe(B.$t("lang.intent.detail.kw")),1),(N(!0),X(De,null,Ot(a.keywords,ee=>(N(),ye(R,{type:"info",key:ee,class:"mx-1",closable:"","disable-transitions":!1,onClose:de=>g(ee)},{default:O(()=>[le(oe(ee),1)]),_:2},1032,["onClose"]))),128)),d.value?(N(),ye(U,{key:0,ref_key:"keywordInputRef",ref:f,modelValue:u.value,"onUpdate:modelValue":W[0]||(W[0]=ee=>u.value=ee),class:"ml-1 w-20",size:"small",onKeyup:tr(p,["enter"]),onBlur:p},null,8,["modelValue"])):(N(),ye(Q,{key:1,class:"button-new-tag ml-1",size:"small",onClick:h},{default:O(()=>[le(" + "+oe(B.$t("lang.intent.detail.addKw")),1)]),_:1})),H("h3",null,oe(B.$t("lang.intent.detail.re")),1),(N(!0),X(De,null,Ot(a.regexes,ee=>(N(),ye(R,{type:"info",key:ee,class:"mx-1",closable:"","disable-transitions":!1,onClose:de=>w(ee)},{default:O(()=>[le(oe(ee),1)]),_:2},1032,["onClose"]))),128)),v.value?(N(),ye(U,{key:2,ref_key:"regexInputRef",ref:b,modelValue:m.value,"onUpdate:modelValue":W[1]||(W[1]=ee=>m.value=ee),class:"ml-1 w-20",size:"small",onKeyup:tr(y,["enter"]),onBlur:y},null,8,["modelValue"])):(N(),ye(Q,{key:3,class:"button-new-tag ml-1",size:"small",onClick:C},{default:O(()=>[le(" + "+oe(B.$t("lang.intent.detail.addRe")),1)]),_:1})),H("h3",null,oe(B.$t("lang.intent.detail.sp")),1),(N(!0),X(De,null,Ot(a.phrases,ee=>(N(),ye(R,{type:"info",key:ee,class:"mx-1",closable:"","disable-transitions":!1,onClose:de=>P(ee)},{default:O(()=>[le(oe(ee),1)]),_:2},1032,["onClose"]))),128)),_.value?(N(),ye(U,{key:4,ref_key:"phraseInputRef",ref:M,modelValue:x.value,"onUpdate:modelValue":W[2]||(W[2]=ee=>x.value=ee),class:"ml-1 w-20",size:"small",onKeyup:tr(k,["enter"]),onBlur:k},null,8,["modelValue"])):(N(),ye(Q,{key:5,class:"button-new-tag ml-1",size:"small",onClick:A,disabled:E.value},{default:O(()=>[le(" + "+oe(B.$t("lang.intent.detail.addSp")),1)]),_:1},8,["disabled"])),Ue(H("div",null,[le(" This feature was disabled since model files were missing, please goto "),T(q,{to:"/settings"},{default:O(()=>[le("settings")]),_:1}),le(" and select one model first. ")],512),[[st,E.value]])],64)}}},qce={class:"text-large font-600 mr-3"},Gce={class:"flex items-center"},Kce=H("br",null,null,-1),Yce=["checked"],Jce=H("label",{for:"_cacheEnabled_"},"Enable",-1),Xce={key:0},Zce={key:1},Qce={class:"demo-drawer__footer"},To="160px",eue={__name:"Variable",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Go(),i=ps(),l=o.params.robotId,a=St({varName:"",varType:"",varValueSource:"",varConstantValue:"",varAssociateData:"",obtainValueExpressionType:"None",obtainValueExpression:"",cacheEnabled:!0}),c=[{label:n("lang.var.types")[0],value:"Str"},{label:n("lang.var.types")[1],value:"Num"}],u=new Map;c.forEach(function(A,k,P){this.set(A.value,A.label)},u);const d=[{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}],f=new Map;d.forEach(function(A,k,P){this.set(A.value,A.label)},f);const h=[{label:"JSON Pointer",value:"JsonPointer",disabled:!1},{label:"Html Scrape",value:"HtmlScrape",disabled:!1}],p=j(!1),g=j([]),m=j([]);async function v(){const A=await rt("GET","variable",{robotId:l},null,null);b(A)}nt(async()=>{const A=await rt("GET","external/http",{robotId:l},null,null);A&&A.status==200&&(m.value=A.data==null?[]:A.data),await v()});const b=A=>{A&&A.status==200&&(g.value=A.data==null?[]:A.data,g.value.forEach(function(k,P,$){k.varTypeT=u.get(k.varType),k.varValueSourceT=f.get(k.varValueSource)}))},C=()=>{i.push({name:"robotDetail",params:{robotId:l}})},y=()=>{a.varName="",a.varType="",a.varValueSource="",a.constantValue="",a.externalAssociateId="",a.obtainValueExpressionType="None",a.obtainValueExpression="",a.cacheEnabled=!1,E()},w=(A,k)=>{sr(k,a),E()},x=async(A,k)=>{Vr.confirm(k.varName+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{sr(k,a),(await rt("DELETE","variable",{robotId:l},null,a)).status==200&&(await v(),tn({type:"success",message:"Delete completed"}))}).catch(()=>{})};function E(){p.value=!0}function _(){p.value=!1}async function M(){const A=await rt("POST","variable",{robotId:l},null,a);await v(),_()}return(A,k)=>{const P=Pn,$=mo,B=sf,W=rf,I=Sn,R=lr,U=ei,Q=Qo,q=Pt("router-link"),ee=ir,de=Zo;return N(),X(De,null,[T($,{title:S(e)("lang.common.back"),onBack:C},{content:O(()=>[H("span",qce,oe(A.$t("lang.var.title")),1)]),extra:O(()=>[H("div",Gce,[T(P,{type:"primary",class:"ml-2",onClick:k[0]||(k[0]=ce=>y())},{default:O(()=>[le(oe(A.$t("lang.var.add")),1)]),_:1})])]),_:1},8,["title"]),T(W,{data:g.value,stripe:"",style:{width:"100%"}},{default:O(()=>[T(B,{prop:"varName",label:S(n)("lang.var.table")[0],width:"300"},null,8,["label"]),T(B,{prop:"varTypeT",label:S(n)("lang.var.table")[1],width:"180"},null,8,["label"]),T(B,{prop:"varValueSourceT",label:S(n)("lang.var.table")[2],width:"200"},null,8,["label"]),T(B,{fixed:"right",label:S(n)("lang.var.table")[3],width:"120"},{default:O(ce=>[T(P,{link:"",type:"primary",size:"small",onClick:Te=>w(ce.$index,ce.row)},{default:O(()=>[le(oe(A.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),T(P,{link:"",type:"primary",size:"small",onClick:Te=>x(ce.$index,ce.row)},{default:O(()=>[le(oe(A.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),T(de,{modelValue:p.value,"onUpdate:modelValue":k[11]||(k[11]=ce=>p.value=ce),title:A.$t("lang.var.form.title"),direction:"rtl",size:"50%"},{default:O(()=>[T(ee,{model:A.nodeData},{default:O(()=>[T(R,{label:A.$t("lang.var.form.name"),"label-width":To},{default:O(()=>[T(I,{modelValue:a.varName,"onUpdate:modelValue":k[1]||(k[1]=ce=>a.varName=ce),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),T(R,{label:A.$t("lang.var.form.type"),"label-width":To},{default:O(()=>[T(Q,{modelValue:a.varType,"onUpdate:modelValue":k[2]||(k[2]=ce=>a.varType=ce),placeholder:A.$t("lang.var.form.choose1")},{default:O(()=>[(N(),X(De,null,Ot(c,ce=>T(U,{key:ce.label,label:ce.label,value:ce.value,disabled:ce.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),T(R,{label:A.$t("lang.var.form.source"),"label-width":To},{default:O(()=>[T(Q,{modelValue:a.varValueSource,"onUpdate:modelValue":k[3]||(k[3]=ce=>a.varValueSource=ce),placeholder:A.$t("lang.var.form.choose2")},{default:O(()=>[(N(),X(De,null,Ot(d,ce=>T(U,{key:ce.label,label:ce.label,value:ce.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a.varValueSource=="Constant"?(N(),ye(R,{key:0,label:"Constant value","label-width":To},{default:O(()=>[T(I,{modelValue:a.varConstantValue,"onUpdate:modelValue":k[4]||(k[4]=ce=>a.varConstantValue=ce),autocomplete:"on"},null,8,["modelValue"])]),_:1})):ve("",!0),a.varValueSource=="ExternalHttp"?(N(),ye(R,{key:1,label:"HTTP API","label-width":To},{default:O(()=>[T(Q,{modelValue:a.varAssociateData,"onUpdate:modelValue":k[5]||(k[5]=ce=>a.varAssociateData=ce),placeholder:"Choose a HTTP API"},{default:O(()=>[(N(!0),X(De,null,Ot(m.value,ce=>(N(),ye(U,{key:ce.id,label:ce.name,value:ce.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Kce,T(q,{to:{name:"externalHttpApiDetail",params:{robotId:S(l),id:"new"}}},{default:O(()=>[le("Add new HTTP API")]),_:1},8,["to"])]),_:1})):ve("",!0),a.varValueSource=="ExternalHttp"?(N(),ye(R,{key:2,label:"Value expression type","label-width":To},{default:O(()=>[T(Q,{modelValue:a.obtainValueExpressionType,"onUpdate:modelValue":k[6]||(k[6]=ce=>a.obtainValueExpressionType=ce),placeholder:"Value expression type"},{default:O(()=>[(N(),X(De,null,Ot(h,ce=>T(U,{key:ce.label,label:ce.label,value:ce.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})):ve("",!0),a.varValueSource=="ExternalHttp"?(N(),ye(R,{key:3,label:"Obtain value expression","label-width":To},{default:O(()=>[T(I,{modelValue:a.obtainValueExpression,"onUpdate:modelValue":k[7]||(k[7]=ce=>a.obtainValueExpression=ce),autocomplete:"on",placeholder:a.obtainValueExpressionType=="JsonPointer"?"/data/book/name":"CSS selector syntax like: h1.foo div#bar"},null,8,["modelValue","placeholder"])]),_:1})):ve("",!0),a.varValueSource=="ExternalHttp"?(N(),ye(R,{key:4,label:"Cache value","label-width":To},{default:O(()=>[Ue(H("input",{type:"checkbox",id:"_cacheEnabled_","onUpdate:modelValue":k[8]||(k[8]=ce=>a.cacheEnabled=ce),checked:a.cacheEnabled},null,8,Yce),[[zi,a.cacheEnabled]]),Jce]),_:1})):ve("",!0),a.varValueSource=="ExternalHttp"?(N(),ye(R,{key:5,label:"","label-width":To},{default:O(()=>[a.cacheEnabled?(N(),X("span",Xce,"After requesting once, the variable value will be stored in the cache and subsequently read from the cache.")):ve("",!0),a.cacheEnabled?ve("",!0):(N(),X("span",Zce,"HTTP API will be requested every time"))]),_:1})):ve("",!0)]),_:1},8,["model"]),H("div",Qce,[T(P,{type:"primary",loading:A.loading,onClick:k[9]||(k[9]=ce=>M())},{default:O(()=>[le(oe(A.$t("lang.common.save")),1)]),_:1},8,["loading"]),T(P,{onClick:k[10]||(k[10]=ce=>_())},{default:O(()=>[le(oe(A.$t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])],64)}}},tue={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},nue=H("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),rue=[nue];function sue(r,e){return N(),X("svg",tue,[...rue])}const Ei={name:"ep-arrow-right-bold",render:sue},oue={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},iue=H("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),lue=[iue];function aue(r,e){return N(),X("svg",oue,[...lue])}const Sv={name:"ep-setting",render:aue},cue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},uue=H("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[H("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"}),H("path",{"stroke-linecap":"round",d:"M8 12h8M8 8h8m-8 8h5"})],-1),due=[uue];function fue(r,e){return N(),X("svg",cue,[...due])}const eN={name:"solar-document-text-linear",render:fue},hue={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},pue=H("g",{fill:"currentColor","fill-rule":"evenodd"},[H("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"}),H("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),gue=[pue];function mue(r,e){return N(),X("svg",hue,[...gue])}const tN={name:"bi-box-arrow-up-right",render:mue},bue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vue=H("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),yue=[vue];function wue(r,e){return N(),X("svg",bue,[...yue])}const Cue={name:"ri-robot-2-line",render:wue},Sue="/assets/outbound-bot-EmsLuWRN.png",xue="/assets/inbound-bot-PJJg_rST.png",Eue="/assets/text-bot-CWb_Poym.png",Mg=r=>(Fd("data-v-5f721b00"),r=r(),Bd(),r),Tue=Mg(()=>H("span",{class:"header"}," Workspace ",-1)),_ue=Mg(()=>H("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[H("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)),Oue={style:{margin:"0",padding:"0"}},Aue=["id"],Mue=Mg(()=>H("a",{href:"https://github.com/dialogflowchatbot/dialogflow/releases"},"Go to download",-1)),kue={style:{"margin-left":"50px"}},Pue=Mg(()=>H("h1",null,null,-1)),Nue={class:"title"},Iue={class:"description"},Lue={class:"title"},Rue={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},$ue={class:"description"},CE="90px",Due={__name:"Home",setup(r){cn();const e=ps(),n=j(0),s=j(!1),o=j(""),i=St([]),l=j(!1),a=async()=>{s.value=!0;const b=await rt("GET","check-new-version.json",null,null,null);b.status==200?b.data!=null?(o.value=b.data.version,i.splice(0,i.length),sr(b.data.changelog,i),n.value=1):n.value=2:n.value=3,s.value=!1},c=()=>{e.push("/settings")},u=St([]),d=St({robotId:"",robotName:"",robotType:""});nt(async()=>{await f()});async function f(){const b=await rt("GET","robot",null,null,null);b.status==200&&u.splice(0,u.length,...b.data.reverse())}async function h(){(await rt("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(b,C){e.push({name:"robotDetail",params:{robotId:b,name:IA(C)}})}const m=b=>b=="OutboundBot"?Sue:b=="InboundBot"?xue:b=="TextBot"?Eue:"",v=b=>b=="OutboundBot"?"Telephone outbound bot":b=="InboundBot"?"Telephone incoming bot":b=="TextBot"?"Text chat bot":"";return(b,C)=>{const y=dt,w=Pn,x=rg,E=ng,_=AG,M=CO,A=Nq,k=IG,P=mA,$=Pt("router-link"),B=Sn,W=lr,I=ei,R=Qo,U=ir,Q=ll;return N(),X(De,null,[T(E,{class:"header-row"},{default:O(()=>[T(x,{span:8},{default:O(()=>[Tue,T(w,{size:"large",loading:s.value,onClick:a},{default:O(()=>[T(y,{size:"large"},{default:O(()=>[_ue]),_:1})]),_:1},8,["loading"]),T(w,{size:"large",onClick:c},{default:O(()=>[T(y,{size:"large"},{default:O(()=>[T(S(Sv))]),_:1})]),_:1})]),_:1})]),_:1}),T(_,{ref:"popover",placement:"right",title:"Changelog",width:300,trigger:"hover"},{reference:O(()=>[Ue(T(w,{class:"m-2",type:"warning",text:""},{default:O(()=>[le("Found new verion: "+oe(o.value),1)]),_:1},512),[[st,n.value==1]])]),default:O(()=>[H("ol",Oue,[(N(!0),X(De,null,Ot(i,(q,ee)=>(N(),X("li",{id:ee,key:ee},oe(q),9,Aue))),128))]),Mue]),_:1},512),Ue(T(M,{title:"You're using the latest verion.",type:"success",onClose:C[0]||(C[0]=q=>n.value=0)},null,512),[[st,n.value==2]]),Ue(T(M,{title:"Failed to query update information, please try again later.",type:"danger",onClose:C[1]||(C[1]=q=>n.value=0)},null,512),[[st,n.value==3]]),H("p",kue,[T(E,null,{default:O(()=>[T(x,{span:12},{default:O(()=>[H("h1",null,[T(y,{size:50},{default:O(()=>[T(S(Cue))]),_:1}),le(" Choose a robot to start "),T(w,{size:"large",onClick:p,type:"success"},{default:O(()=>[le(" Create a new robot ")]),_:1})])]),_:1}),T(x,{span:12},{default:O(()=>[Pue]),_:1})]),_:1}),T(P,{wrap:"",size:"large"},{default:O(()=>[(N(!0),X(De,null,Ot(u,q=>(N(),X("div",{class:"grid-content bg-color-light",key:q.robotId},[T(k,{title:q.robotName,"sub-title":v(q.robotType)},{icon:O(()=>[T(A,{src:m(q.robotType)},null,8,["src"])]),extra:O(()=>[T(w,{type:"primary",onClick:ee=>g(q.robotId,q.robotName)},{default:O(()=>[le("Detail")]),_:2},1032,["onClick"])]),_:2},1032,["title","sub-title"])]))),128))]),_:1}),H("div",Nue,[T(y,{size:30},{default:O(()=>[T(S(Sv))]),_:1}),le(" "+oe(b.$t("lang.guide.title4")),1)]),H("p",null,[T(y,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),T($,{to:"/settings"},{default:O(()=>[le("Global settings")]),_:1}),H("div",Iue,oe(b.$t("lang.guide.desc4")),1)]),H("div",Lue,[T(y,{size:30},{default:O(()=>[T(S(eN))]),_:1}),le(" "+oe(b.$t("lang.guide.title5")),1)]),H("p",null,[T(y,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),H("a",Rue,[le(oe(b.$t("lang.guide.nav5"))+" ",1),T(y,null,{default:O(()=>[T(S(tN))]),_:1})]),H("div",$ue,oe(b.$t("lang.guide.desc5")),1)])]),T(Q,{modelValue:l.value,"onUpdate:modelValue":C[6]||(C[6]=q=>l.value=q),title:"Create a new robot",width:"60%"},{footer:O(()=>[T(w,{type:"primary",loading:b.loading,onClick:C[4]||(C[4]=q=>h())},{default:O(()=>[le(oe(b.$t("lang.common.save")),1)]),_:1},8,["loading"]),T(w,{onClick:C[5]||(C[5]=q=>l.value=!1)},{default:O(()=>[le(oe(b.$t("lang.common.cancel")),1)]),_:1})]),default:O(()=>[T(U,{model:d},{default:O(()=>[T(W,{label:"Name","label-width":CE},{default:O(()=>[T(B,{modelValue:d.robotName,"onUpdate:modelValue":C[2]||(C[2]=q=>d.robotName=q),autocomplete:"off"},null,8,["modelValue"])]),_:1}),T(W,{label:"Type","label-width":CE},{default:O(()=>[T(R,{modelValue:d.robotType,"onUpdate:modelValue":C[3]||(C[3]=q=>d.robotType=q),placeholder:""},{default:O(()=>[T(I,{label:"Text bot",value:"TextBot"}),T(I,{label:"Inbound bot",value:"InboundBot"}),T(I,{label:"Outbound bot",value:"OutboundBot"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},Vue=Hs(Due,[["__scopeId","data-v-5f721b00"]]),Fue=H("span",{class:"text-large font-600 mr-3"}," External HTTP API list ",-1),Bue={class:"flex items-center"},zue={style:{padding:"10px",border:"1px solid #E6A23C","background-color":"#fdf6ec",margin:"10px"}},jue={__name:"HttpApiList",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Go(),i=ps(),l=o.params.robotId,a=j([]);nt(async()=>{const h=await rt("GET","external/http",{robotId:l},null,null);h&&h.status==200&&(a.value=h.data==null?[]:h.data)});const c=()=>{i.push({name:"robotDetail",params:{robotId:l}})},u=()=>{i.push({name:"externalHttpApiDetail",params:{id:"new"}})},d=(h,p)=>{i.push({name:"externalHttpApiDetail",params:{id:p.id}})},f=(h,p)=>{Vr.confirm("Confirm whether to permanently delete this record?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const g=await rt("DELETE","external/http/"+p.id,{robotId:l},null,null);g&&g.status==200?(tn({showClose:!0,message:"Successfully deleted.",type:"success"}),a.value.splice(h,1)):tn({showClose:!0,message:"Delete failed.",type:"error"})}).catch(()=>{})};return(h,p)=>{const g=Pn,m=mo,v=Pt("router-link"),b=sf,C=rf;return N(),X(De,null,[T(m,{title:S(e)("lang.common.back"),onBack:c},{content:O(()=>[Fue]),extra:O(()=>[H("div",Bue,[T(g,{type:"primary",class:"ml-2",onClick:p[0]||(p[0]=y=>u())},{default:O(()=>[le("Add new external API")]),_:1})])]),_:1},8,["title"]),H("div",zue,[le(" 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. "),T(v,{to:{name:"variables",params:{robotId:S(l)}}},{default:O(()=>[le("Add new variable")]),_:1},8,["to"])]),T(C,{data:a.value,stripe:"",style:{width:"100%"}},{default:O(()=>[T(b,{prop:"name",label:"HTTP name",width:"450"}),T(b,{prop:"description",label:"Description",width:"500"}),T(b,{fixed:"right",label:S(n)("lang.mainflow.table")[2],width:"270"},{default:O(y=>[T(g,{link:"",type:"primary",size:"small",onClick:w=>d(y.$index,y.row)},{default:O(()=>[le(" Edit ")]),_:2},1032,["onClick"]),le(" | "),T(g,{link:"",type:"primary",size:"small",onClick:w=>f(y.$index,y.row)},{default:O(()=>[le(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])],64)}}},I0=r=>(Fd("data-v-4fd34b5d"),r=r(),Bd(),r),Hue={class:"mainBody"},Uue=I0(()=>H("span",{class:"text-large font-600 mr-3"}," External HTTP API ",-1)),Wue=I0(()=>H("p",null,null,-1)),que=["checked"],Gue=I0(()=>H("label",{for:"_asyncReq_"},"Asynchronous",-1)),Kue={class:"my-header"},Yue=["id"],Jue={class:"dialog-footer"},Xue={__name:"HttpApiDetail",setup(r){const{t:e,tm:n,rt:s}=cn(),o=Go(),i=ps(),l=o.params.robotId,a=St({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}),c=St({name:"",value:"",valueSource:""}),u=j(!1),d=j(!1),f=j(""),h=j("h"),p=j(0),g=St([]),m=j(""),v=j(),b=o.params.id;nt(async()=>{if(b&&b!="new"){const $=await rt("GET","external/http/"+b,{robotId:l},null,null);$&&$.status==200&&sr($.data,a)}let k=await rt("GET","variable",{robotId:l},null,null);if(k&&k.status==200&&k.data)for(var P in k.data)k.data.hasOwnProperty(P)&&g.push(k.data[P])});const C=()=>{c.name="",c.value="",c.valueSource="Val",p.value=-1;const k=h.value;k=="h"?f.value="Add header parameter":k=="q"?f.value="Add query parameter":k=="f"&&(f.value="Add POST parameter"),u.value=!0},y=()=>{const k=pi(c),P=p.value;P>-1?h.value=="h"?a.headers[P]=k:h.value=="q"?a.queryParams[P]=k:h.value=="f"&&(a.formData[P]=k):h.value=="h"?a.headers.push(k):h.value=="q"?a.queryParams.push(k):h.value=="f"&&a.formData.push(k),u.value=!1},w=k=>{p.value=k,h.value=="h"?sr(a.headers[k],c):h.value=="q"?sr(a.queryParams[k],c):h.value=="f"&&sr(a.formData[k],c),u.value=!0},x=async()=>{a.protocol=a.protocol.replace("://","").toUpperCase();const k=await rt("POST","external/http/"+b,{robotId:l},null,a);k&&k.status==200?(tn({showClose:!0,message:"All data has been saved.",type:"success"}),_()):tn({showClose:!0,message:"Oops, this is something wrong.",type:"error"})},E=()=>{a.requestBody+="`"+m.value+"`",d.value=!1},_=()=>{i.push({name:"externalHttpApis",params:{robotId:l}})},M=(k,P)=>{},A=k=>{k!="POST"&&h.value=="f"&&(h.value="q")};return(k,P)=>{const $=mo,B=Sn,W=lr,I=ei,R=Qo,U=ir,Q=Uy,q=Fy,ee=sf,de=Pn,ce=rf,Te=nY,fe=tA,we=$y,Ee=tY,G=mA,ne=ll;return N(),X("div",Hue,[T($,{title:S(e)("lang.common.back"),onBack:_},{content:O(()=>[Uue]),_:1},8,["title"]),Wue,T(U,{model:a,"label-width":"90px"},{default:O(()=>[T(W,{label:"Api name"},{default:O(()=>[T(B,{modelValue:a.name,"onUpdate:modelValue":P[0]||(P[0]=se=>a.name=se)},null,8,["modelValue"])]),_:1}),T(W,{label:"Description"},{default:O(()=>[T(B,{modelValue:a.description,"onUpdate:modelValue":P[1]||(P[1]=se=>a.description=se),maxlength:"256",placeholder:"Some descriptions of this API","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1}),T(W,{label:"Method"},{default:O(()=>[T(R,{modelValue:a.method,"onUpdate:modelValue":P[2]||(P[2]=se=>a.method=se),placeholder:"",onChange:A},{default:O(()=>[T(I,{label:"GET",value:"GET"}),T(I,{label:"POST",value:"POST"})]),_:1},8,["modelValue"])]),_:1}),T(W,{label:"Protocol"},{default:O(()=>[T(R,{modelValue:a.protocol,"onUpdate:modelValue":P[3]||(P[3]=se=>a.protocol=se),placeholder:""},{default:O(()=>[T(I,{label:"HTTP",value:"http://"}),T(I,{label:"HTTPS",value:"https://"})]),_:1},8,["modelValue"])]),_:1}),T(W,{label:"Address"},{default:O(()=>[T(B,{modelValue:a.address,"onUpdate:modelValue":P[4]||(P[4]=se=>a.address=se)},{prepend:O(()=>[le(oe(a.method)+" "+oe(a.protocol),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),T(Q,{tag:"b",size:"large"},{default:O(()=>[le("Advanced")]),_:1}),T(U,{model:a,"label-width":"90px"},{default:O(()=>[T(W,{label:"Timed out"},{default:O(()=>[T(q,{modelValue:a.timeoutMilliseconds,"onUpdate:modelValue":P[5]||(P[5]=se=>a.timeoutMilliseconds=se),min:200,max:6e5},null,8,["modelValue"]),le(" milliseconds ")]),_:1}),T(W,{label:"Parameters"},{default:O(()=>[T(Ee,{modelValue:h.value,"onUpdate:modelValue":P[9]||(P[9]=se=>h.value=se),class:"demo-tabs",onTabClick:M},{default:O(()=>[T(Te,{label:"Header",name:"h"},{default:O(()=>[T(ce,{data:a.headers,stripe:"",style:{width:"100%"}},{default:O(()=>[T(ee,{prop:"name",label:"Parameter name",width:"300"}),T(ee,{prop:"value",label:"Parameter value",width:"200"}),T(ee,{fixed:"right",label:S(n)("lang.mainflow.table")[2],width:"270"},{default:O(se=>[T(de,{link:"",type:"primary",size:"small",onClick:me=>w(se.$index)},{default:O(()=>[le(" Edit ")]),_:2},1032,["onClick"]),le(" | "),T(de,{link:"",type:"primary",size:"small",onClick:me=>k.delApi(se.$index,se.row)},{default:O(()=>[le(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),T(de,{type:"warning",onClick:C},{default:O(()=>[le("+Add header")]),_:1})]),_:1}),T(Te,{label:"Query parameters",name:"q"},{default:O(()=>[T(ce,{data:a.queryParams,stripe:"",style:{width:"100%"}},{default:O(()=>[T(ee,{prop:"name",label:"Parameter name",width:"300"}),T(ee,{prop:"value",label:"Parameter value",width:"200"}),T(ee,{fixed:"right",label:S(n)("lang.mainflow.table")[2],width:"270"},{default:O(se=>[T(de,{link:"",type:"primary",size:"small",onClick:me=>w(se.$index)},{default:O(()=>[le(" Edit ")]),_:2},1032,["onClick"]),le(" | "),T(de,{link:"",type:"primary",size:"small",onClick:me=>k.delApi(se.$index,se.row)},{default:O(()=>[le(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),T(de,{type:"warning",onClick:C},{default:O(()=>[le("+Add query parameter")]),_:1})]),_:1}),a.method=="POST"?(N(),ye(Te,{key:0,label:"Request body",name:"f"},{default:O(()=>[le(" Request body type: "),T(we,{modelValue:a.postContentType,"onUpdate:modelValue":P[6]||(P[6]=se=>a.postContentType=se),class:"ml-4"},{default:O(()=>[T(fe,{label:"UrlEncoded",size:"large"},{default:O(()=>[le("application/x-www-form-urlencoded")]),_:1}),T(fe,{label:"JSON",size:"large"},{default:O(()=>[le("JSON")]),_:1})]),_:1},8,["modelValue"]),a.postContentType=="UrlEncoded"?(N(),ye(ce,{key:0,data:a.formData,stripe:"",style:{width:"100%"}},{default:O(()=>[T(ee,{prop:"name",label:"Parameter name",width:"300"}),T(ee,{prop:"value",label:"Parameter value",width:"200"}),T(ee,{fixed:"right",label:S(n)("lang.mainflow.table")[2],width:"270"},{default:O(se=>[T(de,{link:"",type:"primary",size:"small",onClick:me=>w(se.$index)},{default:O(()=>[le(" Edit ")]),_:2},1032,["onClick"]),le(" | "),T(de,{link:"",type:"primary",size:"small",onClick:me=>k.delApi(se.$index,se.row)},{default:O(()=>[le(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])):ve("",!0),a.postContentType=="UrlEncoded"?(N(),ye(de,{key:1,type:"warning",onClick:C},{default:O(()=>[le("+Add form data")]),_:1})):ve("",!0),a.postContentType=="JSON"?(N(),ye(B,{key:2,ref_key:"requestBodyRef",ref:v,modelValue:a.requestBody,"onUpdate:modelValue":P[7]||(P[7]=se=>a.requestBody=se),maxlength:"10240",placeholder:"JSON","show-word-limit":"",type:"textarea"},null,8,["modelValue"])):ve("",!0),a.postContentType=="JSON"?(N(),ye(de,{key:3,type:"warning",onClick:P[8]||(P[8]=se=>d.value=!0)},{default:O(()=>[le("+Insert a variable")]),_:1})):ve("",!0)]),_:1})):ve("",!0)]),_:1},8,["modelValue"])]),_:1}),T(W,{label:"User agent"},{default:O(()=>[T(B,{modelValue:a.userAgent,"onUpdate:modelValue":P[10]||(P[10]=se=>a.userAgent=se)},null,8,["modelValue"])]),_:1}),T(W,{label:"Sync/Async","label-width":k.formLabelWidth},{default:O(()=>[Ue(H("input",{type:"checkbox",id:"_asyncReq_","onUpdate:modelValue":P[11]||(P[11]=se=>a.asyncReq=se),checked:a.asyncReq},null,8,que),[[zi,a.asyncReq]]),Gue]),_:1},8,["label-width"]),T(W,null,{default:O(()=>[T(de,{type:"primary",onClick:x},{default:O(()=>[le("Save")]),_:1}),T(de,{type:"info",disabled:""},{default:O(()=>[le("Test (WIP)")]),_:1}),T(de,{onClick:_},{default:O(()=>[le("Cancel")]),_:1})]),_:1})]),_:1},8,["model"]),T(ne,{modelValue:u.value,"onUpdate:modelValue":P[17]||(P[17]=se=>u.value=se),width:"60%"},{header:O(({close:se,titleId:me,titleClass:Pe})=>[H("div",Kue,[H("h4",{id:me,class:Y(Pe)},oe(f.value),11,Yue)])]),footer:O(()=>[T(de,{type:"primary",loading:k.loading,onClick:y},{default:O(()=>[le(oe(k.$t("lang.common.save")),1)]),_:1},8,["loading"]),T(de,{onClick:P[16]||(P[16]=se=>u.value=!1)},{default:O(()=>[le(oe(k.$t("lang.common.cancel")),1)]),_:1})]),default:O(()=>[T(U,{model:c},{default:O(()=>[T(W,{label:"Name","label-width":k.formLabelWidth},{default:O(()=>[T(B,{modelValue:c.name,"onUpdate:modelValue":P[12]||(P[12]=se=>c.name=se),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),T(W,{label:"Value","label-width":k.formLabelWidth},{default:O(()=>[T(G,{size:"10",spacer:"-"},{default:O(()=>[T(R,{modelValue:c.valueSource,"onUpdate:modelValue":P[13]||(P[13]=se=>c.valueSource=se),placeholder:"",style:{width:"150px"}},{default:O(()=>[T(I,{label:"Const value",value:"Val"}),T(I,{label:"From a variable",value:"Var"})]),_:1},8,["modelValue"]),c.valueSource=="Val"?(N(),ye(B,{key:0,modelValue:c.value,"onUpdate:modelValue":P[14]||(P[14]=se=>c.value=se),autocomplete:"off",style:{width:"400px"}},null,8,["modelValue"])):ve("",!0),c.valueSource=="Var"?(N(),ye(R,{key:1,modelValue:m.value,"onUpdate:modelValue":P[15]||(P[15]=se=>m.value=se),placeholder:"Select a varaible",style:{width:"400px"}},{default:O(()=>[(N(!0),X(De,null,Ot(g,se=>(N(),ye(I,{key:se.varName,label:se.varName,value:se.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):ve("",!0)]),_:1})]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"]),T(ne,{modelValue:d.value,"onUpdate:modelValue":P[20]||(P[20]=se=>d.value=se),title:"Insert a variable",width:"30%"},{footer:O(()=>[H("span",Jue,[T(de,{type:"primary",onClick:E},{default:O(()=>[le(oe(S(e)("lang.common.insert")),1)]),_:1}),T(de,{onClick:P[19]||(P[19]=se=>d.value=!1)},{default:O(()=>[le(oe(S(e)("lang.common.cancel")),1)]),_:1})])]),default:O(()=>[T(R,{modelValue:m.value,"onUpdate:modelValue":P[18]||(P[18]=se=>m.value=se),class:"m-2",placeholder:"Choose a variable",size:"large"},{default:O(()=>[(N(!0),X(De,null,Ot(g,se=>(N(),ye(I,{key:se.varName,label:se.varName,value:se.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}},Zue=Hs(Xue,[["__scopeId","data-v-4fd34b5d"]]),Que={key:0},ede={__name:"Demos",props:{parentPage:{type:String,default:"home"}},setup(r){const e=r,{t:n,locale:s}=cn(),o=ps();function i(l,a){eJ()?Vr.alert(n("lang.home.demoUnvailableContent"),n("lang.home.demoUnvailableTitle"),{dangerouslyUseHTMLString:!0,confirmButtonText:"OK",callback:c=>{}}):o.push({name:"subflow",params:{id:l,name:a}})}return(l,a)=>{const c=qq;return N(),X("div",null,[le(oe(l.$t("lang.home.demo"))+": ",1),e.parentPage=="home"?(N(),X("ol",Que,[H("li",null,[T(c,{type:"success",onClick:a[0]||(a[0]=u=>i("demo-repay","UmVwYXkgRGVtbw=="))},{default:O(()=>[le(oe(l.$t("lang.home.demo1")),1)]),_:1})]),H("li",null,[T(c,{type:"success",onClick:a[1]||(a[1]=u=>i("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:O(()=>[le(oe(l.$t("lang.home.demo2")),1)]),_:1})]),H("li",null,[T(c,{type:"success",onClick:a[2]||(a[2]=u=>i("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:O(()=>[le(oe(l.$t("lang.home.demo3")),1)]),_:1})])])):(N(),X(De,{key:1},[T(c,{type:"success",onClick:a[3]||(a[3]=u=>i("demo-repay","UmVwYXkgRGVtbw=="))},{default:O(()=>[le(oe(l.$t("lang.home.demo1")),1)]),_:1}),le(" | "),T(c,{type:"success",onClick:a[4]||(a[4]=u=>i("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:O(()=>[le(oe(l.$t("lang.home.demo2")),1)]),_:1}),le(" | "),T(c,{type:"success",onClick:a[5]||(a[5]=u=>i("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:O(()=>[le(oe(l.$t("lang.home.demo3")),1)]),_:1})],64))])}}},tde={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},nde=H("g",{fill:"currentColor"},[H("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"}),H("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),rde=[nde];function sde(r,e){return N(),X("svg",tde,[...rde])}const ode={name:"bi-chat-square-dots",render:sde},ide={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},lde=H("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),ade=[lde];function cde(r,e){return N(),X("svg",ide,[...ade])}const ude={name:"ri-bard-line",render:cde},dde={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fde=H("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),hde=[fde];function pde(r,e){return N(),X("svg",dde,[...hde])}const gde={name:"solar-download-outline",render:pde},mde={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bde=H("g",{fill:"none"},[H("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"}),H("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.5 17.5h.009M5.49 5.5h.01"}),H("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),vde=[bde];function yde(r,e){return N(),X("svg",mde,[...vde])}const wde={name:"solar-routing-2-linear",render:yde},kg=r=>(Fd("data-v-0ba8fb96"),r=r(),Bd(),r),Cde=kg(()=>H("span",{class:"text-large font-600 mr-3"}," Robot detail ",-1)),Sde={class:"header"},xde={style:{"margin-left":"50px"}},Ede={class:"title"},Tde={class:"description"},_de={class:"title"},Ode={class:"description"},Ade=kg(()=>H("br",null,null,-1)),Mde={class:"title"},kde={class:"description"},Pde={class:"title"},Nde=kg(()=>H("div",{class:"description"},"By using this function, you can send data to external URLs and receive response.",-1)),Ide={class:"title"},Lde=kg(()=>H("div",{class:"description"},"Change maximum session idle time, Embedding provider and Email STMP information.",-1)),Rde={class:"title"},$de={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},Dde={class:"description"},Vde={class:"dialog-footer"},Fde="guide",Bde={__name:"RobotDetail",setup(r){cn();const e=Go(),n=ps(),s=e.params.robotId;let o="";const i=St({robotId:"",robotName:"",robotType:""}),l=j(!1),a=()=>{n.push("/")};nt(async()=>{const d=await rt("GET","robot/detail",{robotId:s},null,null);d.status==200&&d.data!=null?(sr(d.data,i),o=i.robotName,tJ(d.data.robotId,d.data.robotType)):tn.error("Can NOT find robot information by robotId.")});async function c(){const d=await rt("POST","robot",null,null,i);d.status==200?tn.success("Changed successfully."):tn.error(d.err.message)}async function u(){Vr.confirm("Do you confirm that delete this robot and its all data?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const d=await rt("DELETE","robot",{robotId:s},null,null);d.status==200?a():tn.error(d.err.message)}).catch(()=>{})}return(d,f)=>{const h=mo,p=Pn,g=rg,m=ng,v=dt,b=Pt("router-link"),C=Sn,y=lr,w=ir,x=ll;return N(),X(De,null,[T(h,{title:"Robots list",onBack:a},{content:O(()=>[Cde]),_:1}),T(m,{class:"header-row"},{default:O(()=>[T(g,{span:18},{default:O(()=>[H("span",Sde,oe(i.robotName),1),T(p,{type:"primary",text:"",onClick:f[0]||(f[0]=E=>{l.value=!0})},{default:O(()=>[le(" Change robot name ")]),_:1})]),_:1}),T(g,{span:3},{default:O(()=>[T(p,{type:"danger",onClick:u},{default:O(()=>[le(" Delete this robot ")]),_:1})]),_:1})]),_:1}),H("p",xde,[H("div",Ede,[T(v,{size:30},{default:O(()=>[T(S(ode))]),_:1}),le(oe(d.$t("lang.guide.title1")),1)]),H("p",null,[T(v,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),T(b,{to:{name:"mainflows",params:{robotId:S(s)}}},{default:O(()=>[le(oe(d.$t("lang.guide.nav1")),1)]),_:1},8,["to"]),H("div",Tde,[T(ede,{parentPage:Fde})])]),H("div",_de,[T(v,{size:30},{default:O(()=>[T(S(ude))]),_:1}),le(" "+oe(d.$t("lang.guide.title2")),1)]),H("p",null,[T(v,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),T(b,{to:{name:"intents",params:{robotId:S(s)}}},{default:O(()=>[le(oe(d.$t("lang.guide.nav2")),1)]),_:1},8,["to"]),H("div",Ode,[le(oe(d.$t("lang.guide.desc2")),1),Ade,le(` We have built-in "Positive" and "Negative" intentions. If that's not enough, you can add your own `)])]),H("div",Mde,[T(v,{size:30},{default:O(()=>[T(S(gde))]),_:1}),le(" "+oe(d.$t("lang.guide.title3")),1)]),H("p",null,[T(v,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),T(b,{to:{name:"variables",params:{robotId:S(s)}}},{default:O(()=>[le(oe(d.$t("lang.guide.nav3")),1)]),_:1},8,["to"]),H("div",kde,oe(d.$t("lang.guide.desc3")),1)]),H("div",Pde,[T(v,{size:30},{default:O(()=>[T(S(wde))]),_:1}),le(" External APIs call ")]),H("p",null,[T(v,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),T(b,{to:{name:"externalHttpApis",params:{robotId:S(s)}}},{default:O(()=>[le("External HTTP API list")]),_:1},8,["to"]),Nde]),H("div",Ide,[T(v,{size:30},{default:O(()=>[T(S(Sv))]),_:1}),le(" "+oe(d.$t("lang.guide.title4")),1)]),H("p",null,[T(v,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),T(b,{to:{name:"settings",params:{robotId:S(s)}}},{default:O(()=>[le(oe(d.$t("lang.guide.nav4")),1)]),_:1},8,["to"]),Lde]),H("div",Rde,[T(v,{size:30},{default:O(()=>[T(S(eN))]),_:1}),le(" "+oe(d.$t("lang.guide.title5")),1)]),H("p",null,[T(v,{size:15},{default:O(()=>[T(S(Ei))]),_:1}),H("a",$de,[le(oe(d.$t("lang.guide.nav5"))+" ",1),T(v,null,{default:O(()=>[T(S(tN))]),_:1})]),H("div",Dde,oe(d.$t("lang.guide.desc5")),1)])]),T(x,{modelValue:l.value,"onUpdate:modelValue":f[4]||(f[4]=E=>l.value=E),title:"Change robot name"},{footer:O(()=>[H("span",Vde,[T(p,{type:"primary",onClick:f[2]||(f[2]=E=>{l.value=!1,c()})},{default:O(()=>[le(oe(d.$t("lang.common.save")),1)]),_:1}),T(p,{onClick:f[3]||(f[3]=E=>{i.robotName=S(o),l.value=!1})},{default:O(()=>[le(oe(d.$t("lang.common.cancel")),1)]),_:1})])]),default:O(()=>[T(w,{model:d.form},{default:O(()=>[T(y,{label:"Name","label-width":d.formLabelWidth},{default:O(()=>[T(C,{modelValue:i.robotName,"onUpdate:modelValue":f[1]||(f[1]=E=>i.robotName=E),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},zde=Hs(Bde,[["__scopeId","data-v-0ba8fb96"]]),jde=[{path:"/",component:Vue},{path:"/demo/:demo",component:wE},{path:"/mainflows/:robotId",name:"mainflows",component:mJ},{path:"/subflow/:robotId/:id/:name",name:"subflow",component:wE,props:!0},{path:"/settings",component:lJ},{path:"/settings/:robotId",name:"settings",component:fJ},{path:"/robot/:robotId",name:"robotDetail",component:zde},{path:"/intents/:robotId",name:"intents",component:Hce},{path:"/intent/detail",component:Wce},{path:"/variables/:robotId",name:"variables",component:eue},{path:"/external/httpApis/:robotId",name:"externalHttpApis",component:jue},{path:"/external/httpApi/:robotId/:id",name:"externalHttpApiDetail",component:Zue}],Hde=DR({history:fR(),routes:jde,scrollBehavior(r,e,n){return{top:0}}}),L0=Gv(j3);L0.use(Hde);L0.use(z3);L0.mount("#app")});export default Ude(); diff --git a/src/web/asset.rs b/src/web/asset.rs index 93a85a3..e46802a 100644 --- a/src/web/asset.rs +++ b/src/web/asset.rs @@ -5,8 +5,8 @@ use once_cell::sync::Lazy; pub(crate) static ASSETS_MAP: Lazy> = Lazy::new(|| { HashMap::from([ (r"/assets/inbound-bot-PJJg_rST.png", 0), - (r"/assets/index-B2kCm4YY.css", 1), - (r"/assets/index-CI0yDkE7.js", 2), + (r"/assets/index-CUgNKZiF.css", 1), + (r"/assets/index-KJIk7eTs.js", 2), (r"/assets/outbound-bot-EmsLuWRN.png", 3), (r"/assets/text-bot-CWb_Poym.png", 4), (r"/favicon.ico", 5), diff --git a/src/web/asset.txt b/src/web/asset.txt index 1baff47..c358d53 100644 --- a/src/web/asset.txt +++ b/src/web/asset.txt @@ -1,7 +1,7 @@ [ (include_bytes!(r#"..\resources\assets/assets\inbound-bot-PJJg_rST.png.gz"#), ""), -(include_bytes!(r#"..\resources\assets/assets\index-B2kCm4YY.css.gz"#), "text/css"), -(include_bytes!(r#"..\resources\assets/assets\index-CI0yDkE7.js.gz"#), "text/javascript"), +(include_bytes!(r#"..\resources\assets/assets\index-CUgNKZiF.css.gz"#), "text/css"), +(include_bytes!(r#"..\resources\assets/assets\index-KJIk7eTs.js.gz"#), "text/javascript"), (include_bytes!(r#"..\resources\assets/assets\outbound-bot-EmsLuWRN.png.gz"#), ""), (include_bytes!(r#"..\resources\assets/assets\text-bot-CWb_Poym.png.gz"#), ""), (include_bytes!(r#"..\resources\assets/favicon.ico.gz"#), "image/x-icon"),